google-apis-translate_v3 0.39.0 → 0.40.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5dde1cb5b43cfd70a57f6bf1e756554497aca3801cefb46b9b4e79da6b125cec
4
- data.tar.gz: bfd500279dbde192882e441fdf1c76ecaa496fff1f8e386469bf7990f693d5d0
3
+ metadata.gz: 9cbb591ca03ee91713be34dce15805cc4f3c3114239ec9e3598342bfce670c7e
4
+ data.tar.gz: dc9f7f6c02682ff1ec430c433b32d4f0d28b5057d156e35517188a6e3d978c33
5
5
  SHA512:
6
- metadata.gz: f4e7d59a3df5c85bcc84feebad9b38309113b4c3d60bf3c7b1296d413b446d5262932a84523ea5af87ef613e76556bb20988478c54ab647b6492682bf3a456c4
7
- data.tar.gz: 3e9f42ad405e82fba8c8b5dd7100e5e7fff7ac43b849814ba327f5403ee99cc1fff2164e4e35f7477bed42740278567eb81b59f53e1a789c7a909d1e6afd403c
6
+ metadata.gz: 05a407c744b86feb9295eeaf152e86cfe2a4f4088637cb9c6f3a03354a11e4b468b96e8d368e4804a38bc1990262194971d156094a589a0c3548661af82c2d0e
7
+ data.tar.gz: 8764780f1e0efc93e1e3601cae11d07c9bbbdd3db4148b5f7905373597df5a60a485186be8e63a18bb20cacd8f0ebf9b22804ee6f0add589caf88dc474cca590
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-translate_v3
2
2
 
3
+ ### v0.40.0 (2024-12-22)
4
+
5
+ * Regenerated from discovery document revision 20241218
6
+
3
7
  ### v0.39.0 (2024-08-25)
4
8
 
5
9
  * Regenerated from discovery document revision 20240821
@@ -1046,6 +1046,12 @@ module Google
1046
1046
  class GlossaryConfig
1047
1047
  include Google::Apis::Core::Hashable
1048
1048
 
1049
+ # Optional. If set to true, the glossary will be used for contextual translation.
1050
+ # Corresponds to the JSON property `contextualTranslationEnabled`
1051
+ # @return [Boolean]
1052
+ attr_accessor :contextual_translation_enabled
1053
+ alias_method :contextual_translation_enabled?, :contextual_translation_enabled
1054
+
1049
1055
  # Required. The `glossary` to be applied for this translation. The format
1050
1056
  # depends on the glossary: - User-provided custom glossary: `projects/`project-
1051
1057
  # number-or-id`/locations/`location-id`/glossaries/`glossary-id``
@@ -1066,6 +1072,7 @@ module Google
1066
1072
 
1067
1073
  # Update properties of this object
1068
1074
  def update!(**args)
1075
+ @contextual_translation_enabled = args[:contextual_translation_enabled] if args.key?(:contextual_translation_enabled)
1069
1076
  @glossary = args[:glossary] if args.key?(:glossary)
1070
1077
  @ignore_case = args[:ignore_case] if args.key?(:ignore_case)
1071
1078
  end
@@ -2238,6 +2245,12 @@ module Google
2238
2245
  class TranslateTextGlossaryConfig
2239
2246
  include Google::Apis::Core::Hashable
2240
2247
 
2248
+ # Optional. If set to true, the glossary will be used for contextual translation.
2249
+ # Corresponds to the JSON property `contextualTranslationEnabled`
2250
+ # @return [Boolean]
2251
+ attr_accessor :contextual_translation_enabled
2252
+ alias_method :contextual_translation_enabled?, :contextual_translation_enabled
2253
+
2241
2254
  # Required. The `glossary` to be applied for this translation. The format
2242
2255
  # depends on the glossary: - User-provided custom glossary: `projects/`project-
2243
2256
  # number-or-id`/locations/`location-id`/glossaries/`glossary-id``
@@ -2258,6 +2271,7 @@ module Google
2258
2271
 
2259
2272
  # Update properties of this object
2260
2273
  def update!(**args)
2274
+ @contextual_translation_enabled = args[:contextual_translation_enabled] if args.key?(:contextual_translation_enabled)
2261
2275
  @glossary = args[:glossary] if args.key?(:glossary)
2262
2276
  @ignore_case = args[:ignore_case] if args.key?(:ignore_case)
2263
2277
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module TranslateV3
18
18
  # Version of the google-apis-translate_v3 gem
19
- GEM_VERSION = "0.39.0"
19
+ GEM_VERSION = "0.40.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240821"
25
+ REVISION = "20241218"
26
26
  end
27
27
  end
28
28
  end
@@ -749,6 +749,7 @@ module Google
749
749
  class GlossaryConfig
750
750
  # @private
751
751
  class Representation < Google::Apis::Core::JsonRepresentation
752
+ property :contextual_translation_enabled, as: 'contextualTranslationEnabled'
752
753
  property :glossary, as: 'glossary'
753
754
  property :ignore_case, as: 'ignoreCase'
754
755
  end
@@ -1109,6 +1110,7 @@ module Google
1109
1110
  class TranslateTextGlossaryConfig
1110
1111
  # @private
1111
1112
  class Representation < Google::Apis::Core::JsonRepresentation
1113
+ property :contextual_translation_enabled, as: 'contextualTranslationEnabled'
1112
1114
  property :glossary, as: 'glossary'
1113
1115
  property :ignore_case, as: 'ignoreCase'
1114
1116
  end
@@ -1716,8 +1716,8 @@ module Google
1716
1716
  # Clients can use Operations.GetOperation or other methods to check whether the
1717
1717
  # cancellation succeeded or whether the operation completed despite cancellation.
1718
1718
  # On successful cancellation, the operation is not deleted; instead, it becomes
1719
- # an operation with an Operation.error value with a google.rpc.Status.code of 1,
1720
- # corresponding to `Code.CANCELLED`.
1719
+ # an operation with an Operation.error value with a google.rpc.Status.code of `1`
1720
+ # , corresponding to `Code.CANCELLED`.
1721
1721
  # @param [String] name
1722
1722
  # The name of the operation resource to be cancelled.
1723
1723
  # @param [Google::Apis::TranslateV3::CancelOperationRequest] cancel_operation_request_object
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-translate_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.39.0
4
+ version: 0.40.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-25 00:00:00.000000000 Z
11
+ date: 2025-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-translate_v3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-translate_v3/v0.39.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-translate_v3/v0.40.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-translate_v3
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.5.6
78
+ rubygems_version: 3.5.23
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Translation API V3