Sha256: 1c69f334f22626ff50f74c8fbac09475d6b21f5b1fde0f8c0364ef0b8da1ec16

Contents?: true

Size: 764 Bytes

Versions: 1

Compression:

Stored size: 764 Bytes

Contents

module Fog
  module Compute
    class Google

      class Mock

        def insert_forwarding_rule(forwarding_rule_name, region_name)
          Fog::Mock.not_implemented
        end

      end

      class Real

        def insert_forwarding_rule(forwarding_rule_name, region_name, opts = {})
          api_method = @compute.forwarding_rules.insert
          parameters = {
            'project' => @project,
            'region' => region_name
          }
          body_object = { 'name' => forwarding_rule_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_forwarding_rule.rb