google-cloud-translate-v3 0.7.0 → 0.7.1
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 +4 -4
- data/lib/google/cloud/translate/v3/translation_service/client.rb +4 -2
- data/lib/google/cloud/translate/v3/translation_service/operations.rb +3 -1
- data/lib/google/cloud/translate/v3/translation_service/rest/client.rb +4 -2
- data/lib/google/cloud/translate/v3/translation_service/rest/operations.rb +8 -6
- data/lib/google/cloud/translate/v3/translation_service/rest/service_stub.rb +10 -10
- data/lib/google/cloud/translate/v3/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d47053469852b6cbbe661af63a7b8346fa61c507fc0d1e5ef5cac2456ce03cea
|
4
|
+
data.tar.gz: af6c18bdf85f6e87069eaea5a37dc38fb29fe47e0ccd56ee634621b6b30bf6a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 835b8697b80ef9b19a986337616999acfed0c334444bbc4535950d9f750ebd3112faa1f940c1c0df0346a0c3c07d85de8456c9d19e9d0bd0cde559bae134e48b
|
7
|
+
data.tar.gz: d45feba5215cac928354d73e5f241fac50b1b7fa02ebd6788db21daf00e4d90e376e8863a9a641f946a8af061003d5f1c6fa66a68179d316f67d0a05229ad699
|
@@ -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 ==
|
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
|
-
|
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
|
-
|
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 ==
|
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
|
-
|
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
|
-
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
404
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
405
405
|
else
|
406
406
|
{}
|
407
407
|
end
|
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.
|
4
|
+
version: 0.7.1
|
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-
|
11
|
+
date: 2023-06-06 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.
|
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.
|
29
|
+
version: 0.19.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|