Sha256: 6786af53528f4c4d8ed857e4d834e6a563a10793c979c9dab79c14d19839fe1c

Contents?: true

Size: 648 Bytes

Versions: 14

Compression:

Stored size: 648 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def add_zone_view_resources(_zone_view, _resources)
          Fog::Mock.not_implemented
        end
      end

      class Real
        def add_zone_view_resources(zone_view, resources, zone)
          api_method = @resourceviews.zone_views.addresources
          parameters = {
            "projectName" => @project,
            "resourceViewName" => zone_view.name,
            "zone" => zone
          }
          body = {
            "resources" => resources
          }

          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/add_zone_view_resources.rb
fog-google-0.5.5 lib/fog/compute/google/requests/add_zone_view_resources.rb
fog-google-0.5.4 lib/fog/compute/google/requests/add_zone_view_resources.rb
fog-google-0.5.3 lib/fog/compute/google/requests/add_zone_view_resources.rb
fog-google-0.5.2 lib/fog/compute/google/requests/add_zone_view_resources.rb
fog-google-0.5.1 lib/fog/compute/google/requests/add_zone_view_resources.rb
fog-google-0.5.0 lib/fog/compute/google/requests/add_zone_view_resources.rb
fog-google-0.4.2 lib/fog/compute/google/requests/add_zone_view_resources.rb
fog-google-0.4.1 lib/fog/compute/google/requests/add_zone_view_resources.rb
fog-google-0.4.0 lib/fog/compute/google/requests/add_zone_view_resources.rb
fog-google-0.3.2 lib/fog/compute/google/requests/add_zone_view_resources.rb
fog-google-0.3.1 lib/fog/compute/google/requests/add_zone_view_resources.rb
fog-google-0.3.0 lib/fog/compute/google/requests/add_zone_view_resources.rb
fog-google-0.2.0 lib/fog/compute/google/requests/add_zone_view_resources.rb