aws-sdk-personalizeruntime 1.7.0 → 1.8.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 92bf7ed72ac1f135c6750522e8cf4bfeeb7982c9
4
- data.tar.gz: 8ff429bf698bb67be6ea927ebe92d06be44c9b8a
3
+ metadata.gz: 9864aaae063197d443446a5f06b64d9778289673
4
+ data.tar.gz: 2f7848a67da5bcb68cf8fb217de6600a18d21daa
5
5
  SHA512:
6
- metadata.gz: ee0afc6c8c2d1e4b8e7dabccd9f61867cfce8a32539f3156187ed14153d885b57c36d72728260f501b2c0663f8e447e2c4a70ff92c7387c51d5c5130f034d778
7
- data.tar.gz: fe6eb23d9143c55bb6491d95ae1a61f6586fa8a62a201947782d468c3474c645457163b0585fa1e9a64bd856992819c0b0406b0a07405fd32b8630d7a66e8211
6
+ metadata.gz: b15650fc1d35c93a8ec20c72f93bc07ced921d6c10bd7785514a98a0d21e68cf55e00353a75182ecf703177ebcfbc6c259917f83d5f02778486bebde9f12d403
7
+ data.tar.gz: c7f28dab138ee4e262c1658a79be733fe79da2fa16e2c94f613b45d195682d2398d8eb7d23d047a6fd54817da1f9638a5b4b7a521328edb89a576fdc8d187af6
@@ -45,6 +45,6 @@ require_relative 'aws-sdk-personalizeruntime/customizations'
45
45
  # @service
46
46
  module Aws::PersonalizeRuntime
47
47
 
48
- GEM_VERSION = '1.7.0'
48
+ GEM_VERSION = '1.8.0'
49
49
 
50
50
  end
@@ -32,11 +32,11 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:personalizeruntime)
32
32
  module Aws::PersonalizeRuntime
33
33
  # An API client for PersonalizeRuntime. To construct a client, you need to configure a `:region` and `:credentials`.
34
34
  #
35
- # client = Aws::PersonalizeRuntime::Client.new(
36
- # region: region_name,
37
- # credentials: credentials,
38
- # # ...
39
- # )
35
+ # client = Aws::PersonalizeRuntime::Client.new(
36
+ # region: region_name,
37
+ # credentials: credentials,
38
+ # # ...
39
+ # )
40
40
  #
41
41
  # For details on configuring region and credentials see
42
42
  # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
@@ -229,15 +229,19 @@ module Aws::PersonalizeRuntime
229
229
  #
230
230
  # @option options [String] :retry_mode ("legacy")
231
231
  # Specifies which retry algorithm to use. Values are:
232
- # * `legacy` - The pre-existing retry behavior. This is default value if
233
- # no retry mode is provided.
234
- # * `standard` - A standardized set of retry rules across the AWS SDKs.
235
- # This includes support for retry quotas, which limit the number of
236
- # unsuccessful retries a client can make.
237
- # * `adaptive` - An experimental retry mode that includes all the
238
- # functionality of `standard` mode along with automatic client side
239
- # throttling. This is a provisional mode that may change behavior
240
- # in the future.
232
+ #
233
+ # * `legacy` - The pre-existing retry behavior. This is default value if
234
+ # no retry mode is provided.
235
+ #
236
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
237
+ # This includes support for retry quotas, which limit the number of
238
+ # unsuccessful retries a client can make.
239
+ #
240
+ # * `adaptive` - An experimental retry mode that includes all the
241
+ # functionality of `standard` mode along with automatic client side
242
+ # throttling. This is a provisional mode that may change behavior
243
+ # in the future.
244
+ #
241
245
  #
242
246
  # @option options [String] :secret_access_key
243
247
  #
@@ -265,8 +269,7 @@ module Aws::PersonalizeRuntime
265
269
  #
266
270
  # @option options [Integer] :http_read_timeout (60) The default
267
271
  # 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}.
272
+ # safely be set per-request on the session.
270
273
  #
271
274
  # @option options [Float] :http_idle_timeout (5) The number of
272
275
  # seconds a connection is allowed to sit idle before it is
@@ -278,7 +281,7 @@ module Aws::PersonalizeRuntime
278
281
  # request body. This option has no effect unless the request has
279
282
  # "Expect" header set to "100-continue". Defaults to `nil` which
