@maxim_mazurok/gapi.client.cloudidentity-v1 0.2.20260317 → 0.2.20260602
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 +144 -5
- package/package.json +1 -1
- package/readme.md +32 -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://cloudidentity.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260602
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -779,7 +779,7 @@ declare namespace gapi.client {
|
|
|
779
779
|
group?: string;
|
|
780
780
|
/** Required. Immutable. Non-empty default. The OrgUnit the query applies to. This field is only set if there is a single value for org_unit that satisfies all clauses of the query. */
|
|
781
781
|
orgUnit?: string;
|
|
782
|
-
/** Immutable. The CEL query that defines which entities the Policy applies to (ex. a User entity). For details about CEL see https://opensource.google.com/projects/cel. The OrgUnits the Policy applies to are represented by a clause like so: entity.org_units.exists(org_unit, org_unit.org_unit_id == orgUnitId('{orgUnitId}')) The Group the Policy applies to are represented by a clause like so: entity.groups.exists(group, group.group_id == groupId('{groupId}')) The Licenses the Policy applies to are represented by a clause like so: entity.licenses.exists(license, license in ['/product/{productId}/sku/{skuId}']) The above clauses can be present in any combination, and used in conjunction with the &&, || and ! operators. The org_unit and group fields below are helper fields that contain the corresponding value(s) as the query to make the query easier to use. */
|
|
782
|
+
/** Immutable. The CEL query that defines which entities the Policy applies to (ex. a User entity). For details about CEL see https://opensource.google.com/projects/cel. The OrgUnits the Policy applies to are represented by a clause like so: entity.org_units.exists(org_unit, org_unit.org_unit_id == orgUnitId('{orgUnitId}')) The Group the Policy applies to are represented by a clause like so: entity.groups.exists(group, group.group_id == groupId('{groupId}')) The Licenses the Policy applies to are represented by a clause like so: entity.licenses.exists(license, license in ['/product/{productId}/sku/{skuId}']) **Note:** The licenses clause is not supported in mutate endpoints. The above clauses can be present in any combination, and used in conjunction with the &&, || and ! operators. The org_unit and group fields below are helper fields that contain the corresponding value(s) as the query to make the query easier to use. */
|
|
783
783
|
query?: string;
|
|
784
784
|
/** Output only. The decimal sort order of this PolicyQuery. The value is relative to all other policies with the same setting type for the customer. (There are no duplicates within this set). */
|
|
785
785
|
sortOrder?: number;
|
|
@@ -866,7 +866,7 @@ declare namespace gapi.client {
|
|
|
866
866
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
867
867
|
code?: number;
|
|
868
868
|
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
869
|
-
details?:
|
|
869
|
+
details?: {[P in string]: any}[];
|
|
870
870
|
/** 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. */
|
|
871
871
|
message?: string;
|
|
872
872
|
}
|
|
@@ -3412,6 +3412,87 @@ declare namespace gapi.client {
|
|
|
3412
3412
|
): Request<Operation>;
|
|
3413
3413
|
}
|
|
3414
3414
|
interface PoliciesResource {
|
|
3415
|
+
/** Create a policy. */
|
|
3416
|
+
create(request: {
|
|
3417
|
+
/** V1 error format. */
|
|
3418
|
+
'$.xgafv'?: '1' | '2';
|
|
3419
|
+
/** OAuth access token. */
|
|
3420
|
+
access_token?: string;
|
|
3421
|
+
/** Data format for response. */
|
|
3422
|
+
alt?: 'json' | 'media' | 'proto';
|
|
3423
|
+
/** JSONP */
|
|
3424
|
+
callback?: string;
|
|
3425
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3426
|
+
fields?: string;
|
|
3427
|
+
/** 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. */
|
|
3428
|
+
key?: string;
|
|
3429
|
+
/** OAuth 2.0 token for the current user. */
|
|
3430
|
+
oauth_token?: string;
|
|
3431
|
+
/** Returns response with indentations and line breaks. */
|
|
3432
|
+
prettyPrint?: boolean;
|
|
3433
|
+
/** 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. */
|
|
3434
|
+
quotaUser?: string;
|
|
3435
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3436
|
+
upload_protocol?: string;
|
|
3437
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3438
|
+
uploadType?: string;
|
|
3439
|
+
/** Request body */
|
|
3440
|
+
resource: Policy;
|
|
3441
|
+
}): Request<Operation>;
|
|
3442
|
+
create(
|
|
3443
|
+
request: {
|
|
3444
|
+
/** V1 error format. */
|
|
3445
|
+
'$.xgafv'?: '1' | '2';
|
|
3446
|
+
/** OAuth access token. */
|
|
3447
|
+
access_token?: string;
|
|
3448
|
+
/** Data format for response. */
|
|
3449
|
+
alt?: 'json' | 'media' | 'proto';
|
|
3450
|
+
/** JSONP */
|
|
3451
|
+
callback?: string;
|
|
3452
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3453
|
+
fields?: string;
|
|
3454
|
+
/** 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. */
|
|
3455
|
+
key?: string;
|
|
3456
|
+
/** OAuth 2.0 token for the current user. */
|
|
3457
|
+
oauth_token?: string;
|
|
3458
|
+
/** Returns response with indentations and line breaks. */
|
|
3459
|
+
prettyPrint?: boolean;
|
|
3460
|
+
/** 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. */
|
|
3461
|
+
quotaUser?: string;
|
|
3462
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3463
|
+
upload_protocol?: string;
|
|
3464
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3465
|
+
uploadType?: string;
|
|
3466
|
+
},
|
|
3467
|
+
body: Policy,
|
|
3468
|
+
): Request<Operation>;
|
|
3469
|
+
/** Delete a policy. */
|
|
3470
|
+
delete(request?: {
|
|
3471
|
+
/** V1 error format. */
|
|
3472
|
+
'$.xgafv'?: '1' | '2';
|
|
3473
|
+
/** OAuth access token. */
|
|
3474
|
+
access_token?: string;
|
|
3475
|
+
/** Data format for response. */
|
|
3476
|
+
alt?: 'json' | 'media' | 'proto';
|
|
3477
|
+
/** JSONP */
|
|
3478
|
+
callback?: string;
|
|
3479
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3480
|
+
fields?: string;
|
|
3481
|
+
/** 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. */
|
|
3482
|
+
key?: string;
|
|
3483
|
+
/** Required. The name of the policy to delete. Format: `policies/{policy}`. */
|
|
3484
|
+
name: string;
|
|
3485
|
+
/** OAuth 2.0 token for the current user. */
|
|
3486
|
+
oauth_token?: string;
|
|
3487
|
+
/** Returns response with indentations and line breaks. */
|
|
3488
|
+
prettyPrint?: boolean;
|
|
3489
|
+
/** 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. */
|
|
3490
|
+
quotaUser?: string;
|
|
3491
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3492
|
+
upload_protocol?: string;
|
|
3493
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3494
|
+
uploadType?: string;
|
|
3495
|
+
}): Request<Operation>;
|
|
3415
3496
|
/** Get a policy. */
|
|
3416
3497
|
get(request?: {
|
|
3417
3498
|
/** V1 error format. */
|
|
@@ -3451,13 +3532,13 @@ declare namespace gapi.client {
|
|
|
3451
3532
|
callback?: string;
|
|
3452
3533
|
/** Selector specifying which fields to include in a partial response. */
|
|
3453
3534
|
fields?: string;
|
|
3454
|
-
/** Optional. A CEL expression for filtering the results. Policies can be filtered
|
|
3535
|
+
/** Optional. A CEL expression for filtering the results. Policies can be filtered using the expression in the following ways: - Filter by application: `setting.type.matches('^settings/gmail\\..*$')` - Filter by setting type: `setting.type.matches('^.*\\.service_status$')` - Filter by customer: `customer == "customers/{customer}"` Where `customer` is the `id` from the [Admin SDK `Customer` resource](https://developers.google.com/admin-sdk/directory/reference/rest/v1/customers). You may use `customers/my_customer` to specify your own organization. When no `customer` is mentioned it will be default to `customers/my_customer`. You may only filter on policies for a single customer at a time. The above clauses can be combined together in a single filter expression with the `&&` and `||` operators, like in the following example: `customer == "customers/my_customer" && ( setting.type.matches('^settings/gmail\\..*$') || setting.type.matches('^.*\\.service_status$') )`. */
|
|
3455
3536
|
filter?: string;
|
|
3456
3537
|
/** 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. */
|
|
3457
3538
|
key?: string;
|
|
3458
3539
|
/** OAuth 2.0 token for the current user. */
|
|
3459
3540
|
oauth_token?: string;
|
|
3460
|
-
/** Optional. The maximum number of results to return. The service can return fewer than this number. If omitted or set to 0
|
|
3541
|
+
/** Optional. The maximum number of results to return. The service can return fewer than this number. If omitted or set to `0`, the default is `50` results per page. The maximum allowed value is `100`. `page_size` values greater than `100` default to `100`. */
|
|
3461
3542
|
pageSize?: number;
|
|
3462
3543
|
/** Optional. The pagination token received from a prior call to PoliciesService.ListPolicies to retrieve the next page of results. When paginating, all other parameters provided to `ListPoliciesRequest` must match the call that provided the page token. */
|
|
3463
3544
|
pageToken?: string;
|
|
@@ -3470,6 +3551,64 @@ declare namespace gapi.client {
|
|
|
3470
3551
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3471
3552
|
uploadType?: string;
|
|
3472
3553
|
}): Request<ListPoliciesResponse>;
|
|
3554
|
+
/** Update a policy. */
|
|
3555
|
+
patch(request: {
|
|
3556
|
+
/** V1 error format. */
|
|
3557
|
+
'$.xgafv'?: '1' | '2';
|
|
3558
|
+
/** OAuth access token. */
|
|
3559
|
+
access_token?: string;
|
|
3560
|
+
/** Data format for response. */
|
|
3561
|
+
alt?: 'json' | 'media' | 'proto';
|
|
3562
|
+
/** JSONP */
|
|
3563
|
+
callback?: string;
|
|
3564
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3565
|
+
fields?: string;
|
|
3566
|
+
/** 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. */
|
|
3567
|
+
key?: string;
|
|
3568
|
+
/** Output only. Identifier. The [resource name](https://cloud.google.com/apis/design/resource_names) of the Policy. Format: policies/{policy}. */
|
|
3569
|
+
name: string;
|
|
3570
|
+
/** OAuth 2.0 token for the current user. */
|
|
3571
|
+
oauth_token?: string;
|
|
3572
|
+
/** Returns response with indentations and line breaks. */
|
|
3573
|
+
prettyPrint?: boolean;
|
|
3574
|
+
/** 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. */
|
|
3575
|
+
quotaUser?: string;
|
|
3576
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3577
|
+
upload_protocol?: string;
|
|
3578
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3579
|
+
uploadType?: string;
|
|
3580
|
+
/** Request body */
|
|
3581
|
+
resource: Policy;
|
|
3582
|
+
}): Request<Operation>;
|
|
3583
|
+
patch(
|
|
3584
|
+
request: {
|
|
3585
|
+
/** V1 error format. */
|
|
3586
|
+
'$.xgafv'?: '1' | '2';
|
|
3587
|
+
/** OAuth access token. */
|
|
3588
|
+
access_token?: string;
|
|
3589
|
+
/** Data format for response. */
|
|
3590
|
+
alt?: 'json' | 'media' | 'proto';
|
|
3591
|
+
/** JSONP */
|
|
3592
|
+
callback?: string;
|
|
3593
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3594
|
+
fields?: string;
|
|
3595
|
+
/** 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. */
|
|
3596
|
+
key?: string;
|
|
3597
|
+
/** Output only. Identifier. The [resource name](https://cloud.google.com/apis/design/resource_names) of the Policy. Format: policies/{policy}. */
|
|
3598
|
+
name: string;
|
|
3599
|
+
/** OAuth 2.0 token for the current user. */
|
|
3600
|
+
oauth_token?: string;
|
|
3601
|
+
/** Returns response with indentations and line breaks. */
|
|
3602
|
+
prettyPrint?: boolean;
|
|
3603
|
+
/** 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. */
|
|
3604
|
+
quotaUser?: string;
|
|
3605
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3606
|
+
upload_protocol?: string;
|
|
3607
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3608
|
+
uploadType?: string;
|
|
3609
|
+
},
|
|
3610
|
+
body: Policy,
|
|
3611
|
+
): Request<Operation>;
|
|
3473
3612
|
}
|
|
3474
3613
|
|
|
3475
3614
|
const customers: CustomersResource;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,6 +11,23 @@ Install typings for Cloud Identity API:
|
|
|
11
11
|
npm install @types/gapi.client.cloudidentity-v1 --save-dev
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
## TypeScript 6.0+
|
|
15
|
+
|
|
16
|
+
TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
{
|
|
20
|
+
"compilerOptions": {
|
|
21
|
+
"types": [
|
|
22
|
+
"gapi",
|
|
23
|
+
"gapi.auth2",
|
|
24
|
+
"gapi.client",
|
|
25
|
+
"gapi.client.cloudidentity-v1"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
14
31
|
## Usage
|
|
15
32
|
|
|
16
33
|
You need to initialize Google API client in your code:
|
|
@@ -246,6 +263,16 @@ Updates an InboundSsoAssignment. The body of this request is the `inbound_sso_as
|
|
|
246
263
|
*/
|
|
247
264
|
await gapi.client.cloudidentity.inboundSsoAssignments.patch({name: 'name'});
|
|
248
265
|
|
|
266
|
+
/*
|
|
267
|
+
Create a policy.
|
|
268
|
+
*/
|
|
269
|
+
await gapi.client.cloudidentity.policies.create({});
|
|
270
|
+
|
|
271
|
+
/*
|
|
272
|
+
Delete a policy.
|
|
273
|
+
*/
|
|
274
|
+
await gapi.client.cloudidentity.policies.delete({name: 'name'});
|
|
275
|
+
|
|
249
276
|
/*
|
|
250
277
|
Get a policy.
|
|
251
278
|
*/
|
|
@@ -255,6 +282,11 @@ await gapi.client.cloudidentity.policies.get({name: 'name'});
|
|
|
255
282
|
List policies.
|
|
256
283
|
*/
|
|
257
284
|
await gapi.client.cloudidentity.policies.list({});
|
|
285
|
+
|
|
286
|
+
/*
|
|
287
|
+
Update a policy.
|
|
288
|
+
*/
|
|
289
|
+
await gapi.client.cloudidentity.policies.patch({name: 'name'});
|
|
258
290
|
```
|
|
259
291
|
|
|
260
292
|
For provenance information see [Provenance section on NPM](https://www.npmjs.com/package/@maxim_mazurok/gapi.client.cloudidentity-v1#Provenance:~:text=none-,Provenance,-Built%20and%20signed)
|