Sha256: 78c84bb8f1fb4ca343c6aa282b5f54d9870086591a068871e5d1639d119b4a46

Contents?: true

Size: 797 Bytes

Versions: 12

Compression:

Stored size: 797 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def set_common_instance_metadata(identity, current_fingerprint, metadata = {})
          Fog::Mock.not_implemented
        end
      end

      class Real
        def set_common_instance_metadata(identity, current_fingerprint, metadata = {})
          api_method = @compute.projects.set_common_instance_metadata
          parameters = {
            :project => identity,
          }
          body_object = {
            :fingerprint => current_fingerprint,
            :items => Array(metadata).map { |pair| { :key => pair[0], :value => pair[1] } },
          }

          result = self.build_result(api_method, parameters, body_object)
          response = self.build_response(result)
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/google/requests/compute/set_common_instance_metadata.rb
ns-fog-1.22.11 lib/fog/google/requests/compute/set_common_instance_metadata.rb
ns-fog-1.22.10 lib/fog/google/requests/compute/set_common_instance_metadata.rb
ns-fog-1.22.9 lib/fog/google/requests/compute/set_common_instance_metadata.rb
ns-fog-1.22.8 lib/fog/google/requests/compute/set_common_instance_metadata.rb
ns-fog-1.22.7 lib/fog/google/requests/compute/set_common_instance_metadata.rb
ns-fog-1.22.6 lib/fog/google/requests/compute/set_common_instance_metadata.rb
fog-1.23.0 lib/fog/google/requests/compute/set_common_instance_metadata.rb
ns-fog-1.22.4 lib/fog/google/requests/compute/set_common_instance_metadata.rb
ns-fog-1.22.3 lib/fog/google/requests/compute/set_common_instance_metadata.rb
ns-fog-1.22.2 lib/fog/google/requests/compute/set_common_instance_metadata.rb
fog-1.22.1 lib/fog/google/requests/compute/set_common_instance_metadata.rb