280
283
  # disables this behaviour. This value can safely be set per
281
- # request on the session yielded by {#session_for}.
284
+ # request on the session.
282
285
  #
283
286
  # @option options [Boolean] :http_wire_trace (false) When `true`,
284
287
  # HTTP debug output will be sent to the `:logger`.
@@ -331,8 +334,7 @@ module Aws::PersonalizeRuntime
331
334
  # The contextual metadata to use when getting recommendations.
332
335
  # Contextual metadata includes any interaction information that might be
333
336
  # relevant when getting a user's recommendations, such as the user's
334
- # current location or device type. For more information, see Contextual
335
- # Metadata.
337
+ # current location or device type.
336
338
  #
337
339
  # @return [Types::GetPersonalizedRankingResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
338
340
  #
@@ -353,6 +355,7 @@ module Aws::PersonalizeRuntime
353
355
  #
354
356
  # resp.personalized_ranking #=> Array
355
357
  # resp.personalized_ranking[0].item_id #=> String
358
+ # resp.personalized_ranking[0].score #=> Float
356
359
  #
357
360
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetPersonalizedRanking AWS API Documentation
358
361
  #
@@ -398,8 +401,7 @@ module Aws::PersonalizeRuntime
398
401
  # The contextual metadata to use when getting recommendations.
399
402
  # Contextual metadata includes any interaction information that might be
400
403
  # relevant when getting a user's recommendations, such as the user's
401
- # current location or device type. For more information, see Contextual
402
- # Metadata.
404
+ # current location or device type.
403
405
  #
404
406
  # @return [Types::GetRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
405
407
  #
@@ -421,6 +423,7 @@ module Aws::PersonalizeRuntime
421
423
  #
422
424
  # resp.item_list #=> Array
423
425
  # resp.item_list[0].item_id #=> String
426
+ # resp.item_list[0].score #=> Float
424
427
  #
425
428
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetRecommendations AWS API Documentation
426
429
  #
@@ -444,7 +447,7 @@ module Aws::PersonalizeRuntime
444
447
  params: params,
445
448
  config: config)
446
449
  context[:gem_name] = 'aws-sdk-personalizeruntime'
447
- context[:gem_version] = '1.7.0'
450
+ context[:gem_version] = '1.8.0'
448
451
  Seahorse::Client::Request.new(handlers, context)
449
452
  end
450
453
 
@@ -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)
@@ -59,6 +60,7 @@ module Aws::PersonalizeRuntime
59
60
  ItemList.member = Shapes::ShapeRef.new(shape: PredictedItem)
60
61
 
61
62
  PredictedItem.add_member(:item_id, Shapes::ShapeRef.new(shape: ItemID, location_name: "itemId"))
63
+ PredictedItem.add_member(:score, Shapes::ShapeRef.new(shape: Score, location_name: "score"))
62
64
  PredictedItem.struct_class = Types::PredictedItem
63
65
 
64
66
  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
- # This class provides a resource oriented interface for PersonalizeRuntime.
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. For more information, see
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
@@ -105,8 +104,7 @@ module Aws::PersonalizeRuntime
105
104
  # The contextual metadata to use when getting recommendations.
106
105
  # Contextual metadata includes any interaction information that might
107
106
  # be relevant when getting a user's recommendations, such as the
108
- # user's current location or device type. For more information, see
109
- # Contextual Metadata.
107
+ # user's current location or device type.
110
108
  # @return [Hash<String,String>]
111
109
  #
112
110
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetRecommendationsRequest AWS API Documentation
@@ -152,10 +150,17 @@ module Aws::PersonalizeRuntime
152
150
  # The recommended item ID.
153
151
  # @return [String]
154
152
  #
153
+ # @!attribute [rw] score
154
+ # A numeric representation of the model's certainty in the item's
155
+ # suitability. For more information on scoring logic, see
156
+ # how-scores-work.
157
+ # @return [Float]
158
+ #
155
159
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/PredictedItem AWS API Documentation
156
160
  #
157
161
  class PredictedItem < Struct.new(
158
- :item_id)
162
+ :item_id,
163
+ :score)
159
164
  include Aws::Structure
160
165
  end
161
166
 
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.7.0
4
+ version: 1.8.0
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-03-09 00:00:00.000000000 Z
11
+ date: 2020-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core