Debian Codegraph @

docs/dyn/networkconnectivity_v1.projects.locations.global_.hubs.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.global_.html">global_</a> . <a href="networkconnectivity_v1.projects.locations.global_.hubs.html">hubs</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="networkconnectivity_v1.projects.locations.global_.hubs.groups.html">groups()</a></code>
79 </p>
80 <p class="firstline">Returns the groups Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="networkconnectivity_v1.projects.locations.global_.hubs.routeTables.html">routeTables()</a></code>
84 </p>
85 <p class="firstline">Returns the routeTables Resource.</p>
86
87 <p class="toc_element">
88 <code><a href="#acceptSpoke">acceptSpoke(name, body=None, x__xgafv=None)</a></code></p>
89 <p class="firstline">Accepts a proposal to attach a Network Connectivity Center spoke to a hub.</p>
90 <p class="toc_element">
91 <code><a href="#acceptSpokeUpdate">acceptSpokeUpdate(name, body=None, x__xgafv=None)</a></code></p>
92 <p class="firstline">Accepts a proposal to update a Network Connectivity Center spoke in a hub.</p>
93 <p class="toc_element">
94 <code><a href="#close">close()</a></code></p>
95 <p class="firstline">Close httplib2 connections.</p>
96 <p class="toc_element">
97 <code><a href="#create">create(parent, body=None, hubId=None, requestId=None, x__xgafv=None)</a></code></p>
98 <p class="firstline">Creates a new Network Connectivity Center hub in the specified project.</p>
99 <p class="toc_element">
100 <code><a href="#delete">delete(name, requestId=None, x__xgafv=None)</a></code></p>
101 <p class="firstline">Deletes a Network Connectivity Center hub.</p>
102 <p class="toc_element">
103 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
104 <p class="firstline">Gets details about a Network Connectivity Center hub.</p>
105 <p class="toc_element">
106 <code><a href="#getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</a></code></p>
107 <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>
108 <p class="toc_element">
109 <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
110 <p class="firstline">Lists the Network Connectivity Center hubs associated with a given project.</p>
111 <p class="toc_element">
112 <code><a href="#listSpokes">listSpokes(name, filter=None, orderBy=None, pageSize=None, pageToken=None, spokeLocations=None, view=None, x__xgafv=None)</a></code></p>
113 <p class="firstline">Lists the Network Connectivity Center spokes associated with a specified hub and location. The list includes both spokes that are attached to the hub and spokes that have been proposed but not yet accepted.</p>
114 <p class="toc_element">
115 <code><a href="#listSpokes_next">listSpokes_next()</a></code></p>
116 <p class="firstline">Retrieves the next page of results.</p>
117 <p class="toc_element">
118 <code><a href="#list_next">list_next()</a></code></p>
119 <p class="firstline">Retrieves the next page of results.</p>
120 <p class="toc_element">
121 <code><a href="#patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</a></code></p>
122 <p class="firstline">Updates the description and/or labels of a Network Connectivity Center hub.</p>
123 <p class="toc_element">
124 <code><a href="#queryStatus">queryStatus(name, filter=None, groupBy=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
125 <p class="firstline">Query the Private Service Connect propagation status of a Network Connectivity Center hub.</p>
126 <p class="toc_element">
127 <code><a href="#queryStatus_next">queryStatus_next()</a></code></p>
128 <p class="firstline">Retrieves the next page of results.</p>
129 <p class="toc_element">
130 <code><a href="#rejectSpoke">rejectSpoke(name, body=None, x__xgafv=None)</a></code></p>
131 <p class="firstline">Rejects a Network Connectivity Center spoke from being attached to a hub. If the spoke was previously in the `ACTIVE` state, it transitions to the `INACTIVE` state and is no longer able to connect to other spokes that are attached to the hub.</p>
132 <p class="toc_element">
133 <code><a href="#rejectSpokeUpdate">rejectSpokeUpdate(name, body=None, x__xgafv=None)</a></code></p>
134 <p class="firstline">Rejects a proposal to update a Network Connectivity Center spoke in a hub.</p>
135 <p class="toc_element">
136 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
137 <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>
138 <p class="toc_element">
139 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
140 <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>
141 <h3>Method Details</h3>
142 <div class="method">
143 <code class="details" id="acceptSpoke">acceptSpoke(name, body=None, x__xgafv=None)</code>
144 <pre>Accepts a proposal to attach a Network Connectivity Center spoke to a hub.
145
146 Args:
147 name: string, Required. The name of the hub into which to accept the spoke. (required)
148 body: object, The request body.
149 The object takes the form of:
150
151 { # The request for HubService.AcceptHubSpoke.
152 &quot;requestId&quot;: &quot;A String&quot;, # 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).
153 &quot;spokeUri&quot;: &quot;A String&quot;, # Required. The URI of the spoke to accept into the hub.
154 }
155
156 x__xgafv: string, V1 error format.
157 Allowed values
158 1 - v1 error format
159 2 - v2 error format
160
161 Returns:
162 An object of the form:
163
164 { # This resource represents a long-running operation that is the result of a network API call.
165 &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.
166 &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.
167 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
168 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
169 {
170 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
171 },
172 ],
173 &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.
174 },
175 &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.
176 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
177 },
178 &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}`.
179 &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`.
180 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
181 },
182 }</pre>
183 </div>
184
185 <div class="method">
186 <code class="details" id="acceptSpokeUpdate">acceptSpokeUpdate(name, body=None, x__xgafv=None)</code>
187 <pre>Accepts a proposal to update a Network Connectivity Center spoke in a hub.
188
189 Args:
190 name: string, Required. The name of the hub to accept spoke update. (required)
191 body: object, The request body.
192 The object takes the form of:
193
194 { # The request for HubService.AcceptSpokeUpdate.
195 &quot;requestId&quot;: &quot;A String&quot;, # 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).
196 &quot;spokeEtag&quot;: &quot;A String&quot;, # Required. The etag of the spoke to accept update.
197 &quot;spokeUri&quot;: &quot;A String&quot;, # Required. The URI of the spoke to accept update.
198 }
199
200 x__xgafv: string, V1 error format.
201 Allowed values
202 1 - v1 error format
203 2 - v2 error format
204
205 Returns:
206 An object of the form:
207
208 { # This resource represents a long-running operation that is the result of a network API call.
209 &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.
210 &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.
211 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
212 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
213 {
214 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
215 },
216 ],
217 &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.
218 },
219 &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.
220 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
221 },
222 &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}`.
223 &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`.
224 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
225 },
226 }</pre>
227 </div>
228
229 <div class="method">
230 <code class="details" id="close">close()</code>
231 <pre>Close httplib2 connections.</pre>
232 </div>
233
234 <div class="method">
235 <code class="details" id="create">create(parent, body=None, hubId=None, requestId=None, x__xgafv=None)</code>
236 <pre>Creates a new Network Connectivity Center hub in the specified project.
237
238 Args:
239 parent: string, Required. The parent resource. (required)
240 body: object, The request body.
241 The object takes the form of:
242
243 { # A Network Connectivity Center hub is a global management resource to which you attach spokes. A single hub can contain spokes from multiple regions. However, if any of a hub&#x27;s spokes use the site-to-site data transfer feature, the resources associated with those spokes must all be in the same VPC network. Spokes that do not use site-to-site data transfer can be associated with any VPC network in your project.
244 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the hub was created.
245 &quot;description&quot;: &quot;A String&quot;, # Optional. An optional description of the hub.
246 &quot;exportPsc&quot;: True or False, # Optional. Whether Private Service Connect connection propagation is enabled for the hub. If true, Private Service Connect endpoints in VPC spokes attached to the hub are made accessible to other VPC spokes attached to the hub. The default value is false.
247 &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).
248 &quot;a_key&quot;: &quot;A String&quot;,
249 },
250 &quot;name&quot;: &quot;A String&quot;, # Immutable. The name of the hub. Hub names must be unique. They use the following form: `projects/{project_number}/locations/global/hubs/{hub_id}`
251 &quot;policyMode&quot;: &quot;A String&quot;, # Optional. The policy mode of this hub. This field can be either PRESET or CUSTOM. If unspecified, the policy_mode defaults to PRESET.
252 &quot;presetTopology&quot;: &quot;A String&quot;, # Optional. The topology implemented in this hub. Currently, this field is only used when policy_mode = PRESET. The available preset topologies are MESH and STAR. If preset_topology is unspecified and policy_mode = PRESET, the preset_topology defaults to MESH. When policy_mode = CUSTOM, the preset_topology is set to PRESET_TOPOLOGY_UNSPECIFIED.
253 &quot;routeTables&quot;: [ # Output only. The route tables that belong to this hub. They use the following form: `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}` This field is read-only. Network Connectivity Center automatically populates it based on the route tables nested under the hub.
254 &quot;A String&quot;,
255 ],
256 &quot;routingVpcs&quot;: [ # Output only. The VPC networks associated with this hub&#x27;s spokes. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
257 { # RoutingVPC contains information about the VPC networks associated with the spokes of a Network Connectivity Center hub.
258 &quot;requiredForNewSiteToSiteDataTransferSpokes&quot;: True or False, # Output only. If true, indicates that this VPC network is currently associated with spokes that use the data transfer feature (spokes where the site_to_site_data_transfer field is set to true). If you create new spokes that use data transfer, they must be associated with this VPC network. At most, one VPC network will have this field set to true.
259 &quot;uri&quot;: &quot;A String&quot;, # The URI of the VPC network.
260 },
261 ],
262 &quot;spokeSummary&quot;: { # Summarizes information about the spokes associated with a hub. The summary includes a count of spokes according to type and according to state. If any spokes are inactive, the summary also lists the reasons they are inactive, including a count for each reason. # Output only. A summary of the spokes associated with a hub. The summary includes a count of spokes according to type and according to state. If any spokes are inactive, the summary also lists the reasons they are inactive, including a count for each reason.
263 &quot;spokeStateCounts&quot;: [ # Output only. Counts the number of spokes that are in each state and associated with a given hub.
264 { # The number of spokes that are in a particular state and associated with a given hub.
265 &quot;count&quot;: &quot;A String&quot;, # Output only. The total number of spokes that are in this state and associated with a given hub.
266 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the spokes.
267 },
268 ],
269 &quot;spokeStateReasonCounts&quot;: [ # Output only. Counts the number of spokes that are inactive for each possible reason and associated with a given hub.
270 { # The number of spokes in the hub that are inactive for this reason.
271 &quot;count&quot;: &quot;A String&quot;, # Output only. The total number of spokes that are inactive for a particular reason and associated with a given hub.
272 &quot;stateReasonCode&quot;: &quot;A String&quot;, # Output only. The reason that a spoke is inactive.
273 },
274 ],
275 &quot;spokeTypeCounts&quot;: [ # Output only. Counts the number of spokes of each type that are associated with a specific hub.
276 { # The number of spokes of a given type that are associated with a specific hub. The type indicates what kind of resource is associated with the spoke.
277 &quot;count&quot;: &quot;A String&quot;, # Output only. The total number of spokes of this type that are associated with the hub.
278 &quot;spokeType&quot;: &quot;A String&quot;, # Output only. The type of the spokes.
279 },
280 ],
281 },
282 &quot;state&quot;: &quot;A String&quot;, # Output only. The current lifecycle state of this hub.
283 &quot;uniqueId&quot;: &quot;A String&quot;, # Output only. The Google-generated UUID for the hub. This value is unique across all hub resources. If a hub is deleted and another with the same name is created, the new hub is assigned a different unique_id.
284 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the hub was last updated.
285 }
286
287 hubId: string, Required. A unique identifier for the hub.
288 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).
289 x__xgafv: string, V1 error format.
290 Allowed values
291 1 - v1 error format
292 2 - v2 error format
293
294 Returns:
295 An object of the form:
296
297 { # This resource represents a long-running operation that is the result of a network API call.
298 &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.
299 &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.
300 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
301 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
302 {
303 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
304 },
305 ],
306 &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.
307 },
308 &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.
309 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
310 },
311 &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}`.
312 &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`.
313 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
314 },
315 }</pre>
316 </div>
317
318 <div class="method">
319 <code class="details" id="delete">delete(name, requestId=None, x__xgafv=None)</code>
320 <pre>Deletes a Network Connectivity Center hub.
321
322 Args:
323 name: string, Required. The name of the hub to delete. (required)
324 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).
325 x__xgafv: string, V1 error format.
326 Allowed values
327 1 - v1 error format
328 2 - v2 error format
329
330 Returns:
331 An object of the form:
332
333 { # This resource represents a long-running operation that is the result of a network API call.
334 &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.
335 &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.
336 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
337 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
338 {
339 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
340 },
341 ],
342 &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.
343 },
344 &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.
345 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
346 },
347 &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}`.
348 &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`.
349 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
350 },
351 }</pre>
352 </div>
353
354 <div class="method">
355 <code class="details" id="get">get(name, x__xgafv=None)</code>
356 <pre>Gets details about a Network Connectivity Center hub.
357
358 Args:
359 name: string, Required. The name of the hub resource to get. (required)
360 x__xgafv: string, V1 error format.
361 Allowed values
362 1 - v1 error format
363 2 - v2 error format
364
365 Returns:
366 An object of the form:
367
368 { # A Network Connectivity Center hub is a global management resource to which you attach spokes. A single hub can contain spokes from multiple regions. However, if any of a hub&#x27;s spokes use the site-to-site data transfer feature, the resources associated with those spokes must all be in the same VPC network. Spokes that do not use site-to-site data transfer can be associated with any VPC network in your project.
369 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the hub was created.
370 &quot;description&quot;: &quot;A String&quot;, # Optional. An optional description of the hub.
371 &quot;exportPsc&quot;: True or False, # Optional. Whether Private Service Connect connection propagation is enabled for the hub. If true, Private Service Connect endpoints in VPC spokes attached to the hub are made accessible to other VPC spokes attached to the hub. The default value is false.
372 &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).
373 &quot;a_key&quot;: &quot;A String&quot;,
374 },
375 &quot;name&quot;: &quot;A String&quot;, # Immutable. The name of the hub. Hub names must be unique. They use the following form: `projects/{project_number}/locations/global/hubs/{hub_id}`
376 &quot;policyMode&quot;: &quot;A String&quot;, # Optional. The policy mode of this hub. This field can be either PRESET or CUSTOM. If unspecified, the policy_mode defaults to PRESET.
377 &quot;presetTopology&quot;: &quot;A String&quot;, # Optional. The topology implemented in this hub. Currently, this field is only used when policy_mode = PRESET. The available preset topologies are MESH and STAR. If preset_topology is unspecified and policy_mode = PRESET, the preset_topology defaults to MESH. When policy_mode = CUSTOM, the preset_topology is set to PRESET_TOPOLOGY_UNSPECIFIED.
378 &quot;routeTables&quot;: [ # Output only. The route tables that belong to this hub. They use the following form: `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}` This field is read-only. Network Connectivity Center automatically populates it based on the route tables nested under the hub.
379 &quot;A String&quot;,
380 ],
381 &quot;routingVpcs&quot;: [ # Output only. The VPC networks associated with this hub&#x27;s spokes. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
382 { # RoutingVPC contains information about the VPC networks associated with the spokes of a Network Connectivity Center hub.
383 &quot;requiredForNewSiteToSiteDataTransferSpokes&quot;: True or False, # Output only. If true, indicates that this VPC network is currently associated with spokes that use the data transfer feature (spokes where the site_to_site_data_transfer field is set to true). If you create new spokes that use data transfer, they must be associated with this VPC network. At most, one VPC network will have this field set to true.
384 &quot;uri&quot;: &quot;A String&quot;, # The URI of the VPC network.
385 },
386 ],
387 &quot;spokeSummary&quot;: { # Summarizes information about the spokes associated with a hub. The summary includes a count of spokes according to type and according to state. If any spokes are inactive, the summary also lists the reasons they are inactive, including a count for each reason. # Output only. A summary of the spokes associated with a hub. The summary includes a count of spokes according to type and according to state. If any spokes are inactive, the summary also lists the reasons they are inactive, including a count for each reason.
388 &quot;spokeStateCounts&quot;: [ # Output only. Counts the number of spokes that are in each state and associated with a given hub.
389 { # The number of spokes that are in a particular state and associated with a given hub.
390 &quot;count&quot;: &quot;A String&quot;, # Output only. The total number of spokes that are in this state and associated with a given hub.
391 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the spokes.
392 },
393 ],
394 &quot;spokeStateReasonCounts&quot;: [ # Output only. Counts the number of spokes that are inactive for each possible reason and associated with a given hub.
395 { # The number of spokes in the hub that are inactive for this reason.
396 &quot;count&quot;: &quot;A String&quot;, # Output only. The total number of spokes that are inactive for a particular reason and associated with a given hub.
397 &quot;stateReasonCode&quot;: &quot;A String&quot;, # Output only. The reason that a spoke is inactive.
398 },
399 ],
400 &quot;spokeTypeCounts&quot;: [ # Output only. Counts the number of spokes of each type that are associated with a specific hub.
401 { # The number of spokes of a given type that are associated with a specific hub. The type indicates what kind of resource is associated with the spoke.
402 &quot;count&quot;: &quot;A String&quot;, # Output only. The total number of spokes of this type that are associated with the hub.
403 &quot;spokeType&quot;: &quot;A String&quot;, # Output only. The type of the spokes.
404 },
405 ],
406 },
407 &quot;state&quot;: &quot;A String&quot;, # Output only. The current lifecycle state of this hub.
408 &quot;uniqueId&quot;: &quot;A String&quot;, # Output only. The Google-generated UUID for the hub. This value is unique across all hub resources. If a hub is deleted and another with the same name is created, the new hub is assigned a different unique_id.
409 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the hub was last updated.
410 }</pre>
411 </div>
412
413 <div class="method">
414 <code class="details" id="getIamPolicy">getIamPolicy(resource, options_requestedPolicyVersion=None, x__xgafv=None)</code>
415 <pre>Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
416
417 Args:
418 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)
419 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).
420 x__xgafv: string, V1 error format.
421 Allowed values
422 1 - v1 error format
423 2 - v2 error format
424
425 Returns:
426 An object of the form:
427
428 { # 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/).
429 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
430 { # 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.
431 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
432 { # 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.
433 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
434 &quot;A String&quot;,
435 ],
436 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
437 },
438 ],
439 &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.
440 },
441 ],
442 &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`.
443 { # Associates `members`, or principals, with a `role`.
444 &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).
445 &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.
446 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
447 &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.
448 &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.
449 },
450 &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`.
451 &quot;A String&quot;,
452 ],
453 &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).
454 },
455 ],
456 &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.
457 &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).
458 }</pre>
459 </div>
460
461 <div class="method">
462 <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
463 <pre>Lists the Network Connectivity Center hubs associated with a given project.
464
465 Args:
466 parent: string, Required. The parent resource&#x27;s name. (required)
467 filter: string, An expression that filters the list of results.
468 orderBy: string, Sort the results by a certain order.
469 pageSize: integer, The maximum number of results per page to return.
470 pageToken: string, The page token.
471 x__xgafv: string, V1 error format.
472 Allowed values
473 1 - v1 error format
474 2 - v2 error format
475
476 Returns:
477 An object of the form:
478
479 { # Response for HubService.ListHubs method.
480 &quot;hubs&quot;: [ # The requested hubs.
481 { # A Network Connectivity Center hub is a global management resource to which you attach spokes. A single hub can contain spokes from multiple regions. However, if any of a hub&#x27;s spokes use the site-to-site data transfer feature, the resources associated with those spokes must all be in the same VPC network. Spokes that do not use site-to-site data transfer can be associated with any VPC network in your project.
482 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the hub was created.
483 &quot;description&quot;: &quot;A String&quot;, # Optional. An optional description of the hub.
484 &quot;exportPsc&quot;: True or False, # Optional. Whether Private Service Connect connection propagation is enabled for the hub. If true, Private Service Connect endpoints in VPC spokes attached to the hub are made accessible to other VPC spokes attached to the hub. The default value is false.
485 &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).
486 &quot;a_key&quot;: &quot;A String&quot;,
487 },
488 &quot;name&quot;: &quot;A String&quot;, # Immutable. The name of the hub. Hub names must be unique. They use the following form: `projects/{project_number}/locations/global/hubs/{hub_id}`
489 &quot;policyMode&quot;: &quot;A String&quot;, # Optional. The policy mode of this hub. This field can be either PRESET or CUSTOM. If unspecified, the policy_mode defaults to PRESET.
490 &quot;presetTopology&quot;: &quot;A String&quot;, # Optional. The topology implemented in this hub. Currently, this field is only used when policy_mode = PRESET. The available preset topologies are MESH and STAR. If preset_topology is unspecified and policy_mode = PRESET, the preset_topology defaults to MESH. When policy_mode = CUSTOM, the preset_topology is set to PRESET_TOPOLOGY_UNSPECIFIED.
491 &quot;routeTables&quot;: [ # Output only. The route tables that belong to this hub. They use the following form: `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}` This field is read-only. Network Connectivity Center automatically populates it based on the route tables nested under the hub.
492 &quot;A String&quot;,
493 ],
494 &quot;routingVpcs&quot;: [ # Output only. The VPC networks associated with this hub&#x27;s spokes. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
495 { # RoutingVPC contains information about the VPC networks associated with the spokes of a Network Connectivity Center hub.
496 &quot;requiredForNewSiteToSiteDataTransferSpokes&quot;: True or False, # Output only. If true, indicates that this VPC network is currently associated with spokes that use the data transfer feature (spokes where the site_to_site_data_transfer field is set to true). If you create new spokes that use data transfer, they must be associated with this VPC network. At most, one VPC network will have this field set to true.
497 &quot;uri&quot;: &quot;A String&quot;, # The URI of the VPC network.
498 },
499 ],
500 &quot;spokeSummary&quot;: { # Summarizes information about the spokes associated with a hub. The summary includes a count of spokes according to type and according to state. If any spokes are inactive, the summary also lists the reasons they are inactive, including a count for each reason. # Output only. A summary of the spokes associated with a hub. The summary includes a count of spokes according to type and according to state. If any spokes are inactive, the summary also lists the reasons they are inactive, including a count for each reason.
501 &quot;spokeStateCounts&quot;: [ # Output only. Counts the number of spokes that are in each state and associated with a given hub.
502 { # The number of spokes that are in a particular state and associated with a given hub.
503 &quot;count&quot;: &quot;A String&quot;, # Output only. The total number of spokes that are in this state and associated with a given hub.
504 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the spokes.
505 },
506 ],
507 &quot;spokeStateReasonCounts&quot;: [ # Output only. Counts the number of spokes that are inactive for each possible reason and associated with a given hub.
508 { # The number of spokes in the hub that are inactive for this reason.
509 &quot;count&quot;: &quot;A String&quot;, # Output only. The total number of spokes that are inactive for a particular reason and associated with a given hub.
510 &quot;stateReasonCode&quot;: &quot;A String&quot;, # Output only. The reason that a spoke is inactive.
511 },
512 ],
513 &quot;spokeTypeCounts&quot;: [ # Output only. Counts the number of spokes of each type that are associated with a specific hub.
514 { # The number of spokes of a given type that are associated with a specific hub. The type indicates what kind of resource is associated with the spoke.
515 &quot;count&quot;: &quot;A String&quot;, # Output only. The total number of spokes of this type that are associated with the hub.
516 &quot;spokeType&quot;: &quot;A String&quot;, # Output only. The type of the spokes.
517 },
518 ],
519 },
520 &quot;state&quot;: &quot;A String&quot;, # Output only. The current lifecycle state of this hub.
521 &quot;uniqueId&quot;: &quot;A String&quot;, # Output only. The Google-generated UUID for the hub. This value is unique across all hub resources. If a hub is deleted and another with the same name is created, the new hub is assigned a different unique_id.
522 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the hub was last updated.
523 },
524 ],
525 &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.
526 &quot;unreachable&quot;: [ # Locations that could not be reached.
527 &quot;A String&quot;,
528 ],
529 }</pre>
530 </div>
531
532 <div class="method">
533 <code class="details" id="listSpokes">listSpokes(name, filter=None, orderBy=None, pageSize=None, pageToken=None, spokeLocations=None, view=None, x__xgafv=None)</code>
534 <pre>Lists the Network Connectivity Center spokes associated with a specified hub and location. The list includes both spokes that are attached to the hub and spokes that have been proposed but not yet accepted.
535
536 Args:
537 name: string, Required. The name of the hub. (required)
538 filter: string, An expression that filters the list of results.
539 orderBy: string, Sort the results by name or create_time.
540 pageSize: integer, The maximum number of results to return per page.
541 pageToken: string, The page token.
542 spokeLocations: string, A list of locations. Specify one of the following: `[global]`, a single region (for example, `[us-central1]`), or a combination of values (for example, `[global, us-central1, us-west1]`). If the spoke_locations field is populated, the list of results includes only spokes in the specified location. If the spoke_locations field is not populated, the list of results includes spokes in all locations. (repeated)
543 view: string, The view of the spoke to return. The view that you use determines which spoke fields are included in the response.
544 Allowed values
545 SPOKE_VIEW_UNSPECIFIED - The spoke view is unspecified. When the spoke view is unspecified, the API returns the same fields as the `BASIC` view.
546 BASIC - Includes `name`, `create_time`, `hub`, `unique_id`, `state`, `reasons`, and `spoke_type`. This is the default value.
547 DETAILED - Includes all spoke fields except `labels`. You can use the `DETAILED` view only when you set the `spoke_locations` field to `[global]`.
548 x__xgafv: string, V1 error format.
549 Allowed values
550 1 - v1 error format
551 2 - v2 error format
552
553 Returns:
554 An object of the form:
555
556 { # The response for HubService.ListHubSpokes.
557 &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.
558 &quot;spokes&quot;: [ # The requested spokes. The spoke fields can be partially populated based on the `view` field in the request message.
559 { # 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
560 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the spoke was created.
561 &quot;description&quot;: &quot;A String&quot;, # Optional. An optional description of the spoke.
562 &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.
563 &quot;fieldPathsPendingUpdate&quot;: [ # Optional. The list of fields waiting for hub administrator&#x27;s approval.
564 &quot;A String&quot;,
565 ],
566 &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.
567 &quot;capacity&quot;: &quot;A String&quot;, # Optional. The aggregate processing capacity of this gateway.
568 &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}
569 &quot;A String&quot;,
570 ],
571 &quot;ipRangeReservations&quot;: [ # Optional. A list of IP ranges that are reserved for this gateway&#x27;s internal intfrastructure.
572 { # A list of IP ranges that are reserved for this gateway&#x27;s internal intfrastructure.
573 &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;
574 },
575 ],
576 &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}
577 },
578 &quot;group&quot;: &quot;A String&quot;, # Optional. The name of the group that this spoke is associated with.
579 &quot;hub&quot;: &quot;A String&quot;, # Immutable. The name of the hub that this spoke is attached to.
580 &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).
581 &quot;a_key&quot;: &quot;A String&quot;,
582 },
583 &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.
584 &quot;excludeExportRanges&quot;: [ # Optional. Dynamic routes overlapped/encompassed by exclude export ranges are excluded during export to hub.
585 &quot;A String&quot;,
586 ],
587 &quot;excludeImportRanges&quot;: [ # Optional. Hub routes overlapped/encompassed by exclude import ranges are excluded during import from hub.
588 &quot;A String&quot;,
589 ],
590 &quot;includeExportRanges&quot;: [ # Optional. Dynamic routes fully encompassed by include export ranges are included during export to hub.
591 &quot;A String&quot;,
592 ],
593 &quot;includeImportRanges&quot;: [ # Optional. Hub routes fully encompassed by include import ranges are included during import from hub.
594 &quot;A String&quot;,
595 ],
596 &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).
597 &quot;uris&quot;: [ # The URIs of linked interconnect attachment resources
598 &quot;A String&quot;,
599 ],
600 &quot;vpcNetwork&quot;: &quot;A String&quot;, # Output only. The VPC network where these VLAN attachments are located.
601 },
602 &quot;linkedProducerVpcNetwork&quot;: { # Optional. The linked producer VPC that is associated with the spoke.
603 &quot;excludeExportRanges&quot;: [ # Optional. IP ranges encompassing the subnets to be excluded from peering.
604 &quot;A String&quot;,
605 ],
606 &quot;includeExportRanges&quot;: [ # Optional. IP ranges allowed to be included from peering.
607 &quot;A String&quot;,
608 ],
609 &quot;network&quot;: &quot;A String&quot;, # Immutable. The URI of the Service Consumer VPC that the Producer VPC is peered with.
610 &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.
611 &quot;producerNetwork&quot;: &quot;A String&quot;, # Output only. The URI of the Producer VPC.
612 &quot;proposedExcludeExportRanges&quot;: [ # Output only. The proposed exclude export IP ranges waiting for hub administrator&#x27;s approval.
613 &quot;A String&quot;,
614 ],
615 &quot;proposedIncludeExportRanges&quot;: [ # Output only. The proposed include export IP ranges waiting for hub administrator&#x27;s approval.
616 &quot;A String&quot;,
617 ],
618 &quot;serviceConsumerVpcSpoke&quot;: &quot;A String&quot;, # Output only. The Service Consumer Network spoke.
619 },
620 &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.
621 &quot;excludeExportRanges&quot;: [ # Optional. Dynamic routes overlapped/encompassed by exclude export ranges are excluded during export to hub.
622 &quot;A String&quot;,
623 ],
624 &quot;excludeImportRanges&quot;: [ # Optional. Hub routes overlapped/encompassed by exclude import ranges are excluded during import from hub.
625 &quot;A String&quot;,
626 ],
627 &quot;includeExportRanges&quot;: [ # Optional. Dynamic routes fully encompassed by include export ranges are included during export to hub.
628 &quot;A String&quot;,
629 ],
630 &quot;includeImportRanges&quot;: [ # Optional. Hub routes fully encompassed by include import ranges are included during import from hub.
631 &quot;A String&quot;,
632 ],
633 &quot;instances&quot;: [ # The list of router appliance instances.
634 { # 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.
635 &quot;ipAddress&quot;: &quot;A String&quot;, # The IP address on the VM to use for peering.
636 &quot;virtualMachine&quot;: &quot;A String&quot;, # The URI of the VM.
637 },
638 ],
639 &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).
640 &quot;vpcNetwork&quot;: &quot;A String&quot;, # Output only. The VPC network where these router appliance instances are located.
641 },
642 &quot;linkedVpcNetwork&quot;: { # An existing VPC network. # Optional. VPC network that is associated with the spoke.
643 &quot;excludeExportRanges&quot;: [ # Optional. IP ranges encompassing the subnets to be excluded from peering.
644 &quot;A String&quot;,
645 ],
646 &quot;includeExportRanges&quot;: [ # Optional. IP ranges allowed to be included from peering.
647 &quot;A String&quot;,
648 ],
649 &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.
650 &quot;A String&quot;,
651 ],
652 &quot;proposedExcludeExportRanges&quot;: [ # Output only. The proposed exclude export IP ranges waiting for hub administrator&#x27;s approval.
653 &quot;A String&quot;,
654 ],
655 &quot;proposedIncludeExportRanges&quot;: [ # Output only. The proposed include export IP ranges waiting for hub administrator&#x27;s approval.
656 &quot;A String&quot;,
657 ],
658 &quot;uri&quot;: &quot;A String&quot;, # Required. The URI of the VPC network resource.
659 },
660 &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.
661 &quot;excludeExportRanges&quot;: [ # Optional. Dynamic routes overlapped/encompassed by exclude export ranges are excluded during export to hub.
662 &quot;A String&quot;,
663 ],
664 &quot;excludeImportRanges&quot;: [ # Optional. Hub routes overlapped/encompassed by exclude import ranges are excluded during import from hub.
665 &quot;A String&quot;,
666 ],
667 &quot;includeExportRanges&quot;: [ # Optional. Dynamic routes fully encompassed by include export ranges are included during export to hub.
668 &quot;A String&quot;,
669 ],
670 &quot;includeImportRanges&quot;: [ # Optional. Hub routes fully encompassed by include import ranges are included during import from hub.
671 &quot;A String&quot;,
672 ],
673 &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).
674 &quot;uris&quot;: [ # The URIs of linked VPN tunnel resources.
675 &quot;A String&quot;,
676 ],
677 &quot;vpcNetwork&quot;: &quot;A String&quot;, # Output only. The VPC network where these VPN tunnels are located.
678 },
679 &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}`
680 &quot;reasons&quot;: [ # Output only. The reasons for current state of the spoke.
681 { # The reason for the current state of the spoke.
682 &quot;code&quot;: &quot;A String&quot;, # The code associated with this reason.
683 &quot;message&quot;: &quot;A String&quot;, # Human-readable details about this reason.
684 &quot;userDetails&quot;: &quot;A String&quot;, # Additional information provided by the user in the RejectSpoke call.
685 },
686 ],
687 &quot;spokeType&quot;: &quot;A String&quot;, # Output only. The type of resource associated with the spoke.
688 &quot;state&quot;: &quot;A String&quot;, # Output only. The current lifecycle state of this spoke.
689 &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`.
690 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the spoke was last updated.
691 },
692 ],
693 &quot;unreachable&quot;: [ # Locations that could not be reached.
694 &quot;A String&quot;,
695 ],
696 }</pre>
697 </div>
698
699 <div class="method">
700 <code class="details" id="listSpokes_next">listSpokes_next()</code>
701 <pre>Retrieves the next page of results.
702
703 Args:
704 previous_request: The request for the previous page. (required)
705 previous_response: The response from the request for the previous page. (required)
706
707 Returns:
708 A request object that you can call &#x27;execute()&#x27; on to request the next
709 page. Returns None if there are no more items in the collection.
710 </pre>
711 </div>
712
713 <div class="method">
714 <code class="details" id="list_next">list_next()</code>
715 <pre>Retrieves the next page of results.
716
717 Args:
718 previous_request: The request for the previous page. (required)
719 previous_response: The response from the request for the previous page. (required)
720
721 Returns:
722 A request object that you can call &#x27;execute()&#x27; on to request the next
723 page. Returns None if there are no more items in the collection.
724 </pre>
725 </div>
726
727 <div class="method">
728 <code class="details" id="patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</code>
729 <pre>Updates the description and/or labels of a Network Connectivity Center hub.
730
731 Args:
732 name: string, Immutable. The name of the hub. Hub names must be unique. They use the following form: `projects/{project_number}/locations/global/hubs/{hub_id}` (required)
733 body: object, The request body.
734 The object takes the form of:
735
736 { # A Network Connectivity Center hub is a global management resource to which you attach spokes. A single hub can contain spokes from multiple regions. However, if any of a hub&#x27;s spokes use the site-to-site data transfer feature, the resources associated with those spokes must all be in the same VPC network. Spokes that do not use site-to-site data transfer can be associated with any VPC network in your project.
737 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time the hub was created.
738 &quot;description&quot;: &quot;A String&quot;, # Optional. An optional description of the hub.
739 &quot;exportPsc&quot;: True or False, # Optional. Whether Private Service Connect connection propagation is enabled for the hub. If true, Private Service Connect endpoints in VPC spokes attached to the hub are made accessible to other VPC spokes attached to the hub. The default value is false.
740 &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).
741 &quot;a_key&quot;: &quot;A String&quot;,
742 },
743 &quot;name&quot;: &quot;A String&quot;, # Immutable. The name of the hub. Hub names must be unique. They use the following form: `projects/{project_number}/locations/global/hubs/{hub_id}`
744 &quot;policyMode&quot;: &quot;A String&quot;, # Optional. The policy mode of this hub. This field can be either PRESET or CUSTOM. If unspecified, the policy_mode defaults to PRESET.
745 &quot;presetTopology&quot;: &quot;A String&quot;, # Optional. The topology implemented in this hub. Currently, this field is only used when policy_mode = PRESET. The available preset topologies are MESH and STAR. If preset_topology is unspecified and policy_mode = PRESET, the preset_topology defaults to MESH. When policy_mode = CUSTOM, the preset_topology is set to PRESET_TOPOLOGY_UNSPECIFIED.
746 &quot;routeTables&quot;: [ # Output only. The route tables that belong to this hub. They use the following form: `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}` This field is read-only. Network Connectivity Center automatically populates it based on the route tables nested under the hub.
747 &quot;A String&quot;,
748 ],
749 &quot;routingVpcs&quot;: [ # Output only. The VPC networks associated with this hub&#x27;s spokes. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub.
750 { # RoutingVPC contains information about the VPC networks associated with the spokes of a Network Connectivity Center hub.
751 &quot;requiredForNewSiteToSiteDataTransferSpokes&quot;: True or False, # Output only. If true, indicates that this VPC network is currently associated with spokes that use the data transfer feature (spokes where the site_to_site_data_transfer field is set to true). If you create new spokes that use data transfer, they must be associated with this VPC network. At most, one VPC network will have this field set to true.
752 &quot;uri&quot;: &quot;A String&quot;, # The URI of the VPC network.
753 },
754 ],
755 &quot;spokeSummary&quot;: { # Summarizes information about the spokes associated with a hub. The summary includes a count of spokes according to type and according to state. If any spokes are inactive, the summary also lists the reasons they are inactive, including a count for each reason. # Output only. A summary of the spokes associated with a hub. The summary includes a count of spokes according to type and according to state. If any spokes are inactive, the summary also lists the reasons they are inactive, including a count for each reason.
756 &quot;spokeStateCounts&quot;: [ # Output only. Counts the number of spokes that are in each state and associated with a given hub.
757 { # The number of spokes that are in a particular state and associated with a given hub.
758 &quot;count&quot;: &quot;A String&quot;, # Output only. The total number of spokes that are in this state and associated with a given hub.
759 &quot;state&quot;: &quot;A String&quot;, # Output only. The state of the spokes.
760 },
761 ],
762 &quot;spokeStateReasonCounts&quot;: [ # Output only. Counts the number of spokes that are inactive for each possible reason and associated with a given hub.
763 { # The number of spokes in the hub that are inactive for this reason.
764 &quot;count&quot;: &quot;A String&quot;, # Output only. The total number of spokes that are inactive for a particular reason and associated with a given hub.
765 &quot;stateReasonCode&quot;: &quot;A String&quot;, # Output only. The reason that a spoke is inactive.
766 },
767 ],
768 &quot;spokeTypeCounts&quot;: [ # Output only. Counts the number of spokes of each type that are associated with a specific hub.
769 { # The number of spokes of a given type that are associated with a specific hub. The type indicates what kind of resource is associated with the spoke.
770 &quot;count&quot;: &quot;A String&quot;, # Output only. The total number of spokes of this type that are associated with the hub.
771 &quot;spokeType&quot;: &quot;A String&quot;, # Output only. The type of the spokes.
772 },
773 ],
774 },
775 &quot;state&quot;: &quot;A String&quot;, # Output only. The current lifecycle state of this hub.
776 &quot;uniqueId&quot;: &quot;A String&quot;, # Output only. The Google-generated UUID for the hub. This value is unique across all hub resources. If a hub is deleted and another with the same name is created, the new hub is assigned a different unique_id.
777 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time the hub was last updated.
778 }
779
780 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).
781 updateMask: string, Optional. In the case of an update to an existing hub, 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.
782 x__xgafv: string, V1 error format.
783 Allowed values
784 1 - v1 error format
785 2 - v2 error format
786
787 Returns:
788 An object of the form:
789
790 { # This resource represents a long-running operation that is the result of a network API call.
791 &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.
792 &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.
793 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
794 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
795 {
796 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
797 },
798 ],
799 &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.
800 },
801 &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.
802 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
803 },
804 &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}`.
805 &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`.
806 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
807 },
808 }</pre>
809 </div>
810
811 <div class="method">
812 <code class="details" id="queryStatus">queryStatus(name, filter=None, groupBy=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
813 <pre>Query the Private Service Connect propagation status of a Network Connectivity Center hub.
814
815 Args:
816 name: string, Required. The name of the hub. (required)
817 filter: string, Optional. An expression that filters the list of results. The filter can be used to filter the results by the following fields: * `psc_propagation_status.source_spoke` * `psc_propagation_status.source_group` * `psc_propagation_status.source_forwarding_rule` * `psc_propagation_status.target_spoke` * `psc_propagation_status.target_group` * `psc_propagation_status.code` * `psc_propagation_status.message`
818 groupBy: string, Optional. Aggregate the results by the specified fields. A comma-separated list of any of these fields: * `psc_propagation_status.source_spoke` * `psc_propagation_status.source_group` * `psc_propagation_status.source_forwarding_rule` * `psc_propagation_status.target_spoke` * `psc_propagation_status.target_group` * `psc_propagation_status.code`
819 orderBy: string, Optional. Sort the results in ascending order by the specified fields. A comma-separated list of any of these fields: * `psc_propagation_status.source_spoke` * `psc_propagation_status.source_group` * `psc_propagation_status.source_forwarding_rule` * `psc_propagation_status.target_spoke` * `psc_propagation_status.target_group` * `psc_propagation_status.code` If `group_by` is set, the value of the `order_by` field must be the same as or a subset of the `group_by` field.
820 pageSize: integer, Optional. The maximum number of results to return per page.
821 pageToken: string, Optional. The page token.
822 x__xgafv: string, V1 error format.
823 Allowed values
824 1 - v1 error format
825 2 - v2 error format
826
827 Returns:
828 An object of the form:
829
830 { # The response for HubService.QueryHubStatus.
831 &quot;hubStatusEntries&quot;: [ # The list of hub status.
832 { # A hub status entry represents the status of a set of propagated Private Service Connect connections grouped by certain fields.
833 &quot;count&quot;: 42, # The number of propagated Private Service Connect connections with this status. If the `group_by` field was not set in the request message, the value of this field is 1.
834 &quot;groupBy&quot;: &quot;A String&quot;, # The fields that this entry is grouped by. This has the same value as the `group_by` field in the request message.
835 &quot;pscPropagationStatus&quot;: { # The status of one or more propagated Private Service Connect connections in a hub. # The Private Service Connect propagation status.
836 &quot;code&quot;: &quot;A String&quot;, # The propagation status.
837 &quot;message&quot;: &quot;A String&quot;, # The human-readable summary of the Private Service Connect connection propagation status.
838 &quot;sourceForwardingRule&quot;: &quot;A String&quot;, # The name of the forwarding rule exported to the hub.
839 &quot;sourceGroup&quot;: &quot;A String&quot;, # The name of the group that the source spoke belongs to.
840 &quot;sourceSpoke&quot;: &quot;A String&quot;, # The name of the spoke that the source forwarding rule belongs to.
841 &quot;targetGroup&quot;: &quot;A String&quot;, # The name of the group that the target spoke belongs to.
842 &quot;targetSpoke&quot;: &quot;A String&quot;, # The name of the spoke that the source forwarding rule propagates to.
843 },
844 },
845 ],
846 &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.
847 }</pre>
848 </div>
849
850 <div class="method">
851 <code class="details" id="queryStatus_next">queryStatus_next()</code>
852 <pre>Retrieves the next page of results.
853
854 Args:
855 previous_request: The request for the previous page. (required)
856 previous_response: The response from the request for the previous page. (required)
857
858 Returns:
859 A request object that you can call &#x27;execute()&#x27; on to request the next
860 page. Returns None if there are no more items in the collection.
861 </pre>
862 </div>
863
864 <div class="method">
865 <code class="details" id="rejectSpoke">rejectSpoke(name, body=None, x__xgafv=None)</code>
866 <pre>Rejects a Network Connectivity Center spoke from being attached to a hub. If the spoke was previously in the `ACTIVE` state, it transitions to the `INACTIVE` state and is no longer able to connect to other spokes that are attached to the hub.
867
868 Args:
869 name: string, Required. The name of the hub from which to reject the spoke. (required)
870 body: object, The request body.
871 The object takes the form of:
872
873 { # The request for HubService.RejectHubSpoke.
874 &quot;details&quot;: &quot;A String&quot;, # Optional. Additional information provided by the hub administrator.
875 &quot;requestId&quot;: &quot;A String&quot;, # 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).
876 &quot;spokeUri&quot;: &quot;A String&quot;, # Required. The URI of the spoke to reject from the hub.
877 }
878
879 x__xgafv: string, V1 error format.
880 Allowed values
881 1 - v1 error format
882 2 - v2 error format
883
884 Returns:
885 An object of the form:
886
887 { # This resource represents a long-running operation that is the result of a network API call.
888 &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.
889 &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.
890 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
891 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
892 {
893 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
894 },
895 ],
896 &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.
897 },
898 &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.
899 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
900 },
901 &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}`.
902 &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`.
903 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
904 },
905 }</pre>
906 </div>
907
908 <div class="method">
909 <code class="details" id="rejectSpokeUpdate">rejectSpokeUpdate(name, body=None, x__xgafv=None)</code>
910 <pre>Rejects a proposal to update a Network Connectivity Center spoke in a hub.
911
912 Args:
913 name: string, Required. The name of the hub to reject spoke update. (required)
914 body: object, The request body.
915 The object takes the form of:
916
917 { # The request for HubService.RejectSpokeUpdate.
918 &quot;details&quot;: &quot;A String&quot;, # Optional. Additional information provided by the hub administrator.
919 &quot;requestId&quot;: &quot;A String&quot;, # 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).
920 &quot;spokeEtag&quot;: &quot;A String&quot;, # Required. The etag of the spoke to reject update.
921 &quot;spokeUri&quot;: &quot;A String&quot;, # Required. The URI of the spoke to reject update.
922 }
923
924 x__xgafv: string, V1 error format.
925 Allowed values
926 1 - v1 error format
927 2 - v2 error format
928
929 Returns:
930 An object of the form:
931
932 { # This resource represents a long-running operation that is the result of a network API call.
933 &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.
934 &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.
935 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
936 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
937 {
938 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
939 },
940 ],
941 &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.
942 },
943 &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.
944 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
945 },
946 &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}`.
947 &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`.
948 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
949 },
950 }</pre>
951 </div>
952
953 <div class="method">
954 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
955 <pre>Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
956
957 Args:
958 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)
959 body: object, The request body.
960 The object takes the form of:
961
962 { # Request message for `SetIamPolicy` method.
963 &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.
964 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
965 { # 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.
966 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
967 { # 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.
968 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
969 &quot;A String&quot;,
970 ],
971 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
972 },
973 ],
974 &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.
975 },
976 ],
977 &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`.
978 { # Associates `members`, or principals, with a `role`.
979 &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).
980 &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.
981 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
982 &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.
983 &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.
984 },
985 &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`.
986 &quot;A String&quot;,
987 ],
988 &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).
989 },
990 ],
991 &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.
992 &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).
993 },
994 &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;`
995 }
996
997 x__xgafv: string, V1 error format.
998 Allowed values
999 1 - v1 error format
1000 2 - v2 error format
1001
1002 Returns:
1003 An object of the form:
1004
1005 { # 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/).
1006 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
1007 { # 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.
1008 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
1009 { # 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.
1010 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
1011 &quot;A String&quot;,
1012 ],
1013 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
1014 },
1015 ],
1016 &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.
1017 },
1018 ],
1019 &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`.
1020 { # Associates `members`, or principals, with a `role`.
1021 &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).
1022 &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.
1023 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1024 &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.
1025 &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.
1026 },
1027 &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`.
1028 &quot;A String&quot;,
1029 ],
1030 &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).
1031 },
1032 ],
1033 &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.
1034 &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).
1035 }</pre>
1036 </div>
1037
1038 <div class="method">
1039 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
1040 <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.
1041
1042 Args:
1043 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)
1044 body: object, The request body.
1045 The object takes the form of:
1046
1047 { # Request message for `TestIamPermissions` method.
1048 &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).
1049 &quot;A String&quot;,
1050 ],
1051 }
1052
1053 x__xgafv: string, V1 error format.
1054 Allowed values
1055 1 - v1 error format
1056 2 - v2 error format
1057
1058 Returns:
1059 An object of the form:
1060
1061 { # Response message for `TestIamPermissions` method.
1062 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1063 &quot;A String&quot;,
1064 ],
1065 }</pre>
1066 </div>
1067
1068 </body></html>