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.
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.
Type | Description |
---|---|
string |
auth
auth
:
gax
.
GoogleAuth
;
Type | Description |
---|---|
gax. GoogleAuth |
descriptors
descriptors
:
Descriptors
;
Type | Description |
---|---|
Descriptors |
iamClient
iamClient
:
IamClient
;
Type | Description |
---|---|
IamClient |
innerApiCalls
innerApiCalls
:
{
[
name
:
string
]
:
Function
;
};
Type | Description |
---|---|
{ [name: string]: Function ; } |
keyManagementServiceStub
keyManagementServiceStub
?:
Promise
< {
[
name
:
string
]
:
Function
;
}>;
Type | Description |
---|---|
Promise <{ [name: string]: Function ; }> |
pathTemplates
pathTemplates
:
{
[
name
:
string
]
:
gax
.
PathTemplate
;
};
Type | Description |
---|---|
{ [name: string]: gax. PathTemplate ; } |
port
static
get
port
()
:
number
;
The port for this API service.
Type | Description |
---|---|
number |
scopes
static
get
scopes
()
:
string
[];
The scopes needed to make gRPC calls for every method defined in this service.
Type | Description |
---|---|
string[] |
servicePath
static
get
servicePath
()
:
string
;
The DNS address for this API service.
Type | Description |
---|---|
string |
warn
warn
:
(
code
:
string
,
message
:
string
,
warnType
?:
string
)
=
>
void
;
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
]>;
Type | Name | Description |
---|---|---|
protos. google.cloud.kms.v1.IAsymmetricDecryptRequest
|
request | |
CallOptions
|
options |
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
;
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 |
Type | Description |
---|---|
void |
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
;
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 |
Type | Description |
---|---|
void |
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
]>;
Type | Name | Description |
---|---|---|
protos. google.cloud.kms.v1.IAsymmetricSignRequest
|
request | |
CallOptions
|
options |
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
;
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 |
Type | Description |
---|---|
void |
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
;
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 |
Type | Description |
---|---|
void |
close()
close
()
:
Promise<void>
;
Terminate the gRPC channel and close the client.
The client will no longer be usable and all future behavior is undefined.
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
]>;
Type | Name | Description |
---|---|---|
protos. google.cloud.kms.v1.ICreateCryptoKeyRequest
|
request | |
CallOptions
|
options |
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
;
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 |
Type | Description |
---|---|
void |
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
;
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 |
Type | Description |
---|---|
void |
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
]>;
Type | Name | Description |
---|---|---|
protos. google.cloud.kms.v1.ICreateCryptoKeyVersionRequest
|
request | |
CallOptions
|
options |
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
;
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 |
Type | Description |
---|---|
void |
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
;
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 |
Type | Description |
---|---|
void |
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
]>;
Type | Name | Description |
---|---|---|
protos. google.cloud.kms.v1.ICreateImportJobRequest
|
request | |
CallOptions
|
options |
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
;
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 |
Type | Description |
---|---|
void |
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
;
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 |
Type | Description |
---|---|
void |
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
]>;
Type | Name | Description |
---|---|---|
protos. google.cloud.kms.v1.ICreateKeyRingRequest
|
request | |
CallOptions
|
options |
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
;
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 |
Type | Description |
---|---|
void |
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
;
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 |
Type | Description |
---|---|
void |
cryptoKeyPath(project, location, keyRing, cryptoKey)
cryptoKeyPath
(
project
:
string
,
location
:
string
,
keyRing
:
string
,
cryptoKey
:
string
)
:
string
;
Return a fully-qualified cryptoKey resource name string.
Type | Name | Description |
---|---|---|
string
|
project | |
string
|
location | |
string
|
keyRing | |
string
|
cryptoKey |
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.
Type | Name | Description |
---|---|---|
string
|
project | |
string
|
location | |
string
|
keyRing | |
string
|
cryptoKey | |
string
|
cryptoKeyVersion |
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
]>;
Type | Name | Description |
---|---|---|
protos. google.cloud.kms.v1.IDecryptRequest
|
request | |
CallOptions
|
options |
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
;
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 |
Type | Description |
---|---|
void |
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
;
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 |
Type | Description |
---|---|
void |
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
]>;
Type | Name | Description |
---|---|---|
protos. google.cloud.kms.v1.IDestroyCryptoKeyVersionRequest
|
request | |
CallOptions
|
options |
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
;
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 |
Type | Description |
---|---|
void |
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
;
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 |
Type | Description |
---|---|
void |
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
]>;
Type | Name | Description |
---|---|---|
protos. google.cloud.kms.v1.IEncryptRequest
|
request | |
CallOptions
|
options |
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
;
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 |
Type | Description |
---|---|
void |
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
;
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 |
Type | Description |
---|---|
void |
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
]>;
Type | Name | Description |
---|---|---|
protos. google.cloud.kms.v1.IGetCryptoKeyRequest
|
request | |
CallOptions
|
options |
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
;
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 |
Type | Description |
---|---|
void |
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
;
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 |
Type | Description |
---|---|
void |
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
]>;
Type | Name | Description |
---|---|---|
protos. google.cloud.kms.v1.IGetCryptoKeyVersionRequest
|
request | |
CallOptions
|
options |
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
;
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 |
Type | Description |
---|---|
void |
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
;
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 |
Type | Description |
---|---|
void |
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.
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]. |
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
]>;
Type | Name | Description |
---|---|---|
protos. google.cloud.kms.v1.IGetImportJobRequest
|
request | |
CallOptions
|
options |
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
;
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 |
Type | Description |
---|---|
void |
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
;
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 |
Type | Description |
---|---|
void |
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
]>;
Type | Name | Description |
---|---|---|
protos. google.cloud.kms.v1.IGetKeyRingRequest
|
request | |
CallOptions
|
options |
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
;
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 |
Type | Description |
---|---|
void |
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
;
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 |
Type | Description |
---|---|
void |
getProjectId()
getProjectId
()
:
Promise<string>
;
Type | Description |
---|---|
Promise <string> |
getProjectId(callback)
getProjectId
(
callback
:
Callback<string
,
undefined
,
undefined
> )
:
void
;
Type | Name | Description |
---|---|---|
Callback
<string, undefined, undefined>
|
callback |
Type | Description |
---|---|
void |
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
]>;
Type | Name | Description |
---|---|---|
protos. google.cloud.kms.v1.IGetPublicKeyRequest
|
request | |
CallOptions
|
options |
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
;
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 |
Type | Description |
---|---|
void |
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
;
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 |
Type | Description |
---|---|
void |
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
]>;
Type | Name | Description |
---|---|---|
protos. google.cloud.kms.v1.IImportCryptoKeyVersionRequest
|
request | |
CallOptions
|
options |
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
;
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 |
Type | Description |
---|---|
void |
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
;
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 |
Type | Description |
---|---|
void |
importJobPath(project, location, keyRing, importJob)
importJobPath
(
project
:
string
,
location
:
string
,
keyRing
:
string
,
importJob
:
string
)
:
string
;
Return a fully-qualified importJob resource name string.
Type | Name | Description |
---|---|---|
string
|
project | |
string
|
location | |
string
|
keyRing | |
string
|
importJob |
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.
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.
Type | Name | Description |
---|---|---|
string
|
project | |
string
|
location | |
string
|
keyRing |
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
]>;
Type | Name | Description |
---|---|---|
protos. google.cloud.kms.v1.IListCryptoKeysRequest
|
request | |
CallOptions
|
options |
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
;
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 |
Type | Description |
---|---|
void |
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
;
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 |
Type | Description |
---|---|
void |
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.
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. |
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.
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. |
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 |
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
]>;
Type | Name | Description |
---|---|---|
protos. google.cloud.kms.v1.IListCryptoKeyVersionsRequest
|
request | |
CallOptions
|
options |
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
;
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 |
Type | Description |
---|---|
void |
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
;
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 |
Type | Description |
---|---|
void |
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.
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. |
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.
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. |
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 |
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
]>;
Type | Name | Description |
---|---|---|
protos. google.cloud.kms.v1.IListImportJobsRequest
|
request | |
CallOptions
|
options |
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
;
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 |
Type | Description |
---|---|
void |
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
;
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 |
Type | Description |
---|---|
void |
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.
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. |
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.
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. |
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 |
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
]>;
Type | Name | Description |
---|---|---|
protos. google.cloud.kms.v1.IListKeyRingsRequest
|
request | |
CallOptions
|
options |
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
;
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 |
Type | Description |
---|---|
void |
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
;
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 |
Type | Description |
---|---|
void |
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.
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. |
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.
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. |
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 |
locationPath(project, location)
locationPath
(
project
:
string
,
location
:
string
)
:
string
;
Return a fully-qualified location resource name string.
Type | Name | Description |
---|---|---|
string
|
project | |
string
|
location |
Type | Description |
---|---|
string | {string} Resource name string. |
matchCryptoKeyFromCryptoKeyName(cryptoKeyName)
matchCryptoKeyFromCryptoKeyName
(
cryptoKeyName
:
string
)
:
string
|
number
;
Parse the crypto_key from CryptoKey resource.
Type | Name | Description |
---|---|---|
string
|
cryptoKeyName | A fully-qualified path representing CryptoKey resource. |
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.
Type | Name | Description |
---|---|---|
string
|
cryptoKeyVersionName | A fully-qualified path representing CryptoKeyVersion resource. |
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.
Type | Name | Description |
---|---|---|
string
|
publicKeyName | A fully-qualified path representing PublicKey resource. |
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.
Type | Name | Description |
---|---|---|
string
|
cryptoKeyVersionName | A fully-qualified path representing CryptoKeyVersion resource. |
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.
Type | Name | Description |
---|---|---|
string
|
publicKeyName | A fully-qualified path representing PublicKey resource. |
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.
Type | Name | Description |
---|---|---|
string
|
importJobName | A fully-qualified path representing ImportJob resource. |
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.
Type | Name | Description |
---|---|---|
string
|
cryptoKeyName | A fully-qualified path representing CryptoKey resource. |
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.
Type | Name | Description |
---|---|---|
string
|
cryptoKeyVersionName | A fully-qualified path representing CryptoKeyVersion resource. |
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.
Type | Name | Description |
---|---|---|
string
|
importJobName | A fully-qualified path representing ImportJob resource. |
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.
Type | Name | Description |
---|---|---|
string
|
keyRingName | A fully-qualified path representing KeyRing resource. |
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.
Type | Name | Description |
---|---|---|
string
|
publicKeyName | A fully-qualified path representing PublicKey resource. |
Type | Description |
---|---|
string | number | {string} A string representing the key_ring. |
matchLocationFromCryptoKeyName(cryptoKeyName)
matchLocationFromCryptoKeyName
(
cryptoKeyName
:
string
)
:
string
|
number
;
Parse the location from CryptoKey resource.
Type | Name | Description |
---|---|---|
string
|
cryptoKeyName | A fully-qualified path representing CryptoKey resource. |
Type | Description |
---|---|
string | number | {string} A string representing the location. |
matchLocationFromCryptoKeyVersionName(cryptoKeyVersionName)
matchLocationFromCryptoKeyVersionName
(
cryptoKeyVersionName
:
string
)
:
string
|
number
;
Parse the location from CryptoKeyVersion resource.
Type | Name | Description |
---|---|---|
string
|
cryptoKeyVersionName | A fully-qualified path representing CryptoKeyVersion resource. |
Type | Description |
---|---|
string | number | {string} A string representing the location. |
matchLocationFromImportJobName(importJobName)
matchLocationFromImportJobName
(
importJobName
:
string
)
:
string
|
number
;
Parse the location from ImportJob resource.
Type | Name | Description |
---|---|---|
string
|
importJobName | A fully-qualified path representing ImportJob resource. |
Type | Description |
---|---|
string | number | {string} A string representing the location. |
matchLocationFromKeyRingName(keyRingName)
matchLocationFromKeyRingName
(
keyRingName
:
string
)
:
string
|
number
;
Parse the location from KeyRing resource.
Type | Name | Description |
---|---|---|
string
|
keyRingName | A fully-qualified path representing KeyRing resource. |
Type | Description |
---|---|
string | number | {string} A string representing the location. |
matchLocationFromLocationName(locationName)
matchLocationFromLocationName
(
locationName
:
string
)
:
string
|
number
;
Parse the location from Location resource.
Type | Name | Description |
---|---|---|
string
|
locationName | A fully-qualified path representing Location resource. |
Type | Description |
---|---|
string | number | {string} A string representing the location. |
matchLocationFromPublicKeyName(publicKeyName)
matchLocationFromPublicKeyName
(
publicKeyName
:
string
)
:
string
|
number
;
Parse the location from PublicKey resource.
Type | Name | Description |
---|---|---|
string
|
publicKeyName | A fully-qualified path representing PublicKey resource. |
Type | Description |
---|---|
string | number | {string} A string representing the location. |
matchProjectFromCryptoKeyName(cryptoKeyName)
matchProjectFromCryptoKeyName
(
cryptoKeyName
:
string
)
:
string
|
number
;
Parse the project from CryptoKey resource.
Type | Name | Description |
---|---|---|
string
|
cryptoKeyName | A fully-qualified path representing CryptoKey resource. |
Type | Description |
---|---|
string | number | {string} A string representing the project. |
matchProjectFromCryptoKeyVersionName(cryptoKeyVersionName)
matchProjectFromCryptoKeyVersionName
(
cryptoKeyVersionName
:
string
)
:
string
|
number
;
Parse the project from CryptoKeyVersion resource.
Type | Name | Description |
---|---|---|
string
|
cryptoKeyVersionName | A fully-qualified path representing CryptoKeyVersion resource. |
Type | Description |
---|---|
string | number | {string} A string representing the project. |
matchProjectFromImportJobName(importJobName)
matchProjectFromImportJobName
(
importJobName
:
string
)
:
string
|
number
;
Parse the project from ImportJob resource.
Type | Name | Description |
---|---|---|
string
|
importJobName | A fully-qualified path representing ImportJob resource. |
Type | Description |
---|---|
string | number | {string} A string representing the project. |
matchProjectFromKeyRingName(keyRingName)
matchProjectFromKeyRingName
(
keyRingName
:
string
)
:
string
|
number
;
Parse the project from KeyRing resource.
Type | Name | Description |
---|---|---|
string
|
keyRingName | A fully-qualified path representing KeyRing resource. |
Type | Description |
---|---|
string | number | {string} A string representing the project. |
matchProjectFromLocationName(locationName)
matchProjectFromLocationName
(
locationName
:
string
)
:
string
|
number
;
Parse the project from Location resource.
Type | Name | Description |
---|---|---|
string
|
locationName | A fully-qualified path representing Location resource. |
Type | Description |
---|---|
string | number | {string} A string representing the project. |
matchProjectFromPublicKeyName(publicKeyName)
matchProjectFromPublicKeyName
(
publicKeyName
:
string
)
:
string
|
number
;
Parse the project from PublicKey resource.
Type | Name | Description |
---|---|---|
string
|
publicKeyName | A fully-qualified path representing PublicKey resource. |
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.
Type | Name | Description |
---|---|---|
string
|
project | |
string
|
location | |
string
|
keyRing | |
string
|
cryptoKey | |
string
|
cryptoKeyVersion |
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
]>;
Type | Name | Description |
---|---|---|
protos. google.cloud.kms.v1.IRestoreCryptoKeyVersionRequest
|
request | |
CallOptions
|
options |
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
;
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 |
Type | Description |
---|---|
void |
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
;
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 |
Type | Description |
---|---|
void |
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.
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]. |
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.
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]. |
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
]>;
Type | Name | Description |
---|---|---|
protos. google.cloud.kms.v1.IUpdateCryptoKeyRequest
|
request | |
CallOptions
|
options |
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
;
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 |
Type | Description |
---|---|
void |
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
;
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 |
Type | Description |
---|---|
void |
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
]>;
Type | Name | Description |
---|---|---|
protos. google.cloud.kms.v1.IUpdateCryptoKeyPrimaryVersionRequest
|
request | |
CallOptions
|
options |
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
;
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 |
Type | Description |
---|---|
void |
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
;
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 |
Type | Description |
---|---|
void |
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
]>;
Type | Name | Description |
---|---|---|
protos. google.cloud.kms.v1.IUpdateCryptoKeyVersionRequest
|
request | |
CallOptions
|
options |
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
;
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 |
Type | Description |
---|---|
void |
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
;
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 |
Type | Description |
---|---|
void |