Joe Gregorio | 075572b | 2012-07-09 16:53:09 -0400 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, h1, h2, h3, div, span, p, pre, a { |
| 5 | margin: 0; |
| 6 | padding: 0; |
| 7 | border: 0; |
| 8 | font-weight: inherit; |
| 9 | font-style: inherit; |
| 10 | font-size: 100%; |
| 11 | font-family: inherit; |
| 12 | vertical-align: baseline; |
| 13 | } |
| 14 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, h2, h3 { |
| 50 | border-bottom: solid #CCC 1px; |
| 51 | } |
| 52 | |
| 53 | .toc_element { |
| 54 | margin-top: 0.5em; |
| 55 | } |
| 56 | |
| 57 | .firstline { |
| 58 | margin-left: 2 em; |
| 59 | } |
| 60 | |
| 61 | .method { |
| 62 | margin-top: 1em; |
| 63 | border: solid 1px #CCC; |
| 64 | padding: 1em; |
| 65 | background: #EEE; |
| 66 | } |
| 67 | |
| 68 | .details { |
| 69 | font-weight: bold; |
| 70 | font-size: 14px; |
| 71 | } |
| 72 | |
| 73 | </style> |
| 74 | |
| 75 | <h1><a href="compute_v1beta12.html">Compute Engine API</a> . <a href="compute_v1beta12.projects.html">projects</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
| 78 | <code><a href="#get">get(project)</a></code></p> |
| 79 | <p class="firstline">Returns the specified project resource.</p> |
| 80 | <p class="toc_element"> |
| 81 | <code><a href="#setCommonInstanceMetadata">setCommonInstanceMetadata(project, body)</a></code></p> |
| 82 | <p class="firstline">Sets metadata common to all instances within the specified project using the data included in the request.</p> |
| 83 | <h3>Method Details</h3> |
| 84 | <div class="method"> |
| 85 | <code class="details" id="get">get(project)</code> |
| 86 | <pre>Returns the specified project resource. |
| 87 | |
| 88 | Args: |
| 89 | project: string, Name of the project resource to retrieve. (required) |
| 90 | |
| 91 | Returns: |
| 92 | An object of the form: |
| 93 | |
| 94 | { |
| 95 | "kind": "compute#project", # Type of the resource. |
| 96 | "description": "A String", # An optional textual description of the resource. |
| 97 | "commonInstanceMetadata": { # Metadata key/value pairs available to all instances contained in this project. |
| 98 | "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB. |
| 99 | { |
| 100 | "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. |
Joe Gregorio | 7578da5 | 2012-11-01 14:20:00 -0400 | [diff] [blame] | 101 | "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. |
Joe Gregorio | 075572b | 2012-07-09 16:53:09 -0400 | [diff] [blame] | 102 | }, |
| 103 | ], |
| 104 | "kind": "compute#metadata", # Type of the resource. |
| 105 | }, |
| 106 | "externalIpAddresses": [ # Internet available IP addresses available for use in this project. |
| 107 | "A String", |
| 108 | ], |
| 109 | "quotas": [ # Quotas assigned to this project. |
| 110 | { |
| 111 | "usage": 3.14, # Current usage of this metric. |
| 112 | "metric": "A String", # Name of the quota metric. |
| 113 | "limit": 3.14, # Quota limit for this metric. |
| 114 | }, |
| 115 | ], |
| 116 | "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only). |
| 117 | "id": "A String", # Unique identifier for the resource; defined by the server (output only). |
| 118 | "selfLink": "A String", # Server defined URL for the resource (output only). |
| 119 | "name": "A String", # Name of the resource. |
| 120 | }</pre> |
| 121 | </div> |
| 122 | |
| 123 | <div class="method"> |
| 124 | <code class="details" id="setCommonInstanceMetadata">setCommonInstanceMetadata(project, body)</code> |
| 125 | <pre>Sets metadata common to all instances within the specified project using the data included in the request. |
| 126 | |
| 127 | Args: |
| 128 | project: string, Name of the project scoping this request. (required) |
| 129 | body: object, The request body. (required) |
| 130 | The object takes the form of: |
| 131 | |
| 132 | { |
| 133 | "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB. |
| 134 | { |
| 135 | "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. |
Joe Gregorio | 7578da5 | 2012-11-01 14:20:00 -0400 | [diff] [blame] | 136 | "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. |
Joe Gregorio | 075572b | 2012-07-09 16:53:09 -0400 | [diff] [blame] | 137 | }, |
| 138 | ], |
| 139 | "kind": "compute#metadata", # Type of the resource. |
| 140 | } |
| 141 | |
| 142 | </pre> |
| 143 | </div> |
| 144 | |
| 145 | </body></html> |