blob: cb2e075fc618862d2feb6e1aaae68641b5c6c2a5 [file] [log] [blame]
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="compute_beta.html">Compute Engine API</a> . <a href="compute_beta.addresses.html">addresses</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#aggregatedList">aggregatedList(project, filter=None, includeAllScopes=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None)</a></code></p>
Sai Cheemalapatidf613972016-10-21 13:59:49 -070079<p class="firstline">Retrieves an aggregated list of addresses.</p>
80<p class="toc_element">
81 <code><a href="#aggregatedList_next">aggregatedList_next(previous_request, previous_response)</a></code></p>
82<p class="firstline">Retrieves the next page of results.</p>
83<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070084 <code><a href="#close">close()</a></code></p>
85<p class="firstline">Close httplib2 connections.</p>
86<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070087 <code><a href="#delete">delete(project, region, address, requestId=None)</a></code></p>
Sai Cheemalapatidf613972016-10-21 13:59:49 -070088<p class="firstline">Deletes the specified address resource.</p>
89<p class="toc_element">
90 <code><a href="#get">get(project, region, address)</a></code></p>
91<p class="firstline">Returns the specified address resource.</p>
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#insert">insert(project, region, body=None, requestId=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Creates an address resource in the specified project by using the data included in the request.</p>
Sai Cheemalapatidf613972016-10-21 13:59:49 -070095<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070096 <code><a href="#list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None)</a></code></p>
Sai Cheemalapatidf613972016-10-21 13:59:49 -070097<p class="firstline">Retrieves a list of addresses contained within the specified region.</p>
98<p class="toc_element">
99 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
100<p class="firstline">Retrieves the next page of results.</p>
101<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#setLabels">setLabels(project, region, resource, body=None, requestId=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103<p class="firstline">Sets the labels on an Address. To learn more about labels, read the Labeling Resources documentation.</p>
104<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code><a href="#testIamPermissions">testIamPermissions(project, region, resource, body=None)</a></code></p>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700106<p class="firstline">Returns permissions that a caller has on the specified resource.</p>
107<h3>Method Details</h3>
108<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700109 <code class="details" id="aggregatedList">aggregatedList(project, filter=None, includeAllScopes=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None)</code>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700110 <pre>Retrieves an aggregated list of addresses.
111
112Args:
113 project: string, Project ID for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700114 filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `&gt;`, or `&lt;`.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700115
Dan O'Mearadd494642020-05-01 07:42:23 -0700116For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700117
Dan O'Mearadd494642020-05-01 07:42:23 -0700118You 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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700119
Bu Sun Kim65020912020-05-20 12:08:20 -0700120To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = &quot;Intel Skylake&quot;) ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = &quot;Intel Skylake&quot;) OR (cpuPlatform = &quot;Intel Broadwell&quot;) AND (scheduling.automaticRestart = true) ```
Dan O'Mearadd494642020-05-01 07:42:23 -0700121 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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700122 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`)
123 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
124
125You can also sort results in descending order based on the creation timestamp using `orderBy=&quot;creationTimestamp desc&quot;`. 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.
126
127Currently, only sorting by `name` or `creationTimestamp desc` is supported.
128 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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800129 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700130
131Returns:
132 An object of the form:
133
134 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800135 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
136 &quot;items&quot;: { # A list of AddressesScopedList resources.
137 &quot;a_key&quot;: { # [Output Only] Name of the scope containing this set of addresses.
138 &quot;addresses&quot;: [ # [Output Only] A list of addresses contained in this scope.
139 { # Use global external addresses for GFE-based external HTTP(S) load balancers in Premium Tier.
140 #
141 # Use global internal addresses for reserved peering network range.
142 #
143 # Use regional external addresses for the following resources:
144 #
145 # - External IP addresses for VM instances - Regional external forwarding rules - Cloud NAT external IP addresses - GFE based LBs in Standard Tier - Network LBs in Premium or Standard Tier - Cloud VPN gateways (both Classic and HA)
146 #
147 # Use regional internal IP addresses for subnet IP ranges (primary and secondary). This includes:
148 #
149 # - Internal IP addresses for VM instances - Alias IP ranges of VM instances (/32 only) - Regional internal forwarding rules - Internal TCP/UDP load balancer addresses - Internal HTTP(S) load balancer addresses - Cloud DNS inbound forwarding IP addresses
150 #
151 # For more information, read reserved IP address.
152 #
153 # (== resource_for {$api_version}.addresses ==) (== resource_for {$api_version}.globalAddresses ==)
154 &quot;address&quot;: &quot;A String&quot;, # The static IP address represented by this resource.
155 &quot;addressType&quot;: &quot;A String&quot;, # The type of address to reserve, either INTERNAL or EXTERNAL. If unspecified, defaults to EXTERNAL.
156 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in RFC3339 text format.
157 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this field when you create the resource.
158 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
159 &quot;ipVersion&quot;: &quot;A String&quot;, # The IP version that will be used by this address. Valid options are IPV4 or IPV6. This can only be specified for a global address.
160 &quot;kind&quot;: &quot;compute#address&quot;, # [Output Only] Type of the resource. Always compute#address for addresses.
161 &quot;labelFingerprint&quot;: &quot;A String&quot;, # A fingerprint for the labels being applied to this Address, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet.
Bu Sun Kim65020912020-05-20 12:08:20 -0700162 #
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800163 # To see the latest fingerprint, make a get() request to retrieve an Address.
164 &quot;labels&quot;: { # Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
165 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700166 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800167 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created. The 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])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
168 &quot;network&quot;: &quot;A String&quot;, # The URL of the network in which to reserve the address. This field can only be used with INTERNAL type with the VPC_PEERING purpose.
169 &quot;networkTier&quot;: &quot;A String&quot;, # This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM or STANDARD. Global forwarding rules can only be Premium Tier. Regional forwarding rules can be either Premium or Standard Tier. Standard Tier addresses applied to regional forwarding rules can be used with any external load balancer. Regional forwarding rules in Premium Tier can only be used with a network load balancer.
170 #
171 # If this field is not specified, it is assumed to be PREMIUM.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700172 &quot;prefixLength&quot;: 42, # The prefix length if the resource represents an IP range.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800173 &quot;purpose&quot;: &quot;A String&quot;, # The purpose of this resource, which can be one of the following values:
174 # - `GCE_ENDPOINT` for addresses that are used by VM instances, alias IP ranges, internal load balancers, and similar resources.
175 # - `DNS_RESOLVER` for a DNS resolver address in a subnetwork
176 # - `VPC_PEERING` for addresses that are reserved for VPC peer networks.
177 # - `NAT_AUTO` for addresses that are external IP addresses automatically reserved for Cloud NAT.
yoshi-code-bot73a0aa32021-05-25 00:30:03 -0700178 # - `IPSEC_INTERCONNECT` for addresses created from a private IP range that are reserved for a VLAN attachment in an IPsec-encrypted Cloud Interconnect configuration. These addresses are regional resources. Not currently available publicly.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800179 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where a regional address resides. For regional addresses, you must specify the region as a path parameter in the HTTP request URL. This field is not applicable to global addresses.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800180 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
181 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the address, which can be one of RESERVING, RESERVED, or IN_USE. An address that is RESERVING is currently in the process of being reserved. A RESERVED address is currently reserved and available to use. An IN_USE address is currently being used by another resource and is not available.
182 &quot;subnetwork&quot;: &quot;A String&quot;, # The URL of the subnetwork in which to reserve the address. If an IP address is specified, it must be within the subnetwork&#x27;s IP range. This field can only be used with INTERNAL type with a GCE_ENDPOINT or DNS_RESOLVER purpose.
183 &quot;users&quot;: [ # [Output Only] The URLs of the resources that are using this address.
184 &quot;A String&quot;,
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700185 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700186 },
187 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800188 &quot;warning&quot;: { # [Output Only] Informational warning which replaces the list of addresses when the list is empty.
189 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
190 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
191 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
192 {
193 &quot;key&quot;: &quot;A String&quot;, # [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 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
195 },
196 ],
197 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
198 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700199 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800200 },
201 &quot;kind&quot;: &quot;compute#addressAggregatedList&quot;, # [Output Only] Type of resource. Always compute#addressAggregatedList for aggregated lists of addresses.
202 &quot;nextPageToken&quot;: &quot;A String&quot;, # [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.
203 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for this resource.
204 &quot;unreachables&quot;: [ # [Output Only] Unreachable resources.
205 &quot;A String&quot;,
206 ],
207 &quot;warning&quot;: { # [Output Only] Informational warning message.
208 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
209 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
210 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
211 {
212 &quot;key&quot;: &quot;A String&quot;, # [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).
213 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
214 },
215 ],
216 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
217 },
218}</pre>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700219</div>
220
221<div class="method">
222 <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code>
223 <pre>Retrieves the next page of results.
224
225Args:
226 previous_request: The request for the previous page. (required)
227 previous_response: The response from the request for the previous page. (required)
228
229Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700230 A request object that you can call &#x27;execute()&#x27; on to request the next
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700231 page. Returns None if there are no more items in the collection.
232 </pre>
233</div>
234
235<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700236 <code class="details" id="close">close()</code>
237 <pre>Close httplib2 connections.</pre>
238</div>
239
240<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700241 <code class="details" id="delete">delete(project, region, address, requestId=None)</code>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700242 <pre>Deletes the specified address resource.
243
244Args:
245 project: string, Project ID for this request. (required)
246 region: string, Name of the region for this request. (required)
247 address: string, Name of the address resource to delete. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700248 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.
249
250For 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.
251
252The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700253
254Returns:
255 An object of the form:
256
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700257 { # Represents an Operation resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800258 #
259 # Google Compute Engine has three Operation resources:
260 #
261 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
262 #
263 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
264 #
265 # Operations can be global, regional or zonal.
266 # - For global operations, use the `globalOperations` resource.
267 # - For regional operations, use the `regionOperations` resource.
268 # - For zonal operations, use the `zonalOperations` resource.
269 #
270 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
271 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
272 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
273 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
274 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
275 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
276 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700277 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800278 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
279 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
280 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Bu Sun Kim65020912020-05-20 12:08:20 -0700281 },
282 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800283 },
284 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`.
285 &quot;httpErrorStatusCode&quot;: 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.
286 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
287 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
288 &quot;kind&quot;: &quot;compute#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
289 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800290 &quot;operationGroupId&quot;: &quot;A String&quot;, # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800291 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
292 &quot;progress&quot;: 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.
293 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
294 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
295 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
296 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`.
297 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
298 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
299 &quot;targetLink&quot;: &quot;A String&quot;, # [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.
300 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
301 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
302 {
303 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
304 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
305 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
306 {
307 &quot;key&quot;: &quot;A String&quot;, # [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).
308 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
309 },
310 ],
311 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
312 },
313 ],
314 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
315}</pre>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700316</div>
317
318<div class="method">
319 <code class="details" id="get">get(project, region, address)</code>
320 <pre>Returns the specified address resource.
321
322Args:
323 project: string, Project ID for this request. (required)
324 region: string, Name of the region for this request. (required)
325 address: string, Name of the address resource to return. (required)
326
327Returns:
328 An object of the form:
329
Dan O'Mearadd494642020-05-01 07:42:23 -0700330 { # Use global external addresses for GFE-based external HTTP(S) load balancers in Premium Tier.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800331 #
332 # Use global internal addresses for reserved peering network range.
333 #
334 # Use regional external addresses for the following resources:
335 #
336 # - External IP addresses for VM instances - Regional external forwarding rules - Cloud NAT external IP addresses - GFE based LBs in Standard Tier - Network LBs in Premium or Standard Tier - Cloud VPN gateways (both Classic and HA)
337 #
338 # Use regional internal IP addresses for subnet IP ranges (primary and secondary). This includes:
339 #
340 # - Internal IP addresses for VM instances - Alias IP ranges of VM instances (/32 only) - Regional internal forwarding rules - Internal TCP/UDP load balancer addresses - Internal HTTP(S) load balancer addresses - Cloud DNS inbound forwarding IP addresses
341 #
342 # For more information, read reserved IP address.
343 #
344 # (== resource_for {$api_version}.addresses ==) (== resource_for {$api_version}.globalAddresses ==)
345 &quot;address&quot;: &quot;A String&quot;, # The static IP address represented by this resource.
346 &quot;addressType&quot;: &quot;A String&quot;, # The type of address to reserve, either INTERNAL or EXTERNAL. If unspecified, defaults to EXTERNAL.
347 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in RFC3339 text format.
348 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this field when you create the resource.
349 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
350 &quot;ipVersion&quot;: &quot;A String&quot;, # The IP version that will be used by this address. Valid options are IPV4 or IPV6. This can only be specified for a global address.
351 &quot;kind&quot;: &quot;compute#address&quot;, # [Output Only] Type of the resource. Always compute#address for addresses.
352 &quot;labelFingerprint&quot;: &quot;A String&quot;, # A fingerprint for the labels being applied to this Address, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet.
Bu Sun Kim65020912020-05-20 12:08:20 -0700353 #
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800354 # To see the latest fingerprint, make a get() request to retrieve an Address.
355 &quot;labels&quot;: { # Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
356 &quot;a_key&quot;: &quot;A String&quot;,
357 },
358 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created. The 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])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
359 &quot;network&quot;: &quot;A String&quot;, # The URL of the network in which to reserve the address. This field can only be used with INTERNAL type with the VPC_PEERING purpose.
360 &quot;networkTier&quot;: &quot;A String&quot;, # This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM or STANDARD. Global forwarding rules can only be Premium Tier. Regional forwarding rules can be either Premium or Standard Tier. Standard Tier addresses applied to regional forwarding rules can be used with any external load balancer. Regional forwarding rules in Premium Tier can only be used with a network load balancer.
Bu Sun Kim65020912020-05-20 12:08:20 -0700361 #
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800362 # If this field is not specified, it is assumed to be PREMIUM.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700363 &quot;prefixLength&quot;: 42, # The prefix length if the resource represents an IP range.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800364 &quot;purpose&quot;: &quot;A String&quot;, # The purpose of this resource, which can be one of the following values:
365 # - `GCE_ENDPOINT` for addresses that are used by VM instances, alias IP ranges, internal load balancers, and similar resources.
366 # - `DNS_RESOLVER` for a DNS resolver address in a subnetwork
367 # - `VPC_PEERING` for addresses that are reserved for VPC peer networks.
368 # - `NAT_AUTO` for addresses that are external IP addresses automatically reserved for Cloud NAT.
yoshi-code-bot73a0aa32021-05-25 00:30:03 -0700369 # - `IPSEC_INTERCONNECT` for addresses created from a private IP range that are reserved for a VLAN attachment in an IPsec-encrypted Cloud Interconnect configuration. These addresses are regional resources. Not currently available publicly.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800370 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where a regional address resides. For regional addresses, you must specify the region as a path parameter in the HTTP request URL. This field is not applicable to global addresses.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800371 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
372 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the address, which can be one of RESERVING, RESERVED, or IN_USE. An address that is RESERVING is currently in the process of being reserved. A RESERVED address is currently reserved and available to use. An IN_USE address is currently being used by another resource and is not available.
373 &quot;subnetwork&quot;: &quot;A String&quot;, # The URL of the subnetwork in which to reserve the address. If an IP address is specified, it must be within the subnetwork&#x27;s IP range. This field can only be used with INTERNAL type with a GCE_ENDPOINT or DNS_RESOLVER purpose.
374 &quot;users&quot;: [ # [Output Only] The URLs of the resources that are using this address.
375 &quot;A String&quot;,
376 ],
377}</pre>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700378</div>
379
380<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700381 <code class="details" id="insert">insert(project, region, body=None, requestId=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700382 <pre>Creates an address resource in the specified project by using the data included in the request.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700383
384Args:
385 project: string, Project ID for this request. (required)
386 region: string, Name of the region for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700387 body: object, The request body.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700388 The object takes the form of:
389
Dan O'Mearadd494642020-05-01 07:42:23 -0700390{ # Use global external addresses for GFE-based external HTTP(S) load balancers in Premium Tier.
Bu Sun Kim65020912020-05-20 12:08:20 -0700391 #
392 # Use global internal addresses for reserved peering network range.
393 #
394 # Use regional external addresses for the following resources:
395 #
396 # - External IP addresses for VM instances - Regional external forwarding rules - Cloud NAT external IP addresses - GFE based LBs in Standard Tier - Network LBs in Premium or Standard Tier - Cloud VPN gateways (both Classic and HA)
397 #
398 # Use regional internal IP addresses for subnet IP ranges (primary and secondary). This includes:
399 #
400 # - Internal IP addresses for VM instances - Alias IP ranges of VM instances (/32 only) - Regional internal forwarding rules - Internal TCP/UDP load balancer addresses - Internal HTTP(S) load balancer addresses - Cloud DNS inbound forwarding IP addresses
401 #
402 # For more information, read reserved IP address.
403 #
404 # (== resource_for {$api_version}.addresses ==) (== resource_for {$api_version}.globalAddresses ==)
405 &quot;address&quot;: &quot;A String&quot;, # The static IP address represented by this resource.
406 &quot;addressType&quot;: &quot;A String&quot;, # The type of address to reserve, either INTERNAL or EXTERNAL. If unspecified, defaults to EXTERNAL.
407 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in RFC3339 text format.
408 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this field when you create the resource.
409 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
410 &quot;ipVersion&quot;: &quot;A String&quot;, # The IP version that will be used by this address. Valid options are IPV4 or IPV6. This can only be specified for a global address.
411 &quot;kind&quot;: &quot;compute#address&quot;, # [Output Only] Type of the resource. Always compute#address for addresses.
412 &quot;labelFingerprint&quot;: &quot;A String&quot;, # A fingerprint for the labels being applied to this Address, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700413 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700414 # To see the latest fingerprint, make a get() request to retrieve an Address.
415 &quot;labels&quot;: { # Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
416 &quot;a_key&quot;: &quot;A String&quot;,
417 },
418 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created. The 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])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
419 &quot;network&quot;: &quot;A String&quot;, # The URL of the network in which to reserve the address. This field can only be used with INTERNAL type with the VPC_PEERING purpose.
420 &quot;networkTier&quot;: &quot;A String&quot;, # This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM or STANDARD. Global forwarding rules can only be Premium Tier. Regional forwarding rules can be either Premium or Standard Tier. Standard Tier addresses applied to regional forwarding rules can be used with any external load balancer. Regional forwarding rules in Premium Tier can only be used with a network load balancer.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700421 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700422 # If this field is not specified, it is assumed to be PREMIUM.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700423 &quot;prefixLength&quot;: 42, # The prefix length if the resource represents an IP range.
Bu Sun Kim65020912020-05-20 12:08:20 -0700424 &quot;purpose&quot;: &quot;A String&quot;, # The purpose of this resource, which can be one of the following values:
425 # - `GCE_ENDPOINT` for addresses that are used by VM instances, alias IP ranges, internal load balancers, and similar resources.
426 # - `DNS_RESOLVER` for a DNS resolver address in a subnetwork
427 # - `VPC_PEERING` for addresses that are reserved for VPC peer networks.
428 # - `NAT_AUTO` for addresses that are external IP addresses automatically reserved for Cloud NAT.
yoshi-code-bot73a0aa32021-05-25 00:30:03 -0700429 # - `IPSEC_INTERCONNECT` for addresses created from a private IP range that are reserved for a VLAN attachment in an IPsec-encrypted Cloud Interconnect configuration. These addresses are regional resources. Not currently available publicly.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800430 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where a regional address resides. For regional addresses, you must specify the region as a path parameter in the HTTP request URL. This field is not applicable to global addresses.
Bu Sun Kim65020912020-05-20 12:08:20 -0700431 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
432 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the address, which can be one of RESERVING, RESERVED, or IN_USE. An address that is RESERVING is currently in the process of being reserved. A RESERVED address is currently reserved and available to use. An IN_USE address is currently being used by another resource and is not available.
433 &quot;subnetwork&quot;: &quot;A String&quot;, # The URL of the subnetwork in which to reserve the address. If an IP address is specified, it must be within the subnetwork&#x27;s IP range. This field can only be used with INTERNAL type with a GCE_ENDPOINT or DNS_RESOLVER purpose.
434 &quot;users&quot;: [ # [Output Only] The URLs of the resources that are using this address.
435 &quot;A String&quot;,
436 ],
437}
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700438
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700439 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.
440
441For 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.
442
443The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700444
445Returns:
446 An object of the form:
447
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700448 { # Represents an Operation resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800449 #
450 # Google Compute Engine has three Operation resources:
451 #
452 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
453 #
454 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
455 #
456 # Operations can be global, regional or zonal.
457 # - For global operations, use the `globalOperations` resource.
458 # - For regional operations, use the `regionOperations` resource.
459 # - For zonal operations, use the `zonalOperations` resource.
460 #
461 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
462 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
463 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
464 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
465 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
466 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
467 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700468 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800469 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
470 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
471 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Bu Sun Kim65020912020-05-20 12:08:20 -0700472 },
473 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800474 },
475 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`.
476 &quot;httpErrorStatusCode&quot;: 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.
477 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
478 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
479 &quot;kind&quot;: &quot;compute#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
480 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800481 &quot;operationGroupId&quot;: &quot;A String&quot;, # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800482 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
483 &quot;progress&quot;: 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.
484 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
485 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
486 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
487 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`.
488 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
489 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
490 &quot;targetLink&quot;: &quot;A String&quot;, # [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.
491 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
492 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
493 {
494 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
495 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
496 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
497 {
498 &quot;key&quot;: &quot;A String&quot;, # [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).
499 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
500 },
501 ],
502 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
503 },
504 ],
505 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
506}</pre>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700507</div>
508
509<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700510 <code class="details" id="list">list(project, region, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None)</code>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700511 <pre>Retrieves a list of addresses contained within the specified region.
512
513Args:
514 project: string, Project ID for this request. (required)
515 region: string, Name of the region for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700516 filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either `=`, `!=`, `&gt;`, or `&lt;`.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700517
Dan O'Mearadd494642020-05-01 07:42:23 -0700518For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700519
Dan O'Mearadd494642020-05-01 07:42:23 -0700520You 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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700521
Bu Sun Kim65020912020-05-20 12:08:20 -0700522To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = &quot;Intel Skylake&quot;) ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = &quot;Intel Skylake&quot;) OR (cpuPlatform = &quot;Intel Broadwell&quot;) AND (scheduling.automaticRestart = true) ```
523 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`)
524 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
525
526You can also sort results in descending order based on the creation timestamp using `orderBy=&quot;creationTimestamp desc&quot;`. 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.
527
528Currently, only sorting by `name` or `creationTimestamp desc` is supported.
529 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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800530 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700531
532Returns:
533 An object of the form:
534
535 { # Contains a list of addresses.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800536 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
537 &quot;items&quot;: [ # A list of Address resources.
538 { # Use global external addresses for GFE-based external HTTP(S) load balancers in Premium Tier.
539 #
540 # Use global internal addresses for reserved peering network range.
541 #
542 # Use regional external addresses for the following resources:
543 #
544 # - External IP addresses for VM instances - Regional external forwarding rules - Cloud NAT external IP addresses - GFE based LBs in Standard Tier - Network LBs in Premium or Standard Tier - Cloud VPN gateways (both Classic and HA)
545 #
546 # Use regional internal IP addresses for subnet IP ranges (primary and secondary). This includes:
547 #
548 # - Internal IP addresses for VM instances - Alias IP ranges of VM instances (/32 only) - Regional internal forwarding rules - Internal TCP/UDP load balancer addresses - Internal HTTP(S) load balancer addresses - Cloud DNS inbound forwarding IP addresses
549 #
550 # For more information, read reserved IP address.
551 #
552 # (== resource_for {$api_version}.addresses ==) (== resource_for {$api_version}.globalAddresses ==)
553 &quot;address&quot;: &quot;A String&quot;, # The static IP address represented by this resource.
554 &quot;addressType&quot;: &quot;A String&quot;, # The type of address to reserve, either INTERNAL or EXTERNAL. If unspecified, defaults to EXTERNAL.
555 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in RFC3339 text format.
556 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this field when you create the resource.
557 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
558 &quot;ipVersion&quot;: &quot;A String&quot;, # The IP version that will be used by this address. Valid options are IPV4 or IPV6. This can only be specified for a global address.
559 &quot;kind&quot;: &quot;compute#address&quot;, # [Output Only] Type of the resource. Always compute#address for addresses.
560 &quot;labelFingerprint&quot;: &quot;A String&quot;, # A fingerprint for the labels being applied to this Address, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels, otherwise the request will fail with error 412 conditionNotMet.
Bu Sun Kim65020912020-05-20 12:08:20 -0700561 #
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800562 # To see the latest fingerprint, make a get() request to retrieve an Address.
563 &quot;labels&quot;: { # Labels for this resource. These can only be added or modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
564 &quot;a_key&quot;: &quot;A String&quot;,
565 },
566 &quot;name&quot;: &quot;A String&quot;, # Name of the resource. Provided by the client when the resource is created. The 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])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit.
567 &quot;network&quot;: &quot;A String&quot;, # The URL of the network in which to reserve the address. This field can only be used with INTERNAL type with the VPC_PEERING purpose.
568 &quot;networkTier&quot;: &quot;A String&quot;, # This signifies the networking tier used for configuring this address and can only take the following values: PREMIUM or STANDARD. Global forwarding rules can only be Premium Tier. Regional forwarding rules can be either Premium or Standard Tier. Standard Tier addresses applied to regional forwarding rules can be used with any external load balancer. Regional forwarding rules in Premium Tier can only be used with a network load balancer.
Bu Sun Kim65020912020-05-20 12:08:20 -0700569 #
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800570 # If this field is not specified, it is assumed to be PREMIUM.
yoshi-code-bota8b35b92021-03-31 13:33:30 -0700571 &quot;prefixLength&quot;: 42, # The prefix length if the resource represents an IP range.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800572 &quot;purpose&quot;: &quot;A String&quot;, # The purpose of this resource, which can be one of the following values:
573 # - `GCE_ENDPOINT` for addresses that are used by VM instances, alias IP ranges, internal load balancers, and similar resources.
574 # - `DNS_RESOLVER` for a DNS resolver address in a subnetwork
575 # - `VPC_PEERING` for addresses that are reserved for VPC peer networks.
576 # - `NAT_AUTO` for addresses that are external IP addresses automatically reserved for Cloud NAT.
yoshi-code-bot73a0aa32021-05-25 00:30:03 -0700577 # - `IPSEC_INTERCONNECT` for addresses created from a private IP range that are reserved for a VLAN attachment in an IPsec-encrypted Cloud Interconnect configuration. These addresses are regional resources. Not currently available publicly.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800578 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where a regional address resides. For regional addresses, you must specify the region as a path parameter in the HTTP request URL. This field is not applicable to global addresses.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800579 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
580 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the address, which can be one of RESERVING, RESERVED, or IN_USE. An address that is RESERVING is currently in the process of being reserved. A RESERVED address is currently reserved and available to use. An IN_USE address is currently being used by another resource and is not available.
581 &quot;subnetwork&quot;: &quot;A String&quot;, # The URL of the subnetwork in which to reserve the address. If an IP address is specified, it must be within the subnetwork&#x27;s IP range. This field can only be used with INTERNAL type with a GCE_ENDPOINT or DNS_RESOLVER purpose.
582 &quot;users&quot;: [ # [Output Only] The URLs of the resources that are using this address.
583 &quot;A String&quot;,
584 ],
585 },
586 ],
587 &quot;kind&quot;: &quot;compute#addressList&quot;, # [Output Only] Type of resource. Always compute#addressList for lists of addresses.
588 &quot;nextPageToken&quot;: &quot;A String&quot;, # [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.
589 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for this resource.
590 &quot;warning&quot;: { # [Output Only] Informational warning message.
591 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
592 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
593 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
594 {
595 &quot;key&quot;: &quot;A String&quot;, # [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).
596 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
Bu Sun Kim65020912020-05-20 12:08:20 -0700597 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700598 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800599 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
600 },
601}</pre>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700602</div>
603
604<div class="method">
605 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
606 <pre>Retrieves the next page of results.
607
608Args:
609 previous_request: The request for the previous page. (required)
610 previous_response: The response from the request for the previous page. (required)
611
612Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700613 A request object that you can call &#x27;execute()&#x27; on to request the next
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700614 page. Returns None if there are no more items in the collection.
615 </pre>
616</div>
617
618<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700619 <code class="details" id="setLabels">setLabels(project, region, resource, body=None, requestId=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700620 <pre>Sets the labels on an Address. To learn more about labels, read the Labeling Resources documentation.
621
622Args:
623 project: string, Project ID for this request. (required)
624 region: string, The region for this request. (required)
625 resource: string, Name or id of the resource for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700626 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700627 The object takes the form of:
628
629{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800630 &quot;labelFingerprint&quot;: &quot;A String&quot;, # The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. Make a get() request to the resource to get the latest fingerprint.
631 &quot;labels&quot;: { # The labels to set for this resource.
632 &quot;a_key&quot;: &quot;A String&quot;,
633 },
634}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700635
636 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.
637
638For 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.
639
640The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
641
642Returns:
643 An object of the form:
644
645 { # Represents an Operation resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800646 #
647 # Google Compute Engine has three Operation resources:
648 #
649 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
650 #
651 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
652 #
653 # Operations can be global, regional or zonal.
654 # - For global operations, use the `globalOperations` resource.
655 # - For regional operations, use the `regionOperations` resource.
656 # - For zonal operations, use the `zonalOperations` resource.
657 #
658 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
659 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
660 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
661 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
662 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
663 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
664 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700665 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800666 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
667 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
668 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Bu Sun Kim65020912020-05-20 12:08:20 -0700669 },
670 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800671 },
672 &quot;httpErrorMessage&quot;: &quot;A String&quot;, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as `NOT FOUND`.
673 &quot;httpErrorStatusCode&quot;: 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.
674 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
675 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
676 &quot;kind&quot;: &quot;compute#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
677 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800678 &quot;operationGroupId&quot;: &quot;A String&quot;, # [Output Only] An ID that represents a group of operations, such as when a group of operations results from a `bulkInsert` API request.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800679 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
680 &quot;progress&quot;: 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.
681 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
682 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
683 &quot;startTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
684 &quot;status&quot;: &quot;A String&quot;, # [Output Only] The status of the operation, which can be one of the following: `PENDING`, `RUNNING`, or `DONE`.
685 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
686 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
687 &quot;targetLink&quot;: &quot;A String&quot;, # [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.
688 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
689 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
690 {
691 &quot;code&quot;: &quot;A String&quot;, # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
692 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
693 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
694 {
695 &quot;key&quot;: &quot;A String&quot;, # [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).
696 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
697 },
698 ],
699 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
700 },
701 ],
702 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
703}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700704</div>
705
706<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700707 <code class="details" id="testIamPermissions">testIamPermissions(project, region, resource, body=None)</code>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700708 <pre>Returns permissions that a caller has on the specified resource.
709
710Args:
711 project: string, Project ID for this request. (required)
712 region: string, The name of the region for this request. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700713 resource: string, Name or id of the resource for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700714 body: object, The request body.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700715 The object takes the form of:
716
717{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800718 &quot;permissions&quot;: [ # The set of permissions to check for the &#x27;resource&#x27;. Permissions with wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed.
719 &quot;A String&quot;,
720 ],
721}
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700722
723
724Returns:
725 An object of the form:
726
727 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800728 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
729 &quot;A String&quot;,
730 ],
731}</pre>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700732</div>
733
734</body></html>