Sha256: 5932a3bc6ee02bd6e216d256e2ad37b3b067803cd3f0b893bbc3a8f74794b321
Contents?: true
Size: 633 Bytes
Versions: 22
Compression:
Stored size: 633 Bytes
Contents
module Fog module Compute class Google class Mock def set_forwarding_rule_target(rule, target) Fog::Mock.not_implemented end end class Real def set_forwarding_rule_target(rule, target) api_method = @compute.forwarding_rules.set_target parameters = { 'project' => @project, 'forwardingRule' => rule.name, 'region' => rule.region.split('/')[-1] } body = { 'target' => target } request(api_method, parameters, body_object=body) end end end end end
Version data entries
22 entries across 20 versions & 5 rubygems