google-cloud-translate-v3 1.3.0 → 1.4.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: 6fb1a41f87d23bfedd751f7aada04345edc7878ced33397db72db1818d8d4d57
4
- data.tar.gz: '083dd68f5c3da20db363953bb66380fbb55476e5311cc3e9034e53cdc9ae2f19'
3
+ metadata.gz: b9ad858f136353af7439d0ac27266a05e039268470c72699aae3499c09869fb2
4
+ data.tar.gz: ea21cb978196136f1e9541d39ab0384f17036af54a107aa6d8ab75e1440bc396
5
5
  SHA512:
6
- metadata.gz: 846dcd55e6018a2c2b275e0c2743ca4da92bc30a5c3af3e028764a3f2f68b01d06c1c5f17774775614b66f448e13ba91899d5076e6ef037524f98202a301b625
7
- data.tar.gz: d991d41563edcfcb48177266c873e08a5603ae1d78e781809370f101483e9d8b37d691a4687513cde3eb180554227d65c49fd73f90cc194e508d05d8c90424a9
6
+ metadata.gz: 86bc88c3e3723ff6b1c30cccb0e45e4ed23db786276b02bb74f9b26abc653b0c254d2a77d1be236f5046100c96e40fbf96619ef9a5a8cf2257505f8d4f3fc118
7
+ data.tar.gz: 92c238711337d5abd9eca186fc7d969ac437d277d9af3c681190de97024293085e611847a98b3f2d6fff4230ff638841c10c4d3b7dd224d17616984ec0905af5
data/README.md CHANGED
@@ -86,7 +86,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
86
86
 
87
87
  ## Supported Ruby Versions
88
88
 
89
- This library is supported on Ruby 2.7+.
89
+ This library is supported on Ruby 3.0+.
90
90
 
91
91
  Google provides official support for Ruby versions that are actively supported
92
92
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -3186,9 +3186,13 @@ module Google
3186
3186
  # `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}`
3187
3187
  # @param file_input_source [::Google::Cloud::Translate::V3::FileInputSource, ::Hash]
3188
3188
  # Inline file source.
3189
+ #
3190
+ # Note: The following fields are mutually exclusive: `file_input_source`, `gcs_input_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
3189
3191
  # @param gcs_input_source [::Google::Cloud::Translate::V3::GcsInputSource, ::Hash]
3190
3192
  # Google Cloud Storage file source.
3191
3193
  #
3194
+ # Note: The following fields are mutually exclusive: `gcs_input_source`, `file_input_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
3195
+ #
3192
3196
  # @yield [response, operation] Access the result along with the RPC operation
3193
3197
  # @yieldparam response [::Google::Cloud::Translate::V3::ImportAdaptiveMtFileResponse]
3194
3198
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
@@ -4176,6 +4180,13 @@ module Google
4176
4180
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
4177
4181
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
4178
4182
  # * (`nil`) indicating no credentials
4183
+ #
4184
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
4185
+ # external source for authentication to Google Cloud, you must validate it before
4186
+ # providing it to a Google API client library. Providing an unvalidated credential
4187
+ # configuration to Google APIs can compromise the security of your systems and data.
4188
+ # For more information, refer to [Validate credential configurations from external
4189
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
4179
4190
  # @return [::Object]
4180
4191
  # @!attribute [rw] scope
4181
4192
  # The OAuth scopes
@@ -648,6 +648,13 @@ module Google
648
648
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
649
649
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
650
650
  # * (`nil`) indicating no credentials
651
+ #
652
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
653
+ # external source for authentication to Google Cloud, you must validate it before
654
+ # providing it to a Google API client library. Providing an unvalidated credential
655
+ # configuration to Google APIs can compromise the security of your systems and data.
656
+ # For more information, refer to [Validate credential configurations from external
657
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
651
658
  # @return [::Object]
652
659
  # @!attribute [rw] scope
653
660
  # The OAuth scopes
