blob: 0904f813845ddcce3d00795ac64759184365d9d9 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -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
75<h1><a href="container_v1.html">Kubernetes Engine API</a> . <a href="container_v1.projects.html">projects</a> . <a href="container_v1.projects.locations.html">locations</a> . <a href="container_v1.projects.locations.operations.html">operations</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#cancel">cancel(name, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<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">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -080084 <code><a href="#get">get(name, operationId=None, zone=None, projectId=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070085<p class="firstline">Gets the specified operation.</p>
86<p class="toc_element">
Yoshi Automation Botc2228be2020-11-24 15:48:03 -080087 <code><a href="#list">list(parent, zone=None, projectId=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -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(name, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092 <pre>Cancels the specified operation.
93
94Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070095 name: string, The name (project, location, operation id) of the operation to cancel. Specified in the format `projects/*/locations/*/operations/*`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -070096 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097 The object takes the form of:
98
99{ # CancelOperationRequest cancels a single operation.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800100 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800101 &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/*`.
102 &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.
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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700104 }
105
106 x__xgafv: string, V1 error format.
107 Allowed values
108 1 - v1 error format
109 2 - v2 error format
110
111Returns:
112 An object of the form:
113
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700114 { # 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 `{}`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700115 }</pre>
116</div>
117
118<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700119 <code class="details" id="close">close()</code>
120 <pre>Close httplib2 connections.</pre>
121</div>
122
123<div class="method">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800124 <code class="details" id="get">get(name, operationId=None, zone=None, projectId=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700125 <pre>Gets the specified operation.
126
127Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700128 name: string, The name (project, location, operation id) of the operation to get. Specified in the format `projects/*/locations/*/operations/*`. (required)
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800129 operationId: string, Deprecated. The server-assigned `name` of the operation. This field has been deprecated and replaced by the name field.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800130 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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700131 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700132 x__xgafv: string, V1 error format.
133 Allowed values
134 1 - v1 error format
135 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700136
137Returns:
138 An object of the form:
139
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700140 { # 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 -0800141 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
142 &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.
143 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
144 &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.
145 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
146 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
147 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
148 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
149 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
150 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
151 },
152 ],
153 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
154 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
155 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800156 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800157 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
158 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
159 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
160 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
161 },
162 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700163 &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 -0800164 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
165 &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 -0700166 &quot;stages&quot;: [ # Substages of an operation or a stage.
167 # Object with schema name: OperationProgress
168 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800169 &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}]
170 { # Progress metric is (string, int|float|string) pair.
171 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
172 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
173 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
174 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
175 },
176 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700177 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800178 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700179 }</pre>
180</div>
181
182<div class="method">
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800183 <code class="details" id="list">list(parent, zone=None, projectId=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700184 <pre>Lists all operations in a project in a specific zone or all zones.
185
186Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700187 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. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700188 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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800189 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700190 x__xgafv: string, V1 error format.
191 Allowed values
192 1 - v1 error format
193 2 - v2 error format
194
195Returns:
196 An object of the form:
197
198 { # ListOperationsResponse is the result of ListOperationsRequest.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800199 &quot;missingZones&quot;: [ # If any zones are listed here, the list of operations returned may be missing the operations from those zones.
200 &quot;A String&quot;,
201 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700202 &quot;operations&quot;: [ # A list of operations in the project in the specified zone.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700203 { # 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 -0800204 &quot;status&quot;: &quot;A String&quot;, # The current status of the operation.
205 &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.
206 &quot;targetLink&quot;: &quot;A String&quot;, # Server-defined URL for the target of the operation.
207 &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.
208 &quot;detail&quot;: &quot;A String&quot;, # Detailed operation progress, if available.
209 &quot;operationType&quot;: &quot;A String&quot;, # The operation type.
210 &quot;nodepoolConditions&quot;: [ # Which conditions caused the current node pool state.
211 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
212 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
213 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
214 },
215 ],
216 &quot;statusMessage&quot;: &quot;A String&quot;, # Output only. If an error has occurred, a textual description of the error.
217 &quot;name&quot;: &quot;A String&quot;, # The server-assigned ID for the operation.
218 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800219 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800220 &quot;clusterConditions&quot;: [ # Which conditions caused the current cluster state.
221 { # StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
222 &quot;message&quot;: &quot;A String&quot;, # Human-friendly representation of the condition
223 &quot;code&quot;: &quot;A String&quot;, # Machine-friendly representation of the condition
224 },
225 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700226 &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 -0800227 &quot;name&quot;: &quot;A String&quot;, # A non-parameterized string describing an operation stage. Unset for single-stage operations.
228 &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 -0700229 &quot;stages&quot;: [ # Substages of an operation or a stage.
230 # Object with schema name: OperationProgress
231 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800232 &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}]
233 { # Progress metric is (string, int|float|string) pair.
234 &quot;intValue&quot;: &quot;A String&quot;, # For metrics with integer value.
235 &quot;doubleValue&quot;: 3.14, # For metrics with floating point value.
236 &quot;stringValue&quot;: &quot;A String&quot;, # For metrics with custom values (ratios, visual progress, etc.).
237 &quot;name&quot;: &quot;A String&quot;, # Required. Metric name, e.g., &quot;nodes total&quot;, &quot;percent done&quot;.
238 },
239 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700240 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800241 &quot;selfLink&quot;: &quot;A String&quot;, # Server-defined URL for the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700242 },
243 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700244 }</pre>
245</div>
246
247</body></html>