google-apis-translate_v3 0.38.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cbb591ca03ee91713be34dce15805cc4f3c3114239ec9e3598342bfce670c7e
|
4
|
+
data.tar.gz: dc9f7f6c02682ff1ec430c433b32d4f0d28b5057d156e35517188a6e3d978c33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05a407c744b86feb9295eeaf152e86cfe2a4f4088637cb9c6f3a03354a11e4b468b96e8d368e4804a38bc1990262194971d156094a589a0c3548661af82c2d0e
|
7
|
+
data.tar.gz: 8764780f1e0efc93e1e3601cae11d07c9bbbdd3db4148b5f7905373597df5a60a485186be8e63a18bb20cacd8f0ebf9b22804ee6f0add589caf88dc474cca590
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
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
|
+
|
7
|
+
### v0.39.0 (2024-08-25)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20240821
|
10
|
+
* Regenerated using generator version 0.15.1
|
11
|
+
|
3
12
|
### v0.38.0 (2024-07-25)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20240718
|
@@ -188,7 +188,7 @@ module Google
|
|
188
188
|
# Configures which glossary is used for a specific target language and defines
|
189
189
|
# options for applying that glossary.
|
190
190
|
# Corresponds to the JSON property `glossaryConfig`
|
191
|
-
# @return [Google::Apis::TranslateV3::
|
191
|
+
# @return [Google::Apis::TranslateV3::GlossaryConfig]
|
192
192
|
attr_accessor :glossary_config
|
193
193
|
|
194
194
|
# Message of caller-provided reference configuration.
|
@@ -812,7 +812,7 @@ module Google
|
|
812
812
|
|
813
813
|
# Output only. The resource name of the example, in form of `projects/`project-
|
814
814
|
# number-or-id`/locations/`location_id`/datasets/`dataset_id`/examples/`
|
815
|
-
# example_id
|
815
|
+
# example_id``
|
816
816
|
# Corresponds to the JSON property `name`
|
817
817
|
# @return [String]
|
818
818
|
attr_accessor :name
|
@@ -1041,6 +1041,43 @@ module Google
|
|
1041
1041
|
end
|
1042
1042
|
end
|
1043
1043
|
|
1044
|
+
# Configures which glossary is used for a specific target language and defines
|
1045
|
+
# options for applying that glossary.
|
1046
|
+
class GlossaryConfig
|
1047
|
+
include Google::Apis::Core::Hashable
|
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
|
+
|
1055
|
+
# Required. The `glossary` to be applied for this translation. The format
|
1056
|
+
# depends on the glossary: - User-provided custom glossary: `projects/`project-
|
1057
|
+
# number-or-id`/locations/`location-id`/glossaries/`glossary-id``
|
1058
|
+
# Corresponds to the JSON property `glossary`
|
1059
|
+
# @return [String]
|
1060
|
+
attr_accessor :glossary
|
1061
|
+
|
1062
|
+
# Optional. Indicates match is case insensitive. The default value is `false` if
|
1063
|
+
# missing.
|
1064
|
+
# Corresponds to the JSON property `ignoreCase`
|
1065
|
+
# @return [Boolean]
|
1066
|
+
attr_accessor :ignore_case
|
1067
|
+
alias_method :ignore_case?, :ignore_case
|
1068
|
+
|
1069
|
+
def initialize(**args)
|
1070
|
+
update!(**args)
|
1071
|
+
end
|
1072
|
+
|
1073
|
+
# Update properties of this object
|
1074
|
+
def update!(**args)
|
1075
|
+
@contextual_translation_enabled = args[:contextual_translation_enabled] if args.key?(:contextual_translation_enabled)
|
1076
|
+
@glossary = args[:glossary] if args.key?(:glossary)
|
1077
|
+
@ignore_case = args[:ignore_case] if args.key?(:ignore_case)
|
1078
|
+
end
|
1079
|
+
end
|
1080
|
+
|
1044
1081
|
# Represents a single entry in a glossary.
|
1045
1082
|
class GlossaryEntry
|
1046
1083
|
include Google::Apis::Core::Hashable
|
@@ -1050,8 +1087,8 @@ module Google
|
|
1050
1087
|
# @return [String]
|
1051
1088
|
attr_accessor :description
|
1052
1089
|
|
1053
|
-
# Identifier. The resource name of the entry. Format:
|
1054
|
-
# glossaries/*/glossaryEntries
|
1090
|
+
# Identifier. The resource name of the entry. Format: `projects/*/locations/*/
|
1091
|
+
# glossaries/*/glossaryEntries/*`
|
1055
1092
|
# Corresponds to the JSON property `name`
|
1056
1093
|
# @return [String]
|
1057
1094
|
attr_accessor :name
|
@@ -2208,6 +2245,12 @@ module Google
|
|
2208
2245
|
class TranslateTextGlossaryConfig
|
2209
2246
|
include Google::Apis::Core::Hashable
|
2210
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
|
+
|
2211
2254
|
# Required. The `glossary` to be applied for this translation. The format
|
2212
2255
|
# depends on the glossary: - User-provided custom glossary: `projects/`project-
|
2213
2256
|
# number-or-id`/locations/`location-id`/glossaries/`glossary-id``
|
@@ -2228,6 +2271,7 @@ module Google
|
|
2228
2271
|
|
2229
2272
|
# Update properties of this object
|
2230
2273
|
def update!(**args)
|
2274
|
+
@contextual_translation_enabled = args[:contextual_translation_enabled] if args.key?(:contextual_translation_enabled)
|
2231
2275
|
@glossary = args[:glossary] if args.key?(:glossary)
|
2232
2276
|
@ignore_case = args[:ignore_case] if args.key?(:ignore_case)
|
2233
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.
|
19
|
+
GEM_VERSION = "0.40.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.15.
|
22
|
+
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20241218"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -196,6 +196,12 @@ module Google
|
|
196
196
|
include Google::Apis::Core::JsonObjectSupport
|
197
197
|
end
|
198
198
|
|
199
|
+
class GlossaryConfig
|
200
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
|
+
|
202
|
+
include Google::Apis::Core::JsonObjectSupport
|
203
|
+
end
|
204
|
+
|
199
205
|
class GlossaryEntry
|
200
206
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
207
|
|
@@ -494,7 +500,7 @@ module Google
|
|
494
500
|
class Representation < Google::Apis::Core::JsonRepresentation
|
495
501
|
collection :content, as: 'content'
|
496
502
|
property :dataset, as: 'dataset'
|
497
|
-
property :glossary_config, as: 'glossaryConfig', class: Google::Apis::TranslateV3::
|
503
|
+
property :glossary_config, as: 'glossaryConfig', class: Google::Apis::TranslateV3::GlossaryConfig, decorator: Google::Apis::TranslateV3::GlossaryConfig::Representation
|
498
504
|
|
499
505
|
property :reference_sentence_config, as: 'referenceSentenceConfig', class: Google::Apis::TranslateV3::ReferenceSentenceConfig, decorator: Google::Apis::TranslateV3::ReferenceSentenceConfig::Representation
|
500
506
|
|
@@ -740,6 +746,15 @@ module Google
|
|
740
746
|
end
|
741
747
|
end
|
742
748
|
|
749
|
+
class GlossaryConfig
|
750
|
+
# @private
|
751
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
752
|
+
property :contextual_translation_enabled, as: 'contextualTranslationEnabled'
|
753
|
+
property :glossary, as: 'glossary'
|
754
|
+
property :ignore_case, as: 'ignoreCase'
|
755
|
+
end
|
756
|
+
end
|
757
|
+
|
743
758
|
class GlossaryEntry
|
744
759
|
# @private
|
745
760
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1095,6 +1110,7 @@ module Google
|
|
1095
1110
|
class TranslateTextGlossaryConfig
|
1096
1111
|
# @private
|
1097
1112
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1113
|
+
property :contextual_translation_enabled, as: 'contextualTranslationEnabled'
|
1098
1114
|
property :glossary, as: 'glossary'
|
1099
1115
|
property :ignore_case, as: 'ignoreCase'
|
1100
1116
|
end
|
@@ -1540,8 +1540,8 @@ module Google
|
|
1540
1540
|
|
1541
1541
|
# Updates a glossary entry.
|
1542
1542
|
# @param [String] name
|
1543
|
-
# Identifier. The resource name of the entry. Format:
|
1544
|
-
# glossaries/*/glossaryEntries
|
1543
|
+
# Identifier. The resource name of the entry. Format: `projects/*/locations/*/
|
1544
|
+
# glossaries/*/glossaryEntries/*`
|
1545
1545
|
# @param [Google::Apis::TranslateV3::GlossaryEntry] glossary_entry_object
|
1546
1546
|
# @param [String] fields
|
1547
1547
|
# Selector specifying which fields to include in a partial response.
|
@@ -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.
|
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:
|
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.
|
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.
|
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
|