google-apis-translate_v3 0.40.0 → 0.42.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: 9cbb591ca03ee91713be34dce15805cc4f3c3114239ec9e3598342bfce670c7e
4
- data.tar.gz: dc9f7f6c02682ff1ec430c433b32d4f0d28b5057d156e35517188a6e3d978c33
3
+ metadata.gz: 494a082564b0aedde2a9de4495c7868e248f017c925ca801a315519d44103b13
4
+ data.tar.gz: d93e02d777bb90c88d76f45d5f65fff32173f1ee9d9ce82cbab94a73c9dda48c
5
5
  SHA512:
6
- metadata.gz: 05a407c744b86feb9295eeaf152e86cfe2a4f4088637cb9c6f3a03354a11e4b468b96e8d368e4804a38bc1990262194971d156094a589a0c3548661af82c2d0e
7
- data.tar.gz: 8764780f1e0efc93e1e3601cae11d07c9bbbdd3db4148b5f7905373597df5a60a485186be8e63a18bb20cacd8f0ebf9b22804ee6f0add589caf88dc474cca590
6
+ metadata.gz: f2790214715aa35fdf57bd942ff788f6d45bad478b33cddb1cd26e218e9e423713cc87e282d10b3020c57a4b5e2bb0ea997aae3847df4c43b278e9f43db4666a
7
+ data.tar.gz: 2d4d191c49db83e45816814209c5b381129c18da139702ebe7a827ea0203bb2a843255e272ae0ef5b1104465bdce0c040bc8f3697ad5b5924381c569c28211a4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Release history for google-apis-translate_v3
2
2
 
3
+ ### v0.42.0 (2026-01-11)
4
+
5
+ * Regenerated from discovery document revision 20260108
6
+ * Regenerated using generator version 0.18.0
7
+
8
+ ### v0.41.0 (2025-05-04)
9
+
10
+ * Regenerated from discovery document revision 20250424
11
+ * Regenerated using generator version 0.17.0
12
+
3
13
  ### v0.40.0 (2024-12-22)
4
14
 
5
15
  * Regenerated from discovery document revision 20241218
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
 
@@ -43,7 +43,7 @@ module Google
43
43
  # @return [Fixnum]
44
44
  attr_accessor :example_count
45
45
 
46
- # Required. The resource name of the dataset, in form of `projects/`project-
46
+ # Identifier. The resource name of the dataset, in form of `projects/`project-
47
47
  # number-or-id`/locations/`location_id`/adaptiveMtDatasets/`dataset_id``
48
48
  # Corresponds to the JSON property `name`
49
49
  # @return [String]
@@ -99,9 +99,9 @@ module Google
99
99
  # @return [Fixnum]
100
100
  attr_accessor :entry_count
101
101
 
102
- # Required. The resource name of the file, in form of `projects/`project-number-
103
- # or-id`/locations/`location_id`/adaptiveMtDatasets/`dataset`/adaptiveMtFiles/`
104
- # file``
102
+ # Identifier. The resource name of the file, in form of `projects/`project-
103
+ # number-or-id`/locations/`location_id`/adaptiveMtDatasets/`dataset`/
104
+ # adaptiveMtFiles/`file``
105
105
  # Corresponds to the JSON property `name`
106
106
  # @return [String]
107
107
  attr_accessor :name
@@ -134,9 +134,9 @@ module Google
134
134
  # @return [String]
135
135
  attr_accessor :create_time
136
136
 
137
- # Required. The resource name of the file, in form of `projects/`project-number-
138
- # or-id`/locations/`location_id`/adaptiveMtDatasets/`dataset`/adaptiveMtFiles/`
139
- # file`/adaptiveMtSentences/`sentence``
137
+ # Identifier. The resource name of the file, in form of `projects/`project-
138
+ # number-or-id`/locations/`location_id`/adaptiveMtDatasets/`dataset`/
139
+ # adaptiveMtFiles/`file`/adaptiveMtSentences/`sentence``
140
140
  # Corresponds to the JSON property `name`
141
141
  # @return [String]
142
142
  attr_accessor :name
@@ -363,6 +363,12 @@ module Google
363
363
  # @return [Google::Apis::TranslateV3::BatchDocumentOutputConfig]
364
364
  attr_accessor :output_config
365
365
 
366
+ # Optional. If true, only native pdf pages will be translated.
367
+ # Corresponds to the JSON property `pdfNativeOnly`
368
+ # @return [Boolean]
369
+ attr_accessor :pdf_native_only
370
+ alias_method :pdf_native_only?, :pdf_native_only
371
+
366
372
  # Required. The ISO-639 language code of the input document if known, for
