Sha256: 36082559871debb618a519cee855ee6732bc41313ab7c5b162e1f1151f0b1f82

Contents?: true

Size: 709 Bytes

Versions: 14

Compression:

Stored size: 709 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

14 entries across 14 versions & 1 rubygems

Version Path
fog-google-1.24.1 lib/fog/compute/google/requests/insert_global_forwarding_rule.rb
fog-google-1.24.0 lib/fog/compute/google/requests/insert_global_forwarding_rule.rb
fog-google-1.23.0 lib/fog/compute/google/requests/insert_global_forwarding_rule.rb
fog-google-1.22.0 lib/fog/compute/google/requests/insert_global_forwarding_rule.rb
fog-google-1.21.1 lib/fog/compute/google/requests/insert_global_forwarding_rule.rb
fog-google-1.21.0 lib/fog/compute/google/requests/insert_global_forwarding_rule.rb
fog-google-1.20.0 lib/fog/compute/google/requests/insert_global_forwarding_rule.rb
fog-google-1.19.0 lib/fog/compute/google/requests/insert_global_forwarding_rule.rb
fog-google-1.18.0 lib/fog/compute/google/requests/insert_global_forwarding_rule.rb
fog-google-1.17.0 lib/fog/compute/google/requests/insert_global_forwarding_rule.rb
fog-google-1.16.1 lib/fog/compute/google/requests/insert_global_forwarding_rule.rb
fog-google-1.16.0 lib/fog/compute/google/requests/insert_global_forwarding_rule.rb
fog-google-1.15.0 lib/fog/compute/google/requests/insert_global_forwarding_rule.rb
fog-google-1.14.0 lib/fog/compute/google/requests/insert_global_forwarding_rule.rb