@maxim_mazurok/gapi.client.accesscontextmanager-v1 0.0.20240831 → 0.0.20240908

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +39 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://accesscontextmanager.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20240831
12
+ // Revision: 20240908
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -53,6 +53,16 @@ declare namespace gapi.client {
53
53
  /** Required. Human readable title. Does not affect behavior. */
54
54
  title?: string;
55
55
  }
56
+ interface AccessScope {
57
+ /** Optional. Client scope for this access scope. */
58
+ clientScope?: ClientScope;
59
+ }
60
+ interface AccessSettings {
61
+ /** 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: "accessPolicies/9522/accessLevels/device_trusted" */
62
+ accessLevels?: string[];
63
+ /** Optional. Reauth settings applied to user access on a given AccessScope. */
64
+ reauthSettings?: ReauthSettings;
65
+ }
56
66
  interface ApiOperation {
57
67
  /** API methods or permissions to allow. Method or permission must belong to the service specified by `service_name` field. A single MethodSelector entry with `*` specified for the `method` field will allow all methods AND permissions for the service specified in `service_name`. */
58
68
  methodSelectors?: MethodSelector[];
@@ -104,6 +114,10 @@ declare namespace gapi.client {
104
114
  role?: string;
105
115
  }
106
116
  interface CancelOperationRequest {}
117
+ interface ClientScope {
118
+ /** Optional. The application that is subject to this binding's scope. */
119
+ restrictedClientApplication?: Application;
120
+ }
107
121
  interface CommitServicePerimetersRequest {
108
122
  /** Optional. The etag for the version of the Access Policy that this commit operation is to be performed on. If, at the time of commit, the etag for the Access Policy stored in Access Context Manager is different from the specified etag, then the commit operation will not be performed and the call will fail. This field is not required. If etag is not provided, the operation will be performed as if a valid etag is provided. */
109
123
  etag?: string;
@@ -194,8 +208,12 @@ declare namespace gapi.client {
194
208
  groupKey?: string;
195
209
  /** 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: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N" */
196
210
  name?: string;
211
+ /** Optional. GCSL policy for the group key. */
212
+ reauthSettings?: ReauthSettings;
197
213
  /** Optional. A list of applications that are subject to this binding's restrictions. If the list is empty, the binding restrictions will universally apply to all applications. */
198
214
  restrictedClientApplications?: Application[];
215
+ /** Optional. A list of scoped access settings that set this binding's restrictions on a subset of applications. This field cannot be set if restricted_client_applications is set. */
216
+ scopedAccessSettings?: ScopedAccessSettings[];
199
217
  }
200
218
  interface GcpUserAccessBindingOperationMetadata {}
201
219
  interface GetIamPolicyRequest {
@@ -310,6 +328,18 @@ declare namespace gapi.client {
310
328
  /** 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). */
311
329
  version?: number;
312
330
  }
331
+ interface ReauthSettings {
332
+ /** Optional. How long a user is allowed to take between actions before a new access token must be issued. Presently only set for Cloud Apps. */
333
+ maxInactivity?: string;
334
+ /** Optional. Reauth method when users GCP session is up. */
335
+ reauthMethod?: string;
336
+ /** Optional. The session length. Setting this field to zero is equal to disabling. Reauth. 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. */
337
+ sessionLength?: string;
338
+ /** Optional. Big red button to turn off GCSL. When false, all fields set above will be disregarded and the session length is basically infinite. */
339
+ sessionLengthEnabled?: boolean;
340
+ /** 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. */
341
+ useOidcMaxAge?: boolean;
342
+ }
313
343
  interface ReplaceAccessLevelsRequest {
314
344
  /** Required. The desired Access Levels that should replace all existing Access Levels in the Access Policy. */
315
345
  accessLevels?: AccessLevel[];
@@ -330,6 +360,14 @@ declare namespace gapi.client {
330
360
  /** List of the Service Perimeter instances. */
331
361
  servicePerimeters?: ServicePerimeter[];
332
362
  }
363
+ interface ScopedAccessSettings {
364
+ /** Optional. Access settings for this scoped access settings. This field may be empty if dry_run_settings is set. */
365
+ activeSettings?: AccessSettings;
366
+ /** Optional. Dry-run access settings for this scoped access settings. This field may be empty if active_settings is set. */
367
+ dryRunSettings?: AccessSettings;
368
+ /** 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. */
369
+ scope?: AccessScope;
370
+ }
333
371
  interface ServicePerimeter {
334
372
  /** Description of the `ServicePerimeter` and its use. Does not affect behavior. */
335
373
  description?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.accesscontextmanager-v1",
3
- "version": "0.0.20240831",
3
+ "version": "0.0.20240908",
4
4
  "description": "TypeScript typings for Access Context Manager API v1",
5
5
  "repository": {
6
6
  "type": "git",