367
373
  # example, "en-US" or "sr-Latn". Supported language codes are listed in [
368
374
  # Language Support](https://cloud.google.com/translate/docs/languages).
@@ -371,7 +377,9 @@ module Google
371
377
  attr_accessor :source_language_code
372
378
 
373
379
  # Required. The ISO-639 language code to use for translation of the input
374
- # document. Specify up to 10 language codes here.
380
+ # document. Specify up to 10 language codes here. Supported language codes are
381
+ # listed in [Language Support](https://cloud.google.com/translate/docs/languages)
382
+ # .
375
383
  # Corresponds to the JSON property `targetLanguageCodes`
376
384
  # @return [Array<String>]
377
385
  attr_accessor :target_language_codes
@@ -390,6 +398,7 @@ module Google
390
398
  @input_configs = args[:input_configs] if args.key?(:input_configs)
391
399
  @models = args[:models] if args.key?(:models)
392
400
  @output_config = args[:output_config] if args.key?(:output_config)
401
+ @pdf_native_only = args[:pdf_native_only] if args.key?(:pdf_native_only)
393
402
  @source_language_code = args[:source_language_code] if args.key?(:source_language_code)
394
403
  @target_language_codes = args[:target_language_codes] if args.key?(:target_language_codes)
395
404
  end
@@ -439,12 +448,15 @@ module Google
439
448
  # @return [Google::Apis::TranslateV3::OutputConfig]
440
449
  attr_accessor :output_config
441
450
 
442
- # Required. Source language code.
451
+ # Required. Source language code. Supported language codes are listed in [
452
+ # Language Support](https://cloud.google.com/translate/docs/languages).
443
453
  # Corresponds to the JSON property `sourceLanguageCode`
444
454
  # @return [String]
445
455
  attr_accessor :source_language_code
446
456
 
447
- # Required. Specify up to 10 language codes here.
457
+ # Required. Specify up to 10 language codes here. Supported language codes are
458
+ # listed in [Language Support](https://cloud.google.com/translate/docs/languages)
459
+ # .
448
460
  # Corresponds to the JSON property `targetLanguageCodes`
449
461
  # @return [Array<String>]
450
462
  attr_accessor :target_language_codes
@@ -601,6 +613,11 @@ module Google
601
613
  # @return [String]
602
614
  attr_accessor :content
603
615
 
616
+ # A document translation request input config.
617
+ # Corresponds to the JSON property `documentInputConfig`
618
+ # @return [Google::Apis::TranslateV3::DocumentInputConfig]
619
+ attr_accessor :document_input_config
620
+
604
621
  # Optional. The labels with user-defined metadata for the request. Label keys
605
622
  # and values can be no longer than 63 characters (Unicode codepoints), can only
606
623
  # contain lowercase letters, numeric characters, underscores and dashes.
@@ -633,6 +650,7 @@ module Google
633
650
  # Update properties of this object
634
651
  def update!(**args)
635
652
  @content = args[:content] if args.key?(:content)
653
+ @document_input_config = args[:document_input_config] if args.key?(:document_input_config)
636
654
  @labels = args[:labels] if args.key?(:labels)
637
655
  @mime_type = args[:mime_type] if args.key?(:mime_type)
638
656
  @model = args[:model] if args.key?(:model)
@@ -1012,7 +1030,7 @@ module Google
1012
1030
  # @return [Google::Apis::TranslateV3::LanguageCodePair]
1013
1031
  attr_accessor :language_pair
1014
1032
 
1015
- # Required. The resource name of the glossary. Glossary names have the form `
1033
+ # Identifier. The resource name of the glossary. Glossary names have the form `
1016
1034
  # projects/`project-number-or-id`/locations/`location-id`/glossaries/`glossary-
1017
1035
  # id``.
1018
1036
  # Corresponds to the JSON property `name`
@@ -1355,9 +1373,9 @@ module Google
1355
1373
  class LanguageCodesSet
1356
1374
  include Google::Apis::Core::Hashable
1357
1375
 
1358
- # The ISO-639 language code(s) for terms defined in the glossary. All entries
1359
- # are unique. The list contains at least two entries. Expected to be an exact
1360
- # match for GlossaryTerm.language_code.
1376
+ # Optional. The ISO-639 language code(s) for terms defined in the glossary. All
1377
+ # entries are unique. The list contains at least two entries. Expected to be an
1378
+ # exact match for GlossaryTerm.language_code.
1361
1379
  # Corresponds to the JSON property `languageCodes`
