Socket
Socket
Sign inDemoInstall

@google-cloud/kms

Package Overview
Dependencies
141
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.4.0 to 3.5.0

8

build/src/v1/ekm_service_client_config.json

@@ -42,2 +42,10 @@ {

"retry_params_name": "default"
},
"GetEkmConfig": {
"retry_codes_name": "non_idempotent",
"retry_params_name": "default"
},
"UpdateEkmConfig": {
"retry_codes_name": "non_idempotent",
"retry_params_name": "default"
}

@@ -44,0 +52,0 @@ }

77

build/src/v1/ekm_service_client.d.ts

@@ -203,2 +203,55 @@ /// <reference types="node" />

/**
* Returns the {@link google.cloud.kms.v1.EkmConfig|EkmConfig} singleton resource
* for a given project and location.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.name
* Required. The {@link google.cloud.kms.v1.EkmConfig.name|name} of the
* {@link google.cloud.kms.v1.EkmConfig|EkmConfig} to get.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing {@link google.cloud.kms.v1.EkmConfig | EkmConfig}.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
* for more details and examples.
* @example <caption>include:samples/generated/v1/ekm_service.get_ekm_config.js</caption>
* region_tag:cloudkms_v1_generated_EkmService_GetEkmConfig_async
*/
getEkmConfig(request?: protos.google.cloud.kms.v1.IGetEkmConfigRequest, options?: CallOptions): Promise<[
protos.google.cloud.kms.v1.IEkmConfig,
protos.google.cloud.kms.v1.IGetEkmConfigRequest | undefined,
{} | undefined
]>;
getEkmConfig(request: protos.google.cloud.kms.v1.IGetEkmConfigRequest, options: CallOptions, callback: Callback<protos.google.cloud.kms.v1.IEkmConfig, protos.google.cloud.kms.v1.IGetEkmConfigRequest | null | undefined, {} | null | undefined>): void;
getEkmConfig(request: protos.google.cloud.kms.v1.IGetEkmConfigRequest, callback: Callback<protos.google.cloud.kms.v1.IEkmConfig, protos.google.cloud.kms.v1.IGetEkmConfigRequest | null | undefined, {} | null | undefined>): void;
/**
* Updates the {@link google.cloud.kms.v1.EkmConfig|EkmConfig} singleton resource
* for a given project and location.
*
* @param {Object} request
* The request object that will be sent.
* @param {google.cloud.kms.v1.EkmConfig} request.ekmConfig
* Required. {@link google.cloud.kms.v1.EkmConfig|EkmConfig} with updated values.
* @param {google.protobuf.FieldMask} request.updateMask
* Required. List of fields to be updated in this request.
* @param {object} [options]
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing {@link google.cloud.kms.v1.EkmConfig | EkmConfig}.
* Please see the
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
* for more details and examples.
* @example <caption>include:samples/generated/v1/ekm_service.update_ekm_config.js</caption>
* region_tag:cloudkms_v1_generated_EkmService_UpdateEkmConfig_async
*/
updateEkmConfig(request?: protos.google.cloud.kms.v1.IUpdateEkmConfigRequest, options?: CallOptions): Promise<[
protos.google.cloud.kms.v1.IEkmConfig,
protos.google.cloud.kms.v1.IUpdateEkmConfigRequest | undefined,
{} | undefined
]>;
updateEkmConfig(request: protos.google.cloud.kms.v1.IUpdateEkmConfigRequest, options: CallOptions, callback: Callback<protos.google.cloud.kms.v1.IEkmConfig, protos.google.cloud.kms.v1.IUpdateEkmConfigRequest | null | undefined, {} | null | undefined>): void;
updateEkmConfig(request: protos.google.cloud.kms.v1.IUpdateEkmConfigRequest, callback: Callback<protos.google.cloud.kms.v1.IEkmConfig, protos.google.cloud.kms.v1.IUpdateEkmConfigRequest | null | undefined, {} | null | undefined>): void;
/**
* Lists {@link google.cloud.kms.v1.EkmConnection|EkmConnections}.

@@ -576,2 +629,26 @@ *

/**
* Return a fully-qualified ekmConfig resource name string.
*
* @param {string} project
* @param {string} location
* @returns {string} Resource name string.
*/
ekmConfigPath(project: string, location: string): string;
/**
* Parse the project from EkmConfig resource.
*
* @param {string} ekmConfigName
* A fully-qualified path representing EkmConfig resource.
* @returns {string} A string representing the project.
*/
matchProjectFromEkmConfigName(ekmConfigName: string): string | number;
/**
* Parse the location from EkmConfig resource.
*
* @param {string} ekmConfigName
* A fully-qualified path representing EkmConfig resource.
* @returns {string} A string representing the location.
*/
matchLocationFromEkmConfigName(ekmConfigName: string): string | number;
/**
* Return a fully-qualified ekmConnection resource name string.

@@ -578,0 +655,0 @@ *

@@ -149,2 +149,3 @@ "use strict";

cryptoKeyVersionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}'),
ekmConfigPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/ekmConfig'),
ekmConnectionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/ekmConnections/{ekm_connection}'),

@@ -200,2 +201,4 @@ importJobPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/keyRings/{key_ring}/importJobs/{import_job}'),

'updateEkmConnection',
'getEkmConfig',
'updateEkmConfig',
];

@@ -325,2 +328,44 @@ for (const methodName of ekmServiceStubMethods) {

}
getEkmConfig(request, optionsOrCallback, callback) {
var _a;
request = request || {};
let options;
if (typeof optionsOrCallback === 'function' && callback === undefined) {
callback = optionsOrCallback;
options = {};
}
else {
options = optionsOrCallback;
}
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
});
this.initialize();
return this.innerApiCalls.getEkmConfig(request, options, callback);
}
updateEkmConfig(request, optionsOrCallback, callback) {
var _a;
request = request || {};
let options;
if (typeof optionsOrCallback === 'function' && callback === undefined) {
callback = optionsOrCallback;
options = {};
}
else {
options = optionsOrCallback;
}
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] =
this._gaxModule.routingHeader.fromParams({
'ekm_config.name': (_a = request.ekmConfig.name) !== null && _a !== void 0 ? _a : '',
});
this.initialize();
return this.innerApiCalls.updateEkmConfig(request, options, callback);
}
listEkmConnections(request, optionsOrCallback, callback) {

@@ -748,2 +793,37 @@ var _a;

/**
* Return a fully-qualified ekmConfig resource name string.
*
* @param {string} project
* @param {string} location
* @returns {string} Resource name string.
*/
ekmConfigPath(project, location) {
return this.pathTemplates.ekmConfigPathTemplate.render({
project: project,
location: location,
});
}
/**
* Parse the project from EkmConfig resource.
*
* @param {string} ekmConfigName
* A fully-qualified path representing EkmConfig resource.
* @returns {string} A string representing the project.
*/
matchProjectFromEkmConfigName(ekmConfigName) {
return this.pathTemplates.ekmConfigPathTemplate.match(ekmConfigName)
.project;
}
/**
* Parse the location from EkmConfig resource.
*
* @param {string} ekmConfigName
* A fully-qualified path representing EkmConfig resource.
* @returns {string} A string representing the location.
*/
matchLocationFromEkmConfigName(ekmConfigName) {
return this.pathTemplates.ekmConfigPathTemplate.match(ekmConfigName)
.location;
}
/**
* Return a fully-qualified ekmConnection resource name string.

@@ -750,0 +830,0 @@ *

@@ -7,2 +7,9 @@ # Changelog

## [3.5.0](https://github.com/googleapis/google-cloud-node/compare/kms-v3.4.0...kms-v3.5.0) (2023-03-13)
### Features
* Add support for Coordinated External Keys ([cb0ae8f](https://github.com/googleapis/google-cloud-node/commit/cb0ae8f35987770884741683cebf7d6d3d1fd093))
## [3.4.0](https://github.com/googleapis/google-cloud-node/compare/kms-v3.3.1...kms-v3.4.0) (2023-03-02)

@@ -9,0 +16,0 @@

2

package.json
{
"name": "@google-cloud/kms",
"description": "Google Cloud Key Management Service (KMS) API client for Node.js",
"version": "3.4.0",
"version": "3.5.0",
"license": "Apache-2.0",

@@ -6,0 +6,0 @@ "author": "Google LLC",

@@ -100,4 +100,6 @@ [//]: # "This README.md file is auto-generated, all changes to this file will be lost."

| Ekm_service.create_ekm_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-kms/samples/generated/v1/ekm_service.create_ekm_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-kms/samples/generated/v1/ekm_service.create_ekm_connection.js,samples/README.md) |
| Ekm_service.get_ekm_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-kms/samples/generated/v1/ekm_service.get_ekm_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-kms/samples/generated/v1/ekm_service.get_ekm_config.js,samples/README.md) |
| Ekm_service.get_ekm_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-kms/samples/generated/v1/ekm_service.get_ekm_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-kms/samples/generated/v1/ekm_service.get_ekm_connection.js,samples/README.md) |
| Ekm_service.list_ekm_connections | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-kms/samples/generated/v1/ekm_service.list_ekm_connections.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-kms/samples/generated/v1/ekm_service.list_ekm_connections.js,samples/README.md) |
| Ekm_service.update_ekm_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-kms/samples/generated/v1/ekm_service.update_ekm_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-kms/samples/generated/v1/ekm_service.update_ekm_config.js,samples/README.md) |
| Ekm_service.update_ekm_connection | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-kms/samples/generated/v1/ekm_service.update_ekm_connection.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-kms/samples/generated/v1/ekm_service.update_ekm_connection.js,samples/README.md) |

@@ -104,0 +106,0 @@ | Key_management_service.asymmetric_decrypt | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-kms/samples/generated/v1/key_management_service.asymmetric_decrypt.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-kms/samples/generated/v1/key_management_service.asymmetric_decrypt.js,samples/README.md) |

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc