Debian Codegraph @

docs/dyn/accesscontextmanager_v1.organizations.gcpUserAccessBindings.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="accesscontextmanager_v1.html">Access Context Manager API</a> . <a href="accesscontextmanager_v1.organizations.html">organizations</a> . <a href="accesscontextmanager_v1.organizations.gcpUserAccessBindings.html">gcpUserAccessBindings</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a GcpUserAccessBinding. If the client specifies a name, the server ignores it. Fails if a resource already exists with the same group_key. Completion of this long-running operation does not necessarily signify that the new binding is deployed onto all affected users, which may take more time.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes a GcpUserAccessBinding. Completion of this long-running operation does not necessarily signify that the binding deletion is deployed onto all affected users, which may take more time.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets the GcpUserAccessBinding with the given name.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Lists all GcpUserAccessBindings for a Google Cloud organization.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(name, append=None, body=None, updateMask=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Updates a GcpUserAccessBinding. Completion of this long-running operation does not necessarily signify that the changed binding is deployed onto all affected users, which may take more time.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102 </div>
103
104 <div class="method">
105 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
106 <pre>Creates a GcpUserAccessBinding. If the client specifies a name, the server ignores it. Fails if a resource already exists with the same group_key. Completion of this long-running operation does not necessarily signify that the new binding is deployed onto all affected users, which may take more time.
107
108 Args:
109 parent: string, Required. Example: &quot;organizations/256&quot; (required)
110 body: object, The request body.
111 The object takes the form of:
112
113 { # Restricts access to Cloud Console and Google Cloud APIs for a set of users using Context-Aware Access.
114 &quot;accessLevels&quot;: [ # Optional. Access level that a user must have to be granted access. Only one access level is supported, not multiple. This repeated field must have exactly one element. Example: &quot;accessPolicies/9522/accessLevels/device_trusted&quot;
115 &quot;A String&quot;,
116 ],
117 &quot;dryRunAccessLevels&quot;: [ # Optional. Dry run access level that will be evaluated but will not be enforced. The access denial based on dry run policy will be logged. Only one access level is supported, not multiple. This list must have exactly one element. Example: &quot;accessPolicies/9522/accessLevels/device_trusted&quot;
118 &quot;A String&quot;,
119 ],
120 &quot;groupKey&quot;: &quot;A String&quot;, # Optional. Immutable. Google Group id whose users are subject to this binding&#x27;s restrictions. See &quot;id&quot; in the [Google Workspace Directory API&#x27;s Group Resource] (https://developers.google.com/admin-sdk/directory/v1/reference/groups#resource). If a group&#x27;s email address/alias is changed, this resource will continue to point at the changed group. This field does not accept group email addresses or aliases. Example: &quot;01d520gv4vjcrht&quot;
121 &quot;name&quot;: &quot;A String&quot;, # Immutable. Assigned by the server during creation. The last segment has an arbitrary length and has only URI unreserved characters (as defined by [RFC 3986 Section 2.3](https://tools.ietf.org/html/rfc3986#section-2.3)). Should not be specified by the client during creation. Example: &quot;organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N&quot;
122 &quot;restrictedClientApplications&quot;: [ # Optional. A list of applications that are subject to this binding&#x27;s restrictions. If the list is empty, the binding restrictions will universally apply to all applications.
123 { # An application that accesses Google Cloud APIs.
124 &quot;clientId&quot;: &quot;A String&quot;, # The OAuth client ID of the application.
125 &quot;name&quot;: &quot;A String&quot;, # The name of the application. Example: &quot;Cloud Console&quot;
126 },
127 ],
128 &quot;scopedAccessSettings&quot;: [ # Optional. A list of scoped access settings that set this binding&#x27;s restrictions on a subset of applications. This field cannot be set if restricted_client_applications is set.
129 { # A relationship between access settings and its scope.
130 &quot;activeSettings&quot;: { # Access settings represent the set of conditions that must be met for access to be granted. At least one of the fields must be set. # Optional. Access settings for this scoped access settings. This field may be empty if dry_run_settings is set.
131 &quot;accessLevels&quot;: [ # Optional. Access level that a user must have to be granted access. Only one access level is supported, not multiple. This repeated field must have exactly one element. Example: &quot;accessPolicies/9522/accessLevels/device_trusted&quot;
132 &quot;A String&quot;,
133 ],
134 &quot;sessionSettings&quot;: { # Stores settings related to Google Cloud Session Length including session duration, the type of challenge (i.e. method) they should face when their session expires, and other related settings. # Optional. Session settings applied to user access on a given AccessScope.
135 &quot;maxInactivity&quot;: &quot;A String&quot;, # Optional. How long a user is allowed to take between actions before a new access token must be issued. Only set for Google Cloud apps.
136 &quot;sessionLength&quot;: &quot;A String&quot;, # Optional. The session length. Setting this field to zero is equal to disabling session. Also can set infinite session by flipping the enabled bit to false below. If use_oidc_max_age is true, for OIDC apps, the session length will be the minimum of this field and OIDC max_age param.
137 &quot;sessionLengthEnabled&quot;: True or False, # Optional. This field enables or disables Google Cloud session length. When false, all fields set above will be disregarded and the session length is basically infinite.
138 &quot;sessionReauthMethod&quot;: &quot;A String&quot;, # Optional. Session method when user&#x27;s Google Cloud session is up.
139 &quot;useOidcMaxAge&quot;: True or False, # Optional. Only useful for OIDC apps. When false, the OIDC max_age param, if passed in the authentication request will be ignored. When true, the re-auth period will be the minimum of the session_length field and the max_age OIDC param.
140 },
141 },
142 &quot;dryRunSettings&quot;: { # Access settings represent the set of conditions that must be met for access to be granted. At least one of the fields must be set. # Optional. Dry-run access settings for this scoped access settings. This field may be empty if active_settings is set.
143 &quot;accessLevels&quot;: [ # Optional. Access level that a user must have to be granted access. Only one access level is supported, not multiple. This repeated field must have exactly one element. Example: &quot;accessPolicies/9522/accessLevels/device_trusted&quot;
144 &quot;A String&quot;,
145 ],
146 &quot;sessionSettings&quot;: { # Stores settings related to Google Cloud Session Length including session duration, the type of challenge (i.e. method) they should face when their session expires, and other related settings. # Optional. Session settings applied to user access on a given AccessScope.
147 &quot;maxInactivity&quot;: &quot;A String&quot;, # Optional. How long a user is allowed to take between actions before a new access token must be issued. Only set for Google Cloud apps.
148 &quot;sessionLength&quot;: &quot;A String&quot;, # Optional. The session length. Setting this field to zero is equal to disabling session. Also can set infinite session by flipping the enabled bit to false below. If use_oidc_max_age is true, for OIDC apps, the session length will be the minimum of this field and OIDC max_age param.
149 &quot;sessionLengthEnabled&quot;: True or False, # Optional. This field enables or disables Google Cloud session length. When false, all fields set above will be disregarded and the session length is basically infinite.
150 &quot;sessionReauthMethod&quot;: &quot;A String&quot;, # Optional. Session method when user&#x27;s Google Cloud session is up.
151 &quot;useOidcMaxAge&quot;: True or False, # Optional. Only useful for OIDC apps. When false, the OIDC max_age param, if passed in the authentication request will be ignored. When true, the re-auth period will be the minimum of the session_length field and the max_age OIDC param.
152 },
153 },
154 &quot;scope&quot;: { # Access scope represents the client scope, etc. to which the settings will be applied to. # Optional. Application, etc. to which the access settings will be applied to. Implicitly, this is the scoped access settings key; as such, it must be unique and non-empty.
155 &quot;clientScope&quot;: { # Client scope represents the application, etc. subject to this binding&#x27;s restrictions. # Optional. Client scope for this access scope.
156 &quot;restrictedClientApplication&quot;: { # An application that accesses Google Cloud APIs. # Optional. The application that is subject to this binding&#x27;s scope.
157 &quot;clientId&quot;: &quot;A String&quot;, # The OAuth client ID of the application.
158 &quot;name&quot;: &quot;A String&quot;, # The name of the application. Example: &quot;Cloud Console&quot;
159 },
160 },
161 },
162 },
163 ],
164 &quot;sessionSettings&quot;: { # Stores settings related to Google Cloud Session Length including session duration, the type of challenge (i.e. method) they should face when their session expires, and other related settings. # Optional. The Google Cloud session length (GCSL) policy for the group key.
165 &quot;maxInactivity&quot;: &quot;A String&quot;, # Optional. How long a user is allowed to take between actions before a new access token must be issued. Only set for Google Cloud apps.
166 &quot;sessionLength&quot;: &quot;A String&quot;, # Optional. The session length. Setting this field to zero is equal to disabling session. Also can set infinite session by flipping the enabled bit to false below. If use_oidc_max_age is true, for OIDC apps, the session length will be the minimum of this field and OIDC max_age param.
167 &quot;sessionLengthEnabled&quot;: True or False, # Optional. This field enables or disables Google Cloud session length. When false, all fields set above will be disregarded and the session length is basically infinite.
168 &quot;sessionReauthMethod&quot;: &quot;A String&quot;, # Optional. Session method when user&#x27;s Google Cloud session is up.
169 &quot;useOidcMaxAge&quot;: True or False, # Optional. Only useful for OIDC apps. When false, the OIDC max_age param, if passed in the authentication request will be ignored. When true, the re-auth period will be the minimum of the session_length field and the max_age OIDC param.
170 },
171 }
172
173 x__xgafv: string, V1 error format.
174 Allowed values
175 1 - v1 error format
176 2 - v2 error format
177
178 Returns:
179 An object of the form:
180
181 { # This resource represents a long-running operation that is the result of a network API call.
182 &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.
183 &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.
184 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
185 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
186 {
187 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
188 },
189 ],
190 &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.
191 },
192 &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.
193 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
194 },
195 &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}`.
196 &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`.
197 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
198 },
199 }</pre>
200 </div>
201
202 <div class="method">
203 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
204 <pre>Deletes a GcpUserAccessBinding. Completion of this long-running operation does not necessarily signify that the binding deletion is deployed onto all affected users, which may take more time.
205
206 Args:
207 name: string, Required. Example: &quot;organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N&quot; (required)
208 x__xgafv: string, V1 error format.
209 Allowed values
210 1 - v1 error format
211 2 - v2 error format
212
213 Returns:
214 An object of the form:
215
216 { # This resource represents a long-running operation that is the result of a network API call.
217 &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.
218 &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.
219 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
220 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
221 {
222 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
223 },
224 ],
225 &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.
226 },
227 &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.
228 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
229 },
230 &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}`.
231 &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`.
232 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
233 },
234 }</pre>
235 </div>
236
237 <div class="method">
238 <code class="details" id="get">get(name, x__xgafv=None)</code>
239 <pre>Gets the GcpUserAccessBinding with the given name.
240
241 Args:
242 name: string, Required. Example: &quot;organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N&quot; (required)
243 x__xgafv: string, V1 error format.
244 Allowed values
245 1 - v1 error format
246 2 - v2 error format
247
248 Returns:
249 An object of the form:
250
251 { # Restricts access to Cloud Console and Google Cloud APIs for a set of users using Context-Aware Access.
252 &quot;accessLevels&quot;: [ # Optional. Access level that a user must have to be granted access. Only one access level is supported, not multiple. This repeated field must have exactly one element. Example: &quot;accessPolicies/9522/accessLevels/device_trusted&quot;
253 &quot;A String&quot;,
254 ],
255 &quot;dryRunAccessLevels&quot;: [ # Optional. Dry run access level that will be evaluated but will not be enforced. The access denial based on dry run policy will be logged. Only one access level is supported, not multiple. This list must have exactly one element. Example: &quot;accessPolicies/9522/accessLevels/device_trusted&quot;
256 &quot;A String&quot;,
257 ],
258 &quot;groupKey&quot;: &quot;A String&quot;, # Optional. Immutable. Google Group id whose users are subject to this binding&#x27;s restrictions. See &quot;id&quot; in the [Google Workspace Directory API&#x27;s Group Resource] (https://developers.google.com/admin-sdk/directory/v1/reference/groups#resource). If a group&#x27;s email address/alias is changed, this resource will continue to point at the changed group. This field does not accept group email addresses or aliases. Example: &quot;01d520gv4vjcrht&quot;
259 &quot;name&quot;: &quot;A String&quot;, # Immutable. Assigned by the server during creation. The last segment has an arbitrary length and has only URI unreserved characters (as defined by [RFC 3986 Section 2.3](https://tools.ietf.org/html/rfc3986#section-2.3)). Should not be specified by the client during creation. Example: &quot;organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N&quot;
260 &quot;restrictedClientApplications&quot;: [ # Optional. A list of applications that are subject to this binding&#x27;s restrictions. If the list is empty, the binding restrictions will universally apply to all applications.
261 { # An application that accesses Google Cloud APIs.
262 &quot;clientId&quot;: &quot;A String&quot;, # The OAuth client ID of the application.
263 &quot;name&quot;: &quot;A String&quot;, # The name of the application. Example: &quot;Cloud Console&quot;
264 },
265 ],
266 &quot;scopedAccessSettings&quot;: [ # Optional. A list of scoped access settings that set this binding&#x27;s restrictions on a subset of applications. This field cannot be set if restricted_client_applications is set.
267 { # A relationship between access settings and its scope.
268 &quot;activeSettings&quot;: { # Access settings represent the set of conditions that must be met for access to be granted. At least one of the fields must be set. # Optional. Access settings for this scoped access settings. This field may be empty if dry_run_settings is set.
269 &quot;accessLevels&quot;: [ # Optional. Access level that a user must have to be granted access. Only one access level is supported, not multiple. This repeated field must have exactly one element. Example: &quot;accessPolicies/9522/accessLevels/device_trusted&quot;
270 &quot;A String&quot;,
271 ],
272 &quot;sessionSettings&quot;: { # Stores settings related to Google Cloud Session Length including session duration, the type of challenge (i.e. method) they should face when their session expires, and other related settings. # Optional. Session settings applied to user access on a given AccessScope.
273 &quot;maxInactivity&quot;: &quot;A String&quot;, # Optional. How long a user is allowed to take between actions before a new access token must be issued. Only set for Google Cloud apps.
274 &quot;sessionLength&quot;: &quot;A String&quot;, # Optional. The session length. Setting this field to zero is equal to disabling session. Also can set infinite session by flipping the enabled bit to false below. If use_oidc_max_age is true, for OIDC apps, the session length will be the minimum of this field and OIDC max_age param.
275 &quot;sessionLengthEnabled&quot;: True or False, # Optional. This field enables or disables Google Cloud session length. When false, all fields set above will be disregarded and the session length is basically infinite.
276 &quot;sessionReauthMethod&quot;: &quot;A String&quot;, # Optional. Session method when user&#x27;s Google Cloud session is up.
277 &quot;useOidcMaxAge&quot;: True or False, # Optional. Only useful for OIDC apps. When false, the OIDC max_age param, if passed in the authentication request will be ignored. When true, the re-auth period will be the minimum of the session_length field and the max_age OIDC param.
278 },
279 },
280 &quot;dryRunSettings&quot;: { # Access settings represent the set of conditions that must be met for access to be granted. At least one of the fields must be set. # Optional. Dry-run access settings for this scoped access settings. This field may be empty if active_settings is set.
281 &quot;accessLevels&quot;: [ # Optional. Access level that a user must have to be granted access. Only one access level is supported, not multiple. This repeated field must have exactly one element. Example: &quot;accessPolicies/9522/accessLevels/device_trusted&quot;
282 &quot;A String&quot;,
283 ],
284 &quot;sessionSettings&quot;: { # Stores settings related to Google Cloud Session Length including session duration, the type of challenge (i.e. method) they should face when their session expires, and other related settings. # Optional. Session settings applied to user access on a given AccessScope.
285 &quot;maxInactivity&quot;: &quot;A String&quot;, # Optional. How long a user is allowed to take between actions before a new access token must be issued. Only set for Google Cloud apps.
286 &quot;sessionLength&quot;: &quot;A String&quot;, # Optional. The session length. Setting this field to zero is equal to disabling session. Also can set infinite session by flipping the enabled bit to false below. If use_oidc_max_age is true, for OIDC apps, the session length will be the minimum of this field and OIDC max_age param.
287 &quot;sessionLengthEnabled&quot;: True or False, # Optional. This field enables or disables Google Cloud session length. When false, all fields set above will be disregarded and the session length is basically infinite.
288 &quot;sessionReauthMethod&quot;: &quot;A String&quot;, # Optional. Session method when user&#x27;s Google Cloud session is up.
289 &quot;useOidcMaxAge&quot;: True or False, # Optional. Only useful for OIDC apps. When false, the OIDC max_age param, if passed in the authentication request will be ignored. When true, the re-auth period will be the minimum of the session_length field and the max_age OIDC param.
290 },
291 },
292 &quot;scope&quot;: { # Access scope represents the client scope, etc. to which the settings will be applied to. # Optional. Application, etc. to which the access settings will be applied to. Implicitly, this is the scoped access settings key; as such, it must be unique and non-empty.
293 &quot;clientScope&quot;: { # Client scope represents the application, etc. subject to this binding&#x27;s restrictions. # Optional. Client scope for this access scope.
294 &quot;restrictedClientApplication&quot;: { # An application that accesses Google Cloud APIs. # Optional. The application that is subject to this binding&#x27;s scope.
295 &quot;clientId&quot;: &quot;A String&quot;, # The OAuth client ID of the application.
296 &quot;name&quot;: &quot;A String&quot;, # The name of the application. Example: &quot;Cloud Console&quot;
297 },
298 },
299 },
300 },
301 ],
302 &quot;sessionSettings&quot;: { # Stores settings related to Google Cloud Session Length including session duration, the type of challenge (i.e. method) they should face when their session expires, and other related settings. # Optional. The Google Cloud session length (GCSL) policy for the group key.
303 &quot;maxInactivity&quot;: &quot;A String&quot;, # Optional. How long a user is allowed to take between actions before a new access token must be issued. Only set for Google Cloud apps.
304 &quot;sessionLength&quot;: &quot;A String&quot;, # Optional. The session length. Setting this field to zero is equal to disabling session. Also can set infinite session by flipping the enabled bit to false below. If use_oidc_max_age is true, for OIDC apps, the session length will be the minimum of this field and OIDC max_age param.
305 &quot;sessionLengthEnabled&quot;: True or False, # Optional. This field enables or disables Google Cloud session length. When false, all fields set above will be disregarded and the session length is basically infinite.
306 &quot;sessionReauthMethod&quot;: &quot;A String&quot;, # Optional. Session method when user&#x27;s Google Cloud session is up.
307 &quot;useOidcMaxAge&quot;: True or False, # Optional. Only useful for OIDC apps. When false, the OIDC max_age param, if passed in the authentication request will be ignored. When true, the re-auth period will be the minimum of the session_length field and the max_age OIDC param.
308 },
309 }</pre>
310 </div>
311
312 <div class="method">
313 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
314 <pre>Lists all GcpUserAccessBindings for a Google Cloud organization.
315
316 Args:
317 parent: string, Required. Example: &quot;organizations/256&quot; (required)
318 pageSize: integer, Optional. Maximum number of items to return. The server may return fewer items. If left blank, the server may return any number of items.
319 pageToken: string, Optional. If left blank, returns the first page. To enumerate all items, use the next_page_token from your previous list operation.
320 x__xgafv: string, V1 error format.
321 Allowed values
322 1 - v1 error format
323 2 - v2 error format
324
325 Returns:
326 An object of the form:
327
328 { # Response of ListGcpUserAccessBindings.
329 &quot;gcpUserAccessBindings&quot;: [ # GcpUserAccessBinding
330 { # Restricts access to Cloud Console and Google Cloud APIs for a set of users using Context-Aware Access.
331 &quot;accessLevels&quot;: [ # Optional. Access level that a user must have to be granted access. Only one access level is supported, not multiple. This repeated field must have exactly one element. Example: &quot;accessPolicies/9522/accessLevels/device_trusted&quot;
332 &quot;A String&quot;,
333 ],
334 &quot;dryRunAccessLevels&quot;: [ # Optional. Dry run access level that will be evaluated but will not be enforced. The access denial based on dry run policy will be logged. Only one access level is supported, not multiple. This list must have exactly one element. Example: &quot;accessPolicies/9522/accessLevels/device_trusted&quot;
335 &quot;A String&quot;,
336 ],
337 &quot;groupKey&quot;: &quot;A String&quot;, # Optional. Immutable. Google Group id whose users are subject to this binding&#x27;s restrictions. See &quot;id&quot; in the [Google Workspace Directory API&#x27;s Group Resource] (https://developers.google.com/admin-sdk/directory/v1/reference/groups#resource). If a group&#x27;s email address/alias is changed, this resource will continue to point at the changed group. This field does not accept group email addresses or aliases. Example: &quot;01d520gv4vjcrht&quot;
338 &quot;name&quot;: &quot;A String&quot;, # Immutable. Assigned by the server during creation. The last segment has an arbitrary length and has only URI unreserved characters (as defined by [RFC 3986 Section 2.3](https://tools.ietf.org/html/rfc3986#section-2.3)). Should not be specified by the client during creation. Example: &quot;organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N&quot;
339 &quot;restrictedClientApplications&quot;: [ # Optional. A list of applications that are subject to this binding&#x27;s restrictions. If the list is empty, the binding restrictions will universally apply to all applications.
340 { # An application that accesses Google Cloud APIs.
341 &quot;clientId&quot;: &quot;A String&quot;, # The OAuth client ID of the application.
342 &quot;name&quot;: &quot;A String&quot;, # The name of the application. Example: &quot;Cloud Console&quot;
343 },
344 ],
345 &quot;scopedAccessSettings&quot;: [ # Optional. A list of scoped access settings that set this binding&#x27;s restrictions on a subset of applications. This field cannot be set if restricted_client_applications is set.
346 { # A relationship between access settings and its scope.
347 &quot;activeSettings&quot;: { # Access settings represent the set of conditions that must be met for access to be granted. At least one of the fields must be set. # Optional. Access settings for this scoped access settings. This field may be empty if dry_run_settings is set.
348 &quot;accessLevels&quot;: [ # Optional. Access level that a user must have to be granted access. Only one access level is supported, not multiple. This repeated field must have exactly one element. Example: &quot;accessPolicies/9522/accessLevels/device_trusted&quot;
349 &quot;A String&quot;,
350 ],
351 &quot;sessionSettings&quot;: { # Stores settings related to Google Cloud Session Length including session duration, the type of challenge (i.e. method) they should face when their session expires, and other related settings. # Optional. Session settings applied to user access on a given AccessScope.
352 &quot;maxInactivity&quot;: &quot;A String&quot;, # Optional. How long a user is allowed to take between actions before a new access token must be issued. Only set for Google Cloud apps.
353 &quot;sessionLength&quot;: &quot;A String&quot;, # Optional. The session length. Setting this field to zero is equal to disabling session. Also can set infinite session by flipping the enabled bit to false below. If use_oidc_max_age is true, for OIDC apps, the session length will be the minimum of this field and OIDC max_age param.
354 &quot;sessionLengthEnabled&quot;: True or False, # Optional. This field enables or disables Google Cloud session length. When false, all fields set above will be disregarded and the session length is basically infinite.
355 &quot;sessionReauthMethod&quot;: &quot;A String&quot;, # Optional. Session method when user&#x27;s Google Cloud session is up.
356 &quot;useOidcMaxAge&quot;: True or False, # Optional. Only useful for OIDC apps. When false, the OIDC max_age param, if passed in the authentication request will be ignored. When true, the re-auth period will be the minimum of the session_length field and the max_age OIDC param.
357 },
358 },
359 &quot;dryRunSettings&quot;: { # Access settings represent the set of conditions that must be met for access to be granted. At least one of the fields must be set. # Optional. Dry-run access settings for this scoped access settings. This field may be empty if active_settings is set.
360 &quot;accessLevels&quot;: [ # Optional. Access level that a user must have to be granted access. Only one access level is supported, not multiple. This repeated field must have exactly one element. Example: &quot;accessPolicies/9522/accessLevels/device_trusted&quot;
361 &quot;A String&quot;,
362 ],
363 &quot;sessionSettings&quot;: { # Stores settings related to Google Cloud Session Length including session duration, the type of challenge (i.e. method) they should face when their session expires, and other related settings. # Optional. Session settings applied to user access on a given AccessScope.
364 &quot;maxInactivity&quot;: &quot;A String&quot;, # Optional. How long a user is allowed to take between actions before a new access token must be issued. Only set for Google Cloud apps.
365 &quot;sessionLength&quot;: &quot;A String&quot;, # Optional. The session length. Setting this field to zero is equal to disabling session. Also can set infinite session by flipping the enabled bit to false below. If use_oidc_max_age is true, for OIDC apps, the session length will be the minimum of this field and OIDC max_age param.
366 &quot;sessionLengthEnabled&quot;: True or False, # Optional. This field enables or disables Google Cloud session length. When false, all fields set above will be disregarded and the session length is basically infinite.
367 &quot;sessionReauthMethod&quot;: &quot;A String&quot;, # Optional. Session method when user&#x27;s Google Cloud session is up.
368 &quot;useOidcMaxAge&quot;: True or False, # Optional. Only useful for OIDC apps. When false, the OIDC max_age param, if passed in the authentication request will be ignored. When true, the re-auth period will be the minimum of the session_length field and the max_age OIDC param.
369 },
370 },
371 &quot;scope&quot;: { # Access scope represents the client scope, etc. to which the settings will be applied to. # Optional. Application, etc. to which the access settings will be applied to. Implicitly, this is the scoped access settings key; as such, it must be unique and non-empty.
372 &quot;clientScope&quot;: { # Client scope represents the application, etc. subject to this binding&#x27;s restrictions. # Optional. Client scope for this access scope.
373 &quot;restrictedClientApplication&quot;: { # An application that accesses Google Cloud APIs. # Optional. The application that is subject to this binding&#x27;s scope.
374 &quot;clientId&quot;: &quot;A String&quot;, # The OAuth client ID of the application.
375 &quot;name&quot;: &quot;A String&quot;, # The name of the application. Example: &quot;Cloud Console&quot;
376 },
377 },
378 },
379 },
380 ],
381 &quot;sessionSettings&quot;: { # Stores settings related to Google Cloud Session Length including session duration, the type of challenge (i.e. method) they should face when their session expires, and other related settings. # Optional. The Google Cloud session length (GCSL) policy for the group key.
382 &quot;maxInactivity&quot;: &quot;A String&quot;, # Optional. How long a user is allowed to take between actions before a new access token must be issued. Only set for Google Cloud apps.
383 &quot;sessionLength&quot;: &quot;A String&quot;, # Optional. The session length. Setting this field to zero is equal to disabling session. Also can set infinite session by flipping the enabled bit to false below. If use_oidc_max_age is true, for OIDC apps, the session length will be the minimum of this field and OIDC max_age param.
384 &quot;sessionLengthEnabled&quot;: True or False, # Optional. This field enables or disables Google Cloud session length. When false, all fields set above will be disregarded and the session length is basically infinite.
385 &quot;sessionReauthMethod&quot;: &quot;A String&quot;, # Optional. Session method when user&#x27;s Google Cloud session is up.
386 &quot;useOidcMaxAge&quot;: True or False, # Optional. Only useful for OIDC apps. When false, the OIDC max_age param, if passed in the authentication request will be ignored. When true, the re-auth period will be the minimum of the session_length field and the max_age OIDC param.
387 },
388 },
389 ],
390 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to get the next page of items. If blank, there are no more items.
391 }</pre>
392 </div>
393
394 <div class="method">
395 <code class="details" id="list_next">list_next()</code>
396 <pre>Retrieves the next page of results.
397
398 Args:
399 previous_request: The request for the previous page. (required)
400 previous_response: The response from the request for the previous page. (required)
401
402 Returns:
403 A request object that you can call &#x27;execute()&#x27; on to request the next
404 page. Returns None if there are no more items in the collection.
405 </pre>
406 </div>
407
408 <div class="method">
409 <code class="details" id="patch">patch(name, append=None, body=None, updateMask=None, x__xgafv=None)</code>
410 <pre>Updates a GcpUserAccessBinding. Completion of this long-running operation does not necessarily signify that the changed binding is deployed onto all affected users, which may take more time.
411
412 Args:
413 name: string, Immutable. Assigned by the server during creation. The last segment has an arbitrary length and has only URI unreserved characters (as defined by [RFC 3986 Section 2.3](https://tools.ietf.org/html/rfc3986#section-2.3)). Should not be specified by the client during creation. Example: &quot;organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N&quot; (required)
414 body: object, The request body.
415 The object takes the form of:
416
417 { # Restricts access to Cloud Console and Google Cloud APIs for a set of users using Context-Aware Access.
418 &quot;accessLevels&quot;: [ # Optional. Access level that a user must have to be granted access. Only one access level is supported, not multiple. This repeated field must have exactly one element. Example: &quot;accessPolicies/9522/accessLevels/device_trusted&quot;
419 &quot;A String&quot;,
420 ],
421 &quot;dryRunAccessLevels&quot;: [ # Optional. Dry run access level that will be evaluated but will not be enforced. The access denial based on dry run policy will be logged. Only one access level is supported, not multiple. This list must have exactly one element. Example: &quot;accessPolicies/9522/accessLevels/device_trusted&quot;
422 &quot;A String&quot;,
423 ],
424 &quot;groupKey&quot;: &quot;A String&quot;, # Optional. Immutable. Google Group id whose users are subject to this binding&#x27;s restrictions. See &quot;id&quot; in the [Google Workspace Directory API&#x27;s Group Resource] (https://developers.google.com/admin-sdk/directory/v1/reference/groups#resource). If a group&#x27;s email address/alias is changed, this resource will continue to point at the changed group. This field does not accept group email addresses or aliases. Example: &quot;01d520gv4vjcrht&quot;
425 &quot;name&quot;: &quot;A String&quot;, # Immutable. Assigned by the server during creation. The last segment has an arbitrary length and has only URI unreserved characters (as defined by [RFC 3986 Section 2.3](https://tools.ietf.org/html/rfc3986#section-2.3)). Should not be specified by the client during creation. Example: &quot;organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N&quot;
426 &quot;restrictedClientApplications&quot;: [ # Optional. A list of applications that are subject to this binding&#x27;s restrictions. If the list is empty, the binding restrictions will universally apply to all applications.
427 { # An application that accesses Google Cloud APIs.
428 &quot;clientId&quot;: &quot;A String&quot;, # The OAuth client ID of the application.
429 &quot;name&quot;: &quot;A String&quot;, # The name of the application. Example: &quot;Cloud Console&quot;
430 },
431 ],
432 &quot;scopedAccessSettings&quot;: [ # Optional. A list of scoped access settings that set this binding&#x27;s restrictions on a subset of applications. This field cannot be set if restricted_client_applications is set.
433 { # A relationship between access settings and its scope.
434 &quot;activeSettings&quot;: { # Access settings represent the set of conditions that must be met for access to be granted. At least one of the fields must be set. # Optional. Access settings for this scoped access settings. This field may be empty if dry_run_settings is set.
435 &quot;accessLevels&quot;: [ # Optional. Access level that a user must have to be granted access. Only one access level is supported, not multiple. This repeated field must have exactly one element. Example: &quot;accessPolicies/9522/accessLevels/device_trusted&quot;
436 &quot;A String&quot;,
437 ],
438 &quot;sessionSettings&quot;: { # Stores settings related to Google Cloud Session Length including session duration, the type of challenge (i.e. method) they should face when their session expires, and other related settings. # Optional. Session settings applied to user access on a given AccessScope.
439 &quot;maxInactivity&quot;: &quot;A String&quot;, # Optional. How long a user is allowed to take between actions before a new access token must be issued. Only set for Google Cloud apps.
440 &quot;sessionLength&quot;: &quot;A String&quot;, # Optional. The session length. Setting this field to zero is equal to disabling session. Also can set infinite session by flipping the enabled bit to false below. If use_oidc_max_age is true, for OIDC apps, the session length will be the minimum of this field and OIDC max_age param.
441 &quot;sessionLengthEnabled&quot;: True or False, # Optional. This field enables or disables Google Cloud session length. When false, all fields set above will be disregarded and the session length is basically infinite.
442 &quot;sessionReauthMethod&quot;: &quot;A String&quot;, # Optional. Session method when user&#x27;s Google Cloud session is up.
443 &quot;useOidcMaxAge&quot;: True or False, # Optional. Only useful for OIDC apps. When false, the OIDC max_age param, if passed in the authentication request will be ignored. When true, the re-auth period will be the minimum of the session_length field and the max_age OIDC param.
444 },
445 },
446 &quot;dryRunSettings&quot;: { # Access settings represent the set of conditions that must be met for access to be granted. At least one of the fields must be set. # Optional. Dry-run access settings for this scoped access settings. This field may be empty if active_settings is set.
447 &quot;accessLevels&quot;: [ # Optional. Access level that a user must have to be granted access. Only one access level is supported, not multiple. This repeated field must have exactly one element. Example: &quot;accessPolicies/9522/accessLevels/device_trusted&quot;
448 &quot;A String&quot;,
449 ],
450 &quot;sessionSettings&quot;: { # Stores settings related to Google Cloud Session Length including session duration, the type of challenge (i.e. method) they should face when their session expires, and other related settings. # Optional. Session settings applied to user access on a given AccessScope.
451 &quot;maxInactivity&quot;: &quot;A String&quot;, # Optional. How long a user is allowed to take between actions before a new access token must be issued. Only set for Google Cloud apps.
452 &quot;sessionLength&quot;: &quot;A String&quot;, # Optional. The session length. Setting this field to zero is equal to disabling session. Also can set infinite session by flipping the enabled bit to false below. If use_oidc_max_age is true, for OIDC apps, the session length will be the minimum of this field and OIDC max_age param.
453 &quot;sessionLengthEnabled&quot;: True or False, # Optional. This field enables or disables Google Cloud session length. When false, all fields set above will be disregarded and the session length is basically infinite.
454 &quot;sessionReauthMethod&quot;: &quot;A String&quot;, # Optional. Session method when user&#x27;s Google Cloud session is up.
455 &quot;useOidcMaxAge&quot;: True or False, # Optional. Only useful for OIDC apps. When false, the OIDC max_age param, if passed in the authentication request will be ignored. When true, the re-auth period will be the minimum of the session_length field and the max_age OIDC param.
456 },
457 },
458 &quot;scope&quot;: { # Access scope represents the client scope, etc. to which the settings will be applied to. # Optional. Application, etc. to which the access settings will be applied to. Implicitly, this is the scoped access settings key; as such, it must be unique and non-empty.
459 &quot;clientScope&quot;: { # Client scope represents the application, etc. subject to this binding&#x27;s restrictions. # Optional. Client scope for this access scope.
460 &quot;restrictedClientApplication&quot;: { # An application that accesses Google Cloud APIs. # Optional. The application that is subject to this binding&#x27;s scope.
461 &quot;clientId&quot;: &quot;A String&quot;, # The OAuth client ID of the application.
462 &quot;name&quot;: &quot;A String&quot;, # The name of the application. Example: &quot;Cloud Console&quot;
463 },
464 },
465 },
466 },
467 ],
468 &quot;sessionSettings&quot;: { # Stores settings related to Google Cloud Session Length including session duration, the type of challenge (i.e. method) they should face when their session expires, and other related settings. # Optional. The Google Cloud session length (GCSL) policy for the group key.
469 &quot;maxInactivity&quot;: &quot;A String&quot;, # Optional. How long a user is allowed to take between actions before a new access token must be issued. Only set for Google Cloud apps.
470 &quot;sessionLength&quot;: &quot;A String&quot;, # Optional. The session length. Setting this field to zero is equal to disabling session. Also can set infinite session by flipping the enabled bit to false below. If use_oidc_max_age is true, for OIDC apps, the session length will be the minimum of this field and OIDC max_age param.
471 &quot;sessionLengthEnabled&quot;: True or False, # Optional. This field enables or disables Google Cloud session length. When false, all fields set above will be disregarded and the session length is basically infinite.
472 &quot;sessionReauthMethod&quot;: &quot;A String&quot;, # Optional. Session method when user&#x27;s Google Cloud session is up.
473 &quot;useOidcMaxAge&quot;: True or False, # Optional. Only useful for OIDC apps. When false, the OIDC max_age param, if passed in the authentication request will be ignored. When true, the re-auth period will be the minimum of the session_length field and the max_age OIDC param.
474 },
475 }
476
477 append: boolean, Optional. This field controls whether or not certain repeated settings in the update request overwrite or append to existing settings on the binding. If true, then append. Otherwise overwrite. So far, only scoped_access_settings with session_settings supports appending. Global access_levels, access_levels in scoped_access_settings, dry_run_access_levels, and session_settings are not compatible with append functionality, and the request will return an error if append=true when these settings are in the update_mask. The request will also return an error if append=true when &quot;scoped_access_settings&quot; is not set in the update_mask.
478 updateMask: string, Required. Only the fields specified in this mask are updated. Because name and group_key cannot be changed, update_mask is required and may only contain the following fields: `access_levels`, `dry_run_access_levels`, `session_settings`, `scoped_access_settings`. update_mask { paths: &quot;access_levels&quot; }
479 x__xgafv: string, V1 error format.
480 Allowed values
481 1 - v1 error format
482 2 - v2 error format
483
484 Returns:
485 An object of the form:
486
487 { # This resource represents a long-running operation that is the result of a network API call.
488 &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.
489 &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.
490 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
491 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
492 {
493 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
494 },
495 ],
496 &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.
497 },
498 &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.
499 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
500 },
501 &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}`.
502 &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`.
503 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
504 },
505 }</pre>
506 </div>
507
508 </body></html>