@maxim_mazurok/gapi.client.accesscontextmanager-v1 0.4.20260809 → 0.4.20260827
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.
- package/index.d.ts +98 -8
- package/package.json +1 -1
- package/readme.md +14 -0
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:
|
|
12
|
+
// Revision: 20260827
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -131,7 +131,7 @@ declare namespace gapi.client {
|
|
|
131
131
|
interface ClientScope {
|
|
132
132
|
/** Optional. The application that is subject to this binding's scope. */
|
|
133
133
|
restrictedClientApplication?: Application;
|
|
134
|
-
/** Optional. The
|
|
134
|
+
/** Optional. The Google Cloud project that is subject to this binding's scope. */
|
|
135
135
|
restrictedProject?: Project;
|
|
136
136
|
}
|
|
137
137
|
interface CommitServicePerimetersRequest {
|
|
@@ -246,9 +246,7 @@ declare namespace gapi.client {
|
|
|
246
246
|
name?: string;
|
|
247
247
|
/** Optional. Immutable. The principal that is subject to the access policies in this policy binding. */
|
|
248
248
|
principal?: Principal;
|
|
249
|
-
/** Optional.
|
|
250
|
-
restrictedClientApplications?: Application[];
|
|
251
|
-
/** 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. */
|
|
249
|
+
/** Optional. A list of scoped access settings that set this binding's restrictions on a subset of applications. */
|
|
252
250
|
scopedAccessSettings?: ScopedAccessSettings[];
|
|
253
251
|
/** Optional. The Google Cloud session length (GCSL) policy for the group key. */
|
|
254
252
|
sessionSettings?: SessionSettings;
|
|
@@ -348,6 +346,16 @@ declare namespace gapi.client {
|
|
|
348
346
|
/** List of services supported by VPC Service Controls instances. */
|
|
349
347
|
supportedServices?: SupportedService[];
|
|
350
348
|
}
|
|
349
|
+
interface LookupConfiguredServicePerimeterResponse {
|
|
350
|
+
/** The resource (e.g. "projects/123", "folders/456") that directly owns/is restricted by the enforced perimeter. */
|
|
351
|
+
restrictedResource?: string;
|
|
352
|
+
/** The resource (e.g. "projects/123", "folders/456") that directly owns/is restricted by the dry-run perimeter. */
|
|
353
|
+
restrictedResourceDryRun?: string;
|
|
354
|
+
/** Fully qualified name of the configured enforced perimeter. Format: `accessPolicies/{policy_id}/servicePerimeters/{perimeter_name}` This field is empty if no enforced perimeter applies. */
|
|
355
|
+
servicePerimeter?: string;
|
|
356
|
+
/** Fully qualified name of the configured dry-run perimeter. Format: `accessPolicies/{policy_id}/servicePerimeters/{perimeter_name}` This field is empty if no dry-run perimeter configuration applies. */
|
|
357
|
+
servicePerimeterDryRun?: string;
|
|
358
|
+
}
|
|
351
359
|
interface MethodSelector {
|
|
352
360
|
/** A valid method name for the corresponding `service_name` in ApiOperation. If `*` is used as the value for the `method`, then ALL methods and permissions are allowed. */
|
|
353
361
|
method?: string;
|
|
@@ -396,7 +404,7 @@ declare namespace gapi.client {
|
|
|
396
404
|
version?: number;
|
|
397
405
|
}
|
|
398
406
|
interface Principal {
|
|
399
|
-
/** Immutable. IAM
|
|
407
|
+
/** Immutable. The IAM principal identifier of the federated workforce or workload to assign the policy to. Examples include the following: * Single principal: `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}` * All workloads in a workload identity pool: `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*` * All Workforce Pools in a Google Cloud organization: `principalSet://cloudresourcemanager.googleapis.com/organizations/{organization_id}/type/WorkforcePool` Bindings created for all Workforce Pools in a Google Cloud organization support only `scoped_access_settings` with the `restricted_project` client scope and active `session_settings`. No other configurations are allowed. */
|
|
400
408
|
federatedPrincipal?: string;
|
|
401
409
|
/** Immutable. Service account email used to assign policies to a specific service account. If a service account is subject to multiple policies (e.g., if there is a policy for all service accounts in a project and a policy for the service account), the closest (i.e. the most specific) dry-run policy will be used for the dry-run functionality and the closest enforcement policy will be used for the enforcement. */
|
|
402
410
|
serviceAccount?: string;
|
|
@@ -408,7 +416,7 @@ declare namespace gapi.client {
|
|
|
408
416
|
forwardingRule?: string;
|
|
409
417
|
}
|
|
410
418
|
interface Project {
|
|
411
|
-
/** The
|
|
419
|
+
/** The Google Cloud project resource name. Format: `projects/{project_number}`. Only the project number is supported. Example: `projects/1234567890` */
|
|
412
420
|
name?: string;
|
|
413
421
|
}
|
|
414
422
|
interface ReplaceAccessLevelsRequest {
|
|
@@ -482,7 +490,7 @@ declare namespace gapi.client {
|
|
|
482
490
|
interface SessionSettings {
|
|
483
491
|
/** 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. */
|
|
484
492
|
maxInactivity?: string;
|
|
485
|
-
/** Optional. The session length. Setting this field to zero allows for sessions that are active indefinitely. Also, setting `session_length_enabled` to false disregards session limits, which means that sessions never expire. If use_oidc_max_age is true
|
|
493
|
+
/** Optional. The session length. Setting this field to zero allows for sessions that are active indefinitely. Also, setting `session_length_enabled` to `false` disregards session limits, which means that sessions never expire. If `use_oidc_max_age` is `true`, for OIDC apps, the session length will be the minimum of this field and the OIDC `max_age` param. If this field is set to zero, `session_length_enabled` must be set to `false` or left unset. */
|
|
486
494
|
sessionLength?: string;
|
|
487
495
|
/** 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. If `session_length` is set to zero, this field must be set to false. */
|
|
488
496
|
sessionLengthEnabled?: boolean;
|
|
@@ -1224,6 +1232,11 @@ declare namespace gapi.client {
|
|
|
1224
1232
|
alt?: 'json' | 'media' | 'proto';
|
|
1225
1233
|
/** JSONP */
|
|
1226
1234
|
callback?: string;
|
|
1235
|
+
/** Optional. If true, the response will contain the deleted principal syntax for identities that support it. */
|
|
1236
|
+
deletedPrincipalSyntax?:
|
|
1237
|
+
| 'DELETED_PRINCIPAL_SYNTAX_SUPPORT_UNSPECIFIED'
|
|
1238
|
+
| 'DELETED_PRINCIPAL_SYNTAX_SUPPORT_DISABLED'
|
|
1239
|
+
| 'DELETED_PRINCIPAL_SYNTAX_SUPPORT_ENABLED';
|
|
1227
1240
|
/** Selector specifying which fields to include in a partial response. */
|
|
1228
1241
|
fields?: string;
|
|
1229
1242
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
@@ -1251,6 +1264,11 @@ declare namespace gapi.client {
|
|
|
1251
1264
|
alt?: 'json' | 'media' | 'proto';
|
|
1252
1265
|
/** JSONP */
|
|
1253
1266
|
callback?: string;
|
|
1267
|
+
/** Optional. If true, the response will contain the deleted principal syntax for identities that support it. */
|
|
1268
|
+
deletedPrincipalSyntax?:
|
|
1269
|
+
| 'DELETED_PRINCIPAL_SYNTAX_SUPPORT_UNSPECIFIED'
|
|
1270
|
+
| 'DELETED_PRINCIPAL_SYNTAX_SUPPORT_DISABLED'
|
|
1271
|
+
| 'DELETED_PRINCIPAL_SYNTAX_SUPPORT_ENABLED';
|
|
1254
1272
|
/** Selector specifying which fields to include in a partial response. */
|
|
1255
1273
|
fields?: string;
|
|
1256
1274
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
@@ -1282,6 +1300,11 @@ declare namespace gapi.client {
|
|
|
1282
1300
|
alt?: 'json' | 'media' | 'proto';
|
|
1283
1301
|
/** JSONP */
|
|
1284
1302
|
callback?: string;
|
|
1303
|
+
/** Optional. If true, the response will contain the deleted principal syntax for identities that support it and the request can contain identities with deleted principal syntax. */
|
|
1304
|
+
deletedPrincipalSyntax?:
|
|
1305
|
+
| 'DELETED_PRINCIPAL_SYNTAX_SUPPORT_UNSPECIFIED'
|
|
1306
|
+
| 'DELETED_PRINCIPAL_SYNTAX_SUPPORT_DISABLED'
|
|
1307
|
+
| 'DELETED_PRINCIPAL_SYNTAX_SUPPORT_ENABLED';
|
|
1285
1308
|
/** Selector specifying which fields to include in a partial response. */
|
|
1286
1309
|
fields?: string;
|
|
1287
1310
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
@@ -1313,6 +1336,11 @@ declare namespace gapi.client {
|
|
|
1313
1336
|
alt?: 'json' | 'media' | 'proto';
|
|
1314
1337
|
/** JSONP */
|
|
1315
1338
|
callback?: string;
|
|
1339
|
+
/** Optional. If true, the response will contain the deleted principal syntax for identities that support it and the request can contain identities with deleted principal syntax. */
|
|
1340
|
+
deletedPrincipalSyntax?:
|
|
1341
|
+
| 'DELETED_PRINCIPAL_SYNTAX_SUPPORT_UNSPECIFIED'
|
|
1342
|
+
| 'DELETED_PRINCIPAL_SYNTAX_SUPPORT_DISABLED'
|
|
1343
|
+
| 'DELETED_PRINCIPAL_SYNTAX_SUPPORT_ENABLED';
|
|
1316
1344
|
/** Selector specifying which fields to include in a partial response. */
|
|
1317
1345
|
fields?: string;
|
|
1318
1346
|
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
@@ -1719,6 +1747,35 @@ declare namespace gapi.client {
|
|
|
1719
1747
|
authorizedOrgsDescs: AuthorizedOrgsDescsResource;
|
|
1720
1748
|
servicePerimeters: ServicePerimetersResource;
|
|
1721
1749
|
}
|
|
1750
|
+
interface FoldersResource {
|
|
1751
|
+
/** Looks up the configured service perimeter for a given resource Format: ['projects/{projectNumber}', 'folders/{folderNumber}']. */
|
|
1752
|
+
lookupConfiguredServicePerimeter(request?: {
|
|
1753
|
+
/** V1 error format. */
|
|
1754
|
+
'$.xgafv'?: '1' | '2';
|
|
1755
|
+
/** OAuth access token. */
|
|
1756
|
+
access_token?: string;
|
|
1757
|
+
/** Data format for response. */
|
|
1758
|
+
alt?: 'json' | 'media' | 'proto';
|
|
1759
|
+
/** JSONP */
|
|
1760
|
+
callback?: string;
|
|
1761
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1762
|
+
fields?: string;
|
|
1763
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
1764
|
+
key?: string;
|
|
1765
|
+
/** OAuth 2.0 token for the current user. */
|
|
1766
|
+
oauth_token?: string;
|
|
1767
|
+
/** Returns response with indentations and line breaks. */
|
|
1768
|
+
prettyPrint?: boolean;
|
|
1769
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1770
|
+
quotaUser?: string;
|
|
1771
|
+
/** Required. The Resource to resolve (e.g. "projects/123", "folders/456"). */
|
|
1772
|
+
resource: string;
|
|
1773
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1774
|
+
upload_protocol?: string;
|
|
1775
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1776
|
+
uploadType?: string;
|
|
1777
|
+
}): Request<LookupConfiguredServicePerimeterResponse>;
|
|
1778
|
+
}
|
|
1722
1779
|
interface OperationsResource {
|
|
1723
1780
|
/** Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. */
|
|
1724
1781
|
cancel(request: {
|
|
@@ -2115,6 +2172,35 @@ declare namespace gapi.client {
|
|
|
2115
2172
|
uploadType?: string;
|
|
2116
2173
|
}): Request<ListSupportedPermissionsResponse>;
|
|
2117
2174
|
}
|
|
2175
|
+
interface ProjectsResource {
|
|
2176
|
+
/** Looks up the configured service perimeter for a given resource Format: ['projects/{projectNumber}', 'folders/{folderNumber}']. */
|
|
2177
|
+
lookupConfiguredServicePerimeter(request?: {
|
|
2178
|
+
/** V1 error format. */
|
|
2179
|
+
'$.xgafv'?: '1' | '2';
|
|
2180
|
+
/** OAuth access token. */
|
|
2181
|
+
access_token?: string;
|
|
2182
|
+
/** Data format for response. */
|
|
2183
|
+
alt?: 'json' | 'media' | 'proto';
|
|
2184
|
+
/** JSONP */
|
|
2185
|
+
callback?: string;
|
|
2186
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2187
|
+
fields?: string;
|
|
2188
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2189
|
+
key?: string;
|
|
2190
|
+
/** OAuth 2.0 token for the current user. */
|
|
2191
|
+
oauth_token?: string;
|
|
2192
|
+
/** Returns response with indentations and line breaks. */
|
|
2193
|
+
prettyPrint?: boolean;
|
|
2194
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2195
|
+
quotaUser?: string;
|
|
2196
|
+
/** Required. The Resource to resolve (e.g. "projects/123", "folders/456"). */
|
|
2197
|
+
resource: string;
|
|
2198
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2199
|
+
upload_protocol?: string;
|
|
2200
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2201
|
+
uploadType?: string;
|
|
2202
|
+
}): Request<LookupConfiguredServicePerimeterResponse>;
|
|
2203
|
+
}
|
|
2118
2204
|
interface ServicesResource {
|
|
2119
2205
|
/** Returns a VPC-SC supported service based on the service name. **IAM Permissions**: Requires the following IAM permissions to use this method: - `serviceusage.services.use` on the project. */
|
|
2120
2206
|
get(request?: {
|
|
@@ -2176,12 +2262,16 @@ declare namespace gapi.client {
|
|
|
2176
2262
|
|
|
2177
2263
|
const accessPolicies: AccessPoliciesResource;
|
|
2178
2264
|
|
|
2265
|
+
const folders: FoldersResource;
|
|
2266
|
+
|
|
2179
2267
|
const operations: OperationsResource;
|
|
2180
2268
|
|
|
2181
2269
|
const organizations: OrganizationsResource;
|
|
2182
2270
|
|
|
2183
2271
|
const permissions: PermissionsResource;
|
|
2184
2272
|
|
|
2273
|
+
const projects: ProjectsResource;
|
|
2274
|
+
|
|
2185
2275
|
const services: ServicesResource;
|
|
2186
2276
|
}
|
|
2187
2277
|
}
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -132,6 +132,13 @@ await gapi.client.accesscontextmanager.accessPolicies.testIamPermissions({
|
|
|
132
132
|
resource: 'resource',
|
|
133
133
|
});
|
|
134
134
|
|
|
135
|
+
/*
|
|
136
|
+
Looks up the configured service perimeter for a given resource Format: ['projects/{projectNumber}', 'folders/{folderNumber}'].
|
|
137
|
+
*/
|
|
138
|
+
await gapi.client.accesscontextmanager.folders.lookupConfiguredServicePerimeter(
|
|
139
|
+
{resource: 'resource'},
|
|
140
|
+
);
|
|
141
|
+
|
|
135
142
|
/*
|
|
136
143
|
Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
|
|
137
144
|
*/
|
|
@@ -157,6 +164,13 @@ Lists all supported permissions in VPC Service Controls ingress and egress rules
|
|
|
157
164
|
*/
|
|
158
165
|
await gapi.client.accesscontextmanager.permissions.list({});
|
|
159
166
|
|
|
167
|
+
/*
|
|
168
|
+
Looks up the configured service perimeter for a given resource Format: ['projects/{projectNumber}', 'folders/{folderNumber}'].
|
|
169
|
+
*/
|
|
170
|
+
await gapi.client.accesscontextmanager.projects.lookupConfiguredServicePerimeter(
|
|
171
|
+
{resource: 'resource'},
|
|
172
|
+
);
|
|
173
|
+
|
|
160
174
|
/*
|
|
161
175
|
Returns a VPC-SC supported service based on the service name. **IAM Permissions**: Requires the following IAM permissions to use this method: - `serviceusage.services.use` on the project.
|
|
162
176
|
*/
|