Socket
Socket
Sign inDemoInstall

@google-cloud/translate

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/translate - npm Package Compare versions

Comparing version 5.1.5 to 5.1.6

50

build/src/v3/translation_service_client.d.ts

@@ -119,28 +119,4 @@ /// <reference types="node" />

*/
listGlossariesStream(request?: protosTypes.google.cloud.translation.v3.IListGlossariesRequest, options?: gax.CallOptions | {}): Transform;
listGlossariesStream(request?: protosTypes.google.cloud.translation.v3.IListGlossariesRequest, options?: gax.CallOptions): Transform;
/**
* Return a fully-qualified location resource name string.
*
* @param {string} project
* @param {string} location
* @returns {string} Resource name string.
*/
locationPath(project: string, location: string): string;
/**
* Parse the project from Location resource.
*
* @param {string} locationName
* A fully-qualified path representing Location resource.
* @returns {string} A string representing the project.
*/
matchProjectFromLocationName(locationName: string): string;
/**
* Parse the location from Location resource.
*
* @param {string} locationName
* A fully-qualified path representing Location resource.
* @returns {string} A string representing the location.
*/
matchLocationFromLocationName(locationName: string): string;
/**
* Return a fully-qualified glossary resource name string.

@@ -179,2 +155,26 @@ *

/**
* Return a fully-qualified location resource name string.
*
* @param {string} project
* @param {string} location
* @returns {string} Resource name string.
*/
locationPath(project: string, location: string): string;
/**
* Parse the project from Location resource.
*
* @param {string} locationName
* A fully-qualified path representing Location resource.
* @returns {string} A string representing the project.
*/
matchProjectFromLocationName(locationName: string): string;
/**
* Parse the location from Location resource.
*
* @param {string} locationName
* A fully-qualified path representing Location resource.
* @returns {string} A string representing the location.
*/
matchLocationFromLocationName(locationName: string): string;
/**
* Terminate the GRPC channel and close the client.

@@ -181,0 +181,0 @@ *

@@ -111,4 +111,4 @@ "use strict";

this._pathTemplates = {
glossaryPathTemplate: new gaxModule.PathTemplate('projects/{project}/locations/{location}/glossaries/{glossary}'),
locationPathTemplate: new gaxModule.PathTemplate('projects/{project}/locations/{location}'),
glossaryPathTemplate: new gaxModule.PathTemplate('projects/{project}/locations/{location}/glossaries/{glossary}'),
};

@@ -722,2 +722,8 @@ // Some of the methods on this service return "paged" results,

request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({
parent: request.parent || '',
});
const callSettings = new gax.CallSettings(options);

@@ -730,36 +736,2 @@ return this._descriptors.page.listGlossaries.createStream(this._innerApiCalls.listGlossaries, request, callSettings);

/**
* Return a fully-qualified location resource name string.
*
* @param {string} project
* @param {string} location
* @returns {string} Resource name string.
*/
locationPath(project, location) {
return this._pathTemplates.locationPathTemplate.render({
project,
location,
});
}
/**
* Parse the project from Location resource.
*
* @param {string} locationName
* A fully-qualified path representing Location resource.
* @returns {string} A string representing the project.
*/
matchProjectFromLocationName(locationName) {
return this._pathTemplates.locationPathTemplate.match(locationName).project;
}
/**
* Parse the location from Location resource.
*
* @param {string} locationName
* A fully-qualified path representing Location resource.
* @returns {string} A string representing the location.
*/
matchLocationFromLocationName(locationName) {
return this._pathTemplates.locationPathTemplate.match(locationName)
.location;
}
/**
* Return a fully-qualified glossary resource name string.

@@ -812,2 +784,36 @@ *

/**
* Return a fully-qualified location resource name string.
*
* @param {string} project
* @param {string} location
* @returns {string} Resource name string.
*/
locationPath(project, location) {
return this._pathTemplates.locationPathTemplate.render({
project,
location,
});
}
/**
* Parse the project from Location resource.
*
* @param {string} locationName
* A fully-qualified path representing Location resource.
* @returns {string} A string representing the project.
*/
matchProjectFromLocationName(locationName) {
return this._pathTemplates.locationPathTemplate.match(locationName).project;
}
/**
* Parse the location from Location resource.
*
* @param {string} locationName
* A fully-qualified path representing Location resource.
* @returns {string} A string representing the location.
*/
matchLocationFromLocationName(locationName) {
return this._pathTemplates.locationPathTemplate.match(locationName)
.location;
}
/**
* Terminate the GRPC channel and close the client.

@@ -814,0 +820,0 @@ *

@@ -119,28 +119,4 @@ /// <reference types="node" />

*/
listGlossariesStream(request?: protosTypes.google.cloud.translation.v3beta1.IListGlossariesRequest, options?: gax.CallOptions | {}): Transform;
listGlossariesStream(request?: protosTypes.google.cloud.translation.v3beta1.IListGlossariesRequest, options?: gax.CallOptions): Transform;
/**
* Return a fully-qualified location resource name string.
*
* @param {string} project
* @param {string} location
* @returns {string} Resource name string.
*/
locationPath(project: string, location: string): string;
/**
* Parse the project from Location resource.
*
* @param {string} locationName
* A fully-qualified path representing Location resource.
* @returns {string} A string representing the project.
*/
matchProjectFromLocationName(locationName: string): string;
/**
* Parse the location from Location resource.
*
* @param {string} locationName
* A fully-qualified path representing Location resource.
* @returns {string} A string representing the location.
*/
matchLocationFromLocationName(locationName: string): string;
/**
* Return a fully-qualified glossary resource name string.

@@ -179,2 +155,26 @@ *

/**
* Return a fully-qualified location resource name string.
*
* @param {string} project
* @param {string} location
* @returns {string} Resource name string.
*/
locationPath(project: string, location: string): string;
/**
* Parse the project from Location resource.
*
* @param {string} locationName
* A fully-qualified path representing Location resource.
* @returns {string} A string representing the project.
*/
matchProjectFromLocationName(locationName: string): string;
/**
* Parse the location from Location resource.
*
* @param {string} locationName
* A fully-qualified path representing Location resource.
* @returns {string} A string representing the location.
*/
matchLocationFromLocationName(locationName: string): string;
/**
* Terminate the GRPC channel and close the client.

@@ -181,0 +181,0 @@ *

@@ -111,4 +111,4 @@ "use strict";

this._pathTemplates = {
glossaryPathTemplate: new gaxModule.PathTemplate('projects/{project}/locations/{location}/glossaries/{glossary}'),
locationPathTemplate: new gaxModule.PathTemplate('projects/{project}/locations/{location}'),
glossaryPathTemplate: new gaxModule.PathTemplate('projects/{project}/locations/{location}/glossaries/{glossary}'),
};

@@ -722,2 +722,8 @@ // Some of the methods on this service return "paged" results,

request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({
parent: request.parent || '',
});
const callSettings = new gax.CallSettings(options);

@@ -730,36 +736,2 @@ return this._descriptors.page.listGlossaries.createStream(this._innerApiCalls.listGlossaries, request, callSettings);

/**
* Return a fully-qualified location resource name string.
*
* @param {string} project
* @param {string} location
* @returns {string} Resource name string.
*/
locationPath(project, location) {
return this._pathTemplates.locationPathTemplate.render({
project,
location,
});
}
/**
* Parse the project from Location resource.
*
* @param {string} locationName
* A fully-qualified path representing Location resource.
* @returns {string} A string representing the project.
*/
matchProjectFromLocationName(locationName) {
return this._pathTemplates.locationPathTemplate.match(locationName).project;
}
/**
* Parse the location from Location resource.
*
* @param {string} locationName
* A fully-qualified path representing Location resource.
* @returns {string} A string representing the location.
*/
matchLocationFromLocationName(locationName) {
return this._pathTemplates.locationPathTemplate.match(locationName)
.location;
}
/**
* Return a fully-qualified glossary resource name string.

@@ -812,2 +784,36 @@ *

/**
* Return a fully-qualified location resource name string.
*
* @param {string} project
* @param {string} location
* @returns {string} Resource name string.
*/
locationPath(project, location) {
return this._pathTemplates.locationPathTemplate.render({
project,
location,
});
}
/**
* Parse the project from Location resource.
*
* @param {string} locationName
* A fully-qualified path representing Location resource.
* @returns {string} A string representing the project.
*/
matchProjectFromLocationName(locationName) {
return this._pathTemplates.locationPathTemplate.match(locationName).project;
}
/**
* Parse the location from Location resource.
*
* @param {string} locationName
* A fully-qualified path representing Location resource.
* @returns {string} A string representing the location.
*/
matchLocationFromLocationName(locationName) {
return this._pathTemplates.locationPathTemplate.match(locationName)
.location;
}
/**
* Terminate the GRPC channel and close the client.

@@ -814,0 +820,0 @@ *

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

### [5.1.6](https://www.github.com/googleapis/nodejs-translate/compare/v5.1.5...v5.1.6) (2020-02-07)
### Bug Fixes
* pass x-goog-request-params header for streaming calls ([40c90fa](https://www.github.com/googleapis/nodejs-translate/commit/40c90fa099ef0bd995b5923cd35ba4ac0f9344e1))
### [5.1.5](https://www.github.com/googleapis/nodejs-translate/compare/v5.1.4...v5.1.5) (2020-02-04)

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

{
"name": "@google-cloud/translate",
"description": "Cloud Translation API Client Library for Node.js",
"version": "5.1.5",
"version": "5.1.6",
"license": "Apache-2.0",

@@ -6,0 +6,0 @@ "author": "Google Inc.",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc