Sha256: 5c0e0d39c03dc4669ff091a465cddc8a662c7694e3e2bac07185fd76fb5b7d11

Contents?: true

Size: 586 Bytes

Versions: 22

Compression:

Stored size: 586 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def get_target_http_proxy(name)
          proxy = self.data[:target_http_proxies][name]
          if proxy.nil?
            return nil
          end
          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

22 entries across 20 versions & 5 rubygems

Version Path
nsidc-fog-1.24.1 lib/fog/google/requests/compute/get_target_http_proxy.rb
fog-1.24.0 lib/fog/google/requests/compute/get_target_http_proxy.rb