google-cloud-translate-v3 0.1.2 → 0.1.4

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: 5a76f4ed0a0591450f836ec381f6773b002ccb308733cb0f7213c761dec1271f
4
- data.tar.gz: b0735945a5914fe01b63cd3146d5eb549aec90704f86dc4c30691214f887731b
3
+ metadata.gz: 845dff6180ee02e0bf4eac5880c48e1bf0a7efa98d0d8f6ef420c395d17ed609
4
+ data.tar.gz: 3a16b8dd2c3830afd5f2265e8f14ae6305e43e75e1244111f922fcb45b124259
5
5
  SHA512:
6
- metadata.gz: 1c1b214cd252b14e07c710625ebd29ebd01073dee4c0ef2d43068434f62056ed1b138049dce8a0328e8775d6c2fbabb54628c7905f4c5f7847636f72ee0e6966
7
- data.tar.gz: 3d7e72c0418e1820fdc31358d79021f01e498dd24ea2b61301377bef45b6668ee448cc1a02481801f6fed489cda22e8f137707fe30faeffaf0bc54c1535fac34
6
+ metadata.gz: cd230bc2ae3366cd6bb1de64e1a26751beec58f68dbb4675145205ea4b5f12a56285679d6fa8ddcf316036cdd43480061305c68f441ecd6b41c799938a7845be
7
+ data.tar.gz: 16bb7ec214f2e2de8c7e6f322eed311611d2a78ea531a4279e7a34fb2a63122ed351753d57fdec1157e6fc14f576d010d4a9551750911f47d59d9f782ce7f571
@@ -74,7 +74,7 @@ module Google
74
74
  initial_delay: 0.1,
75
75
  max_delay: 60.0,
76
76
  multiplier: 1.3,
77
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
77
+ retry_codes: [4, 14]
78
78
  }
79
79
 
80
80
  default_config.rpcs.batch_translate_text.timeout = 600.0
@@ -86,7 +86,7 @@ module Google
86
86
  initial_delay: 0.1,
87
87
  max_delay: 60.0,
88
88
  multiplier: 1.3,
89
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
89
+ retry_codes: [4, 14]
90
90
  }
91
91
 
92
92
  default_config.rpcs.get_glossary.timeout = 600.0
@@ -94,7 +94,7 @@ module Google
94
94
  initial_delay: 0.1,
95
95
  max_delay: 60.0,
96
96
  multiplier: 1.3,
97
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
97
+ retry_codes: [4, 14]
98
98
  }
99
99
 
100
100
  default_config.rpcs.delete_glossary.timeout = 600.0
@@ -102,7 +102,7 @@ module Google
102
102
  initial_delay: 0.1,
103
103
  max_delay: 60.0,
104
104
  multiplier: 1.3,
105
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
105
+ retry_codes: [4, 14]
106
106
  }
107
107
 
108
108
  default_config
@@ -1013,7 +1013,7 @@ module Google
1013
1013
 
1014
1014
  config_attr :endpoint, "translate.googleapis.com", ::String
1015
1015
  config_attr :credentials, nil do |value|
1016
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1016
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1017
1017
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
1018
1018
  allowed.any? { |klass| klass === value }
1019
1019
  end
@@ -475,7 +475,7 @@ module Google
475
475
 
476
476
  config_attr :endpoint, "translate.googleapis.com", ::String
477
477
  config_attr :credentials, nil do |value|
478
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
478
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
479
479
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
480
480
  allowed.any? { |klass| klass === value }
481
481
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Translate
23
23
  module V3
24
- VERSION = "0.1.2"
24
+ VERSION = "0.1.4"
25
25
  end
26
26
  end
27
27
  end
@@ -408,7 +408,7 @@ module Google
408
408
  # written).
409
409
  #
410
410
  # The format of translations_file (for target language code 'trg') is:
411
- # gs://translation_test/a_b_c_'trg'_translations.[extension]
411
+ # `gs://translation_test/a_b_c_'trg'_translations.[extension]`
412
412
  #
413
413
  # If the input file extension is tsv, the output has the following
414
414
  # columns:
@@ -425,10 +425,10 @@ module Google
425
425
  # If input file extension is a txt or html, the translation is directly
426
426
  # written to the output file. If glossary is requested, a separate
427
427
  # glossary_translations_file has format of
428
- # gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]
428
+ # `gs://translation_test/a_b_c_'trg'_glossary_translations.[extension]`
429
429
  #
430
430
  # The format of errors file (for target language code 'trg') is:
431
- # gs://translation_test/a_b_c_'trg'_errors.[extension]
431
+ # `gs://translation_test/a_b_c_'trg'_errors.[extension]`
432
432
  #
433
433
  # If the input file extension is tsv, errors_file contains the following:
434
434
  # Column 1: ID of the request provided in the input, if it's not
@@ -440,7 +440,7 @@ module Google
440
440
  #
441
441
  # If the input file extension is txt or html, glossary_error_file will be
442
442
  # generated that contains error details. glossary_error_file has format of
443
- # gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
443
+ # `gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]`
444
444
  class OutputConfig
445
445
  include ::Google::Protobuf::MessageExts
446
446
  extend ::Google::Protobuf::MessageExts::ClassMethods
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.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-18 00:00:00.000000000 Z
11
+ date: 2020-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.2'
19
+ version: '0.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.2'
26
+ version: '0.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: google-cloud-errors
29
29
  requirement: !ruby/object:Gem::Requirement