suggestgrid 0.1.32.rc2 → 0.2.0.rc4
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/{suggest_grid → suggestgrid}/api_helper.rb +80 -56
- data/lib/{suggest_grid → suggestgrid}/configuration.rb +1 -2
- data/lib/{suggest_grid → suggestgrid}/controllers/action_controller.rb +17 -17
- data/lib/{suggest_grid → suggestgrid}/controllers/base_controller.rb +5 -5
- data/lib/{suggest_grid → suggestgrid}/controllers/metadata_controller.rb +22 -22
- data/lib/{suggest_grid → suggestgrid}/controllers/recommendation_controller.rb +8 -8
- data/lib/{suggest_grid → suggestgrid}/controllers/similarity_controller.rb +8 -8
- data/lib/{suggest_grid → suggestgrid}/controllers/type_controller.rb +10 -10
- data/lib/{suggest_grid/exceptions/delete_error_response_exception.rb → suggestgrid/exceptions/delete_error_response_error_exception.rb} +9 -9
- data/lib/{suggest_grid/exceptions/detailed_error_response_exception.rb → suggestgrid/exceptions/detailed_error_response_error_exception.rb} +7 -7
- data/lib/{suggest_grid/exceptions/error_response_exception.rb → suggestgrid/exceptions/error_response_error_exception.rb} +6 -6
- data/lib/{suggest_grid/exceptions/limit_exceeded_error_response_exception.rb → suggestgrid/exceptions/limit_exceeded_error_response_error_exception.rb} +8 -8
- data/lib/{suggest_grid → suggestgrid}/http/faraday_client.rb +5 -7
- data/lib/{suggest_grid → suggestgrid}/http/http_call_back.rb +4 -4
- data/lib/{suggest_grid → suggestgrid}/http/http_client.rb +3 -3
- data/lib/{suggest_grid → suggestgrid}/http/http_context.rb +1 -1
- data/lib/{suggest_grid → suggestgrid}/http/http_method_enum.rb +1 -1
- data/lib/{suggest_grid → suggestgrid}/http/http_request.rb +4 -4
- data/lib/{suggest_grid → suggestgrid}/http/http_response.rb +2 -2
- data/lib/{suggest_grid → suggestgrid}/models/action.rb +22 -32
- data/lib/suggestgrid/models/actions_response.rb +56 -0
- data/lib/{suggest_grid → suggestgrid}/models/base_model.rb +0 -17
- data/lib/suggestgrid/models/bulk_post_error.rb +51 -0
- data/lib/suggestgrid/models/bulk_post_response.rb +47 -0
- data/lib/suggestgrid/models/delete_success_response.rb +60 -0
- data/lib/{suggest_grid → suggestgrid}/models/get_recommended_items_body.rb +42 -52
- data/lib/{suggest_grid → suggestgrid}/models/get_recommended_users_body.rb +42 -52
- data/lib/{suggest_grid → suggestgrid}/models/get_similar_items_body.rb +34 -44
- data/lib/{suggest_grid → suggestgrid}/models/get_similar_users_body.rb +34 -44
- data/lib/suggestgrid/models/get_type_response.rb +33 -0
- data/lib/suggestgrid/models/get_types_response.rb +33 -0
- data/lib/suggestgrid/models/items_response.rb +56 -0
- data/lib/suggestgrid/models/message_response.rb +33 -0
- data/lib/suggestgrid/models/metadata.rb +49 -0
- data/lib/suggestgrid/models/type_request_body.rb +33 -0
- data/lib/suggestgrid/models/users_response.rb +56 -0
- data/lib/suggestgrid.rb +55 -0
- data/spec/swagger.yaml +3 -8
- metadata +45 -45
- data/lib/suggest_grid/models/actions_response.rb +0 -66
- data/lib/suggest_grid/models/bulk_post_error.rb +0 -61
- data/lib/suggest_grid/models/bulk_post_response.rb +0 -57
- data/lib/suggest_grid/models/delete_success_response.rb +0 -70
- data/lib/suggest_grid/models/get_type_response.rb +0 -43
- data/lib/suggest_grid/models/get_types_response.rb +0 -43
- data/lib/suggest_grid/models/items_response.rb +0 -66
- data/lib/suggest_grid/models/message_response.rb +0 -43
- data/lib/suggest_grid/models/metadata.rb +0 -43
- data/lib/suggest_grid/models/type_request_body.rb +0 -43
- data/lib/suggest_grid/models/users_response.rb +0 -66
- data/lib/suggest_grid.rb +0 -55
- /data/lib/{suggest_grid → suggestgrid}/exceptions/api_exception.rb +0 -0
- /data/lib/{suggest_grid → suggestgrid}/http/auth/basic_auth.rb +0 -0
- /data/lib/{suggest_grid/suggest_grid_client.rb → suggestgrid/suggestgrid_client.rb} +0 -0
@@ -1,66 +0,0 @@
|
|
1
|
-
# This file was automatically generated for SuggestGrid by APIMATIC v2.0 ( https://apimatic.io ).
|
2
|
-
|
3
|
-
module SuggestGrid
|
4
|
-
class ItemsResponse < BaseModel
|
5
|
-
# The number of items in the response.
|
6
|
-
# @return [Long]
|
7
|
-
attr_accessor :count
|
8
|
-
|
9
|
-
# The total number of items available.
|
10
|
-
# @return [Long]
|
11
|
-
attr_accessor :total_count
|
12
|
-
|
13
|
-
# The total number of items available.
|
14
|
-
# @return [List of Metadata]
|
15
|
-
attr_accessor :items
|
16
|
-
|
17
|
-
# A mapping from model property names to API property names
|
18
|
-
def self.names
|
19
|
-
if @hash.nil?
|
20
|
-
@hash = {}
|
21
|
-
@hash["count"] = "count"
|
22
|
-
@hash["total_count"] = "total_count"
|
23
|
-
@hash["items"] = "items"
|
24
|
-
end
|
25
|
-
@hash
|
26
|
-
end
|
27
|
-
|
28
|
-
def initialize(count = nil,
|
29
|
-
total_count = nil,
|
30
|
-
items = nil,
|
31
|
-
additional_properties = {})
|
32
|
-
@count = count
|
33
|
-
@total_count = total_count
|
34
|
-
@items = items
|
35
|
-
|
36
|
-
# Add additional model properties to the instance
|
37
|
-
additional_properties.each {|name, value| instance_variable_set("@#{name}", value)}
|
38
|
-
end
|
39
|
-
|
40
|
-
# Creates an instance of the object from a hash
|
41
|
-
def self.from_hash(hash)
|
42
|
-
if hash == nil
|
43
|
-
nil
|
44
|
-
else
|
45
|
-
# Extract variables from the hash
|
46
|
-
count = hash["count"]
|
47
|
-
total_count = hash["total_count"]
|
48
|
-
# Parameter is an array, so we need to iterate through it
|
49
|
-
items = nil
|
50
|
-
if hash["items"] != nil
|
51
|
-
items = Array.new
|
52
|
-
hash["items"].each{|structure| items << (Metadata.from_hash(structure) if structure)}
|
53
|
-
end
|
54
|
-
|
55
|
-
# Clean out expected properties from Hash
|
56
|
-
names.values.each {|k| hash.delete(k)}
|
57
|
-
|
58
|
-
# Create object from extracted values
|
59
|
-
ItemsResponse.new(count,
|
60
|
-
total_count,
|
61
|
-
items,
|
62
|
-
hash)
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
66
|
-
end
|
@@ -1,43 +0,0 @@
|
|
1
|
-
# This file was automatically generated for SuggestGrid by APIMATIC v2.0 ( https://apimatic.io ).
|
2
|
-
|
3
|
-
module SuggestGrid
|
4
|
-
class MessageResponse < BaseModel
|
5
|
-
# Message of the response.
|
6
|
-
# @return [String]
|
7
|
-
attr_accessor :message
|
8
|
-
|
9
|
-
# A mapping from model property names to API property names
|
10
|
-
def self.names
|
11
|
-
if @hash.nil?
|
12
|
-
@hash = {}
|
13
|
-
@hash["message"] = "message"
|
14
|
-
end
|
15
|
-
@hash
|
16
|
-
end
|
17
|
-
|
18
|
-
def initialize(message = nil,
|
19
|
-
additional_properties = {})
|
20
|
-
@message = message
|
21
|
-
|
22
|
-
# Add additional model properties to the instance
|
23
|
-
additional_properties.each {|name, value| instance_variable_set("@#{name}", value)}
|
24
|
-
end
|
25
|
-
|
26
|
-
# Creates an instance of the object from a hash
|
27
|
-
def self.from_hash(hash)
|
28
|
-
if hash == nil
|
29
|
-
nil
|
30
|
-
else
|
31
|
-
# Extract variables from the hash
|
32
|
-
message = hash["message"]
|
33
|
-
|
34
|
-
# Clean out expected properties from Hash
|
35
|
-
names.values.each {|k| hash.delete(k)}
|
36
|
-
|
37
|
-
# Create object from extracted values
|
38
|
-
MessageResponse.new(message,
|
39
|
-
hash)
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
@@ -1,43 +0,0 @@
|
|
1
|
-
# This file was automatically generated for SuggestGrid by APIMATIC v2.0 ( https://apimatic.io ).
|
2
|
-
|
3
|
-
module SuggestGrid
|
4
|
-
class Metadata < BaseModel
|
5
|
-
# The id of the metadata of a user or an item.
|
6
|
-
# @return [String]
|
7
|
-
attr_accessor :id
|
8
|
-
|
9
|
-
# A mapping from model property names to API property names
|
10
|
-
def self.names
|
11
|
-
if @hash.nil?
|
12
|
-
@hash = {}
|
13
|
-
@hash["id"] = "id"
|
14
|
-
end
|
15
|
-
@hash
|
16
|
-
end
|
17
|
-
|
18
|
-
def initialize(id = nil,
|
19
|
-
additional_properties = {})
|
20
|
-
@id = id
|
21
|
-
|
22
|
-
# Add additional model properties to the instance
|
23
|
-
additional_properties.each {|name, value| instance_variable_set("@#{name}", value)}
|
24
|
-
end
|
25
|
-
|
26
|
-
# Creates an instance of the object from a hash
|
27
|
-
def self.from_hash(hash)
|
28
|
-
if hash == nil
|
29
|
-
nil
|
30
|
-
else
|
31
|
-
# Extract variables from the hash
|
32
|
-
id = hash["id"]
|
33
|
-
|
34
|
-
# Clean out expected properties from Hash
|
35
|
-
names.values.each {|k| hash.delete(k)}
|
36
|
-
|
37
|
-
# Create object from extracted values
|
38
|
-
Metadata.new(id,
|
39
|
-
hash)
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
@@ -1,43 +0,0 @@
|
|
1
|
-
# This file was automatically generated for SuggestGrid by APIMATIC v2.0 ( https://apimatic.io ).
|
2
|
-
|
3
|
-
module SuggestGrid
|
4
|
-
class TypeRequestBody < BaseModel
|
5
|
-
# The rating type of the type. Could be "explicit" or "implicit", where "implicit" is the default.
|
6
|
-
# @return [String]
|
7
|
-
attr_accessor :rating
|
8
|
-
|
9
|
-
# A mapping from model property names to API property names
|
10
|
-
def self.names
|
11
|
-
if @hash.nil?
|
12
|
-
@hash = {}
|
13
|
-
@hash["rating"] = "rating"
|
14
|
-
end
|
15
|
-
@hash
|
16
|
-
end
|
17
|
-
|
18
|
-
def initialize(rating = nil,
|
19
|
-
additional_properties = {})
|
20
|
-
@rating = rating
|
21
|
-
|
22
|
-
# Add additional model properties to the instance
|
23
|
-
additional_properties.each {|name, value| instance_variable_set("@#{name}", value)}
|
24
|
-
end
|
25
|
-
|
26
|
-
# Creates an instance of the object from a hash
|
27
|
-
def self.from_hash(hash)
|
28
|
-
if hash == nil
|
29
|
-
nil
|
30
|
-
else
|
31
|
-
# Extract variables from the hash
|
32
|
-
rating = hash["rating"]
|
33
|
-
|
34
|
-
# Clean out expected properties from Hash
|
35
|
-
names.values.each {|k| hash.delete(k)}
|
36
|
-
|
37
|
-
# Create object from extracted values
|
38
|
-
TypeRequestBody.new(rating,
|
39
|
-
hash)
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
@@ -1,66 +0,0 @@
|
|
1
|
-
# This file was automatically generated for SuggestGrid by APIMATIC v2.0 ( https://apimatic.io ).
|
2
|
-
|
3
|
-
module SuggestGrid
|
4
|
-
class UsersResponse < BaseModel
|
5
|
-
# The number of users in the response.
|
6
|
-
# @return [Long]
|
7
|
-
attr_accessor :count
|
8
|
-
|
9
|
-
# The total number of users available.
|
10
|
-
# @return [Long]
|
11
|
-
attr_accessor :total_count
|
12
|
-
|
13
|
-
# The total number of users available.
|
14
|
-
# @return [List of Metadata]
|
15
|
-
attr_accessor :users
|
16
|
-
|
17
|
-
# A mapping from model property names to API property names
|
18
|
-
def self.names
|
19
|
-
if @hash.nil?
|
20
|
-
@hash = {}
|
21
|
-
@hash["count"] = "count"
|
22
|
-
@hash["total_count"] = "total_count"
|
23
|
-
@hash["users"] = "users"
|
24
|
-
end
|
25
|
-
@hash
|
26
|
-
end
|
27
|
-
|
28
|
-
def initialize(count = nil,
|
29
|
-
total_count = nil,
|
30
|
-
users = nil,
|
31
|
-
additional_properties = {})
|
32
|
-
@count = count
|
33
|
-
@total_count = total_count
|
34
|
-
@users = users
|
35
|
-
|
36
|
-
# Add additional model properties to the instance
|
37
|
-
additional_properties.each {|name, value| instance_variable_set("@#{name}", value)}
|
38
|
-
end
|
39
|
-
|
40
|
-
# Creates an instance of the object from a hash
|
41
|
-
def self.from_hash(hash)
|
42
|
-
if hash == nil
|
43
|
-
nil
|
44
|
-
else
|
45
|
-
# Extract variables from the hash
|
46
|
-
count = hash["count"]
|
47
|
-
total_count = hash["total_count"]
|
48
|
-
# Parameter is an array, so we need to iterate through it
|
49
|
-
users = nil
|
50
|
-
if hash["users"] != nil
|
51
|
-
users = Array.new
|
52
|
-
hash["users"].each{|structure| users << (Metadata.from_hash(structure) if structure)}
|
53
|
-
end
|
54
|
-
|
55
|
-
# Clean out expected properties from Hash
|
56
|
-
names.values.each {|k| hash.delete(k)}
|
57
|
-
|
58
|
-
# Create object from extracted values
|
59
|
-
UsersResponse.new(count,
|
60
|
-
total_count,
|
61
|
-
users,
|
62
|
-
hash)
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
66
|
-
end
|
data/lib/suggest_grid.rb
DELETED
@@ -1,55 +0,0 @@
|
|
1
|
-
# This file was automatically generated for SuggestGrid by APIMATIC v2.0 ( https://apimatic.io ).
|
2
|
-
require 'date'
|
3
|
-
require 'json'
|
4
|
-
require 'faraday'
|
5
|
-
require 'certifi'
|
6
|
-
require 'logging'
|
7
|
-
|
8
|
-
require_relative 'suggest_grid/api_helper.rb'
|
9
|
-
require_relative 'suggest_grid/suggest_grid_client.rb'
|
10
|
-
|
11
|
-
# Http
|
12
|
-
require_relative 'suggest_grid/http/http_call_back.rb'
|
13
|
-
require_relative 'suggest_grid/http/http_client.rb'
|
14
|
-
require_relative 'suggest_grid/http/http_method_enum.rb'
|
15
|
-
require_relative 'suggest_grid/http/http_request.rb'
|
16
|
-
require_relative 'suggest_grid/http/http_response.rb'
|
17
|
-
require_relative 'suggest_grid/http/http_context.rb'
|
18
|
-
require_relative 'suggest_grid/http/faraday_client.rb'
|
19
|
-
require_relative 'suggest_grid/http/auth/basic_auth.rb'
|
20
|
-
|
21
|
-
# Models
|
22
|
-
require_relative 'suggest_grid/models/base_model.rb'
|
23
|
-
require_relative 'suggest_grid/models/action.rb'
|
24
|
-
require_relative 'suggest_grid/models/metadata.rb'
|
25
|
-
require_relative 'suggest_grid/models/type_request_body.rb'
|
26
|
-
require_relative 'suggest_grid/models/get_recommended_users_body.rb'
|
27
|
-
require_relative 'suggest_grid/models/get_recommended_items_body.rb'
|
28
|
-
require_relative 'suggest_grid/models/get_similar_users_body.rb'
|
29
|
-
require_relative 'suggest_grid/models/get_similar_items_body.rb'
|
30
|
-
require_relative 'suggest_grid/models/message_response.rb'
|
31
|
-
require_relative 'suggest_grid/models/actions_response.rb'
|
32
|
-
require_relative 'suggest_grid/models/delete_success_response.rb'
|
33
|
-
require_relative 'suggest_grid/models/get_types_response.rb'
|
34
|
-
require_relative 'suggest_grid/models/get_type_response.rb'
|
35
|
-
require_relative 'suggest_grid/models/bulk_post_response.rb'
|
36
|
-
require_relative 'suggest_grid/models/bulk_post_error.rb'
|
37
|
-
require_relative 'suggest_grid/models/users_response.rb'
|
38
|
-
require_relative 'suggest_grid/models/items_response.rb'
|
39
|
-
|
40
|
-
# Exceptions
|
41
|
-
require_relative 'suggest_grid/exceptions/api_exception.rb'
|
42
|
-
require_relative 'suggest_grid/exceptions/error_response_exception.rb'
|
43
|
-
require_relative 'suggest_grid/exceptions/detailed_error_response_exception.rb'
|
44
|
-
require_relative 'suggest_grid/exceptions/limit_exceeded_error_response_exception.rb'
|
45
|
-
require_relative 'suggest_grid/exceptions/delete_error_response_exception.rb'
|
46
|
-
|
47
|
-
require_relative 'suggest_grid/configuration.rb'
|
48
|
-
|
49
|
-
# Controllers
|
50
|
-
require_relative 'suggest_grid/controllers/base_controller.rb'
|
51
|
-
require_relative 'suggest_grid/controllers/type_controller.rb'
|
52
|
-
require_relative 'suggest_grid/controllers/action_controller.rb'
|
53
|
-
require_relative 'suggest_grid/controllers/metadata_controller.rb'
|
54
|
-
require_relative 'suggest_grid/controllers/recommendation_controller.rb'
|
55
|
-
require_relative 'suggest_grid/controllers/similarity_controller.rb'
|
File without changes
|
File without changes
|
File without changes
|