@@ -2984,8 +2984,12 @@ module Google
2984
2984
  # `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}`
2985
2985
  # @param file_input_source [::Google::Cloud::Translate::V3::FileInputSource, ::Hash]
2986
2986
  # Inline file source.
2987
+ #
2988
+ # Note: The following fields are mutually exclusive: `file_input_source`, `gcs_input_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
2987
2989
  # @param gcs_input_source [::Google::Cloud::Translate::V3::GcsInputSource, ::Hash]
2988
2990
  # Google Cloud Storage file source.
2991
+ #
2992
+ # Note: The following fields are mutually exclusive: `gcs_input_source`, `file_input_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
2989
2993
  # @yield [result, operation] Access the result along with the TransportOperation object
2990
2994
  # @yieldparam result [::Google::Cloud::Translate::V3::ImportAdaptiveMtFileResponse]
2991
2995
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -3902,6 +3906,13 @@ module Google
3902
3906
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
3903
3907
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
3904
3908
  # * (`nil`) indicating no credentials
3909
+ #
3910
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
3911
+ # external source for authentication to Google Cloud, you must validate it before
3912
+ # providing it to a Google API client library. Providing an unvalidated credential
3913
+ # configuration to Google APIs can compromise the security of your systems and data.
3914
+ # For more information, refer to [Validate credential configurations from external
3915
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
3905
3916
  # @return [::Object]
3906
3917
  # @!attribute [rw] scope
3907
3918
  # The OAuth scopes
@@ -601,6 +601,13 @@ module Google
601
601
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
602
602
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
603
603
  # * (`nil`) indicating no credentials
604
+ #
605
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
606
+ # external source for authentication to Google Cloud, you must validate it before
607
+ # providing it to a Google API client library. Providing an unvalidated credential
608
+ # configuration to Google APIs can compromise the security of your systems and data.
609
+ # For more information, refer to [Validate credential configurations from external
610
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
604
611
  # @return [::Object]
605
612
  # @!attribute [rw] scope
606
613
  # The OAuth scopes
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Translate
23
23
  module V3
24
- VERSION = "1.3.0"
24
+ VERSION = "1.4.0"
25
25
  end
26
26
  end
27
27
  end
@@ -288,9 +288,13 @@ module Google
288
288
  # @!attribute [rw] file_input_source
289
289
  # @return [::Google::Cloud::Translate::V3::FileInputSource]
290
290
  # Inline file source.
291
+ #
292
+ # Note: The following fields are mutually exclusive: `file_input_source`, `gcs_input_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
291
293
  # @!attribute [rw] gcs_input_source
292
294
  # @return [::Google::Cloud::Translate::V3::GcsInputSource]
293
295
  # Google Cloud Storage file source.
296
+ #
297
+ # Note: The following fields are mutually exclusive: `gcs_input_source`, `file_input_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
294
298
  class ImportAdaptiveMtFileRequest
295
299
  include ::Google::Protobuf::MessageExts
296
300
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -65,9 +65,13 @@ module Google
65
65
  # @!attribute [rw] terms_pair
66
66
  # @return [::Google::Cloud::Translate::V3::GlossaryEntry::GlossaryTermsPair]
67
67
  # Used for an unidirectional glossary.
68
+ #
69
+ # Note: The following fields are mutually exclusive: `terms_pair`, `terms_set`. If a field in that set is populated, all other fields in the set will automatically be cleared.
68
70
  # @!attribute [rw] terms_set
69
71
  # @return [::Google::Cloud::Translate::V3::GlossaryEntry::GlossaryTermsSet]
70
72
  # Used for an equivalent term sets glossary.
73
+ #
74
+ # Note: The following fields are mutually exclusive: `terms_set`, `terms_pair`. If a field in that set is populated, all other fields in the set will automatically be cleared.
71
75
  # @!attribute [rw] description
72
76
  # @return [::String]
73
77
  # Describes the glossary entry.
@@ -512,10 +512,14 @@ module Google
512
512
  # @!attribute [rw] content
