@maxim_mazurok/gapi.client.translate-v3beta1 0.0.20220911 → 0.0.20220916
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +6 -1
- package/package.json +1 -1
- package/tests.ts +2 -1
package/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
11
11
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
12
12
|
// Generated from: https://translation.googleapis.com/$discovery/rest?version=v3beta1
|
|
13
|
-
// Revision:
|
|
13
|
+
// Revision: 20220916
|
|
14
14
|
|
|
15
15
|
/// <reference types="gapi.client" />
|
|
16
16
|
|
|
@@ -353,6 +353,11 @@ declare namespace gapi.client {
|
|
|
353
353
|
languages?: SupportedLanguage[];
|
|
354
354
|
}
|
|
355
355
|
interface TranslateDocumentRequest {
|
|
356
|
+
/**
|
|
357
|
+
* Optional. This flag is to support user customized attribution. If not provided, the default is `Machine Translated by Google`. Customized attribution should follow rules in
|
|
358
|
+
* https://cloud.google.com/translate/attribution#attribution_and_logos
|
|
359
|
+
*/
|
|
360
|
+
customizedAttribution?: string;
|
|
356
361
|
/** Required. Input configurations. */
|
|
357
362
|
documentInputConfig?: DocumentInputConfig;
|
|
358
363
|
/**
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20220916
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -174,6 +174,7 @@ gapi.load('client', async () => {
|
|
|
174
174
|
await gapi.client.translate.projects.locations.translateDocument({
|
|
175
175
|
parent: "Test string",
|
|
176
176
|
}, {
|
|
177
|
+
customizedAttribution: "Test string",
|
|
177
178
|
documentInputConfig: {
|
|
178
179
|
content: "Test string",
|
|
179
180
|
gcsSource: {
|