Sha256: a89c814f35fd31ec063145a04e74cbfd72305a317992a77fff04e1663cad6d17

Contents?: true

Size: 619 Bytes

Versions: 14

Compression:

Stored size: 619 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def set_tags(_instance, _zone, _tags = [])
          Fog::Mock.not_implemented
        end
      end

      class Real
        def set_tags(instance, zone, fingerprint, tags = [])
          api_method = @compute.instances.set_tags
          parameters = {
            "project" => @project,
            "instance" => instance,
            "zone" => zone
          }
          body_object = { "fingerprint" => fingerprint, "items" => tags }
          request(api_method, parameters, body_object = body_object)
        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_tags.rb
fog-google-0.5.5 lib/fog/compute/google/requests/set_tags.rb
fog-google-0.5.4 lib/fog/compute/google/requests/set_tags.rb
fog-google-0.5.3 lib/fog/compute/google/requests/set_tags.rb
fog-google-0.5.2 lib/fog/compute/google/requests/set_tags.rb
fog-google-0.5.1 lib/fog/compute/google/requests/set_tags.rb
fog-google-0.5.0 lib/fog/compute/google/requests/set_tags.rb
fog-google-0.4.2 lib/fog/compute/google/requests/set_tags.rb
fog-google-0.4.1 lib/fog/compute/google/requests/set_tags.rb
fog-google-0.4.0 lib/fog/compute/google/requests/set_tags.rb
fog-google-0.3.2 lib/fog/compute/google/requests/set_tags.rb
fog-google-0.3.1 lib/fog/compute/google/requests/set_tags.rb
fog-google-0.3.0 lib/fog/compute/google/requests/set_tags.rb
fog-google-0.2.0 lib/fog/compute/google/requests/set_tags.rb