blob: 19f25ca78056a2e61d2a9217cc208b5ba7abf96b [file] [log] [blame]
Takashi Matsuo06694102015-09-11 13:55:40 -07001<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
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070075<h1><a href="container_v1.html">Kubernetes Engine API</a> . <a href="container_v1.projects.html">projects</a> . <a href="container_v1.projects.zones.html">zones</a> . <a href="container_v1.projects.zones.operations.html">operations</a></h1>
Takashi Matsuo06694102015-09-11 13:55:40 -070076<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#cancel">cancel(projectId, zone, operationId, body=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040079<p class="firstline">Cancels the specified operation.</p>
80<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070081 <code><a href="#close">close()</a></code></p>
82<p class="firstline">Close httplib2 connections.</p>
83<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070084 <code><a href="#get">get(projectId, zone, operationId, name=None, x__xgafv=None)</a></code></p>
Takashi Matsuo06694102015-09-11 13:55:40 -070085<p class="firstline">Gets the specified operation.</p>
86<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070087 <code><a href="#list">list(projectId, zone, parent=None, x__xgafv=None)</a></code></p>
Takashi Matsuo06694102015-09-11 13:55:40 -070088<p class="firstline">Lists all operations in a project in a specific zone or all zones.</p>
89<h3>Method Details</h3>
90<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -070091 <code class="details" id="cancel">cancel(projectId, zone, operationId, body=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040092 <pre>Cancels the specified operation.
93
94Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070095 projectId: string, Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. (required)
96 zone: string, Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation resides. This field has been deprecated and replaced by the name field. (required)
97 operationId: string, Deprecated. The server-assigned `name` of the operation. This field has been deprecated and replaced by the name field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -070098 body: object, The request body.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040099 The object takes the form of:
100
101{ # CancelOperationRequest cancels a single operation.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800102 &quot;name&quot;: &quot;A String&quot;, # The name (project, location, operation id) of the operation to cancel. Specified in the format `projects/*/locations/*/operations/*`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800103 &quot;projectId&quot;: &quot;A String&quot;, # Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800104 &quot;zone&quot;: &quot;A String&quot;, # Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation resides. This field has been deprecated and replaced by the name field.
105 &quot;operationId&quot;: &quot;A String&quot;, # Deprecated. The server-assigned `name` of the operation. This field has been deprecated and replaced by the name field.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400106 }
107
108 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400109 Allowed values
110 1 - v1 error format
111 2 - v2 error format
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400112
113Returns:
114 An object of the form:
115
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700116 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400117 }</pre>
118</div>
119
120<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700121 <code class="details" id="close">close()</code>
122 <pre>Close httplib2 connections.</pre>
123</div>
124
125<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700126 <code class="details" id="get">get(projectId, zone, operationId, name=None, x__xgafv=None)</code>
Takashi Matsuo06694102015-09-11 13:55:40 -0700127 <pre>Gets the specified operation.
128
129Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700130 projectId: string, Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. (required)
131 zone: string, Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. (required)
132 operationId: string, Deprecated. The server-assigned `name` of the operation. This field has been deprecated and replaced by the name field. (required)
133 name: string, The name (project, location, operation id) of the operation to get. Specified in the format `projects/*/locations/*/operations/*`.
Takashi Matsuo06694102015-09-11 13:55:40 -0700134 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400135 Allowed values
136 1 - v1 error format
137 2 - v2 error format
Takashi Matsuo06694102015-09-11 13:55:40 -0700138
139Returns:
140 An object of the form:
141
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700142 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800143 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
144 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800145 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800146 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800147 },
148 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800149 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700150 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800151 &quot;metrics&quot;: [ # Progress metric bundle, for example: metrics: [{name: &quot;nodes done&quot;, int_value: 15}, {name: &quot;nodes total&quot;, int_value: 32}] or metrics: [{name: &quot;progress&quot;, double_value: 0.56}, {name: &quot;progress scale&quot;, double_value: 1.0}]
152 { # Progress metric is (string, int|float|string) pair.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800153 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800154 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
155 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800156 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
157 },
158 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800159 &quot;stages&quot;: [ # Substages of an operation or a stage.
160 # Object with schema name: OperationProgress
161 ],
162 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
163 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700164 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800165 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
166 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
167 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.
168 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800169 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800170 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
171 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
172 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
173 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
174 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
175 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
176 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
177 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
178 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
179 },
180 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700181 }</pre>
182</div>
183
184<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700185 <code class="details" id="list">list(projectId, zone, parent=None, x__xgafv=None)</code>
Takashi Matsuo06694102015-09-11 13:55:40 -0700186 <pre>Lists all operations in a project in a specific zone or all zones.
187
188Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700189 projectId: string, Deprecated. The Google Developers Console [project ID or project number](https://support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the parent field. (required)
190 zone: string, Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for, or `-` for all zones. This field has been deprecated and replaced by the parent field. (required)
191 parent: string, The parent (project and location) where the operations will be listed. Specified in the format `projects/*/locations/*`. Location &quot;-&quot; matches all zones and all regions.
Takashi Matsuo06694102015-09-11 13:55:40 -0700192 x__xgafv: string, V1 error format.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400193 Allowed values
194 1 - v1 error format
195 2 - v2 error format
Takashi Matsuo06694102015-09-11 13:55:40 -0700196
197Returns:
198 An object of the form:
199
200 { # ListOperationsResponse is the result of ListOperationsRequest.
Bu Sun Kim65020912020-05-20 12:08:20 -0700201 &quot;operations&quot;: [ # A list of operations in the project in the specified zone.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700202 { # This operation resource represents operations that may have happened or are happening on the cluster. All fields are output only.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800203 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
204 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800205 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800206 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800207 },
208 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800209 &quot;startTime&quot;: &quot;A String&quot;, # [Output only] The time the operation started, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700210 &quot;progress&quot;: { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800211 &quot;metrics&quot;: [ # Progress metric bundle, for example: metrics: [{name: &quot;nodes done&quot;, int_value: 15}, {name: &quot;nodes total&quot;, int_value: 32}] or metrics: [{name: &quot;progress&quot;, double_value: 0.56}, {name: &quot;progress scale&quot;, double_value: 1.0}]
212 { # Progress metric is (string, int|float|string) pair.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800213 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800214 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
215 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800216 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
217 },
218 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800219 &quot;stages&quot;: [ # Substages of an operation or a stage.
220 # Object with schema name: OperationProgress
221 ],
222 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
223 &quot;status&quot;: &quot;A String&quot;, # Status of an operation stage. Unset for single-stage operations.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700224 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800225 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
226 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
227 &quot;zone&quot;: &quot;A String&quot;, # The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation is taking place. This field is deprecated, use location instead.
228 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800229 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800230 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
231 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
232 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
233 &quot;location&quot;: &quot;A String&quot;, # [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
234 &quot;endTime&quot;: &quot;A String&quot;, # [Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
235 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
236 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
237 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
238 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
239 },
240 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700241 },
242 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800243 &quot;missingZones&quot;: [ # If any zones are listed here, the list of operations returned may be missing the operations from those zones.
244 &quot;A String&quot;,
245 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700246 }</pre>
247</div>
248
249</body></html>