Sha256: 44a231b7819c72217add10dbc195628bfc11ccf811678f6a5b45f555996721e4

Contents?: true

Size: 580 Bytes

Versions: 15

Compression:

Stored size: 580 Bytes

Contents

module Fog
  module Compute
    class Google
      class HttpHealthChecks < Fog::Collection
        model Fog::Compute::Google::HttpHealthCheck

        def all(_filters = {})
          data = service.list_http_health_checks.to_h[:items] || []
          load(data)
        end

        def get(identity)
          response = service.get_http_health_check(identity)
          return nil if response.nil?
          new(response.to_h)
        rescue ::Google::Apis::ClientError => e
          raise e unless e.status_code == 404
          nil
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
fog-google-1.7.1 lib/fog/compute/google/models/http_health_checks.rb
fog-google-1.7.0 lib/fog/compute/google/models/http_health_checks.rb
fog-google-1.6.0 lib/fog/compute/google/models/http_health_checks.rb
fog-google-1.5.0 lib/fog/compute/google/models/http_health_checks.rb
fog-google-1.4.0 lib/fog/compute/google/models/http_health_checks.rb
fog-google-1.3.3 lib/fog/compute/google/models/http_health_checks.rb
fog-google-1.3.2 lib/fog/compute/google/models/http_health_checks.rb
fog-google-1.3.1 lib/fog/compute/google/models/http_health_checks.rb
fog-google-1.3.0 lib/fog/compute/google/models/http_health_checks.rb
fog-google-1.2.2 lib/fog/compute/google/models/http_health_checks.rb
fog-google-1.2.1 lib/fog/compute/google/models/http_health_checks.rb
fog-google-1.2.0 lib/fog/compute/google/models/http_health_checks.rb
fog-google-1.1.0 lib/fog/compute/google/models/http_health_checks.rb
fog-google-1.0.1 lib/fog/compute/google/models/http_health_checks.rb
fog-google-1.0.0 lib/fog/compute/google/models/http_health_checks.rb