Skip to content

Commit

Permalink
feat: Generate Google.Apis.Translate.v3beta1 version 1.68.0.3639
Browse files Browse the repository at this point in the history
  • Loading branch information
amanda-tarafa authored and jskeet committed Dec 23, 2024
1 parent 464dfdf commit 7342198
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
10 changes: 7 additions & 3 deletions DiscoveryJson/translate.v3beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@
"operations": {
"methods": {
"cancel": {
"description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.",
"description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.",
"flatPath": "v3beta1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel",
"httpMethod": "POST",
"id": "translate.projects.locations.operations.cancel",
Expand Down Expand Up @@ -747,7 +747,7 @@
}
}
},
"revision": "20241029",
"revision": "20241218",
"rootUrl": "https://translation.googleapis.com/",
"schemas": {
"BatchDocumentInputConfig": {
Expand Down Expand Up @@ -1404,9 +1404,13 @@
"type": "object"
},
"TranslateTextGlossaryConfig": {
"description": "Configures which glossary should be used for a specific target language, and defines options for applying that glossary.",
"description": "----------------------------------------------------------------------------- Configures which glossary should be used for a specific target language, and defines options for applying that glossary.",
"id": "TranslateTextGlossaryConfig",
"properties": {
"contextualTranslationEnabled": {
"description": "Optional. If set to true, the glossary will be used for contextual translation.",
"type": "boolean"
},
"glossary": {
"description": "Required. Specifies the glossary used for this translation. Use this format: projects/*/locations/*/glossaries/*",
"type": "string"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ public OperationsResource(Google.Apis.Services.IClientService service)
/// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to
/// check whether the cancellation succeeded or whether the operation completed despite cancellation. On
/// successful cancellation, the operation is not deleted; instead, it becomes an operation with an
/// Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
/// Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
/// </summary>
/// <param name="body">The body of the request.</param>
/// <param name="name">The name of the operation resource to be cancelled.</param>
Expand All @@ -615,7 +615,7 @@ public virtual CancelRequest Cancel(Google.Apis.Translate.v3beta1.Data.CancelOpe
/// returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to
/// check whether the cancellation succeeded or whether the operation completed despite cancellation. On
/// successful cancellation, the operation is not deleted; instead, it becomes an operation with an
/// Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
/// Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.
/// </summary>
public class CancelRequest : TranslateBaseServiceRequest<Google.Apis.Translate.v3beta1.Data.Empty>
{
Expand Down Expand Up @@ -2665,11 +2665,15 @@ public class TranslateDocumentResponse : Google.Apis.Requests.IDirectResponseSch
}

/// <summary>
/// Configures which glossary should be used for a specific target language, and defines options for applying that
/// glossary.
/// ----------------------------------------------------------------------------- Configures which glossary should
/// be used for a specific target language, and defines options for applying that glossary.
/// </summary>
public class TranslateTextGlossaryConfig : Google.Apis.Requests.IDirectResponseSchema
{
/// <summary>Optional. If set to true, the glossary will be used for contextual translation.</summary>
[Newtonsoft.Json.JsonPropertyAttribute("contextualTranslationEnabled")]
public virtual System.Nullable<bool> ContextualTranslationEnabled { get; set; }

/// <summary>
/// Required. Specifies the glossary used for this translation. Use this format:
/// projects/*/locations/*/glossaries/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!-- nupkg information -->
<PropertyGroup>
<Title>Google.Apis.Translate.v3beta1 Client Library</Title>
<Version>1.68.0.3589</Version>
<Version>1.68.0.3639</Version>
<Authors>Google LLC</Authors>
<Copyright>Copyright 2024 Google LLC</Copyright>
<PackageTags>Google</PackageTags>
Expand Down

0 comments on commit 7342198

Please sign in to comment.