google-cloud-retail-v2 0.16.0 → 0.16.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/retail/v2/catalog_service/client.rb +4 -2
- data/lib/google/cloud/retail/v2/catalog_service/rest/client.rb +4 -2
- data/lib/google/cloud/retail/v2/catalog_service/rest/service_stub.rb +11 -11
- data/lib/google/cloud/retail/v2/completion_service/client.rb +4 -2
- data/lib/google/cloud/retail/v2/completion_service/operations.rb +3 -1
- data/lib/google/cloud/retail/v2/completion_service/rest/client.rb +4 -2
- data/lib/google/cloud/retail/v2/completion_service/rest/operations.rb +7 -5
- data/lib/google/cloud/retail/v2/completion_service/rest/service_stub.rb +2 -2
- data/lib/google/cloud/retail/v2/control_service/client.rb +4 -2
- data/lib/google/cloud/retail/v2/control_service/rest/client.rb +4 -2
- data/lib/google/cloud/retail/v2/control_service/rest/service_stub.rb +5 -5
- data/lib/google/cloud/retail/v2/model_service/client.rb +4 -2
- data/lib/google/cloud/retail/v2/model_service/operations.rb +3 -1
- data/lib/google/cloud/retail/v2/model_service/rest/client.rb +4 -2
- data/lib/google/cloud/retail/v2/model_service/rest/operations.rb +7 -5
- data/lib/google/cloud/retail/v2/model_service/rest/service_stub.rb +8 -8
- data/lib/google/cloud/retail/v2/prediction_service/client.rb +4 -2
- data/lib/google/cloud/retail/v2/prediction_service/rest/client.rb +4 -2
- data/lib/google/cloud/retail/v2/prediction_service/rest/service_stub.rb +1 -1
- data/lib/google/cloud/retail/v2/product_service/client.rb +4 -2
- data/lib/google/cloud/retail/v2/product_service/operations.rb +3 -1
- data/lib/google/cloud/retail/v2/product_service/rest/client.rb +4 -2
- data/lib/google/cloud/retail/v2/product_service/rest/operations.rb +7 -5
- data/lib/google/cloud/retail/v2/product_service/rest/service_stub.rb +11 -11
- data/lib/google/cloud/retail/v2/search_service/client.rb +4 -2
- data/lib/google/cloud/retail/v2/search_service/rest/client.rb +4 -2
- data/lib/google/cloud/retail/v2/search_service/rest/service_stub.rb +1 -1
- data/lib/google/cloud/retail/v2/serving_config_service/client.rb +4 -2
- data/lib/google/cloud/retail/v2/serving_config_service/rest/client.rb +4 -2
- data/lib/google/cloud/retail/v2/serving_config_service/rest/service_stub.rb +7 -7
- data/lib/google/cloud/retail/v2/user_event_service/client.rb +4 -2
- data/lib/google/cloud/retail/v2/user_event_service/operations.rb +3 -1
- data/lib/google/cloud/retail/v2/user_event_service/rest/client.rb +4 -2
- data/lib/google/cloud/retail/v2/user_event_service/rest/operations.rb +7 -5
- data/lib/google/cloud/retail/v2/user_event_service/rest/service_stub.rb +5 -5
- data/lib/google/cloud/retail/v2/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: 9fb75e4275291d0cff008e43cb6b2c9a405fd0a3b425891c43d78d340f104bd2
|
|
4
|
+
data.tar.gz: 7b7166cc04d6d905afa434308688a0cbb8449f5d55e1fc9c2a31e2ff14600895
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ac4de21c51993911972b803fe99085b4c42b838804d2c21fd6e5ecc77bc92944e1f1710abe29e288412e1701d737edc3a63014f60a62ac30a3d916d16b0ea378
|
|
7
|
+
data.tar.gz: b40b961a00923777970f4cb5a919f230a0bda2b59b4fcacc9a3d4b031568559ff55b5df9f242bcdc747377f7e74d63b6ee71ec63f3708b8780871497c7b62f2a
|
|
@@ -129,7 +129,7 @@ module Google
|
|
|
129
129
|
credentials = @config.credentials
|
|
130
130
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
131
131
|
# but only if the default endpoint does not have a region prefix.
|
|
132
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
132
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
133
133
|
!@config.endpoint.split(".").first.include?("-")
|
|
134
134
|
credentials ||= Credentials.default scope: @config.scope,
|
|
135
135
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -1351,7 +1351,9 @@ module Google
|
|
|
1351
1351
|
class Configuration
|
|
1352
1352
|
extend ::Gapic::Config
|
|
1353
1353
|
|
|
1354
|
-
|
|
1354
|
+
DEFAULT_ENDPOINT = "retail.googleapis.com"
|
|
1355
|
+
|
|
1356
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
1355
1357
|
config_attr :credentials, nil do |value|
|
|
1356
1358
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
1357
1359
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -125,7 +125,7 @@ module Google
|
|
|
125
125
|
credentials = @config.credentials
|
|
126
126
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
127
127
|
# but only if the default endpoint does not have a region prefix.
|
|
128
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
128
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
129
129
|
!@config.endpoint.split(".").first.include?("-")
|
|
130
130
|
credentials ||= Credentials.default scope: @config.scope,
|
|
131
131
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -1076,7 +1076,9 @@ module Google
|
|
|
1076
1076
|
class Configuration
|
|
1077
1077
|
extend ::Gapic::Config
|
|
1078
1078
|
|
|
1079
|
-
|
|
1079
|
+
DEFAULT_ENDPOINT = "retail.googleapis.com"
|
|
1080
|
+
|
|
1081
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
1080
1082
|
config_attr :credentials, nil do |value|
|
|
1081
1083
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
1082
1084
|
allowed.any? { |klass| klass === value }
|
|
@@ -59,7 +59,7 @@ module Google
|
|
|
59
59
|
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_catalogs_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_update_catalog_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_set_default_branch_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_get_default_branch_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_get_completion_config_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_update_completion_config_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_get_attributes_config_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_update_attributes_config_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_add_catalog_attribute_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_remove_catalog_attribute_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
|
|
@@ -439,7 +439,7 @@ module Google
|
|
|
439
439
|
|
|
440
440
|
verb, uri, query_string_params, body = ServiceStub.transcode_replace_catalog_attribute_request request_pb
|
|
441
441
|
query_string_params = if query_string_params.any?
|
|
442
|
-
query_string_params.to_h { |p| p.split
|
|
442
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
443
443
|
else
|
|
444
444
|
{}
|
|
445
445
|
end
|
|
@@ -132,7 +132,7 @@ module Google
|
|
|
132
132
|
credentials = @config.credentials
|
|
133
133
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
134
134
|
# but only if the default endpoint does not have a region prefix.
|
|
135
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
135
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
136
136
|
!@config.endpoint.split(".").first.include?("-")
|
|
137
137
|
credentials ||= Credentials.default scope: @config.scope,
|
|
138
138
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -530,7 +530,9 @@ module Google
|
|
|
530
530
|
class Configuration
|
|
531
531
|
extend ::Gapic::Config
|
|
532
532
|
|
|
533
|
-
|
|
533
|
+
DEFAULT_ENDPOINT = "retail.googleapis.com"
|
|
534
|
+
|
|
535
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
534
536
|
config_attr :credentials, nil do |value|
|
|
535
537
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
536
538
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -664,7 +664,9 @@ module Google
|
|
|
664
664
|
class Configuration
|
|
665
665
|
extend ::Gapic::Config
|
|
666
666
|
|
|
667
|
-
|
|
667
|
+
DEFAULT_ENDPOINT = "retail.googleapis.com"
|
|
668
|
+
|
|
669
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
668
670
|
config_attr :credentials, nil do |value|
|
|
669
671
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
670
672
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -128,7 +128,7 @@ module Google
|
|
|
128
128
|
credentials = @config.credentials
|
|
129
129
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
130
130
|
# but only if the default endpoint does not have a region prefix.
|
|
131
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
131
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
132
132
|
!@config.endpoint.split(".").first.include?("-")
|
|
133
133
|
credentials ||= Credentials.default scope: @config.scope,
|
|
134
134
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -459,7 +459,9 @@ module Google
|
|
|
459
459
|
class Configuration
|
|
460
460
|
extend ::Gapic::Config
|
|
461
461
|
|
|
462
|
-
|
|
462
|
+
DEFAULT_ENDPOINT = "retail.googleapis.com"
|
|
463
|
+
|
|
464
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
463
465
|
config_attr :credentials, nil do |value|
|
|
464
466
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
465
467
|
allowed.any? { |klass| klass === value }
|
|
@@ -446,7 +446,9 @@ module Google
|
|
|
446
446
|
class Configuration
|
|
447
447
|
extend ::Gapic::Config
|
|
448
448
|
|
|
449
|
-
|
|
449
|
+
DEFAULT_ENDPOINT = "retail.googleapis.com"
|
|
450
|
+
|
|
451
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
450
452
|
config_attr :credentials, nil do |value|
|
|
451
453
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
452
454
|
allowed.any? { |klass| klass === value }
|
|
@@ -567,7 +569,7 @@ module Google
|
|
|
567
569
|
|
|
568
570
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
|
569
571
|
query_string_params = if query_string_params.any?
|
|
570
|
-
query_string_params.to_h { |p| p.split
|
|
572
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
571
573
|
else
|
|
572
574
|
{}
|
|
573
575
|
end
|
|
@@ -605,7 +607,7 @@ module Google
|
|
|
605
607
|
|
|
606
608
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
|
607
609
|
query_string_params = if query_string_params.any?
|
|
608
|
-
query_string_params.to_h { |p| p.split
|
|
610
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
609
611
|
else
|
|
610
612
|
{}
|
|
611
613
|
end
|
|
@@ -643,7 +645,7 @@ module Google
|
|
|
643
645
|
|
|
644
646
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
|
645
647
|
query_string_params = if query_string_params.any?
|
|
646
|
-
query_string_params.to_h { |p| p.split
|
|
648
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
647
649
|
else
|
|
648
650
|
{}
|
|
649
651
|
end
|
|
@@ -681,7 +683,7 @@ module Google
|
|
|
681
683
|
|
|
682
684
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
|
683
685
|
query_string_params = if query_string_params.any?
|
|
684
|
-
query_string_params.to_h { |p| p.split
|
|
686
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
685
687
|
else
|
|
686
688
|
{}
|
|
687
689
|
end
|
|
@@ -59,7 +59,7 @@ module Google
|
|
|
59
59
|
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_complete_query_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_import_completion_data_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
|
|
@@ -124,7 +124,7 @@ module Google
|
|
|
124
124
|
credentials = @config.credentials
|
|
125
125
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
126
126
|
# but only if the default endpoint does not have a region prefix.
|
|
127
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
127
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
128
128
|
!@config.endpoint.split(".").first.include?("-")
|
|
129
129
|
credentials ||= Credentials.default scope: @config.scope,
|
|
130
130
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -715,7 +715,9 @@ module Google
|
|
|
715
715
|
class Configuration
|
|
716
716
|
extend ::Gapic::Config
|
|
717
717
|
|
|
718
|
-
|
|
718
|
+
DEFAULT_ENDPOINT = "retail.googleapis.com"
|
|
719
|
+
|
|
720
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
719
721
|
config_attr :credentials, nil do |value|
|
|
720
722
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
721
723
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -120,7 +120,7 @@ module Google
|
|
|
120
120
|
credentials = @config.credentials
|
|
121
121
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
122
122
|
# but only if the default endpoint does not have a region prefix.
|
|
123
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
123
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
124
124
|
!@config.endpoint.split(".").first.include?("-")
|
|
125
125
|
credentials ||= Credentials.default scope: @config.scope,
|
|
126
126
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -578,7 +578,9 @@ module Google
|
|
|
578
578
|
class Configuration
|
|
579
579
|
extend ::Gapic::Config
|
|
580
580
|
|
|
581
|
-
|
|
581
|
+
DEFAULT_ENDPOINT = "retail.googleapis.com"
|
|
582
|
+
|
|
583
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
582
584
|
config_attr :credentials, nil do |value|
|
|
583
585
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
584
586
|
allowed.any? { |klass| klass === value }
|
|
@@ -59,7 +59,7 @@ module Google
|
|
|
59
59
|
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_control_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_delete_control_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_update_control_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_get_control_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_list_controls_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
|
|
@@ -140,7 +140,7 @@ module Google
|
|
|
140
140
|
credentials = @config.credentials
|
|
141
141
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
142
142
|
# but only if the default endpoint does not have a region prefix.
|
|
143
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
143
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
144
144
|
!@config.endpoint.split(".").first.include?("-")
|
|
145
145
|
credentials ||= Credentials.default scope: @config.scope,
|
|
146
146
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -1001,7 +1001,9 @@ module Google
|
|
|
1001
1001
|
class Configuration
|
|
1002
1002
|
extend ::Gapic::Config
|
|
1003
1003
|
|
|
1004
|
-
|
|
1004
|
+
DEFAULT_ENDPOINT = "retail.googleapis.com"
|
|
1005
|
+
|
|
1006
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
1005
1007
|
config_attr :credentials, nil do |value|
|
|
1006
1008
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
1007
1009
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -664,7 +664,9 @@ module Google
|
|
|
664
664
|
class Configuration
|
|
665
665
|
extend ::Gapic::Config
|
|
666
666
|
|
|
667
|
-
|
|
667
|
+
DEFAULT_ENDPOINT = "retail.googleapis.com"
|
|
668
|
+
|
|
669
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
668
670
|
config_attr :credentials, nil do |value|
|
|
669
671
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
670
672
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -136,7 +136,7 @@ module Google
|
|
|
136
136
|
credentials = @config.credentials
|
|
137
137
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
138
138
|
# but only if the default endpoint does not have a region prefix.
|
|
139
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
139
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
140
140
|
!@config.endpoint.split(".").first.include?("-")
|
|
141
141
|
credentials ||= Credentials.default scope: @config.scope,
|
|
142
142
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -781,7 +781,9 @@ module Google
|
|
|
781
781
|
class Configuration
|
|
782
782
|
extend ::Gapic::Config
|
|
783
783
|
|
|
784
|
-
|
|
784
|
+
DEFAULT_ENDPOINT = "retail.googleapis.com"
|
|
785
|
+
|
|
786
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
785
787
|
config_attr :credentials, nil do |value|
|
|
786
788
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
787
789
|
allowed.any? { |klass| klass === value }
|
|
@@ -446,7 +446,9 @@ module Google
|
|
|
446
446
|
class Configuration
|
|
447
447
|
extend ::Gapic::Config
|
|
448
448
|
|
|
449
|
-
|
|
449
|
+
DEFAULT_ENDPOINT = "retail.googleapis.com"
|
|
450
|
+
|
|
451
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
450
452
|
config_attr :credentials, nil do |value|
|
|
451
453
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
452
454
|
allowed.any? { |klass| klass === value }
|
|
@@ -567,7 +569,7 @@ module Google
|
|
|
567
569
|
|
|
568
570
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
|
569
571
|
query_string_params = if query_string_params.any?
|
|
570
|
-
query_string_params.to_h { |p| p.split
|
|
572
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
571
573
|
else
|
|
572
574
|
{}
|
|
573
575
|
end
|
|
@@ -605,7 +607,7 @@ module Google
|
|
|
605
607
|
|
|
606
608
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
|
607
609
|
query_string_params = if query_string_params.any?
|
|
608
|
-
query_string_params.to_h { |p| p.split
|
|
610
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
609
611
|
else
|
|
610
612
|
{}
|
|
611
613
|
end
|
|
@@ -643,7 +645,7 @@ module Google
|
|
|
643
645
|
|
|
644
646
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
|
645
647
|
query_string_params = if query_string_params.any?
|
|
646
|
-
query_string_params.to_h { |p| p.split
|
|
648
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
647
649
|
else
|
|
648
650
|
{}
|
|
649
651
|
end
|
|
@@ -681,7 +683,7 @@ module Google
|
|
|
681
683
|
|
|
682
684
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
|
683
685
|
query_string_params = if query_string_params.any?
|
|
684
|
-
query_string_params.to_h { |p| p.split
|
|
686
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
685
687
|
else
|
|
686
688
|
{}
|
|
687
689
|
end
|
|
@@ -59,7 +59,7 @@ module Google
|
|
|
59
59
|
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_model_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_get_model_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_pause_model_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_resume_model_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_delete_model_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_list_models_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_update_model_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_tune_model_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
|
|
@@ -129,7 +129,7 @@ module Google
|
|
|
129
129
|
credentials = @config.credentials
|
|
130
130
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
131
131
|
# but only if the default endpoint does not have a region prefix.
|
|
132
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
132
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
133
133
|
!@config.endpoint.split(".").first.include?("-")
|
|
134
134
|
credentials ||= Credentials.default scope: @config.scope,
|
|
135
135
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -456,7 +456,9 @@ module Google
|
|
|
456
456
|
class Configuration
|
|
457
457
|
extend ::Gapic::Config
|
|
458
458
|
|
|
459
|
-
|
|
459
|
+
DEFAULT_ENDPOINT = "retail.googleapis.com"
|
|
460
|
+
|
|
461
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
460
462
|
config_attr :credentials, nil do |value|
|
|
461
463
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
462
464
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -125,7 +125,7 @@ module Google
|
|
|
125
125
|
credentials = @config.credentials
|
|
126
126
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
127
127
|
# but only if the default endpoint does not have a region prefix.
|
|
128
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
128
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
129
129
|
!@config.endpoint.split(".").first.include?("-")
|
|
130
130
|
credentials ||= Credentials.default scope: @config.scope,
|
|
131
131
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -415,7 +415,9 @@ module Google
|
|
|
415
415
|
class Configuration
|
|
416
416
|
extend ::Gapic::Config
|
|
417
417
|
|
|
418
|
-
|
|
418
|
+
DEFAULT_ENDPOINT = "retail.googleapis.com"
|
|
419
|
+
|
|
420
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
419
421
|
config_attr :credentials, nil do |value|
|
|
420
422
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
421
423
|
allowed.any? { |klass| klass === value }
|
|
@@ -59,7 +59,7 @@ module Google
|
|
|
59
59
|
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_predict_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
|
|
@@ -135,7 +135,7 @@ module Google
|
|
|
135
135
|
credentials = @config.credentials
|
|
136
136
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
137
137
|
# but only if the default endpoint does not have a region prefix.
|
|
138
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
138
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
139
139
|
!@config.endpoint.split(".").first.include?("-")
|
|
140
140
|
credentials ||= Credentials.default scope: @config.scope,
|
|
141
141
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -1823,7 +1823,9 @@ module Google
|
|
|
1823
1823
|
class Configuration
|
|
1824
1824
|
extend ::Gapic::Config
|
|
1825
1825
|
|
|
1826
|
-
|
|
1826
|
+
DEFAULT_ENDPOINT = "retail.googleapis.com"
|
|
1827
|
+
|
|
1828
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
1827
1829
|
config_attr :credentials, nil do |value|
|
|
1828
1830
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
1829
1831
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -664,7 +664,9 @@ module Google
|
|
|
664
664
|
class Configuration
|
|
665
665
|
extend ::Gapic::Config
|
|
666
666
|
|
|
667
|
-
|
|
667
|
+
DEFAULT_ENDPOINT = "retail.googleapis.com"
|
|
668
|
+
|
|
669
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
668
670
|
config_attr :credentials, nil do |value|
|
|
669
671
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
670
672
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -131,7 +131,7 @@ module Google
|
|
|
131
131
|
credentials = @config.credentials
|
|
132
132
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
133
133
|
# but only if the default endpoint does not have a region prefix.
|
|
134
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
134
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
135
135
|
!@config.endpoint.split(".").first.include?("-")
|
|
136
136
|
credentials ||= Credentials.default scope: @config.scope,
|
|
137
137
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -1506,7 +1506,9 @@ module Google
|
|
|
1506
1506
|
class Configuration
|
|
1507
1507
|
extend ::Gapic::Config
|
|
1508
1508
|
|
|
1509
|
-
|
|
1509
|
+
DEFAULT_ENDPOINT = "retail.googleapis.com"
|
|
1510
|
+
|
|
1511
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
1510
1512
|
config_attr :credentials, nil do |value|
|
|
1511
1513
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
1512
1514
|
allowed.any? { |klass| klass === value }
|
|
@@ -446,7 +446,9 @@ module Google
|
|
|
446
446
|
class Configuration
|
|
447
447
|
extend ::Gapic::Config
|
|
448
448
|
|
|
449
|
-
|
|
449
|
+
DEFAULT_ENDPOINT = "retail.googleapis.com"
|
|
450
|
+
|
|
451
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
450
452
|
config_attr :credentials, nil do |value|
|
|
451
453
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
452
454
|
allowed.any? { |klass| klass === value }
|
|
@@ -567,7 +569,7 @@ module Google
|
|
|
567
569
|
|
|
568
570
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
|
569
571
|
query_string_params = if query_string_params.any?
|
|
570
|
-
query_string_params.to_h { |p| p.split
|
|
572
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
571
573
|
else
|
|
572
574
|
{}
|
|
573
575
|
end
|
|
@@ -605,7 +607,7 @@ module Google
|
|
|
605
607
|
|
|
606
608
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
|
607
609
|
query_string_params = if query_string_params.any?
|
|
608
|
-
query_string_params.to_h { |p| p.split
|
|
610
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
609
611
|
else
|
|
610
612
|
{}
|
|
611
613
|
end
|
|
@@ -643,7 +645,7 @@ module Google
|
|
|
643
645
|
|
|
644
646
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
|
645
647
|
query_string_params = if query_string_params.any?
|
|
646
|
-
query_string_params.to_h { |p| p.split
|
|
648
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
647
649
|
else
|
|
648
650
|
{}
|
|
649
651
|
end
|
|
@@ -681,7 +683,7 @@ module Google
|
|
|
681
683
|
|
|
682
684
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
|
683
685
|
query_string_params = if query_string_params.any?
|
|
684
|
-
query_string_params.to_h { |p| p.split
|
|
686
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
685
687
|
else
|
|
686
688
|
{}
|
|
687
689
|
end
|
|
@@ -59,7 +59,7 @@ module Google
|
|
|
59
59
|
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_product_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_get_product_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_list_products_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_update_product_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_delete_product_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_import_products_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_set_inventory_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_add_fulfillment_places_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_remove_fulfillment_places_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_add_local_inventories_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
|
|
@@ -439,7 +439,7 @@ module Google
|
|
|
439
439
|
|
|
440
440
|
verb, uri, query_string_params, body = ServiceStub.transcode_remove_local_inventories_request request_pb
|
|
441
441
|
query_string_params = if query_string_params.any?
|
|
442
|
-
query_string_params.to_h { |p| p.split
|
|
442
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
443
443
|
else
|
|
444
444
|
{}
|
|
445
445
|
end
|
|
@@ -132,7 +132,7 @@ module Google
|
|
|
132
132
|
credentials = @config.credentials
|
|
133
133
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
134
134
|
# but only if the default endpoint does not have a region prefix.
|
|
135
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
135
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
136
136
|
!@config.endpoint.split(".").first.include?("-")
|
|
137
137
|
credentials ||= Credentials.default scope: @config.scope,
|
|
138
138
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -577,7 +577,9 @@ module Google
|
|
|
577
577
|
class Configuration
|
|
578
578
|
extend ::Gapic::Config
|
|
579
579
|
|
|
580
|
-
|
|
580
|
+
DEFAULT_ENDPOINT = "retail.googleapis.com"
|
|
581
|
+
|
|
582
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
581
583
|
config_attr :credentials, nil do |value|
|
|
582
584
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
583
585
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -128,7 +128,7 @@ module Google
|
|
|
128
128
|
credentials = @config.credentials
|
|
129
129
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
130
130
|
# but only if the default endpoint does not have a region prefix.
|
|
131
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
131
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
132
132
|
!@config.endpoint.split(".").first.include?("-")
|
|
133
133
|
credentials ||= Credentials.default scope: @config.scope,
|
|
134
134
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -531,7 +531,9 @@ module Google
|
|
|
531
531
|
class Configuration
|
|
532
532
|
extend ::Gapic::Config
|
|
533
533
|
|
|
534
|
-
|
|
534
|
+
DEFAULT_ENDPOINT = "retail.googleapis.com"
|
|
535
|
+
|
|
536
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
535
537
|
config_attr :credentials, nil do |value|
|
|
536
538
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
537
539
|
allowed.any? { |klass| klass === value }
|
|
@@ -59,7 +59,7 @@ module Google
|
|
|
59
59
|
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_search_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
|
|
@@ -124,7 +124,7 @@ module Google
|
|
|
124
124
|
credentials = @config.credentials
|
|
125
125
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
126
126
|
# but only if the default endpoint does not have a region prefix.
|
|
127
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
127
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
128
128
|
!@config.endpoint.split(".").first.include?("-")
|
|
129
129
|
credentials ||= Credentials.default scope: @config.scope,
|
|
130
130
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -892,7 +892,9 @@ module Google
|
|
|
892
892
|
class Configuration
|
|
893
893
|
extend ::Gapic::Config
|
|
894
894
|
|
|
895
|
-
|
|
895
|
+
DEFAULT_ENDPOINT = "retail.googleapis.com"
|
|
896
|
+
|
|
897
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
896
898
|
config_attr :credentials, nil do |value|
|
|
897
899
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
898
900
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -120,7 +120,7 @@ module Google
|
|
|
120
120
|
credentials = @config.credentials
|
|
121
121
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
122
122
|
# but only if the default endpoint does not have a region prefix.
|
|
123
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
123
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
124
124
|
!@config.endpoint.split(".").first.include?("-")
|
|
125
125
|
credentials ||= Credentials.default scope: @config.scope,
|
|
126
126
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -709,7 +709,9 @@ module Google
|
|
|
709
709
|
class Configuration
|
|
710
710
|
extend ::Gapic::Config
|
|
711
711
|
|
|
712
|
-
|
|
712
|
+
DEFAULT_ENDPOINT = "retail.googleapis.com"
|
|
713
|
+
|
|
714
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
713
715
|
config_attr :credentials, nil do |value|
|
|
714
716
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
715
717
|
allowed.any? { |klass| klass === value }
|
|
@@ -59,7 +59,7 @@ module Google
|
|
|
59
59
|
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_serving_config_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_delete_serving_config_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_update_serving_config_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_get_serving_config_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_list_serving_configs_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_add_control_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_remove_control_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
|
|
@@ -139,7 +139,7 @@ module Google
|
|
|
139
139
|
credentials = @config.credentials
|
|
140
140
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
141
141
|
# but only if the default endpoint does not have a region prefix.
|
|
142
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
142
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
143
143
|
!@config.endpoint.split(".").first.include?("-")
|
|
144
144
|
credentials ||= Credentials.default scope: @config.scope,
|
|
145
145
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -807,7 +807,9 @@ module Google
|
|
|
807
807
|
class Configuration
|
|
808
808
|
extend ::Gapic::Config
|
|
809
809
|
|
|
810
|
-
|
|
810
|
+
DEFAULT_ENDPOINT = "retail.googleapis.com"
|
|
811
|
+
|
|
812
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
811
813
|
config_attr :credentials, nil do |value|
|
|
812
814
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
813
815
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -664,7 +664,9 @@ module Google
|
|
|
664
664
|
class Configuration
|
|
665
665
|
extend ::Gapic::Config
|
|
666
666
|
|
|
667
|
-
|
|
667
|
+
DEFAULT_ENDPOINT = "retail.googleapis.com"
|
|
668
|
+
|
|
669
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
668
670
|
config_attr :credentials, nil do |value|
|
|
669
671
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
670
672
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -135,7 +135,7 @@ module Google
|
|
|
135
135
|
credentials = @config.credentials
|
|
136
136
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
137
137
|
# but only if the default endpoint does not have a region prefix.
|
|
138
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
138
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
139
139
|
!@config.endpoint.split(".").first.include?("-")
|
|
140
140
|
credentials ||= Credentials.default scope: @config.scope,
|
|
141
141
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -653,7 +653,9 @@ module Google
|
|
|
653
653
|
class Configuration
|
|
654
654
|
extend ::Gapic::Config
|
|
655
655
|
|
|
656
|
-
|
|
656
|
+
DEFAULT_ENDPOINT = "retail.googleapis.com"
|
|
657
|
+
|
|
658
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
657
659
|
config_attr :credentials, nil do |value|
|
|
658
660
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
659
661
|
allowed.any? { |klass| klass === value }
|
|
@@ -446,7 +446,9 @@ module Google
|
|
|
446
446
|
class Configuration
|
|
447
447
|
extend ::Gapic::Config
|
|
448
448
|
|
|
449
|
-
|
|
449
|
+
DEFAULT_ENDPOINT = "retail.googleapis.com"
|
|
450
|
+
|
|
451
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
450
452
|
config_attr :credentials, nil do |value|
|
|
451
453
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
452
454
|
allowed.any? { |klass| klass === value }
|
|
@@ -567,7 +569,7 @@ module Google
|
|
|
567
569
|
|
|
568
570
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
|
569
571
|
query_string_params = if query_string_params.any?
|
|
570
|
-
query_string_params.to_h { |p| p.split
|
|
572
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
571
573
|
else
|
|
572
574
|
{}
|
|
573
575
|
end
|
|
@@ -605,7 +607,7 @@ module Google
|
|
|
605
607
|
|
|
606
608
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
|
607
609
|
query_string_params = if query_string_params.any?
|
|
608
|
-
query_string_params.to_h { |p| p.split
|
|
610
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
609
611
|
else
|
|
610
612
|
{}
|
|
611
613
|
end
|
|
@@ -643,7 +645,7 @@ module Google
|
|
|
643
645
|
|
|
644
646
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
|
645
647
|
query_string_params = if query_string_params.any?
|
|
646
|
-
query_string_params.to_h { |p| p.split
|
|
648
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
647
649
|
else
|
|
648
650
|
{}
|
|
649
651
|
end
|
|
@@ -681,7 +683,7 @@ module Google
|
|
|
681
683
|
|
|
682
684
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
|
683
685
|
query_string_params = if query_string_params.any?
|
|
684
|
-
query_string_params.to_h { |p| p.split
|
|
686
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
685
687
|
else
|
|
686
688
|
{}
|
|
687
689
|
end
|
|
@@ -59,7 +59,7 @@ module Google
|
|
|
59
59
|
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_write_user_event_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_collect_user_event_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_purge_user_events_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_import_user_events_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_rejoin_user_events_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
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-retail-v2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.16.
|
|
4
|
+
version: 0.16.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-06-
|
|
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
|