• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 <html><body>
2 <style>
3 
4 body, 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 
15 body {
16   font-size: 13px;
17   padding: 1em;
18 }
19 
20 h1 {
21   font-size: 26px;
22   margin-bottom: 1em;
23 }
24 
25 h2 {
26   font-size: 24px;
27   margin-bottom: 1em;
28 }
29 
30 h3 {
31   font-size: 20px;
32   margin-bottom: 1em;
33   margin-top: 1em;
34 }
35 
36 pre, code {
37   line-height: 1.5;
38   font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40 
41 pre {
42   margin-top: 0.5em;
43 }
44 
45 h1, h2, h3, p {
46   font-family: Arial, sans serif;
47 }
48 
49 h1, 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.zones.html">zones</a> . <a href="container_v1.projects.zones.operations.html">operations</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78   <code><a href="#cancel">cancel(projectId, zone, operationId, body, x__xgafv=None)</a></code></p>
79 <p class="firstline">Cancels the specified operation.</p>
80 <p class="toc_element">
81   <code><a href="#get">get(projectId, zone, operationId, name=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Gets the specified operation.</p>
83 <p class="toc_element">
84   <code><a href="#list">list(projectId, zone, parent=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Lists all operations in a project in a specific zone or all zones.</p>
86 <h3>Method Details</h3>
87 <div class="method">
88     <code class="details" id="cancel">cancel(projectId, zone, operationId, body, x__xgafv=None)</code>
89   <pre>Cancels the specified operation.
90 
91 Args:
92   projectId: string, Deprecated. The Google Developers Console [project ID or project
93 number](https://support.google.com/cloud/answer/6158840).
94 This field has been deprecated and replaced by the name field. (required)
95   zone: string, Deprecated. The name of the Google Compute Engine
96 [zone](/compute/docs/zones#available) in which the operation resides.
97 This field has been deprecated and replaced by the name field. (required)
98   operationId: string, Deprecated. The server-assigned `name` of the operation.
99 This field has been deprecated and replaced by the name field. (required)
100   body: object, The request body. (required)
101     The object takes the form of:
102 
103 { # CancelOperationRequest cancels a single operation.
104     "projectId": "A String", # Deprecated. The Google Developers Console [project ID or project
105         # number](https://support.google.com/cloud/answer/6158840).
106         # This field has been deprecated and replaced by the name field.
107     "name": "A String", # The name (project, location, operation id) of the operation to cancel.
108         # Specified in the format 'projects/*/locations/*/operations/*'.
109     "zone": "A String", # Deprecated. The name of the Google Compute Engine
110         # [zone](/compute/docs/zones#available) in which the operation resides.
111         # This field has been deprecated and replaced by the name field.
112     "operationId": "A String", # Deprecated. The server-assigned `name` of the operation.
113         # This field has been deprecated and replaced by the name field.
114   }
115 
116   x__xgafv: string, V1 error format.
117     Allowed values
118       1 - v1 error format
119       2 - v2 error format
120 
121 Returns:
122   An object of the form:
123 
124     { # A generic empty message that you can re-use to avoid defining duplicated
125       # empty messages in your APIs. A typical example is to use it as the request
126       # or the response type of an API method. For instance:
127       #
128       #     service Foo {
129       #       rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
130       #     }
131       #
132       # The JSON representation for `Empty` is empty JSON object `{}`.
133   }</pre>
134 </div>
135 
136 <div class="method">
137     <code class="details" id="get">get(projectId, zone, operationId, name=None, x__xgafv=None)</code>
138   <pre>Gets the specified operation.
139 
140 Args:
141   projectId: string, Deprecated. The Google Developers Console [project ID or project
142 number](https://support.google.com/cloud/answer/6158840).
143 This field has been deprecated and replaced by the name field. (required)
144   zone: string, Deprecated. The name of the Google Compute Engine
145 [zone](/compute/docs/zones#available) in which the cluster
146 resides.
147 This field has been deprecated and replaced by the name field. (required)
148   operationId: string, Deprecated. The server-assigned `name` of the operation.
149 This field has been deprecated and replaced by the name field. (required)
150   name: string, The name (project, location, operation id) of the operation to get.
151 Specified in the format 'projects/*/locations/*/operations/*'.
152   x__xgafv: string, V1 error format.
153     Allowed values
154       1 - v1 error format
155       2 - v2 error format
156 
157 Returns:
158   An object of the form:
159 
160     { # This operation resource represents operations that may have happened or are
161       # happening on the cluster. All fields are output only.
162     "status": "A String", # The current status of the operation.
163     "selfLink": "A String", # Server-defined URL for the resource.
164     "name": "A String", # The server-assigned ID for the operation.
165     "zone": "A String", # The name of the Google Compute Engine
166         # [zone](/compute/docs/zones#available) in which the operation
167         # is taking place.
168         # This field is deprecated, use location instead.
169     "startTime": "A String", # [Output only] The time the operation started, in
170         # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
171     "detail": "A String", # Detailed operation progress, if available.
172     "operationType": "A String", # The operation type.
173     "targetLink": "A String", # Server-defined URL for the target of the operation.
174     "location": "A String", # [Output only] The name of the Google Compute Engine
175         # [zone](/compute/docs/regions-zones/regions-zones#available) or
176         # [region](/compute/docs/regions-zones/regions-zones#available) in which
177         # the cluster resides.
178     "nodepoolConditions": [ # Which conditions caused the current node pool state.
179       { # StatusCondition describes why a cluster or a node pool has a certain status
180           # (e.g., ERROR or DEGRADED).
181         "message": "A String", # Human-friendly representation of the condition
182         "code": "A String", # Machine-friendly representation of the condition
183       },
184     ],
185     "endTime": "A String", # [Output only] The time the operation completed, in
186         # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
187     "statusMessage": "A String", # If an error has occurred, a textual description of the error.
188     "clusterConditions": [ # Which conditions caused the current cluster state.
189       { # StatusCondition describes why a cluster or a node pool has a certain status
190           # (e.g., ERROR or DEGRADED).
191         "message": "A String", # Human-friendly representation of the condition
192         "code": "A String", # Machine-friendly representation of the condition
193       },
194     ],
195   }</pre>
196 </div>
197 
198 <div class="method">
199     <code class="details" id="list">list(projectId, zone, parent=None, x__xgafv=None)</code>
200   <pre>Lists all operations in a project in a specific zone or all zones.
201 
202 Args:
203   projectId: string, Deprecated. The Google Developers Console [project ID or project
204 number](https://support.google.com/cloud/answer/6158840).
205 This field has been deprecated and replaced by the parent field. (required)
206   zone: string, Deprecated. The name of the Google Compute Engine
207 [zone](/compute/docs/zones#available) to return operations for, or `-` for
208 all zones. This field has been deprecated and replaced by the parent field. (required)
209   parent: string, The parent (project and location) where the operations will be listed.
210 Specified in the format 'projects/*/locations/*'.
211 Location "-" matches all zones and all regions.
212   x__xgafv: string, V1 error format.
213     Allowed values
214       1 - v1 error format
215       2 - v2 error format
216 
217 Returns:
218   An object of the form:
219 
220     { # ListOperationsResponse is the result of ListOperationsRequest.
221     "operations": [ # A list of operations in the project in the specified zone.
222       { # This operation resource represents operations that may have happened or are
223           # happening on the cluster. All fields are output only.
224         "status": "A String", # The current status of the operation.
225         "selfLink": "A String", # Server-defined URL for the resource.
226         "name": "A String", # The server-assigned ID for the operation.
227         "zone": "A String", # The name of the Google Compute Engine
228             # [zone](/compute/docs/zones#available) in which the operation
229             # is taking place.
230             # This field is deprecated, use location instead.
231         "startTime": "A String", # [Output only] The time the operation started, in
232             # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
233         "detail": "A String", # Detailed operation progress, if available.
234         "operationType": "A String", # The operation type.
235         "targetLink": "A String", # Server-defined URL for the target of the operation.
236         "location": "A String", # [Output only] The name of the Google Compute Engine
237             # [zone](/compute/docs/regions-zones/regions-zones#available) or
238             # [region](/compute/docs/regions-zones/regions-zones#available) in which
239             # the cluster resides.
240         "nodepoolConditions": [ # Which conditions caused the current node pool state.
241           { # StatusCondition describes why a cluster or a node pool has a certain status
242               # (e.g., ERROR or DEGRADED).
243             "message": "A String", # Human-friendly representation of the condition
244             "code": "A String", # Machine-friendly representation of the condition
245           },
246         ],
247         "endTime": "A String", # [Output only] The time the operation completed, in
248             # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
249         "statusMessage": "A String", # If an error has occurred, a textual description of the error.
250         "clusterConditions": [ # Which conditions caused the current cluster state.
251           { # StatusCondition describes why a cluster or a node pool has a certain status
252               # (e.g., ERROR or DEGRADED).
253             "message": "A String", # Human-friendly representation of the condition
254             "code": "A String", # Machine-friendly representation of the condition
255           },
256         ],
257       },
258     ],
259     "missingZones": [ # If any zones are listed here, the list of operations returned
260         # may be missing the operations from those zones.
261       "A String",
262     ],
263   }</pre>
264 </div>
265 
266 </body></html>