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