1362
1380
  # @return [Array<String>]
1363
1381
  attr_accessor :language_codes
@@ -1621,6 +1639,14 @@ module Google
1621
1639
  # @return [Array<Google::Apis::TranslateV3::Operation>]
1622
1640
  attr_accessor :operations
1623
1641
 
1642
+ # Unordered list. Unreachable resources. Populated when the request sets `
1643
+ # ListOperationsRequest.return_partial_success` and reads across collections.
1644
+ # For example, when attempting to list all resources across all supported
1645
+ # locations.
1646
+ # Corresponds to the JSON property `unreachable`
1647
+ # @return [Array<String>]
1648
+ attr_accessor :unreachable
1649
+
1624
1650
  def initialize(**args)
1625
1651
  update!(**args)
1626
1652
  end
@@ -1629,6 +1655,7 @@ module Google
1629
1655
  def update!(**args)
1630
1656
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1631
1657
  @operations = args[:operations] if args.key?(:operations)
1658
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1632
1659
  end
1633
1660
  end
1634
1661
 
@@ -1689,8 +1716,8 @@ module Google
1689
1716
  # @return [String]
1690
1717
  attr_accessor :create_time
1691
1718
 
1692
- # The dataset from which the model is trained, in form of `projects/`project-
1693
- # number-or-id`/locations/`location_id`/datasets/`dataset_id``
1719
+ # Required. The dataset from which the model is trained, in form of `projects/`
1720
+ # project-number-or-id`/locations/`location_id`/datasets/`dataset_id``
1694
1721
  # Corresponds to the JSON property `dataset`
1695
1722
  # @return [String]
1696
1723
  attr_accessor :dataset
@@ -1915,6 +1942,84 @@ module Google
1915
1942
  end
1916
1943
  end
1917
1944
 
1945
+ # Request message for RefineText.
1946
+ class RefineTextRequest
1947
+ include Google::Apis::Core::Hashable
1948
+
1949
+ # Required. The source texts and original translations in the source and target
1950
+ # languages.
1951
+ # Corresponds to the JSON property `refinementEntries`
1952
+ # @return [Array<Google::Apis::TranslateV3::RefinementEntry>]
1953
+ attr_accessor :refinement_entries
1954
+
1955
+ # Required. The BCP-47 language code of the source text in the request, for
1956
+ # example, "en-US".
1957
+ # Corresponds to the JSON property `sourceLanguageCode`
1958
+ # @return [String]
1959
+ attr_accessor :source_language_code
1960
+
1961
+ # Required. The BCP-47 language code for translation output, for example, "zh-CN"
1962
+ # .
1963
+ # Corresponds to the JSON property `targetLanguageCode`
1964
+ # @return [String]
1965
+ attr_accessor :target_language_code
1966
+
1967
+ def initialize(**args)
1968
+ update!(**args)
1969
+ end
1970
+
1971
+ # Update properties of this object
1972
+ def update!(**args)
1973
+ @refinement_entries = args[:refinement_entries] if args.key?(:refinement_entries)
1974
+ @source_language_code = args[:source_language_code] if args.key?(:source_language_code)
1975
+ @target_language_code = args[:target_language_code] if args.key?(:target_language_code)
1976
+ end
1977
+ end
1978
+
1979
+ # Response message for RefineText.
1980
+ class RefineTextResponse
1981
+ include Google::Apis::Core::Hashable
1982
+
1983
+ # The refined translations obtained from the original translations.
1984
+ # Corresponds to the JSON property `refinedTranslations`
1985
+ # @return [Array<String>]
1986
+ attr_accessor :refined_translations
1987
+
1988
+ def initialize(**args)
1989
+ update!(**args)
1990
+ end
1991
+
1992
+ # Update properties of this object
1993
+ def update!(**args)
1994
+ @refined_translations = args[:refined_translations] if args.key?(:refined_translations)
1995
+ end
1996
+ end
1997
+
1998
+ # A single refinement entry for RefineTextRequest.
1999
+ class RefinementEntry
2000
+ include Google::Apis::Core::Hashable
2001
+
2002
+ # Required. The original translation of the source text.
2003
+ # Corresponds to the JSON property `originalTranslation`
2004
+ # @return [String]
2005
+ attr_accessor :original_translation
2006
+
2007
+ # Required. The source text to be refined.
2008
+ # Corresponds to the JSON property `sourceText`
2009
+ # @return [String]
2010
+ attr_accessor :source_text
2011
+
2012
+ def initialize(**args)
2013
+ update!(**args)
2014
+ end
2015
+
2016
+ # Update properties of this object
2017
+ def update!(**args)
2018
+ @original_translation = args[:original_translation] if args.key?(:original_translation)
2019
+ @source_text = args[:source_text] if args.key?(:source_text)
2020
+ end
2021
+ end
2022
+
1918
2023
  # A single romanization response.
