@maxim_mazurok/gapi.client.cloudkms-v1 0.2.20260226 → 0.2.20260522
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 +66 -42
- package/package.json +1 -1
- package/readme.md +12 -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://cloudkms.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260522
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -114,14 +114,15 @@ declare namespace gapi.client {
|
|
|
114
114
|
| 'DEDICATED_KEY_PROJECT'
|
|
115
115
|
| 'RESOURCE_PROJECT'
|
|
116
116
|
| 'DISABLED';
|
|
117
|
-
/** Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig` or `projects/{
|
|
117
|
+
/** Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`, `projects/{PROJECT_NUMBER}/autokeyConfig`, or `projects/{PROJECT_ID}/autokeyConfig`. */
|
|
118
118
|
name?: string;
|
|
119
119
|
/** Output only. The state for the AutokeyConfig. */
|
|
120
120
|
state?:
|
|
121
121
|
| 'STATE_UNSPECIFIED'
|
|
122
122
|
| 'ACTIVE'
|
|
123
123
|
| 'KEY_PROJECT_DELETED'
|
|
124
|
-
| 'UNINITIALIZED'
|
|
124
|
+
| 'UNINITIALIZED'
|
|
125
|
+
| 'KEY_PROJECT_PERMISSION_DENIED';
|
|
125
126
|
}
|
|
126
127
|
interface Binding {
|
|
127
128
|
/** The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */
|
|
@@ -186,7 +187,7 @@ declare namespace gapi.client {
|
|
|
186
187
|
destroyScheduledDuration?: string;
|
|
187
188
|
/** Immutable. Whether this key may contain imported versions only. */
|
|
188
189
|
importOnly?: boolean;
|
|
189
|
-
/** Optional. The policy used for Key Access Justifications Policy Enforcement. If this field is present and this key is enrolled in Key Access Justifications Policy Enforcement, the policy will be evaluated in encrypt, decrypt, and sign operations, and the operation will fail if rejected by the policy. The policy is defined by specifying zero or more allowed justification codes. https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes By default, this field is absent, and all justification codes are allowed. */
|
|
190
|
+
/** Optional. The policy used for Key Access Justifications Policy Enforcement. If this field is present and this key is enrolled in Key Access Justifications Policy Enforcement, the policy will be evaluated in encrypt, decrypt, and sign operations, and the operation will fail if rejected by the policy. The policy is defined by specifying zero or more allowed justification codes. https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes By default, this field is absent, and all justification codes are allowed. If the `key_access_justifications_policy.allowed_access_reasons` is empty (zero allowed justification code), all encrypt, decrypt, and sign operations will fail. */
|
|
190
191
|
keyAccessJustificationsPolicy?: KeyAccessJustificationsPolicy;
|
|
191
192
|
/** Labels with user-defined metadata. For more information, see [Labeling Keys](https://cloud.google.com/kms/docs/labeling-keys). */
|
|
192
193
|
labels?: {[P in string]: string};
|
|
@@ -600,7 +601,10 @@ declare namespace gapi.client {
|
|
|
600
601
|
| 'RSA_OAEP_3072_SHA256_AES_256'
|
|
601
602
|
| 'RSA_OAEP_4096_SHA256_AES_256'
|
|
602
603
|
| 'RSA_OAEP_3072_SHA256'
|
|
603
|
-
| 'RSA_OAEP_4096_SHA256'
|
|
604
|
+
| 'RSA_OAEP_4096_SHA256'
|
|
605
|
+
| 'HPKE_KEM_ML_KEM_768_HKDF_SHA256_AES_256_GCM'
|
|
606
|
+
| 'HPKE_KEM_ML_KEM_1024_HKDF_SHA256_AES_256_GCM'
|
|
607
|
+
| 'HPKE_KEM_XWING_HKDF_SHA256_AES_256_GCM';
|
|
604
608
|
/** Output only. The resource name for this ImportJob in the format `projects/*/locations/*/keyRings/*/importJobs/*`. */
|
|
605
609
|
name?: string;
|
|
606
610
|
/** Required. Immutable. The protection level of the ImportJob. This must match the protection_level of the version_template on the CryptoKey you attempt to import into. */
|
|
@@ -613,6 +617,13 @@ declare namespace gapi.client {
|
|
|
613
617
|
| 'HSM_SINGLE_TENANT';
|
|
614
618
|
/** Output only. The public key with which to wrap key material prior to import. Only returned if state is ACTIVE. */
|
|
615
619
|
publicKey?: WrappingPublicKey;
|
|
620
|
+
/** Output only. Specifies the WrappingPublicKey format provided by the customer in the KeyManagementService.GetImportJob request. */
|
|
621
|
+
publicKeyFormat?:
|
|
622
|
+
| 'PUBLIC_KEY_FORMAT_UNSPECIFIED'
|
|
623
|
+
| 'PEM'
|
|
624
|
+
| 'DER'
|
|
625
|
+
| 'NIST_PQC'
|
|
626
|
+
| 'XWING_RAW_BYTES';
|
|
616
627
|
/** Output only. The current state of the ImportJob, indicating if it can be used. */
|
|
617
628
|
state?:
|
|
618
629
|
| 'IMPORT_JOB_STATE_UNSPECIFIED'
|
|
@@ -621,13 +632,13 @@ declare namespace gapi.client {
|
|
|
621
632
|
| 'EXPIRED';
|
|
622
633
|
}
|
|
623
634
|
interface KeyAccessJustificationsEnrollmentConfig {
|
|
624
|
-
/**
|
|
635
|
+
/** Indicates whether the project has KAJ logging enabled. */
|
|
625
636
|
auditLogging?: boolean;
|
|
626
|
-
/**
|
|
637
|
+
/** Indicates whether the project is enrolled in KAJ policy enforcement. */
|
|
627
638
|
policyEnforcement?: boolean;
|
|
628
639
|
}
|
|
629
640
|
interface KeyAccessJustificationsPolicy {
|
|
630
|
-
/** The list of allowed reasons for access to a CryptoKey.
|
|
641
|
+
/** The list of allowed reasons for access to a CryptoKey. Note that empty allowed_access_reasons has a different meaning depending on where this message appears. If this is under KeyAccessJustificationsPolicyConfig, it means allow-all. If this is under CryptoKey, it means deny-all. */
|
|
631
642
|
allowedAccessReasons?:
|
|
632
643
|
| 'REASON_UNSPECIFIED'
|
|
633
644
|
| 'CUSTOMER_INITIATED_SUPPORT'
|
|
@@ -643,9 +654,11 @@ declare namespace gapi.client {
|
|
|
643
654
|
| 'CUSTOMER_AUTHORIZED_WORKFLOW_SERVICING'[];
|
|
644
655
|
}
|
|
645
656
|
interface KeyAccessJustificationsPolicyConfig {
|
|
646
|
-
/** Optional.
|
|
657
|
+
/** Optional. Specifies the default key access justifications (KAJ) policy used when a CryptoKey is created in this folder. This is only used when a Key Access Justifications policy is not provided in the CreateCryptoKeyRequest. This overrides any default policies in its ancestry. If this field is unset, or is set but contains an empty allowed_access_reasons list, no default Key Access Justifications (KAJ) policy configuration is active. In this scenario, all newly created keys will default to an "allow-all" policy. */
|
|
647
658
|
defaultKeyAccessJustificationPolicy?: KeyAccessJustificationsPolicy;
|
|
648
|
-
/**
|
|
659
|
+
/** Output only. Indicates whether this parent resource is available to default policy feature. Please consult [the prerequisite of default policy feature](https://cloud.google.com/assured-workloads/key-access-justifications/docs/set-default-policy#before) for more details. */
|
|
660
|
+
defaultPolicyAvailable?: boolean;
|
|
661
|
+
/** Identifier. Represents the resource name for this KeyAccessJustificationsPolicyConfig in the format of "{organizations|folders|projects}/*/kajPolicyConfig". */
|
|
649
662
|
name?: string;
|
|
650
663
|
}
|
|
651
664
|
interface KeyHandle {
|
|
@@ -1076,15 +1089,15 @@ declare namespace gapi.client {
|
|
|
1076
1089
|
keyProject?: string;
|
|
1077
1090
|
}
|
|
1078
1091
|
interface ShowEffectiveKeyAccessJustificationsEnrollmentConfigResponse {
|
|
1079
|
-
/**
|
|
1092
|
+
/** Contains the effective KeyAccessJustificationsEnrollmentConfig for external keys. */
|
|
1080
1093
|
externalConfig?: KeyAccessJustificationsEnrollmentConfig;
|
|
1081
|
-
/**
|
|
1094
|
+
/** Contains the effective KeyAccessJustificationsEnrollmentConfig for hardware keys. */
|
|
1082
1095
|
hardwareConfig?: KeyAccessJustificationsEnrollmentConfig;
|
|
1083
|
-
/**
|
|
1096
|
+
/** Contains the effective KeyAccessJustificationsEnrollmentConfig for software keys. */
|
|
1084
1097
|
softwareConfig?: KeyAccessJustificationsEnrollmentConfig;
|
|
1085
1098
|
}
|
|
1086
1099
|
interface ShowEffectiveKeyAccessJustificationsPolicyConfigResponse {
|
|
1087
|
-
/**
|
|
1100
|
+
/** Contains the effective KeyAccessJustificationsPolicyConfig. */
|
|
1088
1101
|
effectiveKajPolicy?: KeyAccessJustificationsPolicyConfig;
|
|
1089
1102
|
}
|
|
1090
1103
|
interface SingleTenantHsmInstance {
|
|
@@ -1094,6 +1107,8 @@ declare namespace gapi.client {
|
|
|
1094
1107
|
deleteTime?: string;
|
|
1095
1108
|
/** Output only. The time at which the instance will be automatically disabled if not refreshed. This field is updated upon creation and after each successful refresh operation and enable. A RefreshSingleTenantHsmInstance operation must be made via a SingleTenantHsmInstanceProposal before this time otherwise the SingleTenantHsmInstance will become disabled. */
|
|
1096
1109
|
disableTime?: string;
|
|
1110
|
+
/** Optional. Immutable. Indicates whether key portability is enabled for the SingleTenantHsmInstance. This can only be set at creation time. Key portability features are disabled by default and not yet available in GA. */
|
|
1111
|
+
keyPortabilityEnabled?: boolean;
|
|
1097
1112
|
/** Identifier. The resource name for this SingleTenantHsmInstance in the format `projects/*/locations/*/singleTenantHsmInstances/*`. */
|
|
1098
1113
|
name?: string;
|
|
1099
1114
|
/** Required. The quorum auth configuration for the SingleTenantHsmInstance. */
|
|
@@ -1109,7 +1124,7 @@ declare namespace gapi.client {
|
|
|
1109
1124
|
| 'DELETING'
|
|
1110
1125
|
| 'DELETED'
|
|
1111
1126
|
| 'FAILED';
|
|
1112
|
-
/** Output only. The system-defined duration that an instance can remain unrefreshed until it is automatically disabled. This will have a value of
|
|
1127
|
+
/** Output only. The system-defined duration that an instance can remain unrefreshed until it is automatically disabled. This will have a value of 730 days. */
|
|
1113
1128
|
unrefreshedDurationUntilDisable?: string;
|
|
1114
1129
|
}
|
|
1115
1130
|
interface SingleTenantHsmInstanceProposal {
|
|
@@ -1160,7 +1175,7 @@ declare namespace gapi.client {
|
|
|
1160
1175
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
1161
1176
|
code?: number;
|
|
1162
1177
|
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
1163
|
-
details?:
|
|
1178
|
+
details?: {[P in string]: any}[];
|
|
1164
1179
|
/** 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. */
|
|
1165
1180
|
message?: string;
|
|
1166
1181
|
}
|
|
@@ -1178,7 +1193,9 @@ declare namespace gapi.client {
|
|
|
1178
1193
|
}
|
|
1179
1194
|
interface VerifyConnectivityResponse {}
|
|
1180
1195
|
interface WrappingPublicKey {
|
|
1181
|
-
/**
|
|
1196
|
+
/** Output only. Contains the public key, formatted according to the PublicKey.PublicKeyFormat specified in the KeyManagementService.GetImportJob request. */
|
|
1197
|
+
data?: string;
|
|
1198
|
+
/** The public key, encoded in PEM format. For more information, see the [RFC 7468](https://tools.ietf.org/html/rfc7468) sections for [General Considerations](https://tools.ietf.org/html/rfc7468#section-2) and [Textual Encoding of Subject Public Key Info] (https://tools.ietf.org/html/rfc7468#section-13). This field gets populated by default for RSA-based import methods, if no public_key_format is specified in the request. If you want to retrieve the wrapping key of an ImportJob in some other format, use KeyManagementService.GetImportJob and set the public_key_format to the desired public key format. */
|
|
1182
1199
|
pem?: string;
|
|
1183
1200
|
}
|
|
1184
1201
|
interface FoldersResource {
|
|
@@ -1196,7 +1213,7 @@ declare namespace gapi.client {
|
|
|
1196
1213
|
fields?: string;
|
|
1197
1214
|
/** 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. */
|
|
1198
1215
|
key?: string;
|
|
1199
|
-
/** Required. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig` or `projects/{
|
|
1216
|
+
/** Required. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`, `projects/{PROJECT_NUMBER}/autokeyConfig`, or `projects/{PROJECT_ID}/autokeyConfig`. */
|
|
1200
1217
|
name: string;
|
|
1201
1218
|
/** OAuth 2.0 token for the current user. */
|
|
1202
1219
|
oauth_token?: string;
|
|
@@ -1223,7 +1240,7 @@ declare namespace gapi.client {
|
|
|
1223
1240
|
fields?: string;
|
|
1224
1241
|
/** 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. */
|
|
1225
1242
|
key?: string;
|
|
1226
|
-
/** Required.
|
|
1243
|
+
/** Required. Specifies the name of the KeyAccessJustificationsPolicyConfig to get. */
|
|
1227
1244
|
name: string;
|
|
1228
1245
|
/** OAuth 2.0 token for the current user. */
|
|
1229
1246
|
oauth_token?: string;
|
|
@@ -1250,7 +1267,7 @@ declare namespace gapi.client {
|
|
|
1250
1267
|
fields?: string;
|
|
1251
1268
|
/** 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. */
|
|
1252
1269
|
key?: string;
|
|
1253
|
-
/** Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig` or `projects/{
|
|
1270
|
+
/** Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`, `projects/{PROJECT_NUMBER}/autokeyConfig`, or `projects/{PROJECT_ID}/autokeyConfig`. */
|
|
1254
1271
|
name: string;
|
|
1255
1272
|
/** OAuth 2.0 token for the current user. */
|
|
1256
1273
|
oauth_token?: string;
|
|
@@ -1281,7 +1298,7 @@ declare namespace gapi.client {
|
|
|
1281
1298
|
fields?: string;
|
|
1282
1299
|
/** 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. */
|
|
1283
1300
|
key?: string;
|
|
1284
|
-
/** Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig` or `projects/{
|
|
1301
|
+
/** Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`, `projects/{PROJECT_NUMBER}/autokeyConfig`, or `projects/{PROJECT_ID}/autokeyConfig`. */
|
|
1285
1302
|
name: string;
|
|
1286
1303
|
/** OAuth 2.0 token for the current user. */
|
|
1287
1304
|
oauth_token?: string;
|
|
@@ -1312,7 +1329,7 @@ declare namespace gapi.client {
|
|
|
1312
1329
|
fields?: string;
|
|
1313
1330
|
/** 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. */
|
|
1314
1331
|
key?: string;
|
|
1315
|
-
/** Identifier.
|
|
1332
|
+
/** Identifier. Represents the resource name for this KeyAccessJustificationsPolicyConfig in the format of "{organizations|folders|projects}/*/kajPolicyConfig". */
|
|
1316
1333
|
name: string;
|
|
1317
1334
|
/** OAuth 2.0 token for the current user. */
|
|
1318
1335
|
oauth_token?: string;
|
|
@@ -1320,7 +1337,7 @@ declare namespace gapi.client {
|
|
|
1320
1337
|
prettyPrint?: boolean;
|
|
1321
1338
|
/** 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. */
|
|
1322
1339
|
quotaUser?: string;
|
|
1323
|
-
/** Optional.
|
|
1340
|
+
/** Optional. Specifies the list of fields to update. */
|
|
1324
1341
|
updateMask?: string;
|
|
1325
1342
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1326
1343
|
upload_protocol?: string;
|
|
@@ -1343,7 +1360,7 @@ declare namespace gapi.client {
|
|
|
1343
1360
|
fields?: string;
|
|
1344
1361
|
/** 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. */
|
|
1345
1362
|
key?: string;
|
|
1346
|
-
/** Identifier.
|
|
1363
|
+
/** Identifier. Represents the resource name for this KeyAccessJustificationsPolicyConfig in the format of "{organizations|folders|projects}/*/kajPolicyConfig". */
|
|
1347
1364
|
name: string;
|
|
1348
1365
|
/** OAuth 2.0 token for the current user. */
|
|
1349
1366
|
oauth_token?: string;
|
|
@@ -1351,7 +1368,7 @@ declare namespace gapi.client {
|
|
|
1351
1368
|
prettyPrint?: boolean;
|
|
1352
1369
|
/** 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. */
|
|
1353
1370
|
quotaUser?: string;
|
|
1354
|
-
/** Optional.
|
|
1371
|
+
/** Optional. Specifies the list of fields to update. */
|
|
1355
1372
|
updateMask?: string;
|
|
1356
1373
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1357
1374
|
upload_protocol?: string;
|
|
@@ -1376,7 +1393,7 @@ declare namespace gapi.client {
|
|
|
1376
1393
|
fields?: string;
|
|
1377
1394
|
/** 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. */
|
|
1378
1395
|
key?: string;
|
|
1379
|
-
/** Required.
|
|
1396
|
+
/** Required. Specifies the name of the KeyAccessJustificationsPolicyConfig to get. */
|
|
1380
1397
|
name: string;
|
|
1381
1398
|
/** OAuth 2.0 token for the current user. */
|
|
1382
1399
|
oauth_token?: string;
|
|
@@ -1403,7 +1420,7 @@ declare namespace gapi.client {
|
|
|
1403
1420
|
fields?: string;
|
|
1404
1421
|
/** 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. */
|
|
1405
1422
|
key?: string;
|
|
1406
|
-
/** Identifier.
|
|
1423
|
+
/** Identifier. Represents the resource name for this KeyAccessJustificationsPolicyConfig in the format of "{organizations|folders|projects}/*/kajPolicyConfig". */
|
|
1407
1424
|
name: string;
|
|
1408
1425
|
/** OAuth 2.0 token for the current user. */
|
|
1409
1426
|
oauth_token?: string;
|
|
@@ -1411,7 +1428,7 @@ declare namespace gapi.client {
|
|
|
1411
1428
|
prettyPrint?: boolean;
|
|
1412
1429
|
/** 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. */
|
|
1413
1430
|
quotaUser?: string;
|
|
1414
|
-
/** Optional.
|
|
1431
|
+
/** Optional. Specifies the list of fields to update. */
|
|
1415
1432
|
updateMask?: string;
|
|
1416
1433
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1417
1434
|
upload_protocol?: string;
|
|
@@ -1434,7 +1451,7 @@ declare namespace gapi.client {
|
|
|
1434
1451
|
fields?: string;
|
|
1435
1452
|
/** 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. */
|
|
1436
1453
|
key?: string;
|
|
1437
|
-
/** Identifier.
|
|
1454
|
+
/** Identifier. Represents the resource name for this KeyAccessJustificationsPolicyConfig in the format of "{organizations|folders|projects}/*/kajPolicyConfig". */
|
|
1438
1455
|
name: string;
|
|
1439
1456
|
/** OAuth 2.0 token for the current user. */
|
|
1440
1457
|
oauth_token?: string;
|
|
@@ -1442,7 +1459,7 @@ declare namespace gapi.client {
|
|
|
1442
1459
|
prettyPrint?: boolean;
|
|
1443
1460
|
/** 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. */
|
|
1444
1461
|
quotaUser?: string;
|
|
1445
|
-
/** Optional.
|
|
1462
|
+
/** Optional. Specifies the list of fields to update. */
|
|
1446
1463
|
updateMask?: string;
|
|
1447
1464
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1448
1465
|
upload_protocol?: string;
|
|
@@ -3366,6 +3383,13 @@ declare namespace gapi.client {
|
|
|
3366
3383
|
oauth_token?: string;
|
|
3367
3384
|
/** Returns response with indentations and line breaks. */
|
|
3368
3385
|
prettyPrint?: boolean;
|
|
3386
|
+
/** Optional. Specifies the WrappingPublicKey format. If not specified: * For RSA-based import methods, the wrapping key will be returned in PEM format * For pure ML-KEM-based import methods, the wrapping key will be returned in the raw bytes format specified in FIPS-203 * For X-Wing-based import methods, the wrapping key will be returned in the raw bytes format specified in https://datatracker.ietf.org/doc/draft-connolly-cfrg-xwing-kem. */
|
|
3387
|
+
publicKeyFormat?:
|
|
3388
|
+
| 'PUBLIC_KEY_FORMAT_UNSPECIFIED'
|
|
3389
|
+
| 'PEM'
|
|
3390
|
+
| 'DER'
|
|
3391
|
+
| 'NIST_PQC'
|
|
3392
|
+
| 'XWING_RAW_BYTES';
|
|
3369
3393
|
/** 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. */
|
|
3370
3394
|
quotaUser?: string;
|
|
3371
3395
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
@@ -4317,7 +4341,7 @@ declare namespace gapi.client {
|
|
|
4317
4341
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
4318
4342
|
uploadType?: string;
|
|
4319
4343
|
}): Request<EkmConfig>;
|
|
4320
|
-
/** Lists information about the supported locations for this service. This method
|
|
4344
|
+
/** Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version. */
|
|
4321
4345
|
list(request?: {
|
|
4322
4346
|
/** V1 error format. */
|
|
4323
4347
|
'$.xgafv'?: '1' | '2';
|
|
@@ -4327,7 +4351,7 @@ declare namespace gapi.client {
|
|
|
4327
4351
|
alt?: 'json' | 'media' | 'proto';
|
|
4328
4352
|
/** JSONP */
|
|
4329
4353
|
callback?: string;
|
|
4330
|
-
/** Optional. Do not use this field
|
|
4354
|
+
/** Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. */
|
|
4331
4355
|
extraLocationTypes?: string | string[];
|
|
4332
4356
|
/** Selector specifying which fields to include in a partial response. */
|
|
4333
4357
|
fields?: string;
|
|
@@ -4437,7 +4461,7 @@ declare namespace gapi.client {
|
|
|
4437
4461
|
fields?: string;
|
|
4438
4462
|
/** 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. */
|
|
4439
4463
|
key?: string;
|
|
4440
|
-
/** Required. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig` or `projects/{
|
|
4464
|
+
/** Required. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`, `projects/{PROJECT_NUMBER}/autokeyConfig`, or `projects/{PROJECT_ID}/autokeyConfig`. */
|
|
4441
4465
|
name: string;
|
|
4442
4466
|
/** OAuth 2.0 token for the current user. */
|
|
4443
4467
|
oauth_token?: string;
|
|
@@ -4464,7 +4488,7 @@ declare namespace gapi.client {
|
|
|
4464
4488
|
fields?: string;
|
|
4465
4489
|
/** 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. */
|
|
4466
4490
|
key?: string;
|
|
4467
|
-
/** Required.
|
|
4491
|
+
/** Required. Specifies the name of the KeyAccessJustificationsPolicyConfig to get. */
|
|
4468
4492
|
name: string;
|
|
4469
4493
|
/** OAuth 2.0 token for the current user. */
|
|
4470
4494
|
oauth_token?: string;
|
|
@@ -4522,7 +4546,7 @@ declare namespace gapi.client {
|
|
|
4522
4546
|
oauth_token?: string;
|
|
4523
4547
|
/** Returns response with indentations and line breaks. */
|
|
4524
4548
|
prettyPrint?: boolean;
|
|
4525
|
-
/** Required.
|
|
4549
|
+
/** Required. Specifies the number or id of the project to get the effective KeyAccessJustificationsEnrollmentConfig for. */
|
|
4526
4550
|
project: string;
|
|
4527
4551
|
/** 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. */
|
|
4528
4552
|
quotaUser?: string;
|
|
@@ -4549,7 +4573,7 @@ declare namespace gapi.client {
|
|
|
4549
4573
|
oauth_token?: string;
|
|
4550
4574
|
/** Returns response with indentations and line breaks. */
|
|
4551
4575
|
prettyPrint?: boolean;
|
|
4552
|
-
/** Required.
|
|
4576
|
+
/** Required. Specifies the number or id of the project to get the effective KeyAccessJustificationsPolicyConfig. In the format of "projects/{|}" */
|
|
4553
4577
|
project: string;
|
|
4554
4578
|
/** 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. */
|
|
4555
4579
|
quotaUser?: string;
|
|
@@ -4572,7 +4596,7 @@ declare namespace gapi.client {
|
|
|
4572
4596
|
fields?: string;
|
|
4573
4597
|
/** 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. */
|
|
4574
4598
|
key?: string;
|
|
4575
|
-
/** Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig` or `projects/{
|
|
4599
|
+
/** Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`, `projects/{PROJECT_NUMBER}/autokeyConfig`, or `projects/{PROJECT_ID}/autokeyConfig`. */
|
|
4576
4600
|
name: string;
|
|
4577
4601
|
/** OAuth 2.0 token for the current user. */
|
|
4578
4602
|
oauth_token?: string;
|
|
@@ -4603,7 +4627,7 @@ declare namespace gapi.client {
|
|
|
4603
4627
|
fields?: string;
|
|
4604
4628
|
/** 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. */
|
|
4605
4629
|
key?: string;
|
|
4606
|
-
/** Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig` or `projects/{
|
|
4630
|
+
/** Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`, `projects/{PROJECT_NUMBER}/autokeyConfig`, or `projects/{PROJECT_ID}/autokeyConfig`. */
|
|
4607
4631
|
name: string;
|
|
4608
4632
|
/** OAuth 2.0 token for the current user. */
|
|
4609
4633
|
oauth_token?: string;
|
|
@@ -4634,7 +4658,7 @@ declare namespace gapi.client {
|
|
|
4634
4658
|
fields?: string;
|
|
4635
4659
|
/** 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. */
|
|
4636
4660
|
key?: string;
|
|
4637
|
-
/** Identifier.
|
|
4661
|
+
/** Identifier. Represents the resource name for this KeyAccessJustificationsPolicyConfig in the format of "{organizations|folders|projects}/*/kajPolicyConfig". */
|
|
4638
4662
|
name: string;
|
|
4639
4663
|
/** OAuth 2.0 token for the current user. */
|
|
4640
4664
|
oauth_token?: string;
|
|
@@ -4642,7 +4666,7 @@ declare namespace gapi.client {
|
|
|
4642
4666
|
prettyPrint?: boolean;
|
|
4643
4667
|
/** 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. */
|
|
4644
4668
|
quotaUser?: string;
|
|
4645
|
-
/** Optional.
|
|
4669
|
+
/** Optional. Specifies the list of fields to update. */
|
|
4646
4670
|
updateMask?: string;
|
|
4647
4671
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4648
4672
|
upload_protocol?: string;
|
|
@@ -4665,7 +4689,7 @@ declare namespace gapi.client {
|
|
|
4665
4689
|
fields?: string;
|
|
4666
4690
|
/** 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. */
|
|
4667
4691
|
key?: string;
|
|
4668
|
-
/** Identifier.
|
|
4692
|
+
/** Identifier. Represents the resource name for this KeyAccessJustificationsPolicyConfig in the format of "{organizations|folders|projects}/*/kajPolicyConfig". */
|
|
4669
4693
|
name: string;
|
|
4670
4694
|
/** OAuth 2.0 token for the current user. */
|
|
4671
4695
|
oauth_token?: string;
|
|
@@ -4673,7 +4697,7 @@ declare namespace gapi.client {
|
|
|
4673
4697
|
prettyPrint?: boolean;
|
|
4674
4698
|
/** 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. */
|
|
4675
4699
|
quotaUser?: string;
|
|
4676
|
-
/** Optional.
|
|
4700
|
+
/** Optional. Specifies the list of fields to update. */
|
|
4677
4701
|
updateMask?: string;
|
|
4678
4702
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4679
4703
|
upload_protocol?: string;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,6 +11,18 @@ Install typings for Cloud Key Management Service (KMS) API:
|
|
|
11
11
|
npm install @types/gapi.client.cloudkms-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": ["gapi", "gapi.auth2", "gapi.client", "gapi.client.cloudkms-v1"]
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
14
26
|
## Usage
|
|
15
27
|
|
|
16
28
|
You need to initialize Google API client in your code:
|