1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
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
|