1919
2024
  class Romanization
1920
2025
  include Google::Apis::Core::Hashable
@@ -1954,9 +2059,10 @@ module Google
1954
2059
  attr_accessor :contents
1955
2060
 
1956
2061
  # Optional. The ISO-639 language code of the input text if known, for example, "
1957
- # hi" or "zh". If the source language isn't specified, the API attempts to
1958
- # identify the source language automatically and returns the source language for
1959
- # each content in the response.
2062
+ # hi" or "zh". Supported language codes are listed in [Language Support](https://
2063
+ # cloud.google.com/translate/docs/languages#roman). If the source language isn't
2064
+ # specified, the API attempts to identify the source language automatically and
2065
+ # returns the source language for each content in the response.
1960
2066
  # Corresponds to the JSON property `sourceLanguageCode`
1961
2067
  # @return [String]
1962
2068
  attr_accessor :source_language_code
@@ -2163,17 +2269,19 @@ module Google
2163
2269
  attr_accessor :model
2164
2270
 
2165
2271
  # Optional. The ISO-639 language code of the input document if known, for
2166
- # example, "en-US" or "sr-Latn". Supported language codes are listed in Language
2167
- # Support. If the source language isn't specified, the API attempts to identify
2168
- # the source language automatically and returns the source language within the
2169
- # response. Source language must be specified if the request contains a glossary
2170
- # or a custom model.
2272
+ # example, "en-US" or "sr-Latn". Supported language codes are listed in [
2273
+ # Language Support](https://cloud.google.com/translate/docs/languages). If the
2274
+ # source language isn't specified, the API attempts to identify the source
2275
+ # language automatically and returns the source language within the response.
2276
+ # Source language must be specified if the request contains a glossary or a
2277
+ # custom model.
2171
2278
  # Corresponds to the JSON property `sourceLanguageCode`
2172
2279
  # @return [String]
2173
2280
  attr_accessor :source_language_code
2174
2281
 
2175
2282
  # Required. The ISO-639 language code to use for translation of the input
2176
- # document, set to one of the language codes listed in Language Support.
2283
+ # document, set to one of the language codes listed in [Language Support](https:/
2284
+ # /cloud.google.com/translate/docs/languages).
2177
2285
  # Corresponds to the JSON property `targetLanguageCode`
2178
2286
  # @return [String]
2179
2287
  attr_accessor :target_language_code
@@ -2324,16 +2432,17 @@ module Google
2324
2432
  attr_accessor :model
2325
2433
 
2326
2434
  # Optional. The ISO-639 language code of the input text if known, for example, "
2327
- # en-US" or "sr-Latn". Supported language codes are listed in Language Support.
2328
- # If the source language isn't specified, the API attempts to identify the
2329
- # source language automatically and returns the source language within the
2330
- # response.
2435
+ # en-US" or "sr-Latn". Supported language codes are listed in [Language Support](
2436
+ # https://cloud.google.com/translate/docs/languages). If the source language isn'
2437
+ # t specified, the API attempts to identify the source language automatically
2438
+ # and returns the source language within the response.
2331
2439
  # Corresponds to the JSON property `sourceLanguageCode`
2332
2440
  # @return [String]
2333
2441
  attr_accessor :source_language_code
2334
2442
 
2335
2443
  # Required. The ISO-639 language code to use for translation of the input text,
2336
- # set to one of the language codes listed in Language Support.
2444
+ # set to one of the language codes listed in [Language Support](https://cloud.
2445
+ # google.com/translate/docs/languages).
2337
2446
  # Corresponds to the JSON property `targetLanguageCode`
2338
2447
  # @return [String]
2339
2448
  attr_accessor :target_language_code
@@ -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.40.0"
19
+ GEM_VERSION = "0.42.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.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20241218"
25
+ REVISION = "20260108"
26
26
  end
27
27
  end
28
28
  end
