blob: 9d7ecc689280a7bbc5de744d6d16772a2a662c4b [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.images.html">images</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#delete">delete(project, image)</a></code></p>
79<p class="firstline">Deletes the specified image resource.</p>
80<p class="toc_element">
81 <code><a href="#deprecate">deprecate(project, image, body)</a></code></p>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +000082<p class="firstline">Sets the deprecation status of an image.</p>
John Asmuth614db982014-04-24 15:46:26 -040083<p class="toc_element">
84 <code><a href="#get">get(project, image)</a></code></p>
85<p class="firstline">Returns the specified image resource.</p>
86<p class="toc_element">
87 <code><a href="#insert">insert(project, body)</a></code></p>
88<p class="firstline">Creates an image resource in the specified project using the data included in the request.</p>
89<p class="toc_element">
90 <code><a href="#list">list(project, maxResults=None, pageToken=None, filter=None)</a></code></p>
91<p class="firstline">Retrieves the list of image resources available to the specified project.</p>
92<p class="toc_element">
93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
94<p class="firstline">Retrieves the next page of results.</p>
95<h3>Method Details</h3>
96<div class="method">
97 <code class="details" id="delete">delete(project, image)</code>
98 <pre>Deletes the specified image resource.
99
100Args:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000101 project: string, Project ID for this request. (required)
John Asmuth614db982014-04-24 15:46:26 -0400102 image: string, Name of the image resource to delete. (required)
103
104Returns:
105 An object of the form:
106
107 { # An operation resource, used to manage asynchronous API requests.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000108 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
109 "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
110 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800111 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000112 "zone": "A String", # [Output Only] URL of the zone where the operation resides.
113 "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete.
114 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
115 "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 be monotonically increasing as the operation progresses.
116 "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 -0800117 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000118 "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE.
119 "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format.
120 "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 -0400121 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000122 "message": "A String", # [Output Only] Optional human-readable details for this warning.
123 "code": "A String", # [Output Only] The warning type identifier for this warning.
124 "data": [ # [Output Only] Metadata for this warning in key: value format.
John Asmuth614db982014-04-24 15:46:26 -0400125 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000126 "value": "A String", # [Output Only] A warning data value corresponding to the key.
127 "key": "A String", # [Output Only] A key for the warning data.
John Asmuth614db982014-04-24 15:46:26 -0400128 },
129 ],
130 },
131 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000132 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
133 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format.
134 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources.
135 "name": "A String", # [Output Only] Name of the resource.
136 "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources.
137 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800138 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -0400139 {
Craig Citroe633be12015-03-02 13:40:36 -0800140 "message": "A String", # [Output Only] An optional, human-readable error message.
141 "code": "A String", # [Output Only] The error type identifier for this error.
142 "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 -0400143 },
144 ],
145 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000146 "endTime": "A String", # [Output Only] The time that this operation was completed. This is in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800147 "selfLink": "A String", # [Output Only] Server defined URL for the resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000148 "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating.
John Asmuth614db982014-04-24 15:46:26 -0400149 }</pre>
150</div>
151
152<div class="method">
153 <code class="details" id="deprecate">deprecate(project, image, body)</code>
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000154 <pre>Sets the deprecation status of an image.
155
156If an empty request body is given, clears the deprecation status instead.
John Asmuth614db982014-04-24 15:46:26 -0400157
158Args:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000159 project: string, Project ID for this request. (required)
John Asmuth614db982014-04-24 15:46:26 -0400160 image: string, Image name. (required)
161 body: object, The request body. (required)
162 The object takes the form of:
163
164{ # Deprecation status for a public resource.
165 "deleted": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.
166 "deprecated": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000167 "state": "A String", # The deprecation state of this resource. This can be DEPRECATED, OBSOLETE, or DELETED. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error.
John Asmuth614db982014-04-24 15:46:26 -0400168 "obsolete": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000169 "replacement": "A String", # The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource.
John Asmuth614db982014-04-24 15:46:26 -0400170}
171
172
173Returns:
174 An object of the form:
175
176 { # An operation resource, used to manage asynchronous API requests.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000177 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
178 "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
179 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800180 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000181 "zone": "A String", # [Output Only] URL of the zone where the operation resides.
182 "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete.
183 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
184 "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 be monotonically increasing as the operation progresses.
185 "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 -0800186 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000187 "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE.
188 "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format.
189 "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 -0400190 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000191 "message": "A String", # [Output Only] Optional human-readable details for this warning.
192 "code": "A String", # [Output Only] The warning type identifier for this warning.
193 "data": [ # [Output Only] Metadata for this warning in key: value format.
John Asmuth614db982014-04-24 15:46:26 -0400194 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000195 "value": "A String", # [Output Only] A warning data value corresponding to the key.
196 "key": "A String", # [Output Only] A key for the warning data.
John Asmuth614db982014-04-24 15:46:26 -0400197 },
198 ],
199 },
200 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000201 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
202 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format.
203 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources.
204 "name": "A String", # [Output Only] Name of the resource.
205 "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources.
206 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800207 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -0400208 {
Craig Citroe633be12015-03-02 13:40:36 -0800209 "message": "A String", # [Output Only] An optional, human-readable error message.
210 "code": "A String", # [Output Only] The error type identifier for this error.
211 "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 -0400212 },
213 ],
214 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000215 "endTime": "A String", # [Output Only] The time that this operation was completed. This is in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800216 "selfLink": "A String", # [Output Only] Server defined URL for the resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000217 "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating.
John Asmuth614db982014-04-24 15:46:26 -0400218 }</pre>
219</div>
220
221<div class="method">
222 <code class="details" id="get">get(project, image)</code>
223 <pre>Returns the specified image resource.
224
225Args:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000226 project: string, Project ID for this request. (required)
John Asmuth614db982014-04-24 15:46:26 -0400227 image: string, Name of the image resource to return. (required)
228
229Returns:
230 An object of the form:
231
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000232 { # An Image resource.
233 "status": "A String", # [Output Only] The status of the image. An image can be used to create other resources, such as instances, only after the image has been successfully created and the status is set to READY. Possible values are FAILED, PENDING, or READY.
234 "kind": "compute#image", # [Output Only] Type of the resource. Always compute#image for images.
John Asmuth614db982014-04-24 15:46:26 -0400235 "description": "A String", # Textual description of the resource; provided by the client when the resource is created.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000236 "rawDisk": { # The parameters of the raw disk image.
237 "containerType": "A String", # The format used to encode and transmit the block device, which should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created.
238 "source": "A String", # The full Google Cloud Storage URL where the disk image is stored. You must provide either this property or the sourceDisk property but not both.
John Asmuth614db982014-04-24 15:46:26 -0400239 "sha1Checksum": "A String", # An optional SHA1 checksum of the disk image before unpackaging; provided by the client when the disk image is created.
240 },
241 "deprecated": { # Deprecation status for a public resource. # The deprecation status associated with this image.
242 "deleted": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.
243 "deprecated": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000244 "state": "A String", # The deprecation state of this resource. This can be DEPRECATED, OBSOLETE, or DELETED. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error.
John Asmuth614db982014-04-24 15:46:26 -0400245 "obsolete": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000246 "replacement": "A String", # The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource.
John Asmuth614db982014-04-24 15:46:26 -0400247 },
248 "archiveSizeBytes": "A String", # Size of the image tar.gz archive stored in Google Cloud Storage (in bytes).
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000249 "sourceDiskId": "A String", # The ID value of the disk used to create this image. This value may be used to determine whether the image was taken from the current or a previous instance of a given disk name.
250 "diskSizeGb": "A String", # Size of the image when restored onto a persistent disk (in GB).
251 "sourceDisk": "A String", # URL of the The source disk used to create this image. This can be a full or valid partial URL. You must provide either this property or the rawDisk.source property but not both to create an image. For example, the following are valid values:
252 # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disk/disk
253 # - projects/project/zones/zone/disk/disk
254 # - zones/zone/disks/disk
255 "licenses": [ # Any applicable publicly visible licenses.
Craig Citro065b5302014-08-14 00:47:23 -0700256 "A String",
257 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000258 "sourceType": "RAW", # The type of the image used to create this disk. The default and only value is RAW
259 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
260 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
261 "selfLink": "A String", # [Output Only] Server defined URL for the resource.
262 "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
John Asmuth614db982014-04-24 15:46:26 -0400263 }</pre>
264</div>
265
266<div class="method">
267 <code class="details" id="insert">insert(project, body)</code>
268 <pre>Creates an image resource in the specified project using the data included in the request.
269
270Args:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000271 project: string, Project ID for this request. (required)
John Asmuth614db982014-04-24 15:46:26 -0400272 body: object, The request body. (required)
273 The object takes the form of:
274
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000275{ # An Image resource.
276 "status": "A String", # [Output Only] The status of the image. An image can be used to create other resources, such as instances, only after the image has been successfully created and the status is set to READY. Possible values are FAILED, PENDING, or READY.
277 "kind": "compute#image", # [Output Only] Type of the resource. Always compute#image for images.
John Asmuth614db982014-04-24 15:46:26 -0400278 "description": "A String", # Textual description of the resource; provided by the client when the resource is created.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000279 "rawDisk": { # The parameters of the raw disk image.
280 "containerType": "A String", # The format used to encode and transmit the block device, which should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created.
281 "source": "A String", # The full Google Cloud Storage URL where the disk image is stored. You must provide either this property or the sourceDisk property but not both.
John Asmuth614db982014-04-24 15:46:26 -0400282 "sha1Checksum": "A String", # An optional SHA1 checksum of the disk image before unpackaging; provided by the client when the disk image is created.
283 },
284 "deprecated": { # Deprecation status for a public resource. # The deprecation status associated with this image.
285 "deleted": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.
286 "deprecated": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000287 "state": "A String", # The deprecation state of this resource. This can be DEPRECATED, OBSOLETE, or DELETED. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error.
John Asmuth614db982014-04-24 15:46:26 -0400288 "obsolete": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000289 "replacement": "A String", # The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource.
John Asmuth614db982014-04-24 15:46:26 -0400290 },
291 "archiveSizeBytes": "A String", # Size of the image tar.gz archive stored in Google Cloud Storage (in bytes).
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000292 "sourceDiskId": "A String", # The ID value of the disk used to create this image. This value may be used to determine whether the image was taken from the current or a previous instance of a given disk name.
293 "diskSizeGb": "A String", # Size of the image when restored onto a persistent disk (in GB).
294 "sourceDisk": "A String", # URL of the The source disk used to create this image. This can be a full or valid partial URL. You must provide either this property or the rawDisk.source property but not both to create an image. For example, the following are valid values:
295 # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disk/disk
296 # - projects/project/zones/zone/disk/disk
297 # - zones/zone/disks/disk
298 "licenses": [ # Any applicable publicly visible licenses.
Craig Citro065b5302014-08-14 00:47:23 -0700299 "A String",
300 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000301 "sourceType": "RAW", # The type of the image used to create this disk. The default and only value is RAW
302 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
303 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
304 "selfLink": "A String", # [Output Only] Server defined URL for the resource.
305 "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
John Asmuth614db982014-04-24 15:46:26 -0400306 }
307
308
309Returns:
310 An object of the form:
311
312 { # An operation resource, used to manage asynchronous API requests.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000313 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
314 "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
315 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800316 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000317 "zone": "A String", # [Output Only] URL of the zone where the operation resides.
318 "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete.
319 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
320 "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 be monotonically increasing as the operation progresses.
321 "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 -0800322 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000323 "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE.
324 "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format.
325 "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 -0400326 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000327 "message": "A String", # [Output Only] Optional human-readable details for this warning.
328 "code": "A String", # [Output Only] The warning type identifier for this warning.
329 "data": [ # [Output Only] Metadata for this warning in key: value format.
John Asmuth614db982014-04-24 15:46:26 -0400330 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000331 "value": "A String", # [Output Only] A warning data value corresponding to the key.
332 "key": "A String", # [Output Only] A key for the warning data.
John Asmuth614db982014-04-24 15:46:26 -0400333 },
334 ],
335 },
336 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000337 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
338 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format.
339 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources.
340 "name": "A String", # [Output Only] Name of the resource.
341 "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources.
342 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800343 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
John Asmuth614db982014-04-24 15:46:26 -0400344 {
Craig Citroe633be12015-03-02 13:40:36 -0800345 "message": "A String", # [Output Only] An optional, human-readable error message.
346 "code": "A String", # [Output Only] The error type identifier for this error.
347 "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 -0400348 },
349 ],
350 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000351 "endTime": "A String", # [Output Only] The time that this operation was completed. This is in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800352 "selfLink": "A String", # [Output Only] Server defined URL for the resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000353 "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating.
John Asmuth614db982014-04-24 15:46:26 -0400354 }</pre>
355</div>
356
357<div class="method">
358 <code class="details" id="list">list(project, maxResults=None, pageToken=None, filter=None)</code>
359 <pre>Retrieves the list of image resources available to the specified project.
360
361Args:
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000362 project: string, Project ID for this request. (required)
John Asmuth614db982014-04-24 15:46:26 -0400363 maxResults: integer, Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.
364 pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
365 filter: string, Optional. Filter expression for filtering listed resources.
366
367Returns:
368 An object of the form:
369
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000370 { # Contains a list of Image resources.
John Asmuth614db982014-04-24 15:46:26 -0400371 "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
Craig Citroe633be12015-03-02 13:40:36 -0800372 "items": [ # A list of Image resources.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000373 { # An Image resource.
374 "status": "A String", # [Output Only] The status of the image. An image can be used to create other resources, such as instances, only after the image has been successfully created and the status is set to READY. Possible values are FAILED, PENDING, or READY.
375 "kind": "compute#image", # [Output Only] Type of the resource. Always compute#image for images.
John Asmuth614db982014-04-24 15:46:26 -0400376 "description": "A String", # Textual description of the resource; provided by the client when the resource is created.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000377 "rawDisk": { # The parameters of the raw disk image.
378 "containerType": "A String", # The format used to encode and transmit the block device, which should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created.
379 "source": "A String", # The full Google Cloud Storage URL where the disk image is stored. You must provide either this property or the sourceDisk property but not both.
John Asmuth614db982014-04-24 15:46:26 -0400380 "sha1Checksum": "A String", # An optional SHA1 checksum of the disk image before unpackaging; provided by the client when the disk image is created.
381 },
382 "deprecated": { # Deprecation status for a public resource. # The deprecation status associated with this image.
383 "deleted": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.
384 "deprecated": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000385 "state": "A String", # The deprecation state of this resource. This can be DEPRECATED, OBSOLETE, or DELETED. Operations which create a new resource using a DEPRECATED resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. Operations which use OBSOLETE or DELETED resources will be rejected and result in an error.
John Asmuth614db982014-04-24 15:46:26 -0400386 "obsolete": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000387 "replacement": "A String", # The URL of the suggested replacement for a deprecated resource. The suggested replacement resource must be the same kind of resource as the deprecated resource.
John Asmuth614db982014-04-24 15:46:26 -0400388 },
389 "archiveSizeBytes": "A String", # Size of the image tar.gz archive stored in Google Cloud Storage (in bytes).
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000390 "sourceDiskId": "A String", # The ID value of the disk used to create this image. This value may be used to determine whether the image was taken from the current or a previous instance of a given disk name.
391 "diskSizeGb": "A String", # Size of the image when restored onto a persistent disk (in GB).
392 "sourceDisk": "A String", # URL of the The source disk used to create this image. This can be a full or valid partial URL. You must provide either this property or the rawDisk.source property but not both to create an image. For example, the following are valid values:
393 # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disk/disk
394 # - projects/project/zones/zone/disk/disk
395 # - zones/zone/disks/disk
396 "licenses": [ # Any applicable publicly visible licenses.
Craig Citro065b5302014-08-14 00:47:23 -0700397 "A String",
398 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000399 "sourceType": "RAW", # The type of the image used to create this disk. The default and only value is RAW
400 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
401 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
402 "selfLink": "A String", # [Output Only] Server defined URL for the resource.
403 "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
John Asmuth614db982014-04-24 15:46:26 -0400404 },
405 ],
406 "kind": "compute#imageList", # Type of resource.
407 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
408 "selfLink": "A String", # Server defined URL for this resource (output only).
409 }</pre>
410</div>
411
412<div class="method">
413 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
414 <pre>Retrieves the next page of results.
415
416Args:
417 previous_request: The request for the previous page. (required)
418 previous_response: The response from the request for the previous page. (required)
419
420Returns:
421 A request object that you can call 'execute()' on to request the next
422 page. Returns None if there are no more items in the collection.
423 </pre>
424</div>
425
426</body></html>