@maxim_mazurok/gapi.client.cloudkms-v1 0.0.20240418 → 0.0.20240502
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 +314 -1
- package/package.json +1 -1
- package/readme.md +16 -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://cloudkms.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20240502
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -76,6 +76,12 @@ declare namespace gapi.client {
|
|
|
76
76
|
/** The log type that this config enables. */
|
|
77
77
|
logType?: string;
|
|
78
78
|
}
|
|
79
|
+
interface AutokeyConfig {
|
|
80
|
+
/** Optional. Name of the key project, e.g. `projects/{PROJECT_ID}` or `projects/{PROJECT_NUMBER}`, where Cloud KMS Autokey will provision a new CryptoKey when a KeyHandle is created. On UpdateAutokeyConfig, the caller will require `cloudkms.cryptoKeys.setIamPolicy` permission on this key project. Once configured, for Cloud KMS Autokey to function properly, this key project must have the Cloud KMS API activated and the Cloud KMS Service Agent for this key project must be granted the `cloudkms.admin` role (or pertinent permissions). A request with an empty key project field will clear the configuration. */
|
|
81
|
+
keyProject?: string;
|
|
82
|
+
/** Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`. */
|
|
83
|
+
name?: string;
|
|
84
|
+
}
|
|
79
85
|
interface Binding {
|
|
80
86
|
/** 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). */
|
|
81
87
|
condition?: Expr;
|
|
@@ -311,6 +317,14 @@ declare namespace gapi.client {
|
|
|
311
317
|
/** Output only. The current state of the ImportJob, indicating if it can be used. */
|
|
312
318
|
state?: string;
|
|
313
319
|
}
|
|
320
|
+
interface KeyHandle {
|
|
321
|
+
/** Output only. Name of a CryptoKey that has been provisioned for Customer Managed Encryption Key (CMEK) use in the KeyHandle project and location for the requested resource type. The CryptoKey project will reflect the value configured in the AutokeyConfig on the resource project's ancestor folder at the time of the KeyHandle creation. If more than one ancestor folder has a configured AutokeyConfig, the nearest of these configurations is used. */
|
|
322
|
+
kmsKey?: string;
|
|
323
|
+
/** Output only. Identifier. Name of the KeyHandle resource, e.g. `projects/{PROJECT_ID}/locations/{LOCATION}/keyHandles/{KEY_HANDLE_ID}`. */
|
|
324
|
+
name?: string;
|
|
325
|
+
/** Required. Indicates the resource type that the resulting CryptoKey is meant to protect, e.g. `{SERVICE}.googleapis.com/{TYPE}`. See documentation for supported resource types. */
|
|
326
|
+
resourceTypeSelector?: string;
|
|
327
|
+
}
|
|
314
328
|
interface KeyOperationAttestation {
|
|
315
329
|
/** Output only. The certificate chains needed to validate the attestation */
|
|
316
330
|
certChains?: CertificateChains;
|
|
@@ -357,6 +371,10 @@ declare namespace gapi.client {
|
|
|
357
371
|
/** The total number of ImportJobs that matched the query. */
|
|
358
372
|
totalSize?: number;
|
|
359
373
|
}
|
|
374
|
+
interface ListKeyHandlesResponse {
|
|
375
|
+
/** Resulting KeyHandles. */
|
|
376
|
+
keyHandles?: KeyHandle[];
|
|
377
|
+
}
|
|
360
378
|
interface ListKeyRingsResponse {
|
|
361
379
|
/** The list of KeyRings. */
|
|
362
380
|
keyRings?: KeyRing[];
|
|
@@ -431,6 +449,18 @@ declare namespace gapi.client {
|
|
|
431
449
|
/** Integrity verification field. This value is used for the integrity verification of [MacVerifyResponse.success]. If the value of this field contradicts the value of [MacVerifyResponse.success], discard the response and perform a limited number of retries. */
|
|
432
450
|
verifiedSuccessIntegrity?: boolean;
|
|
433
451
|
}
|
|
452
|
+
interface Operation {
|
|
453
|
+
/** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */
|
|
454
|
+
done?: boolean;
|
|
455
|
+
/** The error result of the operation in case of failure or cancellation. */
|
|
456
|
+
error?: Status;
|
|
457
|
+
/** Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. */
|
|
458
|
+
metadata?: {[P in string]: any};
|
|
459
|
+
/** The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. */
|
|
460
|
+
name?: string;
|
|
461
|
+
/** The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */
|
|
462
|
+
response?: {[P in string]: any};
|
|
463
|
+
}
|
|
434
464
|
interface Policy {
|
|
435
465
|
/** Specifies cloud audit logging configuration for this policy. */
|
|
436
466
|
auditConfigs?: AuditConfig[];
|
|
@@ -536,6 +566,18 @@ declare namespace gapi.client {
|
|
|
536
566
|
/** OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: `paths: "bindings, etag"` */
|
|
537
567
|
updateMask?: string;
|
|
538
568
|
}
|
|
569
|
+
interface ShowEffectiveAutokeyConfigResponse {
|
|
570
|
+
/** Name of the key project configured in the resource project's folder ancestry. */
|
|
571
|
+
keyProject?: string;
|
|
572
|
+
}
|
|
573
|
+
interface Status {
|
|
574
|
+
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
575
|
+
code?: number;
|
|
576
|
+
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
577
|
+
details?: Array<{[P in string]: any}>;
|
|
578
|
+
/** 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. */
|
|
579
|
+
message?: string;
|
|
580
|
+
}
|
|
539
581
|
interface TestIamPermissionsRequest {
|
|
540
582
|
/** The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). */
|
|
541
583
|
permissions?: string[];
|
|
@@ -553,6 +595,97 @@ declare namespace gapi.client {
|
|
|
553
595
|
/** 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). */
|
|
554
596
|
pem?: string;
|
|
555
597
|
}
|
|
598
|
+
interface FoldersResource {
|
|
599
|
+
/** Returns the AutokeyConfig for a folder. */
|
|
600
|
+
getAutokeyConfig(request?: {
|
|
601
|
+
/** V1 error format. */
|
|
602
|
+
'$.xgafv'?: string;
|
|
603
|
+
/** OAuth access token. */
|
|
604
|
+
access_token?: string;
|
|
605
|
+
/** Data format for response. */
|
|
606
|
+
alt?: string;
|
|
607
|
+
/** JSONP */
|
|
608
|
+
callback?: string;
|
|
609
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
610
|
+
fields?: string;
|
|
611
|
+
/** 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. */
|
|
612
|
+
key?: string;
|
|
613
|
+
/** Required. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`. */
|
|
614
|
+
name: string;
|
|
615
|
+
/** OAuth 2.0 token for the current user. */
|
|
616
|
+
oauth_token?: string;
|
|
617
|
+
/** Returns response with indentations and line breaks. */
|
|
618
|
+
prettyPrint?: boolean;
|
|
619
|
+
/** 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. */
|
|
620
|
+
quotaUser?: string;
|
|
621
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
622
|
+
upload_protocol?: string;
|
|
623
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
624
|
+
uploadType?: string;
|
|
625
|
+
}): Request<AutokeyConfig>;
|
|
626
|
+
/** Updates the AutokeyConfig for a folder. The caller must have both `cloudkms.autokeyConfigs.update` permission on the parent folder and `cloudkms.cryptoKeys.setIamPolicy` permission on the provided key project. A KeyHandle creation in the folder's descendant projects will use this configuration to determine where to create the resulting CryptoKey. */
|
|
627
|
+
updateAutokeyConfig(request: {
|
|
628
|
+
/** V1 error format. */
|
|
629
|
+
'$.xgafv'?: string;
|
|
630
|
+
/** OAuth access token. */
|
|
631
|
+
access_token?: string;
|
|
632
|
+
/** Data format for response. */
|
|
633
|
+
alt?: string;
|
|
634
|
+
/** JSONP */
|
|
635
|
+
callback?: string;
|
|
636
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
637
|
+
fields?: string;
|
|
638
|
+
/** 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. */
|
|
639
|
+
key?: string;
|
|
640
|
+
/** Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`. */
|
|
641
|
+
name: string;
|
|
642
|
+
/** OAuth 2.0 token for the current user. */
|
|
643
|
+
oauth_token?: string;
|
|
644
|
+
/** Returns response with indentations and line breaks. */
|
|
645
|
+
prettyPrint?: boolean;
|
|
646
|
+
/** 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. */
|
|
647
|
+
quotaUser?: string;
|
|
648
|
+
/** Required. Masks which fields of the AutokeyConfig to update, e.g. `keyProject`. */
|
|
649
|
+
updateMask?: string;
|
|
650
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
651
|
+
upload_protocol?: string;
|
|
652
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
653
|
+
uploadType?: string;
|
|
654
|
+
/** Request body */
|
|
655
|
+
resource: AutokeyConfig;
|
|
656
|
+
}): Request<AutokeyConfig>;
|
|
657
|
+
updateAutokeyConfig(
|
|
658
|
+
request: {
|
|
659
|
+
/** V1 error format. */
|
|
660
|
+
'$.xgafv'?: string;
|
|
661
|
+
/** OAuth access token. */
|
|
662
|
+
access_token?: string;
|
|
663
|
+
/** Data format for response. */
|
|
664
|
+
alt?: string;
|
|
665
|
+
/** JSONP */
|
|
666
|
+
callback?: string;
|
|
667
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
668
|
+
fields?: string;
|
|
669
|
+
/** 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. */
|
|
670
|
+
key?: string;
|
|
671
|
+
/** Identifier. Name of the AutokeyConfig resource, e.g. `folders/{FOLDER_NUMBER}/autokeyConfig`. */
|
|
672
|
+
name: string;
|
|
673
|
+
/** OAuth 2.0 token for the current user. */
|
|
674
|
+
oauth_token?: string;
|
|
675
|
+
/** Returns response with indentations and line breaks. */
|
|
676
|
+
prettyPrint?: boolean;
|
|
677
|
+
/** 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. */
|
|
678
|
+
quotaUser?: string;
|
|
679
|
+
/** Required. Masks which fields of the AutokeyConfig to update, e.g. `keyProject`. */
|
|
680
|
+
updateMask?: string;
|
|
681
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
682
|
+
upload_protocol?: string;
|
|
683
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
684
|
+
uploadType?: string;
|
|
685
|
+
},
|
|
686
|
+
body: AutokeyConfig
|
|
687
|
+
): Request<AutokeyConfig>;
|
|
688
|
+
}
|
|
556
689
|
interface EkmConfigResource {
|
|
557
690
|
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
558
691
|
getIamPolicy(request?: {
|
|
@@ -948,6 +1081,126 @@ declare namespace gapi.client {
|
|
|
948
1081
|
uploadType?: string;
|
|
949
1082
|
}): Request<{}>;
|
|
950
1083
|
}
|
|
1084
|
+
interface KeyHandlesResource {
|
|
1085
|
+
/** Creates a new KeyHandle, triggering the provisioning of a new CryptoKey for CMEK use with the given resource type in the configured key project and the same location. GetOperation should be used to resolve the resulting long-running operation and get the resulting KeyHandle and CryptoKey. */
|
|
1086
|
+
create(request: {
|
|
1087
|
+
/** V1 error format. */
|
|
1088
|
+
'$.xgafv'?: string;
|
|
1089
|
+
/** OAuth access token. */
|
|
1090
|
+
access_token?: string;
|
|
1091
|
+
/** Data format for response. */
|
|
1092
|
+
alt?: string;
|
|
1093
|
+
/** JSONP */
|
|
1094
|
+
callback?: string;
|
|
1095
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1096
|
+
fields?: string;
|
|
1097
|
+
/** 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. */
|
|
1098
|
+
key?: string;
|
|
1099
|
+
/** Optional. Id of the KeyHandle. Must be unique to the resource project and location. If not provided by the caller, a new UUID is used. */
|
|
1100
|
+
keyHandleId?: string;
|
|
1101
|
+
/** OAuth 2.0 token for the current user. */
|
|
1102
|
+
oauth_token?: string;
|
|
1103
|
+
/** Required. Name of the resource project and location to create the KeyHandle in, e.g. `projects/{PROJECT_ID}/locations/{LOCATION}`. */
|
|
1104
|
+
parent: string;
|
|
1105
|
+
/** Returns response with indentations and line breaks. */
|
|
1106
|
+
prettyPrint?: boolean;
|
|
1107
|
+
/** 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. */
|
|
1108
|
+
quotaUser?: string;
|
|
1109
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1110
|
+
upload_protocol?: string;
|
|
1111
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1112
|
+
uploadType?: string;
|
|
1113
|
+
/** Request body */
|
|
1114
|
+
resource: KeyHandle;
|
|
1115
|
+
}): Request<Operation>;
|
|
1116
|
+
create(
|
|
1117
|
+
request: {
|
|
1118
|
+
/** V1 error format. */
|
|
1119
|
+
'$.xgafv'?: string;
|
|
1120
|
+
/** OAuth access token. */
|
|
1121
|
+
access_token?: string;
|
|
1122
|
+
/** Data format for response. */
|
|
1123
|
+
alt?: string;
|
|
1124
|
+
/** JSONP */
|
|
1125
|
+
callback?: string;
|
|
1126
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1127
|
+
fields?: string;
|
|
1128
|
+
/** 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. */
|
|
1129
|
+
key?: string;
|
|
1130
|
+
/** Optional. Id of the KeyHandle. Must be unique to the resource project and location. If not provided by the caller, a new UUID is used. */
|
|
1131
|
+
keyHandleId?: string;
|
|
1132
|
+
/** OAuth 2.0 token for the current user. */
|
|
1133
|
+
oauth_token?: string;
|
|
1134
|
+
/** Required. Name of the resource project and location to create the KeyHandle in, e.g. `projects/{PROJECT_ID}/locations/{LOCATION}`. */
|
|
1135
|
+
parent: string;
|
|
1136
|
+
/** Returns response with indentations and line breaks. */
|
|
1137
|
+
prettyPrint?: boolean;
|
|
1138
|
+
/** 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. */
|
|
1139
|
+
quotaUser?: string;
|
|
1140
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1141
|
+
upload_protocol?: string;
|
|
1142
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1143
|
+
uploadType?: string;
|
|
1144
|
+
},
|
|
1145
|
+
body: KeyHandle
|
|
1146
|
+
): Request<Operation>;
|
|
1147
|
+
/** Returns the KeyHandle. */
|
|
1148
|
+
get(request?: {
|
|
1149
|
+
/** V1 error format. */
|
|
1150
|
+
'$.xgafv'?: string;
|
|
1151
|
+
/** OAuth access token. */
|
|
1152
|
+
access_token?: string;
|
|
1153
|
+
/** Data format for response. */
|
|
1154
|
+
alt?: string;
|
|
1155
|
+
/** JSONP */
|
|
1156
|
+
callback?: string;
|
|
1157
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1158
|
+
fields?: string;
|
|
1159
|
+
/** 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. */
|
|
1160
|
+
key?: string;
|
|
1161
|
+
/** Required. Name of the KeyHandle resource, e.g. `projects/{PROJECT_ID}/locations/{LOCATION}/keyHandles/{KEY_HANDLE_ID}`. */
|
|
1162
|
+
name: string;
|
|
1163
|
+
/** OAuth 2.0 token for the current user. */
|
|
1164
|
+
oauth_token?: string;
|
|
1165
|
+
/** Returns response with indentations and line breaks. */
|
|
1166
|
+
prettyPrint?: boolean;
|
|
1167
|
+
/** 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. */
|
|
1168
|
+
quotaUser?: string;
|
|
1169
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1170
|
+
upload_protocol?: string;
|
|
1171
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1172
|
+
uploadType?: string;
|
|
1173
|
+
}): Request<KeyHandle>;
|
|
1174
|
+
/** Lists KeyHandles. */
|
|
1175
|
+
list(request?: {
|
|
1176
|
+
/** V1 error format. */
|
|
1177
|
+
'$.xgafv'?: string;
|
|
1178
|
+
/** OAuth access token. */
|
|
1179
|
+
access_token?: string;
|
|
1180
|
+
/** Data format for response. */
|
|
1181
|
+
alt?: string;
|
|
1182
|
+
/** JSONP */
|
|
1183
|
+
callback?: string;
|
|
1184
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1185
|
+
fields?: string;
|
|
1186
|
+
/** Optional. Filter to apply when listing KeyHandles, e.g. `resource_type_selector="{SERVICE}.googleapis.com/{TYPE}"`. */
|
|
1187
|
+
filter?: string;
|
|
1188
|
+
/** 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. */
|
|
1189
|
+
key?: string;
|
|
1190
|
+
/** OAuth 2.0 token for the current user. */
|
|
1191
|
+
oauth_token?: string;
|
|
1192
|
+
/** Required. Name of the resource project and location from which to list KeyHandles, e.g. `projects/{PROJECT_ID}/locations/{LOCATION}`. */
|
|
1193
|
+
parent: string;
|
|
1194
|
+
/** Returns response with indentations and line breaks. */
|
|
1195
|
+
prettyPrint?: boolean;
|
|
1196
|
+
/** 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. */
|
|
1197
|
+
quotaUser?: string;
|
|
1198
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1199
|
+
upload_protocol?: string;
|
|
1200
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1201
|
+
uploadType?: string;
|
|
1202
|
+
}): Request<ListKeyHandlesResponse>;
|
|
1203
|
+
}
|
|
951
1204
|
interface CryptoKeyVersionsResource {
|
|
952
1205
|
/** Decrypts data that was encrypted with a public key retrieved from GetPublicKey corresponding to a CryptoKeyVersion with CryptoKey.purpose ASYMMETRIC_DECRYPT. */
|
|
953
1206
|
asymmetricDecrypt(request: {
|
|
@@ -2573,6 +2826,35 @@ declare namespace gapi.client {
|
|
|
2573
2826
|
cryptoKeys: CryptoKeysResource;
|
|
2574
2827
|
importJobs: ImportJobsResource;
|
|
2575
2828
|
}
|
|
2829
|
+
interface OperationsResource {
|
|
2830
|
+
/** 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. */
|
|
2831
|
+
get(request?: {
|
|
2832
|
+
/** V1 error format. */
|
|
2833
|
+
'$.xgafv'?: string;
|
|
2834
|
+
/** OAuth access token. */
|
|
2835
|
+
access_token?: string;
|
|
2836
|
+
/** Data format for response. */
|
|
2837
|
+
alt?: string;
|
|
2838
|
+
/** JSONP */
|
|
2839
|
+
callback?: string;
|
|
2840
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2841
|
+
fields?: string;
|
|
2842
|
+
/** 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. */
|
|
2843
|
+
key?: string;
|
|
2844
|
+
/** The name of the operation resource. */
|
|
2845
|
+
name: string;
|
|
2846
|
+
/** OAuth 2.0 token for the current user. */
|
|
2847
|
+
oauth_token?: string;
|
|
2848
|
+
/** Returns response with indentations and line breaks. */
|
|
2849
|
+
prettyPrint?: boolean;
|
|
2850
|
+
/** 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. */
|
|
2851
|
+
quotaUser?: string;
|
|
2852
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2853
|
+
upload_protocol?: string;
|
|
2854
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2855
|
+
uploadType?: string;
|
|
2856
|
+
}): Request<Operation>;
|
|
2857
|
+
}
|
|
2576
2858
|
interface LocationsResource {
|
|
2577
2859
|
/** Generate random bytes using the Cloud KMS randomness source in the provided location. */
|
|
2578
2860
|
generateRandomBytes(request: {
|
|
@@ -2783,12 +3065,43 @@ declare namespace gapi.client {
|
|
|
2783
3065
|
): Request<EkmConfig>;
|
|
2784
3066
|
ekmConfig: EkmConfigResource;
|
|
2785
3067
|
ekmConnections: EkmConnectionsResource;
|
|
3068
|
+
keyHandles: KeyHandlesResource;
|
|
2786
3069
|
keyRings: KeyRingsResource;
|
|
3070
|
+
operations: OperationsResource;
|
|
2787
3071
|
}
|
|
2788
3072
|
interface ProjectsResource {
|
|
3073
|
+
/** Returns the effective Cloud KMS Autokey configuration for a given project. */
|
|
3074
|
+
showEffectiveAutokeyConfig(request?: {
|
|
3075
|
+
/** V1 error format. */
|
|
3076
|
+
'$.xgafv'?: string;
|
|
3077
|
+
/** OAuth access token. */
|
|
3078
|
+
access_token?: string;
|
|
3079
|
+
/** Data format for response. */
|
|
3080
|
+
alt?: string;
|
|
3081
|
+
/** JSONP */
|
|
3082
|
+
callback?: string;
|
|
3083
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3084
|
+
fields?: string;
|
|
3085
|
+
/** 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. */
|
|
3086
|
+
key?: string;
|
|
3087
|
+
/** OAuth 2.0 token for the current user. */
|
|
3088
|
+
oauth_token?: string;
|
|
3089
|
+
/** Required. Name of the resource project to the show effective Cloud KMS Autokey configuration for. This may be helpful for interrogating the effect of nested folder configurations on a given resource project. */
|
|
3090
|
+
parent: string;
|
|
3091
|
+
/** Returns response with indentations and line breaks. */
|
|
3092
|
+
prettyPrint?: boolean;
|
|
3093
|
+
/** 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. */
|
|
3094
|
+
quotaUser?: string;
|
|
3095
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3096
|
+
upload_protocol?: string;
|
|
3097
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3098
|
+
uploadType?: string;
|
|
3099
|
+
}): Request<ShowEffectiveAutokeyConfigResponse>;
|
|
2789
3100
|
locations: LocationsResource;
|
|
2790
3101
|
}
|
|
2791
3102
|
|
|
3103
|
+
const folders: FoldersResource;
|
|
3104
|
+
|
|
2792
3105
|
const projects: ProjectsResource;
|
|
2793
3106
|
}
|
|
2794
3107
|
}
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -72,5 +72,20 @@ gapi.auth.authorize(
|
|
|
72
72
|
After that you can use Cloud Key Management Service (KMS) API resources: <!-- TODO: make this work for multiple namespaces -->
|
|
73
73
|
|
|
74
74
|
```typescript
|
|
75
|
-
|
|
75
|
+
/*
|
|
76
|
+
Returns the AutokeyConfig for a folder.
|
|
77
|
+
*/
|
|
78
|
+
await gapi.client.cloudkms.folders.getAutokeyConfig({name: 'name'});
|
|
79
|
+
|
|
80
|
+
/*
|
|
81
|
+
Updates the AutokeyConfig for a folder. The caller must have both `cloudkms.autokeyConfigs.update` permission on the parent folder and `cloudkms.cryptoKeys.setIamPolicy` permission on the provided key project. A KeyHandle creation in the folder's descendant projects will use this configuration to determine where to create the resulting CryptoKey.
|
|
82
|
+
*/
|
|
83
|
+
await gapi.client.cloudkms.folders.updateAutokeyConfig({name: 'name'});
|
|
84
|
+
|
|
85
|
+
/*
|
|
86
|
+
Returns the effective Cloud KMS Autokey configuration for a given project.
|
|
87
|
+
*/
|
|
88
|
+
await gapi.client.cloudkms.projects.showEffectiveAutokeyConfig({
|
|
89
|
+
parent: 'parent',
|
|
90
|
+
});
|
|
76
91
|
```
|