@@ -376,6 +376,24 @@ module Google
376
376
  include Google::Apis::Core::JsonObjectSupport
377
377
  end
378
378
 
379
+ class RefineTextRequest
380
+ class Representation < Google::Apis::Core::JsonRepresentation; end
381
+
382
+ include Google::Apis::Core::JsonObjectSupport
383
+ end
384
+
385
+ class RefineTextResponse
386
+ class Representation < Google::Apis::Core::JsonRepresentation; end
387
+
388
+ include Google::Apis::Core::JsonObjectSupport
389
+ end
390
+
391
+ class RefinementEntry
392
+ class Representation < Google::Apis::Core::JsonRepresentation; end
393
+
394
+ include Google::Apis::Core::JsonObjectSupport
395
+ end
396
+
379
397
  class Romanization
380
398
  class Representation < Google::Apis::Core::JsonRepresentation; end
381
399
 
@@ -555,6 +573,7 @@ module Google
555
573
  hash :models, as: 'models'
556
574
  property :output_config, as: 'outputConfig', class: Google::Apis::TranslateV3::BatchDocumentOutputConfig, decorator: Google::Apis::TranslateV3::BatchDocumentOutputConfig::Representation
557
575
 
576
+ property :pdf_native_only, as: 'pdfNativeOnly'
558
577
  property :source_language_code, as: 'sourceLanguageCode'
559
578
  collection :target_language_codes, as: 'targetLanguageCodes'
560
579
  end
@@ -618,6 +637,8 @@ module Google
618
637
  # @private
619
638
  class Representation < Google::Apis::Core::JsonRepresentation
620
639
  property :content, as: 'content'
640
+ property :document_input_config, as: 'documentInputConfig', class: Google::Apis::TranslateV3::DocumentInputConfig, decorator: Google::Apis::TranslateV3::DocumentInputConfig::Representation
641
+
621
642
  hash :labels, as: 'labels'
622
643
  property :mime_type, as: 'mimeType'
623
644
  property :model, as: 'model'
@@ -947,6 +968,7 @@ module Google
947
968
  property :next_page_token, as: 'nextPageToken'
948
969
  collection :operations, as: 'operations', class: Google::Apis::TranslateV3::Operation, decorator: Google::Apis::TranslateV3::Operation::Representation
949
970
 
971
+ collection :unreachable, as: 'unreachable'
950
972
  end
951
973
  end
952
974
 
@@ -1023,6 +1045,31 @@ module Google
1023
1045
  end
1024
1046
  end
1025
1047
 
1048
+ class RefineTextRequest
1049
+ # @private
1050
+ class Representation < Google::Apis::Core::JsonRepresentation
1051
+ collection :refinement_entries, as: 'refinementEntries', class: Google::Apis::TranslateV3::RefinementEntry, decorator: Google::Apis::TranslateV3::RefinementEntry::Representation
1052
+
1053
+ property :source_language_code, as: 'sourceLanguageCode'
1054
+ property :target_language_code, as: 'targetLanguageCode'
1055
+ end
1056
+ end
1057
+
1058
+ class RefineTextResponse
1059
+ # @private
1060
+ class Representation < Google::Apis::Core::JsonRepresentation
1061
+ collection :refined_translations, as: 'refinedTranslations'
1062
+ end
1063
+ end
1064
+
1065
+ class RefinementEntry
1066
+ # @private
1067
+ class Representation < Google::Apis::Core::JsonRepresentation
1068
+ property :original_translation, as: 'originalTranslation'
1069
+ property :source_text, as: 'sourceText'
1070
+ end
1071
+ end
1072
+
1026
1073
  class Romanization
1027
1074
  # @private
1028
1075
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -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. Do not use this field. It is unsupported and is ignored unless
456
+ # explicitly documented otherwise. This is primarily for internal usage.
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?
@@ -491,6 +495,42 @@ module Google
491
495
  execute_or_queue_command(command, &block)
492
496
  end
493
497
 
