google-cloud-translate-v3 0.7.0 → 0.7.2

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: 18dc76bc75c474fe8cc70cc9dee0d3cf77addd41537cfe4077ca8425a44eb056
4
- data.tar.gz: ee253237e5a14f65bc9de241685b096336477625bae6e90f7e1e82f9352f9e60
3
+ metadata.gz: f36cf3bcb9722c72e5cec3dcdee500c6332a546b800cd298de4e64c8ffdbabb7
4
+ data.tar.gz: a7be2da832da44574cc04d8607aeea00a7d3a3e78438dcd61cac1e69a0c94271
5
5
  SHA512:
6
- metadata.gz: f8c95c169cbea4e67bfa27d8574e2d698adfbea3aaadcd4fd8ca6133272aa61daafa73c4bf5f1ab1d1b728fd359ac63b4a127e1fc19c3b37c5b4d4cdcfcf2706
7
- data.tar.gz: 9c29ed87e3c76fcd61fa34ce40e83290686a0b19d78668a0e4c305ebf576edc6e75bebd0f6ac197a29529449734abcfed123e1ae7f1666496ba1abf8cda5d85a
6
+ metadata.gz: 94b7ea6c406ef4c40b193a3ec485c4dd63974bbfde88db385b6ed3da9a364a21149dc3d46322f58704f9e0ec991d9fe542da1b742355ee33373ff710f4d227a6
7
+ data.tar.gz: 654a4d8067345aa755597f5cb1393130850560a18efc649e8c2d57d8f37c0c892ef9070908f55a2e2b246ab38883095546390200245c0c9595d34fcb0497c760
@@ -155,7 +155,7 @@ module Google
155
155
  credentials = @config.credentials
156
156
  # Use self-signed JWT if the endpoint is unchanged from default,
157
157
  # but only if the default endpoint does not have a region prefix.
158
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
158
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
159
159
  !@config.endpoint.split(".").first.include?("-")
160
160
  credentials ||= Credentials.default scope: @config.scope,
161
161
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -1505,7 +1505,9 @@ module Google
1505
1505
  class Configuration
1506
1506
  extend ::Gapic::Config
1507
1507
 
1508
- config_attr :endpoint, "translate.googleapis.com", ::String
1508
+ DEFAULT_ENDPOINT = "translate.googleapis.com"
1509
+
1510
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1509
1511
  config_attr :credentials, nil do |value|
1510
1512
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1511
1513
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -672,7 +672,9 @@ module Google
672
672
  class Configuration
673
673
  extend ::Gapic::Config
674
674
 
675
- config_attr :endpoint, "translate.googleapis.com", ::String
675
+ DEFAULT_ENDPOINT = "translate.googleapis.com"
676
+
677
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
676
678
  config_attr :credentials, nil do |value|
677
679
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
678
680
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -151,7 +151,7 @@ module Google
151
151
  credentials = @config.credentials
152
152
  # Use self-signed JWT if the endpoint is unchanged from default,
153
153
  # but only if the default endpoint does not have a region prefix.
154
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
154
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
155
155
  !@config.endpoint.split(".").first.include?("-")
156
156
  credentials ||= Credentials.default scope: @config.scope,
157
157
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -1225,7 +1225,9 @@ module Google
1225
1225
  class Configuration
1226
1226
  extend ::Gapic::Config
1227
1227
 
1228
- config_attr :endpoint, "translate.googleapis.com", ::String
1228
+ DEFAULT_ENDPOINT = "translate.googleapis.com"
1229
+
1230
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1229
1231
  config_attr :credentials, nil do |value|
1230
1232
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1231
1233
  allowed.any? { |klass| klass === value }
@@ -521,7 +521,9 @@ module Google
521
521
  class Configuration
522
522
  extend ::Gapic::Config
523
523
 
524
- config_attr :endpoint, "translate.googleapis.com", ::String
524
+ DEFAULT_ENDPOINT = "translate.googleapis.com"
525
+
526
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
525
527
  config_attr :credentials, nil do |value|
526
528
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
527
529
  allowed.any? { |klass| klass === value }
@@ -649,7 +651,7 @@ module Google
649
651
 
650
652
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
651
653
  query_string_params = if query_string_params.any?
652
- query_string_params.to_h { |p| p.split("=", 2) }
654
+ query_string_params.to_h { |p| p.split "=", 2 }
653
655
  else
654
656
  {}
655
657
  end
@@ -687,7 +689,7 @@ module Google
687
689
 
688
690
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
689
691
  query_string_params = if query_string_params.any?
690
- query_string_params.to_h { |p| p.split("=", 2) }
692
+ query_string_params.to_h { |p| p.split "=", 2 }
691
693
  else
692
694
  {}
693
695
  end
@@ -725,7 +727,7 @@ module Google
725
727
 
726
728
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
727
729
  query_string_params = if query_string_params.any?
728
- query_string_params.to_h { |p| p.split("=", 2) }
730
+ query_string_params.to_h { |p| p.split "=", 2 }
729
731
  else
730
732
  {}
731
733
  end
@@ -763,7 +765,7 @@ module Google
763
765
 
764
766
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
765
767
  query_string_params = if query_string_params.any?
766
- query_string_params.to_h { |p| p.split("=", 2) }
768
+ query_string_params.to_h { |p| p.split "=", 2 }
767
769
  else
768
770
  {}
769
771
  end
@@ -801,7 +803,7 @@ module Google
801
803
 
802
804
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_wait_operation_request request_pb
803
805
  query_string_params = if query_string_params.any?
