Sha256: 69894579915f8330833af3a6ad64b9017502249b19443c425c6102536cd9fc4c

Contents?: true

Size: 594 Bytes

Versions: 7

Compression:

Stored size: 594 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def set_server_tags(_instance, _zone, _tags = [])
          # :no-coverage:
          Fog::Mock.not_implemented
          # :no-coverage:
        end
      end

      class Real
        def set_server_tags(instance, zone, fingerprint, tags = [])
          @compute.set_instance_tags(
            @project, zone.split("/")[-1], instance,
            ::Google::Apis::ComputeV1::Tags.new(
              :fingerprint => fingerprint,
              :items => tags
            )
          )
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
gitlab-fog-google-1.14.0 lib/fog/compute/google/requests/set_server_tags.rb
fog-google-1.13.0 lib/fog/compute/google/requests/set_server_tags.rb
gitlab-fog-google-1.13.0 lib/fog/compute/google/requests/set_server_tags.rb
fog-google-1.12.1 lib/fog/compute/google/requests/set_server_tags.rb
fog-google-1.12.0 lib/fog/compute/google/requests/set_server_tags.rb
fog-google-1.11.0 lib/fog/compute/google/requests/set_server_tags.rb
fog-google-1.10.0 lib/fog/compute/google/requests/set_server_tags.rb