Constructor
new KeyManagementServiceClient(optionsopt)
Construct an instance of KeyManagementServiceClient.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
<optional> |
The configuration object. See the subsequent parameters for more details. Properties
|
Members
(static) apiEndpoint
The DNS address for this API service - same as servicePath(), exists for compatibility reasons.
(static) port
The port for this API service.
(static) scopes
The scopes needed to make gRPC calls for every method defined in this service.
(static) servicePath
The DNS address for this API service.
Methods
asymmetricDecrypt(request, optionsopt) → {Promise}
Decrypts data that was encrypted with a public key retrieved from GetPublicKey corresponding to a CryptoKeyVersion with CryptoKey.purpose ASYMMETRIC_DECRYPT.
Parameters:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
asymmetricSign(request, optionsopt) → {Promise}
Signs data using a CryptoKeyVersion with CryptoKey.purpose ASYMMETRIC_SIGN, producing a signature that can be verified with the public key retrieved from GetPublicKey.
Parameters:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
close()
Terminate the GRPC channel and close the client.
The client will no longer be usable and all future behavior is undefined.
createCryptoKey(request, optionsopt) → {Promise}
Create a new CryptoKey within a KeyRing.
CryptoKey.purpose and CryptoKey.version_template.algorithm are required.
Parameters:
| Name | Type | Attributes | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
createCryptoKeyVersion(request, optionsopt) → {Promise}
Create a new CryptoKeyVersion in a CryptoKey.
The server will assign the next sequential id. If unset, state will be set to ENABLED.
Parameters:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
createImportJob(request, optionsopt) → {Promise}
Parameters:
| Name | Type | Attributes | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
createKeyRing(request, optionsopt) → {Promise}
Create a new KeyRing in a given Project and Location.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
cryptoKeyPath(project, location, key_ring, crypto_key) → {string}
Return a fully-qualified cryptoKey resource name string.
Parameters:
| Name | Type | Description |
|---|---|---|
project |
string | |
location |
string | |
key_ring |
string | |
crypto_key |
string |
cryptoKeyVersionPath(project, location, key_ring, crypto_key, crypto_key_version) → {string}
Return a fully-qualified cryptoKeyVersion resource name string.
Parameters:
| Name | Type | Description |
|---|---|---|
project |
string | |
location |
string | |
key_ring |
string | |
crypto_key |
string | |
crypto_key_version |
string |
decrypt(request, optionsopt) → {Promise}
Decrypts data that was protected by Encrypt. The CryptoKey.purpose must be ENCRYPT_DECRYPT.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
destroyCryptoKeyVersion(request, optionsopt) → {Promise}
Schedule a CryptoKeyVersion for destruction.
Upon calling this method, CryptoKeyVersion.state will be set to DESTROY_SCHEDULED and destroy_time will be set to a time 24 hours in the future, at which point the state will be changed to DESTROYED, and the key material will be irrevocably destroyed.
Before the destroy_time is reached, RestoreCryptoKeyVersion may be called to reverse the process.
Parameters:
| Name | Type | Attributes | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
encrypt(request, optionsopt) → {Promise}
Encrypts data, so that it can only be recovered by a call to Decrypt. The CryptoKey.purpose must be ENCRYPT_DECRYPT.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
getCryptoKey(request, optionsopt) → {Promise}
Returns metadata for a given CryptoKey, as well as its primary CryptoKeyVersion.
Parameters:
| Name | Type | Attributes | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
getCryptoKeyVersion(request, optionsopt) → {Promise}
Returns metadata for a given CryptoKeyVersion.
Parameters:
| Name | Type | Attributes | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
getIamPolicy(request, optionsopt, callbackopt) → {Promise}
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
||||||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing Policy. |
getImportJob(request, optionsopt) → {Promise}
Returns metadata for a given ImportJob.
Parameters:
| Name | Type | Attributes | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
getKeyRing(request, optionsopt) → {Promise}
Returns metadata for a given KeyRing.
Parameters:
| Name | Type | Attributes | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
getProjectId(callback)
Return the project ID used by this class.
Parameters:
| Name | Type | Description |
|---|---|---|
callback |
function |
the callback to be called with the current project Id. |
getPublicKey(request, optionsopt) → {Promise}
Returns the public key for the given CryptoKeyVersion. The CryptoKey.purpose must be ASYMMETRIC_SIGN or ASYMMETRIC_DECRYPT.
Parameters:
| Name | Type | Attributes | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
importCryptoKeyVersion(request, optionsopt) → {Promise}
Imports a new CryptoKeyVersion into an existing CryptoKey using the wrapped key material provided in the request.
The version ID will be assigned the next sequential id within the CryptoKey.
Parameters:
| Name | Type | Attributes | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
importJobPath(project, location, key_ring, import_job) → {string}
Return a fully-qualified importJob resource name string.
Parameters:
| Name | Type | Description |
|---|---|---|
project |
string | |
location |
string | |
key_ring |
string | |
import_job |
string |
initialize() → {Promise}
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.
keyRingPath(project, location, key_ring) → {string}
Return a fully-qualified keyRing resource name string.
Parameters:
| Name | Type | Description |
|---|---|---|
project |
string | |
location |
string | |
key_ring |
string |
listCryptoKeys(request, optionsopt) → {Promise}
Lists CryptoKeys.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listCryptoKeysAsync(request, optionsopt) → {Object}
Equivalent to listCryptoKeys, but returns an iterable object.
for-await-of syntax is used with the iterable to recursively get response element on-demand.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listCryptoKeysStream(request, optionsopt) → {Stream}
Equivalent to listCryptoKeys, but returns a NodeJS Stream object.
This fetches the paged responses for listCryptoKeys continuously and invokes the callback registered for 'data' event for each element in the responses.
The returned object has 'end' method when no more elements are required.
autoPaginate option will be ignored.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listCryptoKeyVersions(request, optionsopt) → {Promise}
Lists CryptoKeyVersions.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listCryptoKeyVersionsAsync(request, optionsopt) → {Object}
Equivalent to listCryptoKeyVersions, but returns an iterable object.
for-await-of syntax is used with the iterable to recursively get response element on-demand.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listCryptoKeyVersionsStream(request, optionsopt) → {Stream}
Equivalent to listCryptoKeyVersions, but returns a NodeJS Stream object.
This fetches the paged responses for listCryptoKeyVersions continuously and invokes the callback registered for 'data' event for each element in the responses.
The returned object has 'end' method when no more elements are required.
autoPaginate option will be ignored.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listImportJobs(request, optionsopt) → {Promise}
Lists ImportJobs.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listImportJobsAsync(request, optionsopt) → {Object}
Equivalent to listImportJobs, but returns an iterable object.
for-await-of syntax is used with the iterable to recursively get response element on-demand.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listImportJobsStream(request, optionsopt) → {Stream}
Equivalent to listImportJobs, but returns a NodeJS Stream object.
This fetches the paged responses for listImportJobs continuously and invokes the callback registered for 'data' event for each element in the responses.
The returned object has 'end' method when no more elements are required.
autoPaginate option will be ignored.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listKeyRings(request, optionsopt) → {Promise}
Lists KeyRings.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listKeyRingsAsync(request, optionsopt) → {Object}
Equivalent to listKeyRings, but returns an iterable object.
for-await-of syntax is used with the iterable to recursively get response element on-demand.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listKeyRingsStream(request, optionsopt) → {Stream}
Equivalent to listKeyRings, but returns a NodeJS Stream object.
This fetches the paged responses for listKeyRings continuously and invokes the callback registered for 'data' event for each element in the responses.
The returned object has 'end' method when no more elements are required.
autoPaginate option will be ignored.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
locationPath(project, location) → {string}
Return a fully-qualified location resource name string.
Parameters:
| Name | Type | Description |
|---|---|---|
project |
string | |
location |
string |
matchCryptoKeyFromCryptoKeyName(cryptoKeyName) → {string}
Parse the crypto_key from CryptoKey resource.
Parameters:
| Name | Type | Description |
|---|---|---|
cryptoKeyName |
string |
A fully-qualified path representing CryptoKey resource. |
matchCryptoKeyFromCryptoKeyVersionName(cryptoKeyVersionName) → {string}
Parse the crypto_key from CryptoKeyVersion resource.
Parameters:
| Name | Type | Description |
|---|---|---|
cryptoKeyVersionName |
string |
A fully-qualified path representing CryptoKeyVersion resource. |
matchCryptoKeyFromPublicKeyName(publicKeyName) → {string}
Parse the crypto_key from PublicKey resource.
Parameters:
| Name | Type | Description |
|---|---|---|
publicKeyName |
string |
A fully-qualified path representing PublicKey resource. |
matchCryptoKeyVersionFromCryptoKeyVersionName(cryptoKeyVersionName) → {string}
Parse the crypto_key_version from CryptoKeyVersion resource.
Parameters:
| Name | Type | Description |
|---|---|---|
cryptoKeyVersionName |
string |
A fully-qualified path representing CryptoKeyVersion resource. |
matchCryptoKeyVersionFromPublicKeyName(publicKeyName) → {string}
Parse the crypto_key_version from PublicKey resource.
Parameters:
| Name | Type | Description |
|---|---|---|
publicKeyName |
string |
A fully-qualified path representing PublicKey resource. |
matchImportJobFromImportJobName(importJobName) → {string}
Parse the import_job from ImportJob resource.
Parameters:
| Name | Type | Description |
|---|---|---|
importJobName |
string |
A fully-qualified path representing ImportJob resource. |
matchKeyRingFromCryptoKeyName(cryptoKeyName) → {string}
Parse the key_ring from CryptoKey resource.
Parameters:
| Name | Type | Description |
|---|---|---|
cryptoKeyName |
string |
A fully-qualified path representing CryptoKey resource. |
matchKeyRingFromCryptoKeyVersionName(cryptoKeyVersionName) → {string}
Parse the key_ring from CryptoKeyVersion resource.
Parameters:
| Name | Type | Description |
|---|---|---|
cryptoKeyVersionName |
string |
A fully-qualified path representing CryptoKeyVersion resource. |
matchKeyRingFromImportJobName(importJobName) → {string}
Parse the key_ring from ImportJob resource.
Parameters:
| Name | Type | Description |
|---|---|---|
importJobName |
string |
A fully-qualified path representing ImportJob resource. |
matchKeyRingFromKeyRingName(keyRingName) → {string}
Parse the key_ring from KeyRing resource.
Parameters:
| Name | Type | Description |
|---|---|---|
keyRingName |
string |
A fully-qualified path representing KeyRing resource. |
matchKeyRingFromPublicKeyName(publicKeyName) → {string}
Parse the key_ring from PublicKey resource.
Parameters:
| Name | Type | Description |
|---|---|---|
publicKeyName |
string |
A fully-qualified path representing PublicKey resource. |
matchLocationFromCryptoKeyName(cryptoKeyName) → {string}
Parse the location from CryptoKey resource.
Parameters:
| Name | Type | Description |
|---|---|---|
cryptoKeyName |
string |
A fully-qualified path representing CryptoKey resource. |
matchLocationFromCryptoKeyVersionName(cryptoKeyVersionName) → {string}
Parse the location from CryptoKeyVersion resource.
Parameters:
| Name | Type | Description |
|---|---|---|
cryptoKeyVersionName |
string |
A fully-qualified path representing CryptoKeyVersion resource. |
matchLocationFromImportJobName(importJobName) → {string}
Parse the location from ImportJob resource.
Parameters:
| Name | Type | Description |
|---|---|---|
importJobName |
string |
A fully-qualified path representing ImportJob resource. |
matchLocationFromKeyRingName(keyRingName) → {string}
Parse the location from KeyRing resource.
Parameters:
| Name | Type | Description |
|---|---|---|
keyRingName |
string |
A fully-qualified path representing KeyRing resource. |
matchLocationFromLocationName(locationName) → {string}
Parse the location from Location resource.
Parameters:
| Name | Type | Description |
|---|---|---|
locationName |
string |
A fully-qualified path representing Location resource. |
matchLocationFromPublicKeyName(publicKeyName) → {string}
Parse the location from PublicKey resource.
Parameters:
| Name | Type | Description |
|---|---|---|
publicKeyName |
string |
A fully-qualified path representing PublicKey resource. |
matchProjectFromCryptoKeyName(cryptoKeyName) → {string}
Parse the project from CryptoKey resource.
Parameters:
| Name | Type | Description |
|---|---|---|
cryptoKeyName |
string |
A fully-qualified path representing CryptoKey resource. |
matchProjectFromCryptoKeyVersionName(cryptoKeyVersionName) → {string}
Parse the project from CryptoKeyVersion resource.
Parameters:
| Name | Type | Description |
|---|---|---|
cryptoKeyVersionName |
string |
A fully-qualified path representing CryptoKeyVersion resource. |
matchProjectFromImportJobName(importJobName) → {string}
Parse the project from ImportJob resource.
Parameters:
| Name | Type | Description |
|---|---|---|
importJobName |
string |
A fully-qualified path representing ImportJob resource. |
matchProjectFromKeyRingName(keyRingName) → {string}
Parse the project from KeyRing resource.
Parameters:
| Name | Type | Description |
|---|---|---|
keyRingName |
string |
A fully-qualified path representing KeyRing resource. |
matchProjectFromLocationName(locationName) → {string}
Parse the project from Location resource.
Parameters:
| Name | Type | Description |
|---|---|---|
locationName |
string |
A fully-qualified path representing Location resource. |
matchProjectFromPublicKeyName(publicKeyName) → {string}
Parse the project from PublicKey resource.
Parameters:
| Name | Type | Description |
|---|---|---|
publicKeyName |
string |
A fully-qualified path representing PublicKey resource. |
publicKeyPath(project, location, key_ring, crypto_key, crypto_key_version) → {string}
Return a fully-qualified publicKey resource name string.
Parameters:
| Name | Type | Description |
|---|---|---|
project |
string | |
location |
string | |
key_ring |
string | |
crypto_key |
string | |
crypto_key_version |
string |
restoreCryptoKeyVersion(request, optionsopt) → {Promise}
Restore a CryptoKeyVersion in the DESTROY_SCHEDULED state.
Upon restoration of the CryptoKeyVersion, state will be set to DISABLED, and destroy_time will be cleared.
Parameters:
| Name | Type | Attributes | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
setIamPolicy(request, optionsopt, callbackopt) → {Promise}
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:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
|||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing TestIamPermissionsResponse. |
testIamPermissions(request, optionsopt, callbackopt) → {Promise}
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:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
Object |
<optional> |
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
|||||||||
callback |
function |
<optional> |
The function which will be called with the result of the API call. The second parameter to the callback is an object representing TestIamPermissionsResponse. |
updateCryptoKey(request, optionsopt) → {Promise}
Update a CryptoKey.
Parameters:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
updateCryptoKeyPrimaryVersion(request, optionsopt) → {Promise}
Update the version of a CryptoKey that will be used in Encrypt.
Returns an error if called on an asymmetric key.
Parameters:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
updateCryptoKeyVersion(request, optionsopt) → {Promise}
Update a CryptoKeyVersion's metadata.
state may be changed between ENABLED and DISABLED using this method. See DestroyCryptoKeyVersion and RestoreCryptoKeyVersion to move between other states.
Parameters:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |