• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<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_alpha.html">Compute Engine API</a> . <a href="compute_alpha.globalOrganizationOperations.html">globalOrganizationOperations</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#delete">delete(operation, parentId=None)</a></code></p>
79<p class="firstline">Deletes the specified Operations resource.</p>
80<p class="toc_element">
81  <code><a href="#get">get(operation, parentId=None)</a></code></p>
82<p class="firstline">Retrieves the specified Operations resource. Gets a list of operations by making a list() request.</p>
83<p class="toc_element">
84  <code><a href="#list">list(orderBy=None, filter=None, pageToken=None, maxResults=None, parentId=None)</a></code></p>
85<p class="firstline">Retrieves a list of Operation resources contained within the specified organization.</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<p class="toc_element">
90  <code><a href="#wait">wait(operation, parentId=None)</a></code></p>
91<p class="firstline">Waits for the specified Operations resource until it is done or timeout, and retrieves the specified Operations resource. 1. Immediately returns when the operation is already done. 2. Waits for no more than the default deadline (2 minutes, subject to change) and then returns the current state of the operation, which may be DONE or still in progress. 3. Is best-effort: a. The server can wait less than the default deadline or zero seconds, in overload situations. b. There is no guarantee that the operation is actually done when returns. 4. User should be prepared to retry if the operation is not DONE.</p>
92<h3>Method Details</h3>
93<div class="method">
94    <code class="details" id="delete">delete(operation, parentId=None)</code>
95  <pre>Deletes the specified Operations resource.
96
97Args:
98  operation: string, Name of the Operations resource to delete. (required)
99  parentId: string, Parent ID for this request.
100</pre>
101</div>
102
103<div class="method">
104    <code class="details" id="get">get(operation, parentId=None)</code>
105  <pre>Retrieves the specified Operations resource. Gets a list of operations by making a list() request.
106
107Args:
108  operation: string, Name of the Operations resource to return. (required)
109  parentId: string, Parent ID for this request.
110
111Returns:
112  An object of the form:
113
114    { # Represents an Operation resource.
115      #
116      # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
117      #
118      # Operations can be global, regional or zonal.
119      # - For global operations, use the globalOperations resource.
120      # - For regional operations, use the regionOperations resource.
121      # - For zonal operations, use the zonalOperations resource.
122      #
123      # For more information, read  Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
124    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
125    "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
126    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
127    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
128    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
129    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
130    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
131    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
132    "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 when the operation will be complete. This number should monotonically increase as the operation progresses.
133    "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
134    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
135    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
136    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
137    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
138      {
139        "message": "A String", # [Output Only] A human-readable description of the warning code.
140        "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
141        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
142            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
143          {
144            "value": "A String", # [Output Only] A warning data value corresponding to the key.
145            "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
146          },
147        ],
148      },
149    ],
150    "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id.
151    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
152    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
153    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
154    "name": "A String", # [Output Only] Name of the resource.
155    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
156    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
157      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
158        {
159          "message": "A String", # [Output Only] An optional, human-readable error message.
160          "code": "A String", # [Output Only] The error type identifier for this error.
161          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
162        },
163      ],
164    },
165    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
166    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
167    "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from.
168  }</pre>
169</div>
170
171<div class="method">
172    <code class="details" id="list">list(orderBy=None, filter=None, pageToken=None, maxResults=None, parentId=None)</code>
173  <pre>Retrieves a list of Operation resources contained within the specified organization.
174
175Args:
176  orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
177
178You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.
179
180Currently, only sorting by name or creationTimestamp desc is supported.
181  filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <.
182
183For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance.
184
185You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.
186
187To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true).
188  pageToken: string, Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results.
189  maxResults: integer, The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
190  parentId: string, Parent ID for this request.
191
192Returns:
193  An object of the form:
194
195    { # Contains a list of Operation resources.
196    "nextPageToken": "A String", # [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
197    "kind": "compute#operationList", # [Output Only] Type of resource. Always compute#operations for Operations resource.
198    "items": [ # [Output Only] A list of Operation resources.
199      { # Represents an Operation resource.
200          #
201          # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
202          #
203          # Operations can be global, regional or zonal.
204          # - For global operations, use the globalOperations resource.
205          # - For regional operations, use the regionOperations resource.
206          # - For zonal operations, use the zonalOperations resource.
207          #
208          # For more information, read  Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
209        "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
210        "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
211        "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
212        "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
213        "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
214        "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
215        "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
216        "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
217        "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 when the operation will be complete. This number should monotonically increase as the operation progresses.
218        "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
219        "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
220        "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
221        "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
222        "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
223          {
224            "message": "A String", # [Output Only] A human-readable description of the warning code.
225            "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
226            "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
227                # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
228              {
229                "value": "A String", # [Output Only] A warning data value corresponding to the key.
230                "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
231              },
232            ],
233          },
234        ],
235        "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id.
236        "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
237        "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
238        "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
239        "name": "A String", # [Output Only] Name of the resource.
240        "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
241        "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
242          "errors": [ # [Output Only] The array of errors encountered while processing this operation.
243            {
244              "message": "A String", # [Output Only] An optional, human-readable error message.
245              "code": "A String", # [Output Only] The error type identifier for this error.
246              "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
247            },
248          ],
249        },
250        "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
251        "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
252        "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from.
253      },
254    ],
255    "warning": { # [Output Only] Informational warning message.
256      "message": "A String", # [Output Only] A human-readable description of the warning code.
257      "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
258      "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
259          # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
260        {
261          "value": "A String", # [Output Only] A warning data value corresponding to the key.
262          "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
263        },
264      ],
265    },
266    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
267    "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
268  }</pre>
269</div>
270
271<div class="method">
272    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
273  <pre>Retrieves the next page of results.
274
275Args:
276  previous_request: The request for the previous page. (required)
277  previous_response: The response from the request for the previous page. (required)
278
279Returns:
280  A request object that you can call 'execute()' on to request the next
281  page. Returns None if there are no more items in the collection.
282    </pre>
283</div>
284
285<div class="method">
286    <code class="details" id="wait">wait(operation, parentId=None)</code>
287  <pre>Waits for the specified Operations resource until it is done or timeout, and retrieves the specified Operations resource. 1. Immediately returns when the operation is already done. 2. Waits for no more than the default deadline (2 minutes, subject to change) and then returns the current state of the operation, which may be DONE or still in progress. 3. Is best-effort: a. The server can wait less than the default deadline or zero seconds, in overload situations. b. There is no guarantee that the operation is actually done when returns. 4. User should be prepared to retry if the operation is not DONE.
288
289Args:
290  operation: string, Name of the Operations resource to return. (required)
291  parentId: string, Parent ID for this request.
292
293Returns:
294  An object of the form:
295
296    { # Represents an Operation resource.
297      #
298      # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
299      #
300      # Operations can be global, regional or zonal.
301      # - For global operations, use the globalOperations resource.
302      # - For regional operations, use the regionOperations resource.
303      # - For zonal operations, use the zonalOperations resource.
304      #
305      # For more information, read  Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
306    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
307    "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
308    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
309    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
310    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
311    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
312    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
313    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
314    "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 when the operation will be complete. This number should monotonically increase as the operation progresses.
315    "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found.
316    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
317    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
318    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
319    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
320      {
321        "message": "A String", # [Output Only] A human-readable description of the warning code.
322        "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
323        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
324            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
325          {
326            "value": "A String", # [Output Only] A warning data value corresponding to the key.
327            "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
328          },
329        ],
330      },
331    ],
332    "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id.
333    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
334    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
335    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
336    "name": "A String", # [Output Only] Name of the resource.
337    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
338    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
339      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
340        {
341          "message": "A String", # [Output Only] An optional, human-readable error message.
342          "code": "A String", # [Output Only] The error type identifier for this error.
343          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
344        },
345      ],
346    },
347    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
348    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
349    "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from.
350  }</pre>
351</div>
352
353</body></html>