google-apis-translate_v3 0.38.0 → 0.39.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e3db06b567e946f4c03a6c97f84c799448194f4d3d516dec008f0ff99948318
4
- data.tar.gz: 943ac95a373160fe602c5d8fd3daef8252f0e24c3317ff9b63c704868dec8258
3
+ metadata.gz: 5dde1cb5b43cfd70a57f6bf1e756554497aca3801cefb46b9b4e79da6b125cec
4
+ data.tar.gz: bfd500279dbde192882e441fdf1c76ecaa496fff1f8e386469bf7990f693d5d0
5
5
  SHA512:
6
- metadata.gz: b724160a8590107b4411762317766b8623e152816f563230e7cf631b1dec17fef32cf7c4ad9d9a0b8f993655b4b15c683015793412d0be00fd11feea883396aa
7
- data.tar.gz: 512d431e3950bf0331b2277e1132f298ae1351e79f221afbb1cb40decbc40a59915661ceedcd9169f20d8f617fe56bebef0a1a8990919f80e88355420ef09462
6
+ metadata.gz: f4e7d59a3df5c85bcc84feebad9b38309113b4c3d60bf3c7b1296d413b446d5262932a84523ea5af87ef613e76556bb20988478c54ab647b6492682bf3a456c4
7
+ data.tar.gz: 3e9f42ad405e82fba8c8b5dd7100e5e7fff7ac43b849814ba327f5403ee99cc1fff2164e4e35f7477bed42740278567eb81b59f53e1a789c7a909d1e6afd403c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-translate_v3
2
2
 
3
+ ### v0.39.0 (2024-08-25)
4
+
5
+ * Regenerated from discovery document revision 20240821
6
+ * Regenerated using generator version 0.15.1
7
+
3
8
  ### v0.38.0 (2024-07-25)
4
9
 
5
10
  * 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::TranslateTextGlossaryConfig]
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,36 @@ 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
+ # Required. The `glossary` to be applied for this translation. The format
1050
+ # depends on the glossary: - User-provided custom glossary: `projects/`project-
1051
+ # number-or-id`/locations/`location-id`/glossaries/`glossary-id``
1052
+ # Corresponds to the JSON property `glossary`
1053
+ # @return [String]
1054
+ attr_accessor :glossary
1055
+
1056
+ # Optional. Indicates match is case insensitive. The default value is `false` if
1057
+ # missing.
1058
+ # Corresponds to the JSON property `ignoreCase`
1059
+ # @return [Boolean]
1060
+ attr_accessor :ignore_case
1061
+ alias_method :ignore_case?, :ignore_case
1062
+
1063
+ def initialize(**args)
1064
+ update!(**args)
1065
+ end
1066
+
1067
+ # Update properties of this object
1068
+ def update!(**args)
1069
+ @glossary = args[:glossary] if args.key?(:glossary)
1070
+ @ignore_case = args[:ignore_case] if args.key?(:ignore_case)
1071
+ end
1072
+ end
1073
+
1044
1074
  # Represents a single entry in a glossary.
1045
1075
  class GlossaryEntry
1046
1076
  include Google::Apis::Core::Hashable
@@ -1050,8 +1080,8 @@ module Google
1050
1080
  # @return [String]
1051
1081
  attr_accessor :description
1052
1082
 
1053
- # Identifier. The resource name of the entry. Format: "projects/*/locations/*/
1054
- # glossaries/*/glossaryEntries/*"
1083
+ # Identifier. The resource name of the entry. Format: `projects/*/locations/*/
1084
+ # glossaries/*/glossaryEntries/*`
1055
1085
  # Corresponds to the JSON property `name`
1056
1086
  # @return [String]
1057
1087
  attr_accessor :name
@@ -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.38.0"
19
+ GEM_VERSION = "0.39.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.0"
22
+ GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240718"
25
+ REVISION = "20240821"
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::TranslateTextGlossaryConfig, decorator: Google::Apis::TranslateV3::TranslateTextGlossaryConfig::Representation
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,14 @@ module Google
740
746
  end
741
747
  end
742
748
 
749
+ class GlossaryConfig
750
+ # @private
751
+ class Representation < Google::Apis::Core::JsonRepresentation
752
+ property :glossary, as: 'glossary'
753
+ property :ignore_case, as: 'ignoreCase'
754
+ end
755
+ end
756
+
743
757
  class GlossaryEntry
744
758
  # @private
745
759
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -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: "projects/*/locations/*/
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.
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.38.0
4
+ version: 0.39.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: 2024-07-25 00:00:00.000000000 Z
11
+ date: 2024-08-25 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.38.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-translate_v3/v0.39.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: []