aws-sdk-personalizeruntime 1.7.0 → 1.12.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c7d47a14e18d38c1dd285a4b05f5549a6feb6f2cf2f6ab653db77f7ab10166fb
|
4
|
+
data.tar.gz: 326c1269af09bbe0a979e5b429f3a6f3ec9d828816c15c3bd7849c649cf570aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 994a366893b4362f2782b1c01da41a268ee779ceed8e9cff239c7f2b2e0cf41b91dc91c58332eb51e809f896affad42abfe9659e2f2edccb636743442733bbad
|
7
|
+
data.tar.gz: 7261c17253d12ebe891f8dcc13cedb4b0a6b873e759cdd763d6abb3f284a562179a5af6663afec1b84e1dc6ccee4b301372cbdb2037f47d076bdcb9d13fb3e5c
|
@@ -24,6 +24,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
|
24
24
|
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
25
25
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
26
26
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
27
|
+
require 'aws-sdk-core/plugins/http_checksum.rb'
|
27
28
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
28
29
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
29
30
|
|
@@ -32,11 +33,11 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:personalizeruntime)
|
|
32
33
|
module Aws::PersonalizeRuntime
|
33
34
|
# An API client for PersonalizeRuntime. To construct a client, you need to configure a `:region` and `:credentials`.
|
34
35
|
#
|
35
|
-
#
|
36
|
-
#
|
37
|
-
#
|
38
|
-
#
|
39
|
-
#
|
36
|
+
# client = Aws::PersonalizeRuntime::Client.new(
|
37
|
+
# region: region_name,
|
38
|
+
# credentials: credentials,
|
39
|
+
# # ...
|
40
|
+
# )
|
40
41
|
#
|
41
42
|
# For details on configuring region and credentials see
|
42
43
|
# the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
|
@@ -69,6 +70,7 @@ module Aws::PersonalizeRuntime
|
|
69
70
|
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
70
71
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
71
72
|
add_plugin(Aws::Plugins::TransferEncoding)
|
73
|
+
add_plugin(Aws::Plugins::HttpChecksum)
|
72
74
|
add_plugin(Aws::Plugins::SignatureV4)
|
73
75
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
74
76
|
|
@@ -105,7 +107,7 @@ module Aws::PersonalizeRuntime
|
|
105
107
|
# @option options [required, String] :region
|
106
108
|
# The AWS region to connect to. The configured `:region` is
|
107
109
|
# used to determine the service `:endpoint`. When not passed,
|
108
|
-
# a default `:region` is
|
110
|
+
# a default `:region` is searched for in the following locations:
|
109
111
|
#
|
110
112
|
# * `Aws.config[:region]`
|
111
113
|
# * `ENV['AWS_REGION']`
|
@@ -161,7 +163,7 @@ module Aws::PersonalizeRuntime
|
|
161
163
|
# @option options [String] :endpoint
|
162
164
|
# The client endpoint is normally constructed from the `:region`
|
163
165
|
# option. You should only configure an `:endpoint` when connecting
|
164
|
-
# to test endpoints. This should be
|
166
|
+
# to test or custom endpoints. This should be a valid HTTP(S) URI.
|
165
167
|
#
|
166
168
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
167
169
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -176,7 +178,7 @@ module Aws::PersonalizeRuntime
|
|
176
178
|
# requests fetching endpoints information. Defaults to 60 sec.
|
177
179
|
#
|
178
180
|
# @option options [Boolean] :endpoint_discovery (false)
|
179
|
-
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
181
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
180
182
|
#
|
181
183
|
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
182
184
|
# The log formatter.
|
@@ -229,15 +231,19 @@ module Aws::PersonalizeRuntime
|
|
229
231
|
#
|
230
232
|
# @option options [String] :retry_mode ("legacy")
|
231
233
|
# Specifies which retry algorithm to use. Values are:
|
232
|
-
#
|
233
|
-
#
|
234
|
-
#
|
235
|
-
#
|
236
|
-
#
|
237
|
-
#
|
238
|
-
#
|
239
|
-
#
|
240
|
-
#
|
234
|
+
#
|
235
|
+
# * `legacy` - The pre-existing retry behavior. This is default value if
|
236
|
+
# no retry mode is provided.
|
237
|
+
#
|
238
|
+
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
239
|
+
# This includes support for retry quotas, which limit the number of
|
240
|
+
# unsuccessful retries a client can make.
|
241
|
+
#
|
242
|
+
# * `adaptive` - An experimental retry mode that includes all the
|
243
|
+
# functionality of `standard` mode along with automatic client side
|
244
|
+
# throttling. This is a provisional mode that may change behavior
|
245
|
+
# in the future.
|
246
|
+
#
|
241
247
|
#
|
242
248
|
# @option options [String] :secret_access_key
|
243
249
|
#
|
@@ -265,8 +271,7 @@ module Aws::PersonalizeRuntime
|
|
265
271
|
#
|
266
272
|
# @option options [Integer] :http_read_timeout (60) The default
|
267
273
|
# number of seconds to wait for response data. This value can
|
268
|
-
# safely be set
|
269
|
-
# per-request on the session yielded by {#session_for}.
|
274
|
+
# safely be set per-request on the session.
|
270
275
|
#
|
271
276
|
# @option options [Float] :http_idle_timeout (5) The number of
|
272
277
|
# seconds a connection is allowed to sit idle before it is
|
@@ -278,7 +283,7 @@ module Aws::PersonalizeRuntime
|
|
278
283
|
# request body. This option has no effect unless the request has
|
279
284
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
280
285
|
# disables this behaviour. This value can safely be set per
|
281
|
-
# request on the session
|
286
|
+
# request on the session.
|
282
287
|
#
|
283
288
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
284
289
|
# HTTP debug output will be sent to the `:logger`.
|
@@ -331,8 +336,7 @@ module Aws::PersonalizeRuntime
|
|
331
336
|
# The contextual metadata to use when getting recommendations.
|
332
337
|
# Contextual metadata includes any interaction information that might be
|
333
338
|
# relevant when getting a user's recommendations, such as the user's
|
334
|
-
# current location or device type.
|
335
|
-
# Metadata.
|
339
|
+
# current location or device type.
|
336
340
|
#
|
337
341
|
# @return [Types::GetPersonalizedRankingResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
338
342
|
#
|
@@ -353,6 +357,7 @@ module Aws::PersonalizeRuntime
|
|
353
357
|
#
|
354
358
|
# resp.personalized_ranking #=> Array
|
355
359
|
# resp.personalized_ranking[0].item_id #=> String
|
360
|
+
# resp.personalized_ranking[0].score #=> Float
|
356
361
|
#
|
357
362
|
# @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetPersonalizedRanking AWS API Documentation
|
358
363
|
#
|
@@ -398,8 +403,11 @@ module Aws::PersonalizeRuntime
|
|
398
403
|
# The contextual metadata to use when getting recommendations.
|
399
404
|
# Contextual metadata includes any interaction information that might be
|
400
405
|
# relevant when getting a user's recommendations, such as the user's
|
401
|
-
# current location or device type.
|
402
|
-
#
|
406
|
+
# current location or device type.
|
407
|
+
#
|
408
|
+
# @option params [String] :filter_arn
|
409
|
+
# The ARN of the filter to apply to the returned recommendations. For
|
410
|
+
# more information, see Using Filters with Amazon Personalize.
|
403
411
|
#
|
404
412
|
# @return [Types::GetRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
405
413
|
#
|
@@ -415,12 +423,14 @@ module Aws::PersonalizeRuntime
|
|
415
423
|
# context: {
|
416
424
|
# "AttributeName" => "AttributeValue",
|
417
425
|
# },
|
426
|
+
# filter_arn: "Arn",
|
418
427
|
# })
|
419
428
|
#
|
420
429
|
# @example Response structure
|
421
430
|
#
|
422
431
|
# resp.item_list #=> Array
|
423
432
|
# resp.item_list[0].item_id #=> String
|
433
|
+
# resp.item_list[0].score #=> Float
|
424
434
|
#
|
425
435
|
# @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetRecommendations AWS API Documentation
|
426
436
|
#
|
@@ -444,7 +454,7 @@ module Aws::PersonalizeRuntime
|
|
444
454
|
params: params,
|
445
455
|
config: config)
|
446
456
|
context[:gem_name] = 'aws-sdk-personalizeruntime'
|
447
|
-
context[:gem_version] = '1.
|
457
|
+
context[:gem_version] = '1.12.1'
|
448
458
|
Seahorse::Client::Request.new(handlers, context)
|
449
459
|
end
|
450
460
|
|
@@ -27,6 +27,7 @@ module Aws::PersonalizeRuntime
|
|
27
27
|
NumResults = Shapes::IntegerShape.new(name: 'NumResults')
|
28
28
|
PredictedItem = Shapes::StructureShape.new(name: 'PredictedItem')
|
29
29
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
30
|
+
Score = Shapes::FloatShape.new(name: 'Score')
|
30
31
|
UserID = Shapes::StringShape.new(name: 'UserID')
|
31
32
|
|
32
33
|
Context.key = Shapes::ShapeRef.new(shape: AttributeName)
|
@@ -46,6 +47,7 @@ module Aws::PersonalizeRuntime
|
|
46
47
|
GetRecommendationsRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: UserID, location_name: "userId"))
|
47
48
|
GetRecommendationsRequest.add_member(:num_results, Shapes::ShapeRef.new(shape: NumResults, location_name: "numResults"))
|
48
49
|
GetRecommendationsRequest.add_member(:context, Shapes::ShapeRef.new(shape: Context, location_name: "context"))
|
50
|
+
GetRecommendationsRequest.add_member(:filter_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "filterArn"))
|
49
51
|
GetRecommendationsRequest.struct_class = Types::GetRecommendationsRequest
|
50
52
|
|
51
53
|
GetRecommendationsResponse.add_member(:item_list, Shapes::ShapeRef.new(shape: ItemList, location_name: "itemList"))
|
@@ -59,6 +61,7 @@ module Aws::PersonalizeRuntime
|
|
59
61
|
ItemList.member = Shapes::ShapeRef.new(shape: PredictedItem)
|
60
62
|
|
61
63
|
PredictedItem.add_member(:item_id, Shapes::ShapeRef.new(shape: ItemID, location_name: "itemId"))
|
64
|
+
PredictedItem.add_member(:score, Shapes::ShapeRef.new(shape: Score, location_name: "score"))
|
62
65
|
PredictedItem.struct_class = Types::PredictedItem
|
63
66
|
|
64
67
|
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
@@ -6,13 +6,7 @@
|
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
7
7
|
|
8
8
|
module Aws::PersonalizeRuntime
|
9
|
-
|
10
|
-
# To create a resource object:
|
11
|
-
# resource = Aws::PersonalizeRuntime::Resource.new(region: 'us-west-2')
|
12
|
-
# You can supply a client object with custom configuration that will be used for all resource operations.
|
13
|
-
# If you do not pass +:client+, a default client will be constructed.
|
14
|
-
# client = Aws::PersonalizeRuntime::Client.new(region: 'us-west-2')
|
15
|
-
# resource = Aws::PersonalizeRuntime::Resource.new(client: client)
|
9
|
+
|
16
10
|
class Resource
|
17
11
|
|
18
12
|
# @param options ({})
|
@@ -40,8 +40,7 @@ module Aws::PersonalizeRuntime
|
|
40
40
|
# The contextual metadata to use when getting recommendations.
|
41
41
|
# Contextual metadata includes any interaction information that might
|
42
42
|
# be relevant when getting a user's recommendations, such as the
|
43
|
-
# user's current location or device type.
|
44
|
-
# Contextual Metadata.
|
43
|
+
# user's current location or device type.
|
45
44
|
# @return [Hash<String,String>]
|
46
45
|
#
|
47
46
|
# @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetPersonalizedRankingRequest AWS API Documentation
|
@@ -77,6 +76,7 @@ module Aws::PersonalizeRuntime
|
|
77
76
|
# context: {
|
78
77
|
# "AttributeName" => "AttributeValue",
|
79
78
|
# },
|
79
|
+
# filter_arn: "Arn",
|
80
80
|
# }
|
81
81
|
#
|
82
82
|
# @!attribute [rw] campaign_arn
|
@@ -105,10 +105,14 @@ module Aws::PersonalizeRuntime
|
|
105
105
|
# The contextual metadata to use when getting recommendations.
|
106
106
|
# Contextual metadata includes any interaction information that might
|
107
107
|
# be relevant when getting a user's recommendations, such as the
|
108
|
-
# user's current location or device type.
|
109
|
-
# Contextual Metadata.
|
108
|
+
# user's current location or device type.
|
110
109
|
# @return [Hash<String,String>]
|
111
110
|
#
|
111
|
+
# @!attribute [rw] filter_arn
|
112
|
+
# The ARN of the filter to apply to the returned recommendations. For
|
113
|
+
# more information, see Using Filters with Amazon Personalize.
|
114
|
+
# @return [String]
|
115
|
+
#
|
112
116
|
# @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetRecommendationsRequest AWS API Documentation
|
113
117
|
#
|
114
118
|
class GetRecommendationsRequest < Struct.new(
|
@@ -116,7 +120,8 @@ module Aws::PersonalizeRuntime
|
|
116
120
|
:item_id,
|
117
121
|
:user_id,
|
118
122
|
:num_results,
|
119
|
-
:context
|
123
|
+
:context,
|
124
|
+
:filter_arn)
|
120
125
|
include Aws::Structure
|
121
126
|
end
|
122
127
|
|
@@ -152,10 +157,17 @@ module Aws::PersonalizeRuntime
|
|
152
157
|
# The recommended item ID.
|
153
158
|
# @return [String]
|
154
159
|
#
|
160
|
+
# @!attribute [rw] score
|
161
|
+
# A numeric representation of the model's certainty that the item
|
162
|
+
# will be the next user selection. For more information on scoring
|
163
|
+
# logic, see how-scores-work.
|
164
|
+
# @return [Float]
|
165
|
+
#
|
155
166
|
# @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/PredictedItem AWS API Documentation
|
156
167
|
#
|
157
168
|
class PredictedItem < Struct.new(
|
158
|
-
:item_id
|
169
|
+
:item_id,
|
170
|
+
:score)
|
159
171
|
include Aws::Structure
|
160
172
|
end
|
161
173
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-personalizeruntime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.99.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.99.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
81
|
version: '0'
|
82
82
|
requirements: []
|
83
83
|
rubyforge_project:
|
84
|
-
rubygems_version: 2.
|
84
|
+
rubygems_version: 2.7.6.2
|
85
85
|
signing_key:
|
86
86
|
specification_version: 4
|
87
87
|
summary: AWS SDK for Ruby - Amazon Personalize Runtime
|