Debian Codegraph @

docs/dyn/networkconnectivity_v1.projects.locations.spokes.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="networkconnectivity_v1.html">Network Connectivity API</a> . <a href="networkconnectivity_v1.projects.html">projects</a> . <a href="networkconnectivity_v1.projects.locations.html">locations</a> . <a href="networkconnectivity_v1.projects.locations.spokes.html">spokes</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="networkconnectivity_v1.projects.locations.spokes.gatewayAdvertisedRoutes.html">gatewayAdvertisedRoutes()</a></code>
79 </p>
80 <p class="firstline">Returns the gatewayAdvertisedRoutes Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="#close">close()</a></code></p>
84 <p class="firstline">Close httplib2 connections.</p>
85 <p class="toc_element">
86 <code><a href="#create">create(parent, body=None, requestId=None, spokeId=None, x__xgafv=None)</a></code></p>
87 <p class="firstline">Creates a Network Connectivity Center spoke.</p>
88 <p class="toc_element">
89 <code><a href="#delete">delete(name, requestId=None, x__xgafv=None)</a></code></p>
90 <p class="firstline">Deletes a Network Connectivity Center spoke.</p>
91 <p class="toc_element">
92 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
93 <p class="firstline">Gets details about a Network Connectivity Center spoke.</p>
94 <p class="toc_element">
95 <code><a href="#getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</a></code></p>
96 <p class="firstline">Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.</p>
97 <p class="toc_element">
98 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
99 <p class="firstline">Lists the Network Connectivity Center spokes in a specified project and location.</p>
100 <p class="toc_element">
101 <code><a href="#list_next">list_next()</a></code></p>
102 <p class="firstline">Retrieves the next page of results.</p>
103 <p class="toc_element">
104 <code><a href="#patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</a></code></p>
105 <p class="firstline">Updates the parameters of a Network Connectivity Center spoke.</p>
106 <p class="toc_element">
107 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
108 <p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.</p>
109 <p class="toc_element">
110 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
111 <p class="firstline">Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.</p>
112 <h3>Method Details</h3>
113 <div class="method">
114 <code class="details" id="close">close()</code>
115 <pre>Close httplib2 connections.</pre>
116 </div>
117
118 <div class="method">
119 <code class="details" id="create">create(parent, body=None, requestId=None, spokeId=None, x__xgafv=None)</code>
120 <pre>Creates a Network Connectivity Center spoke.
121
122 Args:
123 parent: string, Required. The parent resource. (required)
124 body: object, The request body.
125 The object takes the form of:
126
127 { # A Network Connectivity Center spoke represents one or more network connectivity resources. When you create a spoke, you associate it with a hub. You must also identify a value for exactly one of the following fields: * linked_vpn_tunnels * linked_interconnect_attachments * linked_router_appliance_instances * linked_vpc_network
128 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the spoke was created.
129 &quot;description&quot;: &quot;A String&quot;, # Optional. An optional description of the spoke.
130 &quot;etag&quot;: &quot;A String&quot;, # Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
131 &quot;fieldPathsPendingUpdate&quot;: [ # Optional. The list of fields waiting for hub administrator&#x27;s approval.
132 &quot;A String&quot;,
133 ],
134 &quot;gateway&quot;: { # A gateway that can apply specialized traffic processing. # Optional. This is a gateway that can apply specialized processing to traffic going through it.
135 &quot;capacity&quot;: &quot;A String&quot;, # Optional. The aggregate processing capacity of this gateway.
136 &quot;cloudRouters&quot;: [ # Output only. The list of Cloud Routers that are connected to this gateway. Should be in the form: https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
137 &quot;A String&quot;,
138 ],
139 &quot;ipRangeReservations&quot;: [ # Optional. A list of IP ranges that are reserved for this gateway&#x27;s internal intfrastructure.
140 { # A list of IP ranges that are reserved for this gateway&#x27;s internal intfrastructure.
141 &quot;ipRange&quot;: &quot;A String&quot;, # Required. A block of IP addresses used to allocate supporting infrastructure for this gateway. This block must not overlap with subnets in any spokes or peer VPC networks that the gateway can communicate with. Example: &quot;10.1.2.0/24&quot;
142 },
143 ],
144 &quot;sacAttachment&quot;: &quot;A String&quot;, # Output only. The URI of the connected SACAttachment. Should be in the form: projects/{project}/locations/{location}/sacAttachments/{sac_attachment}
145 },
146 &quot;group&quot;: &quot;A String&quot;, # Optional. The name of the group that this spoke is associated with.
147 &quot;hub&quot;: &quot;A String&quot;, # Immutable. The name of the hub that this spoke is attached to.
148 &quot;labels&quot;: { # Optional labels in key-value pair format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
149 &quot;a_key&quot;: &quot;A String&quot;,
150 },
151 &quot;linkedInterconnectAttachments&quot;: { # A collection of VLAN attachment resources. These resources should be redundant attachments that all advertise the same prefixes to Google Cloud. Alternatively, in active/passive configurations, all attachments should be capable of advertising the same prefixes. # Optional. VLAN attachments that are associated with the spoke.
152 &quot;excludeExportRanges&quot;: [ # Optional. Dynamic routes overlapped/encompassed by exclude export ranges are excluded during export to hub.
153 &quot;A String&quot;,
154 ],
155 &quot;excludeImportRanges&quot;: [ # Optional. Hub routes overlapped/encompassed by exclude import ranges are excluded during import from hub.
156 &quot;A String&quot;,
157 ],
158 &quot;includeExportRanges&quot;: [ # Optional. Dynamic routes fully encompassed by include export ranges are included during export to hub.
159 &quot;A String&quot;,
160 ],
161 &quot;includeImportRanges&quot;: [ # Optional. Hub routes fully encompassed by include import ranges are included during import from hub.
162 &quot;A String&quot;,
163 ],
164 &quot;siteToSiteDataTransfer&quot;: True or False, # A value that controls whether site-to-site data transfer is enabled for these resources. Data transfer is available only in [supported locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
165 &quot;uris&quot;: [ # The URIs of linked interconnect attachment resources
166 &quot;A String&quot;,
167 ],
168 &quot;vpcNetwork&quot;: &quot;A String&quot;, # Output only. The VPC network where these VLAN attachments are located.
169 },
170 &quot;linkedProducerVpcNetwork&quot;: { # Optional. The linked producer VPC that is associated with the spoke.
171 &quot;excludeExportRanges&quot;: [ # Optional. IP ranges encompassing the subnets to be excluded from peering.
172 &quot;A String&quot;,
173 ],
174 &quot;includeExportRanges&quot;: [ # Optional. IP ranges allowed to be included from peering.
175 &quot;A String&quot;,
176 ],
177 &quot;network&quot;: &quot;A String&quot;, # Immutable. The URI of the Service Consumer VPC that the Producer VPC is peered with.
178 &quot;peering&quot;: &quot;A String&quot;, # Immutable. The name of the VPC peering between the Service Consumer VPC and the Producer VPC (defined in the Tenant project) which is added to the NCC hub. This peering must be in ACTIVE state.
179 &quot;producerNetwork&quot;: &quot;A String&quot;, # Output only. The URI of the Producer VPC.
180 &quot;proposedExcludeExportRanges&quot;: [ # Output only. The proposed exclude export IP ranges waiting for hub administrator&#x27;s approval.
181 &quot;A String&quot;,
182 ],
183 &quot;proposedIncludeExportRanges&quot;: [ # Output only. The proposed include export IP ranges waiting for hub administrator&#x27;s approval.
184 &quot;A String&quot;,
185 ],
186 &quot;serviceConsumerVpcSpoke&quot;: &quot;A String&quot;, # Output only. The Service Consumer Network spoke.
187 },
188 &quot;linkedRouterApplianceInstances&quot;: { # A collection of router appliance instances. If you configure multiple router appliance instances to receive data from the same set of sites outside of Google Cloud, we recommend that you associate those instances with the same spoke. # Optional. Router appliance instances that are associated with the spoke.
189 &quot;excludeExportRanges&quot;: [ # Optional. Dynamic routes overlapped/encompassed by exclude export ranges are excluded during export to hub.
190 &quot;A String&quot;,
191 ],
192 &quot;excludeImportRanges&quot;: [ # Optional. Hub routes overlapped/encompassed by exclude import ranges are excluded during import from hub.
193 &quot;A String&quot;,
194 ],
195 &quot;includeExportRanges&quot;: [ # Optional. Dynamic routes fully encompassed by include export ranges are included during export to hub.
196 &quot;A String&quot;,
197 ],
198 &quot;includeImportRanges&quot;: [ # Optional. Hub routes fully encompassed by include import ranges are included during import from hub.
199 &quot;A String&quot;,
200 ],
201 &quot;instances&quot;: [ # The list of router appliance instances.
202 { # A router appliance instance is a Compute Engine virtual machine (VM) instance that acts as a BGP speaker. A router appliance instance is specified by the URI of the VM and the internal IP address of one of the VM&#x27;s network interfaces.
203 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address on the VM to use for peering.
204 &quot;virtualMachine&quot;: &quot;A String&quot;, # The URI of the VM.
205 },
206 ],
207 &quot;siteToSiteDataTransfer&quot;: True or False, # A value that controls whether site-to-site data transfer is enabled for these resources. Data transfer is available only in [supported locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
208 &quot;vpcNetwork&quot;: &quot;A String&quot;, # Output only. The VPC network where these router appliance instances are located.
209 },
210 &quot;linkedVpcNetwork&quot;: { # An existing VPC network. # Optional. VPC network that is associated with the spoke.
211 &quot;excludeExportRanges&quot;: [ # Optional. IP ranges encompassing the subnets to be excluded from peering.
212 &quot;A String&quot;,
213 ],
214 &quot;includeExportRanges&quot;: [ # Optional. IP ranges allowed to be included from peering.
215 &quot;A String&quot;,
216 ],
217 &quot;producerVpcSpokes&quot;: [ # Output only. The list of Producer VPC spokes that this VPC spoke is a service consumer VPC spoke for. These producer VPCs are connected through VPC peering to this spoke&#x27;s backing VPC network. Because they are directly connected through VPC peering, NCC export filters do not apply between the service consumer VPC spoke and any of its producer VPC spokes. This VPC spoke cannot be deleted as long as any of these producer VPC spokes are connected to the NCC Hub.
218 &quot;A String&quot;,
219 ],
220 &quot;proposedExcludeExportRanges&quot;: [ # Output only. The proposed exclude export IP ranges waiting for hub administrator&#x27;s approval.
221 &quot;A String&quot;,
222 ],
223 &quot;proposedIncludeExportRanges&quot;: [ # Output only. The proposed include export IP ranges waiting for hub administrator&#x27;s approval.
224 &quot;A String&quot;,
225 ],
226 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the VPC network resource.
227 },
228 &quot;linkedVpnTunnels&quot;: { # A collection of Cloud VPN tunnel resources. These resources should be redundant HA VPN tunnels that all advertise the same prefixes to Google Cloud. Alternatively, in a passive/active configuration, all tunnels should be capable of advertising the same prefixes. # Optional. VPN tunnels that are associated with the spoke.
229 &quot;excludeExportRanges&quot;: [ # Optional. Dynamic routes overlapped/encompassed by exclude export ranges are excluded during export to hub.
230 &quot;A String&quot;,
231 ],
232 &quot;excludeImportRanges&quot;: [ # Optional. Hub routes overlapped/encompassed by exclude import ranges are excluded during import from hub.
233 &quot;A String&quot;,
234 ],
235 &quot;includeExportRanges&quot;: [ # Optional. Dynamic routes fully encompassed by include export ranges are included during export to hub.
236 &quot;A String&quot;,
237 ],
238 &quot;includeImportRanges&quot;: [ # Optional. Hub routes fully encompassed by include import ranges are included during import from hub.
239 &quot;A String&quot;,
240 ],
241 &quot;siteToSiteDataTransfer&quot;: True or False, # A value that controls whether site-to-site data transfer is enabled for these resources. Data transfer is available only in [supported locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
242 &quot;uris&quot;: [ # The URIs of linked VPN tunnel resources.
243 &quot;A String&quot;,
244 ],
245 &quot;vpcNetwork&quot;: &quot;A String&quot;, # Output only. The VPC network where these VPN tunnels are located.
246 },
247 &quot;name&quot;: &quot;A String&quot;, # Immutable. The name of the spoke. Spoke names must be unique. They use the following form: `projects/{project_number}/locations/{region}/spokes/{spoke_id}`
248 &quot;reasons&quot;: [ # Output only. The reasons for current state of the spoke.
249 { # The reason for the current state of the spoke.
250 &quot;code&quot;: &quot;A String&quot;, # The code associated with this reason.
251 &quot;message&quot;: &quot;A String&quot;, # Human-readable details about this reason.
252 &quot;userDetails&quot;: &quot;A String&quot;, # Additional information provided by the user in the RejectSpoke call.
253 },
254 ],
255 &quot;spokeType&quot;: &quot;A String&quot;, # Output only. The type of resource associated with the spoke.
256 &quot;state&quot;: &quot;A String&quot;, # Output only. The current lifecycle state of this spoke.
257 &quot;uniqueId&quot;: &quot;A String&quot;, # Output only. The Google-generated UUID for the spoke. This value is unique across all spoke resources. If a spoke is deleted and another with the same name is created, the new spoke is assigned a different `unique_id`.
258 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the spoke was last updated.
259 }
260
261 requestId: string, Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that a request doesn&#x27;t result in creation of duplicate commitments for at least 60 minutes. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check to see whether the original operation was received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments. The request ID must be a valid UUID, with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
262 spokeId: string, Required. Unique id for the spoke to create.
263 x__xgafv: string, V1 error format.
264 Allowed values
265 1 - v1 error format
266 2 - v2 error format
267
268 Returns:
269 An object of the form:
270
271 { # This resource represents a long-running operation that is the result of a network API call.
272 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
273 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
274 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
275 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
276 {
277 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
278 },
279 ],
280 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
281 },
282 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
283 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
284 },
285 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
286 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
287 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
288 },
289 }</pre>
290 </div>
291
292 <div class="method">
293 <code class="details" id="delete">delete(name, requestId=None, x__xgafv=None)</code>
294 <pre>Deletes a Network Connectivity Center spoke.
295
296 Args:
297 name: string, Required. The name of the spoke to delete. (required)
298 requestId: string, Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that a request doesn&#x27;t result in creation of duplicate commitments for at least 60 minutes. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check to see whether the original operation was received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments. The request ID must be a valid UUID, with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
299 x__xgafv: string, V1 error format.
300 Allowed values
301 1 - v1 error format
302 2 - v2 error format
303
304 Returns:
305 An object of the form:
306
307 { # This resource represents a long-running operation that is the result of a network API call.
308 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
309 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
310 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
311 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
312 {
313 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
314 },
315 ],
316 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
317 },
318 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
319 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
320 },
321 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
322 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
323 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
324 },
325 }</pre>
326 </div>
327
328 <div class="method">
329 <code class="details" id="get">get(name, x__xgafv=None)</code>
330 <pre>Gets details about a Network Connectivity Center spoke.
331
332 Args:
333 name: string, Required. The name of the spoke resource. (required)
334 x__xgafv: string, V1 error format.
335 Allowed values
336 1 - v1 error format
337 2 - v2 error format
338
339 Returns:
340 An object of the form:
341
342 { # A Network Connectivity Center spoke represents one or more network connectivity resources. When you create a spoke, you associate it with a hub. You must also identify a value for exactly one of the following fields: * linked_vpn_tunnels * linked_interconnect_attachments * linked_router_appliance_instances * linked_vpc_network
343 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the spoke was created.
344 &quot;description&quot;: &quot;A String&quot;, # Optional. An optional description of the spoke.
345 &quot;etag&quot;: &quot;A String&quot;, # Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
346 &quot;fieldPathsPendingUpdate&quot;: [ # Optional. The list of fields waiting for hub administrator&#x27;s approval.
347 &quot;A String&quot;,
348 ],
349 &quot;gateway&quot;: { # A gateway that can apply specialized traffic processing. # Optional. This is a gateway that can apply specialized processing to traffic going through it.
350 &quot;capacity&quot;: &quot;A String&quot;, # Optional. The aggregate processing capacity of this gateway.
351 &quot;cloudRouters&quot;: [ # Output only. The list of Cloud Routers that are connected to this gateway. Should be in the form: https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
352 &quot;A String&quot;,
353 ],
354 &quot;ipRangeReservations&quot;: [ # Optional. A list of IP ranges that are reserved for this gateway&#x27;s internal intfrastructure.
355 { # A list of IP ranges that are reserved for this gateway&#x27;s internal intfrastructure.
356 &quot;ipRange&quot;: &quot;A String&quot;, # Required. A block of IP addresses used to allocate supporting infrastructure for this gateway. This block must not overlap with subnets in any spokes or peer VPC networks that the gateway can communicate with. Example: &quot;10.1.2.0/24&quot;
357 },
358 ],
359 &quot;sacAttachment&quot;: &quot;A String&quot;, # Output only. The URI of the connected SACAttachment. Should be in the form: projects/{project}/locations/{location}/sacAttachments/{sac_attachment}
360 },
361 &quot;group&quot;: &quot;A String&quot;, # Optional. The name of the group that this spoke is associated with.
362 &quot;hub&quot;: &quot;A String&quot;, # Immutable. The name of the hub that this spoke is attached to.
363 &quot;labels&quot;: { # Optional labels in key-value pair format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
364 &quot;a_key&quot;: &quot;A String&quot;,
365 },
366 &quot;linkedInterconnectAttachments&quot;: { # A collection of VLAN attachment resources. These resources should be redundant attachments that all advertise the same prefixes to Google Cloud. Alternatively, in active/passive configurations, all attachments should be capable of advertising the same prefixes. # Optional. VLAN attachments that are associated with the spoke.
367 &quot;excludeExportRanges&quot;: [ # Optional. Dynamic routes overlapped/encompassed by exclude export ranges are excluded during export to hub.
368 &quot;A String&quot;,
369 ],
370 &quot;excludeImportRanges&quot;: [ # Optional. Hub routes overlapped/encompassed by exclude import ranges are excluded during import from hub.
371 &quot;A String&quot;,
372 ],
373 &quot;includeExportRanges&quot;: [ # Optional. Dynamic routes fully encompassed by include export ranges are included during export to hub.
374 &quot;A String&quot;,
375 ],
376 &quot;includeImportRanges&quot;: [ # Optional. Hub routes fully encompassed by include import ranges are included during import from hub.
377 &quot;A String&quot;,
378 ],
379 &quot;siteToSiteDataTransfer&quot;: True or False, # A value that controls whether site-to-site data transfer is enabled for these resources. Data transfer is available only in [supported locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
380 &quot;uris&quot;: [ # The URIs of linked interconnect attachment resources
381 &quot;A String&quot;,
382 ],
383 &quot;vpcNetwork&quot;: &quot;A String&quot;, # Output only. The VPC network where these VLAN attachments are located.
384 },
385 &quot;linkedProducerVpcNetwork&quot;: { # Optional. The linked producer VPC that is associated with the spoke.
386 &quot;excludeExportRanges&quot;: [ # Optional. IP ranges encompassing the subnets to be excluded from peering.
387 &quot;A String&quot;,
388 ],
389 &quot;includeExportRanges&quot;: [ # Optional. IP ranges allowed to be included from peering.
390 &quot;A String&quot;,
391 ],
392 &quot;network&quot;: &quot;A String&quot;, # Immutable. The URI of the Service Consumer VPC that the Producer VPC is peered with.
393 &quot;peering&quot;: &quot;A String&quot;, # Immutable. The name of the VPC peering between the Service Consumer VPC and the Producer VPC (defined in the Tenant project) which is added to the NCC hub. This peering must be in ACTIVE state.
394 &quot;producerNetwork&quot;: &quot;A String&quot;, # Output only. The URI of the Producer VPC.
395 &quot;proposedExcludeExportRanges&quot;: [ # Output only. The proposed exclude export IP ranges waiting for hub administrator&#x27;s approval.
396 &quot;A String&quot;,
397 ],
398 &quot;proposedIncludeExportRanges&quot;: [ # Output only. The proposed include export IP ranges waiting for hub administrator&#x27;s approval.
399 &quot;A String&quot;,
400 ],
401 &quot;serviceConsumerVpcSpoke&quot;: &quot;A String&quot;, # Output only. The Service Consumer Network spoke.
402 },
403 &quot;linkedRouterApplianceInstances&quot;: { # A collection of router appliance instances. If you configure multiple router appliance instances to receive data from the same set of sites outside of Google Cloud, we recommend that you associate those instances with the same spoke. # Optional. Router appliance instances that are associated with the spoke.
404 &quot;excludeExportRanges&quot;: [ # Optional. Dynamic routes overlapped/encompassed by exclude export ranges are excluded during export to hub.
405 &quot;A String&quot;,
406 ],
407 &quot;excludeImportRanges&quot;: [ # Optional. Hub routes overlapped/encompassed by exclude import ranges are excluded during import from hub.
408 &quot;A String&quot;,
409 ],
410 &quot;includeExportRanges&quot;: [ # Optional. Dynamic routes fully encompassed by include export ranges are included during export to hub.
411 &quot;A String&quot;,
412 ],
413 &quot;includeImportRanges&quot;: [ # Optional. Hub routes fully encompassed by include import ranges are included during import from hub.
414 &quot;A String&quot;,
415 ],
416 &quot;instances&quot;: [ # The list of router appliance instances.
417 { # A router appliance instance is a Compute Engine virtual machine (VM) instance that acts as a BGP speaker. A router appliance instance is specified by the URI of the VM and the internal IP address of one of the VM&#x27;s network interfaces.
418 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address on the VM to use for peering.
419 &quot;virtualMachine&quot;: &quot;A String&quot;, # The URI of the VM.
420 },
421 ],
422 &quot;siteToSiteDataTransfer&quot;: True or False, # A value that controls whether site-to-site data transfer is enabled for these resources. Data transfer is available only in [supported locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
423 &quot;vpcNetwork&quot;: &quot;A String&quot;, # Output only. The VPC network where these router appliance instances are located.
424 },
425 &quot;linkedVpcNetwork&quot;: { # An existing VPC network. # Optional. VPC network that is associated with the spoke.
426 &quot;excludeExportRanges&quot;: [ # Optional. IP ranges encompassing the subnets to be excluded from peering.
427 &quot;A String&quot;,
428 ],
429 &quot;includeExportRanges&quot;: [ # Optional. IP ranges allowed to be included from peering.
430 &quot;A String&quot;,
431 ],
432 &quot;producerVpcSpokes&quot;: [ # Output only. The list of Producer VPC spokes that this VPC spoke is a service consumer VPC spoke for. These producer VPCs are connected through VPC peering to this spoke&#x27;s backing VPC network. Because they are directly connected through VPC peering, NCC export filters do not apply between the service consumer VPC spoke and any of its producer VPC spokes. This VPC spoke cannot be deleted as long as any of these producer VPC spokes are connected to the NCC Hub.
433 &quot;A String&quot;,
434 ],
435 &quot;proposedExcludeExportRanges&quot;: [ # Output only. The proposed exclude export IP ranges waiting for hub administrator&#x27;s approval.
436 &quot;A String&quot;,
437 ],
438 &quot;proposedIncludeExportRanges&quot;: [ # Output only. The proposed include export IP ranges waiting for hub administrator&#x27;s approval.
439 &quot;A String&quot;,
440 ],
441 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the VPC network resource.
442 },
443 &quot;linkedVpnTunnels&quot;: { # A collection of Cloud VPN tunnel resources. These resources should be redundant HA VPN tunnels that all advertise the same prefixes to Google Cloud. Alternatively, in a passive/active configuration, all tunnels should be capable of advertising the same prefixes. # Optional. VPN tunnels that are associated with the spoke.
444 &quot;excludeExportRanges&quot;: [ # Optional. Dynamic routes overlapped/encompassed by exclude export ranges are excluded during export to hub.
445 &quot;A String&quot;,
446 ],
447 &quot;excludeImportRanges&quot;: [ # Optional. Hub routes overlapped/encompassed by exclude import ranges are excluded during import from hub.
448 &quot;A String&quot;,
449 ],
450 &quot;includeExportRanges&quot;: [ # Optional. Dynamic routes fully encompassed by include export ranges are included during export to hub.
451 &quot;A String&quot;,
452 ],
453 &quot;includeImportRanges&quot;: [ # Optional. Hub routes fully encompassed by include import ranges are included during import from hub.
454 &quot;A String&quot;,
455 ],
456 &quot;siteToSiteDataTransfer&quot;: True or False, # A value that controls whether site-to-site data transfer is enabled for these resources. Data transfer is available only in [supported locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
457 &quot;uris&quot;: [ # The URIs of linked VPN tunnel resources.
458 &quot;A String&quot;,
459 ],
460 &quot;vpcNetwork&quot;: &quot;A String&quot;, # Output only. The VPC network where these VPN tunnels are located.
461 },
462 &quot;name&quot;: &quot;A String&quot;, # Immutable. The name of the spoke. Spoke names must be unique. They use the following form: `projects/{project_number}/locations/{region}/spokes/{spoke_id}`
463 &quot;reasons&quot;: [ # Output only. The reasons for current state of the spoke.
464 { # The reason for the current state of the spoke.
465 &quot;code&quot;: &quot;A String&quot;, # The code associated with this reason.
466 &quot;message&quot;: &quot;A String&quot;, # Human-readable details about this reason.
467 &quot;userDetails&quot;: &quot;A String&quot;, # Additional information provided by the user in the RejectSpoke call.
468 },
469 ],
470 &quot;spokeType&quot;: &quot;A String&quot;, # Output only. The type of resource associated with the spoke.
471 &quot;state&quot;: &quot;A String&quot;, # Output only. The current lifecycle state of this spoke.
472 &quot;uniqueId&quot;: &quot;A String&quot;, # Output only. The Google-generated UUID for the spoke. This value is unique across all spoke resources. If a spoke is deleted and another with the same name is created, the new spoke is assigned a different `unique_id`.
473 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the spoke was last updated.
474 }</pre>
475 </div>
476
477 <div class="method">
478 <code class="details" id="getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</code>
479 <pre>Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
480
481 Args:
482 resource: string, REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. (required)
483 options_requestedPolicyVersion: integer, Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
484 x__xgafv: string, V1 error format.
485 Allowed values
486 1 - v1 error format
487 2 - v2 error format
488
489 Returns:
490 An object of the form:
491
492 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot;, &quot;group:[email protected]&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:[email protected]&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } ``` **YAML example:** ``` bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
493 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
494 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { &quot;audit_configs&quot;: [ { &quot;service&quot;: &quot;allServices&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:[email protected]&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; }, { &quot;log_type&quot;: &quot;ADMIN_READ&quot; } ] }, { &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot; }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, &quot;exempted_members&quot;: [ &quot;user:[email protected]&quot; ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `[email protected]` from DATA_READ logging, and `[email protected]` from DATA_WRITE logging.
495 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
496 { # Provides the configuration for logging a type of permissions. Example: { &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:[email protected]&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; } ] } This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting [email protected] from DATA_READ logging.
497 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
498 &quot;A String&quot;,
499 ],
500 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
501 },
502 ],
503 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
504 },
505 ],
506 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:[email protected]`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
507 { # Associates `members`, or principals, with a `role`.
508 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
509 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
510 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
511 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
512 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
513 },
514 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `[email protected]`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
515 &quot;A String&quot;,
516 ],
517 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).
518 },
519 ],
520 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
521 &quot;version&quot;: 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
522 }</pre>
523 </div>
524
525 <div class="method">
526 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
527 <pre>Lists the Network Connectivity Center spokes in a specified project and location.
528
529 Args:
530 parent: string, Required. The parent resource. (required)
531 filter: string, An expression that filters the list of results.
532 orderBy: string, Sort the results by a certain order.
533 pageSize: integer, The maximum number of results to return per page.
534 pageToken: string, The page token.
535 x__xgafv: string, V1 error format.
536 Allowed values
537 1 - v1 error format
538 2 - v2 error format
539
540 Returns:
541 An object of the form:
542
543 { # The response for HubService.ListSpokes.
544 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results.
545 &quot;spokes&quot;: [ # The requested spokes.
546 { # A Network Connectivity Center spoke represents one or more network connectivity resources. When you create a spoke, you associate it with a hub. You must also identify a value for exactly one of the following fields: * linked_vpn_tunnels * linked_interconnect_attachments * linked_router_appliance_instances * linked_vpc_network
547 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the spoke was created.
548 &quot;description&quot;: &quot;A String&quot;, # Optional. An optional description of the spoke.
549 &quot;etag&quot;: &quot;A String&quot;, # Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
550 &quot;fieldPathsPendingUpdate&quot;: [ # Optional. The list of fields waiting for hub administrator&#x27;s approval.
551 &quot;A String&quot;,
552 ],
553 &quot;gateway&quot;: { # A gateway that can apply specialized traffic processing. # Optional. This is a gateway that can apply specialized processing to traffic going through it.
554 &quot;capacity&quot;: &quot;A String&quot;, # Optional. The aggregate processing capacity of this gateway.
555 &quot;cloudRouters&quot;: [ # Output only. The list of Cloud Routers that are connected to this gateway. Should be in the form: https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
556 &quot;A String&quot;,
557 ],
558 &quot;ipRangeReservations&quot;: [ # Optional. A list of IP ranges that are reserved for this gateway&#x27;s internal intfrastructure.
559 { # A list of IP ranges that are reserved for this gateway&#x27;s internal intfrastructure.
560 &quot;ipRange&quot;: &quot;A String&quot;, # Required. A block of IP addresses used to allocate supporting infrastructure for this gateway. This block must not overlap with subnets in any spokes or peer VPC networks that the gateway can communicate with. Example: &quot;10.1.2.0/24&quot;
561 },
562 ],
563 &quot;sacAttachment&quot;: &quot;A String&quot;, # Output only. The URI of the connected SACAttachment. Should be in the form: projects/{project}/locations/{location}/sacAttachments/{sac_attachment}
564 },
565 &quot;group&quot;: &quot;A String&quot;, # Optional. The name of the group that this spoke is associated with.
566 &quot;hub&quot;: &quot;A String&quot;, # Immutable. The name of the hub that this spoke is attached to.
567 &quot;labels&quot;: { # Optional labels in key-value pair format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
568 &quot;a_key&quot;: &quot;A String&quot;,
569 },
570 &quot;linkedInterconnectAttachments&quot;: { # A collection of VLAN attachment resources. These resources should be redundant attachments that all advertise the same prefixes to Google Cloud. Alternatively, in active/passive configurations, all attachments should be capable of advertising the same prefixes. # Optional. VLAN attachments that are associated with the spoke.
571 &quot;excludeExportRanges&quot;: [ # Optional. Dynamic routes overlapped/encompassed by exclude export ranges are excluded during export to hub.
572 &quot;A String&quot;,
573 ],
574 &quot;excludeImportRanges&quot;: [ # Optional. Hub routes overlapped/encompassed by exclude import ranges are excluded during import from hub.
575 &quot;A String&quot;,
576 ],
577 &quot;includeExportRanges&quot;: [ # Optional. Dynamic routes fully encompassed by include export ranges are included during export to hub.
578 &quot;A String&quot;,
579 ],
580 &quot;includeImportRanges&quot;: [ # Optional. Hub routes fully encompassed by include import ranges are included during import from hub.
581 &quot;A String&quot;,
582 ],
583 &quot;siteToSiteDataTransfer&quot;: True or False, # A value that controls whether site-to-site data transfer is enabled for these resources. Data transfer is available only in [supported locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
584 &quot;uris&quot;: [ # The URIs of linked interconnect attachment resources
585 &quot;A String&quot;,
586 ],
587 &quot;vpcNetwork&quot;: &quot;A String&quot;, # Output only. The VPC network where these VLAN attachments are located.
588 },
589 &quot;linkedProducerVpcNetwork&quot;: { # Optional. The linked producer VPC that is associated with the spoke.
590 &quot;excludeExportRanges&quot;: [ # Optional. IP ranges encompassing the subnets to be excluded from peering.
591 &quot;A String&quot;,
592 ],
593 &quot;includeExportRanges&quot;: [ # Optional. IP ranges allowed to be included from peering.
594 &quot;A String&quot;,
595 ],
596 &quot;network&quot;: &quot;A String&quot;, # Immutable. The URI of the Service Consumer VPC that the Producer VPC is peered with.
597 &quot;peering&quot;: &quot;A String&quot;, # Immutable. The name of the VPC peering between the Service Consumer VPC and the Producer VPC (defined in the Tenant project) which is added to the NCC hub. This peering must be in ACTIVE state.
598 &quot;producerNetwork&quot;: &quot;A String&quot;, # Output only. The URI of the Producer VPC.
599 &quot;proposedExcludeExportRanges&quot;: [ # Output only. The proposed exclude export IP ranges waiting for hub administrator&#x27;s approval.
600 &quot;A String&quot;,
601 ],
602 &quot;proposedIncludeExportRanges&quot;: [ # Output only. The proposed include export IP ranges waiting for hub administrator&#x27;s approval.
603 &quot;A String&quot;,
604 ],
605 &quot;serviceConsumerVpcSpoke&quot;: &quot;A String&quot;, # Output only. The Service Consumer Network spoke.
606 },
607 &quot;linkedRouterApplianceInstances&quot;: { # A collection of router appliance instances. If you configure multiple router appliance instances to receive data from the same set of sites outside of Google Cloud, we recommend that you associate those instances with the same spoke. # Optional. Router appliance instances that are associated with the spoke.
608 &quot;excludeExportRanges&quot;: [ # Optional. Dynamic routes overlapped/encompassed by exclude export ranges are excluded during export to hub.
609 &quot;A String&quot;,
610 ],
611 &quot;excludeImportRanges&quot;: [ # Optional. Hub routes overlapped/encompassed by exclude import ranges are excluded during import from hub.
612 &quot;A String&quot;,
613 ],
614 &quot;includeExportRanges&quot;: [ # Optional. Dynamic routes fully encompassed by include export ranges are included during export to hub.
615 &quot;A String&quot;,
616 ],
617 &quot;includeImportRanges&quot;: [ # Optional. Hub routes fully encompassed by include import ranges are included during import from hub.
618 &quot;A String&quot;,
619 ],
620 &quot;instances&quot;: [ # The list of router appliance instances.
621 { # A router appliance instance is a Compute Engine virtual machine (VM) instance that acts as a BGP speaker. A router appliance instance is specified by the URI of the VM and the internal IP address of one of the VM&#x27;s network interfaces.
622 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address on the VM to use for peering.
623 &quot;virtualMachine&quot;: &quot;A String&quot;, # The URI of the VM.
624 },
625 ],
626 &quot;siteToSiteDataTransfer&quot;: True or False, # A value that controls whether site-to-site data transfer is enabled for these resources. Data transfer is available only in [supported locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
627 &quot;vpcNetwork&quot;: &quot;A String&quot;, # Output only. The VPC network where these router appliance instances are located.
628 },
629 &quot;linkedVpcNetwork&quot;: { # An existing VPC network. # Optional. VPC network that is associated with the spoke.
630 &quot;excludeExportRanges&quot;: [ # Optional. IP ranges encompassing the subnets to be excluded from peering.
631 &quot;A String&quot;,
632 ],
633 &quot;includeExportRanges&quot;: [ # Optional. IP ranges allowed to be included from peering.
634 &quot;A String&quot;,
635 ],
636 &quot;producerVpcSpokes&quot;: [ # Output only. The list of Producer VPC spokes that this VPC spoke is a service consumer VPC spoke for. These producer VPCs are connected through VPC peering to this spoke&#x27;s backing VPC network. Because they are directly connected through VPC peering, NCC export filters do not apply between the service consumer VPC spoke and any of its producer VPC spokes. This VPC spoke cannot be deleted as long as any of these producer VPC spokes are connected to the NCC Hub.
637 &quot;A String&quot;,
638 ],
639 &quot;proposedExcludeExportRanges&quot;: [ # Output only. The proposed exclude export IP ranges waiting for hub administrator&#x27;s approval.
640 &quot;A String&quot;,
641 ],
642 &quot;proposedIncludeExportRanges&quot;: [ # Output only. The proposed include export IP ranges waiting for hub administrator&#x27;s approval.
643 &quot;A String&quot;,
644 ],
645 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the VPC network resource.
646 },
647 &quot;linkedVpnTunnels&quot;: { # A collection of Cloud VPN tunnel resources. These resources should be redundant HA VPN tunnels that all advertise the same prefixes to Google Cloud. Alternatively, in a passive/active configuration, all tunnels should be capable of advertising the same prefixes. # Optional. VPN tunnels that are associated with the spoke.
648 &quot;excludeExportRanges&quot;: [ # Optional. Dynamic routes overlapped/encompassed by exclude export ranges are excluded during export to hub.
649 &quot;A String&quot;,
650 ],
651 &quot;excludeImportRanges&quot;: [ # Optional. Hub routes overlapped/encompassed by exclude import ranges are excluded during import from hub.
652 &quot;A String&quot;,
653 ],
654 &quot;includeExportRanges&quot;: [ # Optional. Dynamic routes fully encompassed by include export ranges are included during export to hub.
655 &quot;A String&quot;,
656 ],
657 &quot;includeImportRanges&quot;: [ # Optional. Hub routes fully encompassed by include import ranges are included during import from hub.
658 &quot;A String&quot;,
659 ],
660 &quot;siteToSiteDataTransfer&quot;: True or False, # A value that controls whether site-to-site data transfer is enabled for these resources. Data transfer is available only in [supported locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
661 &quot;uris&quot;: [ # The URIs of linked VPN tunnel resources.
662 &quot;A String&quot;,
663 ],
664 &quot;vpcNetwork&quot;: &quot;A String&quot;, # Output only. The VPC network where these VPN tunnels are located.
665 },
666 &quot;name&quot;: &quot;A String&quot;, # Immutable. The name of the spoke. Spoke names must be unique. They use the following form: `projects/{project_number}/locations/{region}/spokes/{spoke_id}`
667 &quot;reasons&quot;: [ # Output only. The reasons for current state of the spoke.
668 { # The reason for the current state of the spoke.
669 &quot;code&quot;: &quot;A String&quot;, # The code associated with this reason.
670 &quot;message&quot;: &quot;A String&quot;, # Human-readable details about this reason.
671 &quot;userDetails&quot;: &quot;A String&quot;, # Additional information provided by the user in the RejectSpoke call.
672 },
673 ],
674 &quot;spokeType&quot;: &quot;A String&quot;, # Output only. The type of resource associated with the spoke.
675 &quot;state&quot;: &quot;A String&quot;, # Output only. The current lifecycle state of this spoke.
676 &quot;uniqueId&quot;: &quot;A String&quot;, # Output only. The Google-generated UUID for the spoke. This value is unique across all spoke resources. If a spoke is deleted and another with the same name is created, the new spoke is assigned a different `unique_id`.
677 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the spoke was last updated.
678 },
679 ],
680 &quot;unreachable&quot;: [ # Locations that could not be reached.
681 &quot;A String&quot;,
682 ],
683 }</pre>
684 </div>
685
686 <div class="method">
687 <code class="details" id="list_next">list_next()</code>
688 <pre>Retrieves the next page of results.
689
690 Args:
691 previous_request: The request for the previous page. (required)
692 previous_response: The response from the request for the previous page. (required)
693
694 Returns:
695 A request object that you can call &#x27;execute()&#x27; on to request the next
696 page. Returns None if there are no more items in the collection.
697 </pre>
698 </div>
699
700 <div class="method">
701 <code class="details" id="patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</code>
702 <pre>Updates the parameters of a Network Connectivity Center spoke.
703
704 Args:
705 name: string, Immutable. The name of the spoke. Spoke names must be unique. They use the following form: `projects/{project_number}/locations/{region}/spokes/{spoke_id}` (required)
706 body: object, The request body.
707 The object takes the form of:
708
709 { # A Network Connectivity Center spoke represents one or more network connectivity resources. When you create a spoke, you associate it with a hub. You must also identify a value for exactly one of the following fields: * linked_vpn_tunnels * linked_interconnect_attachments * linked_router_appliance_instances * linked_vpc_network
710 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the spoke was created.
711 &quot;description&quot;: &quot;A String&quot;, # Optional. An optional description of the spoke.
712 &quot;etag&quot;: &quot;A String&quot;, # Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
713 &quot;fieldPathsPendingUpdate&quot;: [ # Optional. The list of fields waiting for hub administrator&#x27;s approval.
714 &quot;A String&quot;,
715 ],
716 &quot;gateway&quot;: { # A gateway that can apply specialized traffic processing. # Optional. This is a gateway that can apply specialized processing to traffic going through it.
717 &quot;capacity&quot;: &quot;A String&quot;, # Optional. The aggregate processing capacity of this gateway.
718 &quot;cloudRouters&quot;: [ # Output only. The list of Cloud Routers that are connected to this gateway. Should be in the form: https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}
719 &quot;A String&quot;,
720 ],
721 &quot;ipRangeReservations&quot;: [ # Optional. A list of IP ranges that are reserved for this gateway&#x27;s internal intfrastructure.
722 { # A list of IP ranges that are reserved for this gateway&#x27;s internal intfrastructure.
723 &quot;ipRange&quot;: &quot;A String&quot;, # Required. A block of IP addresses used to allocate supporting infrastructure for this gateway. This block must not overlap with subnets in any spokes or peer VPC networks that the gateway can communicate with. Example: &quot;10.1.2.0/24&quot;
724 },
725 ],
726 &quot;sacAttachment&quot;: &quot;A String&quot;, # Output only. The URI of the connected SACAttachment. Should be in the form: projects/{project}/locations/{location}/sacAttachments/{sac_attachment}
727 },
728 &quot;group&quot;: &quot;A String&quot;, # Optional. The name of the group that this spoke is associated with.
729 &quot;hub&quot;: &quot;A String&quot;, # Immutable. The name of the hub that this spoke is attached to.
730 &quot;labels&quot;: { # Optional labels in key-value pair format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
731 &quot;a_key&quot;: &quot;A String&quot;,
732 },
733 &quot;linkedInterconnectAttachments&quot;: { # A collection of VLAN attachment resources. These resources should be redundant attachments that all advertise the same prefixes to Google Cloud. Alternatively, in active/passive configurations, all attachments should be capable of advertising the same prefixes. # Optional. VLAN attachments that are associated with the spoke.
734 &quot;excludeExportRanges&quot;: [ # Optional. Dynamic routes overlapped/encompassed by exclude export ranges are excluded during export to hub.
735 &quot;A String&quot;,
736 ],
737 &quot;excludeImportRanges&quot;: [ # Optional. Hub routes overlapped/encompassed by exclude import ranges are excluded during import from hub.
738 &quot;A String&quot;,
739 ],
740 &quot;includeExportRanges&quot;: [ # Optional. Dynamic routes fully encompassed by include export ranges are included during export to hub.
741 &quot;A String&quot;,
742 ],
743 &quot;includeImportRanges&quot;: [ # Optional. Hub routes fully encompassed by include import ranges are included during import from hub.
744 &quot;A String&quot;,
745 ],
746 &quot;siteToSiteDataTransfer&quot;: True or False, # A value that controls whether site-to-site data transfer is enabled for these resources. Data transfer is available only in [supported locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
747 &quot;uris&quot;: [ # The URIs of linked interconnect attachment resources
748 &quot;A String&quot;,
749 ],
750 &quot;vpcNetwork&quot;: &quot;A String&quot;, # Output only. The VPC network where these VLAN attachments are located.
751 },
752 &quot;linkedProducerVpcNetwork&quot;: { # Optional. The linked producer VPC that is associated with the spoke.
753 &quot;excludeExportRanges&quot;: [ # Optional. IP ranges encompassing the subnets to be excluded from peering.
754 &quot;A String&quot;,
755 ],
756 &quot;includeExportRanges&quot;: [ # Optional. IP ranges allowed to be included from peering.
757 &quot;A String&quot;,
758 ],
759 &quot;network&quot;: &quot;A String&quot;, # Immutable. The URI of the Service Consumer VPC that the Producer VPC is peered with.
760 &quot;peering&quot;: &quot;A String&quot;, # Immutable. The name of the VPC peering between the Service Consumer VPC and the Producer VPC (defined in the Tenant project) which is added to the NCC hub. This peering must be in ACTIVE state.
761 &quot;producerNetwork&quot;: &quot;A String&quot;, # Output only. The URI of the Producer VPC.
762 &quot;proposedExcludeExportRanges&quot;: [ # Output only. The proposed exclude export IP ranges waiting for hub administrator&#x27;s approval.
763 &quot;A String&quot;,
764 ],
765 &quot;proposedIncludeExportRanges&quot;: [ # Output only. The proposed include export IP ranges waiting for hub administrator&#x27;s approval.
766 &quot;A String&quot;,
767 ],
768 &quot;serviceConsumerVpcSpoke&quot;: &quot;A String&quot;, # Output only. The Service Consumer Network spoke.
769 },
770 &quot;linkedRouterApplianceInstances&quot;: { # A collection of router appliance instances. If you configure multiple router appliance instances to receive data from the same set of sites outside of Google Cloud, we recommend that you associate those instances with the same spoke. # Optional. Router appliance instances that are associated with the spoke.
771 &quot;excludeExportRanges&quot;: [ # Optional. Dynamic routes overlapped/encompassed by exclude export ranges are excluded during export to hub.
772 &quot;A String&quot;,
773 ],
774 &quot;excludeImportRanges&quot;: [ # Optional. Hub routes overlapped/encompassed by exclude import ranges are excluded during import from hub.
775 &quot;A String&quot;,
776 ],
777 &quot;includeExportRanges&quot;: [ # Optional. Dynamic routes fully encompassed by include export ranges are included during export to hub.
778 &quot;A String&quot;,
779 ],
780 &quot;includeImportRanges&quot;: [ # Optional. Hub routes fully encompassed by include import ranges are included during import from hub.
781 &quot;A String&quot;,
782 ],
783 &quot;instances&quot;: [ # The list of router appliance instances.
784 { # A router appliance instance is a Compute Engine virtual machine (VM) instance that acts as a BGP speaker. A router appliance instance is specified by the URI of the VM and the internal IP address of one of the VM&#x27;s network interfaces.
785 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address on the VM to use for peering.
786 &quot;virtualMachine&quot;: &quot;A String&quot;, # The URI of the VM.
787 },
788 ],
789 &quot;siteToSiteDataTransfer&quot;: True or False, # A value that controls whether site-to-site data transfer is enabled for these resources. Data transfer is available only in [supported locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
790 &quot;vpcNetwork&quot;: &quot;A String&quot;, # Output only. The VPC network where these router appliance instances are located.
791 },
792 &quot;linkedVpcNetwork&quot;: { # An existing VPC network. # Optional. VPC network that is associated with the spoke.
793 &quot;excludeExportRanges&quot;: [ # Optional. IP ranges encompassing the subnets to be excluded from peering.
794 &quot;A String&quot;,
795 ],
796 &quot;includeExportRanges&quot;: [ # Optional. IP ranges allowed to be included from peering.
797 &quot;A String&quot;,
798 ],
799 &quot;producerVpcSpokes&quot;: [ # Output only. The list of Producer VPC spokes that this VPC spoke is a service consumer VPC spoke for. These producer VPCs are connected through VPC peering to this spoke&#x27;s backing VPC network. Because they are directly connected through VPC peering, NCC export filters do not apply between the service consumer VPC spoke and any of its producer VPC spokes. This VPC spoke cannot be deleted as long as any of these producer VPC spokes are connected to the NCC Hub.
800 &quot;A String&quot;,
801 ],
802 &quot;proposedExcludeExportRanges&quot;: [ # Output only. The proposed exclude export IP ranges waiting for hub administrator&#x27;s approval.
803 &quot;A String&quot;,
804 ],
805 &quot;proposedIncludeExportRanges&quot;: [ # Output only. The proposed include export IP ranges waiting for hub administrator&#x27;s approval.
806 &quot;A String&quot;,
807 ],
808 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the VPC network resource.
809 },
810 &quot;linkedVpnTunnels&quot;: { # A collection of Cloud VPN tunnel resources. These resources should be redundant HA VPN tunnels that all advertise the same prefixes to Google Cloud. Alternatively, in a passive/active configuration, all tunnels should be capable of advertising the same prefixes. # Optional. VPN tunnels that are associated with the spoke.
811 &quot;excludeExportRanges&quot;: [ # Optional. Dynamic routes overlapped/encompassed by exclude export ranges are excluded during export to hub.
812 &quot;A String&quot;,
813 ],
814 &quot;excludeImportRanges&quot;: [ # Optional. Hub routes overlapped/encompassed by exclude import ranges are excluded during import from hub.
815 &quot;A String&quot;,
816 ],
817 &quot;includeExportRanges&quot;: [ # Optional. Dynamic routes fully encompassed by include export ranges are included during export to hub.
818 &quot;A String&quot;,
819 ],
820 &quot;includeImportRanges&quot;: [ # Optional. Hub routes fully encompassed by include import ranges are included during import from hub.
821 &quot;A String&quot;,
822 ],
823 &quot;siteToSiteDataTransfer&quot;: True or False, # A value that controls whether site-to-site data transfer is enabled for these resources. Data transfer is available only in [supported locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations).
824 &quot;uris&quot;: [ # The URIs of linked VPN tunnel resources.
825 &quot;A String&quot;,
826 ],
827 &quot;vpcNetwork&quot;: &quot;A String&quot;, # Output only. The VPC network where these VPN tunnels are located.
828 },
829 &quot;name&quot;: &quot;A String&quot;, # Immutable. The name of the spoke. Spoke names must be unique. They use the following form: `projects/{project_number}/locations/{region}/spokes/{spoke_id}`
830 &quot;reasons&quot;: [ # Output only. The reasons for current state of the spoke.
831 { # The reason for the current state of the spoke.
832 &quot;code&quot;: &quot;A String&quot;, # The code associated with this reason.
833 &quot;message&quot;: &quot;A String&quot;, # Human-readable details about this reason.
834 &quot;userDetails&quot;: &quot;A String&quot;, # Additional information provided by the user in the RejectSpoke call.
835 },
836 ],
837 &quot;spokeType&quot;: &quot;A String&quot;, # Output only. The type of resource associated with the spoke.
838 &quot;state&quot;: &quot;A String&quot;, # Output only. The current lifecycle state of this spoke.
839 &quot;uniqueId&quot;: &quot;A String&quot;, # Output only. The Google-generated UUID for the spoke. This value is unique across all spoke resources. If a spoke is deleted and another with the same name is created, the new spoke is assigned a different `unique_id`.
840 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the spoke was last updated.
841 }
842
843 requestId: string, Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that a request doesn&#x27;t result in creation of duplicate commitments for at least 60 minutes. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check to see whether the original operation was received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments. The request ID must be a valid UUID, with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
844 updateMask: string, Optional. In the case of an update to an existing spoke, field mask is used to specify the fields to be overwritten. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not provide a mask, then all fields are overwritten.
845 x__xgafv: string, V1 error format.
846 Allowed values
847 1 - v1 error format
848 2 - v2 error format
849
850 Returns:
851 An object of the form:
852
853 { # This resource represents a long-running operation that is the result of a network API call.
854 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
855 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
856 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
857 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
858 {
859 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
860 },
861 ],
862 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
863 },
864 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
865 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
866 },
867 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
868 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
869 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
870 },
871 }</pre>
872 </div>
873
874 <div class="method">
875 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
876 <pre>Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
877
878 Args:
879 resource: string, REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. (required)
880 body: object, The request body.
881 The object takes the form of:
882
883 { # Request message for `SetIamPolicy` method.
884 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot;, &quot;group:[email protected]&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:[email protected]&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } ``` **YAML example:** ``` bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). # REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services (such as Projects) might reject them.
885 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
886 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { &quot;audit_configs&quot;: [ { &quot;service&quot;: &quot;allServices&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:[email protected]&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; }, { &quot;log_type&quot;: &quot;ADMIN_READ&quot; } ] }, { &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot; }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, &quot;exempted_members&quot;: [ &quot;user:[email protected]&quot; ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `[email protected]` from DATA_READ logging, and `[email protected]` from DATA_WRITE logging.
887 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
888 { # Provides the configuration for logging a type of permissions. Example: { &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:[email protected]&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; } ] } This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting [email protected] from DATA_READ logging.
889 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
890 &quot;A String&quot;,
891 ],
892 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
893 },
894 ],
895 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
896 },
897 ],
898 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:[email protected]`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
899 { # Associates `members`, or principals, with a `role`.
900 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
901 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
902 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
903 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
904 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
905 },
906 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `[email protected]`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
907 &quot;A String&quot;,
908 ],
909 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).
910 },
911 ],
912 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
913 &quot;version&quot;: 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
914 },
915 &quot;updateMask&quot;: &quot;A String&quot;, # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: `paths: &quot;bindings, etag&quot;`
916 }
917
918 x__xgafv: string, V1 error format.
919 Allowed values
920 1 - v1 error format
921 2 - v2 error format
922
923 Returns:
924 An object of the form:
925
926 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot;, &quot;group:[email protected]&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:[email protected]&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } ``` **YAML example:** ``` bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
927 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
928 { # Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { &quot;audit_configs&quot;: [ { &quot;service&quot;: &quot;allServices&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:[email protected]&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; }, { &quot;log_type&quot;: &quot;ADMIN_READ&quot; } ] }, { &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;, &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot; }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot;, &quot;exempted_members&quot;: [ &quot;user:[email protected]&quot; ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `[email protected]` from DATA_READ logging, and `[email protected]` from DATA_WRITE logging.
929 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
930 { # Provides the configuration for logging a type of permissions. Example: { &quot;audit_log_configs&quot;: [ { &quot;log_type&quot;: &quot;DATA_READ&quot;, &quot;exempted_members&quot;: [ &quot;user:[email protected]&quot; ] }, { &quot;log_type&quot;: &quot;DATA_WRITE&quot; } ] } This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting [email protected] from DATA_READ logging.
931 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
932 &quot;A String&quot;,
933 ],
934 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
935 },
936 ],
937 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.
938 },
939 ],
940 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:[email protected]`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
941 { # Associates `members`, or principals, with a `role`.
942 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
943 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
944 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
945 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
946 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
947 },
948 &quot;members&quot;: [ # Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `[email protected]`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
949 &quot;A String&quot;,
950 ],
951 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).
952 },
953 ],
954 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
955 &quot;version&quot;: 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
956 }</pre>
957 </div>
958
959 <div class="method">
960 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
961 <pre>Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may &quot;fail open&quot; without warning.
962
963 Args:
964 resource: string, REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. (required)
965 body: object, The request body.
966 The object takes the form of:
967
968 { # Request message for `TestIamPermissions` method.
969 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
970 &quot;A String&quot;,
971 ],
972 }
973
974 x__xgafv: string, V1 error format.
975 Allowed values
976 1 - v1 error format
977 2 - v2 error format
978
979 Returns:
980 An object of the form:
981
982 { # Response message for `TestIamPermissions` method.
983 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
984 &quot;A String&quot;,
985 ],
986 }</pre>
987 </div>
988
989 </body></html>