Sha256: d3bc6e695d34d0ef93356991b2f700a22b700cf1ebcffaaa8f900043e12e7770

Contents?: true

Size: 707 Bytes

Versions: 7

Compression:

Stored size: 707 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def insert_global_forwarding_rule(_rule_name, _opts = {})
          # :no-coverage:
          Fog::Mock.not_implemented
          # :no-coverage:
        end
      end

      class Real
        ##
        # Create a global forwarding rule.
        #
        # @see https://cloud.google.com/compute/docs/reference/latest/globalForwardingRules/insert
        def insert_global_forwarding_rule(rule_name, opts = {})
          opts = opts.merge(:name => rule_name)
          @compute.insert_global_forwarding_rule(
            @project, ::Google::Apis::ComputeV1::ForwardingRule.new(opts)
          )
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
gitlab-fog-google-1.14.0 lib/fog/compute/google/requests/insert_global_forwarding_rule.rb
fog-google-1.13.0 lib/fog/compute/google/requests/insert_global_forwarding_rule.rb
gitlab-fog-google-1.13.0 lib/fog/compute/google/requests/insert_global_forwarding_rule.rb
fog-google-1.12.1 lib/fog/compute/google/requests/insert_global_forwarding_rule.rb
fog-google-1.12.0 lib/fog/compute/google/requests/insert_global_forwarding_rule.rb
fog-google-1.11.0 lib/fog/compute/google/requests/insert_global_forwarding_rule.rb
fog-google-1.10.0 lib/fog/compute/google/requests/insert_global_forwarding_rule.rb