Returns the specified project resource.
setCommonInstanceMetadata(project, body)
Sets metadata common to all instances within the specified project using the data included in the request.
get(project)
Returns the specified project resource. Args: project: string, Name of the project resource to retrieve. (required) Returns: An object of the form: { "kind": "compute#project", # Type of the resource. "description": "A String", # An optional textual description of the resource. "commonInstanceMetadata": { # Metadata key/value pairs available to all instances contained in this project. "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB. { "value": "A String", # Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 15000 bytes. "key": "A String", # Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must be unique. }, ], "kind": "compute#metadata", # Type of the resource. }, "externalIpAddresses": [ # Internet available IP addresses available for use in this project. "A String", ], "quotas": [ # Quotas assigned to this project. { "usage": 3.14, # Current usage of this metric. "metric": "A String", # Name of the quota metric. "limit": 3.14, # Quota limit for this metric. }, ], "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only). "id": "A String", # Unique identifier for the resource; defined by the server (output only). "selfLink": "A String", # Server defined URL for the resource (output only). "name": "A String", # Name of the resource. }
setCommonInstanceMetadata(project, body)
Sets metadata common to all instances within the specified project using the data included in the request. Args: project: string, Name of the project scoping this request. (required) body: object, The request body. (required) The object takes the form of: { "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB. { "value": "A String", # Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 15000 bytes. "key": "A String", # Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must be unique. }, ], "kind": "compute#metadata", # Type of the resource. }