@maxim_mazurok/gapi.client.iam-v1 0.0.20230309 → 0.0.20230320
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 +467 -1
- package/package.json +1 -1
- package/tests.ts +75 -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://iam.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230320
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -170,6 +170,18 @@ declare namespace gapi.client {
|
|
|
170
170
|
*/
|
|
171
171
|
idpMetadataXml?: string;
|
|
172
172
|
}
|
|
173
|
+
interface KeyData {
|
|
174
|
+
/** Output only. The format of the key. */
|
|
175
|
+
format?: string;
|
|
176
|
+
/** Output only. The key data. The format of the key is represented by the format field. */
|
|
177
|
+
key?: string;
|
|
178
|
+
/** Immutable. The specifications for the key. */
|
|
179
|
+
keySpec?: string;
|
|
180
|
+
/** Output only. Latest timestamp when this key is valid. Attempts to use this key after this time will fail. Only present if the key data represents a X.509 certificate. */
|
|
181
|
+
notAfterTime?: string;
|
|
182
|
+
/** Output only. Earliest timestamp when this key is valid. Attempts to use this key before this time will fail. Only present if the key data represents a X.509 certificate. */
|
|
183
|
+
notBeforeTime?: string;
|
|
184
|
+
}
|
|
173
185
|
interface LintPolicyRequest {
|
|
174
186
|
/** google.iam.v1.Binding.condition object to be linted. */
|
|
175
187
|
condition?: Expr;
|
|
@@ -217,6 +229,12 @@ declare namespace gapi.client {
|
|
|
217
229
|
/** To retrieve the next page of results, set ListServiceAccountsRequest.page_token to this value. */
|
|
218
230
|
nextPageToken?: string;
|
|
219
231
|
}
|
|
232
|
+
interface ListWorkforcePoolProviderKeysResponse {
|
|
233
|
+
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
234
|
+
nextPageToken?: string;
|
|
235
|
+
/** A list of WorkforcePoolProviderKeys. */
|
|
236
|
+
workforcePoolProviderKeys?: WorkforcePoolProviderKey[];
|
|
237
|
+
}
|
|
220
238
|
interface ListWorkforcePoolProvidersResponse {
|
|
221
239
|
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
222
240
|
nextPageToken?: string;
|
|
@@ -229,6 +247,12 @@ declare namespace gapi.client {
|
|
|
229
247
|
/** A list of pools. */
|
|
230
248
|
workforcePools?: WorkforcePool[];
|
|
231
249
|
}
|
|
250
|
+
interface ListWorkloadIdentityPoolProviderKeysResponse {
|
|
251
|
+
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
252
|
+
nextPageToken?: string;
|
|
253
|
+
/** A list of WorkloadIdentityPoolProviderKey */
|
|
254
|
+
workloadIdentityPoolProviderKeys?: WorkloadIdentityPoolProviderKey[];
|
|
255
|
+
}
|
|
232
256
|
interface ListWorkloadIdentityPoolProvidersResponse {
|
|
233
257
|
/** A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
|
|
234
258
|
nextPageToken?: string;
|
|
@@ -540,6 +564,9 @@ declare namespace gapi.client {
|
|
|
540
564
|
restoredAccount?: ServiceAccount;
|
|
541
565
|
}
|
|
542
566
|
// tslint:disable-next-line:no-empty-interface
|
|
567
|
+
interface UndeleteWorkforcePoolProviderKeyRequest {
|
|
568
|
+
}
|
|
569
|
+
// tslint:disable-next-line:no-empty-interface
|
|
543
570
|
interface UndeleteWorkforcePoolProviderRequest {
|
|
544
571
|
}
|
|
545
572
|
// tslint:disable-next-line:no-empty-interface
|
|
@@ -549,6 +576,9 @@ declare namespace gapi.client {
|
|
|
549
576
|
interface UndeleteWorkforcePoolSubjectRequest {
|
|
550
577
|
}
|
|
551
578
|
// tslint:disable-next-line:no-empty-interface
|
|
579
|
+
interface UndeleteWorkloadIdentityPoolProviderKeyRequest {
|
|
580
|
+
}
|
|
581
|
+
// tslint:disable-next-line:no-empty-interface
|
|
552
582
|
interface UndeleteWorkloadIdentityPoolProviderRequest {
|
|
553
583
|
}
|
|
554
584
|
// tslint:disable-next-line:no-empty-interface
|
|
@@ -630,6 +660,21 @@ declare namespace gapi.client {
|
|
|
630
660
|
/** Output only. The state of the provider. */
|
|
631
661
|
state?: string;
|
|
632
662
|
}
|
|
663
|
+
interface WorkforcePoolProviderKey {
|
|
664
|
+
/**
|
|
665
|
+
* Output only. The time after which the key will be permanently deleted and cannot be recovered. Note that the key may get purged before this time if the total limit of keys per
|
|
666
|
+
* provider is exceeded.
|
|
667
|
+
*/
|
|
668
|
+
expireTime?: string;
|
|
669
|
+
/** Immutable. Public half of the asymmetric key. */
|
|
670
|
+
keyData?: KeyData;
|
|
671
|
+
/** Output only. The resource name of the key. */
|
|
672
|
+
name?: string;
|
|
673
|
+
/** Output only. The state of the key. */
|
|
674
|
+
state?: string;
|
|
675
|
+
/** Immutable. The purpose of the key. */
|
|
676
|
+
use?: string;
|
|
677
|
+
}
|
|
633
678
|
interface WorkloadIdentityPool {
|
|
634
679
|
/** A description of the pool. Cannot exceed 256 characters. */
|
|
635
680
|
description?: string;
|
|
@@ -695,6 +740,21 @@ declare namespace gapi.client {
|
|
|
695
740
|
/** Output only. The state of the provider. */
|
|
696
741
|
state?: string;
|
|
697
742
|
}
|
|
743
|
+
interface WorkloadIdentityPoolProviderKey {
|
|
744
|
+
/**
|
|
745
|
+
* Output only. Time after which the key will be permanently purged and cannot be recovered. Note that the key may get purged before this timestamp if the total limit of keys per
|
|
746
|
+
* provider is crossed.
|
|
747
|
+
*/
|
|
748
|
+
expireTime?: string;
|
|
749
|
+
/** Immutable. Public half of the asymmetric key. */
|
|
750
|
+
keyData?: KeyData;
|
|
751
|
+
/** Output only. The resource name of the key. */
|
|
752
|
+
name?: string;
|
|
753
|
+
/** Output only. The state of the key. */
|
|
754
|
+
state?: string;
|
|
755
|
+
/** Immutable. The purpose of the key. */
|
|
756
|
+
use?: string;
|
|
757
|
+
}
|
|
698
758
|
interface IamPoliciesResource {
|
|
699
759
|
/**
|
|
700
760
|
* Lints, or validates, an IAM policy. Currently checks the google.iam.v1.Binding.condition field, which contains a condition expression for a role binding. Successful calls to this
|
|
@@ -866,6 +926,209 @@ declare namespace gapi.client {
|
|
|
866
926
|
}): Request<Operation>;
|
|
867
927
|
}
|
|
868
928
|
interface KeysResource {
|
|
929
|
+
/** Creates a new WorkforcePoolProviderKey in a WorkforcePoolProvider. */
|
|
930
|
+
create(request: {
|
|
931
|
+
/** V1 error format. */
|
|
932
|
+
"$.xgafv"?: string;
|
|
933
|
+
/** OAuth access token. */
|
|
934
|
+
access_token?: string;
|
|
935
|
+
/** Data format for response. */
|
|
936
|
+
alt?: string;
|
|
937
|
+
/** JSONP */
|
|
938
|
+
callback?: string;
|
|
939
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
940
|
+
fields?: string;
|
|
941
|
+
/** 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. */
|
|
942
|
+
key?: string;
|
|
943
|
+
/** OAuth 2.0 token for the current user. */
|
|
944
|
+
oauth_token?: string;
|
|
945
|
+
/** Required. The provider to create this key in. */
|
|
946
|
+
parent: string;
|
|
947
|
+
/** Returns response with indentations and line breaks. */
|
|
948
|
+
prettyPrint?: boolean;
|
|
949
|
+
/** 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. */
|
|
950
|
+
quotaUser?: string;
|
|
951
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
952
|
+
upload_protocol?: string;
|
|
953
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
954
|
+
uploadType?: string;
|
|
955
|
+
/** Required. The ID to use for the key, which becomes the final component of the resource name. This value must be 4-32 characters, and may contain the characters [a-z0-9-]. */
|
|
956
|
+
workforcePoolProviderKeyId?: string;
|
|
957
|
+
/** Request body */
|
|
958
|
+
resource: WorkforcePoolProviderKey;
|
|
959
|
+
}): Request<Operation>;
|
|
960
|
+
create(request: {
|
|
961
|
+
/** V1 error format. */
|
|
962
|
+
"$.xgafv"?: string;
|
|
963
|
+
/** OAuth access token. */
|
|
964
|
+
access_token?: string;
|
|
965
|
+
/** Data format for response. */
|
|
966
|
+
alt?: string;
|
|
967
|
+
/** JSONP */
|
|
968
|
+
callback?: string;
|
|
969
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
970
|
+
fields?: string;
|
|
971
|
+
/** 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. */
|
|
972
|
+
key?: string;
|
|
973
|
+
/** OAuth 2.0 token for the current user. */
|
|
974
|
+
oauth_token?: string;
|
|
975
|
+
/** Required. The provider to create this key in. */
|
|
976
|
+
parent: string;
|
|
977
|
+
/** Returns response with indentations and line breaks. */
|
|
978
|
+
prettyPrint?: boolean;
|
|
979
|
+
/** 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. */
|
|
980
|
+
quotaUser?: string;
|
|
981
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
982
|
+
upload_protocol?: string;
|
|
983
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
984
|
+
uploadType?: string;
|
|
985
|
+
/** Required. The ID to use for the key, which becomes the final component of the resource name. This value must be 4-32 characters, and may contain the characters [a-z0-9-]. */
|
|
986
|
+
workforcePoolProviderKeyId?: string;
|
|
987
|
+
},
|
|
988
|
+
body: WorkforcePoolProviderKey): Request<Operation>;
|
|
989
|
+
/** Deletes a WorkforcePoolProviderKey. You can undelete a key for 30 days. After 30 days, deletion is permanent. */
|
|
990
|
+
delete(request?: {
|
|
991
|
+
/** V1 error format. */
|
|
992
|
+
"$.xgafv"?: string;
|
|
993
|
+
/** OAuth access token. */
|
|
994
|
+
access_token?: string;
|
|
995
|
+
/** Data format for response. */
|
|
996
|
+
alt?: string;
|
|
997
|
+
/** JSONP */
|
|
998
|
+
callback?: string;
|
|
999
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1000
|
+
fields?: string;
|
|
1001
|
+
/** 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. */
|
|
1002
|
+
key?: string;
|
|
1003
|
+
/** Required. The name of the key to delete. */
|
|
1004
|
+
name: string;
|
|
1005
|
+
/** OAuth 2.0 token for the current user. */
|
|
1006
|
+
oauth_token?: string;
|
|
1007
|
+
/** Returns response with indentations and line breaks. */
|
|
1008
|
+
prettyPrint?: boolean;
|
|
1009
|
+
/** 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. */
|
|
1010
|
+
quotaUser?: string;
|
|
1011
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1012
|
+
upload_protocol?: string;
|
|
1013
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1014
|
+
uploadType?: string;
|
|
1015
|
+
}): Request<Operation>;
|
|
1016
|
+
/** Gets a WorkforcePoolProviderKey. */
|
|
1017
|
+
get(request?: {
|
|
1018
|
+
/** V1 error format. */
|
|
1019
|
+
"$.xgafv"?: string;
|
|
1020
|
+
/** OAuth access token. */
|
|
1021
|
+
access_token?: string;
|
|
1022
|
+
/** Data format for response. */
|
|
1023
|
+
alt?: string;
|
|
1024
|
+
/** JSONP */
|
|
1025
|
+
callback?: string;
|
|
1026
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1027
|
+
fields?: string;
|
|
1028
|
+
/** 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. */
|
|
1029
|
+
key?: string;
|
|
1030
|
+
/** Required. The name of the key to retrieve. */
|
|
1031
|
+
name: string;
|
|
1032
|
+
/** OAuth 2.0 token for the current user. */
|
|
1033
|
+
oauth_token?: string;
|
|
1034
|
+
/** Returns response with indentations and line breaks. */
|
|
1035
|
+
prettyPrint?: boolean;
|
|
1036
|
+
/** 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. */
|
|
1037
|
+
quotaUser?: string;
|
|
1038
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1039
|
+
upload_protocol?: string;
|
|
1040
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1041
|
+
uploadType?: string;
|
|
1042
|
+
}): Request<WorkforcePoolProviderKey>;
|
|
1043
|
+
/** Lists all non-deleted WorkforcePoolProviderKeys in a WorkforcePoolProvider. If `show_deleted` is set to `true`, then deleted keys are also listed. */
|
|
1044
|
+
list(request?: {
|
|
1045
|
+
/** V1 error format. */
|
|
1046
|
+
"$.xgafv"?: string;
|
|
1047
|
+
/** OAuth access token. */
|
|
1048
|
+
access_token?: string;
|
|
1049
|
+
/** Data format for response. */
|
|
1050
|
+
alt?: string;
|
|
1051
|
+
/** JSONP */
|
|
1052
|
+
callback?: string;
|
|
1053
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1054
|
+
fields?: string;
|
|
1055
|
+
/** 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. */
|
|
1056
|
+
key?: string;
|
|
1057
|
+
/** OAuth 2.0 token for the current user. */
|
|
1058
|
+
oauth_token?: string;
|
|
1059
|
+
/** The maximum number of keys to return. If unspecified, all keys are returned. The maximum value is 10; values above 10 are truncated to 10. */
|
|
1060
|
+
pageSize?: number;
|
|
1061
|
+
/** A page token, received from a previous `ListWorkforcePoolProviderKeys` call. Provide this to retrieve the subsequent page. */
|
|
1062
|
+
pageToken?: string;
|
|
1063
|
+
/** Required. The provider resource to list encryption keys for. Format: `locations/{location}/workforcePools/{workforce_pool_id}/providers/{provider_id}` */
|
|
1064
|
+
parent: string;
|
|
1065
|
+
/** Returns response with indentations and line breaks. */
|
|
1066
|
+
prettyPrint?: boolean;
|
|
1067
|
+
/** 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. */
|
|
1068
|
+
quotaUser?: string;
|
|
1069
|
+
/** Whether to return soft-deleted keys. */
|
|
1070
|
+
showDeleted?: boolean;
|
|
1071
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1072
|
+
upload_protocol?: string;
|
|
1073
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1074
|
+
uploadType?: string;
|
|
1075
|
+
}): Request<ListWorkforcePoolProviderKeysResponse>;
|
|
1076
|
+
/** Undeletes a WorkforcePoolProviderKey, as long as it was deleted fewer than 30 days ago. */
|
|
1077
|
+
undelete(request: {
|
|
1078
|
+
/** V1 error format. */
|
|
1079
|
+
"$.xgafv"?: string;
|
|
1080
|
+
/** OAuth access token. */
|
|
1081
|
+
access_token?: string;
|
|
1082
|
+
/** Data format for response. */
|
|
1083
|
+
alt?: string;
|
|
1084
|
+
/** JSONP */
|
|
1085
|
+
callback?: string;
|
|
1086
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1087
|
+
fields?: string;
|
|
1088
|
+
/** 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. */
|
|
1089
|
+
key?: string;
|
|
1090
|
+
/** Required. The name of the key to undelete. */
|
|
1091
|
+
name: string;
|
|
1092
|
+
/** OAuth 2.0 token for the current user. */
|
|
1093
|
+
oauth_token?: string;
|
|
1094
|
+
/** Returns response with indentations and line breaks. */
|
|
1095
|
+
prettyPrint?: boolean;
|
|
1096
|
+
/** 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. */
|
|
1097
|
+
quotaUser?: string;
|
|
1098
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1099
|
+
upload_protocol?: string;
|
|
1100
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1101
|
+
uploadType?: string;
|
|
1102
|
+
/** Request body */
|
|
1103
|
+
resource: UndeleteWorkforcePoolProviderKeyRequest;
|
|
1104
|
+
}): Request<Operation>;
|
|
1105
|
+
undelete(request: {
|
|
1106
|
+
/** V1 error format. */
|
|
1107
|
+
"$.xgafv"?: string;
|
|
1108
|
+
/** OAuth access token. */
|
|
1109
|
+
access_token?: string;
|
|
1110
|
+
/** Data format for response. */
|
|
1111
|
+
alt?: string;
|
|
1112
|
+
/** JSONP */
|
|
1113
|
+
callback?: string;
|
|
1114
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1115
|
+
fields?: string;
|
|
1116
|
+
/** 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. */
|
|
1117
|
+
key?: string;
|
|
1118
|
+
/** Required. The name of the key to undelete. */
|
|
1119
|
+
name: string;
|
|
1120
|
+
/** OAuth 2.0 token for the current user. */
|
|
1121
|
+
oauth_token?: string;
|
|
1122
|
+
/** Returns response with indentations and line breaks. */
|
|
1123
|
+
prettyPrint?: boolean;
|
|
1124
|
+
/** 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. */
|
|
1125
|
+
quotaUser?: string;
|
|
1126
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1127
|
+
upload_protocol?: string;
|
|
1128
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1129
|
+
uploadType?: string;
|
|
1130
|
+
},
|
|
1131
|
+
body: UndeleteWorkforcePoolProviderKeyRequest): Request<Operation>;
|
|
869
1132
|
operations: OperationsResource;
|
|
870
1133
|
}
|
|
871
1134
|
interface OperationsResource {
|
|
@@ -2155,6 +2418,209 @@ declare namespace gapi.client {
|
|
|
2155
2418
|
}): Request<Operation>;
|
|
2156
2419
|
}
|
|
2157
2420
|
interface KeysResource {
|
|
2421
|
+
/** Create a new WorkloadIdentityPoolProviderKey in a WorkloadIdentityPoolProvider. */
|
|
2422
|
+
create(request: {
|
|
2423
|
+
/** V1 error format. */
|
|
2424
|
+
"$.xgafv"?: string;
|
|
2425
|
+
/** OAuth access token. */
|
|
2426
|
+
access_token?: string;
|
|
2427
|
+
/** Data format for response. */
|
|
2428
|
+
alt?: string;
|
|
2429
|
+
/** JSONP */
|
|
2430
|
+
callback?: string;
|
|
2431
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2432
|
+
fields?: string;
|
|
2433
|
+
/** 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. */
|
|
2434
|
+
key?: string;
|
|
2435
|
+
/** OAuth 2.0 token for the current user. */
|
|
2436
|
+
oauth_token?: string;
|
|
2437
|
+
/** Required. The parent provider resource to create the key in. */
|
|
2438
|
+
parent: string;
|
|
2439
|
+
/** Returns response with indentations and line breaks. */
|
|
2440
|
+
prettyPrint?: boolean;
|
|
2441
|
+
/** 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. */
|
|
2442
|
+
quotaUser?: string;
|
|
2443
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2444
|
+
upload_protocol?: string;
|
|
2445
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2446
|
+
uploadType?: string;
|
|
2447
|
+
/** Required. The ID to use for the key, which becomes the final component of the resource name. This value should be 4-32 characters, and may contain the characters [a-z0-9-]. */
|
|
2448
|
+
workloadIdentityPoolProviderKeyId?: string;
|
|
2449
|
+
/** Request body */
|
|
2450
|
+
resource: WorkloadIdentityPoolProviderKey;
|
|
2451
|
+
}): Request<Operation>;
|
|
2452
|
+
create(request: {
|
|
2453
|
+
/** V1 error format. */
|
|
2454
|
+
"$.xgafv"?: string;
|
|
2455
|
+
/** OAuth access token. */
|
|
2456
|
+
access_token?: string;
|
|
2457
|
+
/** Data format for response. */
|
|
2458
|
+
alt?: string;
|
|
2459
|
+
/** JSONP */
|
|
2460
|
+
callback?: string;
|
|
2461
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2462
|
+
fields?: string;
|
|
2463
|
+
/** 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. */
|
|
2464
|
+
key?: string;
|
|
2465
|
+
/** OAuth 2.0 token for the current user. */
|
|
2466
|
+
oauth_token?: string;
|
|
2467
|
+
/** Required. The parent provider resource to create the key in. */
|
|
2468
|
+
parent: string;
|
|
2469
|
+
/** Returns response with indentations and line breaks. */
|
|
2470
|
+
prettyPrint?: boolean;
|
|
2471
|
+
/** 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. */
|
|
2472
|
+
quotaUser?: string;
|
|
2473
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2474
|
+
upload_protocol?: string;
|
|
2475
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2476
|
+
uploadType?: string;
|
|
2477
|
+
/** Required. The ID to use for the key, which becomes the final component of the resource name. This value should be 4-32 characters, and may contain the characters [a-z0-9-]. */
|
|
2478
|
+
workloadIdentityPoolProviderKeyId?: string;
|
|
2479
|
+
},
|
|
2480
|
+
body: WorkloadIdentityPoolProviderKey): Request<Operation>;
|
|
2481
|
+
/** Deletes an WorkloadIdentityPoolProviderKey. You can undelete a key for 30 days. After 30 days, deletion is permanent. */
|
|
2482
|
+
delete(request?: {
|
|
2483
|
+
/** V1 error format. */
|
|
2484
|
+
"$.xgafv"?: string;
|
|
2485
|
+
/** OAuth access token. */
|
|
2486
|
+
access_token?: string;
|
|
2487
|
+
/** Data format for response. */
|
|
2488
|
+
alt?: string;
|
|
2489
|
+
/** JSONP */
|
|
2490
|
+
callback?: string;
|
|
2491
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2492
|
+
fields?: string;
|
|
2493
|
+
/** 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. */
|
|
2494
|
+
key?: string;
|
|
2495
|
+
/** Required. The name of the encryption key to delete. */
|
|
2496
|
+
name: string;
|
|
2497
|
+
/** OAuth 2.0 token for the current user. */
|
|
2498
|
+
oauth_token?: string;
|
|
2499
|
+
/** Returns response with indentations and line breaks. */
|
|
2500
|
+
prettyPrint?: boolean;
|
|
2501
|
+
/** 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. */
|
|
2502
|
+
quotaUser?: string;
|
|
2503
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2504
|
+
upload_protocol?: string;
|
|
2505
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2506
|
+
uploadType?: string;
|
|
2507
|
+
}): Request<Operation>;
|
|
2508
|
+
/** Gets an individual WorkloadIdentityPoolProviderKey. */
|
|
2509
|
+
get(request?: {
|
|
2510
|
+
/** V1 error format. */
|
|
2511
|
+
"$.xgafv"?: string;
|
|
2512
|
+
/** OAuth access token. */
|
|
2513
|
+
access_token?: string;
|
|
2514
|
+
/** Data format for response. */
|
|
2515
|
+
alt?: string;
|
|
2516
|
+
/** JSONP */
|
|
2517
|
+
callback?: string;
|
|
2518
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2519
|
+
fields?: string;
|
|
2520
|
+
/** 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. */
|
|
2521
|
+
key?: string;
|
|
2522
|
+
/** Required. The name of the key to retrieve. */
|
|
2523
|
+
name: string;
|
|
2524
|
+
/** OAuth 2.0 token for the current user. */
|
|
2525
|
+
oauth_token?: string;
|
|
2526
|
+
/** Returns response with indentations and line breaks. */
|
|
2527
|
+
prettyPrint?: boolean;
|
|
2528
|
+
/** 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. */
|
|
2529
|
+
quotaUser?: string;
|
|
2530
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2531
|
+
upload_protocol?: string;
|
|
2532
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2533
|
+
uploadType?: string;
|
|
2534
|
+
}): Request<WorkloadIdentityPoolProviderKey>;
|
|
2535
|
+
/** Lists all non-deleted WorkloadIdentityPoolProviderKeys in a project. If show_deleted is set to `true`, then deleted pools are also listed. */
|
|
2536
|
+
list(request?: {
|
|
2537
|
+
/** V1 error format. */
|
|
2538
|
+
"$.xgafv"?: string;
|
|
2539
|
+
/** OAuth access token. */
|
|
2540
|
+
access_token?: string;
|
|
2541
|
+
/** Data format for response. */
|
|
2542
|
+
alt?: string;
|
|
2543
|
+
/** JSONP */
|
|
2544
|
+
callback?: string;
|
|
2545
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2546
|
+
fields?: string;
|
|
2547
|
+
/** 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. */
|
|
2548
|
+
key?: string;
|
|
2549
|
+
/** OAuth 2.0 token for the current user. */
|
|
2550
|
+
oauth_token?: string;
|
|
2551
|
+
/** The maximum number of keys to return. If unspecified, all keys are returned. The maximum value is 10; values above 10 are truncated to 10. */
|
|
2552
|
+
pageSize?: number;
|
|
2553
|
+
/** A page token, received from a previous `ListWorkloadIdentityPoolProviderKeys` call. Provide this to retrieve the subsequent page. */
|
|
2554
|
+
pageToken?: string;
|
|
2555
|
+
/** Required. The parent provider resource to list encryption keys for. */
|
|
2556
|
+
parent: string;
|
|
2557
|
+
/** Returns response with indentations and line breaks. */
|
|
2558
|
+
prettyPrint?: boolean;
|
|
2559
|
+
/** 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. */
|
|
2560
|
+
quotaUser?: string;
|
|
2561
|
+
/** Whether to return soft deleted resources as well. */
|
|
2562
|
+
showDeleted?: boolean;
|
|
2563
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2564
|
+
upload_protocol?: string;
|
|
2565
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2566
|
+
uploadType?: string;
|
|
2567
|
+
}): Request<ListWorkloadIdentityPoolProviderKeysResponse>;
|
|
2568
|
+
/** Undeletes an WorkloadIdentityPoolProviderKey, as long as it was deleted fewer than 30 days ago. */
|
|
2569
|
+
undelete(request: {
|
|
2570
|
+
/** V1 error format. */
|
|
2571
|
+
"$.xgafv"?: string;
|
|
2572
|
+
/** OAuth access token. */
|
|
2573
|
+
access_token?: string;
|
|
2574
|
+
/** Data format for response. */
|
|
2575
|
+
alt?: string;
|
|
2576
|
+
/** JSONP */
|
|
2577
|
+
callback?: string;
|
|
2578
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2579
|
+
fields?: string;
|
|
2580
|
+
/** 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. */
|
|
2581
|
+
key?: string;
|
|
2582
|
+
/** Required. The name of the encryption key to undelete. */
|
|
2583
|
+
name: string;
|
|
2584
|
+
/** OAuth 2.0 token for the current user. */
|
|
2585
|
+
oauth_token?: string;
|
|
2586
|
+
/** Returns response with indentations and line breaks. */
|
|
2587
|
+
prettyPrint?: boolean;
|
|
2588
|
+
/** 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. */
|
|
2589
|
+
quotaUser?: string;
|
|
2590
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2591
|
+
upload_protocol?: string;
|
|
2592
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2593
|
+
uploadType?: string;
|
|
2594
|
+
/** Request body */
|
|
2595
|
+
resource: UndeleteWorkloadIdentityPoolProviderKeyRequest;
|
|
2596
|
+
}): Request<Operation>;
|
|
2597
|
+
undelete(request: {
|
|
2598
|
+
/** V1 error format. */
|
|
2599
|
+
"$.xgafv"?: string;
|
|
2600
|
+
/** OAuth access token. */
|
|
2601
|
+
access_token?: string;
|
|
2602
|
+
/** Data format for response. */
|
|
2603
|
+
alt?: string;
|
|
2604
|
+
/** JSONP */
|
|
2605
|
+
callback?: string;
|
|
2606
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2607
|
+
fields?: string;
|
|
2608
|
+
/** 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. */
|
|
2609
|
+
key?: string;
|
|
2610
|
+
/** Required. The name of the encryption key to undelete. */
|
|
2611
|
+
name: string;
|
|
2612
|
+
/** OAuth 2.0 token for the current user. */
|
|
2613
|
+
oauth_token?: string;
|
|
2614
|
+
/** Returns response with indentations and line breaks. */
|
|
2615
|
+
prettyPrint?: boolean;
|
|
2616
|
+
/** 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. */
|
|
2617
|
+
quotaUser?: string;
|
|
2618
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2619
|
+
upload_protocol?: string;
|
|
2620
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2621
|
+
uploadType?: string;
|
|
2622
|
+
},
|
|
2623
|
+
body: UndeleteWorkloadIdentityPoolProviderKeyRequest): Request<Operation>;
|
|
2158
2624
|
operations: OperationsResource;
|
|
2159
2625
|
}
|
|
2160
2626
|
interface OperationsResource {
|
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: 20230320
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -226,6 +226,43 @@ gapi.load('client', async () => {
|
|
|
226
226
|
name: "Test string",
|
|
227
227
|
}, {
|
|
228
228
|
});
|
|
229
|
+
/** Creates a new WorkforcePoolProviderKey in a WorkforcePoolProvider. */
|
|
230
|
+
await gapi.client.iam.locations.workforcePools.providers.keys.create({
|
|
231
|
+
parent: "Test string",
|
|
232
|
+
workforcePoolProviderKeyId: "Test string",
|
|
233
|
+
}, {
|
|
234
|
+
expireTime: "Test string",
|
|
235
|
+
keyData: {
|
|
236
|
+
format: "Test string",
|
|
237
|
+
key: "Test string",
|
|
238
|
+
keySpec: "Test string",
|
|
239
|
+
notAfterTime: "Test string",
|
|
240
|
+
notBeforeTime: "Test string",
|
|
241
|
+
},
|
|
242
|
+
name: "Test string",
|
|
243
|
+
state: "Test string",
|
|
244
|
+
use: "Test string",
|
|
245
|
+
});
|
|
246
|
+
/** Deletes a WorkforcePoolProviderKey. You can undelete a key for 30 days. After 30 days, deletion is permanent. */
|
|
247
|
+
await gapi.client.iam.locations.workforcePools.providers.keys.delete({
|
|
248
|
+
name: "Test string",
|
|
249
|
+
});
|
|
250
|
+
/** Gets a WorkforcePoolProviderKey. */
|
|
251
|
+
await gapi.client.iam.locations.workforcePools.providers.keys.get({
|
|
252
|
+
name: "Test string",
|
|
253
|
+
});
|
|
254
|
+
/** Lists all non-deleted WorkforcePoolProviderKeys in a WorkforcePoolProvider. If `show_deleted` is set to `true`, then deleted keys are also listed. */
|
|
255
|
+
await gapi.client.iam.locations.workforcePools.providers.keys.list({
|
|
256
|
+
pageSize: 42,
|
|
257
|
+
pageToken: "Test string",
|
|
258
|
+
parent: "Test string",
|
|
259
|
+
showDeleted: true,
|
|
260
|
+
});
|
|
261
|
+
/** Undeletes a WorkforcePoolProviderKey, as long as it was deleted fewer than 30 days ago. */
|
|
262
|
+
await gapi.client.iam.locations.workforcePools.providers.keys.undelete({
|
|
263
|
+
name: "Test string",
|
|
264
|
+
}, {
|
|
265
|
+
});
|
|
229
266
|
/** 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. */
|
|
230
267
|
await gapi.client.iam.locations.workforcePools.providers.keys.operations.get({
|
|
231
268
|
name: "Test string",
|
|
@@ -446,6 +483,43 @@ gapi.load('client', async () => {
|
|
|
446
483
|
name: "Test string",
|
|
447
484
|
}, {
|
|
448
485
|
});
|
|
486
|
+
/** Create a new WorkloadIdentityPoolProviderKey in a WorkloadIdentityPoolProvider. */
|
|
487
|
+
await gapi.client.iam.projects.locations.workloadIdentityPools.providers.keys.create({
|
|
488
|
+
parent: "Test string",
|
|
489
|
+
workloadIdentityPoolProviderKeyId: "Test string",
|
|
490
|
+
}, {
|
|
491
|
+
expireTime: "Test string",
|
|
492
|
+
keyData: {
|
|
493
|
+
format: "Test string",
|
|
494
|
+
key: "Test string",
|
|
495
|
+
keySpec: "Test string",
|
|
496
|
+
notAfterTime: "Test string",
|
|
497
|
+
notBeforeTime: "Test string",
|
|
498
|
+
},
|
|
499
|
+
name: "Test string",
|
|
500
|
+
state: "Test string",
|
|
501
|
+
use: "Test string",
|
|
502
|
+
});
|
|
503
|
+
/** Deletes an WorkloadIdentityPoolProviderKey. You can undelete a key for 30 days. After 30 days, deletion is permanent. */
|
|
504
|
+
await gapi.client.iam.projects.locations.workloadIdentityPools.providers.keys.delete({
|
|
505
|
+
name: "Test string",
|
|
506
|
+
});
|
|
507
|
+
/** Gets an individual WorkloadIdentityPoolProviderKey. */
|
|
508
|
+
await gapi.client.iam.projects.locations.workloadIdentityPools.providers.keys.get({
|
|
509
|
+
name: "Test string",
|
|
510
|
+
});
|
|
511
|
+
/** Lists all non-deleted WorkloadIdentityPoolProviderKeys in a project. If show_deleted is set to `true`, then deleted pools are also listed. */
|
|
512
|
+
await gapi.client.iam.projects.locations.workloadIdentityPools.providers.keys.list({
|
|
513
|
+
pageSize: 42,
|
|
514
|
+
pageToken: "Test string",
|
|
515
|
+
parent: "Test string",
|
|
516
|
+
showDeleted: true,
|
|
517
|
+
});
|
|
518
|
+
/** Undeletes an WorkloadIdentityPoolProviderKey, as long as it was deleted fewer than 30 days ago. */
|
|
519
|
+
await gapi.client.iam.projects.locations.workloadIdentityPools.providers.keys.undelete({
|
|
520
|
+
name: "Test string",
|
|
521
|
+
}, {
|
|
522
|
+
});
|
|
449
523
|
/** 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
524
|
await gapi.client.iam.projects.locations.workloadIdentityPools.providers.keys.operations.get({
|
|
451
525
|
name: "Test string",
|