Sha256: 42bf5347b1932489d3c4d9011dc22aa9a31596d9696ef95aa0d9f58d80aea212

Contents?: true

Size: 630 Bytes

Versions: 10

Compression:

Stored size: 630 Bytes

Contents

require 'fog/core/collection'
require 'fog/google/models/compute/http_health_check'

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

        def all(filters={})
          data = service.list_http_health_checks.body['items'] || []
          load(data)
        end

        def get(identity)
          resonse = nil
          response = service.get_http_health_check(identity)
          return nil if response.nil?
          new(response.body)
        rescue Fog::Errors::NotFound
          nil
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
fog-google-0.0.4 lib/fog/google/models/compute/http_health_checks.rb
fog-google-0.0.3 lib/fog/google/models/compute/http_health_checks.rb
fog-google-0.0.2 lib/fog/google/models/compute/http_health_checks.rb
fog-1.29.0 lib/fog/google/models/compute/http_health_checks.rb
fog-1.28.0 lib/fog/google/models/compute/http_health_checks.rb
fog-1.27.0 lib/fog/google/models/compute/http_health_checks.rb
fog-1.26.0 lib/fog/google/models/compute/http_health_checks.rb
fog-1.25.0 lib/fog/google/models/compute/http_health_checks.rb
nsidc-fog-1.24.1 lib/fog/google/models/compute/http_health_checks.rb
fog-1.24.0 lib/fog/google/models/compute/http_health_checks.rb