blob: d74b9adaf45a227caf63b285e4fa8192c1c8a6e6 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="compute_v1.html">Compute Engine API</a> . <a href="compute_v1.networkEndpointGroups.html">networkEndpointGroups</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>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Retrieves the list of network endpoint groups and sorts them by zone.</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">
Dan O'Mearadd494642020-05-01 07:42:23 -070084 <code><a href="#attachNetworkEndpoints">attachNetworkEndpoints(project, zone, networkEndpointGroup, body=None, requestId=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070085<p class="firstline">Attach a list of network endpoints to the specified network endpoint group.</p>
86<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070087 <code><a href="#close">close()</a></code></p>
88<p class="firstline">Close httplib2 connections.</p>
89<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070090 <code><a href="#delete">delete(project, zone, networkEndpointGroup, requestId=None)</a></code></p>
91<p class="firstline">Deletes the specified network endpoint group. The network endpoints in the NEG and the VM instances they belong to are not terminated when the NEG is deleted. Note that the NEG cannot be deleted if there are backend services referencing it.</p>
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#detachNetworkEndpoints">detachNetworkEndpoints(project, zone, networkEndpointGroup, body=None, requestId=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Detach a list of network endpoints from the specified network endpoint group.</p>
95<p class="toc_element">
96 <code><a href="#get">get(project, zone, networkEndpointGroup)</a></code></p>
97<p class="firstline">Returns the specified network endpoint group. Gets a list of available network endpoint groups by making a list() request.</p>
98<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#insert">insert(project, zone, body=None, requestId=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100<p class="firstline">Creates a network endpoint group in the specified project using the parameters that are included in the request.</p>
101<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700102 <code><a href="#list">list(project, zone, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103<p class="firstline">Retrieves the list of network endpoint groups that are located in the specified project and zone.</p>
104<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700105 <code><a href="#listNetworkEndpoints">listNetworkEndpoints(project, zone, networkEndpointGroup, body=None, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106<p class="firstline">Lists the network endpoints in the specified network endpoint group.</p>
107<p class="toc_element">
108 <code><a href="#listNetworkEndpoints_next">listNetworkEndpoints_next(previous_request, previous_response)</a></code></p>
109<p class="firstline">Retrieves the next page of results.</p>
110<p class="toc_element">
111 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
112<p class="firstline">Retrieves the next page of results.</p>
113<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700114 <code><a href="#testIamPermissions">testIamPermissions(project, zone, resource, body=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700115<p class="firstline">Returns permissions that a caller has on the specified resource.</p>
116<h3>Method Details</h3>
117<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700118 <code class="details" id="aggregatedList">aggregatedList(project, filter=None, includeAllScopes=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700119 <pre>Retrieves the list of network endpoint groups and sorts them by zone.
120
121Args:
122 project: string, Project ID for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700123 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;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700124
Dan O'Mearadd494642020-05-01 07:42:23 -0700125For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700126
Dan O'Mearadd494642020-05-01 07:42:23 -0700127You 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700128
Bu Sun Kim65020912020-05-20 12:08:20 -0700129To 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 -0700130 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 -0700131 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`)
132 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
133
134You 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.
135
136Currently, only sorting by `name` or `creationTimestamp desc` is supported.
137 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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700138 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700139
140Returns:
141 An object of the form:
142
143 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800144 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
145 &quot;items&quot;: { # A list of NetworkEndpointGroupsScopedList resources.
146 &quot;a_key&quot;: { # The name of the scope that contains this set of network endpoint groups.
147 &quot;networkEndpointGroups&quot;: [ # [Output Only] The list of network endpoint groups that are contained in this scope.
148 { # Represents a collection of network endpoints.
149 #
150 # A network endpoint group (NEG) defines how a set of endpoints should be reached, whether they are reachable, and where they are located. For more information about using NEGs, see Setting up internet NEGs, Setting up zonal NEGs, or Setting up serverless NEGs. (== resource_for {$api_version}.networkEndpointGroups ==) (== resource_for {$api_version}.globalNetworkEndpointGroups ==) (== resource_for {$api_version}.regionNetworkEndpointGroups ==)
151 &quot;annotations&quot;: { # Metadata defined as annotations on the network endpoint group.
152 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700153 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800154 &quot;appEngine&quot;: { # Configuration for an App Engine network endpoint group (NEG). The service is optional, may be provided explicitly or in the URL mask. The version is optional and can only be provided explicitly or in the URL mask when service is present. # Only valid when networkEndpointType is &quot;SERVERLESS&quot;. Only one of cloudRun, appEngine or cloudFunction may be set.
155 #
156 # Note: App Engine service must be in the same project and located in the same region as the Serverless NEG.
157 &quot;service&quot;: &quot;A String&quot;, # Optional serving service.
158 #
159 # The service name is case-sensitive and must be 1-63 characters long.
160 #
161 # Example value: &quot;default&quot;, &quot;my-service&quot;.
162 &quot;urlMask&quot;: &quot;A String&quot;, # A template to parse service and version fields from a request URL. URL mask allows for routing to multiple App Engine services without having to create multiple Network Endpoint Groups and backend services.
163 #
164 # For example, the request URLs &quot;foo1-dot-appname.appspot.com/v1&quot; and &quot;foo1-dot-appname.appspot.com/v2&quot; can be backed by the same Serverless NEG with URL mask &quot;-dot-appname.appspot.com/&quot;. The URL mask will parse them to { service = &quot;foo1&quot;, version = &quot;v1&quot; } and { service = &quot;foo1&quot;, version = &quot;v2&quot; } respectively.
165 &quot;version&quot;: &quot;A String&quot;, # Optional serving version.
166 #
167 # The version name is case-sensitive and must be 1-100 characters long.
168 #
169 # Example value: &quot;v1&quot;, &quot;v2&quot;.
170 },
171 &quot;cloudFunction&quot;: { # Configuration for a Cloud Function network endpoint group (NEG). The function must be provided explicitly or in the URL mask. # Only valid when networkEndpointType is &quot;SERVERLESS&quot;. Only one of cloudRun, appEngine or cloudFunction may be set.
172 #
173 # Note: Cloud Function must be in the same project and located in the same region as the Serverless NEG.
174 &quot;function&quot;: &quot;A String&quot;, # A user-defined name of the Cloud Function.
175 #
176 # The function name is case-sensitive and must be 1-63 characters long.
177 #
178 # Example value: &quot;func1&quot;.
179 &quot;urlMask&quot;: &quot;A String&quot;, # A template to parse function field from a request URL. URL mask allows for routing to multiple Cloud Functions without having to create multiple Network Endpoint Groups and backend services.
180 #
181 # For example, request URLs &quot;mydomain.com/function1&quot; and &quot;mydomain.com/function2&quot; can be backed by the same Serverless NEG with URL mask &quot;/&quot;. The URL mask will parse them to { function = &quot;function1&quot; } and { function = &quot;function2&quot; } respectively.
182 },
183 &quot;cloudRun&quot;: { # Configuration for a Cloud Run network endpoint group (NEG). The service must be provided explicitly or in the URL mask. The tag is optional, may be provided explicitly or in the URL mask. # Only valid when networkEndpointType is &quot;SERVERLESS&quot;. Only one of cloudRun, appEngine or cloudFunction may be set.
184 #
185 # Note: Cloud Run service must be in the same project and located in the same region as the Serverless NEG.
186 &quot;service&quot;: &quot;A String&quot;, # Cloud Run service is the main resource of Cloud Run.
187 #
188 # The service must be 1-63 characters long, and comply with RFC1035.
189 #
190 # Example value: &quot;run-service&quot;.
191 &quot;tag&quot;: &quot;A String&quot;, # Optional Cloud Run tag represents the &quot;named-revision&quot; to provide additional fine-grained traffic routing information.
192 #
193 # The tag must be 1-63 characters long, and comply with RFC1035.
194 #
195 # Example value: &quot;revision-0010&quot;.
196 &quot;urlMask&quot;: &quot;A String&quot;, # A template to parse service and tag fields from a request URL. URL mask allows for routing to multiple Run services without having to create multiple network endpoint groups and backend services.
197 #
198 # For example, request URLs &quot;foo1.domain.com/bar1&quot; and &quot;foo1.domain.com/bar2&quot; can be backed by the same Serverless Network Endpoint Group (NEG) with URL mask &quot;.domain.com/&quot;. The URL mask will parse them to { service=&quot;bar1&quot;, tag=&quot;foo1&quot; } and { service=&quot;bar2&quot;, tag=&quot;foo2&quot; } respectively.
199 },
200 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in RFC3339 text format.
201 &quot;defaultPort&quot;: 42, # The default port used if the port number is not specified in the network endpoint.
202 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you create the resource.
203 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
204 &quot;kind&quot;: &quot;compute#networkEndpointGroup&quot;, # [Output Only] Type of the resource. Always compute#networkEndpointGroup for network endpoint group.
205 &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])?` 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.
206 &quot;network&quot;: &quot;A String&quot;, # The URL of the network to which all network endpoints in the NEG belong. Uses &quot;default&quot; project network if unspecified.
207 &quot;networkEndpointType&quot;: &quot;A String&quot;, # Type of network endpoints in this network endpoint group. Can be one of GCE_VM_IP_PORT, NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT, INTERNET_IP_PORT, or SERVERLESS.
208 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the network endpoint group is located.
209 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
210 &quot;size&quot;: 42, # [Output only] Number of network endpoints in the network endpoint group.
211 &quot;subnetwork&quot;: &quot;A String&quot;, # Optional URL of the subnetwork to which all network endpoints in the NEG belong.
212 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the network endpoint group is located.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700213 },
214 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800215 &quot;warning&quot;: { # [Output Only] An informational warning that replaces the list of network endpoint groups when the list is empty.
216 &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.
217 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
218 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
219 {
220 &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).
221 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
222 },
223 ],
224 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
225 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700226 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800227 },
228 &quot;kind&quot;: &quot;compute#networkEndpointGroupAggregatedList&quot;, # [Output Only] The resource type, which is always compute#networkEndpointGroupAggregatedList for aggregated lists of network endpoint groups.
229 &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.
230 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for this resource.
231 &quot;unreachables&quot;: [ # [Output Only] Unreachable resources.
232 &quot;A String&quot;,
233 ],
234 &quot;warning&quot;: { # [Output Only] Informational warning message.
235 &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.
236 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
237 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
238 {
239 &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).
240 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
241 },
242 ],
243 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
244 },
245}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700246</div>
247
248<div class="method">
249 <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code>
250 <pre>Retrieves the next page of results.
251
252Args:
253 previous_request: The request for the previous page. (required)
254 previous_response: The response from the request for the previous page. (required)
255
256Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700257 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700258 page. Returns None if there are no more items in the collection.
259 </pre>
260</div>
261
262<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700263 <code class="details" id="attachNetworkEndpoints">attachNetworkEndpoints(project, zone, networkEndpointGroup, body=None, requestId=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700264 <pre>Attach a list of network endpoints to the specified network endpoint group.
265
266Args:
267 project: string, Project ID for this request. (required)
268 zone: string, The name of the zone where the network endpoint group is located. It should comply with RFC1035. (required)
269 networkEndpointGroup: string, The name of the network endpoint group where you are attaching network endpoints to. It should comply with RFC1035. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700270 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700271 The object takes the form of:
272
273{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800274 &quot;networkEndpoints&quot;: [ # The list of network endpoints to be attached.
275 { # The network endpoint.
276 &quot;annotations&quot;: { # Metadata defined as annotations on the network endpoint.
277 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700278 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800279 &quot;fqdn&quot;: &quot;A String&quot;, # Optional fully qualified domain name of network endpoint. This can only be specified when NetworkEndpointGroup.network_endpoint_type is NON_GCP_FQDN_PORT.
280 &quot;instance&quot;: &quot;A String&quot;, # The name for a specific VM instance that the IP address belongs to. This is required for network endpoints of type GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group.
281 #
282 # The name must be 1-63 characters long, and comply with RFC1035.
283 &quot;ipAddress&quot;: &quot;A String&quot;, # Optional IPv4 address of network endpoint. The IP address must belong to a VM in Compute Engine (either the primary IP or as part of an aliased IP range). If the IP address is not specified, then the primary IP address for the VM instance in the network that the network endpoint group belongs to will be used.
284 &quot;port&quot;: 42, # Optional port number of network endpoint. If not specified and the NetworkEndpointGroup.network_endpoint_type is GCE_IP_PORT, the defaultPort for the network endpoint group will be used.
285 },
286 ],
287}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700288
289 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.
290
291For 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.
292
293The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
294
295Returns:
296 An object of the form:
297
298 { # Represents an Operation resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800299 #
300 # Google Compute Engine has three Operation resources:
301 #
302 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
303 #
304 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
305 #
306 # Operations can be global, regional or zonal.
307 # - For global operations, use the `globalOperations` resource.
308 # - For regional operations, use the `regionOperations` resource.
309 # - For zonal operations, use the `zonalOperations` resource.
310 #
311 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
312 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
313 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
314 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
315 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
316 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
317 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700318 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800319 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
320 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
321 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Bu Sun Kim65020912020-05-20 12:08:20 -0700322 },
323 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800324 },
325 &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`.
326 &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.
327 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
328 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
329 &quot;kind&quot;: &quot;compute#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
330 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
331 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
332 &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.
333 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
334 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
335 &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.
336 &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`.
337 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
338 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
339 &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.
340 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
341 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
342 {
343 &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.
344 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
345 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
346 {
347 &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).
348 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
349 },
350 ],
351 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
352 },
353 ],
354 &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.
355}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700356</div>
357
358<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700359 <code class="details" id="close">close()</code>
360 <pre>Close httplib2 connections.</pre>
361</div>
362
363<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700364 <code class="details" id="delete">delete(project, zone, networkEndpointGroup, requestId=None)</code>
365 <pre>Deletes the specified network endpoint group. The network endpoints in the NEG and the VM instances they belong to are not terminated when the NEG is deleted. Note that the NEG cannot be deleted if there are backend services referencing it.
366
367Args:
368 project: string, Project ID for this request. (required)
369 zone: string, The name of the zone where the network endpoint group is located. It should comply with RFC1035. (required)
370 networkEndpointGroup: string, The name of the network endpoint group to delete. It should comply with RFC1035. (required)
371 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.
372
373For 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.
374
375The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
376
377Returns:
378 An object of the form:
379
380 { # Represents an Operation resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800381 #
382 # Google Compute Engine has three Operation resources:
383 #
384 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
385 #
386 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
387 #
388 # Operations can be global, regional or zonal.
389 # - For global operations, use the `globalOperations` resource.
390 # - For regional operations, use the `regionOperations` resource.
391 # - For zonal operations, use the `zonalOperations` resource.
392 #
393 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
394 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
395 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
396 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
397 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
398 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
399 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700400 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800401 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
402 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
403 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Bu Sun Kim65020912020-05-20 12:08:20 -0700404 },
405 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800406 },
407 &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`.
408 &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.
409 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
410 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
411 &quot;kind&quot;: &quot;compute#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
412 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
413 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
414 &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.
415 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
416 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
417 &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.
418 &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`.
419 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
420 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
421 &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.
422 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
423 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
424 {
425 &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.
426 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
427 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
428 {
429 &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).
430 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
431 },
432 ],
433 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
434 },
435 ],
436 &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.
437}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700438</div>
439
440<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700441 <code class="details" id="detachNetworkEndpoints">detachNetworkEndpoints(project, zone, networkEndpointGroup, body=None, requestId=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700442 <pre>Detach a list of network endpoints from the specified network endpoint group.
443
444Args:
445 project: string, Project ID for this request. (required)
446 zone: string, The name of the zone where the network endpoint group is located. It should comply with RFC1035. (required)
447 networkEndpointGroup: string, The name of the network endpoint group where you are removing network endpoints. It should comply with RFC1035. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700448 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700449 The object takes the form of:
450
451{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800452 &quot;networkEndpoints&quot;: [ # The list of network endpoints to be detached.
453 { # The network endpoint.
454 &quot;annotations&quot;: { # Metadata defined as annotations on the network endpoint.
455 &quot;a_key&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700456 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800457 &quot;fqdn&quot;: &quot;A String&quot;, # Optional fully qualified domain name of network endpoint. This can only be specified when NetworkEndpointGroup.network_endpoint_type is NON_GCP_FQDN_PORT.
458 &quot;instance&quot;: &quot;A String&quot;, # The name for a specific VM instance that the IP address belongs to. This is required for network endpoints of type GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group.
459 #
460 # The name must be 1-63 characters long, and comply with RFC1035.
461 &quot;ipAddress&quot;: &quot;A String&quot;, # Optional IPv4 address of network endpoint. The IP address must belong to a VM in Compute Engine (either the primary IP or as part of an aliased IP range). If the IP address is not specified, then the primary IP address for the VM instance in the network that the network endpoint group belongs to will be used.
462 &quot;port&quot;: 42, # Optional port number of network endpoint. If not specified and the NetworkEndpointGroup.network_endpoint_type is GCE_IP_PORT, the defaultPort for the network endpoint group will be used.
463 },
464 ],
465}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700466
467 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.
468
469For 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.
470
471The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
472
473Returns:
474 An object of the form:
475
476 { # Represents an Operation resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800477 #
478 # Google Compute Engine has three Operation resources:
479 #
480 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
481 #
482 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
483 #
484 # Operations can be global, regional or zonal.
485 # - For global operations, use the `globalOperations` resource.
486 # - For regional operations, use the `regionOperations` resource.
487 # - For zonal operations, use the `zonalOperations` resource.
488 #
489 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
490 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
491 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
492 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
493 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
494 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
495 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700496 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800497 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
498 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
499 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Bu Sun Kim65020912020-05-20 12:08:20 -0700500 },
501 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800502 },
503 &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`.
504 &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.
505 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
506 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
507 &quot;kind&quot;: &quot;compute#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
508 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
509 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
510 &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.
511 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
512 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
513 &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.
514 &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`.
515 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
516 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
517 &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.
518 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
519 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
520 {
521 &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.
522 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
523 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
524 {
525 &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).
526 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
527 },
528 ],
529 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
530 },
531 ],
532 &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.
533}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700534</div>
535
536<div class="method">
537 <code class="details" id="get">get(project, zone, networkEndpointGroup)</code>
538 <pre>Returns the specified network endpoint group. Gets a list of available network endpoint groups by making a list() request.
539
540Args:
541 project: string, Project ID for this request. (required)
542 zone: string, The name of the zone where the network endpoint group is located. It should comply with RFC1035. (required)
543 networkEndpointGroup: string, The name of the network endpoint group. It should comply with RFC1035. (required)
544
545Returns:
546 An object of the form:
547
548 { # Represents a collection of network endpoints.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800549 #
550 # A network endpoint group (NEG) defines how a set of endpoints should be reached, whether they are reachable, and where they are located. For more information about using NEGs, see Setting up internet NEGs, Setting up zonal NEGs, or Setting up serverless NEGs. (== resource_for {$api_version}.networkEndpointGroups ==) (== resource_for {$api_version}.globalNetworkEndpointGroups ==) (== resource_for {$api_version}.regionNetworkEndpointGroups ==)
551 &quot;annotations&quot;: { # Metadata defined as annotations on the network endpoint group.
552 &quot;a_key&quot;: &quot;A String&quot;,
553 },
554 &quot;appEngine&quot;: { # Configuration for an App Engine network endpoint group (NEG). The service is optional, may be provided explicitly or in the URL mask. The version is optional and can only be provided explicitly or in the URL mask when service is present. # Only valid when networkEndpointType is &quot;SERVERLESS&quot;. Only one of cloudRun, appEngine or cloudFunction may be set.
Bu Sun Kim65020912020-05-20 12:08:20 -0700555 #
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800556 # Note: App Engine service must be in the same project and located in the same region as the Serverless NEG.
557 &quot;service&quot;: &quot;A String&quot;, # Optional serving service.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700558 #
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800559 # The service name is case-sensitive and must be 1-63 characters long.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700560 #
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800561 # Example value: &quot;default&quot;, &quot;my-service&quot;.
562 &quot;urlMask&quot;: &quot;A String&quot;, # A template to parse service and version fields from a request URL. URL mask allows for routing to multiple App Engine services without having to create multiple Network Endpoint Groups and backend services.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700563 #
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800564 # For example, the request URLs &quot;foo1-dot-appname.appspot.com/v1&quot; and &quot;foo1-dot-appname.appspot.com/v2&quot; can be backed by the same Serverless NEG with URL mask &quot;-dot-appname.appspot.com/&quot;. The URL mask will parse them to { service = &quot;foo1&quot;, version = &quot;v1&quot; } and { service = &quot;foo1&quot;, version = &quot;v2&quot; } respectively.
565 &quot;version&quot;: &quot;A String&quot;, # Optional serving version.
566 #
567 # The version name is case-sensitive and must be 1-100 characters long.
568 #
569 # Example value: &quot;v1&quot;, &quot;v2&quot;.
570 },
571 &quot;cloudFunction&quot;: { # Configuration for a Cloud Function network endpoint group (NEG). The function must be provided explicitly or in the URL mask. # Only valid when networkEndpointType is &quot;SERVERLESS&quot;. Only one of cloudRun, appEngine or cloudFunction may be set.
572 #
573 # Note: Cloud Function must be in the same project and located in the same region as the Serverless NEG.
574 &quot;function&quot;: &quot;A String&quot;, # A user-defined name of the Cloud Function.
575 #
576 # The function name is case-sensitive and must be 1-63 characters long.
577 #
578 # Example value: &quot;func1&quot;.
579 &quot;urlMask&quot;: &quot;A String&quot;, # A template to parse function field from a request URL. URL mask allows for routing to multiple Cloud Functions without having to create multiple Network Endpoint Groups and backend services.
580 #
581 # For example, request URLs &quot;mydomain.com/function1&quot; and &quot;mydomain.com/function2&quot; can be backed by the same Serverless NEG with URL mask &quot;/&quot;. The URL mask will parse them to { function = &quot;function1&quot; } and { function = &quot;function2&quot; } respectively.
582 },
583 &quot;cloudRun&quot;: { # Configuration for a Cloud Run network endpoint group (NEG). The service must be provided explicitly or in the URL mask. The tag is optional, may be provided explicitly or in the URL mask. # Only valid when networkEndpointType is &quot;SERVERLESS&quot;. Only one of cloudRun, appEngine or cloudFunction may be set.
584 #
585 # Note: Cloud Run service must be in the same project and located in the same region as the Serverless NEG.
586 &quot;service&quot;: &quot;A String&quot;, # Cloud Run service is the main resource of Cloud Run.
587 #
588 # The service must be 1-63 characters long, and comply with RFC1035.
589 #
590 # Example value: &quot;run-service&quot;.
591 &quot;tag&quot;: &quot;A String&quot;, # Optional Cloud Run tag represents the &quot;named-revision&quot; to provide additional fine-grained traffic routing information.
592 #
593 # The tag must be 1-63 characters long, and comply with RFC1035.
594 #
595 # Example value: &quot;revision-0010&quot;.
596 &quot;urlMask&quot;: &quot;A String&quot;, # A template to parse service and tag fields from a request URL. URL mask allows for routing to multiple Run services without having to create multiple network endpoint groups and backend services.
597 #
598 # For example, request URLs &quot;foo1.domain.com/bar1&quot; and &quot;foo1.domain.com/bar2&quot; can be backed by the same Serverless Network Endpoint Group (NEG) with URL mask &quot;.domain.com/&quot;. The URL mask will parse them to { service=&quot;bar1&quot;, tag=&quot;foo1&quot; } and { service=&quot;bar2&quot;, tag=&quot;foo2&quot; } respectively.
599 },
600 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in RFC3339 text format.
601 &quot;defaultPort&quot;: 42, # The default port used if the port number is not specified in the network endpoint.
602 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you create the resource.
603 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
604 &quot;kind&quot;: &quot;compute#networkEndpointGroup&quot;, # [Output Only] Type of the resource. Always compute#networkEndpointGroup for network endpoint group.
605 &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])?` 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.
606 &quot;network&quot;: &quot;A String&quot;, # The URL of the network to which all network endpoints in the NEG belong. Uses &quot;default&quot; project network if unspecified.
607 &quot;networkEndpointType&quot;: &quot;A String&quot;, # Type of network endpoints in this network endpoint group. Can be one of GCE_VM_IP_PORT, NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT, INTERNET_IP_PORT, or SERVERLESS.
608 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the network endpoint group is located.
609 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
610 &quot;size&quot;: 42, # [Output only] Number of network endpoints in the network endpoint group.
611 &quot;subnetwork&quot;: &quot;A String&quot;, # Optional URL of the subnetwork to which all network endpoints in the NEG belong.
612 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the network endpoint group is located.
613}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700614</div>
615
616<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700617 <code class="details" id="insert">insert(project, zone, body=None, requestId=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700618 <pre>Creates a network endpoint group in the specified project using the parameters that are included in the request.
619
620Args:
621 project: string, Project ID for this request. (required)
622 zone: string, The name of the zone where you want to create the network endpoint group. It should comply with RFC1035. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700623 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700624 The object takes the form of:
625
626{ # Represents a collection of network endpoints.
Bu Sun Kim65020912020-05-20 12:08:20 -0700627 #
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700628 # A network endpoint group (NEG) defines how a set of endpoints should be reached, whether they are reachable, and where they are located. For more information about using NEGs, see Setting up internet NEGs, Setting up zonal NEGs, or Setting up serverless NEGs. (== resource_for {$api_version}.networkEndpointGroups ==) (== resource_for {$api_version}.globalNetworkEndpointGroups ==) (== resource_for {$api_version}.regionNetworkEndpointGroups ==)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700629 &quot;annotations&quot;: { # Metadata defined as annotations on the network endpoint group.
630 &quot;a_key&quot;: &quot;A String&quot;,
631 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700632 &quot;appEngine&quot;: { # Configuration for an App Engine network endpoint group (NEG). The service is optional, may be provided explicitly or in the URL mask. The version is optional and can only be provided explicitly or in the URL mask when service is present. # Only valid when networkEndpointType is &quot;SERVERLESS&quot;. Only one of cloudRun, appEngine or cloudFunction may be set.
633 #
634 # Note: App Engine service must be in the same project and located in the same region as the Serverless NEG.
635 &quot;service&quot;: &quot;A String&quot;, # Optional serving service.
636 #
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700637 # The service name is case-sensitive and must be 1-63 characters long.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700638 #
639 # Example value: &quot;default&quot;, &quot;my-service&quot;.
640 &quot;urlMask&quot;: &quot;A String&quot;, # A template to parse service and version fields from a request URL. URL mask allows for routing to multiple App Engine services without having to create multiple Network Endpoint Groups and backend services.
641 #
642 # For example, the request URLs &quot;foo1-dot-appname.appspot.com/v1&quot; and &quot;foo1-dot-appname.appspot.com/v2&quot; can be backed by the same Serverless NEG with URL mask &quot;-dot-appname.appspot.com/&quot;. The URL mask will parse them to { service = &quot;foo1&quot;, version = &quot;v1&quot; } and { service = &quot;foo1&quot;, version = &quot;v2&quot; } respectively.
643 &quot;version&quot;: &quot;A String&quot;, # Optional serving version.
644 #
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700645 # The version name is case-sensitive and must be 1-100 characters long.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700646 #
647 # Example value: &quot;v1&quot;, &quot;v2&quot;.
648 },
649 &quot;cloudFunction&quot;: { # Configuration for a Cloud Function network endpoint group (NEG). The function must be provided explicitly or in the URL mask. # Only valid when networkEndpointType is &quot;SERVERLESS&quot;. Only one of cloudRun, appEngine or cloudFunction may be set.
650 #
651 # Note: Cloud Function must be in the same project and located in the same region as the Serverless NEG.
652 &quot;function&quot;: &quot;A String&quot;, # A user-defined name of the Cloud Function.
653 #
654 # The function name is case-sensitive and must be 1-63 characters long.
655 #
656 # Example value: &quot;func1&quot;.
657 &quot;urlMask&quot;: &quot;A String&quot;, # A template to parse function field from a request URL. URL mask allows for routing to multiple Cloud Functions without having to create multiple Network Endpoint Groups and backend services.
658 #
659 # For example, request URLs &quot;mydomain.com/function1&quot; and &quot;mydomain.com/function2&quot; can be backed by the same Serverless NEG with URL mask &quot;/&quot;. The URL mask will parse them to { function = &quot;function1&quot; } and { function = &quot;function2&quot; } respectively.
660 },
661 &quot;cloudRun&quot;: { # Configuration for a Cloud Run network endpoint group (NEG). The service must be provided explicitly or in the URL mask. The tag is optional, may be provided explicitly or in the URL mask. # Only valid when networkEndpointType is &quot;SERVERLESS&quot;. Only one of cloudRun, appEngine or cloudFunction may be set.
662 #
663 # Note: Cloud Run service must be in the same project and located in the same region as the Serverless NEG.
664 &quot;service&quot;: &quot;A String&quot;, # Cloud Run service is the main resource of Cloud Run.
665 #
666 # The service must be 1-63 characters long, and comply with RFC1035.
667 #
668 # Example value: &quot;run-service&quot;.
669 &quot;tag&quot;: &quot;A String&quot;, # Optional Cloud Run tag represents the &quot;named-revision&quot; to provide additional fine-grained traffic routing information.
670 #
671 # The tag must be 1-63 characters long, and comply with RFC1035.
672 #
673 # Example value: &quot;revision-0010&quot;.
674 &quot;urlMask&quot;: &quot;A String&quot;, # A template to parse service and tag fields from a request URL. URL mask allows for routing to multiple Run services without having to create multiple network endpoint groups and backend services.
675 #
676 # For example, request URLs &quot;foo1.domain.com/bar1&quot; and &quot;foo1.domain.com/bar2&quot; can be backed by the same Serverless Network Endpoint Group (NEG) with URL mask &quot;.domain.com/&quot;. The URL mask will parse them to { service=&quot;bar1&quot;, tag=&quot;foo1&quot; } and { service=&quot;bar2&quot;, tag=&quot;foo2&quot; } respectively.
677 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700678 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in RFC3339 text format.
679 &quot;defaultPort&quot;: 42, # The default port used if the port number is not specified in the network endpoint.
680 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you create the resource.
681 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
682 &quot;kind&quot;: &quot;compute#networkEndpointGroup&quot;, # [Output Only] Type of the resource. Always compute#networkEndpointGroup for network endpoint group.
683 &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])?` 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.
684 &quot;network&quot;: &quot;A String&quot;, # The URL of the network to which all network endpoints in the NEG belong. Uses &quot;default&quot; project network if unspecified.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700685 &quot;networkEndpointType&quot;: &quot;A String&quot;, # Type of network endpoints in this network endpoint group. Can be one of GCE_VM_IP_PORT, NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT, INTERNET_IP_PORT, or SERVERLESS.
686 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the network endpoint group is located.
Bu Sun Kim65020912020-05-20 12:08:20 -0700687 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
688 &quot;size&quot;: 42, # [Output only] Number of network endpoints in the network endpoint group.
689 &quot;subnetwork&quot;: &quot;A String&quot;, # Optional URL of the subnetwork to which all network endpoints in the NEG belong.
690 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the network endpoint group is located.
691}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700692
693 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.
694
695For 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.
696
697The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
698
699Returns:
700 An object of the form:
701
702 { # Represents an Operation resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800703 #
704 # Google Compute Engine has three Operation resources:
705 #
706 # * [Global](/compute/docs/reference/rest/{$api_version}/globalOperations) * [Regional](/compute/docs/reference/rest/{$api_version}/regionOperations) * [Zonal](/compute/docs/reference/rest/{$api_version}/zoneOperations)
707 #
708 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
709 #
710 # Operations can be global, regional or zonal.
711 # - For global operations, use the `globalOperations` resource.
712 # - For regional operations, use the `regionOperations` resource.
713 # - For zonal operations, use the `zonalOperations` resource.
714 #
715 # For more information, read Global, Regional, and Zonal Resources. (== resource_for {$api_version}.globalOperations ==) (== resource_for {$api_version}.regionOperations ==) (== resource_for {$api_version}.zoneOperations ==)
716 &quot;clientOperationId&quot;: &quot;A String&quot;, # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
717 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Deprecated] This field is deprecated.
718 &quot;description&quot;: &quot;A String&quot;, # [Output Only] A textual description of the operation, which is set when the operation is created.
719 &quot;endTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
720 &quot;error&quot;: { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
721 &quot;errors&quot;: [ # [Output Only] The array of errors encountered while processing this operation.
Bu Sun Kim65020912020-05-20 12:08:20 -0700722 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800723 &quot;code&quot;: &quot;A String&quot;, # [Output Only] The error type identifier for this error.
724 &quot;location&quot;: &quot;A String&quot;, # [Output Only] Indicates the field in the request that caused the error. This property is optional.
725 &quot;message&quot;: &quot;A String&quot;, # [Output Only] An optional, human-readable error message.
Bu Sun Kim65020912020-05-20 12:08:20 -0700726 },
727 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800728 },
729 &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`.
730 &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.
731 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the operation. This identifier is defined by the server.
732 &quot;insertTime&quot;: &quot;A String&quot;, # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
733 &quot;kind&quot;: &quot;compute#operation&quot;, # [Output Only] Type of the resource. Always `compute#operation` for Operation resources.
734 &quot;name&quot;: &quot;A String&quot;, # [Output Only] Name of the operation.
735 &quot;operationType&quot;: &quot;A String&quot;, # [Output Only] The type of operation, such as `insert`, `update`, or `delete`, and so on.
736 &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.
737 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
738 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
739 &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.
740 &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`.
741 &quot;statusMessage&quot;: &quot;A String&quot;, # [Output Only] An optional textual description of the current status of the operation.
742 &quot;targetId&quot;: &quot;A String&quot;, # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
743 &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.
744 &quot;user&quot;: &quot;A String&quot;, # [Output Only] User who requested the operation, for example: `user@example.com`.
745 &quot;warnings&quot;: [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
746 {
747 &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.
748 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
749 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
750 {
751 &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).
752 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
753 },
754 ],
755 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
756 },
757 ],
758 &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.
759}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700760</div>
761
762<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700763 <code class="details" id="list">list(project, zone, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700764 <pre>Retrieves the list of network endpoint groups that are located in the specified project and zone.
765
766Args:
767 project: string, Project ID for this request. (required)
768 zone: string, The name of the zone where the network endpoint group is located. It should comply with RFC1035. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700769 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;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700770
Dan O'Mearadd494642020-05-01 07:42:23 -0700771For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700772
Dan O'Mearadd494642020-05-01 07:42:23 -0700773You 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700774
Bu Sun Kim65020912020-05-20 12:08:20 -0700775To 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) ```
776 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`)
777 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
778
779You 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.
780
781Currently, only sorting by `name` or `creationTimestamp desc` is supported.
782 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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700783 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700784
785Returns:
786 An object of the form:
787
788 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800789 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
790 &quot;items&quot;: [ # A list of NetworkEndpointGroup resources.
791 { # Represents a collection of network endpoints.
792 #
793 # A network endpoint group (NEG) defines how a set of endpoints should be reached, whether they are reachable, and where they are located. For more information about using NEGs, see Setting up internet NEGs, Setting up zonal NEGs, or Setting up serverless NEGs. (== resource_for {$api_version}.networkEndpointGroups ==) (== resource_for {$api_version}.globalNetworkEndpointGroups ==) (== resource_for {$api_version}.regionNetworkEndpointGroups ==)
794 &quot;annotations&quot;: { # Metadata defined as annotations on the network endpoint group.
795 &quot;a_key&quot;: &quot;A String&quot;,
796 },
797 &quot;appEngine&quot;: { # Configuration for an App Engine network endpoint group (NEG). The service is optional, may be provided explicitly or in the URL mask. The version is optional and can only be provided explicitly or in the URL mask when service is present. # Only valid when networkEndpointType is &quot;SERVERLESS&quot;. Only one of cloudRun, appEngine or cloudFunction may be set.
Bu Sun Kim65020912020-05-20 12:08:20 -0700798 #
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800799 # Note: App Engine service must be in the same project and located in the same region as the Serverless NEG.
800 &quot;service&quot;: &quot;A String&quot;, # Optional serving service.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700801 #
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800802 # The service name is case-sensitive and must be 1-63 characters long.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700803 #
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800804 # Example value: &quot;default&quot;, &quot;my-service&quot;.
805 &quot;urlMask&quot;: &quot;A String&quot;, # A template to parse service and version fields from a request URL. URL mask allows for routing to multiple App Engine services without having to create multiple Network Endpoint Groups and backend services.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700806 #
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800807 # For example, the request URLs &quot;foo1-dot-appname.appspot.com/v1&quot; and &quot;foo1-dot-appname.appspot.com/v2&quot; can be backed by the same Serverless NEG with URL mask &quot;-dot-appname.appspot.com/&quot;. The URL mask will parse them to { service = &quot;foo1&quot;, version = &quot;v1&quot; } and { service = &quot;foo1&quot;, version = &quot;v2&quot; } respectively.
808 &quot;version&quot;: &quot;A String&quot;, # Optional serving version.
809 #
810 # The version name is case-sensitive and must be 1-100 characters long.
811 #
812 # Example value: &quot;v1&quot;, &quot;v2&quot;.
813 },
814 &quot;cloudFunction&quot;: { # Configuration for a Cloud Function network endpoint group (NEG). The function must be provided explicitly or in the URL mask. # Only valid when networkEndpointType is &quot;SERVERLESS&quot;. Only one of cloudRun, appEngine or cloudFunction may be set.
815 #
816 # Note: Cloud Function must be in the same project and located in the same region as the Serverless NEG.
817 &quot;function&quot;: &quot;A String&quot;, # A user-defined name of the Cloud Function.
818 #
819 # The function name is case-sensitive and must be 1-63 characters long.
820 #
821 # Example value: &quot;func1&quot;.
822 &quot;urlMask&quot;: &quot;A String&quot;, # A template to parse function field from a request URL. URL mask allows for routing to multiple Cloud Functions without having to create multiple Network Endpoint Groups and backend services.
823 #
824 # For example, request URLs &quot;mydomain.com/function1&quot; and &quot;mydomain.com/function2&quot; can be backed by the same Serverless NEG with URL mask &quot;/&quot;. The URL mask will parse them to { function = &quot;function1&quot; } and { function = &quot;function2&quot; } respectively.
825 },
826 &quot;cloudRun&quot;: { # Configuration for a Cloud Run network endpoint group (NEG). The service must be provided explicitly or in the URL mask. The tag is optional, may be provided explicitly or in the URL mask. # Only valid when networkEndpointType is &quot;SERVERLESS&quot;. Only one of cloudRun, appEngine or cloudFunction may be set.
827 #
828 # Note: Cloud Run service must be in the same project and located in the same region as the Serverless NEG.
829 &quot;service&quot;: &quot;A String&quot;, # Cloud Run service is the main resource of Cloud Run.
830 #
831 # The service must be 1-63 characters long, and comply with RFC1035.
832 #
833 # Example value: &quot;run-service&quot;.
834 &quot;tag&quot;: &quot;A String&quot;, # Optional Cloud Run tag represents the &quot;named-revision&quot; to provide additional fine-grained traffic routing information.
835 #
836 # The tag must be 1-63 characters long, and comply with RFC1035.
837 #
838 # Example value: &quot;revision-0010&quot;.
839 &quot;urlMask&quot;: &quot;A String&quot;, # A template to parse service and tag fields from a request URL. URL mask allows for routing to multiple Run services without having to create multiple network endpoint groups and backend services.
840 #
841 # For example, request URLs &quot;foo1.domain.com/bar1&quot; and &quot;foo1.domain.com/bar2&quot; can be backed by the same Serverless Network Endpoint Group (NEG) with URL mask &quot;.domain.com/&quot;. The URL mask will parse them to { service=&quot;bar1&quot;, tag=&quot;foo1&quot; } and { service=&quot;bar2&quot;, tag=&quot;foo2&quot; } respectively.
842 },
843 &quot;creationTimestamp&quot;: &quot;A String&quot;, # [Output Only] Creation timestamp in RFC3339 text format.
844 &quot;defaultPort&quot;: 42, # The default port used if the port number is not specified in the network endpoint.
845 &quot;description&quot;: &quot;A String&quot;, # An optional description of this resource. Provide this property when you create the resource.
846 &quot;id&quot;: &quot;A String&quot;, # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
847 &quot;kind&quot;: &quot;compute#networkEndpointGroup&quot;, # [Output Only] Type of the resource. Always compute#networkEndpointGroup for network endpoint group.
848 &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])?` 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.
849 &quot;network&quot;: &quot;A String&quot;, # The URL of the network to which all network endpoints in the NEG belong. Uses &quot;default&quot; project network if unspecified.
850 &quot;networkEndpointType&quot;: &quot;A String&quot;, # Type of network endpoints in this network endpoint group. Can be one of GCE_VM_IP_PORT, NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT, INTERNET_IP_PORT, or SERVERLESS.
851 &quot;region&quot;: &quot;A String&quot;, # [Output Only] The URL of the region where the network endpoint group is located.
852 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for the resource.
853 &quot;size&quot;: 42, # [Output only] Number of network endpoints in the network endpoint group.
854 &quot;subnetwork&quot;: &quot;A String&quot;, # Optional URL of the subnetwork to which all network endpoints in the NEG belong.
855 &quot;zone&quot;: &quot;A String&quot;, # [Output Only] The URL of the zone where the network endpoint group is located.
856 },
857 ],
858 &quot;kind&quot;: &quot;compute#networkEndpointGroupList&quot;, # [Output Only] The resource type, which is always compute#networkEndpointGroupList for network endpoint group lists.
859 &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.
860 &quot;selfLink&quot;: &quot;A String&quot;, # [Output Only] Server-defined URL for this resource.
861 &quot;warning&quot;: { # [Output Only] Informational warning message.
862 &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.
863 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
864 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
865 {
866 &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).
867 &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 -0700868 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700869 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800870 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
871 },
872}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700873</div>
874
875<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700876 <code class="details" id="listNetworkEndpoints">listNetworkEndpoints(project, zone, networkEndpointGroup, body=None, filter=None, maxResults=None, orderBy=None, pageToken=None, returnPartialSuccess=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700877 <pre>Lists the network endpoints in the specified network endpoint group.
878
879Args:
880 project: string, Project ID for this request. (required)
881 zone: string, The name of the zone where the network endpoint group is located. It should comply with RFC1035. (required)
882 networkEndpointGroup: string, The name of the network endpoint group from which you want to generate a list of included network endpoints. It should comply with RFC1035. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700883 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700884 The object takes the form of:
885
886{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800887 &quot;healthStatus&quot;: &quot;A String&quot;, # Optional query parameter for showing the health status of each network endpoint. Valid options are SKIP or SHOW. If you don&#x27;t specify this parameter, the health status of network endpoints will not be provided.
888}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700889
Dan O'Mearadd494642020-05-01 07:42:23 -0700890 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;`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700891
Dan O'Mearadd494642020-05-01 07:42:23 -0700892For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700893
Dan O'Mearadd494642020-05-01 07:42:23 -0700894You 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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700895
Bu Sun Kim65020912020-05-20 12:08:20 -0700896To 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) ```
897 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`)
898 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
899
900You 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.
901
902Currently, only sorting by `name` or `creationTimestamp desc` is supported.
903 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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700904 returnPartialSuccess: boolean, Opt-in for partial success behavior which provides partial results in case of failure. The default value is false and the logic is the same as today.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700905
906Returns:
907 An object of the form:
908
909 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800910 &quot;id&quot;: &quot;A String&quot;, # [Output Only] Unique identifier for the resource; defined by the server.
911 &quot;items&quot;: [ # A list of NetworkEndpointWithHealthStatus resources.
912 {
913 &quot;healths&quot;: [ # [Output only] The health status of network endpoint;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700914 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800915 &quot;backendService&quot;: { # URL of the backend service associated with the health state of the network endpoint.
916 &quot;backendService&quot;: &quot;A String&quot;,
917 },
918 &quot;forwardingRule&quot;: { # URL of the forwarding rule associated with the health state of the network endpoint.
919 &quot;forwardingRule&quot;: &quot;A String&quot;,
920 },
921 &quot;healthCheck&quot;: { # A full or valid partial URL to a health check. For example, the following are valid URLs: # URL of the health check associated with the health state of the network endpoint.
922 # - https://www.googleapis.com/compute/beta/projects/project-id/global/httpHealthChecks/health-check
923 # - projects/project-id/global/httpHealthChecks/health-check
924 # - global/httpHealthChecks/health-check
925 &quot;healthCheck&quot;: &quot;A String&quot;,
926 },
927 &quot;healthCheckService&quot;: { # A full or valid partial URL to a health check service. For example, the following are valid URLs: # URL of the health check service associated with the health state of the network endpoint.
928 # - https://www.googleapis.com/compute/beta/projects/project-id/regions/us-west1/healthCheckServices/health-check-service
929 # - projects/project-id/regions/us-west1/healthCheckServices/health-check-service
930 # - regions/us-west1/healthCheckServices/health-check-service
931 &quot;healthCheckService&quot;: &quot;A String&quot;,
932 },
933 &quot;healthState&quot;: &quot;A String&quot;, # Health state of the network endpoint determined based on the health checks configured.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700934 },
935 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800936 &quot;networkEndpoint&quot;: { # The network endpoint. # [Output only] The network endpoint;
937 &quot;annotations&quot;: { # Metadata defined as annotations on the network endpoint.
938 &quot;a_key&quot;: &quot;A String&quot;,
939 },
940 &quot;fqdn&quot;: &quot;A String&quot;, # Optional fully qualified domain name of network endpoint. This can only be specified when NetworkEndpointGroup.network_endpoint_type is NON_GCP_FQDN_PORT.
941 &quot;instance&quot;: &quot;A String&quot;, # The name for a specific VM instance that the IP address belongs to. This is required for network endpoints of type GCE_VM_IP_PORT. The instance must be in the same zone of network endpoint group.
942 #
943 # The name must be 1-63 characters long, and comply with RFC1035.
944 &quot;ipAddress&quot;: &quot;A String&quot;, # Optional IPv4 address of network endpoint. The IP address must belong to a VM in Compute Engine (either the primary IP or as part of an aliased IP range). If the IP address is not specified, then the primary IP address for the VM instance in the network that the network endpoint group belongs to will be used.
945 &quot;port&quot;: 42, # Optional port number of network endpoint. If not specified and the NetworkEndpointGroup.network_endpoint_type is GCE_IP_PORT, the defaultPort for the network endpoint group will be used.
946 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700947 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800948 ],
949 &quot;kind&quot;: &quot;compute#networkEndpointGroupsListNetworkEndpoints&quot;, # [Output Only] The resource type, which is always compute#networkEndpointGroupsListNetworkEndpoints for the list of network endpoints in the specified network endpoint group.
950 &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.
951 &quot;warning&quot;: { # [Output Only] Informational warning message.
952 &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.
953 &quot;data&quot;: [ # [Output Only] Metadata about this warning in key: value format. For example:
954 # &quot;data&quot;: [ { &quot;key&quot;: &quot;scope&quot;, &quot;value&quot;: &quot;zones/us-east1-d&quot; }
955 {
956 &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).
957 &quot;value&quot;: &quot;A String&quot;, # [Output Only] A warning data value corresponding to the key.
958 },
959 ],
960 &quot;message&quot;: &quot;A String&quot;, # [Output Only] A human-readable description of the warning code.
961 },
962}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700963</div>
964
965<div class="method">
966 <code class="details" id="listNetworkEndpoints_next">listNetworkEndpoints_next(previous_request, previous_response)</code>
967 <pre>Retrieves the next page of results.
968
969Args:
970 previous_request: The request for the previous page. (required)
971 previous_response: The response from the request for the previous page. (required)
972
973Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700974 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700975 page. Returns None if there are no more items in the collection.
976 </pre>
977</div>
978
979<div class="method">
980 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
981 <pre>Retrieves the next page of results.
982
983Args:
984 previous_request: The request for the previous page. (required)
985 previous_response: The response from the request for the previous page. (required)
986
987Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700988 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700989 page. Returns None if there are no more items in the collection.
990 </pre>
991</div>
992
993<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700994 <code class="details" id="testIamPermissions">testIamPermissions(project, zone, resource, body=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700995 <pre>Returns permissions that a caller has on the specified resource.
996
997Args:
998 project: string, Project ID for this request. (required)
999 zone: string, The name of the zone for this request. (required)
1000 resource: string, Name or id of the resource for this request. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001001 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001002 The object takes the form of:
1003
1004{
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001005 &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.
1006 &quot;A String&quot;,
1007 ],
1008}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001009
1010
1011Returns:
1012 An object of the form:
1013
1014 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001015 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1016 &quot;A String&quot;,
1017 ],
1018}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001019</div>
1020
1021</body></html>