Sha256: 0516850edf40ff6a3766cb1875f06149b5ff88110db50f841bd6b1e2aca655e9
Contents?: true
Size: 865 Bytes
Versions: 14
Compression:
Stored size: 865 Bytes
Contents
module Fog module Compute class Google ## # Represents a Project resource # # @see https://developers.google.com/compute/docs/reference/latest/projects class Project < Fog::Model identity :name attribute :kind attribute :id attribute :common_instance_metadata, :aliases => "commonInstanceMetadata" attribute :creation_timestamp, :aliases => "creationTimestamp" attribute :description attribute :quotas attribute :self_link, :aliases => "selfLink" def set_metadata(metadata = {}) requires :identity data = service.set_common_instance_metadata(identity, common_instance_metadata["fingerprint"], metadata) Fog::Compute::Google::Operations.new(:service => service).get(data.body["name"]) end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems