Skip to content

Commit

Permalink
fix(translate): update the API
Browse files Browse the repository at this point in the history
#### translate:v3beta1

The following keys were changed:
- schemas.BatchTranslateDocumentRequest.properties.formatConversions.description

#### translate:v3

The following keys were changed:
- resources.projects.methods.getSupportedLanguages.scopes
- resources.projects.resources.locations.methods.getSupportedLanguages.scopes
- resources.projects.resources.locations.resources.glossaries.methods.delete.scopes
- resources.projects.resources.locations.resources.glossaries.methods.get.scopes
- resources.projects.resources.locations.resources.glossaries.methods.list.scopes
- resources.projects.resources.locations.resources.glossaries.resources.glossaryEntries.methods.get.scopes
- resources.projects.resources.locations.resources.glossaries.resources.glossaryEntries.methods.list.scopes
- schemas.BatchTranslateDocumentRequest.properties.formatConversions.description
  • Loading branch information
yoshi-automation committed Oct 11, 2023
1 parent a28b76a commit 41f6be1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 20 deletions.
25 changes: 9 additions & 16 deletions discovery/translate-v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@
"$ref": "SupportedLanguages"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-translation"
"https://www.googleapis.com/auth/cloud-platform"
]
},
"romanizeText": {
Expand Down Expand Up @@ -380,8 +379,7 @@
"$ref": "SupportedLanguages"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-translation"
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
Expand Down Expand Up @@ -795,8 +793,7 @@
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-translation"
"https://www.googleapis.com/auth/cloud-platform"
]
},
"get": {
Expand All @@ -821,8 +818,7 @@
"$ref": "Glossary"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-translation"
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
Expand Down Expand Up @@ -863,8 +859,7 @@
"$ref": "ListGlossariesResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-translation"
"https://www.googleapis.com/auth/cloud-platform"
]
},
"patch": {
Expand Down Expand Up @@ -982,8 +977,7 @@
"$ref": "GlossaryEntry"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-translation"
"https://www.googleapis.com/auth/cloud-platform"
]
},
"list": {
Expand Down Expand Up @@ -1019,8 +1013,7 @@
"$ref": "ListGlossaryEntriesResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/cloud-translation"
"https://www.googleapis.com/auth/cloud-platform"
]
},
"patch": {
Expand Down Expand Up @@ -1344,7 +1337,7 @@
}
}
},
"revision": "20230808",
"revision": "20230922",
"rootUrl": "https://translation.googleapis.com/",
"schemas": {
"BatchDocumentInputConfig": {
Expand Down Expand Up @@ -1389,7 +1382,7 @@
"additionalProperties": {
"type": "string"
},
"description": "Optional.",
"description": "Optional. The file format conversion map that is applied to all input files. The map key is the original mime_type. The map value is the target mime_type of translated documents. Supported file format conversion includes: - `application/pdf` to `application/vnd.openxmlformats-officedocument.wordprocessingml.document` If nothing specified, output files will be in the same format as the original file.",
"type": "object"
},
"glossaries": {
Expand Down
4 changes: 2 additions & 2 deletions discovery/translate-v3beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@
}
}
},
"revision": "20230808",
"revision": "20230922",
"rootUrl": "https://translation.googleapis.com/",
"schemas": {
"BatchDocumentInputConfig": {
Expand Down Expand Up @@ -789,7 +789,7 @@
"additionalProperties": {
"type": "string"
},
"description": "Optional.",
"description": "Optional. File format conversion map to be applied to all input files. Map's key is the original mime_type. Map's value is the target mime_type of translated documents. Supported file format conversion includes: - `application/pdf` to `application/vnd.openxmlformats-officedocument.wordprocessingml.document` If nothing specified, output files will be in the same format as the original file.",
"type": "object"
},
"glossaries": {
Expand Down
2 changes: 1 addition & 1 deletion src/apis/translate/v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export namespace translate_v3 {
*/
enableShadowRemovalNativePdf?: boolean | null;
/**
* Optional.
* Optional. The file format conversion map that is applied to all input files. The map key is the original mime_type. The map value is the target mime_type of translated documents. Supported file format conversion includes: - `application/pdf` to `application/vnd.openxmlformats-officedocument.wordprocessingml.document` If nothing specified, output files will be in the same format as the original file.
*/
formatConversions?: {[key: string]: string} | null;
/**
Expand Down
2 changes: 1 addition & 1 deletion src/apis/translate/v3beta1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export namespace translate_v3beta1 {
*/
enableShadowRemovalNativePdf?: boolean | null;
/**
* Optional.
* Optional. File format conversion map to be applied to all input files. Map's key is the original mime_type. Map's value is the target mime_type of translated documents. Supported file format conversion includes: - `application/pdf` to `application/vnd.openxmlformats-officedocument.wordprocessingml.document` If nothing specified, output files will be in the same format as the original file.
*/
formatConversions?: {[key: string]: string} | null;
/**
Expand Down

0 comments on commit 41f6be1

Please sign in to comment.