Sha256: fc26042c128d593787ceb6c2414f3869200c48c775458e17dc3846c8f68792fc

Contents?: true

Size: 926 Bytes

Versions: 14

Compression:

Stored size: 926 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def list_global_forwarding_rules(_region_name = "global")
          global_forwarding_rules = data[:global_forwarding_rules].values

          build_excon_response("kind" => "compute#forwardingRuleList",
                               "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/global/forwardingRules",
                               "id" => "projects/#{@project}/global/forwardingRules",
                               "items" => global_forwarding_rules)
        end
      end

      class Real
        def list_global_forwarding_rules(region_name = "global")
          api_method = @compute.global_forwarding_rules.list
          parameters = {
            "project" => @project,
            "region" => region_name
          }

          request(api_method, parameters)
        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/list_global_forwarding_rules.rb
fog-google-0.5.5 lib/fog/compute/google/requests/list_global_forwarding_rules.rb
fog-google-0.5.4 lib/fog/compute/google/requests/list_global_forwarding_rules.rb
fog-google-0.5.3 lib/fog/compute/google/requests/list_global_forwarding_rules.rb
fog-google-0.5.2 lib/fog/compute/google/requests/list_global_forwarding_rules.rb
fog-google-0.5.1 lib/fog/compute/google/requests/list_global_forwarding_rules.rb
fog-google-0.5.0 lib/fog/compute/google/requests/list_global_forwarding_rules.rb
fog-google-0.4.2 lib/fog/compute/google/requests/list_global_forwarding_rules.rb
fog-google-0.4.1 lib/fog/compute/google/requests/list_global_forwarding_rules.rb
fog-google-0.4.0 lib/fog/compute/google/requests/list_global_forwarding_rules.rb
fog-google-0.3.2 lib/fog/compute/google/requests/list_global_forwarding_rules.rb
fog-google-0.3.1 lib/fog/compute/google/requests/list_global_forwarding_rules.rb
fog-google-0.3.0 lib/fog/compute/google/requests/list_global_forwarding_rules.rb
fog-google-0.2.0 lib/fog/compute/google/requests/list_global_forwarding_rules.rb