google-apis-translate_v3beta1 0.35.0 → 0.36.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 +5 -0
- data/lib/google/apis/translate_v3beta1/classes.rb +116 -19
- data/lib/google/apis/translate_v3beta1/gem_version.rb +3 -3
- data/lib/google/apis/translate_v3beta1/representations.rb +45 -0
- data/lib/google/apis/translate_v3beta1/service.rb +48 -3
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 75a72575155fe15b964f1a3c64d70750f92feea76287070c73dc31deb66e0319
|
|
4
|
+
data.tar.gz: 11b9e9061fef84479b25af0d2073e355ce780172bda70517fe7002a69942aefd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8d3a02e62cbbbbd5139ae366f59d6d893036878d46acddd395f88989398bcba746627bae4289dbf9bc1ae63c7f9961fb6862895497713c7f4ae01a67a58c091d
|
|
7
|
+
data.tar.gz: 94d9a4d15b99c3c6b8a04fdd3e417335711086721ed4a09508bdd1a05fdc4b6831e3a86786cbb9420a5c7393198283dafa9034ed40db38acbc1d1ebb9313dd30
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Release history for google-apis-translate_v3beta1
|
|
2
2
|
|
|
3
|
+
### v0.36.0 (2026-01-11)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20260108
|
|
6
|
+
* Regenerated using generator version 0.18.0
|
|
7
|
+
|
|
3
8
|
### v0.35.0 (2025-05-04)
|
|
4
9
|
|
|
5
10
|
* Regenerated from discovery document revision 20250424
|
|
@@ -125,6 +125,12 @@ module Google
|
|
|
125
125
|
# @return [Google::Apis::TranslateV3beta1::BatchDocumentOutputConfig]
|
|
126
126
|
attr_accessor :output_config
|
|
127
127
|
|
|
128
|
+
# Optional. If true, only native pdf pages will be translated.
|
|
129
|
+
# Corresponds to the JSON property `pdfNativeOnly`
|
|
130
|
+
# @return [Boolean]
|
|
131
|
+
attr_accessor :pdf_native_only
|
|
132
|
+
alias_method :pdf_native_only?, :pdf_native_only
|
|
133
|
+
|
|
128
134
|
# Required. The BCP-47 language code of the input document if known, for example,
|
|
129
135
|
# "en-US" or "sr-Latn". Supported language codes are listed in [Language
|
|
130
136
|
# Support](https://cloud.google.com/translate/docs/languages).
|
|
@@ -133,7 +139,9 @@ module Google
|
|
|
133
139
|
attr_accessor :source_language_code
|
|
134
140
|
|
|
135
141
|
# Required. The BCP-47 language code to use for translation of the input
|
|
136
|
-
# document. Specify up to 10 language codes here.
|
|
142
|
+
# document. Specify up to 10 language codes here. Supported language codes are
|
|
143
|
+
# listed in [Language Support](https://cloud.google.com/translate/docs/languages)
|
|
144
|
+
# .
|
|
137
145
|
# Corresponds to the JSON property `targetLanguageCodes`
|
|
138
146
|
# @return [Array<String>]
|
|
139
147
|
attr_accessor :target_language_codes
|
|
@@ -152,6 +160,7 @@ module Google
|
|
|
152
160
|
@input_configs = args[:input_configs] if args.key?(:input_configs)
|
|
153
161
|
@models = args[:models] if args.key?(:models)
|
|
154
162
|
@output_config = args[:output_config] if args.key?(:output_config)
|
|
163
|
+
@pdf_native_only = args[:pdf_native_only] if args.key?(:pdf_native_only)
|
|
155
164
|
@source_language_code = args[:source_language_code] if args.key?(:source_language_code)
|
|
156
165
|
@target_language_codes = args[:target_language_codes] if args.key?(:target_language_codes)
|
|
157
166
|
end
|
|
@@ -201,12 +210,15 @@ module Google
|
|
|
201
210
|
# @return [Google::Apis::TranslateV3beta1::OutputConfig]
|
|
202
211
|
attr_accessor :output_config
|
|
203
212
|
|
|
204
|
-
# Required. Source language code.
|
|
213
|
+
# Required. Source language code. Supported language codes are listed in [
|
|
214
|
+
# Language Support](https://cloud.google.com/translate/docs/languages).
|
|
205
215
|
# Corresponds to the JSON property `sourceLanguageCode`
|
|
206
216
|
# @return [String]
|
|
207
217
|
attr_accessor :source_language_code
|
|
208
218
|
|
|
209
|
-
# Required. Specify up to 10 language codes here.
|
|
219
|
+
# Required. Specify up to 10 language codes here. Supported language codes are
|
|
220
|
+
# listed in [Language Support](https://cloud.google.com/translate/docs/languages)
|
|
221
|
+
# .
|
|
210
222
|
# Corresponds to the JSON property `targetLanguageCodes`
|
|
211
223
|
# @return [Array<String>]
|
|
212
224
|
attr_accessor :target_language_codes
|
|
@@ -711,6 +723,14 @@ module Google
|
|
|
711
723
|
# @return [Array<Google::Apis::TranslateV3beta1::Operation>]
|
|
712
724
|
attr_accessor :operations
|
|
713
725
|
|
|
726
|
+
# Unordered list. Unreachable resources. Populated when the request sets `
|
|
727
|
+
# ListOperationsRequest.return_partial_success` and reads across collections.
|
|
728
|
+
# For example, when attempting to list all resources across all supported
|
|
729
|
+
# locations.
|
|
730
|
+
# Corresponds to the JSON property `unreachable`
|
|
731
|
+
# @return [Array<String>]
|
|
732
|
+
attr_accessor :unreachable
|
|
733
|
+
|
|
714
734
|
def initialize(**args)
|
|
715
735
|
update!(**args)
|
|
716
736
|
end
|
|
@@ -719,6 +739,7 @@ module Google
|
|
|
719
739
|
def update!(**args)
|
|
720
740
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
721
741
|
@operations = args[:operations] if args.key?(:operations)
|
|
742
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
|
722
743
|
end
|
|
723
744
|
end
|
|
724
745
|
|
|
@@ -850,6 +871,84 @@ module Google
|
|
|
850
871
|
end
|
|
851
872
|
end
|
|
852
873
|
|
|
874
|
+
# Request message for RefineText.
|
|
875
|
+
class RefineTextRequest
|
|
876
|
+
include Google::Apis::Core::Hashable
|
|
877
|
+
|
|
878
|
+
# Required. The source texts and original translations in the source and target
|
|
879
|
+
# languages.
|
|
880
|
+
# Corresponds to the JSON property `refinementEntries`
|
|
881
|
+
# @return [Array<Google::Apis::TranslateV3beta1::RefinementEntry>]
|
|
882
|
+
attr_accessor :refinement_entries
|
|
883
|
+
|
|
884
|
+
# Required. The BCP-47 language code of the source text in the request, for
|
|
885
|
+
# example, "en-US".
|
|
886
|
+
# Corresponds to the JSON property `sourceLanguageCode`
|
|
887
|
+
# @return [String]
|
|
888
|
+
attr_accessor :source_language_code
|
|
889
|
+
|
|
890
|
+
# Required. The BCP-47 language code for translation output, for example, "zh-CN"
|
|
891
|
+
# .
|
|
892
|
+
# Corresponds to the JSON property `targetLanguageCode`
|
|
893
|
+
# @return [String]
|
|
894
|
+
attr_accessor :target_language_code
|
|
895
|
+
|
|
896
|
+
def initialize(**args)
|
|
897
|
+
update!(**args)
|
|
898
|
+
end
|
|
899
|
+
|
|
900
|
+
# Update properties of this object
|
|
901
|
+
def update!(**args)
|
|
902
|
+
@refinement_entries = args[:refinement_entries] if args.key?(:refinement_entries)
|
|
903
|
+
@source_language_code = args[:source_language_code] if args.key?(:source_language_code)
|
|
904
|
+
@target_language_code = args[:target_language_code] if args.key?(:target_language_code)
|
|
905
|
+
end
|
|
906
|
+
end
|
|
907
|
+
|
|
908
|
+
# Response message for RefineText.
|
|
909
|
+
class RefineTextResponse
|
|
910
|
+
include Google::Apis::Core::Hashable
|
|
911
|
+
|
|
912
|
+
# The refined translations obtained from the original translations.
|
|
913
|
+
# Corresponds to the JSON property `refinedTranslations`
|
|
914
|
+
# @return [Array<String>]
|
|
915
|
+
attr_accessor :refined_translations
|
|
916
|
+
|
|
917
|
+
def initialize(**args)
|
|
918
|
+
update!(**args)
|
|
919
|
+
end
|
|
920
|
+
|
|
921
|
+
# Update properties of this object
|
|
922
|
+
def update!(**args)
|
|
923
|
+
@refined_translations = args[:refined_translations] if args.key?(:refined_translations)
|
|
924
|
+
end
|
|
925
|
+
end
|
|
926
|
+
|
|
927
|
+
# A single refinement entry for RefineTextRequest.
|
|
928
|
+
class RefinementEntry
|
|
929
|
+
include Google::Apis::Core::Hashable
|
|
930
|
+
|
|
931
|
+
# Required. The original translation of the source text.
|
|
932
|
+
# Corresponds to the JSON property `originalTranslation`
|
|
933
|
+
# @return [String]
|
|
934
|
+
attr_accessor :original_translation
|
|
935
|
+
|
|
936
|
+
# Required. The source text to be refined.
|
|
937
|
+
# Corresponds to the JSON property `sourceText`
|
|
938
|
+
# @return [String]
|
|
939
|
+
attr_accessor :source_text
|
|
940
|
+
|
|
941
|
+
def initialize(**args)
|
|
942
|
+
update!(**args)
|
|
943
|
+
end
|
|
944
|
+
|
|
945
|
+
# Update properties of this object
|
|
946
|
+
def update!(**args)
|
|
947
|
+
@original_translation = args[:original_translation] if args.key?(:original_translation)
|
|
948
|
+
@source_text = args[:source_text] if args.key?(:source_text)
|
|
949
|
+
end
|
|
950
|
+
end
|
|
951
|
+
|
|
853
952
|
# The `Status` type defines a logical error model that is suitable for different
|
|
854
953
|
# programming environments, including REST APIs and RPC APIs. It is used by [
|
|
855
954
|
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
|
@@ -988,7 +1087,6 @@ module Google
|
|
|
988
1087
|
attr_accessor :enable_shadow_removal_native_pdf
|
|
989
1088
|
alias_method :enable_shadow_removal_native_pdf?, :enable_shadow_removal_native_pdf
|
|
990
1089
|
|
|
991
|
-
# -----------------------------------------------------------------------------
|
|
992
1090
|
# Configures which glossary should be used for a specific target language, and
|
|
993
1091
|
# defines options for applying that glossary.
|
|
994
1092
|
# Corresponds to the JSON property `glossaryConfig`
|
|
@@ -1023,17 +1121,19 @@ module Google
|
|
|
1023
1121
|
attr_accessor :model
|
|
1024
1122
|
|
|
1025
1123
|
# Optional. The BCP-47 language code of the input document if known, for example,
|
|
1026
|
-
# "en-US" or "sr-Latn". Supported language codes are listed in Language
|
|
1027
|
-
# If the source
|
|
1028
|
-
#
|
|
1029
|
-
#
|
|
1030
|
-
# or a custom
|
|
1124
|
+
# "en-US" or "sr-Latn". Supported language codes are listed in [Language
|
|
1125
|
+
# Support](https://cloud.google.com/translate/docs/languages). If the source
|
|
1126
|
+
# language isn't specified, the API attempts to identify the source language
|
|
1127
|
+
# automatically and returns the source language within the response. Source
|
|
1128
|
+
# language must be specified if the request contains a glossary or a custom
|
|
1129
|
+
# model.
|
|
1031
1130
|
# Corresponds to the JSON property `sourceLanguageCode`
|
|
1032
1131
|
# @return [String]
|
|
1033
1132
|
attr_accessor :source_language_code
|
|
1034
1133
|
|
|
1035
1134
|
# Required. The BCP-47 language code to use for translation of the input
|
|
1036
|
-
# document, set to one of the language codes listed in Language Support
|
|
1135
|
+
# document, set to one of the language codes listed in [Language Support](https:/
|
|
1136
|
+
# /cloud.google.com/translate/docs/languages).
|
|
1037
1137
|
# Corresponds to the JSON property `targetLanguageCode`
|
|
1038
1138
|
# @return [String]
|
|
1039
1139
|
attr_accessor :target_language_code
|
|
@@ -1067,7 +1167,6 @@ module Google
|
|
|
1067
1167
|
# @return [Google::Apis::TranslateV3beta1::DocumentTranslation]
|
|
1068
1168
|
attr_accessor :document_translation
|
|
1069
1169
|
|
|
1070
|
-
# -----------------------------------------------------------------------------
|
|
1071
1170
|
# Configures which glossary should be used for a specific target language, and
|
|
1072
1171
|
# defines options for applying that glossary.
|
|
1073
1172
|
# Corresponds to the JSON property `glossaryConfig`
|
|
@@ -1101,7 +1200,6 @@ module Google
|
|
|
1101
1200
|
end
|
|
1102
1201
|
end
|
|
1103
1202
|
|
|
1104
|
-
# -----------------------------------------------------------------------------
|
|
1105
1203
|
# Configures which glossary should be used for a specific target language, and
|
|
1106
1204
|
# defines options for applying that glossary.
|
|
1107
1205
|
class TranslateTextGlossaryConfig
|
|
@@ -1149,7 +1247,6 @@ module Google
|
|
|
1149
1247
|
# @return [Array<String>]
|
|
1150
1248
|
attr_accessor :contents
|
|
1151
1249
|
|
|
1152
|
-
# -----------------------------------------------------------------------------
|
|
1153
1250
|
# Configures which glossary should be used for a specific target language, and
|
|
1154
1251
|
# defines options for applying that glossary.
|
|
1155
1252
|
# Corresponds to the JSON property `glossaryConfig`
|
|
@@ -1184,16 +1281,17 @@ module Google
|
|
|
1184
1281
|
attr_accessor :model
|
|
1185
1282
|
|
|
1186
1283
|
# Optional. The BCP-47 language code of the input text if known, for example, "
|
|
1187
|
-
# en-US" or "sr-Latn". Supported language codes are listed in Language Support
|
|
1188
|
-
# If the source language isn'
|
|
1189
|
-
#
|
|
1190
|
-
# response.
|
|
1284
|
+
# en-US" or "sr-Latn". Supported language codes are listed in [Language Support](
|
|
1285
|
+
# https://cloud.google.com/translate/docs/languages). If the source language isn'
|
|
1286
|
+
# t specified, the API attempts to identify the source language automatically
|
|
1287
|
+
# and returns the source language within the response.
|
|
1191
1288
|
# Corresponds to the JSON property `sourceLanguageCode`
|
|
1192
1289
|
# @return [String]
|
|
1193
1290
|
attr_accessor :source_language_code
|
|
1194
1291
|
|
|
1195
1292
|
# Required. The BCP-47 language code to use for translation of the input text,
|
|
1196
|
-
# set to one of the language codes listed in Language Support.
|
|
1293
|
+
# set to one of the language codes listed in [Language Support](https://cloud.
|
|
1294
|
+
# google.com/translate/docs/languages).
|
|
1197
1295
|
# Corresponds to the JSON property `targetLanguageCode`
|
|
1198
1296
|
# @return [String]
|
|
1199
1297
|
attr_accessor :target_language_code
|
|
@@ -1254,7 +1352,6 @@ module Google
|
|
|
1254
1352
|
# @return [String]
|
|
1255
1353
|
attr_accessor :detected_language_code
|
|
1256
1354
|
|
|
1257
|
-
# -----------------------------------------------------------------------------
|
|
1258
1355
|
# Configures which glossary should be used for a specific target language, and
|
|
1259
1356
|
# defines options for applying that glossary.
|
|
1260
1357
|
# 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.36.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
|
-
GENERATOR_VERSION = "0.
|
|
22
|
+
GENERATOR_VERSION = "0.18.0"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20260108"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -172,6 +172,24 @@ module Google
|
|
|
172
172
|
include Google::Apis::Core::JsonObjectSupport
|
|
173
173
|
end
|
|
174
174
|
|
|
175
|
+
class RefineTextRequest
|
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
177
|
+
|
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
class RefineTextResponse
|
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
183
|
+
|
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
class RefinementEntry
|
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
189
|
+
|
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
191
|
+
end
|
|
192
|
+
|
|
175
193
|
class Status
|
|
176
194
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
177
195
|
|
|
@@ -262,6 +280,7 @@ module Google
|
|
|
262
280
|
hash :models, as: 'models'
|
|
263
281
|
property :output_config, as: 'outputConfig', class: Google::Apis::TranslateV3beta1::BatchDocumentOutputConfig, decorator: Google::Apis::TranslateV3beta1::BatchDocumentOutputConfig::Representation
|
|
264
282
|
|
|
283
|
+
property :pdf_native_only, as: 'pdfNativeOnly'
|
|
265
284
|
property :source_language_code, as: 'sourceLanguageCode'
|
|
266
285
|
collection :target_language_codes, as: 'targetLanguageCodes'
|
|
267
286
|
end
|
|
@@ -435,6 +454,7 @@ module Google
|
|
|
435
454
|
property :next_page_token, as: 'nextPageToken'
|
|
436
455
|
collection :operations, as: 'operations', class: Google::Apis::TranslateV3beta1::Operation, decorator: Google::Apis::TranslateV3beta1::Operation::Representation
|
|
437
456
|
|
|
457
|
+
collection :unreachable, as: 'unreachable'
|
|
438
458
|
end
|
|
439
459
|
end
|
|
440
460
|
|
|
@@ -469,6 +489,31 @@ module Google
|
|
|
469
489
|
end
|
|
470
490
|
end
|
|
471
491
|
|
|
492
|
+
class RefineTextRequest
|
|
493
|
+
# @private
|
|
494
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
495
|
+
collection :refinement_entries, as: 'refinementEntries', class: Google::Apis::TranslateV3beta1::RefinementEntry, decorator: Google::Apis::TranslateV3beta1::RefinementEntry::Representation
|
|
496
|
+
|
|
497
|
+
property :source_language_code, as: 'sourceLanguageCode'
|
|
498
|
+
property :target_language_code, as: 'targetLanguageCode'
|
|
499
|
+
end
|
|
500
|
+
end
|
|
501
|
+
|
|
502
|
+
class RefineTextResponse
|
|
503
|
+
# @private
|
|
504
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
505
|
+
collection :refined_translations, as: 'refinedTranslations'
|
|
506
|
+
end
|
|
507
|
+
end
|
|
508
|
+
|
|
509
|
+
class RefinementEntry
|
|
510
|
+
# @private
|
|
511
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
512
|
+
property :original_translation, as: 'originalTranslation'
|
|
513
|
+
property :source_text, as: 'sourceText'
|
|
514
|
+
end
|
|
515
|
+
end
|
|
516
|
+
|
|
472
517
|
class Status
|
|
473
518
|
# @private
|
|
474
519
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -382,8 +382,8 @@ module Google
|
|
|
382
382
|
# @param [String] name
|
|
383
383
|
# The resource that owns the locations collection, if applicable.
|
|
384
384
|
# @param [Array<String>, String] extra_location_types
|
|
385
|
-
# Optional.
|
|
386
|
-
#
|
|
385
|
+
# Optional. Do not use this field. It is unsupported and is ignored unless
|
|
386
|
+
# explicitly documented otherwise. This is primarily for internal usage.
|
|
387
387
|
# @param [String] filter
|
|
388
388
|
# A filter to narrow down results to a preferred subset. The filtering language
|
|
389
389
|
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
|
@@ -425,6 +425,42 @@ module Google
|
|
|
425
425
|
execute_or_queue_command(command, &block)
|
|
426
426
|
end
|
|
427
427
|
|
|
428
|
+
# Refines the input translated text to improve the quality.
|
|
429
|
+
# @param [String] parent
|
|
430
|
+
# Required. Project or location to make a call. Must refer to a caller's project.
|
|
431
|
+
# Format: `projects/`project-number-or-id`/locations/`location-id``. For global
|
|
432
|
+
# calls, use `projects/`project-number-or-id`/locations/global` or `projects/`
|
|
433
|
+
# project-number-or-id``.
|
|
434
|
+
# @param [Google::Apis::TranslateV3beta1::RefineTextRequest] refine_text_request_object
|
|
435
|
+
# @param [String] fields
|
|
436
|
+
# Selector specifying which fields to include in a partial response.
|
|
437
|
+
# @param [String] quota_user
|
|
438
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
439
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
440
|
+
# @param [Google::Apis::RequestOptions] options
|
|
441
|
+
# Request-specific options
|
|
442
|
+
#
|
|
443
|
+
# @yield [result, err] Result & error if block supplied
|
|
444
|
+
# @yieldparam result [Google::Apis::TranslateV3beta1::RefineTextResponse] parsed result object
|
|
445
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
446
|
+
#
|
|
447
|
+
# @return [Google::Apis::TranslateV3beta1::RefineTextResponse]
|
|
448
|
+
#
|
|
449
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
450
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
451
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
452
|
+
def refine_location_text(parent, refine_text_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
453
|
+
command = make_simple_command(:post, 'v3beta1/{+parent}:refineText', options)
|
|
454
|
+
command.request_representation = Google::Apis::TranslateV3beta1::RefineTextRequest::Representation
|
|
455
|
+
command.request_object = refine_text_request_object
|
|
456
|
+
command.response_representation = Google::Apis::TranslateV3beta1::RefineTextResponse::Representation
|
|
457
|
+
command.response_class = Google::Apis::TranslateV3beta1::RefineTextResponse
|
|
458
|
+
command.params['parent'] = parent unless parent.nil?
|
|
459
|
+
command.query['fields'] = fields unless fields.nil?
|
|
460
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
461
|
+
execute_or_queue_command(command, &block)
|
|
462
|
+
end
|
|
463
|
+
|
|
428
464
|
# Translates documents in synchronous mode.
|
|
429
465
|
# @param [String] parent
|
|
430
466
|
# Required. Location to make a regional call. Format: `projects/`project-number-
|
|
@@ -767,6 +803,14 @@ module Google
|
|
|
767
803
|
# The standard list page size.
|
|
768
804
|
# @param [String] page_token
|
|
769
805
|
# The standard list page token.
|
|
806
|
+
# @param [Boolean] return_partial_success
|
|
807
|
+
# When set to `true`, operations that are reachable are returned as normal, and
|
|
808
|
+
# those that are unreachable are returned in the ListOperationsResponse.
|
|
809
|
+
# unreachable field. This can only be `true` when reading across collections.
|
|
810
|
+
# For example, when `parent` is set to `"projects/example/locations/-"`. This
|
|
811
|
+
# field is not supported by default and will result in an `UNIMPLEMENTED` error
|
|
812
|
+
# if set unless explicitly documented otherwise in service or product specific
|
|
813
|
+
# documentation.
|
|
770
814
|
# @param [String] fields
|
|
771
815
|
# Selector specifying which fields to include in a partial response.
|
|
772
816
|
# @param [String] quota_user
|
|
@@ -784,7 +828,7 @@ module Google
|
|
|
784
828
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
785
829
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
786
830
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
787
|
-
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
831
|
+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
788
832
|
command = make_simple_command(:get, 'v3beta1/{+name}/operations', options)
|
|
789
833
|
command.response_representation = Google::Apis::TranslateV3beta1::ListOperationsResponse::Representation
|
|
790
834
|
command.response_class = Google::Apis::TranslateV3beta1::ListOperationsResponse
|
|
@@ -792,6 +836,7 @@ module Google
|
|
|
792
836
|
command.query['filter'] = filter unless filter.nil?
|
|
793
837
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
794
838
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
839
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
795
840
|
command.query['fields'] = fields unless fields.nil?
|
|
796
841
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
797
842
|
execute_or_queue_command(command, &block)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.36.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-translate_v3beta1/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-translate_v3beta1/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-translate_v3beta1/v0.36.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-translate_v3beta1
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|
|
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
73
73
|
- !ruby/object:Gem::Version
|
|
74
74
|
version: '0'
|
|
75
75
|
requirements: []
|
|
76
|
-
rubygems_version: 3.6.
|
|
76
|
+
rubygems_version: 3.6.9
|
|
77
77
|
specification_version: 4
|
|
78
78
|
summary: Simple REST client for Cloud Translation API V3beta1
|
|
79
79
|
test_files: []
|