blob: 6adeedf6586df1bd551963df4261a6e047e0ae9d [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.zoneOperations.html">zoneOperations</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#delete">delete(project, zone, operation)</a></code></p>
79<p class="firstline">Deletes the specified zone-specific operation resource.</p>
80<p class="toc_element">
81 <code><a href="#get">get(project, zone, operation)</a></code></p>
82<p class="firstline">Retrieves the specified zone-specific operation resource.</p>
83<p class="toc_element">
84 <code><a href="#list">list(project, zone, maxResults=None, pageToken=None, filter=None)</a></code></p>
85<p class="firstline">Retrieves the list of operation resources contained within the specified zone.</p>
86<p class="toc_element">
87 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
88<p class="firstline">Retrieves the next page of results.</p>
89<h3>Method Details</h3>
90<div class="method">
91 <code class="details" id="delete">delete(project, zone, operation)</code>
92 <pre>Deletes the specified zone-specific operation resource.
93
94Args:
95 project: string, Name of the project scoping this request. (required)
96 zone: string, Name of the zone scoping this request. (required)
97 operation: string, Name of the operation resource to delete. (required)
98</pre>
99</div>
100
101<div class="method">
102 <code class="details" id="get">get(project, zone, operation)</code>
103 <pre>Retrieves the specified zone-specific operation resource.
104
105Args:
106 project: string, Name of the project scoping this request. (required)
107 zone: string, Name of the zone scoping this request. (required)
108 operation: string, Name of the operation resource to return. (required)
109
110Returns:
111 An object of the form:
112
113 { # An operation resource, used to manage asynchronous API requests.
114 "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
115 "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
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 "zone": "A String", # URL of the zone where the operation resides (output only).
119 "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
120 "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
121 "progress": 42, # 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 (output only).
122 "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
123 "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
124 "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
125 "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
126 "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
127 {
128 "message": "A String", # Optional human-readable details for this warning.
129 "code": "A String", # The warning type identifier for this warning.
130 "data": [ # Metadata for this warning in 'key: value' format.
131 {
132 "value": "A String", # A warning data value corresponding to the key.
133 "key": "A String", # A key for the warning data.
134 },
135 ],
136 },
137 ],
138 "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
139 "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
140 "kind": "compute#operation", # Type of the resource.
141 "name": "A String", # Name of the resource (output only).
142 "region": "A String", # URL of the region where the operation resides (output only).
143 "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
144 "errors": [ # The array of errors encountered while processing this operation.
145 {
146 "message": "A String", # An optional, human-readable error message.
147 "code": "A String", # The error type identifier for this error.
148 "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
149 },
150 ],
151 },
152 "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
153 "selfLink": "A String", # Server defined URL for the resource (output only).
154 "targetLink": "A String", # URL of the resource the operation is mutating (output only).
155 }</pre>
156</div>
157
158<div class="method">
159 <code class="details" id="list">list(project, zone, maxResults=None, pageToken=None, filter=None)</code>
160 <pre>Retrieves the list of operation resources contained within the specified zone.
161
162Args:
163 project: string, Name of the project scoping this request. (required)
164 zone: string, Name of the zone scoping this request. (required)
165 maxResults: integer, Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.
166 pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
167 filter: string, Optional. Filter expression for filtering listed resources.
168
169Returns:
170 An object of the form:
171
172 { # Contains a list of operation resources.
173 "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
174 "items": [ # The operation resources.
175 { # An operation resource, used to manage asynchronous API requests.
176 "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
177 "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
178 "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
179 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
180 "zone": "A String", # URL of the zone where the operation resides (output only).
181 "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
182 "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
183 "progress": 42, # 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 (output only).
184 "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
185 "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
186 "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
187 "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
188 "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
189 {
190 "message": "A String", # Optional human-readable details for this warning.
191 "code": "A String", # The warning type identifier for this warning.
192 "data": [ # Metadata for this warning in 'key: value' format.
193 {
194 "value": "A String", # A warning data value corresponding to the key.
195 "key": "A String", # A key for the warning data.
196 },
197 ],
198 },
199 ],
200 "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
201 "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
202 "kind": "compute#operation", # Type of the resource.
203 "name": "A String", # Name of the resource (output only).
204 "region": "A String", # URL of the region where the operation resides (output only).
205 "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
206 "errors": [ # The array of errors encountered while processing this operation.
207 {
208 "message": "A String", # An optional, human-readable error message.
209 "code": "A String", # The error type identifier for this error.
210 "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
211 },
212 ],
213 },
214 "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
215 "selfLink": "A String", # Server defined URL for the resource (output only).
216 "targetLink": "A String", # URL of the resource the operation is mutating (output only).
217 },
218 ],
219 "kind": "compute#operationList", # Type of resource.
220 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
221 "selfLink": "A String", # Server defined URL for this resource (output only).
222 }</pre>
223</div>
224
225<div class="method">
226 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
227 <pre>Retrieves the next page of results.
228
229Args:
230 previous_request: The request for the previous page. (required)
231 previous_response: The response from the request for the previous page. (required)
232
233Returns:
234 A request object that you can call 'execute()' on to request the next
235 page. Returns None if there are no more items in the collection.
236 </pre>
237</div>
238
239</body></html>