Google Cloud Key Management Service
Manages cryptographic keys and operations using those keys. Implements a REST model with the following objects:
* * * *
If you are using manual gRPC libraries, see [Using gRPC with Cloud KMS](https://cloud.google.com/kms/docs/grpc). v1
Package
@google-cloud/kms!
Constructors
(constructor)(opts)
constructor(opts?: ClientOptions);
Construct an instance of KeyManagementServiceClient.
Parameter
| Type |
Name |
Description |
| ClientOptions |
opts |
|
Properties
apiEndpoint
static get apiEndpoint(): string;
The DNS address for this API service - same as servicePath(), exists for compatibility reasons.
Property Value
auth
Property Value
| Type |
Description |
| gax.GoogleAuth |
|
descriptors
descriptors: Descriptors;
Property Value
| Type |
Description |
| Descriptors |
|
iamClient
Property Value
| Type |
Description |
| IamClient |
|
innerApiCalls
innerApiCalls: {
[name: string]: Function;
};
Property Value
| Type |
Description |
| {
[name: string]: Function;
} |
|
keyManagementServiceStub
keyManagementServiceStub?: Promise<{
[name: string]: Function;
}>;
Property Value
| Type |
Description |
| Promise<{
[name: string]: Function;
}> |
|
pathTemplates
pathTemplates: {
[name: string]: gax.PathTemplate;
};
Property Value
| Type |
Description |
| {
[name: string]: gax.PathTemplate;
} |
|
port
static get port(): number;
The port for this API service.
Property Value
scopes
static get scopes(): string[];
The scopes needed to make gRPC calls for every method defined in this service.
Property Value
| Type |
Description |
| string[] |
|
servicePath
static get servicePath(): string;
The DNS address for this API service.
Property Value
warn
warn: (code: string, message: string, warnType?: string) => void;
Property Value
| Type |
Description |
| (code: string, message: string, warnType?: string) => void |
|
Methods
asymmetricDecrypt(request, options)
asymmetricDecrypt(request?: protos.google.cloud.kms.v1.IAsymmetricDecryptRequest, options?: CallOptions): Promise<[protos.google.cloud.kms.v1.IAsymmetricDecryptResponse, protos.google.cloud.kms.v1.IAsymmetricDecryptRequest | undefined, {} | undefined]>;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IAsymmetricDecryptRequest |
request |
|
| CallOptions |
options |
|
Returns
| Type |
Description |
| Promise<[protos.google.cloud.kms.v1.IAsymmetricDecryptResponse, protos.google.cloud.kms.v1.IAsymmetricDecryptRequest | undefined, {} | undefined]> |
|
asymmetricDecrypt(request, options, callback)
asymmetricDecrypt(request: protos.google.cloud.kms.v1.IAsymmetricDecryptRequest, options: CallOptions, callback: Callback<protos.google.cloud.kms.v1.IAsymmetricDecryptResponse, protos.google.cloud.kms.v1.IAsymmetricDecryptRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IAsymmetricDecryptRequest |
request |
|
| CallOptions |
options |
|
| Callback<protos.google.cloud.kms.v1.IAsymmetricDecryptResponse, protos.google.cloud.kms.v1.IAsymmetricDecryptRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
asymmetricDecrypt(request, callback)
asymmetricDecrypt(request: protos.google.cloud.kms.v1.IAsymmetricDecryptRequest, callback: Callback<protos.google.cloud.kms.v1.IAsymmetricDecryptResponse, protos.google.cloud.kms.v1.IAsymmetricDecryptRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IAsymmetricDecryptRequest |
request |
|
| Callback<protos.google.cloud.kms.v1.IAsymmetricDecryptResponse, protos.google.cloud.kms.v1.IAsymmetricDecryptRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
asymmetricSign(request, options)
asymmetricSign(request?: protos.google.cloud.kms.v1.IAsymmetricSignRequest, options?: CallOptions): Promise<[protos.google.cloud.kms.v1.IAsymmetricSignResponse, protos.google.cloud.kms.v1.IAsymmetricSignRequest | undefined, {} | undefined]>;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IAsymmetricSignRequest |
request |
|
| CallOptions |
options |
|
Returns
| Type |
Description |
| Promise<[protos.google.cloud.kms.v1.IAsymmetricSignResponse, protos.google.cloud.kms.v1.IAsymmetricSignRequest | undefined, {} | undefined]> |
|
asymmetricSign(request, options, callback)
asymmetricSign(request: protos.google.cloud.kms.v1.IAsymmetricSignRequest, options: CallOptions, callback: Callback<protos.google.cloud.kms.v1.IAsymmetricSignResponse, protos.google.cloud.kms.v1.IAsymmetricSignRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IAsymmetricSignRequest |
request |
|
| CallOptions |
options |
|
| Callback<protos.google.cloud.kms.v1.IAsymmetricSignResponse, protos.google.cloud.kms.v1.IAsymmetricSignRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
asymmetricSign(request, callback)
asymmetricSign(request: protos.google.cloud.kms.v1.IAsymmetricSignRequest, callback: Callback<protos.google.cloud.kms.v1.IAsymmetricSignResponse, protos.google.cloud.kms.v1.IAsymmetricSignRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IAsymmetricSignRequest |
request |
|
| Callback<protos.google.cloud.kms.v1.IAsymmetricSignResponse, protos.google.cloud.kms.v1.IAsymmetricSignRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
close()
Terminate the gRPC channel and close the client.
The client will no longer be usable and all future behavior is undefined.
Returns
| Type |
Description |
| Promise<void> |
{Promise} A promise that resolves when the client is closed.
|
createCryptoKey(request, options)
createCryptoKey(request?: protos.google.cloud.kms.v1.ICreateCryptoKeyRequest, options?: CallOptions): Promise<[protos.google.cloud.kms.v1.ICryptoKey, protos.google.cloud.kms.v1.ICreateCryptoKeyRequest | undefined, {} | undefined]>;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.ICreateCryptoKeyRequest |
request |
|
| CallOptions |
options |
|
Returns
| Type |
Description |
| Promise<[protos.google.cloud.kms.v1.ICryptoKey, protos.google.cloud.kms.v1.ICreateCryptoKeyRequest | undefined, {} | undefined]> |
|
createCryptoKey(request, options, callback)
createCryptoKey(request: protos.google.cloud.kms.v1.ICreateCryptoKeyRequest, options: CallOptions, callback: Callback<protos.google.cloud.kms.v1.ICryptoKey, protos.google.cloud.kms.v1.ICreateCryptoKeyRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.ICreateCryptoKeyRequest |
request |
|
| CallOptions |
options |
|
| Callback<protos.google.cloud.kms.v1.ICryptoKey, protos.google.cloud.kms.v1.ICreateCryptoKeyRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
createCryptoKey(request, callback)
createCryptoKey(request: protos.google.cloud.kms.v1.ICreateCryptoKeyRequest, callback: Callback<protos.google.cloud.kms.v1.ICryptoKey, protos.google.cloud.kms.v1.ICreateCryptoKeyRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.ICreateCryptoKeyRequest |
request |
|
| Callback<protos.google.cloud.kms.v1.ICryptoKey, protos.google.cloud.kms.v1.ICreateCryptoKeyRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
createCryptoKeyVersion(request, options)
createCryptoKeyVersion(request?: protos.google.cloud.kms.v1.ICreateCryptoKeyVersionRequest, options?: CallOptions): Promise<[protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.ICreateCryptoKeyVersionRequest | undefined, {} | undefined]>;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.ICreateCryptoKeyVersionRequest |
request |
|
| CallOptions |
options |
|
Returns
| Type |
Description |
| Promise<[protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.ICreateCryptoKeyVersionRequest | undefined, {} | undefined]> |
|
createCryptoKeyVersion(request, options, callback)
createCryptoKeyVersion(request: protos.google.cloud.kms.v1.ICreateCryptoKeyVersionRequest, options: CallOptions, callback: Callback<protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.ICreateCryptoKeyVersionRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.ICreateCryptoKeyVersionRequest |
request |
|
| CallOptions |
options |
|
| Callback<protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.ICreateCryptoKeyVersionRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
createCryptoKeyVersion(request, callback)
createCryptoKeyVersion(request: protos.google.cloud.kms.v1.ICreateCryptoKeyVersionRequest, callback: Callback<protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.ICreateCryptoKeyVersionRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.ICreateCryptoKeyVersionRequest |
request |
|
| Callback<protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.ICreateCryptoKeyVersionRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
createImportJob(request, options)
createImportJob(request?: protos.google.cloud.kms.v1.ICreateImportJobRequest, options?: CallOptions): Promise<[protos.google.cloud.kms.v1.IImportJob, protos.google.cloud.kms.v1.ICreateImportJobRequest | undefined, {} | undefined]>;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.ICreateImportJobRequest |
request |
|
| CallOptions |
options |
|
Returns
| Type |
Description |
| Promise<[protos.google.cloud.kms.v1.IImportJob, protos.google.cloud.kms.v1.ICreateImportJobRequest | undefined, {} | undefined]> |
|
createImportJob(request, options, callback)
createImportJob(request: protos.google.cloud.kms.v1.ICreateImportJobRequest, options: CallOptions, callback: Callback<protos.google.cloud.kms.v1.IImportJob, protos.google.cloud.kms.v1.ICreateImportJobRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.ICreateImportJobRequest |
request |
|
| CallOptions |
options |
|
| Callback<protos.google.cloud.kms.v1.IImportJob, protos.google.cloud.kms.v1.ICreateImportJobRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
createImportJob(request, callback)
createImportJob(request: protos.google.cloud.kms.v1.ICreateImportJobRequest, callback: Callback<protos.google.cloud.kms.v1.IImportJob, protos.google.cloud.kms.v1.ICreateImportJobRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.ICreateImportJobRequest |
request |
|
| Callback<protos.google.cloud.kms.v1.IImportJob, protos.google.cloud.kms.v1.ICreateImportJobRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
createKeyRing(request, options)
createKeyRing(request?: protos.google.cloud.kms.v1.ICreateKeyRingRequest, options?: CallOptions): Promise<[protos.google.cloud.kms.v1.IKeyRing, protos.google.cloud.kms.v1.ICreateKeyRingRequest | undefined, {} | undefined]>;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.ICreateKeyRingRequest |
request |
|
| CallOptions |
options |
|
Returns
| Type |
Description |
| Promise<[protos.google.cloud.kms.v1.IKeyRing, protos.google.cloud.kms.v1.ICreateKeyRingRequest | undefined, {} | undefined]> |
|
createKeyRing(request, options, callback)
createKeyRing(request: protos.google.cloud.kms.v1.ICreateKeyRingRequest, options: CallOptions, callback: Callback<protos.google.cloud.kms.v1.IKeyRing, protos.google.cloud.kms.v1.ICreateKeyRingRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.ICreateKeyRingRequest |
request |
|
| CallOptions |
options |
|
| Callback<protos.google.cloud.kms.v1.IKeyRing, protos.google.cloud.kms.v1.ICreateKeyRingRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
createKeyRing(request, callback)
createKeyRing(request: protos.google.cloud.kms.v1.ICreateKeyRingRequest, callback: Callback<protos.google.cloud.kms.v1.IKeyRing, protos.google.cloud.kms.v1.ICreateKeyRingRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.ICreateKeyRingRequest |
request |
|
| Callback<protos.google.cloud.kms.v1.IKeyRing, protos.google.cloud.kms.v1.ICreateKeyRingRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
cryptoKeyPath(project, location, keyRing, cryptoKey)
cryptoKeyPath(project: string, location: string, keyRing: string, cryptoKey: string): string;
Return a fully-qualified cryptoKey resource name string.
Parameters
| Type |
Name |
Description |
| string |
project |
|
| string |
location |
|
| string |
keyRing |
|
| string |
cryptoKey |
|
Returns
| Type |
Description |
| string |
{string} Resource name string.
|
cryptoKeyVersionPath(project, location, keyRing, cryptoKey, cryptoKeyVersion)
cryptoKeyVersionPath(project: string, location: string, keyRing: string, cryptoKey: string, cryptoKeyVersion: string): string;
Return a fully-qualified cryptoKeyVersion resource name string.
Parameters
| Type |
Name |
Description |
| string |
project |
|
| string |
location |
|
| string |
keyRing |
|
| string |
cryptoKey |
|
| string |
cryptoKeyVersion |
|
Returns
| Type |
Description |
| string |
{string} Resource name string.
|
decrypt(request, options)
decrypt(request?: protos.google.cloud.kms.v1.IDecryptRequest, options?: CallOptions): Promise<[protos.google.cloud.kms.v1.IDecryptResponse, protos.google.cloud.kms.v1.IDecryptRequest | undefined, {} | undefined]>;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IDecryptRequest |
request |
|
| CallOptions |
options |
|
Returns
| Type |
Description |
| Promise<[protos.google.cloud.kms.v1.IDecryptResponse, protos.google.cloud.kms.v1.IDecryptRequest | undefined, {} | undefined]> |
|
decrypt(request, options, callback)
decrypt(request: protos.google.cloud.kms.v1.IDecryptRequest, options: CallOptions, callback: Callback<protos.google.cloud.kms.v1.IDecryptResponse, protos.google.cloud.kms.v1.IDecryptRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IDecryptRequest |
request |
|
| CallOptions |
options |
|
| Callback<protos.google.cloud.kms.v1.IDecryptResponse, protos.google.cloud.kms.v1.IDecryptRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
decrypt(request, callback)
decrypt(request: protos.google.cloud.kms.v1.IDecryptRequest, callback: Callback<protos.google.cloud.kms.v1.IDecryptResponse, protos.google.cloud.kms.v1.IDecryptRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IDecryptRequest |
request |
|
| Callback<protos.google.cloud.kms.v1.IDecryptResponse, protos.google.cloud.kms.v1.IDecryptRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
destroyCryptoKeyVersion(request, options)
destroyCryptoKeyVersion(request?: protos.google.cloud.kms.v1.IDestroyCryptoKeyVersionRequest, options?: CallOptions): Promise<[protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.IDestroyCryptoKeyVersionRequest | undefined, {} | undefined]>;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IDestroyCryptoKeyVersionRequest |
request |
|
| CallOptions |
options |
|
Returns
| Type |
Description |
| Promise<[protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.IDestroyCryptoKeyVersionRequest | undefined, {} | undefined]> |
|
destroyCryptoKeyVersion(request, options, callback)
destroyCryptoKeyVersion(request: protos.google.cloud.kms.v1.IDestroyCryptoKeyVersionRequest, options: CallOptions, callback: Callback<protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.IDestroyCryptoKeyVersionRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IDestroyCryptoKeyVersionRequest |
request |
|
| CallOptions |
options |
|
| Callback<protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.IDestroyCryptoKeyVersionRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
destroyCryptoKeyVersion(request, callback)
destroyCryptoKeyVersion(request: protos.google.cloud.kms.v1.IDestroyCryptoKeyVersionRequest, callback: Callback<protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.IDestroyCryptoKeyVersionRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IDestroyCryptoKeyVersionRequest |
request |
|
| Callback<protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.IDestroyCryptoKeyVersionRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
encrypt(request, options)
encrypt(request?: protos.google.cloud.kms.v1.IEncryptRequest, options?: CallOptions): Promise<[protos.google.cloud.kms.v1.IEncryptResponse, protos.google.cloud.kms.v1.IEncryptRequest | undefined, {} | undefined]>;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IEncryptRequest |
request |
|
| CallOptions |
options |
|
Returns
| Type |
Description |
| Promise<[protos.google.cloud.kms.v1.IEncryptResponse, protos.google.cloud.kms.v1.IEncryptRequest | undefined, {} | undefined]> |
|
encrypt(request, options, callback)
encrypt(request: protos.google.cloud.kms.v1.IEncryptRequest, options: CallOptions, callback: Callback<protos.google.cloud.kms.v1.IEncryptResponse, protos.google.cloud.kms.v1.IEncryptRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IEncryptRequest |
request |
|
| CallOptions |
options |
|
| Callback<protos.google.cloud.kms.v1.IEncryptResponse, protos.google.cloud.kms.v1.IEncryptRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
encrypt(request, callback)
encrypt(request: protos.google.cloud.kms.v1.IEncryptRequest, callback: Callback<protos.google.cloud.kms.v1.IEncryptResponse, protos.google.cloud.kms.v1.IEncryptRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IEncryptRequest |
request |
|
| Callback<protos.google.cloud.kms.v1.IEncryptResponse, protos.google.cloud.kms.v1.IEncryptRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
getCryptoKey(request, options)
getCryptoKey(request?: protos.google.cloud.kms.v1.IGetCryptoKeyRequest, options?: CallOptions): Promise<[protos.google.cloud.kms.v1.ICryptoKey, protos.google.cloud.kms.v1.IGetCryptoKeyRequest | undefined, {} | undefined]>;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IGetCryptoKeyRequest |
request |
|
| CallOptions |
options |
|
Returns
| Type |
Description |
| Promise<[protos.google.cloud.kms.v1.ICryptoKey, protos.google.cloud.kms.v1.IGetCryptoKeyRequest | undefined, {} | undefined]> |
|
getCryptoKey(request, options, callback)
getCryptoKey(request: protos.google.cloud.kms.v1.IGetCryptoKeyRequest, options: CallOptions, callback: Callback<protos.google.cloud.kms.v1.ICryptoKey, protos.google.cloud.kms.v1.IGetCryptoKeyRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IGetCryptoKeyRequest |
request |
|
| CallOptions |
options |
|
| Callback<protos.google.cloud.kms.v1.ICryptoKey, protos.google.cloud.kms.v1.IGetCryptoKeyRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
getCryptoKey(request, callback)
getCryptoKey(request: protos.google.cloud.kms.v1.IGetCryptoKeyRequest, callback: Callback<protos.google.cloud.kms.v1.ICryptoKey, protos.google.cloud.kms.v1.IGetCryptoKeyRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IGetCryptoKeyRequest |
request |
|
| Callback<protos.google.cloud.kms.v1.ICryptoKey, protos.google.cloud.kms.v1.IGetCryptoKeyRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
getCryptoKeyVersion(request, options)
getCryptoKeyVersion(request?: protos.google.cloud.kms.v1.IGetCryptoKeyVersionRequest, options?: CallOptions): Promise<[protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.IGetCryptoKeyVersionRequest | undefined, {} | undefined]>;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IGetCryptoKeyVersionRequest |
request |
|
| CallOptions |
options |
|
Returns
| Type |
Description |
| Promise<[protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.IGetCryptoKeyVersionRequest | undefined, {} | undefined]> |
|
getCryptoKeyVersion(request, options, callback)
getCryptoKeyVersion(request: protos.google.cloud.kms.v1.IGetCryptoKeyVersionRequest, options: CallOptions, callback: Callback<protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.IGetCryptoKeyVersionRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IGetCryptoKeyVersionRequest |
request |
|
| CallOptions |
options |
|
| Callback<protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.IGetCryptoKeyVersionRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
getCryptoKeyVersion(request, callback)
getCryptoKeyVersion(request: protos.google.cloud.kms.v1.IGetCryptoKeyVersionRequest, callback: Callback<protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.IGetCryptoKeyVersionRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IGetCryptoKeyVersionRequest |
request |
|
| Callback<protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.IGetCryptoKeyVersionRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
getIamPolicy(request, options, callback)
getIamPolicy(request: IamProtos.google.iam.v1.GetIamPolicyRequest, options?: gax.CallOptions | Callback<IamProtos.google.iam.v1.Policy, IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, {} | null | undefined>, callback?: Callback<IamProtos.google.iam.v1.Policy, IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, {} | null | undefined>): Promise<IamProtos.google.iam.v1.Policy>;
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Parameters
| Type |
Name |
Description |
| IamProtos.google.iam.v1.GetIamPolicyRequest |
request |
The request object that will be sent.
|
| gax.CallOptions | Callback<IamProtos.google.iam.v1.Policy, IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, {} | null | undefined> |
options |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See [gax.CallOptions]https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html for the details.
|
| Callback<IamProtos.google.iam.v1.Policy, IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, {} | null | undefined> |
callback |
The function which will be called with the result of the API call.
The second parameter to the callback is an object representing [Policy].
|
Returns
| Type |
Description |
| Promise<IamProtos.google.iam.v1.Policy> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing [Policy]. The promise has a method named "cancel" which cancels the ongoing API call.
|
getImportJob(request, options)
getImportJob(request?: protos.google.cloud.kms.v1.IGetImportJobRequest, options?: CallOptions): Promise<[protos.google.cloud.kms.v1.IImportJob, protos.google.cloud.kms.v1.IGetImportJobRequest | undefined, {} | undefined]>;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IGetImportJobRequest |
request |
|
| CallOptions |
options |
|
Returns
| Type |
Description |
| Promise<[protos.google.cloud.kms.v1.IImportJob, protos.google.cloud.kms.v1.IGetImportJobRequest | undefined, {} | undefined]> |
|
getImportJob(request, options, callback)
getImportJob(request: protos.google.cloud.kms.v1.IGetImportJobRequest, options: CallOptions, callback: Callback<protos.google.cloud.kms.v1.IImportJob, protos.google.cloud.kms.v1.IGetImportJobRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IGetImportJobRequest |
request |
|
| CallOptions |
options |
|
| Callback<protos.google.cloud.kms.v1.IImportJob, protos.google.cloud.kms.v1.IGetImportJobRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
getImportJob(request, callback)
getImportJob(request: protos.google.cloud.kms.v1.IGetImportJobRequest, callback: Callback<protos.google.cloud.kms.v1.IImportJob, protos.google.cloud.kms.v1.IGetImportJobRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IGetImportJobRequest |
request |
|
| Callback<protos.google.cloud.kms.v1.IImportJob, protos.google.cloud.kms.v1.IGetImportJobRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
getKeyRing(request, options)
getKeyRing(request?: protos.google.cloud.kms.v1.IGetKeyRingRequest, options?: CallOptions): Promise<[protos.google.cloud.kms.v1.IKeyRing, protos.google.cloud.kms.v1.IGetKeyRingRequest | undefined, {} | undefined]>;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IGetKeyRingRequest |
request |
|
| CallOptions |
options |
|
Returns
| Type |
Description |
| Promise<[protos.google.cloud.kms.v1.IKeyRing, protos.google.cloud.kms.v1.IGetKeyRingRequest | undefined, {} | undefined]> |
|
getKeyRing(request, options, callback)
getKeyRing(request: protos.google.cloud.kms.v1.IGetKeyRingRequest, options: CallOptions, callback: Callback<protos.google.cloud.kms.v1.IKeyRing, protos.google.cloud.kms.v1.IGetKeyRingRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IGetKeyRingRequest |
request |
|
| CallOptions |
options |
|
| Callback<protos.google.cloud.kms.v1.IKeyRing, protos.google.cloud.kms.v1.IGetKeyRingRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
getKeyRing(request, callback)
getKeyRing(request: protos.google.cloud.kms.v1.IGetKeyRingRequest, callback: Callback<protos.google.cloud.kms.v1.IKeyRing, protos.google.cloud.kms.v1.IGetKeyRingRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IGetKeyRingRequest |
request |
|
| Callback<protos.google.cloud.kms.v1.IKeyRing, protos.google.cloud.kms.v1.IGetKeyRingRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
getProjectId()
getProjectId(): Promise<string>;
Returns
| Type |
Description |
| Promise<string> |
|
getProjectId(callback)
getProjectId(callback: Callback<string, undefined, undefined>): void;
Parameter
| Type |
Name |
Description |
| Callback<string, undefined, undefined> |
callback |
|
Returns
getPublicKey(request, options)
getPublicKey(request?: protos.google.cloud.kms.v1.IGetPublicKeyRequest, options?: CallOptions): Promise<[protos.google.cloud.kms.v1.IPublicKey, protos.google.cloud.kms.v1.IGetPublicKeyRequest | undefined, {} | undefined]>;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IGetPublicKeyRequest |
request |
|
| CallOptions |
options |
|
Returns
| Type |
Description |
| Promise<[protos.google.cloud.kms.v1.IPublicKey, protos.google.cloud.kms.v1.IGetPublicKeyRequest | undefined, {} | undefined]> |
|
getPublicKey(request, options, callback)
getPublicKey(request: protos.google.cloud.kms.v1.IGetPublicKeyRequest, options: CallOptions, callback: Callback<protos.google.cloud.kms.v1.IPublicKey, protos.google.cloud.kms.v1.IGetPublicKeyRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IGetPublicKeyRequest |
request |
|
| CallOptions |
options |
|
| Callback<protos.google.cloud.kms.v1.IPublicKey, protos.google.cloud.kms.v1.IGetPublicKeyRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
getPublicKey(request, callback)
getPublicKey(request: protos.google.cloud.kms.v1.IGetPublicKeyRequest, callback: Callback<protos.google.cloud.kms.v1.IPublicKey, protos.google.cloud.kms.v1.IGetPublicKeyRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IGetPublicKeyRequest |
request |
|
| Callback<protos.google.cloud.kms.v1.IPublicKey, protos.google.cloud.kms.v1.IGetPublicKeyRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
importCryptoKeyVersion(request, options)
importCryptoKeyVersion(request?: protos.google.cloud.kms.v1.IImportCryptoKeyVersionRequest, options?: CallOptions): Promise<[protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.IImportCryptoKeyVersionRequest | undefined, {} | undefined]>;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IImportCryptoKeyVersionRequest |
request |
|
| CallOptions |
options |
|
Returns
| Type |
Description |
| Promise<[protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.IImportCryptoKeyVersionRequest | undefined, {} | undefined]> |
|
importCryptoKeyVersion(request, options, callback)
importCryptoKeyVersion(request: protos.google.cloud.kms.v1.IImportCryptoKeyVersionRequest, options: CallOptions, callback: Callback<protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.IImportCryptoKeyVersionRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IImportCryptoKeyVersionRequest |
request |
|
| CallOptions |
options |
|
| Callback<protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.IImportCryptoKeyVersionRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
importCryptoKeyVersion(request, callback)
importCryptoKeyVersion(request: protos.google.cloud.kms.v1.IImportCryptoKeyVersionRequest, callback: Callback<protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.IImportCryptoKeyVersionRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IImportCryptoKeyVersionRequest |
request |
|
| Callback<protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.IImportCryptoKeyVersionRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
importJobPath(project, location, keyRing, importJob)
importJobPath(project: string, location: string, keyRing: string, importJob: string): string;
Return a fully-qualified importJob resource name string.
Parameters
| Type |
Name |
Description |
| string |
project |
|
| string |
location |
|
| string |
keyRing |
|
| string |
importJob |
|
Returns
| Type |
Description |
| string |
{string} Resource name string.
|
initialize()
initialize(): Promise<{
[name: string]: Function;
}>;
Initialize the client. Performs asynchronous operations (such as authentication) and prepares the client. This function will be called automatically when any class method is called for the first time, but if you need to initialize it before calling an actual method, feel free to call initialize() directly.
You can await on this method if you want to make sure the client is initialized.
Returns
| Type |
Description |
| Promise<{
[name: string]: Function;
}> |
{Promise} A promise that resolves to an authenticated service stub.
|
keyRingPath(project, location, keyRing)
keyRingPath(project: string, location: string, keyRing: string): string;
Return a fully-qualified keyRing resource name string.
Parameters
| Type |
Name |
Description |
| string |
project |
|
| string |
location |
|
| string |
keyRing |
|
Returns
| Type |
Description |
| string |
{string} Resource name string.
|
listCryptoKeys(request, options)
listCryptoKeys(request?: protos.google.cloud.kms.v1.IListCryptoKeysRequest, options?: CallOptions): Promise<[protos.google.cloud.kms.v1.ICryptoKey[], protos.google.cloud.kms.v1.IListCryptoKeysRequest | null, protos.google.cloud.kms.v1.IListCryptoKeysResponse]>;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IListCryptoKeysRequest |
request |
|
| CallOptions |
options |
|
Returns
| Type |
Description |
| Promise<[protos.google.cloud.kms.v1.ICryptoKey[], protos.google.cloud.kms.v1.IListCryptoKeysRequest | null, protos.google.cloud.kms.v1.IListCryptoKeysResponse]> |
|
listCryptoKeys(request, options, callback)
listCryptoKeys(request: protos.google.cloud.kms.v1.IListCryptoKeysRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.kms.v1.IListCryptoKeysRequest, protos.google.cloud.kms.v1.IListCryptoKeysResponse | null | undefined, protos.google.cloud.kms.v1.ICryptoKey>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IListCryptoKeysRequest |
request |
|
| CallOptions |
options |
|
| PaginationCallback<protos.google.cloud.kms.v1.IListCryptoKeysRequest, protos.google.cloud.kms.v1.IListCryptoKeysResponse | null | undefined, protos.google.cloud.kms.v1.ICryptoKey> |
callback |
|
Returns
listCryptoKeys(request, callback)
listCryptoKeys(request: protos.google.cloud.kms.v1.IListCryptoKeysRequest, callback: PaginationCallback<protos.google.cloud.kms.v1.IListCryptoKeysRequest, protos.google.cloud.kms.v1.IListCryptoKeysResponse | null | undefined, protos.google.cloud.kms.v1.ICryptoKey>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IListCryptoKeysRequest |
request |
|
| PaginationCallback<protos.google.cloud.kms.v1.IListCryptoKeysRequest, protos.google.cloud.kms.v1.IListCryptoKeysResponse | null | undefined, protos.google.cloud.kms.v1.ICryptoKey> |
callback |
|
Returns
listCryptoKeysAsync(request, options)
listCryptoKeysAsync(request?: protos.google.cloud.kms.v1.IListCryptoKeysRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.kms.v1.ICryptoKey>;
Equivalent to listCryptoKeys, but returns an iterable object.
for-await-of syntax is used with the iterable to get response elements on-demand.
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IListCryptoKeysRequest |
request |
The request object that will be sent.
|
| CallOptions |
options |
Call options. See CallOptions for more details.
|
Returns
| Type |
Description |
| AsyncIterable<protos.google.cloud.kms.v1.ICryptoKey> |
{Object} An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). When you iterate the returned iterable, each element will be an object representing [CryptoKey]. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.
|
listCryptoKeysStream(request, options)
listCryptoKeysStream(request?: protos.google.cloud.kms.v1.IListCryptoKeysRequest, options?: CallOptions): Transform;
Equivalent to method.name.toCamelCase(), but returns a NodeJS Stream object.
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IListCryptoKeysRequest |
request |
The request object that will be sent.
|
| CallOptions |
options |
Call options. See CallOptions for more details.
|
Returns
| Type |
Description |
| Transform |
{Stream} An object stream which emits an object representing [CryptoKey] on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using listCryptoKeysAsync() method described below for async iteration which you can stop as needed. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.
|
listCryptoKeyVersions(request, options)
listCryptoKeyVersions(request?: protos.google.cloud.kms.v1.IListCryptoKeyVersionsRequest, options?: CallOptions): Promise<[protos.google.cloud.kms.v1.ICryptoKeyVersion[], protos.google.cloud.kms.v1.IListCryptoKeyVersionsRequest | null, protos.google.cloud.kms.v1.IListCryptoKeyVersionsResponse]>;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IListCryptoKeyVersionsRequest |
request |
|
| CallOptions |
options |
|
Returns
| Type |
Description |
| Promise<[protos.google.cloud.kms.v1.ICryptoKeyVersion[], protos.google.cloud.kms.v1.IListCryptoKeyVersionsRequest | null, protos.google.cloud.kms.v1.IListCryptoKeyVersionsResponse]> |
|
listCryptoKeyVersions(request, options, callback)
listCryptoKeyVersions(request: protos.google.cloud.kms.v1.IListCryptoKeyVersionsRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.kms.v1.IListCryptoKeyVersionsRequest, protos.google.cloud.kms.v1.IListCryptoKeyVersionsResponse | null | undefined, protos.google.cloud.kms.v1.ICryptoKeyVersion>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IListCryptoKeyVersionsRequest |
request |
|
| CallOptions |
options |
|
| PaginationCallback<protos.google.cloud.kms.v1.IListCryptoKeyVersionsRequest, protos.google.cloud.kms.v1.IListCryptoKeyVersionsResponse | null | undefined, protos.google.cloud.kms.v1.ICryptoKeyVersion> |
callback |
|
Returns
listCryptoKeyVersions(request, callback)
listCryptoKeyVersions(request: protos.google.cloud.kms.v1.IListCryptoKeyVersionsRequest, callback: PaginationCallback<protos.google.cloud.kms.v1.IListCryptoKeyVersionsRequest, protos.google.cloud.kms.v1.IListCryptoKeyVersionsResponse | null | undefined, protos.google.cloud.kms.v1.ICryptoKeyVersion>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IListCryptoKeyVersionsRequest |
request |
|
| PaginationCallback<protos.google.cloud.kms.v1.IListCryptoKeyVersionsRequest, protos.google.cloud.kms.v1.IListCryptoKeyVersionsResponse | null | undefined, protos.google.cloud.kms.v1.ICryptoKeyVersion> |
callback |
|
Returns
listCryptoKeyVersionsAsync(request, options)
listCryptoKeyVersionsAsync(request?: protos.google.cloud.kms.v1.IListCryptoKeyVersionsRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.kms.v1.ICryptoKeyVersion>;
Equivalent to listCryptoKeyVersions, but returns an iterable object.
for-await-of syntax is used with the iterable to get response elements on-demand.
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IListCryptoKeyVersionsRequest |
request |
The request object that will be sent.
|
| CallOptions |
options |
Call options. See CallOptions for more details.
|
Returns
| Type |
Description |
| AsyncIterable<protos.google.cloud.kms.v1.ICryptoKeyVersion> |
{Object} An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). When you iterate the returned iterable, each element will be an object representing [CryptoKeyVersion]. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.
|
listCryptoKeyVersionsStream(request, options)
listCryptoKeyVersionsStream(request?: protos.google.cloud.kms.v1.IListCryptoKeyVersionsRequest, options?: CallOptions): Transform;
Equivalent to method.name.toCamelCase(), but returns a NodeJS Stream object.
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IListCryptoKeyVersionsRequest |
request |
The request object that will be sent.
|
| CallOptions |
options |
Call options. See CallOptions for more details.
|
Returns
| Type |
Description |
| Transform |
{Stream} An object stream which emits an object representing [CryptoKeyVersion] on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using listCryptoKeyVersionsAsync() method described below for async iteration which you can stop as needed. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.
|
listImportJobs(request, options)
listImportJobs(request?: protos.google.cloud.kms.v1.IListImportJobsRequest, options?: CallOptions): Promise<[protos.google.cloud.kms.v1.IImportJob[], protos.google.cloud.kms.v1.IListImportJobsRequest | null, protos.google.cloud.kms.v1.IListImportJobsResponse]>;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IListImportJobsRequest |
request |
|
| CallOptions |
options |
|
Returns
| Type |
Description |
| Promise<[protos.google.cloud.kms.v1.IImportJob[], protos.google.cloud.kms.v1.IListImportJobsRequest | null, protos.google.cloud.kms.v1.IListImportJobsResponse]> |
|
listImportJobs(request, options, callback)
listImportJobs(request: protos.google.cloud.kms.v1.IListImportJobsRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.kms.v1.IListImportJobsRequest, protos.google.cloud.kms.v1.IListImportJobsResponse | null | undefined, protos.google.cloud.kms.v1.IImportJob>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IListImportJobsRequest |
request |
|
| CallOptions |
options |
|
| PaginationCallback<protos.google.cloud.kms.v1.IListImportJobsRequest, protos.google.cloud.kms.v1.IListImportJobsResponse | null | undefined, protos.google.cloud.kms.v1.IImportJob> |
callback |
|
Returns
listImportJobs(request, callback)
listImportJobs(request: protos.google.cloud.kms.v1.IListImportJobsRequest, callback: PaginationCallback<protos.google.cloud.kms.v1.IListImportJobsRequest, protos.google.cloud.kms.v1.IListImportJobsResponse | null | undefined, protos.google.cloud.kms.v1.IImportJob>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IListImportJobsRequest |
request |
|
| PaginationCallback<protos.google.cloud.kms.v1.IListImportJobsRequest, protos.google.cloud.kms.v1.IListImportJobsResponse | null | undefined, protos.google.cloud.kms.v1.IImportJob> |
callback |
|
Returns
listImportJobsAsync(request, options)
listImportJobsAsync(request?: protos.google.cloud.kms.v1.IListImportJobsRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.kms.v1.IImportJob>;
Equivalent to listImportJobs, but returns an iterable object.
for-await-of syntax is used with the iterable to get response elements on-demand.
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IListImportJobsRequest |
request |
The request object that will be sent.
|
| CallOptions |
options |
Call options. See CallOptions for more details.
|
Returns
| Type |
Description |
| AsyncIterable<protos.google.cloud.kms.v1.IImportJob> |
{Object} An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). When you iterate the returned iterable, each element will be an object representing [ImportJob]. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.
|
listImportJobsStream(request, options)
listImportJobsStream(request?: protos.google.cloud.kms.v1.IListImportJobsRequest, options?: CallOptions): Transform;
Equivalent to method.name.toCamelCase(), but returns a NodeJS Stream object.
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IListImportJobsRequest |
request |
The request object that will be sent.
|
| CallOptions |
options |
Call options. See CallOptions for more details.
|
Returns
| Type |
Description |
| Transform |
{Stream} An object stream which emits an object representing [ImportJob] on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using listImportJobsAsync() method described below for async iteration which you can stop as needed. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.
|
listKeyRings(request, options)
listKeyRings(request?: protos.google.cloud.kms.v1.IListKeyRingsRequest, options?: CallOptions): Promise<[protos.google.cloud.kms.v1.IKeyRing[], protos.google.cloud.kms.v1.IListKeyRingsRequest | null, protos.google.cloud.kms.v1.IListKeyRingsResponse]>;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IListKeyRingsRequest |
request |
|
| CallOptions |
options |
|
Returns
| Type |
Description |
| Promise<[protos.google.cloud.kms.v1.IKeyRing[], protos.google.cloud.kms.v1.IListKeyRingsRequest | null, protos.google.cloud.kms.v1.IListKeyRingsResponse]> |
|
listKeyRings(request, options, callback)
listKeyRings(request: protos.google.cloud.kms.v1.IListKeyRingsRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.kms.v1.IListKeyRingsRequest, protos.google.cloud.kms.v1.IListKeyRingsResponse | null | undefined, protos.google.cloud.kms.v1.IKeyRing>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IListKeyRingsRequest |
request |
|
| CallOptions |
options |
|
| PaginationCallback<protos.google.cloud.kms.v1.IListKeyRingsRequest, protos.google.cloud.kms.v1.IListKeyRingsResponse | null | undefined, protos.google.cloud.kms.v1.IKeyRing> |
callback |
|
Returns
listKeyRings(request, callback)
listKeyRings(request: protos.google.cloud.kms.v1.IListKeyRingsRequest, callback: PaginationCallback<protos.google.cloud.kms.v1.IListKeyRingsRequest, protos.google.cloud.kms.v1.IListKeyRingsResponse | null | undefined, protos.google.cloud.kms.v1.IKeyRing>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IListKeyRingsRequest |
request |
|
| PaginationCallback<protos.google.cloud.kms.v1.IListKeyRingsRequest, protos.google.cloud.kms.v1.IListKeyRingsResponse | null | undefined, protos.google.cloud.kms.v1.IKeyRing> |
callback |
|
Returns
listKeyRingsAsync(request, options)
listKeyRingsAsync(request?: protos.google.cloud.kms.v1.IListKeyRingsRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.kms.v1.IKeyRing>;
Equivalent to listKeyRings, but returns an iterable object.
for-await-of syntax is used with the iterable to get response elements on-demand.
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IListKeyRingsRequest |
request |
The request object that will be sent.
|
| CallOptions |
options |
Call options. See CallOptions for more details.
|
Returns
| Type |
Description |
| AsyncIterable<protos.google.cloud.kms.v1.IKeyRing> |
{Object} An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). When you iterate the returned iterable, each element will be an object representing [KeyRing]. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.
|
listKeyRingsStream(request, options)
listKeyRingsStream(request?: protos.google.cloud.kms.v1.IListKeyRingsRequest, options?: CallOptions): Transform;
Equivalent to method.name.toCamelCase(), but returns a NodeJS Stream object.
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IListKeyRingsRequest |
request |
The request object that will be sent.
|
| CallOptions |
options |
Call options. See CallOptions for more details.
|
Returns
| Type |
Description |
| Transform |
{Stream} An object stream which emits an object representing [KeyRing] on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using listKeyRingsAsync() method described below for async iteration which you can stop as needed. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.
|
locationPath(project, location)
locationPath(project: string, location: string): string;
Return a fully-qualified location resource name string.
Parameters
| Type |
Name |
Description |
| string |
project |
|
| string |
location |
|
Returns
| Type |
Description |
| string |
{string} Resource name string.
|
matchCryptoKeyFromCryptoKeyName(cryptoKeyName)
matchCryptoKeyFromCryptoKeyName(cryptoKeyName: string): string | number;
Parse the crypto_key from CryptoKey resource.
Parameter
| Type |
Name |
Description |
| string |
cryptoKeyName |
A fully-qualified path representing CryptoKey resource.
|
Returns
| Type |
Description |
| string | number |
{string} A string representing the crypto_key.
|
matchCryptoKeyFromCryptoKeyVersionName(cryptoKeyVersionName)
matchCryptoKeyFromCryptoKeyVersionName(cryptoKeyVersionName: string): string | number;
Parse the crypto_key from CryptoKeyVersion resource.
Parameter
| Type |
Name |
Description |
| string |
cryptoKeyVersionName |
A fully-qualified path representing CryptoKeyVersion resource.
|
Returns
| Type |
Description |
| string | number |
{string} A string representing the crypto_key.
|
matchCryptoKeyFromPublicKeyName(publicKeyName)
matchCryptoKeyFromPublicKeyName(publicKeyName: string): string | number;
Parse the crypto_key from PublicKey resource.
Parameter
| Type |
Name |
Description |
| string |
publicKeyName |
A fully-qualified path representing PublicKey resource.
|
Returns
| Type |
Description |
| string | number |
{string} A string representing the crypto_key.
|
matchCryptoKeyVersionFromCryptoKeyVersionName(cryptoKeyVersionName)
matchCryptoKeyVersionFromCryptoKeyVersionName(cryptoKeyVersionName: string): string | number;
Parse the crypto_key_version from CryptoKeyVersion resource.
Parameter
| Type |
Name |
Description |
| string |
cryptoKeyVersionName |
A fully-qualified path representing CryptoKeyVersion resource.
|
Returns
| Type |
Description |
| string | number |
{string} A string representing the crypto_key_version.
|
matchCryptoKeyVersionFromPublicKeyName(publicKeyName)
matchCryptoKeyVersionFromPublicKeyName(publicKeyName: string): string | number;
Parse the crypto_key_version from PublicKey resource.
Parameter
| Type |
Name |
Description |
| string |
publicKeyName |
A fully-qualified path representing PublicKey resource.
|
Returns
| Type |
Description |
| string | number |
{string} A string representing the crypto_key_version.
|
matchImportJobFromImportJobName(importJobName)
matchImportJobFromImportJobName(importJobName: string): string | number;
Parse the import_job from ImportJob resource.
Parameter
| Type |
Name |
Description |
| string |
importJobName |
A fully-qualified path representing ImportJob resource.
|
Returns
| Type |
Description |
| string | number |
{string} A string representing the import_job.
|
matchKeyRingFromCryptoKeyName(cryptoKeyName)
matchKeyRingFromCryptoKeyName(cryptoKeyName: string): string | number;
Parse the key_ring from CryptoKey resource.
Parameter
| Type |
Name |
Description |
| string |
cryptoKeyName |
A fully-qualified path representing CryptoKey resource.
|
Returns
| Type |
Description |
| string | number |
{string} A string representing the key_ring.
|
matchKeyRingFromCryptoKeyVersionName(cryptoKeyVersionName)
matchKeyRingFromCryptoKeyVersionName(cryptoKeyVersionName: string): string | number;
Parse the key_ring from CryptoKeyVersion resource.
Parameter
| Type |
Name |
Description |
| string |
cryptoKeyVersionName |
A fully-qualified path representing CryptoKeyVersion resource.
|
Returns
| Type |
Description |
| string | number |
{string} A string representing the key_ring.
|
matchKeyRingFromImportJobName(importJobName)
matchKeyRingFromImportJobName(importJobName: string): string | number;
Parse the key_ring from ImportJob resource.
Parameter
| Type |
Name |
Description |
| string |
importJobName |
A fully-qualified path representing ImportJob resource.
|
Returns
| Type |
Description |
| string | number |
{string} A string representing the key_ring.
|
matchKeyRingFromKeyRingName(keyRingName)
matchKeyRingFromKeyRingName(keyRingName: string): string | number;
Parse the key_ring from KeyRing resource.
Parameter
| Type |
Name |
Description |
| string |
keyRingName |
A fully-qualified path representing KeyRing resource.
|
Returns
| Type |
Description |
| string | number |
{string} A string representing the key_ring.
|
matchKeyRingFromPublicKeyName(publicKeyName)
matchKeyRingFromPublicKeyName(publicKeyName: string): string | number;
Parse the key_ring from PublicKey resource.
Parameter
| Type |
Name |
Description |
| string |
publicKeyName |
A fully-qualified path representing PublicKey resource.
|
Returns
| Type |
Description |
| string | number |
{string} A string representing the key_ring.
|
matchLocationFromCryptoKeyName(cryptoKeyName)
matchLocationFromCryptoKeyName(cryptoKeyName: string): string | number;
Parse the location from CryptoKey resource.
Parameter
| Type |
Name |
Description |
| string |
cryptoKeyName |
A fully-qualified path representing CryptoKey resource.
|
Returns
| Type |
Description |
| string | number |
{string} A string representing the location.
|
matchLocationFromCryptoKeyVersionName(cryptoKeyVersionName)
matchLocationFromCryptoKeyVersionName(cryptoKeyVersionName: string): string | number;
Parse the location from CryptoKeyVersion resource.
Parameter
| Type |
Name |
Description |
| string |
cryptoKeyVersionName |
A fully-qualified path representing CryptoKeyVersion resource.
|
Returns
| Type |
Description |
| string | number |
{string} A string representing the location.
|
matchLocationFromImportJobName(importJobName)
matchLocationFromImportJobName(importJobName: string): string | number;
Parse the location from ImportJob resource.
Parameter
| Type |
Name |
Description |
| string |
importJobName |
A fully-qualified path representing ImportJob resource.
|
Returns
| Type |
Description |
| string | number |
{string} A string representing the location.
|
matchLocationFromKeyRingName(keyRingName)
matchLocationFromKeyRingName(keyRingName: string): string | number;
Parse the location from KeyRing resource.
Parameter
| Type |
Name |
Description |
| string |
keyRingName |
A fully-qualified path representing KeyRing resource.
|
Returns
| Type |
Description |
| string | number |
{string} A string representing the location.
|
matchLocationFromLocationName(locationName)
matchLocationFromLocationName(locationName: string): string | number;
Parse the location from Location resource.
Parameter
| Type |
Name |
Description |
| string |
locationName |
A fully-qualified path representing Location resource.
|
Returns
| Type |
Description |
| string | number |
{string} A string representing the location.
|
matchLocationFromPublicKeyName(publicKeyName)
matchLocationFromPublicKeyName(publicKeyName: string): string | number;
Parse the location from PublicKey resource.
Parameter
| Type |
Name |
Description |
| string |
publicKeyName |
A fully-qualified path representing PublicKey resource.
|
Returns
| Type |
Description |
| string | number |
{string} A string representing the location.
|
matchProjectFromCryptoKeyName(cryptoKeyName)
matchProjectFromCryptoKeyName(cryptoKeyName: string): string | number;
Parse the project from CryptoKey resource.
Parameter
| Type |
Name |
Description |
| string |
cryptoKeyName |
A fully-qualified path representing CryptoKey resource.
|
Returns
| Type |
Description |
| string | number |
{string} A string representing the project.
|
matchProjectFromCryptoKeyVersionName(cryptoKeyVersionName)
matchProjectFromCryptoKeyVersionName(cryptoKeyVersionName: string): string | number;
Parse the project from CryptoKeyVersion resource.
Parameter
| Type |
Name |
Description |
| string |
cryptoKeyVersionName |
A fully-qualified path representing CryptoKeyVersion resource.
|
Returns
| Type |
Description |
| string | number |
{string} A string representing the project.
|
matchProjectFromImportJobName(importJobName)
matchProjectFromImportJobName(importJobName: string): string | number;
Parse the project from ImportJob resource.
Parameter
| Type |
Name |
Description |
| string |
importJobName |
A fully-qualified path representing ImportJob resource.
|
Returns
| Type |
Description |
| string | number |
{string} A string representing the project.
|
matchProjectFromKeyRingName(keyRingName)
matchProjectFromKeyRingName(keyRingName: string): string | number;
Parse the project from KeyRing resource.
Parameter
| Type |
Name |
Description |
| string |
keyRingName |
A fully-qualified path representing KeyRing resource.
|
Returns
| Type |
Description |
| string | number |
{string} A string representing the project.
|
matchProjectFromLocationName(locationName)
matchProjectFromLocationName(locationName: string): string | number;
Parse the project from Location resource.
Parameter
| Type |
Name |
Description |
| string |
locationName |
A fully-qualified path representing Location resource.
|
Returns
| Type |
Description |
| string | number |
{string} A string representing the project.
|
matchProjectFromPublicKeyName(publicKeyName)
matchProjectFromPublicKeyName(publicKeyName: string): string | number;
Parse the project from PublicKey resource.
Parameter
| Type |
Name |
Description |
| string |
publicKeyName |
A fully-qualified path representing PublicKey resource.
|
Returns
| Type |
Description |
| string | number |
{string} A string representing the project.
|
publicKeyPath(project, location, keyRing, cryptoKey, cryptoKeyVersion)
publicKeyPath(project: string, location: string, keyRing: string, cryptoKey: string, cryptoKeyVersion: string): string;
Return a fully-qualified publicKey resource name string.
Parameters
| Type |
Name |
Description |
| string |
project |
|
| string |
location |
|
| string |
keyRing |
|
| string |
cryptoKey |
|
| string |
cryptoKeyVersion |
|
Returns
| Type |
Description |
| string |
{string} Resource name string.
|
restoreCryptoKeyVersion(request, options)
restoreCryptoKeyVersion(request?: protos.google.cloud.kms.v1.IRestoreCryptoKeyVersionRequest, options?: CallOptions): Promise<[protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.IRestoreCryptoKeyVersionRequest | undefined, {} | undefined]>;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IRestoreCryptoKeyVersionRequest |
request |
|
| CallOptions |
options |
|
Returns
| Type |
Description |
| Promise<[protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.IRestoreCryptoKeyVersionRequest | undefined, {} | undefined]> |
|
restoreCryptoKeyVersion(request, options, callback)
restoreCryptoKeyVersion(request: protos.google.cloud.kms.v1.IRestoreCryptoKeyVersionRequest, options: CallOptions, callback: Callback<protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.IRestoreCryptoKeyVersionRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IRestoreCryptoKeyVersionRequest |
request |
|
| CallOptions |
options |
|
| Callback<protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.IRestoreCryptoKeyVersionRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
restoreCryptoKeyVersion(request, callback)
restoreCryptoKeyVersion(request: protos.google.cloud.kms.v1.IRestoreCryptoKeyVersionRequest, callback: Callback<protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.IRestoreCryptoKeyVersionRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IRestoreCryptoKeyVersionRequest |
request |
|
| Callback<protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.IRestoreCryptoKeyVersionRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
setIamPolicy(request, options, callback)
setIamPolicy(request: IamProtos.google.iam.v1.SetIamPolicyRequest, options?: gax.CallOptions | Callback<IamProtos.google.iam.v1.Policy, IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, {} | null | undefined>, callback?: Callback<IamProtos.google.iam.v1.Policy, IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, {} | null | undefined>): Promise<IamProtos.google.iam.v1.Policy>;
Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
Parameters
| Type |
Name |
Description |
| IamProtos.google.iam.v1.SetIamPolicyRequest |
request |
The request object that will be sent.
|
| gax.CallOptions | Callback<IamProtos.google.iam.v1.Policy, IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, {} | null | undefined> |
options |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See [gax.CallOptions]https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html for the details.
|
| Callback<IamProtos.google.iam.v1.Policy, IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, {} | null | undefined> |
callback |
The function which will be called with the result of the API call.
The second parameter to the callback is an object representing [TestIamPermissionsResponse].
|
Returns
| Type |
Description |
| Promise<IamProtos.google.iam.v1.Policy> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing [TestIamPermissionsResponse]. The promise has a method named "cancel" which cancels the ongoing API call.
|
testIamPermissions(request, options, callback)
testIamPermissions(request: IamProtos.google.iam.v1.TestIamPermissionsRequest, options?: gax.CallOptions | Callback<IamProtos.google.iam.v1.TestIamPermissionsResponse, IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, {} | null | undefined>, callback?: Callback<IamProtos.google.iam.v1.TestIamPermissionsResponse, IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, {} | null | undefined>): Promise<IamProtos.google.iam.v1.TestIamPermissionsResponse>;
Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
Parameters
| Type |
Name |
Description |
| IamProtos.google.iam.v1.TestIamPermissionsRequest |
request |
The request object that will be sent.
|
| gax.CallOptions | Callback<IamProtos.google.iam.v1.TestIamPermissionsResponse, IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, {} | null | undefined> |
options |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See [gax.CallOptions]https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html for the details.
|
| Callback<IamProtos.google.iam.v1.TestIamPermissionsResponse, IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, {} | null | undefined> |
callback |
The function which will be called with the result of the API call.
The second parameter to the callback is an object representing [TestIamPermissionsResponse].
|
Returns
| Type |
Description |
| Promise<IamProtos.google.iam.v1.TestIamPermissionsResponse> |
{Promise} - The promise which resolves to an array. The first element of the array is an object representing [TestIamPermissionsResponse]. The promise has a method named "cancel" which cancels the ongoing API call.
|
updateCryptoKey(request, options)
updateCryptoKey(request?: protos.google.cloud.kms.v1.IUpdateCryptoKeyRequest, options?: CallOptions): Promise<[protos.google.cloud.kms.v1.ICryptoKey, protos.google.cloud.kms.v1.IUpdateCryptoKeyRequest | undefined, {} | undefined]>;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IUpdateCryptoKeyRequest |
request |
|
| CallOptions |
options |
|
Returns
| Type |
Description |
| Promise<[protos.google.cloud.kms.v1.ICryptoKey, protos.google.cloud.kms.v1.IUpdateCryptoKeyRequest | undefined, {} | undefined]> |
|
updateCryptoKey(request, options, callback)
updateCryptoKey(request: protos.google.cloud.kms.v1.IUpdateCryptoKeyRequest, options: CallOptions, callback: Callback<protos.google.cloud.kms.v1.ICryptoKey, protos.google.cloud.kms.v1.IUpdateCryptoKeyRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IUpdateCryptoKeyRequest |
request |
|
| CallOptions |
options |
|
| Callback<protos.google.cloud.kms.v1.ICryptoKey, protos.google.cloud.kms.v1.IUpdateCryptoKeyRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
updateCryptoKey(request, callback)
updateCryptoKey(request: protos.google.cloud.kms.v1.IUpdateCryptoKeyRequest, callback: Callback<protos.google.cloud.kms.v1.ICryptoKey, protos.google.cloud.kms.v1.IUpdateCryptoKeyRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IUpdateCryptoKeyRequest |
request |
|
| Callback<protos.google.cloud.kms.v1.ICryptoKey, protos.google.cloud.kms.v1.IUpdateCryptoKeyRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
updateCryptoKeyPrimaryVersion(request, options)
updateCryptoKeyPrimaryVersion(request?: protos.google.cloud.kms.v1.IUpdateCryptoKeyPrimaryVersionRequest, options?: CallOptions): Promise<[protos.google.cloud.kms.v1.ICryptoKey, (protos.google.cloud.kms.v1.IUpdateCryptoKeyPrimaryVersionRequest | undefined), {} | undefined]>;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IUpdateCryptoKeyPrimaryVersionRequest |
request |
|
| CallOptions |
options |
|
Returns
| Type |
Description |
| Promise<[protos.google.cloud.kms.v1.ICryptoKey, (protos.google.cloud.kms.v1.IUpdateCryptoKeyPrimaryVersionRequest | undefined), {} | undefined]> |
|
updateCryptoKeyPrimaryVersion(request, options, callback)
updateCryptoKeyPrimaryVersion(request: protos.google.cloud.kms.v1.IUpdateCryptoKeyPrimaryVersionRequest, options: CallOptions, callback: Callback<protos.google.cloud.kms.v1.ICryptoKey, protos.google.cloud.kms.v1.IUpdateCryptoKeyPrimaryVersionRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IUpdateCryptoKeyPrimaryVersionRequest |
request |
|
| CallOptions |
options |
|
| Callback<protos.google.cloud.kms.v1.ICryptoKey, protos.google.cloud.kms.v1.IUpdateCryptoKeyPrimaryVersionRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
updateCryptoKeyPrimaryVersion(request, callback)
updateCryptoKeyPrimaryVersion(request: protos.google.cloud.kms.v1.IUpdateCryptoKeyPrimaryVersionRequest, callback: Callback<protos.google.cloud.kms.v1.ICryptoKey, protos.google.cloud.kms.v1.IUpdateCryptoKeyPrimaryVersionRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IUpdateCryptoKeyPrimaryVersionRequest |
request |
|
| Callback<protos.google.cloud.kms.v1.ICryptoKey, protos.google.cloud.kms.v1.IUpdateCryptoKeyPrimaryVersionRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
updateCryptoKeyVersion(request, options)
updateCryptoKeyVersion(request?: protos.google.cloud.kms.v1.IUpdateCryptoKeyVersionRequest, options?: CallOptions): Promise<[protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.IUpdateCryptoKeyVersionRequest | undefined, {} | undefined]>;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IUpdateCryptoKeyVersionRequest |
request |
|
| CallOptions |
options |
|
Returns
| Type |
Description |
| Promise<[protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.IUpdateCryptoKeyVersionRequest | undefined, {} | undefined]> |
|
updateCryptoKeyVersion(request, options, callback)
updateCryptoKeyVersion(request: protos.google.cloud.kms.v1.IUpdateCryptoKeyVersionRequest, options: CallOptions, callback: Callback<protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.IUpdateCryptoKeyVersionRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IUpdateCryptoKeyVersionRequest |
request |
|
| CallOptions |
options |
|
| Callback<protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.IUpdateCryptoKeyVersionRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns
updateCryptoKeyVersion(request, callback)
updateCryptoKeyVersion(request: protos.google.cloud.kms.v1.IUpdateCryptoKeyVersionRequest, callback: Callback<protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.IUpdateCryptoKeyVersionRequest | null | undefined, {} | null | undefined>): void;
Parameters
| Type |
Name |
Description |
| protos.google.cloud.kms.v1.IUpdateCryptoKeyVersionRequest |
request |
|
| Callback<protos.google.cloud.kms.v1.ICryptoKeyVersion, protos.google.cloud.kms.v1.IUpdateCryptoKeyVersionRequest | null | undefined, {} | null | undefined> |
callback |
|
Returns