513
513
  # @return [::String]
514
514
  # Document's content represented as a stream of bytes.
515
+ #
516
+ # Note: The following fields are mutually exclusive: `content`, `gcs_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
515
517
  # @!attribute [rw] gcs_source
516
518
  # @return [::Google::Cloud::Translate::V3::GcsSource]
517
519
  # Google Cloud Storage location. This must be a single file.
518
520
  # For example: gs://example_bucket/example_file.pdf
521
+ #
522
+ # Note: The following fields are mutually exclusive: `gcs_source`, `content`. If a field in that set is populated, all other fields in the set will automatically be cleared.
519
523
  # @!attribute [rw] mime_type
520
524
  # @return [::String]
521
525
  # Specifies the input document's mime_type.
@@ -950,9 +954,13 @@ module Google
950
954
  # @!attribute [rw] language_pair
951
955
  # @return [::Google::Cloud::Translate::V3::Glossary::LanguageCodePair]
952
956
  # Used with unidirectional glossaries.
957
+ #
958
+ # Note: The following fields are mutually exclusive: `language_pair`, `language_codes_set`. If a field in that set is populated, all other fields in the set will automatically be cleared.
953
959
  # @!attribute [rw] language_codes_set
954
960
  # @return [::Google::Cloud::Translate::V3::Glossary::LanguageCodesSet]
955
961
  # Used with equivalent term set glossaries.
962
+ #
963
+ # Note: The following fields are mutually exclusive: `language_codes_set`, `language_pair`. If a field in that set is populated, all other fields in the set will automatically be cleared.
956
964
  # @!attribute [rw] input_config
957
965
  # @return [::Google::Cloud::Translate::V3::GlossaryInputConfig]
958
966
  # Required. Provides examples to build the glossary from.
@@ -40,6 +40,8 @@ module Google
40
40
  # @!attribute [rw] error
41
41
  # @return [::Google::Rpc::Status]
42
42
  # The error result of the operation in case of failure or cancellation.
43
+ #
44
+ # Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared.
43
45
  # @!attribute [rw] response
44
46
  # @return [::Google::Protobuf::Any]
45
47
  # The normal, successful response of the operation. If the original
@@ -50,6 +52,8 @@ module Google
50
52
  # is the original method name. For example, if the original method name
51
53
  # is `TakeSnapshot()`, the inferred response type is
52
54
  # `TakeSnapshotResponse`.
55
+ #
56
+ # Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
53
57
  class Operation
54
58
  include ::Google::Protobuf::MessageExts
55
59
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-translate-v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-10 00:00:00.000000000 Z
10
+ date: 2025-01-29 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: gapic-common
@@ -16,7 +15,7 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: 0.24.0
18
+ version: 0.25.0
20
19
  - - "<"
21
20
  - !ruby/object:Gem::Version
22
21
  version: 2.a
@@ -26,7 +25,7 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- version: 0.24.0
28
+ version: 0.25.0
30
29
  - - "<"
31
30
  - !ruby/object:Gem::Version
32
31
  version: 2.a
@@ -137,7 +136,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
137
136
  licenses:
138
137
  - Apache-2.0
139
138
  metadata: {}
140
- post_install_message:
141
139
  rdoc_options: []
142
140
  require_paths:
143
141
  - lib
@@ -145,15 +143,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
145
143
  requirements:
146
144
  - - ">="
147
145
  - !ruby/object:Gem::Version
148
- version: '2.7'
146
+ version: '3.0'
149
147
  required_rubygems_version: !ruby/object:Gem::Requirement
150
148
  requirements:
151
149
  - - ">="
152
150
  - !ruby/object:Gem::Version
153
151
  version: '0'
154
152
  requirements: []
155
- rubygems_version: 3.5.23
156
- signing_key:
153
+ rubygems_version: 3.6.2
157
154
  specification_version: 4
158
155
  summary: Integrates text translation into your website or application.
159
156
  test_files: []