google-apis-translate_v3 0.39.0 → 0.41.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: af07f6c0e0e0620fe3a1eaee9a5725b1bb0512e484efba8eff727f0f42fa0ce8
4
+ data.tar.gz: b3d08e845f9c59e4796fc12d285521b85bd2f976c24b50d9e008c7123ca4388c
5
5
  SHA512:
6
- metadata.gz: f4e7d59a3df5c85bcc84feebad9b38309113b4c3d60bf3c7b1296d413b446d5262932a84523ea5af87ef613e76556bb20988478c54ab647b6492682bf3a456c4
7
- data.tar.gz: 3e9f42ad405e82fba8c8b5dd7100e5e7fff7ac43b849814ba327f5403ee99cc1fff2164e4e35f7477bed42740278567eb81b59f53e1a789c7a909d1e6afd403c
6
+ metadata.gz: 46dceee827a404fc098cffc55d868a69e6fb6d1121d3995354d009fcb01cdf630d60e47abb044252a97fa42bdeaf2507533fe2c2f5b64f3710a0df8a95df4065
7
+ data.tar.gz: 2b63d4e62c0557c60952c488fdb245b0b95acbbe3f4e4707e24b33150d843b6982ee74d32beba45f5229e2e78c9752bce3d608ac9bdd8bab11d9d0638baee214
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-translate_v3
2
2
 
3
+ ### v0.41.0 (2025-05-04)
4
+
5
+ * Regenerated from discovery document revision 20250424
6
+ * Regenerated using generator version 0.17.0
7
+
8
+ ### v0.40.0 (2024-12-22)
9
+
10
+ * Regenerated from discovery document revision 20241218
11
+
3
12
  ### v0.39.0 (2024-08-25)
4
13
 
5
14
  * Regenerated from discovery document revision 20240821
data/OVERVIEW.md CHANGED
@@ -83,7 +83,7 @@ The [product documentation](https://cloud.google.com/translate/docs/quickstarts)
83
83
 
84
84
  ## Supported Ruby versions
85
85
 
86
- This library is supported on Ruby 2.7+.
86
+ This library is supported on Ruby 3.1+.
87
87
 
88
88
  Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
89
 
@@ -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.41.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.1"
22
+ GENERATOR_VERSION = "0.17.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240821"
25
+ REVISION = "20250424"
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
@@ -451,6 +451,9 @@ module Google
451
451
  # Lists information about the supported locations for this service.
452
452
  # @param [String] name
453
453
  # The resource that owns the locations collection, if applicable.
454
+ # @param [Array<String>, String] extra_location_types
455
+ # Optional. A list of extra location types that should be used as conditions for
456
+ # controlling the visibility of the locations.
454
457
  # @param [String] filter
455
458
  # A filter to narrow down results to a preferred subset. The filtering language
456
459
  # accepts strings like `"displayName=tokyo"`, and is documented in more detail
@@ -478,11 +481,12 @@ module Google
478
481
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
479
482
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
480
483
  # @raise [Google::Apis::AuthorizationError] Authorization is required
481
- def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
484
+ def list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
482
485
  command = make_simple_command(:get, 'v3/{+name}/locations', options)
483
486
  command.response_representation = Google::Apis::TranslateV3::ListLocationsResponse::Representation
484
487
  command.response_class = Google::Apis::TranslateV3::ListLocationsResponse
485
488
  command.params['name'] = name unless name.nil?
489
+ command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil?
486
490
  command.query['filter'] = filter unless filter.nil?
487
491
  command.query['pageSize'] = page_size unless page_size.nil?
488
492
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -1716,8 +1720,8 @@ module Google
1716
1720
  # Clients can use Operations.GetOperation or other methods to check whether the
1717
1721
  # cancellation succeeded or whether the operation completed despite cancellation.
1718
1722
  # 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`.
1723
+ # an operation with an Operation.error value with a google.rpc.Status.code of `1`
1724
+ # , corresponding to `Code.CANCELLED`.
1721
1725
  # @param [String] name
1722
1726
  # The name of the operation resource to be cancelled.
1723
1727
  # @param [Google::Apis::TranslateV3::CancelOperationRequest] cancel_operation_request_object
metadata CHANGED
@@ -1,14 +1,13 @@
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.41.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-08-25 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-apis-core
@@ -58,9 +57,8 @@ licenses:
58
57
  metadata:
59
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
59
  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
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-translate_v3/v0.41.0
62
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-translate_v3
63
- post_install_message:
64
62
  rdoc_options: []
65
63
  require_paths:
66
64
  - lib
@@ -68,15 +66,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
66
  requirements:
69
67
  - - ">="
70
68
  - !ruby/object:Gem::Version
71
- version: '2.7'
69
+ version: '3.1'
72
70
  required_rubygems_version: !ruby/object:Gem::Requirement
73
71
  requirements:
74
72
  - - ">="
75
73
  - !ruby/object:Gem::Version
76
74
  version: '0'
77
75
  requirements: []
78
- rubygems_version: 3.5.6
79
- signing_key:
76
+ rubygems_version: 3.6.8
80
77
  specification_version: 4
81
78
  summary: Simple REST client for Cloud Translation API V3
82
79
  test_files: []