Sha256: 59e633bc60378b908ce201f3e9d145a754a8890107f181900ce318d0680d4ca1

Contents?: true

Size: 588 Bytes

Versions: 14

Compression:

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

14 entries across 14 versions & 1 rubygems

Version Path
fog-google-1.24.1 lib/fog/compute/google/requests/set_server_tags.rb
fog-google-1.24.0 lib/fog/compute/google/requests/set_server_tags.rb
fog-google-1.23.0 lib/fog/compute/google/requests/set_server_tags.rb
fog-google-1.22.0 lib/fog/compute/google/requests/set_server_tags.rb
fog-google-1.21.1 lib/fog/compute/google/requests/set_server_tags.rb
fog-google-1.21.0 lib/fog/compute/google/requests/set_server_tags.rb
fog-google-1.20.0 lib/fog/compute/google/requests/set_server_tags.rb
fog-google-1.19.0 lib/fog/compute/google/requests/set_server_tags.rb
fog-google-1.18.0 lib/fog/compute/google/requests/set_server_tags.rb
fog-google-1.17.0 lib/fog/compute/google/requests/set_server_tags.rb
fog-google-1.16.1 lib/fog/compute/google/requests/set_server_tags.rb
fog-google-1.16.0 lib/fog/compute/google/requests/set_server_tags.rb
fog-google-1.15.0 lib/fog/compute/google/requests/set_server_tags.rb
fog-google-1.14.0 lib/fog/compute/google/requests/set_server_tags.rb