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.nodeGroups.html">nodeGroups</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#addNodes">addNodes(project, zone, nodeGroup, body=None, requestId=None, x__xgafv=None)</a></code></p> 79<p class="firstline">Adds specified number of nodes to the node group.</p> 80<p class="toc_element"> 81 <code><a href="#aggregatedList">aggregatedList(project, filter=None, includeAllScopes=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</a></code></p> 82<p class="firstline">Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details about each group.</p> 83<p class="toc_element"> 84 <code><a href="#aggregatedList_next">aggregatedList_next(previous_request, previous_response)</a></code></p> 85<p class="firstline">Retrieves the next page of results.</p> 86<p class="toc_element"> 87 <code><a href="#close">close()</a></code></p> 88<p class="firstline">Close httplib2 connections.</p> 89<p class="toc_element"> 90 <code><a href="#delete">delete(project, zone, nodeGroup, requestId=None, x__xgafv=None)</a></code></p> 91<p class="firstline">Deletes the specified NodeGroup resource.</p> 92<p class="toc_element"> 93 <code><a href="#deleteNodes">deleteNodes(project, zone, nodeGroup, body=None, requestId=None, x__xgafv=None)</a></code></p> 94<p class="firstline">Deletes specified nodes from the node group.</p> 95<p class="toc_element"> 96 <code><a href="#get">get(project, zone, nodeGroup, x__xgafv=None)</a></code></p> 97<p class="firstline">Returns the specified NodeGroup. Get a list of available NodeGroups by making a list() request. Note: the "nodes" field should not be used. Use nodeGroups.listNodes instead.</p> 98<p class="toc_element"> 99 <code><a href="#getIamPolicy">getIamPolicy(project, zone, resource, optionsRequestedPolicyVersion=None, x__xgafv=None)</a></code></p> 100<p class="firstline">Gets the access control policy for a resource. May be empty if no such policy or resource exists.</p> 101<p class="toc_element"> 102 <code><a href="#insert">insert(project, zone, initialNodeCount, body=None, requestId=None, x__xgafv=None)</a></code></p> 103<p class="firstline">Creates a NodeGroup resource in the specified project using the data included in the request.</p> 104<p class="toc_element"> 105 <code><a href="#list">list(project, zone, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</a></code></p> 106<p class="firstline">Retrieves a list of node groups available to the specified project. Note: use nodeGroups.listNodes for more details about each group.</p> 107<p class="toc_element"> 108 <code><a href="#listNodes">listNodes(project, zone, nodeGroup, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</a></code></p> 109<p class="firstline">Lists nodes in the node group.</p> 110<p class="toc_element"> 111 <code><a href="#listNodes_next">listNodes_next(previous_request, previous_response)</a></code></p> 112<p class="firstline">Retrieves the next page of results.</p> 113<p class="toc_element"> 114 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 115<p class="firstline">Retrieves the next page of results.</p> 116<p class="toc_element"> 117 <code><a href="#patch">patch(project, zone, nodeGroup, body=None, requestId=None, x__xgafv=None)</a></code></p> 118<p class="firstline">Updates the specified node group.</p> 119<p class="toc_element"> 120 <code><a href="#setIamPolicy">setIamPolicy(project, zone, resource, body=None, x__xgafv=None)</a></code></p> 121<p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy.</p> 122<p class="toc_element"> 123 <code><a href="#setNodeTemplate">setNodeTemplate(project, zone, nodeGroup, body=None, requestId=None, x__xgafv=None)</a></code></p> 124<p class="firstline">Updates the node template of the node group.</p> 125<p class="toc_element"> 126 <code><a href="#testIamPermissions">testIamPermissions(project, zone, resource, body=None, x__xgafv=None)</a></code></p> 127<p class="firstline">Returns permissions that a caller has on the specified resource.</p> 128<h3>Method Details</h3> 129<div class="method"> 130 <code class="details" id="addNodes">addNodes(project, zone, nodeGroup, body=None, requestId=None, x__xgafv=None)</code> 131 <pre>Adds specified number of nodes to the node group. 132 133Args: 134 project: string, Project ID for this request. (required) 135 zone: string, The name of the zone for this request. (required) 136 nodeGroup: string, Name of the NodeGroup resource. (required) 137 body: object, The request body. 138 The object takes the form of: 139 140{ 141 "additionalNodeCount": 42, # Count of additional nodes to be added to the node group. 142} 143 144 requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). 145 x__xgafv: string, V1 error format. 146 Allowed values 147 1 - v1 error format 148 2 - v2 error format 149 150Returns: 151 An object of the form: 152 153 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/alpha/globalOperations) * [Regional](/compute/docs/reference/rest/alpha/regionOperations) * [Zonal](/compute/docs/reference/rest/alpha/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. 154 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 155 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 156 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 157 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 158 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 159 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 160 { 161 "code": "A String", # [Output Only] The error type identifier for this error. 162 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 163 "message": "A String", # [Output Only] An optional, human-readable error message. 164 }, 165 ], 166 }, 167 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 168 "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. 169 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 170 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 171 "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 172 "metadata": { # [Output Only] Service-specific metadata attached to this operation. 173 "a_key": "", # Properties of the object. Contains field @type with type URL. 174 }, 175 "name": "A String", # [Output Only] Name of the operation. 176 "operationGroupId": "A String", # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 177 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 178 "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. 179 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 180 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 181 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 182 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 183 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 184 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 185 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 186 "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. 187 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 188 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 189 { 190 "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. 191 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 192 { 193 "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). 194 "value": "A String", # [Output Only] A warning data value corresponding to the key. 195 }, 196 ], 197 "message": "A String", # [Output Only] A human-readable description of the warning code. 198 }, 199 ], 200 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 201}</pre> 202</div> 203 204<div class="method"> 205 <code class="details" id="aggregatedList">aggregatedList(project, filter=None, includeAllScopes=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code> 206 <pre>Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details about each group. 207 208Args: 209 project: string, Project ID for this request. (required) 210 filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You 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. To 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) ``` 211 includeAllScopes: boolean, Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included. 212 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`) 213 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by `name` or `creationTimestamp desc` is supported. 214 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. 215 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. 216 x__xgafv: string, V1 error format. 217 Allowed values 218 1 - v1 error format 219 2 - v2 error format 220 221Returns: 222 An object of the form: 223 224 { 225 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. 226 "items": { # A list of NodeGroupsScopedList resources. 227 "a_key": { # [Output Only] Name of the scope containing this set of node groups. 228 "nodeGroups": [ # [Output Only] A list of node groups contained in this scope. 229 { # Represents a sole-tenant Node Group resource. A sole-tenant node is a physical server that is dedicated to hosting VM instances only for your specific project. Use sole-tenant nodes to keep your instances physically separated from instances in other projects, or to group your instances together on the same host hardware. For more information, read Sole-tenant nodes. 230 "autoscalingPolicy": { # Specifies how autoscaling should behave. 231 "maxNodes": 42, # The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. Maximum value allowed is 100. 232 "minNodes": 42, # The minimum number of nodes that the group should have. 233 "mode": "A String", # The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see Autoscaler modes. 234 }, 235 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 236 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 237 "fingerprint": "A String", 238 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 239 "kind": "compute#nodeGroup", # [Output Only] The type of the resource. Always compute#nodeGroup for node group. 240 "locationHint": "A String", # An opaque location hint used to place the Node close to other resources. This field is for use by internal tools that use the public API. The location hint here on the NodeGroup overrides any location_hint present in the NodeTemplate. 241 "maintenancePolicy": "A String", # Specifies how to handle instances when a node in the group undergoes maintenance. Set to one of: DEFAULT, RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more information, see Maintenance policies. 242 "maintenanceWindow": { # Time window specified for daily maintenance operations. GCE's internal maintenance will be performed within this window. 243 "duration": "A String", # [Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario. 244 "maintenanceDuration": { # A Duration represents a fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution. It is independent of any calendar and concepts like "day" or "month". Range is approximately 10,000 years. # [Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario. 245 "nanos": 42, # Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 `seconds` field and a positive `nanos` field. Must be from 0 to 999,999,999 inclusive. 246 "seconds": "A String", # Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years 247 }, 248 "startTime": "A String", # Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid. 249 }, 250 "name": "A String", # The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 251 "nodeTemplate": "A String", # URL of the node template to create the node group from. 252 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 253 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 254 "shareSettings": { # The share setting for reservations and sole tenancy node groups. # Share-settings for the node group 255 "folderMap": { # A map of folder id and folder config to specify consumer projects for this shared-reservation. This is only valid when share_type's value is DIRECT_PROJECTS_UNDER_SPECIFIC_FOLDERS. Folder id should be a string of number, and without "folders/" prefix. 256 "a_key": { # Config for each folder in the share settings. 257 "folderId": "A String", # The folder ID, should be same as the key of this folder config in the parent map. Folder id should be a string of number, and without "folders/" prefix. 258 }, 259 }, 260 "projectMap": { # A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS. 261 "a_key": { # Config for each project in the share settings. 262 "projectId": "A String", # The project ID, should be same as the key of this project config in the parent map. 263 }, 264 }, 265 "projects": [ # A List of Project names to specify consumer projects for this shared-reservation. This is only valid when share_type's value is SPECIFIC_PROJECTS. 266 "A String", 267 ], 268 "shareType": "A String", # Type of sharing for this shared-reservation 269 }, 270 "size": 42, # [Output Only] The total number of nodes in the node group. 271 "status": "A String", 272 "zone": "A String", # [Output Only] The name of the zone where the node group resides, such as us-central1-a. 273 }, 274 ], 275 "warning": { # [Output Only] An informational warning that appears when the nodeGroup list is empty. 276 "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. 277 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 278 { 279 "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). 280 "value": "A String", # [Output Only] A warning data value corresponding to the key. 281 }, 282 ], 283 "message": "A String", # [Output Only] A human-readable description of the warning code. 284 }, 285 }, 286 }, 287 "kind": "compute#nodeGroupAggregatedList", # [Output Only] Type of resource.Always compute#nodeGroupAggregatedList for aggregated lists of node groups. 288 "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. 289 "selfLink": "A String", # [Output Only] Server-defined URL for this resource. 290 "unreachables": [ # [Output Only] Unreachable resources. 291 "A String", 292 ], 293 "warning": { # [Output Only] Informational warning message. 294 "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. 295 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 296 { 297 "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). 298 "value": "A String", # [Output Only] A warning data value corresponding to the key. 299 }, 300 ], 301 "message": "A String", # [Output Only] A human-readable description of the warning code. 302 }, 303}</pre> 304</div> 305 306<div class="method"> 307 <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code> 308 <pre>Retrieves the next page of results. 309 310Args: 311 previous_request: The request for the previous page. (required) 312 previous_response: The response from the request for the previous page. (required) 313 314Returns: 315 A request object that you can call 'execute()' on to request the next 316 page. Returns None if there are no more items in the collection. 317 </pre> 318</div> 319 320<div class="method"> 321 <code class="details" id="close">close()</code> 322 <pre>Close httplib2 connections.</pre> 323</div> 324 325<div class="method"> 326 <code class="details" id="delete">delete(project, zone, nodeGroup, requestId=None, x__xgafv=None)</code> 327 <pre>Deletes the specified NodeGroup resource. 328 329Args: 330 project: string, Project ID for this request. (required) 331 zone: string, The name of the zone for this request. (required) 332 nodeGroup: string, Name of the NodeGroup resource to delete. (required) 333 requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). 334 x__xgafv: string, V1 error format. 335 Allowed values 336 1 - v1 error format 337 2 - v2 error format 338 339Returns: 340 An object of the form: 341 342 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/alpha/globalOperations) * [Regional](/compute/docs/reference/rest/alpha/regionOperations) * [Zonal](/compute/docs/reference/rest/alpha/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. 343 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 344 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 345 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 346 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 347 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 348 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 349 { 350 "code": "A String", # [Output Only] The error type identifier for this error. 351 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 352 "message": "A String", # [Output Only] An optional, human-readable error message. 353 }, 354 ], 355 }, 356 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 357 "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. 358 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 359 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 360 "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 361 "metadata": { # [Output Only] Service-specific metadata attached to this operation. 362 "a_key": "", # Properties of the object. Contains field @type with type URL. 363 }, 364 "name": "A String", # [Output Only] Name of the operation. 365 "operationGroupId": "A String", # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 366 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 367 "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. 368 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 369 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 370 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 371 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 372 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 373 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 374 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 375 "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. 376 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 377 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 378 { 379 "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. 380 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 381 { 382 "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). 383 "value": "A String", # [Output Only] A warning data value corresponding to the key. 384 }, 385 ], 386 "message": "A String", # [Output Only] A human-readable description of the warning code. 387 }, 388 ], 389 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 390}</pre> 391</div> 392 393<div class="method"> 394 <code class="details" id="deleteNodes">deleteNodes(project, zone, nodeGroup, body=None, requestId=None, x__xgafv=None)</code> 395 <pre>Deletes specified nodes from the node group. 396 397Args: 398 project: string, Project ID for this request. (required) 399 zone: string, The name of the zone for this request. (required) 400 nodeGroup: string, Name of the NodeGroup resource whose nodes will be deleted. (required) 401 body: object, The request body. 402 The object takes the form of: 403 404{ 405 "nodes": [ # Names of the nodes to delete. 406 "A String", 407 ], 408} 409 410 requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). 411 x__xgafv: string, V1 error format. 412 Allowed values 413 1 - v1 error format 414 2 - v2 error format 415 416Returns: 417 An object of the form: 418 419 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/alpha/globalOperations) * [Regional](/compute/docs/reference/rest/alpha/regionOperations) * [Zonal](/compute/docs/reference/rest/alpha/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. 420 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 421 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 422 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 423 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 424 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 425 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 426 { 427 "code": "A String", # [Output Only] The error type identifier for this error. 428 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 429 "message": "A String", # [Output Only] An optional, human-readable error message. 430 }, 431 ], 432 }, 433 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 434 "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. 435 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 436 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 437 "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 438 "metadata": { # [Output Only] Service-specific metadata attached to this operation. 439 "a_key": "", # Properties of the object. Contains field @type with type URL. 440 }, 441 "name": "A String", # [Output Only] Name of the operation. 442 "operationGroupId": "A String", # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 443 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 444 "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. 445 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 446 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 447 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 448 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 449 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 450 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 451 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 452 "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. 453 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 454 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 455 { 456 "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. 457 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 458 { 459 "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). 460 "value": "A String", # [Output Only] A warning data value corresponding to the key. 461 }, 462 ], 463 "message": "A String", # [Output Only] A human-readable description of the warning code. 464 }, 465 ], 466 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 467}</pre> 468</div> 469 470<div class="method"> 471 <code class="details" id="get">get(project, zone, nodeGroup, x__xgafv=None)</code> 472 <pre>Returns the specified NodeGroup. Get a list of available NodeGroups by making a list() request. Note: the "nodes" field should not be used. Use nodeGroups.listNodes instead. 473 474Args: 475 project: string, Project ID for this request. (required) 476 zone: string, The name of the zone for this request. (required) 477 nodeGroup: string, Name of the node group to return. (required) 478 x__xgafv: string, V1 error format. 479 Allowed values 480 1 - v1 error format 481 2 - v2 error format 482 483Returns: 484 An object of the form: 485 486 { # Represents a sole-tenant Node Group resource. A sole-tenant node is a physical server that is dedicated to hosting VM instances only for your specific project. Use sole-tenant nodes to keep your instances physically separated from instances in other projects, or to group your instances together on the same host hardware. For more information, read Sole-tenant nodes. 487 "autoscalingPolicy": { # Specifies how autoscaling should behave. 488 "maxNodes": 42, # The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. Maximum value allowed is 100. 489 "minNodes": 42, # The minimum number of nodes that the group should have. 490 "mode": "A String", # The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see Autoscaler modes. 491 }, 492 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 493 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 494 "fingerprint": "A String", 495 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 496 "kind": "compute#nodeGroup", # [Output Only] The type of the resource. Always compute#nodeGroup for node group. 497 "locationHint": "A String", # An opaque location hint used to place the Node close to other resources. This field is for use by internal tools that use the public API. The location hint here on the NodeGroup overrides any location_hint present in the NodeTemplate. 498 "maintenancePolicy": "A String", # Specifies how to handle instances when a node in the group undergoes maintenance. Set to one of: DEFAULT, RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more information, see Maintenance policies. 499 "maintenanceWindow": { # Time window specified for daily maintenance operations. GCE's internal maintenance will be performed within this window. 500 "duration": "A String", # [Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario. 501 "maintenanceDuration": { # A Duration represents a fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution. It is independent of any calendar and concepts like "day" or "month". Range is approximately 10,000 years. # [Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario. 502 "nanos": 42, # Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 `seconds` field and a positive `nanos` field. Must be from 0 to 999,999,999 inclusive. 503 "seconds": "A String", # Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years 504 }, 505 "startTime": "A String", # Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid. 506 }, 507 "name": "A String", # The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 508 "nodeTemplate": "A String", # URL of the node template to create the node group from. 509 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 510 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 511 "shareSettings": { # The share setting for reservations and sole tenancy node groups. # Share-settings for the node group 512 "folderMap": { # A map of folder id and folder config to specify consumer projects for this shared-reservation. This is only valid when share_type's value is DIRECT_PROJECTS_UNDER_SPECIFIC_FOLDERS. Folder id should be a string of number, and without "folders/" prefix. 513 "a_key": { # Config for each folder in the share settings. 514 "folderId": "A String", # The folder ID, should be same as the key of this folder config in the parent map. Folder id should be a string of number, and without "folders/" prefix. 515 }, 516 }, 517 "projectMap": { # A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS. 518 "a_key": { # Config for each project in the share settings. 519 "projectId": "A String", # The project ID, should be same as the key of this project config in the parent map. 520 }, 521 }, 522 "projects": [ # A List of Project names to specify consumer projects for this shared-reservation. This is only valid when share_type's value is SPECIFIC_PROJECTS. 523 "A String", 524 ], 525 "shareType": "A String", # Type of sharing for this shared-reservation 526 }, 527 "size": 42, # [Output Only] The total number of nodes in the node group. 528 "status": "A String", 529 "zone": "A String", # [Output Only] The name of the zone where the node group resides, such as us-central1-a. 530}</pre> 531</div> 532 533<div class="method"> 534 <code class="details" id="getIamPolicy">getIamPolicy(project, zone, resource, optionsRequestedPolicyVersion=None, x__xgafv=None)</code> 535 <pre>Gets the access control policy for a resource. May be empty if no such policy or resource exists. 536 537Args: 538 project: string, Project ID for this request. (required) 539 zone: string, The name of the zone for this request. (required) 540 resource: string, Name or id of the resource for this request. (required) 541 optionsRequestedPolicyVersion: integer, Requested IAM Policy version. 542 x__xgafv: string, V1 error format. 543 Allowed values 544 1 - v1 error format 545 2 - v2 error format 546 547Returns: 548 An object of the form: 549 550 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:[email protected]", "group:[email protected]", "domain:google.com", "serviceAccount:[email protected]" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:[email protected]" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). 551 "auditConfigs": [ # Specifies cloud audit logging configuration for this policy. 552 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:[email protected]" ] }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:[email protected]" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts [email protected] from DATA_READ logging, and [email protected] from DATA_WRITE logging. 553 "auditLogConfigs": [ # The configuration for logging of each type of permission. 554 { # Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:[email protected]" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting [email protected] from DATA_READ logging. 555 "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. 556 "A String", 557 ], 558 "ignoreChildExemptions": True or False, # This is deprecated and has no effect. Do not use. 559 "logType": "A String", # The log type that this config enables. 560 }, 561 ], 562 "exemptedMembers": [ # This is deprecated and has no effect. Do not use. 563 "A String", 564 ], 565 "service": "A String", # Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services. 566 }, 567 ], 568 "bindings": [ # Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:[email protected]`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`. 569 { # Associates `members`, or principals, with a `role`. 570 "bindingId": "A String", # This is deprecated and has no effect. Do not use. 571 "condition": { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). 572 "description": "A String", # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. 573 "expression": "A String", # Textual representation of an expression in Common Expression Language syntax. 574 "location": "A String", # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. 575 "title": "A String", # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. 576 }, 577 "members": [ # Specifies the principals requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `[email protected]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. 578 "A String", 579 ], 580 "role": "A String", # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. 581 }, 582 ], 583 "etag": "A String", # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. 584 "rules": [ # This is deprecated and has no effect. Do not use. 585 { # This is deprecated and has no effect. Do not use. 586 "action": "A String", # This is deprecated and has no effect. Do not use. 587 "conditions": [ # This is deprecated and has no effect. Do not use. 588 { # This is deprecated and has no effect. Do not use. 589 "iam": "A String", # This is deprecated and has no effect. Do not use. 590 "op": "A String", # This is deprecated and has no effect. Do not use. 591 "svc": "A String", # This is deprecated and has no effect. Do not use. 592 "sys": "A String", # This is deprecated and has no effect. Do not use. 593 "values": [ # This is deprecated and has no effect. Do not use. 594 "A String", 595 ], 596 }, 597 ], 598 "description": "A String", # This is deprecated and has no effect. Do not use. 599 "ins": [ # This is deprecated and has no effect. Do not use. 600 "A String", 601 ], 602 "logConfigs": [ # This is deprecated and has no effect. Do not use. 603 { # This is deprecated and has no effect. Do not use. 604 "cloudAudit": { # This is deprecated and has no effect. Do not use. # This is deprecated and has no effect. Do not use. 605 "authorizationLoggingOptions": { # This is deprecated and has no effect. Do not use. # This is deprecated and has no effect. Do not use. 606 "permissionType": "A String", # This is deprecated and has no effect. Do not use. 607 }, 608 "logName": "A String", # This is deprecated and has no effect. Do not use. 609 }, 610 "counter": { # This is deprecated and has no effect. Do not use. # This is deprecated and has no effect. Do not use. 611 "customFields": [ # This is deprecated and has no effect. Do not use. 612 { # This is deprecated and has no effect. Do not use. 613 "name": "A String", # This is deprecated and has no effect. Do not use. 614 "value": "A String", # This is deprecated and has no effect. Do not use. 615 }, 616 ], 617 "field": "A String", # This is deprecated and has no effect. Do not use. 618 "metric": "A String", # This is deprecated and has no effect. Do not use. 619 }, 620 "dataAccess": { # This is deprecated and has no effect. Do not use. # This is deprecated and has no effect. Do not use. 621 "logMode": "A String", # This is deprecated and has no effect. Do not use. 622 }, 623 }, 624 ], 625 "notIns": [ # This is deprecated and has no effect. Do not use. 626 "A String", 627 ], 628 "permissions": [ # This is deprecated and has no effect. Do not use. 629 "A String", 630 ], 631 }, 632 ], 633 "version": 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). 634}</pre> 635</div> 636 637<div class="method"> 638 <code class="details" id="insert">insert(project, zone, initialNodeCount, body=None, requestId=None, x__xgafv=None)</code> 639 <pre>Creates a NodeGroup resource in the specified project using the data included in the request. 640 641Args: 642 project: string, Project ID for this request. (required) 643 zone: string, The name of the zone for this request. (required) 644 initialNodeCount: integer, Initial count of nodes in the node group. (required) 645 body: object, The request body. 646 The object takes the form of: 647 648{ # Represents a sole-tenant Node Group resource. A sole-tenant node is a physical server that is dedicated to hosting VM instances only for your specific project. Use sole-tenant nodes to keep your instances physically separated from instances in other projects, or to group your instances together on the same host hardware. For more information, read Sole-tenant nodes. 649 "autoscalingPolicy": { # Specifies how autoscaling should behave. 650 "maxNodes": 42, # The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. Maximum value allowed is 100. 651 "minNodes": 42, # The minimum number of nodes that the group should have. 652 "mode": "A String", # The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see Autoscaler modes. 653 }, 654 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 655 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 656 "fingerprint": "A String", 657 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 658 "kind": "compute#nodeGroup", # [Output Only] The type of the resource. Always compute#nodeGroup for node group. 659 "locationHint": "A String", # An opaque location hint used to place the Node close to other resources. This field is for use by internal tools that use the public API. The location hint here on the NodeGroup overrides any location_hint present in the NodeTemplate. 660 "maintenancePolicy": "A String", # Specifies how to handle instances when a node in the group undergoes maintenance. Set to one of: DEFAULT, RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more information, see Maintenance policies. 661 "maintenanceWindow": { # Time window specified for daily maintenance operations. GCE's internal maintenance will be performed within this window. 662 "duration": "A String", # [Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario. 663 "maintenanceDuration": { # A Duration represents a fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution. It is independent of any calendar and concepts like "day" or "month". Range is approximately 10,000 years. # [Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario. 664 "nanos": 42, # Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 `seconds` field and a positive `nanos` field. Must be from 0 to 999,999,999 inclusive. 665 "seconds": "A String", # Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years 666 }, 667 "startTime": "A String", # Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid. 668 }, 669 "name": "A String", # The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 670 "nodeTemplate": "A String", # URL of the node template to create the node group from. 671 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 672 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 673 "shareSettings": { # The share setting for reservations and sole tenancy node groups. # Share-settings for the node group 674 "folderMap": { # A map of folder id and folder config to specify consumer projects for this shared-reservation. This is only valid when share_type's value is DIRECT_PROJECTS_UNDER_SPECIFIC_FOLDERS. Folder id should be a string of number, and without "folders/" prefix. 675 "a_key": { # Config for each folder in the share settings. 676 "folderId": "A String", # The folder ID, should be same as the key of this folder config in the parent map. Folder id should be a string of number, and without "folders/" prefix. 677 }, 678 }, 679 "projectMap": { # A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS. 680 "a_key": { # Config for each project in the share settings. 681 "projectId": "A String", # The project ID, should be same as the key of this project config in the parent map. 682 }, 683 }, 684 "projects": [ # A List of Project names to specify consumer projects for this shared-reservation. This is only valid when share_type's value is SPECIFIC_PROJECTS. 685 "A String", 686 ], 687 "shareType": "A String", # Type of sharing for this shared-reservation 688 }, 689 "size": 42, # [Output Only] The total number of nodes in the node group. 690 "status": "A String", 691 "zone": "A String", # [Output Only] The name of the zone where the node group resides, such as us-central1-a. 692} 693 694 requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). 695 x__xgafv: string, V1 error format. 696 Allowed values 697 1 - v1 error format 698 2 - v2 error format 699 700Returns: 701 An object of the form: 702 703 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/alpha/globalOperations) * [Regional](/compute/docs/reference/rest/alpha/regionOperations) * [Zonal](/compute/docs/reference/rest/alpha/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. 704 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 705 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 706 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 707 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 708 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 709 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 710 { 711 "code": "A String", # [Output Only] The error type identifier for this error. 712 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 713 "message": "A String", # [Output Only] An optional, human-readable error message. 714 }, 715 ], 716 }, 717 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 718 "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. 719 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 720 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 721 "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 722 "metadata": { # [Output Only] Service-specific metadata attached to this operation. 723 "a_key": "", # Properties of the object. Contains field @type with type URL. 724 }, 725 "name": "A String", # [Output Only] Name of the operation. 726 "operationGroupId": "A String", # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 727 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 728 "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. 729 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 730 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 731 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 732 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 733 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 734 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 735 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 736 "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. 737 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 738 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 739 { 740 "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. 741 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 742 { 743 "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). 744 "value": "A String", # [Output Only] A warning data value corresponding to the key. 745 }, 746 ], 747 "message": "A String", # [Output Only] A human-readable description of the warning code. 748 }, 749 ], 750 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 751}</pre> 752</div> 753 754<div class="method"> 755 <code class="details" id="list">list(project, zone, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code> 756 <pre>Retrieves a list of node groups available to the specified project. Note: use nodeGroups.listNodes for more details about each group. 757 758Args: 759 project: string, Project ID for this request. (required) 760 zone: string, The name of the zone for this request. (required) 761 filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You 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. To 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) ``` 762 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`) 763 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by `name` or `creationTimestamp desc` is supported. 764 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. 765 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. 766 x__xgafv: string, V1 error format. 767 Allowed values 768 1 - v1 error format 769 2 - v2 error format 770 771Returns: 772 An object of the form: 773 774 { # Contains a list of nodeGroups. 775 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. 776 "items": [ # A list of NodeGroup resources. 777 { # Represents a sole-tenant Node Group resource. A sole-tenant node is a physical server that is dedicated to hosting VM instances only for your specific project. Use sole-tenant nodes to keep your instances physically separated from instances in other projects, or to group your instances together on the same host hardware. For more information, read Sole-tenant nodes. 778 "autoscalingPolicy": { # Specifies how autoscaling should behave. 779 "maxNodes": 42, # The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. Maximum value allowed is 100. 780 "minNodes": 42, # The minimum number of nodes that the group should have. 781 "mode": "A String", # The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see Autoscaler modes. 782 }, 783 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 784 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 785 "fingerprint": "A String", 786 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 787 "kind": "compute#nodeGroup", # [Output Only] The type of the resource. Always compute#nodeGroup for node group. 788 "locationHint": "A String", # An opaque location hint used to place the Node close to other resources. This field is for use by internal tools that use the public API. The location hint here on the NodeGroup overrides any location_hint present in the NodeTemplate. 789 "maintenancePolicy": "A String", # Specifies how to handle instances when a node in the group undergoes maintenance. Set to one of: DEFAULT, RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more information, see Maintenance policies. 790 "maintenanceWindow": { # Time window specified for daily maintenance operations. GCE's internal maintenance will be performed within this window. 791 "duration": "A String", # [Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario. 792 "maintenanceDuration": { # A Duration represents a fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution. It is independent of any calendar and concepts like "day" or "month". Range is approximately 10,000 years. # [Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario. 793 "nanos": 42, # Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 `seconds` field and a positive `nanos` field. Must be from 0 to 999,999,999 inclusive. 794 "seconds": "A String", # Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years 795 }, 796 "startTime": "A String", # Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid. 797 }, 798 "name": "A String", # The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 799 "nodeTemplate": "A String", # URL of the node template to create the node group from. 800 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 801 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 802 "shareSettings": { # The share setting for reservations and sole tenancy node groups. # Share-settings for the node group 803 "folderMap": { # A map of folder id and folder config to specify consumer projects for this shared-reservation. This is only valid when share_type's value is DIRECT_PROJECTS_UNDER_SPECIFIC_FOLDERS. Folder id should be a string of number, and without "folders/" prefix. 804 "a_key": { # Config for each folder in the share settings. 805 "folderId": "A String", # The folder ID, should be same as the key of this folder config in the parent map. Folder id should be a string of number, and without "folders/" prefix. 806 }, 807 }, 808 "projectMap": { # A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS. 809 "a_key": { # Config for each project in the share settings. 810 "projectId": "A String", # The project ID, should be same as the key of this project config in the parent map. 811 }, 812 }, 813 "projects": [ # A List of Project names to specify consumer projects for this shared-reservation. This is only valid when share_type's value is SPECIFIC_PROJECTS. 814 "A String", 815 ], 816 "shareType": "A String", # Type of sharing for this shared-reservation 817 }, 818 "size": 42, # [Output Only] The total number of nodes in the node group. 819 "status": "A String", 820 "zone": "A String", # [Output Only] The name of the zone where the node group resides, such as us-central1-a. 821 }, 822 ], 823 "kind": "compute#nodeGroupList", # [Output Only] Type of resource.Always compute#nodeGroupList for lists of node groups. 824 "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. 825 "selfLink": "A String", # [Output Only] Server-defined URL for this resource. 826 "warning": { # [Output Only] Informational warning message. 827 "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. 828 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 829 { 830 "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). 831 "value": "A String", # [Output Only] A warning data value corresponding to the key. 832 }, 833 ], 834 "message": "A String", # [Output Only] A human-readable description of the warning code. 835 }, 836}</pre> 837</div> 838 839<div class="method"> 840 <code class="details" id="listNodes">listNodes(project, zone, nodeGroup, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None, x__xgafv=None)</code> 841 <pre>Lists nodes in the node group. 842 843Args: 844 project: string, Project ID for this request. (required) 845 zone: string, The name of the zone for this request. (required) 846 nodeGroup: string, Name of the NodeGroup resource whose nodes you want to list. (required) 847 filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You 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. To 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) ``` 848 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`) 849 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You 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. Currently, only sorting by `name` or `creationTimestamp desc` is supported. 850 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. 851 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. 852 x__xgafv: string, V1 error format. 853 Allowed values 854 1 - v1 error format 855 2 - v2 error format 856 857Returns: 858 An object of the form: 859 860 { 861 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. 862 "items": [ # A list of Node resources. 863 { 864 "accelerators": [ # Accelerators for this node. 865 { # A specification of the type and number of accelerator cards attached to the instance. 866 "acceleratorCount": 42, # The number of the guest accelerator cards exposed to this instance. 867 "acceleratorType": "A String", # Full or partial URL of the accelerator type resource to attach to this instance. For example: projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100 If you are creating an instance template, specify only the accelerator name. See GPUs on Compute Engine for a full list of accelerator types. 868 }, 869 ], 870 "consumedResources": { # Node resources that are reserved by all instances. 871 "guestCpus": 42, # The number of virtual CPUs that are available to the instance. 872 "localSsdGb": 42, # The amount of local SSD storage available to the instance, defined in GiB. 873 "memoryMb": 42, # The amount of physical memory available to the instance, defined in MiB. 874 "minNodeCpus": 42, # The minimal guaranteed number of virtual CPUs that are reserved. 875 }, 876 "cpuOvercommitType": "A String", # CPU overcommit. 877 "disks": [ # Local disk configurations. 878 { 879 "diskCount": 42, # Specifies the number of such disks. 880 "diskSizeGb": 42, # Specifies the size of the disk in base-2 GB. 881 "diskType": "A String", # Specifies the desired disk type on the node. This disk type must be a local storage type (e.g.: local-ssd). Note that for nodeTemplates, this should be the name of the disk type and not its URL. 882 }, 883 ], 884 "instanceConsumptionData": [ # Instance data that shows consumed resources on the node. 885 { 886 "consumptionInfo": { # Resources consumed by the instance. 887 "guestCpus": 42, # The number of virtual CPUs that are available to the instance. 888 "localSsdGb": 42, # The amount of local SSD storage available to the instance, defined in GiB. 889 "memoryMb": 42, # The amount of physical memory available to the instance, defined in MiB. 890 "minNodeCpus": 42, # The minimal guaranteed number of virtual CPUs that are reserved. 891 }, 892 "instance": "A String", # Server-defined URL for the instance. 893 }, 894 ], 895 "instances": [ # Instances scheduled on this node. 896 "A String", 897 ], 898 "name": "A String", # The name of the node. 899 "nodeType": "A String", # The type of this node. 900 "satisfiesPzs": True or False, # [Output Only] Reserved for future use. 901 "serverBinding": { # Binding properties for the physical server. 902 "type": "A String", 903 }, 904 "serverId": "A String", # Server ID associated with this node. 905 "status": "A String", 906 "totalResources": { # Total amount of available resources on the node. 907 "guestCpus": 42, # The number of virtual CPUs that are available to the instance. 908 "localSsdGb": 42, # The amount of local SSD storage available to the instance, defined in GiB. 909 "memoryMb": 42, # The amount of physical memory available to the instance, defined in MiB. 910 "minNodeCpus": 42, # The minimal guaranteed number of virtual CPUs that are reserved. 911 }, 912 }, 913 ], 914 "kind": "compute#nodeGroupsListNodes", # [Output Only] The resource type, which is always compute.nodeGroupsListNodes for the list of nodes in the specified node group. 915 "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. 916 "selfLink": "A String", # [Output Only] Server-defined URL for this resource. 917 "warning": { # [Output Only] Informational warning message. 918 "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. 919 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 920 { 921 "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). 922 "value": "A String", # [Output Only] A warning data value corresponding to the key. 923 }, 924 ], 925 "message": "A String", # [Output Only] A human-readable description of the warning code. 926 }, 927}</pre> 928</div> 929 930<div class="method"> 931 <code class="details" id="listNodes_next">listNodes_next(previous_request, previous_response)</code> 932 <pre>Retrieves the next page of results. 933 934Args: 935 previous_request: The request for the previous page. (required) 936 previous_response: The response from the request for the previous page. (required) 937 938Returns: 939 A request object that you can call 'execute()' on to request the next 940 page. Returns None if there are no more items in the collection. 941 </pre> 942</div> 943 944<div class="method"> 945 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 946 <pre>Retrieves the next page of results. 947 948Args: 949 previous_request: The request for the previous page. (required) 950 previous_response: The response from the request for the previous page. (required) 951 952Returns: 953 A request object that you can call 'execute()' on to request the next 954 page. Returns None if there are no more items in the collection. 955 </pre> 956</div> 957 958<div class="method"> 959 <code class="details" id="patch">patch(project, zone, nodeGroup, body=None, requestId=None, x__xgafv=None)</code> 960 <pre>Updates the specified node group. 961 962Args: 963 project: string, Project ID for this request. (required) 964 zone: string, The name of the zone for this request. (required) 965 nodeGroup: string, Name of the NodeGroup resource to update. (required) 966 body: object, The request body. 967 The object takes the form of: 968 969{ # Represents a sole-tenant Node Group resource. A sole-tenant node is a physical server that is dedicated to hosting VM instances only for your specific project. Use sole-tenant nodes to keep your instances physically separated from instances in other projects, or to group your instances together on the same host hardware. For more information, read Sole-tenant nodes. 970 "autoscalingPolicy": { # Specifies how autoscaling should behave. 971 "maxNodes": 42, # The maximum number of nodes that the group should have. Must be set if autoscaling is enabled. Maximum value allowed is 100. 972 "minNodes": 42, # The minimum number of nodes that the group should have. 973 "mode": "A String", # The autoscaling mode. Set to one of: ON, OFF, or ONLY_SCALE_OUT. For more information, see Autoscaler modes. 974 }, 975 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 976 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 977 "fingerprint": "A String", 978 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 979 "kind": "compute#nodeGroup", # [Output Only] The type of the resource. Always compute#nodeGroup for node group. 980 "locationHint": "A String", # An opaque location hint used to place the Node close to other resources. This field is for use by internal tools that use the public API. The location hint here on the NodeGroup overrides any location_hint present in the NodeTemplate. 981 "maintenancePolicy": "A String", # Specifies how to handle instances when a node in the group undergoes maintenance. Set to one of: DEFAULT, RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The default value is DEFAULT. For more information, see Maintenance policies. 982 "maintenanceWindow": { # Time window specified for daily maintenance operations. GCE's internal maintenance will be performed within this window. 983 "duration": "A String", # [Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario. 984 "maintenanceDuration": { # A Duration represents a fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution. It is independent of any calendar and concepts like "day" or "month". Range is approximately 10,000 years. # [Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario. 985 "nanos": 42, # Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 `seconds` field and a positive `nanos` field. Must be from 0 to 999,999,999 inclusive. 986 "seconds": "A String", # Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years 987 }, 988 "startTime": "A String", # Start time of the window. This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid. 989 }, 990 "name": "A String", # The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 991 "nodeTemplate": "A String", # URL of the node template to create the node group from. 992 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 993 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 994 "shareSettings": { # The share setting for reservations and sole tenancy node groups. # Share-settings for the node group 995 "folderMap": { # A map of folder id and folder config to specify consumer projects for this shared-reservation. This is only valid when share_type's value is DIRECT_PROJECTS_UNDER_SPECIFIC_FOLDERS. Folder id should be a string of number, and without "folders/" prefix. 996 "a_key": { # Config for each folder in the share settings. 997 "folderId": "A String", # The folder ID, should be same as the key of this folder config in the parent map. Folder id should be a string of number, and without "folders/" prefix. 998 }, 999 }, 1000 "projectMap": { # A map of project id and project config. This is only valid when share_type's value is SPECIFIC_PROJECTS. 1001 "a_key": { # Config for each project in the share settings. 1002 "projectId": "A String", # The project ID, should be same as the key of this project config in the parent map. 1003 }, 1004 }, 1005 "projects": [ # A List of Project names to specify consumer projects for this shared-reservation. This is only valid when share_type's value is SPECIFIC_PROJECTS. 1006 "A String", 1007 ], 1008 "shareType": "A String", # Type of sharing for this shared-reservation 1009 }, 1010 "size": 42, # [Output Only] The total number of nodes in the node group. 1011 "status": "A String", 1012 "zone": "A String", # [Output Only] The name of the zone where the node group resides, such as us-central1-a. 1013} 1014 1015 requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). 1016 x__xgafv: string, V1 error format. 1017 Allowed values 1018 1 - v1 error format 1019 2 - v2 error format 1020 1021Returns: 1022 An object of the form: 1023 1024 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/alpha/globalOperations) * [Regional](/compute/docs/reference/rest/alpha/regionOperations) * [Zonal](/compute/docs/reference/rest/alpha/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. 1025 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 1026 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 1027 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 1028 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 1029 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 1030 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 1031 { 1032 "code": "A String", # [Output Only] The error type identifier for this error. 1033 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 1034 "message": "A String", # [Output Only] An optional, human-readable error message. 1035 }, 1036 ], 1037 }, 1038 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 1039 "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. 1040 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 1041 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 1042 "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 1043 "metadata": { # [Output Only] Service-specific metadata attached to this operation. 1044 "a_key": "", # Properties of the object. Contains field @type with type URL. 1045 }, 1046 "name": "A String", # [Output Only] Name of the operation. 1047 "operationGroupId": "A String", # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 1048 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 1049 "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. 1050 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 1051 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 1052 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 1053 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 1054 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 1055 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 1056 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 1057 "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. 1058 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 1059 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 1060 { 1061 "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. 1062 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 1063 { 1064 "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). 1065 "value": "A String", # [Output Only] A warning data value corresponding to the key. 1066 }, 1067 ], 1068 "message": "A String", # [Output Only] A human-readable description of the warning code. 1069 }, 1070 ], 1071 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 1072}</pre> 1073</div> 1074 1075<div class="method"> 1076 <code class="details" id="setIamPolicy">setIamPolicy(project, zone, resource, body=None, x__xgafv=None)</code> 1077 <pre>Sets the access control policy on the specified resource. Replaces any existing policy. 1078 1079Args: 1080 project: string, Project ID for this request. (required) 1081 zone: string, The name of the zone for this request. (required) 1082 resource: string, Name or id of the resource for this request. (required) 1083 body: object, The request body. 1084 The object takes the form of: 1085 1086{ 1087 "bindings": [ # Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify bindings. 1088 { # Associates `members`, or principals, with a `role`. 1089 "bindingId": "A String", # This is deprecated and has no effect. Do not use. 1090 "condition": { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). 1091 "description": "A String", # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. 1092 "expression": "A String", # Textual representation of an expression in Common Expression Language syntax. 1093 "location": "A String", # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. 1094 "title": "A String", # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. 1095 }, 1096 "members": [ # Specifies the principals requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `[email protected]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. 1097 "A String", 1098 ], 1099 "role": "A String", # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. 1100 }, 1101 ], 1102 "etag": "A String", # Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag. 1103 "policy": { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:[email protected]", "group:[email protected]", "domain:google.com", "serviceAccount:[email protected]" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:[email protected]" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). # REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is limited to a few 10s of KB. An empty policy is in general a valid policy but certain services (like Projects) might reject them. 1104 "auditConfigs": [ # Specifies cloud audit logging configuration for this policy. 1105 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:[email protected]" ] }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:[email protected]" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts [email protected] from DATA_READ logging, and [email protected] from DATA_WRITE logging. 1106 "auditLogConfigs": [ # The configuration for logging of each type of permission. 1107 { # Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:[email protected]" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting [email protected] from DATA_READ logging. 1108 "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. 1109 "A String", 1110 ], 1111 "ignoreChildExemptions": True or False, # This is deprecated and has no effect. Do not use. 1112 "logType": "A String", # The log type that this config enables. 1113 }, 1114 ], 1115 "exemptedMembers": [ # This is deprecated and has no effect. Do not use. 1116 "A String", 1117 ], 1118 "service": "A String", # Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services. 1119 }, 1120 ], 1121 "bindings": [ # Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:[email protected]`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`. 1122 { # Associates `members`, or principals, with a `role`. 1123 "bindingId": "A String", # This is deprecated and has no effect. Do not use. 1124 "condition": { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). 1125 "description": "A String", # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. 1126 "expression": "A String", # Textual representation of an expression in Common Expression Language syntax. 1127 "location": "A String", # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. 1128 "title": "A String", # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. 1129 }, 1130 "members": [ # Specifies the principals requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `[email protected]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. 1131 "A String", 1132 ], 1133 "role": "A String", # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. 1134 }, 1135 ], 1136 "etag": "A String", # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. 1137 "rules": [ # This is deprecated and has no effect. Do not use. 1138 { # This is deprecated and has no effect. Do not use. 1139 "action": "A String", # This is deprecated and has no effect. Do not use. 1140 "conditions": [ # This is deprecated and has no effect. Do not use. 1141 { # This is deprecated and has no effect. Do not use. 1142 "iam": "A String", # This is deprecated and has no effect. Do not use. 1143 "op": "A String", # This is deprecated and has no effect. Do not use. 1144 "svc": "A String", # This is deprecated and has no effect. Do not use. 1145 "sys": "A String", # This is deprecated and has no effect. Do not use. 1146 "values": [ # This is deprecated and has no effect. Do not use. 1147 "A String", 1148 ], 1149 }, 1150 ], 1151 "description": "A String", # This is deprecated and has no effect. Do not use. 1152 "ins": [ # This is deprecated and has no effect. Do not use. 1153 "A String", 1154 ], 1155 "logConfigs": [ # This is deprecated and has no effect. Do not use. 1156 { # This is deprecated and has no effect. Do not use. 1157 "cloudAudit": { # This is deprecated and has no effect. Do not use. # This is deprecated and has no effect. Do not use. 1158 "authorizationLoggingOptions": { # This is deprecated and has no effect. Do not use. # This is deprecated and has no effect. Do not use. 1159 "permissionType": "A String", # This is deprecated and has no effect. Do not use. 1160 }, 1161 "logName": "A String", # This is deprecated and has no effect. Do not use. 1162 }, 1163 "counter": { # This is deprecated and has no effect. Do not use. # This is deprecated and has no effect. Do not use. 1164 "customFields": [ # This is deprecated and has no effect. Do not use. 1165 { # This is deprecated and has no effect. Do not use. 1166 "name": "A String", # This is deprecated and has no effect. Do not use. 1167 "value": "A String", # This is deprecated and has no effect. Do not use. 1168 }, 1169 ], 1170 "field": "A String", # This is deprecated and has no effect. Do not use. 1171 "metric": "A String", # This is deprecated and has no effect. Do not use. 1172 }, 1173 "dataAccess": { # This is deprecated and has no effect. Do not use. # This is deprecated and has no effect. Do not use. 1174 "logMode": "A String", # This is deprecated and has no effect. Do not use. 1175 }, 1176 }, 1177 ], 1178 "notIns": [ # This is deprecated and has no effect. Do not use. 1179 "A String", 1180 ], 1181 "permissions": [ # This is deprecated and has no effect. Do not use. 1182 "A String", 1183 ], 1184 }, 1185 ], 1186 "version": 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). 1187 }, 1188} 1189 1190 x__xgafv: string, V1 error format. 1191 Allowed values 1192 1 - v1 error format 1193 2 - v2 error format 1194 1195Returns: 1196 An object of the form: 1197 1198 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:[email protected]", "group:[email protected]", "domain:google.com", "serviceAccount:[email protected]" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:[email protected]" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } **YAML example:** bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). 1199 "auditConfigs": [ # Specifies cloud audit logging configuration for this policy. 1200 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:[email protected]" ] }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ "user:[email protected]" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts [email protected] from DATA_READ logging, and [email protected] from DATA_WRITE logging. 1201 "auditLogConfigs": [ # The configuration for logging of each type of permission. 1202 { # Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:[email protected]" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting [email protected] from DATA_READ logging. 1203 "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. 1204 "A String", 1205 ], 1206 "ignoreChildExemptions": True or False, # This is deprecated and has no effect. Do not use. 1207 "logType": "A String", # The log type that this config enables. 1208 }, 1209 ], 1210 "exemptedMembers": [ # This is deprecated and has no effect. Do not use. 1211 "A String", 1212 ], 1213 "service": "A String", # Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services. 1214 }, 1215 ], 1216 "bindings": [ # Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:[email protected]`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`. 1217 { # Associates `members`, or principals, with a `role`. 1218 "bindingId": "A String", # This is deprecated and has no effect. Do not use. 1219 "condition": { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). 1220 "description": "A String", # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. 1221 "expression": "A String", # Textual representation of an expression in Common Expression Language syntax. 1222 "location": "A String", # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. 1223 "title": "A String", # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. 1224 }, 1225 "members": [ # Specifies the principals requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `[email protected]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. 1226 "A String", 1227 ], 1228 "role": "A String", # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. 1229 }, 1230 ], 1231 "etag": "A String", # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. 1232 "rules": [ # This is deprecated and has no effect. Do not use. 1233 { # This is deprecated and has no effect. Do not use. 1234 "action": "A String", # This is deprecated and has no effect. Do not use. 1235 "conditions": [ # This is deprecated and has no effect. Do not use. 1236 { # This is deprecated and has no effect. Do not use. 1237 "iam": "A String", # This is deprecated and has no effect. Do not use. 1238 "op": "A String", # This is deprecated and has no effect. Do not use. 1239 "svc": "A String", # This is deprecated and has no effect. Do not use. 1240 "sys": "A String", # This is deprecated and has no effect. Do not use. 1241 "values": [ # This is deprecated and has no effect. Do not use. 1242 "A String", 1243 ], 1244 }, 1245 ], 1246 "description": "A String", # This is deprecated and has no effect. Do not use. 1247 "ins": [ # This is deprecated and has no effect. Do not use. 1248 "A String", 1249 ], 1250 "logConfigs": [ # This is deprecated and has no effect. Do not use. 1251 { # This is deprecated and has no effect. Do not use. 1252 "cloudAudit": { # This is deprecated and has no effect. Do not use. # This is deprecated and has no effect. Do not use. 1253 "authorizationLoggingOptions": { # This is deprecated and has no effect. Do not use. # This is deprecated and has no effect. Do not use. 1254 "permissionType": "A String", # This is deprecated and has no effect. Do not use. 1255 }, 1256 "logName": "A String", # This is deprecated and has no effect. Do not use. 1257 }, 1258 "counter": { # This is deprecated and has no effect. Do not use. # This is deprecated and has no effect. Do not use. 1259 "customFields": [ # This is deprecated and has no effect. Do not use. 1260 { # This is deprecated and has no effect. Do not use. 1261 "name": "A String", # This is deprecated and has no effect. Do not use. 1262 "value": "A String", # This is deprecated and has no effect. Do not use. 1263 }, 1264 ], 1265 "field": "A String", # This is deprecated and has no effect. Do not use. 1266 "metric": "A String", # This is deprecated and has no effect. Do not use. 1267 }, 1268 "dataAccess": { # This is deprecated and has no effect. Do not use. # This is deprecated and has no effect. Do not use. 1269 "logMode": "A String", # This is deprecated and has no effect. Do not use. 1270 }, 1271 }, 1272 ], 1273 "notIns": [ # This is deprecated and has no effect. Do not use. 1274 "A String", 1275 ], 1276 "permissions": [ # This is deprecated and has no effect. Do not use. 1277 "A String", 1278 ], 1279 }, 1280 ], 1281 "version": 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). 1282}</pre> 1283</div> 1284 1285<div class="method"> 1286 <code class="details" id="setNodeTemplate">setNodeTemplate(project, zone, nodeGroup, body=None, requestId=None, x__xgafv=None)</code> 1287 <pre>Updates the node template of the node group. 1288 1289Args: 1290 project: string, Project ID for this request. (required) 1291 zone: string, The name of the zone for this request. (required) 1292 nodeGroup: string, Name of the NodeGroup resource to update. (required) 1293 body: object, The request body. 1294 The object takes the form of: 1295 1296{ 1297 "nodeTemplate": "A String", # Full or partial URL of the node template resource to be updated for this node group. 1298} 1299 1300 requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). 1301 x__xgafv: string, V1 error format. 1302 Allowed values 1303 1 - v1 error format 1304 2 - v2 error format 1305 1306Returns: 1307 An object of the form: 1308 1309 { # Represents an Operation resource. Google Compute Engine has three Operation resources: * [Global](/compute/docs/reference/rest/alpha/globalOperations) * [Regional](/compute/docs/reference/rest/alpha/regionOperations) * [Zonal](/compute/docs/reference/rest/alpha/zoneOperations) You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the `globalOperations` resource. - For regional operations, use the `regionOperations` resource. - For zonal operations, use the `zonalOperations` resource. For more information, read Global, Regional, and Zonal Resources. 1310 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 1311 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 1312 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 1313 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 1314 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 1315 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 1316 { 1317 "code": "A String", # [Output Only] The error type identifier for this error. 1318 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 1319 "message": "A String", # [Output Only] An optional, human-readable error message. 1320 }, 1321 ], 1322 }, 1323 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`. 1324 "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. 1325 "id": "A String", # [Output Only] The unique identifier for the operation. This identifier is defined by the server. 1326 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 1327 "kind": "compute#operation", # [Output Only] Type of the resource. Always `compute#operation` for Operation resources. 1328 "metadata": { # [Output Only] Service-specific metadata attached to this operation. 1329 "a_key": "", # Properties of the object. Contains field @type with type URL. 1330 }, 1331 "name": "A String", # [Output Only] Name of the operation. 1332 "operationGroupId": "A String", # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request. 1333 "operationType": "A String", # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on. 1334 "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. 1335 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 1336 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 1337 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 1338 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 1339 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`. 1340 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 1341 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 1342 "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. 1343 "user": "A String", # [Output Only] User who requested the operation, for example: `[email protected]`. 1344 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 1345 { 1346 "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. 1347 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } 1348 { 1349 "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). 1350 "value": "A String", # [Output Only] A warning data value corresponding to the key. 1351 }, 1352 ], 1353 "message": "A String", # [Output Only] A human-readable description of the warning code. 1354 }, 1355 ], 1356 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 1357}</pre> 1358</div> 1359 1360<div class="method"> 1361 <code class="details" id="testIamPermissions">testIamPermissions(project, zone, resource, body=None, x__xgafv=None)</code> 1362 <pre>Returns permissions that a caller has on the specified resource. 1363 1364Args: 1365 project: string, Project ID for this request. (required) 1366 zone: string, The name of the zone for this request. (required) 1367 resource: string, Name or id of the resource for this request. (required) 1368 body: object, The request body. 1369 The object takes the form of: 1370 1371{ 1372 "permissions": [ # The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. 1373 "A String", 1374 ], 1375} 1376 1377 x__xgafv: string, V1 error format. 1378 Allowed values 1379 1 - v1 error format 1380 2 - v2 error format 1381 1382Returns: 1383 An object of the form: 1384 1385 { 1386 "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. 1387 "A String", 1388 ], 1389}</pre> 1390</div> 1391 1392</body></html>