Sha256: 3f73bcddd6c14eacf90bf46dfdcb485157a36b12f499b6e05bec2be223ec139d

Contents?: true

Size: 797 Bytes

Versions: 14

Compression:

Stored size: 797 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def list_target_http_proxies
          proxies = data[:target_http_proxies].values

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

      class Real
        def list_target_http_proxies
          api_method = @compute.target_http_proxies.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_target_http_proxies.rb
fog-google-0.5.5 lib/fog/compute/google/requests/list_target_http_proxies.rb
fog-google-0.5.4 lib/fog/compute/google/requests/list_target_http_proxies.rb
fog-google-0.5.3 lib/fog/compute/google/requests/list_target_http_proxies.rb
fog-google-0.5.2 lib/fog/compute/google/requests/list_target_http_proxies.rb
fog-google-0.5.1 lib/fog/compute/google/requests/list_target_http_proxies.rb
fog-google-0.5.0 lib/fog/compute/google/requests/list_target_http_proxies.rb
fog-google-0.4.2 lib/fog/compute/google/requests/list_target_http_proxies.rb
fog-google-0.4.1 lib/fog/compute/google/requests/list_target_http_proxies.rb
fog-google-0.4.0 lib/fog/compute/google/requests/list_target_http_proxies.rb
fog-google-0.3.2 lib/fog/compute/google/requests/list_target_http_proxies.rb
fog-google-0.3.1 lib/fog/compute/google/requests/list_target_http_proxies.rb
fog-google-0.3.0 lib/fog/compute/google/requests/list_target_http_proxies.rb
fog-google-0.2.0 lib/fog/compute/google/requests/list_target_http_proxies.rb