Sha256: 074cff3b7c879e5e5032290e6e14e181e8d6e33ec392855f64995689d6c7f064

Contents?: true

Size: 637 Bytes

Versions: 14

Compression:

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

14 entries across 14 versions & 1 rubygems

Version Path
fog-google-0.6.0 lib/fog/compute/google/requests/set_forwarding_rule_target.rb
fog-google-0.5.5 lib/fog/compute/google/requests/set_forwarding_rule_target.rb
fog-google-0.5.4 lib/fog/compute/google/requests/set_forwarding_rule_target.rb
fog-google-0.5.3 lib/fog/compute/google/requests/set_forwarding_rule_target.rb
fog-google-0.5.2 lib/fog/compute/google/requests/set_forwarding_rule_target.rb
fog-google-0.5.1 lib/fog/compute/google/requests/set_forwarding_rule_target.rb
fog-google-0.5.0 lib/fog/compute/google/requests/set_forwarding_rule_target.rb
fog-google-0.4.2 lib/fog/compute/google/requests/set_forwarding_rule_target.rb
fog-google-0.4.1 lib/fog/compute/google/requests/set_forwarding_rule_target.rb
fog-google-0.4.0 lib/fog/compute/google/requests/set_forwarding_rule_target.rb
fog-google-0.3.2 lib/fog/compute/google/requests/set_forwarding_rule_target.rb
fog-google-0.3.1 lib/fog/compute/google/requests/set_forwarding_rule_target.rb
fog-google-0.3.0 lib/fog/compute/google/requests/set_forwarding_rule_target.rb
fog-google-0.2.0 lib/fog/compute/google/requests/set_forwarding_rule_target.rb