google-cloud-discovery_engine-v1beta 0.2.0 → 0.2.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/README.md +1 -1
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/client.rb +4 -2
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/client.rb +4 -2
- data/lib/google/cloud/discovery_engine/v1beta/completion_service/rest/service_stub.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1beta/document_service/client.rb +4 -2
- data/lib/google/cloud/discovery_engine/v1beta/document_service/operations.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/client.rb +4 -2
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/operations.rb +7 -5
- data/lib/google/cloud/discovery_engine/v1beta/document_service/rest/service_stub.rb +7 -7
- data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/client.rb +4 -2
- data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/rest/client.rb +4 -2
- data/lib/google/cloud/discovery_engine/v1beta/recommendation_service/rest/service_stub.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/client.rb +4 -2
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/operations.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/client.rb +4 -2
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/operations.rb +7 -5
- data/lib/google/cloud/discovery_engine/v1beta/schema_service/rest/service_stub.rb +5 -5
- data/lib/google/cloud/discovery_engine/v1beta/search_service/client.rb +4 -2
- data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/client.rb +4 -2
- data/lib/google/cloud/discovery_engine/v1beta/search_service/rest/service_stub.rb +1 -1
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/client.rb +4 -2
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/operations.rb +3 -1
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/client.rb +4 -2
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/operations.rb +7 -5
- data/lib/google/cloud/discovery_engine/v1beta/user_event_service/rest/service_stub.rb +3 -3
- data/lib/google/cloud/discovery_engine/v1beta/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: 52c37c20d3f35641649fd904f5e86cc77bede383266c2a372bfeef0ef1823d3b
|
|
4
|
+
data.tar.gz: 1dd69392eaeb5310d8fefc9c692b9ebba9008ef4780769b1f769d53189ce7135
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9ec111c6292772a3f9bc94156637f37325b753fbf1948a14a46a7bd1488f3de50522da331a6f011e541955f8e90bae34e9b28042430182e941a805c61c007547
|
|
7
|
+
data.tar.gz: 9c768191b8e8cd4d2fda02c4bd44148760b94e23e4927ade7863c131fe8dab0086cf2c386b799014acf3565ae69ccb479528d5e313b0c2b2138ac1bea7131339
|
data/README.md
CHANGED
|
@@ -40,7 +40,7 @@ response = client.complete_query request
|
|
|
40
40
|
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1beta/latest)
|
|
41
41
|
for class and method documentation.
|
|
42
42
|
|
|
43
|
-
See also the [Product Documentation](https://cloud.google.com/
|
|
43
|
+
See also the [Product Documentation](https://cloud.google.com/discovery-engine/media/docs)
|
|
44
44
|
for general usage information.
|
|
45
45
|
|
|
46
46
|
## Enabling Logging
|
|
@@ -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
|
|
@@ -353,7 +353,9 @@ module Google
|
|
|
353
353
|
class Configuration
|
|
354
354
|
extend ::Gapic::Config
|
|
355
355
|
|
|
356
|
-
|
|
356
|
+
DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
|
|
357
|
+
|
|
358
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
357
359
|
config_attr :credentials, nil do |value|
|
|
358
360
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
359
361
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -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
|
|
@@ -312,7 +312,9 @@ module Google
|
|
|
312
312
|
class Configuration
|
|
313
313
|
extend ::Gapic::Config
|
|
314
314
|
|
|
315
|
-
|
|
315
|
+
DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
|
|
316
|
+
|
|
317
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
316
318
|
config_attr :credentials, nil do |value|
|
|
317
319
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
318
320
|
allowed.any? { |klass| klass === value }
|
|
@@ -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
|
|
@@ -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
|
|
@@ -1041,7 +1041,9 @@ module Google
|
|
|
1041
1041
|
class Configuration
|
|
1042
1042
|
extend ::Gapic::Config
|
|
1043
1043
|
|
|
1044
|
-
|
|
1044
|
+
DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
|
|
1045
|
+
|
|
1046
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
1045
1047
|
config_attr :credentials, nil do |value|
|
|
1046
1048
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
1047
1049
|
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 = "discoveryengine.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
|
|
@@ -844,7 +844,9 @@ module Google
|
|
|
844
844
|
class Configuration
|
|
845
845
|
extend ::Gapic::Config
|
|
846
846
|
|
|
847
|
-
|
|
847
|
+
DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
|
|
848
|
+
|
|
849
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
848
850
|
config_attr :credentials, nil do |value|
|
|
849
851
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
850
852
|
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 = "discoveryengine.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_get_document_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_list_documents_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_create_document_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_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_delete_document_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_documents_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_purge_documents_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
|
|
@@ -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
|
|
@@ -410,7 +410,9 @@ module Google
|
|
|
410
410
|
class Configuration
|
|
411
411
|
extend ::Gapic::Config
|
|
412
412
|
|
|
413
|
-
|
|
413
|
+
DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
|
|
414
|
+
|
|
415
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
414
416
|
config_attr :credentials, nil do |value|
|
|
415
417
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
416
418
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -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
|
|
@@ -369,7 +369,9 @@ module Google
|
|
|
369
369
|
class Configuration
|
|
370
370
|
extend ::Gapic::Config
|
|
371
371
|
|
|
372
|
-
|
|
372
|
+
DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
|
|
373
|
+
|
|
374
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
373
375
|
config_attr :credentials, nil do |value|
|
|
374
376
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
375
377
|
allowed.any? { |klass| klass === value }
|
|
@@ -59,7 +59,7 @@ module Google
|
|
|
59
59
|
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_recommend_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
|
|
@@ -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
|
|
@@ -736,7 +736,9 @@ module Google
|
|
|
736
736
|
class Configuration
|
|
737
737
|
extend ::Gapic::Config
|
|
738
738
|
|
|
739
|
-
|
|
739
|
+
DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
|
|
740
|
+
|
|
741
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
740
742
|
config_attr :credentials, nil do |value|
|
|
741
743
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
742
744
|
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 = "discoveryengine.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
|
|
@@ -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
|
|
@@ -578,7 +578,9 @@ module Google
|
|
|
578
578
|
class Configuration
|
|
579
579
|
extend ::Gapic::Config
|
|
580
580
|
|
|
581
|
-
|
|
581
|
+
DEFAULT_ENDPOINT = "discoveryengine.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 }
|
|
@@ -446,7 +446,9 @@ module Google
|
|
|
446
446
|
class Configuration
|
|
447
447
|
extend ::Gapic::Config
|
|
448
448
|
|
|
449
|
-
|
|
449
|
+
DEFAULT_ENDPOINT = "discoveryengine.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_get_schema_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_list_schemas_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_create_schema_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_schema_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_schema_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
|
|
@@ -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
|
|
@@ -435,7 +435,9 @@ module Google
|
|
|
435
435
|
class Configuration
|
|
436
436
|
extend ::Gapic::Config
|
|
437
437
|
|
|
438
|
-
|
|
438
|
+
DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
|
|
439
|
+
|
|
440
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
439
441
|
config_attr :credentials, nil do |value|
|
|
440
442
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
441
443
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -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
|
|
@@ -389,7 +389,9 @@ module Google
|
|
|
389
389
|
class Configuration
|
|
390
390
|
extend ::Gapic::Config
|
|
391
391
|
|
|
392
|
-
|
|
392
|
+
DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
|
|
393
|
+
|
|
394
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
393
395
|
config_attr :credentials, nil do |value|
|
|
394
396
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
395
397
|
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
|
|
@@ -133,7 +133,7 @@ module Google
|
|
|
133
133
|
credentials = @config.credentials
|
|
134
134
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
135
135
|
# but only if the default endpoint does not have a region prefix.
|
|
136
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
136
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
137
137
|
!@config.endpoint.split(".").first.include?("-")
|
|
138
138
|
credentials ||= Credentials.default scope: @config.scope,
|
|
139
139
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -548,7 +548,9 @@ module Google
|
|
|
548
548
|
class Configuration
|
|
549
549
|
extend ::Gapic::Config
|
|
550
550
|
|
|
551
|
-
|
|
551
|
+
DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
|
|
552
|
+
|
|
553
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
552
554
|
config_attr :credentials, nil do |value|
|
|
553
555
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
554
556
|
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 = "discoveryengine.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
|
|
@@ -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
|
|
@@ -454,7 +454,9 @@ module Google
|
|
|
454
454
|
class Configuration
|
|
455
455
|
extend ::Gapic::Config
|
|
456
456
|
|
|
457
|
-
|
|
457
|
+
DEFAULT_ENDPOINT = "discoveryengine.googleapis.com"
|
|
458
|
+
|
|
459
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
458
460
|
config_attr :credentials, nil do |value|
|
|
459
461
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
460
462
|
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 = "discoveryengine.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_import_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
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-discovery_engine-v1beta
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.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
|