Skip to content

Commit 647e12d

Browse files
yoshi-automationfeywind
authored andcommitted
fix(translate): update the API
#### translate:v3beta1 The following keys were changed: - resources.projects.resources.locations.methods.list.description #### translate:v3 The following keys were changed: - resources.projects.resources.locations.methods.list.description - resources.projects.resources.locations.resources.adaptiveMtDatasets.resources.adaptiveMtFiles.methods.list.parameters.parent.description - resources.projects.resources.locations.resources.adaptiveMtDatasets.resources.adaptiveMtFiles.resources.adaptiveMtSentences.methods.list.parameters.parent.description - resources.projects.resources.locations.resources.adaptiveMtDatasets.resources.adaptiveMtSentences.methods.list.parameters.parent.description - schemas.AdaptiveMtTranslateRequest.properties.dataset.description
1 parent 3f48ea4 commit 647e12d

4 files changed

Lines changed: 17 additions & 17 deletions

File tree

discovery/translate-v3.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@
416416
]
417417
},
418418
"list": {
419-
"description": "Lists information about the supported locations for this service.",
419+
"description": "Lists information about the supported locations for this service. This method can be called in two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project-visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include public locations as well as private or other locations specifically visible to the project.",
420420
"flatPath": "v3/projects/{projectsId}/locations",
421421
"httpMethod": "GET",
422422
"id": "translate.projects.locations.list",
@@ -812,7 +812,7 @@
812812
"type": "string"
813813
},
814814
"parent": {
815-
"description": "Required. The resource name of the project from which to list the Adaptive MT files. `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}`",
815+
"description": "Required. The resource name of the dataset from which to list the Adaptive MT files. `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}`",
816816
"location": "path",
817817
"pattern": "^projects/[^/]+/locations/[^/]+/adaptiveMtDatasets/[^/]+$",
818818
"required": true,
@@ -852,7 +852,7 @@
852852
"type": "string"
853853
},
854854
"parent": {
855-
"description": "Required. The resource name of the project from which to list the Adaptive MT files. The following format lists all sentences under a file. `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}` The following format lists all sentences within a dataset. `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}`",
855+
"description": "Required. The resource name of the Adaptive MT file from which to list the sentences. The following format lists all sentences under a file. `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}` The following format lists all sentences within a dataset. `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}`",
856856
"location": "path",
857857
"pattern": "^projects/[^/]+/locations/[^/]+/adaptiveMtDatasets/[^/]+/adaptiveMtFiles/[^/]+$",
858858
"required": true,
@@ -894,7 +894,7 @@
894894
"type": "string"
895895
},
896896
"parent": {
897-
"description": "Required. The resource name of the project from which to list the Adaptive MT files. The following format lists all sentences under a file. `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}` The following format lists all sentences within a dataset. `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}`",
897+
"description": "Required. The resource name of the Adaptive MT file from which to list the sentences. The following format lists all sentences under a file. `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}` The following format lists all sentences within a dataset. `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}`",
898898
"location": "path",
899899
"pattern": "^projects/[^/]+/locations/[^/]+/adaptiveMtDatasets/[^/]+$",
900900
"required": true,
@@ -1750,7 +1750,7 @@
17501750
}
17511751
}
17521752
},
1753-
"revision": "20260108",
1753+
"revision": "20260128",
17541754
"rootUrl": "https://translation.googleapis.com/",
17551755
"schemas": {
17561756
"AdaptiveMtDataset": {
@@ -1868,7 +1868,7 @@
18681868
"type": "array"
18691869
},
18701870
"dataset": {
1871-
"description": "Required. The resource name for the dataset to use for adaptive MT. `projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}`",
1871+
"description": "Required. The resource name for the dataset to use for adaptive MT translation. `projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}`",
18721872
"type": "string"
18731873
},
18741874
"glossaryConfig": {

discovery/translate-v3beta1.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@
358358
]
359359
},
360360
"list": {
361-
"description": "Lists information about the supported locations for this service.",
361+
"description": "Lists information about the supported locations for this service. This method can be called in two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project-visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include public locations as well as private or other locations specifically visible to the project.",
362362
"flatPath": "v3beta1/projects/{projectsId}/locations",
363363
"httpMethod": "GET",
364364
"id": "translate.projects.locations.list",
@@ -787,7 +787,7 @@
787787
}
788788
}
789789
},
790-
"revision": "20260108",
790+
"revision": "20260128",
791791
"rootUrl": "https://translation.googleapis.com/",
792792
"schemas": {
793793
"BatchDocumentInputConfig": {

src/apis/translate/v3.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export namespace translate_v3 {
216216
*/
217217
content?: string[] | null;
218218
/**
219-
* Required. The resource name for the dataset to use for adaptive MT. `projects/{project\}/locations/{location-id\}/adaptiveMtDatasets/{dataset\}`
219+
* Required. The resource name for the dataset to use for adaptive MT translation. `projects/{project\}/locations/{location-id\}/adaptiveMtDatasets/{dataset\}`
220220
*/
221221
dataset?: string | null;
222222
/**
@@ -2989,7 +2989,7 @@ export namespace translate_v3 {
29892989
}
29902990

29912991
/**
2992-
* Lists information about the supported locations for this service.
2992+
* Lists information about the supported locations for this service. This method can be called in two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project-visible locations:** Use the path `GET /v1/projects/{project_id\}/locations`. This may include public locations as well as private or other locations specifically visible to the project.
29932993
* @example
29942994
* ```js
29952995
* // Before running the sample:
@@ -5054,7 +5054,7 @@ export namespace translate_v3 {
50545054
* pageSize: 'placeholder-value',
50555055
* // Optional. A token identifying a page of results the server should return. Typically, this is the value of ListAdaptiveMtFilesResponse.next_page_token returned from the previous call to `ListAdaptiveMtFiles` method. The first page is returned if `page_token`is empty or missing.
50565056
* pageToken: 'placeholder-value',
5057-
* // Required. The resource name of the project from which to list the Adaptive MT files. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}`
5057+
* // Required. The resource name of the dataset from which to list the Adaptive MT files. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}`
50585058
* parent:
50595059
* 'projects/my-project/locations/my-location/adaptiveMtDatasets/my-adaptiveMtDataset',
50605060
* });
@@ -5190,7 +5190,7 @@ export namespace translate_v3 {
51905190
*/
51915191
pageToken?: string;
51925192
/**
5193-
* Required. The resource name of the project from which to list the Adaptive MT files. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}`
5193+
* Required. The resource name of the dataset from which to list the Adaptive MT files. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}`
51945194
*/
51955195
parent?: string;
51965196
}
@@ -5240,7 +5240,7 @@ export namespace translate_v3 {
52405240
* pageSize: 'placeholder-value',
52415241
* // A token identifying a page of results the server should return. Typically, this is the value of ListAdaptiveMtSentencesRequest.next_page_token returned from the previous call to `ListTranslationMemories` method. The first page is returned if `page_token` is empty or missing.
52425242
* pageToken: 'placeholder-value',
5243-
* // Required. The resource name of the project from which to list the Adaptive MT files. The following format lists all sentences under a file. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}/adaptiveMtFiles/{file\}` The following format lists all sentences within a dataset. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}`
5243+
* // Required. The resource name of the Adaptive MT file from which to list the sentences. The following format lists all sentences under a file. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}/adaptiveMtFiles/{file\}` The following format lists all sentences within a dataset. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}`
52445244
* parent:
52455245
* 'projects/my-project/locations/my-location/adaptiveMtDatasets/my-adaptiveMtDataset/adaptiveMtFiles/my-adaptiveMtFile',
52465246
* },
@@ -5367,7 +5367,7 @@ export namespace translate_v3 {
53675367
*/
53685368
pageToken?: string;
53695369
/**
5370-
* Required. The resource name of the project from which to list the Adaptive MT files. The following format lists all sentences under a file. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}/adaptiveMtFiles/{file\}` The following format lists all sentences within a dataset. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}`
5370+
* Required. The resource name of the Adaptive MT file from which to list the sentences. The following format lists all sentences under a file. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}/adaptiveMtFiles/{file\}` The following format lists all sentences within a dataset. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}`
53715371
*/
53725372
parent?: string;
53735373
}
@@ -5417,7 +5417,7 @@ export namespace translate_v3 {
54175417
* pageSize: 'placeholder-value',
54185418
* // A token identifying a page of results the server should return. Typically, this is the value of ListAdaptiveMtSentencesRequest.next_page_token returned from the previous call to `ListTranslationMemories` method. The first page is returned if `page_token` is empty or missing.
54195419
* pageToken: 'placeholder-value',
5420-
* // Required. The resource name of the project from which to list the Adaptive MT files. The following format lists all sentences under a file. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}/adaptiveMtFiles/{file\}` The following format lists all sentences within a dataset. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}`
5420+
* // Required. The resource name of the Adaptive MT file from which to list the sentences. The following format lists all sentences under a file. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}/adaptiveMtFiles/{file\}` The following format lists all sentences within a dataset. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}`
54215421
* parent:
54225422
* 'projects/my-project/locations/my-location/adaptiveMtDatasets/my-adaptiveMtDataset',
54235423
* },
@@ -5544,7 +5544,7 @@ export namespace translate_v3 {
55445544
*/
55455545
pageToken?: string;
55465546
/**
5547-
* Required. The resource name of the project from which to list the Adaptive MT files. The following format lists all sentences under a file. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}/adaptiveMtFiles/{file\}` The following format lists all sentences within a dataset. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}`
5547+
* Required. The resource name of the Adaptive MT file from which to list the sentences. The following format lists all sentences under a file. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}/adaptiveMtFiles/{file\}` The following format lists all sentences within a dataset. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}`
55485548
*/
55495549
parent?: string;
55505550
}

src/apis/translate/v3beta1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2051,7 +2051,7 @@ export namespace translate_v3beta1 {
20512051
}
20522052

20532053
/**
2054-
* Lists information about the supported locations for this service.
2054+
* Lists information about the supported locations for this service. This method can be called in two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project-visible locations:** Use the path `GET /v1/projects/{project_id\}/locations`. This may include public locations as well as private or other locations specifically visible to the project.
20552055
* @example
20562056
* ```js
20572057
* // Before running the sample:

0 commit comments

Comments
 (0)