Sha256: 252a1db9a091b3580a984575e8bf8ffd939c35b913c66d9f347014020abf194b

Contents?: true

Size: 794 Bytes

Versions: 14

Compression:

Stored size: 794 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def list_http_health_checks
          health_checks = data[:http_health_checks].values

          build_excon_response("kind" => "compute#urlMapList",
                               "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/global/httpHealthChecks",
                               "id" => "projects/#{@project}/global/httpHealthChecks",
                               "items" => health_checks)
        end
      end

      class Real
        def list_http_health_checks
          api_method = @compute.http_health_checks.list
          parameters = {
            "project" => @project
          }

          request(api_method, parameters)
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fog-google-0.6.0 lib/fog/compute/google/requests/list_http_health_checks.rb
fog-google-0.5.5 lib/fog/compute/google/requests/list_http_health_checks.rb
fog-google-0.5.4 lib/fog/compute/google/requests/list_http_health_checks.rb
fog-google-0.5.3 lib/fog/compute/google/requests/list_http_health_checks.rb
fog-google-0.5.2 lib/fog/compute/google/requests/list_http_health_checks.rb
fog-google-0.5.1 lib/fog/compute/google/requests/list_http_health_checks.rb
fog-google-0.5.0 lib/fog/compute/google/requests/list_http_health_checks.rb
fog-google-0.4.2 lib/fog/compute/google/requests/list_http_health_checks.rb
fog-google-0.4.1 lib/fog/compute/google/requests/list_http_health_checks.rb
fog-google-0.4.0 lib/fog/compute/google/requests/list_http_health_checks.rb
fog-google-0.3.2 lib/fog/compute/google/requests/list_http_health_checks.rb
fog-google-0.3.1 lib/fog/compute/google/requests/list_http_health_checks.rb
fog-google-0.3.0 lib/fog/compute/google/requests/list_http_health_checks.rb
fog-google-0.2.0 lib/fog/compute/google/requests/list_http_health_checks.rb