blob: 26f5d52a9b6aed2258d6402d2c6c71db058018e5 [file] [log] [blame]
John Asmuth614db982014-04-24 15:46:26 -04001<html><body>
2<style>
3
4body, 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
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, 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_v1.html">Compute Engine API</a> . <a href="compute_v1.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">
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +000081 <code><a href="#moveDisk">moveDisk(project, body)</a></code></p>
82<p class="firstline">Moves a persistent disk from one zone to another.</p>
83<p class="toc_element">
84 <code><a href="#moveInstance">moveInstance(project, body)</a></code></p>
85<p class="firstline">Moves an instance and its attached persistent disks from one zone to another.</p>
86<p class="toc_element">
John Asmuth614db982014-04-24 15:46:26 -040087 <code><a href="#setCommonInstanceMetadata">setCommonInstanceMetadata(project, body)</a></code></p>
88<p class="firstline">Sets metadata common to all instances within the specified project using the data included in the request.</p>
Craig Citro065b5302014-08-14 00:47:23 -070089<p class="toc_element">
90 <code><a href="#setUsageExportBucket">setUsageExportBucket(project, body)</a></code></p>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +000091<p class="firstline">Enables the usage export feature and sets the usage export bucket where reports are stored. If you provide an empty request body using this method, the usage export feature will be disabled.</p>
John Asmuth614db982014-04-24 15:46:26 -040092<h3>Method Details</h3>
93<div class="method">
94 <code class="details" id="get">get(project)</code>
95 <pre>Returns the specified project resource.
96
97Args:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +000098 project: string, Project ID for this request. (required)
John Asmuth614db982014-04-24 15:46:26 -040099
100Returns:
101 An object of the form:
102
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000103 { # A Project resource. Projects can only be created in the Google Developers Console. Unless marked otherwise, values can only be modified in the console.
104 "kind": "compute#project", # [Output Only] Type of the resource. Always compute#project for projects.
Takashi Matsuo06694102015-09-11 13:55:40 -0700105 "enabledFeatures": [ # Restricted features enabled for use on this project.
106 "A String",
107 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000108 "commonInstanceMetadata": { # A metadata key/value entry. # Metadata key/value pairs available to all instances contained in this project. See Custom metadata for more information.
John Asmuth614db982014-04-24 15:46:26 -0400109 "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
110 {
111 "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 32768 bytes.
112 "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 not conflict with any other metadata keys for the project.
113 },
114 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000115 "kind": "compute#metadata", # [Output Only] Type of the resource. Always compute#metadata for metadata.
116 "fingerprint": "A String", # Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata.
John Asmuth614db982014-04-24 15:46:26 -0400117 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000118 "quotas": [ # [Output Only] Quotas assigned to this project.
John Asmuth614db982014-04-24 15:46:26 -0400119 { # A quotas entry.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000120 "usage": 3.14, # [Output Only] Current usage of this metric.
121 "metric": "A String", # [Output Only] Name of the quota metric.
122 "limit": 3.14, # [Output Only] Quota limit for this metric.
John Asmuth614db982014-04-24 15:46:26 -0400123 },
124 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700125 "name": "A String", # Name of the resource.
Craig Citro065b5302014-08-14 00:47:23 -0700126 "usageExportLocation": { # The location in Cloud Storage and naming method of the daily usage report. Contains bucket_name and report_name prefix. # The location in Cloud Storage and naming method of the daily usage report.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000127 "bucketName": "A String", # The name of an existing bucket in Cloud Storage where the usage report object is stored. The Google Service Account is granted write access to this bucket. This is just the bucket name, with no gs:// or https://storage.googleapis.com/ in front of it.
128 "reportNamePrefix": "A String", # An optional prefix for the name of the usage report object stored in bucketName. If not supplied, defaults to usage. The report is stored as a CSV file named report_name_prefix_gce_YYYYMMDD.csv where YYYYMMDD is the day of the usage according to Pacific Time. If you supply a prefix, it should conform to Cloud Storage object naming conventions.
Craig Citro065b5302014-08-14 00:47:23 -0700129 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000130 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
131 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
Takashi Matsuo06694102015-09-11 13:55:40 -0700132 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
133 "description": "A String", # An optional textual description of the resource.
John Asmuth614db982014-04-24 15:46:26 -0400134 }</pre>
135</div>
136
137<div class="method">
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000138 <code class="details" id="moveDisk">moveDisk(project, body)</code>
139 <pre>Moves a persistent disk from one zone to another.
140
141Args:
142 project: string, Project ID for this request. (required)
143 body: object, The request body. (required)
144 The object takes the form of:
145
146{
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000147 "targetDisk": "A String", # The URL of the target disk to move. This can be a full or partial URL. For example, the following are all valid URLs to a disk:
148 # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
149 # - projects/project/zones/zone/disks/disk
150 # - zones/zone/disks/disk
151 "destinationZone": "A String", # The URL of the destination zone to move the disk to. This can be a full or partial URL. For example, the following are all valid URLs to a zone:
152 # - https://www.googleapis.com/compute/v1/projects/project/zones/zone
153 # - projects/project/zones/zone
154 # - zones/zone
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000155 }
156
157
158Returns:
159 An object of the form:
160
Takashi Matsuo06694102015-09-11 13:55:40 -0700161 { # An Operation resource, used to manage asynchronous API requests.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000162 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
Takashi Matsuo06694102015-09-11 13:55:40 -0700163 "clientOperationId": "A String", # [Output Only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all Operation resources in the project.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000164 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
165 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
166 "zone": "A String", # [Output Only] URL of the zone where the operation resides.
167 "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete.
168 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000169 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should monotonically increase as the operation progresses.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000170 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as 404.
171 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
172 "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE.
173 "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format.
174 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
175 {
176 "message": "A String", # [Output Only] Optional human-readable details for this warning.
177 "code": "A String", # [Output Only] The warning type identifier for this warning.
178 "data": [ # [Output Only] Metadata for this warning in key: value format.
179 {
180 "value": "A String", # [Output Only] A warning data value corresponding to the key.
181 "key": "A String", # [Output Only] A key for the warning data.
182 },
183 ],
184 },
185 ],
186 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
187 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format.
188 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources.
189 "name": "A String", # [Output Only] Name of the resource.
190 "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources.
191 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
192 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
193 {
194 "message": "A String", # [Output Only] An optional, human-readable error message.
195 "code": "A String", # [Output Only] The error type identifier for this error.
196 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional.
197 },
198 ],
199 },
200 "endTime": "A String", # [Output Only] The time that this operation was completed. This is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -0700201 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000202 "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating.
203 }</pre>
204</div>
205
206<div class="method">
207 <code class="details" id="moveInstance">moveInstance(project, body)</code>
208 <pre>Moves an instance and its attached persistent disks from one zone to another.
209
210Args:
211 project: string, Project ID for this request. (required)
212 body: object, The request body. (required)
213 The object takes the form of:
214
215{
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000216 "targetInstance": "A String", # The URL of the target instance to move. This can be a full or partial URL. For example, the following are all valid URLs to an instance:
217 # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance
218 # - projects/project/zones/zone/instances/instance
219 # - zones/zone/instances/instance
220 "destinationZone": "A String", # The URL of the destination zone to move the instance to. This can be a full or partial URL. For example, the following are all valid URLs to a zone:
221 # - https://www.googleapis.com/compute/v1/projects/project/zones/zone
222 # - projects/project/zones/zone
223 # - zones/zone
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000224 }
225
226
227Returns:
228 An object of the form:
229
Takashi Matsuo06694102015-09-11 13:55:40 -0700230 { # An Operation resource, used to manage asynchronous API requests.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000231 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
Takashi Matsuo06694102015-09-11 13:55:40 -0700232 "clientOperationId": "A String", # [Output Only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all Operation resources in the project.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000233 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
234 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
235 "zone": "A String", # [Output Only] URL of the zone where the operation resides.
236 "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete.
237 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000238 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should monotonically increase as the operation progresses.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000239 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as 404.
240 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
241 "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE.
242 "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format.
243 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
244 {
245 "message": "A String", # [Output Only] Optional human-readable details for this warning.
246 "code": "A String", # [Output Only] The warning type identifier for this warning.
247 "data": [ # [Output Only] Metadata for this warning in key: value format.
248 {
249 "value": "A String", # [Output Only] A warning data value corresponding to the key.
250 "key": "A String", # [Output Only] A key for the warning data.
251 },
252 ],
253 },
254 ],
255 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
256 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format.
257 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources.
258 "name": "A String", # [Output Only] Name of the resource.
259 "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources.
260 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
261 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
262 {
263 "message": "A String", # [Output Only] An optional, human-readable error message.
264 "code": "A String", # [Output Only] The error type identifier for this error.
265 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional.
266 },
267 ],
268 },
269 "endTime": "A String", # [Output Only] The time that this operation was completed. This is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -0700270 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000271 "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating.
272 }</pre>
273</div>
274
275<div class="method">
John Asmuth614db982014-04-24 15:46:26 -0400276 <code class="details" id="setCommonInstanceMetadata">setCommonInstanceMetadata(project, body)</code>
277 <pre>Sets metadata common to all instances within the specified project using the data included in the request.
278
279Args:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000280 project: string, Project ID for this request. (required)
John Asmuth614db982014-04-24 15:46:26 -0400281 body: object, The request body. (required)
282 The object takes the form of:
283
284{ # A metadata key/value entry.
285 "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
286 {
287 "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 32768 bytes.
288 "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 not conflict with any other metadata keys for the project.
289 },
290 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000291 "kind": "compute#metadata", # [Output Only] Type of the resource. Always compute#metadata for metadata.
292 "fingerprint": "A String", # Specifies a fingerprint for this request, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata.
John Asmuth614db982014-04-24 15:46:26 -0400293}
294
295
296Returns:
297 An object of the form:
298
Takashi Matsuo06694102015-09-11 13:55:40 -0700299 { # An Operation resource, used to manage asynchronous API requests.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000300 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
Takashi Matsuo06694102015-09-11 13:55:40 -0700301 "clientOperationId": "A String", # [Output Only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all Operation resources in the project.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000302 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800303 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000304 "zone": "A String", # [Output Only] URL of the zone where the operation resides.
305 "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete.
306 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000307 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should monotonically increase as the operation progresses.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000308 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as 404.
Craig Citroe633be12015-03-02 13:40:36 -0800309 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000310 "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE.
311 "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format.
312 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
John Asmuth614db982014-04-24 15:46:26 -0400313 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000314 "message": "A String", # [Output Only] Optional human-readable details for this warning.
315 "code": "A String", # [Output Only] The warning type identifier for this warning.
316 "data": [ # [Output Only] Metadata for this warning in key: value format.
John Asmuth614db982014-04-24 15:46:26 -0400317 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000318 "value": "A String", # [Output Only] A warning data value corresponding to the key.
319 "key": "A String", # [Output Only] A key for the warning data.
John Asmuth614db982014-04-24 15:46:26 -0400320 },
321 ],
322 },
323 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000324 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
325 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format.
326 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources.
327 "name": "A String", # [Output Only] Name of the resource.
328 "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources.
329 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800330 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -0400331 {
Craig Citroe633be12015-03-02 13:40:36 -0800332 "message": "A String", # [Output Only] An optional, human-readable error message.
333 "code": "A String", # [Output Only] The error type identifier for this error.
334 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional.
John Asmuth614db982014-04-24 15:46:26 -0400335 },
336 ],
337 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000338 "endTime": "A String", # [Output Only] The time that this operation was completed. This is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -0700339 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000340 "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating.
John Asmuth614db982014-04-24 15:46:26 -0400341 }</pre>
342</div>
343
Craig Citro065b5302014-08-14 00:47:23 -0700344<div class="method">
345 <code class="details" id="setUsageExportBucket">setUsageExportBucket(project, body)</code>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000346 <pre>Enables the usage export feature and sets the usage export bucket where reports are stored. If you provide an empty request body using this method, the usage export feature will be disabled.
Craig Citro065b5302014-08-14 00:47:23 -0700347
348Args:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000349 project: string, Project ID for this request. (required)
Craig Citro065b5302014-08-14 00:47:23 -0700350 body: object, The request body. (required)
351 The object takes the form of:
352
353{ # The location in Cloud Storage and naming method of the daily usage report. Contains bucket_name and report_name prefix.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000354 "bucketName": "A String", # The name of an existing bucket in Cloud Storage where the usage report object is stored. The Google Service Account is granted write access to this bucket. This is just the bucket name, with no gs:// or https://storage.googleapis.com/ in front of it.
355 "reportNamePrefix": "A String", # An optional prefix for the name of the usage report object stored in bucketName. If not supplied, defaults to usage. The report is stored as a CSV file named report_name_prefix_gce_YYYYMMDD.csv where YYYYMMDD is the day of the usage according to Pacific Time. If you supply a prefix, it should conform to Cloud Storage object naming conventions.
Craig Citro065b5302014-08-14 00:47:23 -0700356 }
357
358
359Returns:
360 An object of the form:
361
Takashi Matsuo06694102015-09-11 13:55:40 -0700362 { # An Operation resource, used to manage asynchronous API requests.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000363 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
Takashi Matsuo06694102015-09-11 13:55:40 -0700364 "clientOperationId": "A String", # [Output Only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all Operation resources in the project.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000365 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800366 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000367 "zone": "A String", # [Output Only] URL of the zone where the operation resides.
368 "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete.
369 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000370 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should monotonically increase as the operation progresses.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000371 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as 404.
Craig Citroe633be12015-03-02 13:40:36 -0800372 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000373 "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE.
374 "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format.
375 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
Craig Citro065b5302014-08-14 00:47:23 -0700376 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000377 "message": "A String", # [Output Only] Optional human-readable details for this warning.
378 "code": "A String", # [Output Only] The warning type identifier for this warning.
379 "data": [ # [Output Only] Metadata for this warning in key: value format.
Craig Citro065b5302014-08-14 00:47:23 -0700380 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000381 "value": "A String", # [Output Only] A warning data value corresponding to the key.
382 "key": "A String", # [Output Only] A key for the warning data.
Craig Citro065b5302014-08-14 00:47:23 -0700383 },
384 ],
385 },
386 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000387 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
388 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format.
389 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources.
390 "name": "A String", # [Output Only] Name of the resource.
391 "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources.
392 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800393 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
Craig Citro065b5302014-08-14 00:47:23 -0700394 {
Craig Citroe633be12015-03-02 13:40:36 -0800395 "message": "A String", # [Output Only] An optional, human-readable error message.
396 "code": "A String", # [Output Only] The error type identifier for this error.
397 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional.
Craig Citro065b5302014-08-14 00:47:23 -0700398 },
399 ],
400 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000401 "endTime": "A String", # [Output Only] The time that this operation was completed. This is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -0700402 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000403 "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating.
Craig Citro065b5302014-08-14 00:47:23 -0700404 }</pre>
405</div>
406
John Asmuth614db982014-04-24 15:46:26 -0400407</body></html>