Sha256: 12510f87763eb4d167b949a0eed0267b75bfe61ed22222df8a783a862cb392c4

Contents?: true

Size: 740 Bytes

Versions: 1

Compression:

Stored size: 740 Bytes

Contents

module Fog
  module Compute
    class Google

      class Mock

        def insert_target_pool(target_pool_name, region_name)
          Fog::Mock.not_implemented
        end

      end

      class Real

        def insert_target_pool(target_pool_name, region_name, opts = {})
          api_method = @compute.target_pools.insert
          parameters = {
            'project' => @project,
            'region' => region_name
          }
          body_object = { 'name' => target_pool_name }
          body_object.merge!(opts)

          result = self.build_result(api_method, parameters,
                                     body_object=body_object)
          response = self.build_response(result)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fog-1.22.0 lib/fog/google/requests/compute/insert_target_pool.rb