@maxim_mazurok/gapi.client.iam-v1 0.0.20230810 → 0.0.20230914
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 +36 -50
- package/package.json +1 -1
- package/tests.ts +3 -5
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://iam.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230914
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -190,6 +190,13 @@ declare namespace gapi.client {
|
|
|
190
190
|
/** Required. The OIDC issuer URI. Must be a valid URI using the 'https' scheme. */
|
|
191
191
|
issuerUri?:
|
|
192
192
|
string;
|
|
193
|
+
/**
|
|
194
|
+
* OIDC JWKs in JSON String format. For details on the definition of a JWK, see https://tools.ietf.org/html/rfc7517. If not set, the `jwks_uri` from the discovery document(fetched from
|
|
195
|
+
* the .well-known path of the `issuer_uri`) will be used. Currently, RSA and EC asymmetric keys are supported. The JWK must use following format and include only the following fields:
|
|
196
|
+
* { "keys": [ { "kty": "RSA/EC", "alg": "", "use": "sig", "kid": "", "n": "", "e": "", "x": "", "y": "", "crv": "" } ] }
|
|
197
|
+
*/
|
|
198
|
+
jwksJson?:
|
|
199
|
+
string;
|
|
193
200
|
/** Required. Configuration for web single sign-on for the OIDC provider. Here, web sign-in refers to console sign-in and gcloud sign-in through the browser. */
|
|
194
201
|
webSsoConfig?:
|
|
195
202
|
GoogleIamAdminV1WorkforcePoolProviderOidcWebSsoConfig;
|
|
@@ -229,7 +236,7 @@ declare namespace gapi.client {
|
|
|
229
236
|
* Required. SAML Identity provider configuration metadata xml doc. The xml document should comply with [SAML 2.0
|
|
230
237
|
* specification](https://docs.oasis-open.org/security/saml/v2.0/saml-metadata-2.0-os.pdf). The max size of the acceptable xml document will be bounded to 128k characters. The metadata
|
|
231
238
|
* xml document should satisfy the following constraints: 1) Must contain an Identity Provider Entity ID. 2) Must contain at least one non-expired signing key certificate. 3) For each
|
|
232
|
-
* signing key: a) Valid from should be no more than 7 days from now. b) Valid to should be no more than
|
|
239
|
+
* signing key: a) Valid from should be no more than 7 days from now. b) Valid to should be no more than 15 years in the future. 4) Up to 3 IdP signing keys are allowed in the metadata
|
|
233
240
|
* xml. When updating the provider's metadata xml, at least one non-expired signing key must overlap with the existing metadata. This requirement is skipped if there are no non-expired
|
|
234
241
|
* signing keys present in the existing metadata.
|
|
235
242
|
*/
|
|
@@ -409,6 +416,32 @@ declare namespace gapi.client {
|
|
|
409
416
|
response?:
|
|
410
417
|
{ [P in string]: any };
|
|
411
418
|
}
|
|
419
|
+
interface OperationMetadata {
|
|
420
|
+
/** Output only. API version used to start the operation. */
|
|
421
|
+
apiVersion?:
|
|
422
|
+
string;
|
|
423
|
+
/**
|
|
424
|
+
* Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a
|
|
425
|
+
* google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
|
|
426
|
+
*/
|
|
427
|
+
cancelRequested?:
|
|
428
|
+
boolean;
|
|
429
|
+
/** Output only. The time the operation was created. */
|
|
430
|
+
createTime?:
|
|
431
|
+
string;
|
|
432
|
+
/** Output only. The time the operation finished running. */
|
|
433
|
+
endTime?:
|
|
434
|
+
string;
|
|
435
|
+
/** Output only. Human-readable status of the operation, if any. */
|
|
436
|
+
statusDetail?:
|
|
437
|
+
string;
|
|
438
|
+
/** Output only. Server-defined resource path for the target of the operation. */
|
|
439
|
+
target?:
|
|
440
|
+
string;
|
|
441
|
+
/** Output only. Name of the verb executed by the operation. */
|
|
442
|
+
verb?:
|
|
443
|
+
string;
|
|
444
|
+
}
|
|
412
445
|
interface PatchServiceAccountRequest {
|
|
413
446
|
serviceAccount?:
|
|
414
447
|
ServiceAccount;
|
|
@@ -576,7 +609,7 @@ declare namespace gapi.client {
|
|
|
576
609
|
* Required. SAML Identity provider configuration metadata xml doc. The xml document should comply with [SAML 2.0
|
|
577
610
|
* specification](https://www.oasis-open.org/committees/download.php/56785/sstc-saml-metadata-errata-2.0-wd-05.pdf). The max size of the acceptable xml document will be bounded to 128k
|
|
578
611
|
* characters. The metadata xml document should satisfy the following constraints: 1) Must contain an Identity Provider Entity ID. 2) Must contain at least one non-expired signing key
|
|
579
|
-
* certificate. 3) For each signing key: a) Valid from should be no more than 7 days from now. b) Valid to should be no more than
|
|
612
|
+
* certificate. 3) For each signing key: a) Valid from should be no more than 7 days from now. b) Valid to should be no more than 15 years in the future. 4) Upto 3 IdP signing keys are
|
|
580
613
|
* allowed in the metadata xml. When updating the provider's metadata xml, at lease one non-expired signing key must overlap with the existing metadata. This requirement is skipped if
|
|
581
614
|
* there are no non-expired signing keys present in the existing metadata
|
|
582
615
|
*/
|
|
@@ -3375,58 +3408,11 @@ declare namespace gapi.client {
|
|
|
3375
3408
|
string;
|
|
3376
3409
|
}): Request<Operation>;
|
|
3377
3410
|
}
|
|
3378
|
-
interface OperationsResource {
|
|
3379
|
-
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
3380
|
-
get(request?: {
|
|
3381
|
-
/** V1 error format. */
|
|
3382
|
-
"$.xgafv"?:
|
|
3383
|
-
string;
|
|
3384
|
-
/** OAuth access token. */
|
|
3385
|
-
access_token?:
|
|
3386
|
-
string;
|
|
3387
|
-
/** Data format for response. */
|
|
3388
|
-
alt?:
|
|
3389
|
-
string;
|
|
3390
|
-
/** JSONP */
|
|
3391
|
-
callback?:
|
|
3392
|
-
string;
|
|
3393
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
3394
|
-
fields?:
|
|
3395
|
-
string;
|
|
3396
|
-
/** 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. */
|
|
3397
|
-
key?:
|
|
3398
|
-
string;
|
|
3399
|
-
/** The name of the operation resource. */
|
|
3400
|
-
name:
|
|
3401
|
-
string;
|
|
3402
|
-
/** OAuth 2.0 token for the current user. */
|
|
3403
|
-
oauth_token?:
|
|
3404
|
-
string;
|
|
3405
|
-
/** Returns response with indentations and line breaks. */
|
|
3406
|
-
prettyPrint?:
|
|
3407
|
-
boolean;
|
|
3408
|
-
/** 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. */
|
|
3409
|
-
quotaUser?:
|
|
3410
|
-
string;
|
|
3411
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3412
|
-
upload_protocol?:
|
|
3413
|
-
string;
|
|
3414
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3415
|
-
uploadType?:
|
|
3416
|
-
string;
|
|
3417
|
-
}): Request<Operation>;
|
|
3418
|
-
}
|
|
3419
|
-
interface WorkloadSourcesResource {
|
|
3420
|
-
operations:
|
|
3421
|
-
OperationsResource;
|
|
3422
|
-
}
|
|
3423
3411
|
interface NamespacesResource {
|
|
3424
3412
|
managedIdentities:
|
|
3425
3413
|
ManagedIdentitiesResource;
|
|
3426
3414
|
operations:
|
|
3427
3415
|
OperationsResource;
|
|
3428
|
-
workloadSources:
|
|
3429
|
-
WorkloadSourcesResource;
|
|
3430
3416
|
}
|
|
3431
3417
|
interface OperationsResource {
|
|
3432
3418
|
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230914
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -184,6 +184,7 @@ gapi.load('client', async () => {
|
|
|
184
184
|
},
|
|
185
185
|
},
|
|
186
186
|
issuerUri: "Test string",
|
|
187
|
+
jwksJson: "Test string",
|
|
187
188
|
webSsoConfig: {
|
|
188
189
|
additionalScopes: [
|
|
189
190
|
"Test string"
|
|
@@ -238,6 +239,7 @@ gapi.load('client', async () => {
|
|
|
238
239
|
},
|
|
239
240
|
},
|
|
240
241
|
issuerUri: "Test string",
|
|
242
|
+
jwksJson: "Test string",
|
|
241
243
|
webSsoConfig: {
|
|
242
244
|
additionalScopes: [
|
|
243
245
|
"Test string"
|
|
@@ -447,10 +449,6 @@ gapi.load('client', async () => {
|
|
|
447
449
|
name: "Test string",
|
|
448
450
|
});
|
|
449
451
|
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
450
|
-
await gapi.client.iam.projects.locations.workloadIdentityPools.namespaces.workloadSources.operations.get({
|
|
451
|
-
name: "Test string",
|
|
452
|
-
});
|
|
453
|
-
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
454
452
|
await gapi.client.iam.projects.locations.workloadIdentityPools.operations.get({
|
|
455
453
|
name: "Test string",
|
|
456
454
|
});
|