Sha256: 0ed7a4b923603070bde7203606489990c98da333800228e277aa0b5e2e44ca4f

Contents?: true

Size: 631 Bytes

Versions: 12

Compression:

Stored size: 631 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)
          response = 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

12 entries across 10 versions & 3 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-google-0.1.0/lib/fog/google/models/compute/http_health_checks.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-google-0.1.0/lib/fog/google/models/compute/http_health_checks.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-google-0.1.0/lib/fog/google/models/compute/http_health_checks.rb
fog-google-0.1.3 lib/fog/google/models/compute/http_health_checks.rb
fog-google-0.1.2 lib/fog/google/models/compute/http_health_checks.rb
fog-google-0.1.1 lib/fog/google/models/compute/http_health_checks.rb
fog-google-0.1.0 lib/fog/google/models/compute/http_health_checks.rb
fog-google-0.0.9 lib/fog/google/models/compute/http_health_checks.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-google-0.0.7/lib/fog/google/models/compute/http_health_checks.rb
fog-google-0.0.7 lib/fog/google/models/compute/http_health_checks.rb
fog-google-0.0.6 lib/fog/google/models/compute/http_health_checks.rb
fog-google-0.0.5 lib/fog/google/models/compute/http_health_checks.rb