498
+ # Refines the input translated text to improve the quality.
499
+ # @param [String] parent
500
+ # Required. Project or location to make a call. Must refer to a caller's project.
501
+ # Format: `projects/`project-number-or-id`/locations/`location-id``. For global
502
+ # calls, use `projects/`project-number-or-id`/locations/global` or `projects/`
503
+ # project-number-or-id``.
504
+ # @param [Google::Apis::TranslateV3::RefineTextRequest] refine_text_request_object
505
+ # @param [String] fields
506
+ # Selector specifying which fields to include in a partial response.
507
+ # @param [String] quota_user
508
+ # Available to use for quota purposes for server-side applications. Can be any
509
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
510
+ # @param [Google::Apis::RequestOptions] options
511
+ # Request-specific options
512
+ #
513
+ # @yield [result, err] Result & error if block supplied
514
+ # @yieldparam result [Google::Apis::TranslateV3::RefineTextResponse] parsed result object
515
+ # @yieldparam err [StandardError] error object if request failed
516
+ #
517
+ # @return [Google::Apis::TranslateV3::RefineTextResponse]
518
+ #
519
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
520
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
521
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
522
+ def refine_location_text(parent, refine_text_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
523
+ command = make_simple_command(:post, 'v3/{+parent}:refineText', options)
524
+ command.request_representation = Google::Apis::TranslateV3::RefineTextRequest::Representation
525
+ command.request_object = refine_text_request_object
526
+ command.response_representation = Google::Apis::TranslateV3::RefineTextResponse::Representation
527
+ command.response_class = Google::Apis::TranslateV3::RefineTextResponse
528
+ command.params['parent'] = parent unless parent.nil?
529
+ command.query['fields'] = fields unless fields.nil?
530
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
531
+ execute_or_queue_command(command, &block)
532
+ end
533
+
494
534
  # Romanize input text written in non-Latin scripts to Latin text.
495
535
  # @param [String] parent
496
536
  # Required. Project or location to make a call. Must refer to a caller's project.
@@ -1368,13 +1408,13 @@ module Google
1368
1408
  # Updates a glossary. A LRO is used since the update can be async if the
1369
1409
  # glossary's entry file is updated.
1370
1410
  # @param [String] name
1371
- # Required. The resource name of the glossary. Glossary names have the form `
1411
+ # Identifier. The resource name of the glossary. Glossary names have the form `
1372
1412
  # projects/`project-number-or-id`/locations/`location-id`/glossaries/`glossary-
1373
1413
  # id``.
1374
1414
  # @param [Google::Apis::TranslateV3::Glossary] glossary_object
1375
1415
  # @param [String] update_mask
1376
- # The list of fields to be updated. Currently only `display_name` and '
1377
- # input_config'
1416
+ # The list of fields to be updated. Currently, only `display_name` and `
1417
+ # input_config` are supported.
1378
1418
  # @param [String] fields
1379
1419
  # Selector specifying which fields to include in a partial response.
1380
1420
  # @param [String] quota_user
@@ -1824,6 +1864,14 @@ module Google
1824
1864
  # The standard list page size.
1825
1865
  # @param [String] page_token
1826
1866
  # The standard list page token.
1867
+ # @param [Boolean] return_partial_success
1868
+ # When set to `true`, operations that are reachable are returned as normal, and
1869
+ # those that are unreachable are returned in the ListOperationsResponse.
1870
+ # unreachable field. This can only be `true` when reading across collections.
1871
+ # For example, when `parent` is set to `"projects/example/locations/-"`. This
1872
+ # field is not supported by default and will result in an `UNIMPLEMENTED` error
1873
+ # if set unless explicitly documented otherwise in service or product specific
1874
+ # documentation.
1827
1875
  # @param [String] fields
1828
1876
  # Selector specifying which fields to include in a partial response.
1829
1877
  # @param [String] quota_user
@@ -1841,7 +1889,7 @@ module Google
1841
1889
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1842
1890
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1843
1891
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1844
- def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1892
+ 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)
1845
1893
  command = make_simple_command(:get, 'v3/{+name}/operations', options)
1846
1894
  command.response_representation = Google::Apis::TranslateV3::ListOperationsResponse::Representation
1847
1895
  command.response_class = Google::Apis::TranslateV3::ListOperationsResponse
@@ -1849,6 +1897,7 @@ module Google
1849
1897
  command.query['filter'] = filter unless filter.nil?
1850
1898
  command.query['pageSize'] = page_size unless page_size.nil?
1851
1899
  command.query['pageToken'] = page_token unless page_token.nil?
1900
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
1852
1901
  command.query['fields'] = fields unless fields.nil?
1853
1902
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1854
1903
  execute_or_queue_command(command, &block)
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.40.0
4
+ version: 0.42.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-01-05 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.40.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-translate_v3/v0.42.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.23
79
- signing_key:
76
+ rubygems_version: 3.6.9
80
77
  specification_version: 4
81
78
  summary: Simple REST client for Cloud Translation API V3
82
79
  test_files: []