Sha256: 651572bac291883f29b84c9f3883f4564530b16062929907bf7571bba2018b5b

Contents?: true

Size: 555 Bytes

Versions: 14

Compression:

Stored size: 555 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def get_target_http_proxy(name)
          proxy = data[:target_http_proxies][name]
          return nil if proxy.nil?
          build_excon_response(proxy)
        end
      end

      class Real
        def get_target_http_proxy(name)
          api_method = @compute.target_http_proxies.get
          parameters = {
            "project" => @project,
            "targetHttpProxy" => name
          }

          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/get_target_http_proxy.rb
fog-google-0.5.5 lib/fog/compute/google/requests/get_target_http_proxy.rb
fog-google-0.5.4 lib/fog/compute/google/requests/get_target_http_proxy.rb
fog-google-0.5.3 lib/fog/compute/google/requests/get_target_http_proxy.rb
fog-google-0.5.2 lib/fog/compute/google/requests/get_target_http_proxy.rb
fog-google-0.5.1 lib/fog/compute/google/requests/get_target_http_proxy.rb
fog-google-0.5.0 lib/fog/compute/google/requests/get_target_http_proxy.rb
fog-google-0.4.2 lib/fog/compute/google/requests/get_target_http_proxy.rb
fog-google-0.4.1 lib/fog/compute/google/requests/get_target_http_proxy.rb
fog-google-0.4.0 lib/fog/compute/google/requests/get_target_http_proxy.rb
fog-google-0.3.2 lib/fog/compute/google/requests/get_target_http_proxy.rb
fog-google-0.3.1 lib/fog/compute/google/requests/get_target_http_proxy.rb
fog-google-0.3.0 lib/fog/compute/google/requests/get_target_http_proxy.rb
fog-google-0.2.0 lib/fog/compute/google/requests/get_target_http_proxy.rb