google-apis-translate_v3beta1 0.33.0 → 0.35.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 +4 -4
- data/CHANGELOG.md +10 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/translate_v3beta1/classes.rb +12 -0
- data/lib/google/apis/translate_v3beta1/gem_version.rb +3 -3
- data/lib/google/apis/translate_v3beta1/representations.rb +1 -0
- data/lib/google/apis/translate_v3beta1/service.rb +7 -3
- metadata +5 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7fe10ef0116c4a63238d0b78109de7597df2918f0d652cc436af35b67c4c29df
|
4
|
+
data.tar.gz: '058c2f8b01ba1c39753d3cf90ed0169125593b4912eb75f43bf7c04b9c7915c7'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af26357863ef5471ce9f9177482790a1670e697ac50245a8a45ca1a1485eb244dfca01e0ef7713fcba396b6c8657ad1f62ebf03cce36b709b8052bb3a72585d1
|
7
|
+
data.tar.gz: cdcfdbef0708ea807e929da6865f3d5d6697b5b9538bfce72d984fc5d425fe154afc4a8d98e340553c04f3c2909e6fbeec3cc60e0691837cba8e4f84a150432b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Release history for google-apis-translate_v3beta1
|
2
2
|
|
3
|
+
### v0.35.0 (2025-05-04)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250424
|
6
|
+
* Regenerated using generator version 0.17.0
|
7
|
+
|
8
|
+
### v0.34.0 (2024-12-22)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20241218
|
11
|
+
* Regenerated using generator version 0.15.1
|
12
|
+
|
3
13
|
### v0.33.0 (2024-05-19)
|
4
14
|
|
5
15
|
* Regenerated using generator version 0.15.0
|
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
|
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
|
|
@@ -988,6 +988,7 @@ module Google
|
|
988
988
|
attr_accessor :enable_shadow_removal_native_pdf
|
989
989
|
alias_method :enable_shadow_removal_native_pdf?, :enable_shadow_removal_native_pdf
|
990
990
|
|
991
|
+
# -----------------------------------------------------------------------------
|
991
992
|
# Configures which glossary should be used for a specific target language, and
|
992
993
|
# defines options for applying that glossary.
|
993
994
|
# Corresponds to the JSON property `glossaryConfig`
|
@@ -1066,6 +1067,7 @@ module Google
|
|
1066
1067
|
# @return [Google::Apis::TranslateV3beta1::DocumentTranslation]
|
1067
1068
|
attr_accessor :document_translation
|
1068
1069
|
|
1070
|
+
# -----------------------------------------------------------------------------
|
1069
1071
|
# Configures which glossary should be used for a specific target language, and
|
1070
1072
|
# defines options for applying that glossary.
|
1071
1073
|
# Corresponds to the JSON property `glossaryConfig`
|
@@ -1099,11 +1101,18 @@ module Google
|
|
1099
1101
|
end
|
1100
1102
|
end
|
1101
1103
|
|
1104
|
+
# -----------------------------------------------------------------------------
|
1102
1105
|
# Configures which glossary should be used for a specific target language, and
|
1103
1106
|
# defines options for applying that glossary.
|
1104
1107
|
class TranslateTextGlossaryConfig
|
1105
1108
|
include Google::Apis::Core::Hashable
|
1106
1109
|
|
1110
|
+
# Optional. If set to true, the glossary will be used for contextual translation.
|
1111
|
+
# Corresponds to the JSON property `contextualTranslationEnabled`
|
1112
|
+
# @return [Boolean]
|
1113
|
+
attr_accessor :contextual_translation_enabled
|
1114
|
+
alias_method :contextual_translation_enabled?, :contextual_translation_enabled
|
1115
|
+
|
1107
1116
|
# Required. Specifies the glossary used for this translation. Use this format:
|
1108
1117
|
# projects/*/locations/*/glossaries/*
|
1109
1118
|
# Corresponds to the JSON property `glossary`
|
@@ -1123,6 +1132,7 @@ module Google
|
|
1123
1132
|
|
1124
1133
|
# Update properties of this object
|
1125
1134
|
def update!(**args)
|
1135
|
+
@contextual_translation_enabled = args[:contextual_translation_enabled] if args.key?(:contextual_translation_enabled)
|
1126
1136
|
@glossary = args[:glossary] if args.key?(:glossary)
|
1127
1137
|
@ignore_case = args[:ignore_case] if args.key?(:ignore_case)
|
1128
1138
|
end
|
@@ -1139,6 +1149,7 @@ module Google
|
|
1139
1149
|
# @return [Array<String>]
|
1140
1150
|
attr_accessor :contents
|
1141
1151
|
|
1152
|
+
# -----------------------------------------------------------------------------
|
1142
1153
|
# Configures which glossary should be used for a specific target language, and
|
1143
1154
|
# defines options for applying that glossary.
|
1144
1155
|
# Corresponds to the JSON property `glossaryConfig`
|
@@ -1243,6 +1254,7 @@ module Google
|
|
1243
1254
|
# @return [String]
|
1244
1255
|
attr_accessor :detected_language_code
|
1245
1256
|
|
1257
|
+
# -----------------------------------------------------------------------------
|
1246
1258
|
# Configures which glossary should be used for a specific target language, and
|
1247
1259
|
# defines options for applying that glossary.
|
1248
1260
|
# Corresponds to the JSON property `glossaryConfig`
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module TranslateV3beta1
|
18
18
|
# Version of the google-apis-translate_v3beta1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.35.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.17.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250424"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -532,6 +532,7 @@ module Google
|
|
532
532
|
class TranslateTextGlossaryConfig
|
533
533
|
# @private
|
534
534
|
class Representation < Google::Apis::Core::JsonRepresentation
|
535
|
+
property :contextual_translation_enabled, as: 'contextualTranslationEnabled'
|
535
536
|
property :glossary, as: 'glossary'
|
536
537
|
property :ignore_case, as: 'ignoreCase'
|
537
538
|
end
|
@@ -381,6 +381,9 @@ module Google
|
|
381
381
|
# Lists information about the supported locations for this service.
|
382
382
|
# @param [String] name
|
383
383
|
# The resource that owns the locations collection, if applicable.
|
384
|
+
# @param [Array<String>, String] extra_location_types
|
385
|
+
# Optional. A list of extra location types that should be used as conditions for
|
386
|
+
# controlling the visibility of the locations.
|
384
387
|
# @param [String] filter
|
385
388
|
# A filter to narrow down results to a preferred subset. The filtering language
|
386
389
|
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
@@ -408,11 +411,12 @@ module Google
|
|
408
411
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
409
412
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
410
413
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
411
|
-
def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
414
|
+
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)
|
412
415
|
command = make_simple_command(:get, 'v3beta1/{+name}/locations', options)
|
413
416
|
command.response_representation = Google::Apis::TranslateV3beta1::ListLocationsResponse::Representation
|
414
417
|
command.response_class = Google::Apis::TranslateV3beta1::ListLocationsResponse
|
415
418
|
command.params['name'] = name unless name.nil?
|
419
|
+
command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil?
|
416
420
|
command.query['filter'] = filter unless filter.nil?
|
417
421
|
command.query['pageSize'] = page_size unless page_size.nil?
|
418
422
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -655,8 +659,8 @@ module Google
|
|
655
659
|
# Clients can use Operations.GetOperation or other methods to check whether the
|
656
660
|
# cancellation succeeded or whether the operation completed despite cancellation.
|
657
661
|
# On successful cancellation, the operation is not deleted; instead, it becomes
|
658
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1
|
659
|
-
# corresponding to `Code.CANCELLED`.
|
662
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
|
663
|
+
# , corresponding to `Code.CANCELLED`.
|
660
664
|
# @param [String] name
|
661
665
|
# The name of the operation resource to be cancelled.
|
662
666
|
# @param [Google::Apis::TranslateV3beta1::CancelOperationRequest] cancel_operation_request_object
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-translate_v3beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.35.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
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_v3beta1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-translate_v3beta1/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-translate_v3beta1/v0.35.0
|
62
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-translate_v3beta1
|
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: '
|
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.
|
79
|
-
signing_key:
|
76
|
+
rubygems_version: 3.6.8
|
80
77
|
specification_version: 4
|
81
78
|
summary: Simple REST client for Cloud Translation API V3beta1
|
82
79
|
test_files: []
|