Sha256: 3dad546cad6281ed18527dcb5399f085526014d65881b9fc8705732fda715825

Contents?: true

Size: 607 Bytes

Versions: 23

Compression:

Stored size: 607 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)
          if identity
            http_health_check = service.get_http_health_check(identity).to_h
            return new(http_health_check)
          end
        rescue ::Google::Apis::ClientError => e
          raise e unless e.status_code == 404
          nil
        end
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
fog-google-1.22.0 lib/fog/compute/google/models/http_health_checks.rb
fog-google-1.21.1 lib/fog/compute/google/models/http_health_checks.rb
fog-google-1.21.0 lib/fog/compute/google/models/http_health_checks.rb
fog-google-1.20.0 lib/fog/compute/google/models/http_health_checks.rb
fog-google-1.19.0 lib/fog/compute/google/models/http_health_checks.rb
fog-google-1.18.0 lib/fog/compute/google/models/http_health_checks.rb
fog-google-1.17.0 lib/fog/compute/google/models/http_health_checks.rb
fog-google-1.16.1 lib/fog/compute/google/models/http_health_checks.rb
fog-google-1.16.0 lib/fog/compute/google/models/http_health_checks.rb
fog-google-1.15.0 lib/fog/compute/google/models/http_health_checks.rb
fog-google-1.14.0 lib/fog/compute/google/models/http_health_checks.rb
gitlab-fog-google-1.14.0 lib/fog/compute/google/models/http_health_checks.rb
fog-google-1.13.0 lib/fog/compute/google/models/http_health_checks.rb
gitlab-fog-google-1.13.0 lib/fog/compute/google/models/http_health_checks.rb
fog-google-1.12.1 lib/fog/compute/google/models/http_health_checks.rb
fog-google-1.12.0 lib/fog/compute/google/models/http_health_checks.rb
fog-google-1.11.0 lib/fog/compute/google/models/http_health_checks.rb
fog-google-1.10.0 lib/fog/compute/google/models/http_health_checks.rb
fog-google-1.9.1 lib/fog/compute/google/models/http_health_checks.rb
fog-google-1.9.0 lib/fog/compute/google/models/http_health_checks.rb