google-cloud-recommendation_engine-v1beta1 0.5.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/client.rb +6 -4
- data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/operations.rb +5 -3
- data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/rest/client.rb +6 -4
- data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/rest/operations.rb +9 -7
- data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/rest/service_stub.rb +6 -6
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/client.rb +6 -4
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/rest/client.rb +6 -4
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/rest/service_stub.rb +3 -3
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_service/client.rb +6 -4
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_service/rest/client.rb +6 -4
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_service/rest/service_stub.rb +1 -1
- data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/client.rb +6 -4
- data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/operations.rb +5 -3
- data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/rest/client.rb +6 -4
- data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/rest/operations.rb +9 -7
- data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/rest/service_stub.rb +5 -5
- data/lib/google/cloud/recommendation_engine/v1beta1/version.rb +1 -1
- data/lib/google/cloud/recommendationengine/v1beta1/catalog_pb.rb +25 -49
- data/lib/google/cloud/recommendationengine/v1beta1/catalog_service_pb.rb +26 -26
- data/lib/google/cloud/recommendationengine/v1beta1/common_pb.rb +24 -11
- data/lib/google/cloud/recommendationengine/v1beta1/import_pb.rb +28 -55
- data/lib/google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service_pb.rb +24 -20
- data/lib/google/cloud/recommendationengine/v1beta1/prediction_service_pb.rb +26 -23
- data/lib/google/cloud/recommendationengine/v1beta1/recommendationengine_resources_pb.rb +25 -2
- data/lib/google/cloud/recommendationengine/v1beta1/user_event_pb.rb +27 -55
- data/lib/google/cloud/recommendationengine/v1beta1/user_event_service_pb.rb +26 -34
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/struct.rb +1 -1
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- 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: 2d9850be9543c1d29ebf2e142a0855f6779765fc739084cd79f5d78ae236b795
|
4
|
+
data.tar.gz: 556368b6d05a066b7e9db3ef83ab69e1edac0a62e2607a036b619e8fcca9944b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bd9a4fc8fd0707bbecd5772135a7d933f34ce693356011957e0d1708b7b316edbfef81c78c60042074884d2e97c7c0a689d7f1ef9d5291c521b51be9e087e2d
|
7
|
+
data.tar.gz: bed49cb0ed786dc3847ead70322d8462d63055b712121823a7f59517fef52ea4de900302b9d6b7fe0d52e9304ee7adc9ed3d1cfec03d4f53d4183ebb3cdd5aa5
|
data/README.md
CHANGED
@@ -47,7 +47,7 @@ for general usage information.
|
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
49
|
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
53
53
|
|
@@ -153,7 +153,7 @@ module Google
|
|
153
153
|
credentials = @config.credentials
|
154
154
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
155
155
|
# but only if the default endpoint does not have a region prefix.
|
156
|
-
enable_self_signed_jwt = @config.endpoint ==
|
156
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
157
157
|
!@config.endpoint.split(".").first.include?("-")
|
158
158
|
credentials ||= Credentials.default scope: @config.scope,
|
159
159
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -783,9 +783,9 @@ module Google
|
|
783
783
|
# * (`String`) The path to a service account key file in JSON format
|
784
784
|
# * (`Hash`) A service account key as a Hash
|
785
785
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
786
|
-
# (see the [googleauth docs](https://
|
786
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
787
787
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
788
|
-
# (see the [signet docs](https://
|
788
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
789
789
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
790
790
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
791
791
|
# * (`nil`) indicating no credentials
|
@@ -827,7 +827,9 @@ module Google
|
|
827
827
|
class Configuration
|
828
828
|
extend ::Gapic::Config
|
829
829
|
|
830
|
-
|
830
|
+
DEFAULT_ENDPOINT = "recommendationengine.googleapis.com"
|
831
|
+
|
832
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
831
833
|
config_attr :credentials, nil do |value|
|
832
834
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
833
835
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -620,9 +620,9 @@ module Google
|
|
620
620
|
# * (`String`) The path to a service account key file in JSON format
|
621
621
|
# * (`Hash`) A service account key as a Hash
|
622
622
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
623
|
-
# (see the [googleauth docs](https://
|
623
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
624
624
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
625
|
-
# (see the [signet docs](https://
|
625
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
626
626
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
627
627
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
628
628
|
# * (`nil`) indicating no credentials
|
@@ -664,7 +664,9 @@ module Google
|
|
664
664
|
class Configuration
|
665
665
|
extend ::Gapic::Config
|
666
666
|
|
667
|
-
|
667
|
+
DEFAULT_ENDPOINT = "recommendationengine.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
|
@@ -149,7 +149,7 @@ module Google
|
|
149
149
|
credentials = @config.credentials
|
150
150
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
151
151
|
# but only if the default endpoint does not have a region prefix.
|
152
|
-
enable_self_signed_jwt = @config.endpoint ==
|
152
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
153
153
|
!@config.endpoint.split(".").first.include?("-")
|
154
154
|
credentials ||= Credentials.default scope: @config.scope,
|
155
155
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -625,9 +625,9 @@ module Google
|
|
625
625
|
# * (`String`) The path to a service account key file in JSON format
|
626
626
|
# * (`Hash`) A service account key as a Hash
|
627
627
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
628
|
-
# (see the [googleauth docs](https://
|
628
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
629
629
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
630
|
-
# (see the [signet docs](https://
|
630
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
631
631
|
# * (`nil`) indicating no credentials
|
632
632
|
# @return [::Object]
|
633
633
|
# @!attribute [rw] scope
|
@@ -660,7 +660,9 @@ module Google
|
|
660
660
|
class Configuration
|
661
661
|
extend ::Gapic::Config
|
662
662
|
|
663
|
-
|
663
|
+
DEFAULT_ENDPOINT = "recommendationengine.googleapis.com"
|
664
|
+
|
665
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
664
666
|
config_attr :credentials, nil do |value|
|
665
667
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
666
668
|
allowed.any? { |klass| klass === value }
|
@@ -411,9 +411,9 @@ module Google
|
|
411
411
|
# * (`String`) The path to a service account key file in JSON format
|
412
412
|
# * (`Hash`) A service account key as a Hash
|
413
413
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
414
|
-
# (see the [googleauth docs](https://
|
414
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
415
415
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
416
|
-
# (see the [signet docs](https://
|
416
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
417
417
|
# * (`nil`) indicating no credentials
|
418
418
|
# @return [::Object]
|
419
419
|
# @!attribute [rw] scope
|
@@ -446,7 +446,9 @@ module Google
|
|
446
446
|
class Configuration
|
447
447
|
extend ::Gapic::Config
|
448
448
|
|
449
|
-
|
449
|
+
DEFAULT_ENDPOINT = "recommendationengine.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_catalog_item_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_catalog_item_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_catalog_items_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_catalog_item_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_catalog_item_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_catalog_items_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
|
@@ -142,7 +142,7 @@ module Google
|
|
142
142
|
credentials = @config.credentials
|
143
143
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
144
144
|
# but only if the default endpoint does not have a region prefix.
|
145
|
-
enable_self_signed_jwt = @config.endpoint ==
|
145
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
146
146
|
!@config.endpoint.split(".").first.include?("-")
|
147
147
|
credentials ||= Credentials.default scope: @config.scope,
|
148
148
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -471,9 +471,9 @@ module Google
|
|
471
471
|
# * (`String`) The path to a service account key file in JSON format
|
472
472
|
# * (`Hash`) A service account key as a Hash
|
473
473
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
474
|
-
# (see the [googleauth docs](https://
|
474
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
475
475
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
476
|
-
# (see the [signet docs](https://
|
476
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
477
477
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
478
478
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
479
479
|
# * (`nil`) indicating no credentials
|
@@ -515,7 +515,9 @@ module Google
|
|
515
515
|
class Configuration
|
516
516
|
extend ::Gapic::Config
|
517
517
|
|
518
|
-
|
518
|
+
DEFAULT_ENDPOINT = "recommendationengine.googleapis.com"
|
519
|
+
|
520
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
519
521
|
config_attr :credentials, nil do |value|
|
520
522
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
521
523
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/rest/client.rb
CHANGED
@@ -138,7 +138,7 @@ module Google
|
|
138
138
|
credentials = @config.credentials
|
139
139
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
140
140
|
# but only if the default endpoint does not have a region prefix.
|
141
|
-
enable_self_signed_jwt = @config.endpoint ==
|
141
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
142
142
|
!@config.endpoint.split(".").first.include?("-")
|
143
143
|
credentials ||= Credentials.default scope: @config.scope,
|
144
144
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -389,9 +389,9 @@ module Google
|
|
389
389
|
# * (`String`) The path to a service account key file in JSON format
|
390
390
|
# * (`Hash`) A service account key as a Hash
|
391
391
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
392
|
-
# (see the [googleauth docs](https://
|
392
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
393
393
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
394
|
-
# (see the [signet docs](https://
|
394
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
395
395
|
# * (`nil`) indicating no credentials
|
396
396
|
# @return [::Object]
|
397
397
|
# @!attribute [rw] scope
|
@@ -424,7 +424,9 @@ module Google
|
|
424
424
|
class Configuration
|
425
425
|
extend ::Gapic::Config
|
426
426
|
|
427
|
-
|
427
|
+
DEFAULT_ENDPOINT = "recommendationengine.googleapis.com"
|
428
|
+
|
429
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
428
430
|
config_attr :credentials, nil do |value|
|
429
431
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
430
432
|
allowed.any? { |klass| klass === value }
|
data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/rest/service_stub.rb
CHANGED
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_prediction_api_key_registration_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_prediction_api_key_registrations_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_delete_prediction_api_key_registration_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
|
@@ -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
|
@@ -367,9 +367,9 @@ module Google
|
|
367
367
|
# * (`String`) The path to a service account key file in JSON format
|
368
368
|
# * (`Hash`) A service account key as a Hash
|
369
369
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
370
|
-
# (see the [googleauth docs](https://
|
370
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
371
371
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
372
|
-
# (see the [signet docs](https://
|
372
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
373
373
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
374
374
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
375
375
|
# * (`nil`) indicating no credentials
|
@@ -411,7 +411,9 @@ module Google
|
|
411
411
|
class Configuration
|
412
412
|
extend ::Gapic::Config
|
413
413
|
|
414
|
-
|
414
|
+
DEFAULT_ENDPOINT = "recommendationengine.googleapis.com"
|
415
|
+
|
416
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
415
417
|
config_attr :credentials, nil do |value|
|
416
418
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
417
419
|
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
|
@@ -331,9 +331,9 @@ module Google
|
|
331
331
|
# * (`String`) The path to a service account key file in JSON format
|
332
332
|
# * (`Hash`) A service account key as a Hash
|
333
333
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
334
|
-
# (see the [googleauth docs](https://
|
334
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
335
335
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
336
|
-
# (see the [signet docs](https://
|
336
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
337
337
|
# * (`nil`) indicating no credentials
|
338
338
|
# @return [::Object]
|
339
339
|
# @!attribute [rw] scope
|
@@ -366,7 +366,9 @@ module Google
|
|
366
366
|
class Configuration
|
367
367
|
extend ::Gapic::Config
|
368
368
|
|
369
|
-
|
369
|
+
DEFAULT_ENDPOINT = "recommendationengine.googleapis.com"
|
370
|
+
|
371
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
370
372
|
config_attr :credentials, nil do |value|
|
371
373
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
372
374
|
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
|
@@ -148,7 +148,7 @@ module Google
|
|
148
148
|
credentials = @config.credentials
|
149
149
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
150
150
|
# but only if the default endpoint does not have a region prefix.
|
151
|
-
enable_self_signed_jwt = @config.endpoint ==
|
151
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
152
152
|
!@config.endpoint.split(".").first.include?("-")
|
153
153
|
credentials ||= Credentials.default scope: @config.scope,
|
154
154
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -770,9 +770,9 @@ module Google
|
|
770
770
|
# * (`String`) The path to a service account key file in JSON format
|
771
771
|
# * (`Hash`) A service account key as a Hash
|
772
772
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
773
|
-
# (see the [googleauth docs](https://
|
773
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
774
774
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
775
|
-
# (see the [signet docs](https://
|
775
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
776
776
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
777
777
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
778
778
|
# * (`nil`) indicating no credentials
|
@@ -814,7 +814,9 @@ module Google
|
|
814
814
|
class Configuration
|
815
815
|
extend ::Gapic::Config
|
816
816
|
|
817
|
-
|
817
|
+
DEFAULT_ENDPOINT = "recommendationengine.googleapis.com"
|
818
|
+
|
819
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
818
820
|
config_attr :credentials, nil do |value|
|
819
821
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
820
822
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -620,9 +620,9 @@ module Google
|
|
620
620
|
# * (`String`) The path to a service account key file in JSON format
|
621
621
|
# * (`Hash`) A service account key as a Hash
|
622
622
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
623
|
-
# (see the [googleauth docs](https://
|
623
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
624
624
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
625
|
-
# (see the [signet docs](https://
|
625
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
626
626
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
627
627
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
628
628
|
# * (`nil`) indicating no credentials
|
@@ -664,7 +664,9 @@ module Google
|
|
664
664
|
class Configuration
|
665
665
|
extend ::Gapic::Config
|
666
666
|
|
667
|
-
|
667
|
+
DEFAULT_ENDPOINT = "recommendationengine.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
|
@@ -144,7 +144,7 @@ module Google
|
|
144
144
|
credentials = @config.credentials
|
145
145
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
146
146
|
# but only if the default endpoint does not have a region prefix.
|
147
|
-
enable_self_signed_jwt = @config.endpoint ==
|
147
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
148
148
|
!@config.endpoint.split(".").first.include?("-")
|
149
149
|
credentials ||= Credentials.default scope: @config.scope,
|
150
150
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -628,9 +628,9 @@ module Google
|
|
628
628
|
# * (`String`) The path to a service account key file in JSON format
|
629
629
|
# * (`Hash`) A service account key as a Hash
|
630
630
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
631
|
-
# (see the [googleauth docs](https://
|
631
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
632
632
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
633
|
-
# (see the [signet docs](https://
|
633
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
634
634
|
# * (`nil`) indicating no credentials
|
635
635
|
# @return [::Object]
|
636
636
|
# @!attribute [rw] scope
|
@@ -663,7 +663,9 @@ module Google
|
|
663
663
|
class Configuration
|
664
664
|
extend ::Gapic::Config
|
665
665
|
|
666
|
-
|
666
|
+
DEFAULT_ENDPOINT = "recommendationengine.googleapis.com"
|
667
|
+
|
668
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
667
669
|
config_attr :credentials, nil do |value|
|
668
670
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
669
671
|
allowed.any? { |klass| klass === value }
|
@@ -411,9 +411,9 @@ module Google
|
|
411
411
|
# * (`String`) The path to a service account key file in JSON format
|
412
412
|
# * (`Hash`) A service account key as a Hash
|
413
413
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
414
|
-
# (see the [googleauth docs](https://
|
414
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
415
415
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
416
|
-
# (see the [signet docs](https://
|
416
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
417
417
|
# * (`nil`) indicating no credentials
|
418
418
|
# @return [::Object]
|
419
419
|
# @!attribute [rw] scope
|
@@ -446,7 +446,9 @@ module Google
|
|
446
446
|
class Configuration
|
447
447
|
extend ::Gapic::Config
|
448
448
|
|
449
|
-
|
449
|
+
DEFAULT_ENDPOINT = "recommendationengine.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_list_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_purge_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_import_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
|