Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 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.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'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 78 | <code><a href="#cancel">cancel(name, body=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 79 | <p class="firstline">Cancels the specified operation.</p> |
| 80 | <p class="toc_element"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 81 | <code><a href="#get">get(name, operationId=None, projectId=None, zone=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 82 | <p class="firstline">Gets the specified operation.</p> |
| 83 | <p class="toc_element"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 84 | <code><a href="#list">list(parent, projectId=None, zone=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 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"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 88 | <code class="details" id="cancel">cancel(name, body=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 89 | <pre>Cancels the specified operation. |
| 90 | |
| 91 | Args: |
| 92 | name: string, The name (project, location, operation id) of the operation to cancel. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 93 | Specified in the format `projects/*/locations/*/operations/*`. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 94 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 95 | The object takes the form of: |
| 96 | |
| 97 | { # CancelOperationRequest cancels a single operation. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 98 | "zone": "A String", # Deprecated. The name of the Google Compute Engine |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 99 | # [zone](https://cloud.google.com/compute/docs/zones#available) in which the |
| 100 | # operation resides. This field has been deprecated and replaced by the name |
| 101 | # field. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 102 | "projectId": "A String", # Deprecated. The Google Developers Console [project ID or project |
| 103 | # number](https://support.google.com/cloud/answer/6158840). |
| 104 | # This field has been deprecated and replaced by the name field. |
| 105 | "name": "A String", # The name (project, location, operation id) of the operation to cancel. |
| 106 | # Specified in the format `projects/*/locations/*/operations/*`. |
| 107 | "operationId": "A String", # Deprecated. The server-assigned `name` of the operation. |
| 108 | # This field has been deprecated and replaced by the name field. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 109 | } |
| 110 | |
| 111 | x__xgafv: string, V1 error format. |
| 112 | Allowed values |
| 113 | 1 - v1 error format |
| 114 | 2 - v2 error format |
| 115 | |
| 116 | Returns: |
| 117 | An object of the form: |
| 118 | |
| 119 | { # A generic empty message that you can re-use to avoid defining duplicated |
| 120 | # empty messages in your APIs. A typical example is to use it as the request |
| 121 | # or the response type of an API method. For instance: |
| 122 | # |
| 123 | # service Foo { |
| 124 | # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
| 125 | # } |
| 126 | # |
| 127 | # The JSON representation for `Empty` is empty JSON object `{}`. |
| 128 | }</pre> |
| 129 | </div> |
| 130 | |
| 131 | <div class="method"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 132 | <code class="details" id="get">get(name, operationId=None, projectId=None, zone=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 133 | <pre>Gets the specified operation. |
| 134 | |
| 135 | Args: |
| 136 | name: string, The name (project, location, operation id) of the operation to get. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 137 | Specified in the format `projects/*/locations/*/operations/*`. (required) |
| 138 | operationId: string, Deprecated. The server-assigned `name` of the operation. |
| 139 | This field has been deprecated and replaced by the name field. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 140 | projectId: string, Deprecated. The Google Developers Console [project ID or project |
| 141 | number](https://support.google.com/cloud/answer/6158840). |
| 142 | This field has been deprecated and replaced by the name field. |
| 143 | zone: string, Deprecated. The name of the Google Compute Engine |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 144 | [zone](https://cloud.google.com/compute/docs/zones#available) in which the |
| 145 | cluster resides. This field has been deprecated and replaced by the name |
| 146 | field. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 147 | x__xgafv: string, V1 error format. |
| 148 | Allowed values |
| 149 | 1 - v1 error format |
| 150 | 2 - v2 error format |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 151 | |
| 152 | Returns: |
| 153 | An object of the form: |
| 154 | |
| 155 | { # This operation resource represents operations that may have happened or are |
| 156 | # happening on the cluster. All fields are output only. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 157 | "progress": { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation. |
| 158 | "name": "A String", # A non-parameterized string describing an operation stage. |
| 159 | # Unset for single-stage operations. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 160 | "metrics": [ # Progress metric bundle, for example: |
| 161 | # metrics: [{name: "nodes done", int_value: 15}, |
| 162 | # {name: "nodes total", int_value: 32}] |
| 163 | # or |
| 164 | # metrics: [{name: "progress", double_value: 0.56}, |
| 165 | # {name: "progress scale", double_value: 1.0}] |
| 166 | { # Progress metric is (string, int|float|string) pair. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 167 | "stringValue": "A String", # For metrics with custom values (ratios, visual progress, etc.). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 168 | "doubleValue": 3.14, # For metrics with floating point value. |
| 169 | "intValue": "A String", # For metrics with integer value. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 170 | "name": "A String", # Required. Metric name, e.g., "nodes total", "percent done". |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 171 | }, |
| 172 | ], |
| 173 | "status": "A String", # Status of an operation stage. |
| 174 | # Unset for single-stage operations. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 175 | "stages": [ # Substages of an operation or a stage. |
| 176 | # Object with schema name: OperationProgress |
| 177 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 178 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 179 | "targetLink": "A String", # Server-defined URL for the target of the operation. |
| 180 | "status": "A String", # The current status of the operation. |
| 181 | "operationType": "A String", # The operation type. |
| 182 | "startTime": "A String", # [Output only] The time the operation started, in |
| 183 | # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 184 | "clusterConditions": [ # Which conditions caused the current cluster state. |
| 185 | { # StatusCondition describes why a cluster or a node pool has a certain status |
| 186 | # (e.g., ERROR or DEGRADED). |
| 187 | "message": "A String", # Human-friendly representation of the condition |
| 188 | "code": "A String", # Machine-friendly representation of the condition |
| 189 | }, |
| 190 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 191 | "zone": "A String", # The name of the Google Compute Engine |
| 192 | # [zone](https://cloud.google.com/compute/docs/zones#available) in which the |
| 193 | # operation is taking place. This field is deprecated, use location instead. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 194 | "selfLink": "A String", # Server-defined URL for the resource. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 195 | "name": "A String", # The server-assigned ID for the operation. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 196 | "detail": "A String", # Detailed operation progress, if available. |
| 197 | "endTime": "A String", # [Output only] The time the operation completed, in |
| 198 | # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 199 | "nodepoolConditions": [ # Which conditions caused the current node pool state. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 200 | { # StatusCondition describes why a cluster or a node pool has a certain status |
| 201 | # (e.g., ERROR or DEGRADED). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 202 | "message": "A String", # Human-friendly representation of the condition |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 203 | "code": "A String", # Machine-friendly representation of the condition |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 204 | }, |
| 205 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 206 | "location": "A String", # [Output only] The name of the Google Compute Engine |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 207 | # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) |
| 208 | # or |
| 209 | # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) |
| 210 | # in which the cluster resides. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 211 | "statusMessage": "A String", # Output only. If an error has occurred, a textual description of the error. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 212 | }</pre> |
| 213 | </div> |
| 214 | |
| 215 | <div class="method"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 216 | <code class="details" id="list">list(parent, projectId=None, zone=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 217 | <pre>Lists all operations in a project in a specific zone or all zones. |
| 218 | |
| 219 | Args: |
| 220 | parent: string, The parent (project and location) where the operations will be listed. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 221 | Specified in the format `projects/*/locations/*`. |
| 222 | Location "-" matches all zones and all regions. (required) |
| 223 | projectId: string, Deprecated. The Google Developers Console [project ID or project |
| 224 | number](https://support.google.com/cloud/answer/6158840). |
| 225 | This field has been deprecated and replaced by the parent field. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 226 | zone: string, Deprecated. The name of the Google Compute Engine |
| 227 | [zone](https://cloud.google.com/compute/docs/zones#available) to return |
| 228 | operations for, or `-` for all zones. This field has been deprecated and |
| 229 | replaced by the parent field. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 230 | x__xgafv: string, V1 error format. |
| 231 | Allowed values |
| 232 | 1 - v1 error format |
| 233 | 2 - v2 error format |
| 234 | |
| 235 | Returns: |
| 236 | An object of the form: |
| 237 | |
| 238 | { # ListOperationsResponse is the result of ListOperationsRequest. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 239 | "operations": [ # A list of operations in the project in the specified zone. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 240 | { # This operation resource represents operations that may have happened or are |
| 241 | # happening on the cluster. All fields are output only. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 242 | "progress": { # Information about operation (or operation stage) progress. # Output only. [Output only] Progress information for an operation. |
| 243 | "name": "A String", # A non-parameterized string describing an operation stage. |
| 244 | # Unset for single-stage operations. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 245 | "metrics": [ # Progress metric bundle, for example: |
| 246 | # metrics: [{name: "nodes done", int_value: 15}, |
| 247 | # {name: "nodes total", int_value: 32}] |
| 248 | # or |
| 249 | # metrics: [{name: "progress", double_value: 0.56}, |
| 250 | # {name: "progress scale", double_value: 1.0}] |
| 251 | { # Progress metric is (string, int|float|string) pair. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 252 | "stringValue": "A String", # For metrics with custom values (ratios, visual progress, etc.). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 253 | "doubleValue": 3.14, # For metrics with floating point value. |
| 254 | "intValue": "A String", # For metrics with integer value. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 255 | "name": "A String", # Required. Metric name, e.g., "nodes total", "percent done". |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 256 | }, |
| 257 | ], |
| 258 | "status": "A String", # Status of an operation stage. |
| 259 | # Unset for single-stage operations. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 260 | "stages": [ # Substages of an operation or a stage. |
| 261 | # Object with schema name: OperationProgress |
| 262 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 263 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 264 | "targetLink": "A String", # Server-defined URL for the target of the operation. |
| 265 | "status": "A String", # The current status of the operation. |
| 266 | "operationType": "A String", # The operation type. |
| 267 | "startTime": "A String", # [Output only] The time the operation started, in |
| 268 | # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
| 269 | "clusterConditions": [ # Which conditions caused the current cluster state. |
| 270 | { # StatusCondition describes why a cluster or a node pool has a certain status |
| 271 | # (e.g., ERROR or DEGRADED). |
| 272 | "message": "A String", # Human-friendly representation of the condition |
| 273 | "code": "A String", # Machine-friendly representation of the condition |
| 274 | }, |
| 275 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 276 | "zone": "A String", # The name of the Google Compute Engine |
| 277 | # [zone](https://cloud.google.com/compute/docs/zones#available) in which the |
| 278 | # operation is taking place. This field is deprecated, use location instead. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 279 | "selfLink": "A String", # Server-defined URL for the resource. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 280 | "name": "A String", # The server-assigned ID for the operation. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 281 | "detail": "A String", # Detailed operation progress, if available. |
| 282 | "endTime": "A String", # [Output only] The time the operation completed, in |
| 283 | # [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 284 | "nodepoolConditions": [ # Which conditions caused the current node pool state. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 285 | { # StatusCondition describes why a cluster or a node pool has a certain status |
| 286 | # (e.g., ERROR or DEGRADED). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 287 | "message": "A String", # Human-friendly representation of the condition |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 288 | "code": "A String", # Machine-friendly representation of the condition |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 289 | }, |
| 290 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 291 | "location": "A String", # [Output only] The name of the Google Compute Engine |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 292 | # [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) |
| 293 | # or |
| 294 | # [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) |
| 295 | # in which the cluster resides. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 296 | "statusMessage": "A String", # Output only. If an error has occurred, a textual description of the error. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 297 | }, |
| 298 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 299 | "missingZones": [ # If any zones are listed here, the list of operations returned |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 300 | # may be missing the operations from those zones. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 301 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 302 | ], |
| 303 | }</pre> |
| 304 | </div> |
| 305 | |
| 306 | </body></html> |