804
- query_string_params.to_h { |p| p.split("=", 2) }
806
+ query_string_params.to_h { |p| p.split "=", 2 }
805
807
  else
806
808
  {}
807
809
  end
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_translate_text_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_detect_language_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_get_supported_languages_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_translate_document_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_batch_translate_text_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end
@@ -249,7 +249,7 @@ module Google
249
249
 
250
250
  verb, uri, query_string_params, body = ServiceStub.transcode_batch_translate_document_request request_pb
251
251
  query_string_params = if query_string_params.any?
252
- query_string_params.to_h { |p| p.split("=", 2) }
252
+ query_string_params.to_h { |p| p.split "=", 2 }
253
253
  else
254
254
  {}
255
255
  end
@@ -287,7 +287,7 @@ module Google
287
287
 
288
288
  verb, uri, query_string_params, body = ServiceStub.transcode_create_glossary_request request_pb
289
289
  query_string_params = if query_string_params.any?
290
- query_string_params.to_h { |p| p.split("=", 2) }
290
+ query_string_params.to_h { |p| p.split "=", 2 }
291
291
  else
292
292
  {}
293
293
  end
@@ -325,7 +325,7 @@ module Google
325
325
 
326
326
  verb, uri, query_string_params, body = ServiceStub.transcode_list_glossaries_request request_pb
327
327
  query_string_params = if query_string_params.any?
328
- query_string_params.to_h { |p| p.split("=", 2) }
328
+ query_string_params.to_h { |p| p.split "=", 2 }
329
329
  else
330
330
  {}
331
331
  end
@@ -363,7 +363,7 @@ module Google
363
363
 
364
364
  verb, uri, query_string_params, body = ServiceStub.transcode_get_glossary_request request_pb
365
365
  query_string_params = if query_string_params.any?
366
- query_string_params.to_h { |p| p.split("=", 2) }
366
+ query_string_params.to_h { |p| p.split "=", 2 }
367
367
  else
368
368
  {}
369
369
  end
@@ -401,7 +401,7 @@ module Google
401
401
 
402
402
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_glossary_request request_pb
403
403
  query_string_params = if query_string_params.any?
404
- query_string_params.to_h { |p| p.split("=", 2) }
404
+ query_string_params.to_h { |p| p.split "=", 2 }
405
405
  else
406
406
  {}
407
407
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Translate
23
23
  module V3
24
- VERSION = "0.7.0"
24
+ VERSION = "0.7.2"
25
25
  end
26
26
  end
27
27
  end
@@ -503,9 +503,9 @@ module Google
503
503
  #
504
504
  # For a DocumentInputConfig.gcs_uri provided document, the output file will
505
505
  # have a name according to its URI. For example: an input file with URI:
506
- # "gs://a/b/c.[extension]" stored in a gcs_destination bucket with name
506
+ # `gs://a/b/c.[extension]` stored in a gcs_destination bucket with name
507
507
  # "my_bucket" will have an output URI:
508
- # "gs://my_bucket/a_b_c_[trg]_translations.[ext]", where
508
+ # `gs://my_bucket/a_b_c_[trg]_translations.[ext]`, where
509
509
  # - [trg] corresponds to the translated file's language code,
510
510
  # - [ext] corresponds to the translated file's extension according to its
511
511
  # mime type.
@@ -513,7 +513,7 @@ module Google
513
513
  #
514
514
  # If the document was directly provided through the request, then the
515
515
  # output document will have the format:
516
- # "gs://my_bucket/translated_document_[trg]_translations.[ext], where
516
+ # `gs://my_bucket/translated_document_[trg]_translations.[ext]`, where
517
517
  # - [trg] corresponds to the translated file's language code,
518
518
  # - [ext] corresponds to the translated file's extension according to its
519
519
  # mime type.
@@ -522,7 +522,7 @@ module Google
522
522
  # translation will be equal to the default output URI but have
523
523
  # `glossary_translations` instead of `translations`. For the previous
524
524
  # example, its glossary URI would be:
525
- # "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]".
525
+ # `gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]`.
526
526
  #
527
527
  # Thus the max number of output files will be 2 (Translated document,
528
528
  # Glossary translated document).
@@ -1291,15 +1291,15 @@ module Google
1291
1291
  #
1292
1292
  # The naming format of translation output files follows (for target
1293
1293
  # language code [trg]): `translation_output`:
1294
- # gs://translation_output/a_b_c_[trg]_translation.[extension]
1294
+ # `gs://translation_output/a_b_c_[trg]_translation.[extension]`
1295
1295
  # `glossary_translation_output`:
1296
- # gs://translation_test/a_b_c_[trg]_glossary_translation.[extension] The
1296
+ # `gs://translation_test/a_b_c_[trg]_glossary_translation.[extension]`. The
1297
1297
  # output document will maintain the same file format as the input document.
1298
1298
  #
1299
1299
  # The naming format of error output files follows (for target language code
1300
- # [trg]): `error_output`: gs://translation_test/a_b_c_[trg]_errors.txt
1300
+ # [trg]): `error_output`: `gs://translation_test/a_b_c_[trg]_errors.txt`
1301
1301
  # `glossary_error_output`:
1302
- # gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error
1302
+ # `gs://translation_test/a_b_c_[trg]_glossary_translation.txt`. The error
1303
1303
  # output is a txt file containing error details.
1304
1304
  class BatchDocumentOutputConfig
1305
1305
  include ::Google::Protobuf::MessageExts
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-translate-v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-31 00:00:00.000000000 Z
11
+ date: 2023-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.0
19
+ version: 0.19.1
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.19.0
29
+ version: 0.19.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a