google-cloud-recommendation_engine-v1beta1 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/client.rb +7 -25
- data/lib/google/cloud/recommendation_engine/v1beta1/catalog_service/operations.rb +4 -4
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_api_key_registry/client.rb +4 -13
- data/lib/google/cloud/recommendation_engine/v1beta1/prediction_service/client.rb +2 -5
- data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/client.rb +6 -21
- data/lib/google/cloud/recommendation_engine/v1beta1/user_event_service/operations.rb +4 -4
- data/lib/google/cloud/recommendation_engine/v1beta1/version.rb +1 -1
- data/lib/google/cloud/recommendationengine/v1beta1/catalog_service_services_pb.rb +1 -1
- data/lib/google/cloud/recommendationengine/v1beta1/prediction_apikey_registry_service_services_pb.rb +1 -1
- data/lib/google/cloud/recommendationengine/v1beta1/prediction_service_services_pb.rb +1 -1
- data/lib/google/cloud/recommendationengine/v1beta1/user_event_service_services_pb.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/api/httpbody.rb +4 -3
- data/proto_docs/google/type/date.rb +14 -11
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18034d005b58dc867dce5358c4bb055465a61adcbd37719e9931c6e6b4718faf
|
4
|
+
data.tar.gz: a7ae76acd6694f49e07212ece8a375cb65eaebc7efa5df9e27f0ece6608ae692
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97cf9761beb2520124a17dc9247ce77a290d78aee04c0db4a5d6d4a61f8dd5bb1d07a206f7245ef7ed22e8a7d99f9d8ed8d3b3cf21ff2915f40af0a716d44097
|
7
|
+
data.tar.gz: e8f83f6da6ce636e9a34c24c8a47fb1d2996f821959c23953dd501f893d9af3b2ab18a90941a881ef8fafb51a5e0c0d627d29b8603e05f68fc4129d46908d6e5
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-recommendation_engine-v1beta1
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::RecommendationEngine::V1beta1::CatalogService::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `RECOMMENDATION_ENGINE_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `RECOMMENDATION_ENGINE_KEYFILE` - Path to JSON file, or JSON contents
|
71
|
+
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
|
+
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
|
+
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/recommendation_engine/v1beta1"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::RecommendationEngine::V1beta1::CatalogService::Client.
|
|
82
82
|
|
83
83
|
### Configuration
|
84
84
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
86
|
-
environment
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/recommendation_engine/v1beta1"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::RecommendationEngine::V1beta1::CatalogService::Client.
|
|
93
93
|
end
|
94
94
|
```
|
95
95
|
|
96
|
-
Or
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/recommendation_engine/v1beta1"
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
|
|
33
33
|
require "google/cloud/recommendation_engine/v1beta1"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::RecommendationEngine::V1beta1::CatalogService::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::RecommendationEngine::V1beta1::CreateCatalogItemRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.create_catalog_item request
|
38
38
|
```
|
39
39
|
|
@@ -67,50 +67,32 @@ module Google
|
|
67
67
|
|
68
68
|
default_config.rpcs.create_catalog_item.timeout = 600.0
|
69
69
|
default_config.rpcs.create_catalog_item.retry_policy = {
|
70
|
-
initial_delay: 0.1,
|
71
|
-
max_delay: 60.0,
|
72
|
-
multiplier: 1.3,
|
73
|
-
retry_codes: [14, 4]
|
70
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
74
71
|
}
|
75
72
|
|
76
73
|
default_config.rpcs.get_catalog_item.timeout = 600.0
|
77
74
|
default_config.rpcs.get_catalog_item.retry_policy = {
|
78
|
-
initial_delay: 0.1,
|
79
|
-
max_delay: 60.0,
|
80
|
-
multiplier: 1.3,
|
81
|
-
retry_codes: [14, 4]
|
75
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
82
76
|
}
|
83
77
|
|
84
78
|
default_config.rpcs.list_catalog_items.timeout = 600.0
|
85
79
|
default_config.rpcs.list_catalog_items.retry_policy = {
|
86
|
-
initial_delay: 0.1,
|
87
|
-
max_delay: 60.0,
|
88
|
-
multiplier: 1.3,
|
89
|
-
retry_codes: [14, 4]
|
80
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
90
81
|
}
|
91
82
|
|
92
83
|
default_config.rpcs.update_catalog_item.timeout = 600.0
|
93
84
|
default_config.rpcs.update_catalog_item.retry_policy = {
|
94
|
-
initial_delay: 0.1,
|
95
|
-
max_delay: 60.0,
|
96
|
-
multiplier: 1.3,
|
97
|
-
retry_codes: [14, 4]
|
85
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
98
86
|
}
|
99
87
|
|
100
88
|
default_config.rpcs.delete_catalog_item.timeout = 600.0
|
101
89
|
default_config.rpcs.delete_catalog_item.retry_policy = {
|
102
|
-
initial_delay: 0.1,
|
103
|
-
max_delay: 60.0,
|
104
|
-
multiplier: 1.3,
|
105
|
-
retry_codes: [14, 4]
|
90
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
106
91
|
}
|
107
92
|
|
108
93
|
default_config.rpcs.import_catalog_items.timeout = 600.0
|
109
94
|
default_config.rpcs.import_catalog_items.retry_policy = {
|
110
|
-
initial_delay: 0.1,
|
111
|
-
max_delay: 60.0,
|
112
|
-
multiplier: 1.3,
|
113
|
-
retry_codes: [14, 4]
|
95
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
114
96
|
}
|
115
97
|
|
116
98
|
default_config
|
@@ -181,7 +163,7 @@ module Google
|
|
181
163
|
!@config.endpoint.split(".").first.include?("-")
|
182
164
|
credentials ||= Credentials.default scope: @config.scope,
|
183
165
|
enable_self_signed_jwt: enable_self_signed_jwt
|
184
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
166
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
185
167
|
credentials = Credentials.new credentials, scope: @config.scope
|
186
168
|
end
|
187
169
|
@quota_project_id = @config.quota_project
|
@@ -82,7 +82,7 @@ module Google
|
|
82
82
|
# Create credentials
|
83
83
|
credentials = @config.credentials
|
84
84
|
credentials ||= Credentials.default scope: @config.scope
|
85
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
85
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
86
86
|
credentials = Credentials.new credentials, scope: @config.scope
|
87
87
|
end
|
88
88
|
@quota_project_id = @config.quota_project
|
@@ -396,9 +396,9 @@ module Google
|
|
396
396
|
end
|
397
397
|
|
398
398
|
##
|
399
|
-
# Waits
|
400
|
-
#
|
401
|
-
#
|
399
|
+
# Waits until the specified long-running operation is done or reaches at most
|
400
|
+
# a specified timeout, returning the latest state. If the operation is
|
401
|
+
# already done, the latest state is immediately returned. If the timeout
|
402
402
|
# specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
|
403
403
|
# timeout is used. If the server does not support this method, it returns
|
404
404
|
# `google.rpc.Code.UNIMPLEMENTED`.
|
@@ -71,26 +71,17 @@ module Google
|
|
71
71
|
|
72
72
|
default_config.rpcs.create_prediction_api_key_registration.timeout = 600.0
|
73
73
|
default_config.rpcs.create_prediction_api_key_registration.retry_policy = {
|
74
|
-
initial_delay: 0.1,
|
75
|
-
max_delay: 60.0,
|
76
|
-
multiplier: 1.3,
|
77
|
-
retry_codes: [14, 4]
|
74
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
78
75
|
}
|
79
76
|
|
80
77
|
default_config.rpcs.list_prediction_api_key_registrations.timeout = 600.0
|
81
78
|
default_config.rpcs.list_prediction_api_key_registrations.retry_policy = {
|
82
|
-
initial_delay: 0.1,
|
83
|
-
max_delay: 60.0,
|
84
|
-
multiplier: 1.3,
|
85
|
-
retry_codes: [14, 4]
|
79
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
86
80
|
}
|
87
81
|
|
88
82
|
default_config.rpcs.delete_prediction_api_key_registration.timeout = 600.0
|
89
83
|
default_config.rpcs.delete_prediction_api_key_registration.retry_policy = {
|
90
|
-
initial_delay: 0.1,
|
91
|
-
max_delay: 60.0,
|
92
|
-
multiplier: 1.3,
|
93
|
-
retry_codes: [14, 4]
|
84
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
94
85
|
}
|
95
86
|
|
96
87
|
default_config
|
@@ -161,7 +152,7 @@ module Google
|
|
161
152
|
!@config.endpoint.split(".").first.include?("-")
|
162
153
|
credentials ||= Credentials.default scope: @config.scope,
|
163
154
|
enable_self_signed_jwt: enable_self_signed_jwt
|
164
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
155
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
165
156
|
credentials = Credentials.new credentials, scope: @config.scope
|
166
157
|
end
|
167
158
|
@quota_project_id = @config.quota_project
|
@@ -67,10 +67,7 @@ module Google
|
|
67
67
|
|
68
68
|
default_config.rpcs.predict.timeout = 600.0
|
69
69
|
default_config.rpcs.predict.retry_policy = {
|
70
|
-
initial_delay: 0.1,
|
71
|
-
max_delay: 60.0,
|
72
|
-
multiplier: 1.3,
|
73
|
-
retry_codes: [14, 4]
|
70
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
74
71
|
}
|
75
72
|
|
76
73
|
default_config
|
@@ -141,7 +138,7 @@ module Google
|
|
141
138
|
!@config.endpoint.split(".").first.include?("-")
|
142
139
|
credentials ||= Credentials.default scope: @config.scope,
|
143
140
|
enable_self_signed_jwt: enable_self_signed_jwt
|
144
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
141
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
145
142
|
credentials = Credentials.new credentials, scope: @config.scope
|
146
143
|
end
|
147
144
|
@quota_project_id = @config.quota_project
|
@@ -67,42 +67,27 @@ module Google
|
|
67
67
|
|
68
68
|
default_config.rpcs.write_user_event.timeout = 600.0
|
69
69
|
default_config.rpcs.write_user_event.retry_policy = {
|
70
|
-
initial_delay: 0.1,
|
71
|
-
max_delay: 60.0,
|
72
|
-
multiplier: 1.3,
|
73
|
-
retry_codes: [14, 4]
|
70
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
74
71
|
}
|
75
72
|
|
76
73
|
default_config.rpcs.collect_user_event.timeout = 600.0
|
77
74
|
default_config.rpcs.collect_user_event.retry_policy = {
|
78
|
-
initial_delay: 0.1,
|
79
|
-
max_delay: 60.0,
|
80
|
-
multiplier: 1.3,
|
81
|
-
retry_codes: [14, 4]
|
75
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
82
76
|
}
|
83
77
|
|
84
78
|
default_config.rpcs.list_user_events.timeout = 600.0
|
85
79
|
default_config.rpcs.list_user_events.retry_policy = {
|
86
|
-
initial_delay: 0.1,
|
87
|
-
max_delay: 60.0,
|
88
|
-
multiplier: 1.3,
|
89
|
-
retry_codes: [14, 4]
|
80
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
90
81
|
}
|
91
82
|
|
92
83
|
default_config.rpcs.purge_user_events.timeout = 600.0
|
93
84
|
default_config.rpcs.purge_user_events.retry_policy = {
|
94
|
-
initial_delay: 0.1,
|
95
|
-
max_delay: 60.0,
|
96
|
-
multiplier: 1.3,
|
97
|
-
retry_codes: [14, 4]
|
85
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
98
86
|
}
|
99
87
|
|
100
88
|
default_config.rpcs.import_user_events.timeout = 600.0
|
101
89
|
default_config.rpcs.import_user_events.retry_policy = {
|
102
|
-
initial_delay: 0.1,
|
103
|
-
max_delay: 60.0,
|
104
|
-
multiplier: 1.3,
|
105
|
-
retry_codes: [14, 4]
|
90
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 4]
|
106
91
|
}
|
107
92
|
|
108
93
|
default_config
|
@@ -173,7 +158,7 @@ module Google
|
|
173
158
|
!@config.endpoint.split(".").first.include?("-")
|
174
159
|
credentials ||= Credentials.default scope: @config.scope,
|
175
160
|
enable_self_signed_jwt: enable_self_signed_jwt
|
176
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
161
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
177
162
|
credentials = Credentials.new credentials, scope: @config.scope
|
178
163
|
end
|
179
164
|
@quota_project_id = @config.quota_project
|
@@ -82,7 +82,7 @@ module Google
|
|
82
82
|
# Create credentials
|
83
83
|
credentials = @config.credentials
|
84
84
|
credentials ||= Credentials.default scope: @config.scope
|
85
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
85
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
86
86
|
credentials = Credentials.new credentials, scope: @config.scope
|
87
87
|
end
|
88
88
|
@quota_project_id = @config.quota_project
|
@@ -396,9 +396,9 @@ module Google
|
|
396
396
|
end
|
397
397
|
|
398
398
|
##
|
399
|
-
# Waits
|
400
|
-
#
|
401
|
-
#
|
399
|
+
# Waits until the specified long-running operation is done or reaches at most
|
400
|
+
# a specified timeout, returning the latest state. If the operation is
|
401
|
+
# already done, the latest state is immediately returned. If the timeout
|
402
402
|
# specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
|
403
403
|
# timeout is used. If the server does not support this method, it returns
|
404
404
|
# `google.rpc.Code.UNIMPLEMENTED`.
|
@@ -57,9 +57,15 @@ module Google
|
|
57
57
|
|
58
58
|
# Denotes that a (repeated) field is an unordered list.
|
59
59
|
# This indicates that the service may provide the elements of the list
|
60
|
-
# in any arbitrary
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
61
|
# provided. Additionally, the list's order may or may not be stable.
|
62
62
|
UNORDERED_LIST = 6
|
63
|
+
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
67
|
+
# non-empty value to expect.
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
63
69
|
end
|
64
70
|
end
|
65
71
|
end
|
@@ -43,7 +43,8 @@ module Google
|
|
43
43
|
#
|
44
44
|
# service ResourceService {
|
45
45
|
# rpc GetResource(GetResourceRequest) returns (google.api.HttpBody);
|
46
|
-
# rpc UpdateResource(google.api.HttpBody) returns
|
46
|
+
# rpc UpdateResource(google.api.HttpBody) returns
|
47
|
+
# (google.protobuf.Empty);
|
47
48
|
# }
|
48
49
|
#
|
49
50
|
# Example with streaming methods:
|
@@ -59,10 +60,10 @@ module Google
|
|
59
60
|
# handled, all other features will continue to work unchanged.
|
60
61
|
# @!attribute [rw] content_type
|
61
62
|
# @return [::String]
|
62
|
-
# The HTTP Content-Type
|
63
|
+
# The HTTP Content-Type header value specifying the content type of the body.
|
63
64
|
# @!attribute [rw] data
|
64
65
|
# @return [::String]
|
65
|
-
# HTTP body binary
|
66
|
+
# The HTTP request/response body as raw binary.
|
66
67
|
# @!attribute [rw] extensions
|
67
68
|
# @return [::Array<::Google::Protobuf::Any>]
|
68
69
|
# Application specific response metadata. Must be set in the first response
|
@@ -19,28 +19,31 @@
|
|
19
19
|
|
20
20
|
module Google
|
21
21
|
module Type
|
22
|
-
# Represents a whole or partial calendar date,
|
23
|
-
# and time zone are either specified elsewhere or are
|
24
|
-
# is relative to the
|
22
|
+
# Represents a whole or partial calendar date, such as a birthday. The time of
|
23
|
+
# day and time zone are either specified elsewhere or are insignificant. The
|
24
|
+
# date is relative to the Gregorian Calendar. This can represent one of the
|
25
|
+
# following:
|
25
26
|
#
|
26
|
-
# * A full date, with non-zero year, month and day values
|
27
|
-
# * A month and day value, with a zero year,
|
27
|
+
# * A full date, with non-zero year, month, and day values
|
28
|
+
# * A month and day value, with a zero year, such as an anniversary
|
28
29
|
# * A year on its own, with zero month and day values
|
29
|
-
# * A year and month value, with a zero day,
|
30
|
+
# * A year and month value, with a zero day, such as a credit card expiration
|
31
|
+
# date
|
30
32
|
#
|
31
|
-
# Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and
|
33
|
+
# Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and
|
34
|
+
# `google.protobuf.Timestamp`.
|
32
35
|
# @!attribute [rw] year
|
33
36
|
# @return [::Integer]
|
34
|
-
# Year of date. Must be from 1 to 9999, or 0
|
37
|
+
# Year of the date. Must be from 1 to 9999, or 0 to specify a date without
|
35
38
|
# a year.
|
36
39
|
# @!attribute [rw] month
|
37
40
|
# @return [::Integer]
|
38
|
-
# Month of year. Must be from 1 to 12, or 0
|
41
|
+
# Month of a year. Must be from 1 to 12, or 0 to specify a year without a
|
39
42
|
# month and day.
|
40
43
|
# @!attribute [rw] day
|
41
44
|
# @return [::Integer]
|
42
|
-
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0
|
43
|
-
#
|
45
|
+
# Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
|
46
|
+
# to specify a year by itself or a year and month where the day isn't
|
44
47
|
# significant.
|
45
48
|
class Date
|
46
49
|
include ::Google::Protobuf::MessageExts
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-recommendation_engine-v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|