suggestgrid 0.1.32.rc2 → 0.2.0.rc4
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 +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
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
@rating = rating
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# Creates an instance of the object from a hash
|
|
23
|
+
def self.from_hash(hash)
|
|
24
|
+
return nil unless hash
|
|
25
|
+
|
|
26
|
+
# Extract variables from the hash
|
|
27
|
+
rating = hash['rating']
|
|
28
|
+
|
|
29
|
+
# Create object from extracted values
|
|
30
|
+
TypeRequestBody.new(rating)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
@count = count
|
|
32
|
+
@total_count = total_count
|
|
33
|
+
@users = users
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Creates an instance of the object from a hash
|
|
37
|
+
def self.from_hash(hash)
|
|
38
|
+
return nil unless hash
|
|
39
|
+
|
|
40
|
+
# Extract variables from the hash
|
|
41
|
+
count = hash['count']
|
|
42
|
+
total_count = hash['total_count']
|
|
43
|
+
# Parameter is an array, so we need to iterate through it
|
|
44
|
+
users = nil
|
|
45
|
+
if hash['users'] != nil
|
|
46
|
+
users = Array.new
|
|
47
|
+
hash['users'].each{|structure| users << (Metadata.from_hash(structure) if structure)}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Create object from extracted values
|
|
51
|
+
UsersResponse.new(count,
|
|
52
|
+
total_count,
|
|
53
|
+
users)
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
data/lib/suggestgrid.rb
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
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 'suggestgrid/api_helper.rb'
|
|
9
|
+
require_relative 'suggestgrid/suggestgrid_client.rb'
|
|
10
|
+
|
|
11
|
+
# Http
|
|
12
|
+
require_relative 'suggestgrid/http/http_call_back.rb'
|
|
13
|
+
require_relative 'suggestgrid/http/http_client.rb'
|
|
14
|
+
require_relative 'suggestgrid/http/http_method_enum.rb'
|
|
15
|
+
require_relative 'suggestgrid/http/http_request.rb'
|
|
16
|
+
require_relative 'suggestgrid/http/http_response.rb'
|
|
17
|
+
require_relative 'suggestgrid/http/http_context.rb'
|
|
18
|
+
require_relative 'suggestgrid/http/faraday_client.rb'
|
|
19
|
+
require_relative 'suggestgrid/http/auth/basic_auth.rb'
|
|
20
|
+
|
|
21
|
+
# Models
|
|
22
|
+
require_relative 'suggestgrid/models/base_model.rb'
|
|
23
|
+
require_relative 'suggestgrid/models/action.rb'
|
|
24
|
+
require_relative 'suggestgrid/models/metadata.rb'
|
|
25
|
+
require_relative 'suggestgrid/models/type_request_body.rb'
|
|
26
|
+
require_relative 'suggestgrid/models/get_recommended_users_body.rb'
|
|
27
|
+
require_relative 'suggestgrid/models/get_recommended_items_body.rb'
|
|
28
|
+
require_relative 'suggestgrid/models/get_similar_users_body.rb'
|
|
29
|
+
require_relative 'suggestgrid/models/get_similar_items_body.rb'
|
|
30
|
+
require_relative 'suggestgrid/models/message_response.rb'
|
|
31
|
+
require_relative 'suggestgrid/models/actions_response.rb'
|
|
32
|
+
require_relative 'suggestgrid/models/delete_success_response.rb'
|
|
33
|
+
require_relative 'suggestgrid/models/get_types_response.rb'
|
|
34
|
+
require_relative 'suggestgrid/models/get_type_response.rb'
|
|
35
|
+
require_relative 'suggestgrid/models/bulk_post_response.rb'
|
|
36
|
+
require_relative 'suggestgrid/models/bulk_post_error.rb'
|
|
37
|
+
require_relative 'suggestgrid/models/users_response.rb'
|
|
38
|
+
require_relative 'suggestgrid/models/items_response.rb'
|
|
39
|
+
|
|
40
|
+
# Exceptions
|
|
41
|
+
require_relative 'suggestgrid/exceptions/api_exception.rb'
|
|
42
|
+
require_relative 'suggestgrid/exceptions/error_response_error_exception.rb'
|
|
43
|
+
require_relative 'suggestgrid/exceptions/limit_exceeded_error_response_error_exception.rb'
|
|
44
|
+
require_relative 'suggestgrid/exceptions/delete_error_response_error_exception.rb'
|
|
45
|
+
require_relative 'suggestgrid/exceptions/detailed_error_response_error_exception.rb'
|
|
46
|
+
|
|
47
|
+
require_relative 'suggestgrid/configuration.rb'
|
|
48
|
+
|
|
49
|
+
# Controllers
|
|
50
|
+
require_relative 'suggestgrid/controllers/base_controller.rb'
|
|
51
|
+
require_relative 'suggestgrid/controllers/type_controller.rb'
|
|
52
|
+
require_relative 'suggestgrid/controllers/action_controller.rb'
|
|
53
|
+
require_relative 'suggestgrid/controllers/metadata_controller.rb'
|
|
54
|
+
require_relative 'suggestgrid/controllers/recommendation_controller.rb'
|
|
55
|
+
require_relative 'suggestgrid/controllers/similarity_controller.rb'
|
data/spec/swagger.yaml
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
swagger: '2.0'
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
info:
|
|
4
4
|
title: SuggestGrid
|
|
5
|
-
version: 0.
|
|
5
|
+
version: 0.2.0-rc.4
|
|
6
6
|
description: Personalization made Simple
|
|
7
7
|
x-codegen-settings:
|
|
8
8
|
appendContentHeaders: true
|
|
@@ -145,12 +145,7 @@ definitions:
|
|
|
145
145
|
type: string
|
|
146
146
|
description: |
|
|
147
147
|
The id of the metadata of a user or an item.
|
|
148
|
-
additionalProperties:
|
|
149
|
-
type:
|
|
150
|
-
- string
|
|
151
|
-
- integer
|
|
152
|
-
- number
|
|
153
|
-
- boolean
|
|
148
|
+
additionalProperties: true
|
|
154
149
|
required:
|
|
155
150
|
- id
|
|
156
151
|
# Request Bodies
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: suggestgrid
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0.rc4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- SuggestGrid
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-06-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: logging
|
|
@@ -100,48 +100,48 @@ extra_rdoc_files: []
|
|
|
100
100
|
files:
|
|
101
101
|
- LICENSE
|
|
102
102
|
- README.md
|
|
103
|
-
- lib/
|
|
104
|
-
- lib/
|
|
105
|
-
- lib/
|
|
106
|
-
- lib/
|
|
107
|
-
- lib/
|
|
108
|
-
- lib/
|
|
109
|
-
- lib/
|
|
110
|
-
- lib/
|
|
111
|
-
- lib/
|
|
112
|
-
- lib/
|
|
113
|
-
- lib/
|
|
114
|
-
- lib/
|
|
115
|
-
- lib/
|
|
116
|
-
- lib/
|
|
117
|
-
- lib/
|
|
118
|
-
- lib/
|
|
119
|
-
- lib/
|
|
120
|
-
- lib/
|
|
121
|
-
- lib/
|
|
122
|
-
- lib/
|
|
123
|
-
- lib/
|
|
124
|
-
- lib/
|
|
125
|
-
- lib/
|
|
126
|
-
- lib/
|
|
127
|
-
- lib/
|
|
128
|
-
- lib/
|
|
129
|
-
- lib/
|
|
130
|
-
- lib/
|
|
131
|
-
- lib/
|
|
132
|
-
- lib/
|
|
133
|
-
- lib/
|
|
134
|
-
- lib/
|
|
135
|
-
- lib/
|
|
136
|
-
- lib/
|
|
137
|
-
- lib/
|
|
138
|
-
- lib/
|
|
139
|
-
- lib/
|
|
140
|
-
- lib/
|
|
141
|
-
- lib/
|
|
142
|
-
- lib/
|
|
103
|
+
- lib/suggestgrid.rb
|
|
104
|
+
- lib/suggestgrid/api_helper.rb
|
|
105
|
+
- lib/suggestgrid/configuration.rb
|
|
106
|
+
- lib/suggestgrid/controllers/action_controller.rb
|
|
107
|
+
- lib/suggestgrid/controllers/base_controller.rb
|
|
108
|
+
- lib/suggestgrid/controllers/metadata_controller.rb
|
|
109
|
+
- lib/suggestgrid/controllers/recommendation_controller.rb
|
|
110
|
+
- lib/suggestgrid/controllers/similarity_controller.rb
|
|
111
|
+
- lib/suggestgrid/controllers/type_controller.rb
|
|
112
|
+
- lib/suggestgrid/exceptions/api_exception.rb
|
|
113
|
+
- lib/suggestgrid/exceptions/delete_error_response_error_exception.rb
|
|
114
|
+
- lib/suggestgrid/exceptions/detailed_error_response_error_exception.rb
|
|
115
|
+
- lib/suggestgrid/exceptions/error_response_error_exception.rb
|
|
116
|
+
- lib/suggestgrid/exceptions/limit_exceeded_error_response_error_exception.rb
|
|
117
|
+
- lib/suggestgrid/http/auth/basic_auth.rb
|
|
118
|
+
- lib/suggestgrid/http/faraday_client.rb
|
|
119
|
+
- lib/suggestgrid/http/http_call_back.rb
|
|
120
|
+
- lib/suggestgrid/http/http_client.rb
|
|
121
|
+
- lib/suggestgrid/http/http_context.rb
|
|
122
|
+
- lib/suggestgrid/http/http_method_enum.rb
|
|
123
|
+
- lib/suggestgrid/http/http_request.rb
|
|
124
|
+
- lib/suggestgrid/http/http_response.rb
|
|
125
|
+
- lib/suggestgrid/models/action.rb
|
|
126
|
+
- lib/suggestgrid/models/actions_response.rb
|
|
127
|
+
- lib/suggestgrid/models/base_model.rb
|
|
128
|
+
- lib/suggestgrid/models/bulk_post_error.rb
|
|
129
|
+
- lib/suggestgrid/models/bulk_post_response.rb
|
|
130
|
+
- lib/suggestgrid/models/delete_success_response.rb
|
|
131
|
+
- lib/suggestgrid/models/get_recommended_items_body.rb
|
|
132
|
+
- lib/suggestgrid/models/get_recommended_users_body.rb
|
|
133
|
+
- lib/suggestgrid/models/get_similar_items_body.rb
|
|
134
|
+
- lib/suggestgrid/models/get_similar_users_body.rb
|
|
135
|
+
- lib/suggestgrid/models/get_type_response.rb
|
|
136
|
+
- lib/suggestgrid/models/get_types_response.rb
|
|
137
|
+
- lib/suggestgrid/models/items_response.rb
|
|
138
|
+
- lib/suggestgrid/models/message_response.rb
|
|
139
|
+
- lib/suggestgrid/models/metadata.rb
|
|
140
|
+
- lib/suggestgrid/models/type_request_body.rb
|
|
141
|
+
- lib/suggestgrid/models/users_response.rb
|
|
142
|
+
- lib/suggestgrid/suggestgrid_client.rb
|
|
143
143
|
- spec/swagger.yaml
|
|
144
|
-
homepage:
|
|
144
|
+
homepage: https://suggestgrid.com
|
|
145
145
|
licenses:
|
|
146
146
|
- MIT
|
|
147
147
|
metadata: {}
|
|
@@ -161,8 +161,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
161
161
|
version: 1.3.1
|
|
162
162
|
requirements: []
|
|
163
163
|
rubyforge_project:
|
|
164
|
-
rubygems_version: 2.
|
|
164
|
+
rubygems_version: 2.6.11
|
|
165
165
|
signing_key:
|
|
166
166
|
specification_version: 4
|
|
167
|
-
summary:
|
|
167
|
+
summary: SuggestGrid Ruby SDK
|
|
168
168
|
test_files: []
|
|
@@ -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 ActionsResponse < BaseModel
|
|
5
|
-
# The number of actions in the response.
|
|
6
|
-
# @return [Long]
|
|
7
|
-
attr_accessor :count
|
|
8
|
-
|
|
9
|
-
# The total number of actions.
|
|
10
|
-
# @return [Long]
|
|
11
|
-
attr_accessor :total_count
|
|
12
|
-
|
|
13
|
-
# The total number of actions.
|
|
14
|
-
# @return [List of Action]
|
|
15
|
-
attr_accessor :actions
|
|
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["actions"] = "actions"
|
|
24
|
-
end
|
|
25
|
-
@hash
|
|
26
|
-
end
|
|
27
|
-
|
|
28
|
-
def initialize(count = nil,
|
|
29
|
-
total_count = nil,
|
|
30
|
-
actions = nil,
|
|
31
|
-
additional_properties = {})
|
|
32
|
-
@count = count
|
|
33
|
-
@total_count = total_count
|
|
34
|
-
@actions = actions
|
|
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
|
-
actions = nil
|
|
50
|
-
if hash["actions"] != nil
|
|
51
|
-
actions = Array.new
|
|
52
|
-
hash["actions"].each{|structure| actions << (Action.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
|
-
ActionsResponse.new(count,
|
|
60
|
-
total_count,
|
|
61
|
-
actions,
|
|
62
|
-
hash)
|
|
63
|
-
end
|
|
64
|
-
end
|
|
65
|
-
end
|
|
66
|
-
end
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
# This file was automatically generated for SuggestGrid by APIMATIC v2.0 ( https://apimatic.io ).
|
|
2
|
-
|
|
3
|
-
module SuggestGrid
|
|
4
|
-
class BulkPostError < BaseModel
|
|
5
|
-
# Message of the response.
|
|
6
|
-
# @return [String]
|
|
7
|
-
attr_accessor :message
|
|
8
|
-
|
|
9
|
-
# The cause of the error.
|
|
10
|
-
# @return [Object]
|
|
11
|
-
attr_accessor :value
|
|
12
|
-
|
|
13
|
-
# Programatic description of the error.
|
|
14
|
-
# @return [Object]
|
|
15
|
-
attr_accessor :error
|
|
16
|
-
|
|
17
|
-
# A mapping from model property names to API property names
|
|
18
|
-
def self.names
|
|
19
|
-
if @hash.nil?
|
|
20
|
-
@hash = {}
|
|
21
|
-
@hash["message"] = "message"
|
|
22
|
-
@hash["value"] = "value"
|
|
23
|
-
@hash["error"] = "error"
|
|
24
|
-
end
|
|
25
|
-
@hash
|
|
26
|
-
end
|
|
27
|
-
|
|
28
|
-
def initialize(message = nil,
|
|
29
|
-
value = nil,
|
|
30
|
-
error = nil,
|
|
31
|
-
additional_properties = {})
|
|
32
|
-
@message = message
|
|
33
|
-
@value = value
|
|
34
|
-
@error = error
|
|
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
|
-
message = hash["message"]
|
|
47
|
-
value = hash["value"]
|
|
48
|
-
error = hash["error"]
|
|
49
|
-
|
|
50
|
-
# Clean out expected properties from Hash
|
|
51
|
-
names.values.each {|k| hash.delete(k)}
|
|
52
|
-
|
|
53
|
-
# Create object from extracted values
|
|
54
|
-
BulkPostError.new(message,
|
|
55
|
-
value,
|
|
56
|
-
error,
|
|
57
|
-
hash)
|
|
58
|
-
end
|
|
59
|
-
end
|
|
60
|
-
end
|
|
61
|
-
end
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
# This file was automatically generated for SuggestGrid by APIMATIC v2.0 ( https://apimatic.io ).
|
|
2
|
-
|
|
3
|
-
module SuggestGrid
|
|
4
|
-
class BulkPostResponse < BaseModel
|
|
5
|
-
# Message of the response.
|
|
6
|
-
# @return [String]
|
|
7
|
-
attr_accessor :message
|
|
8
|
-
|
|
9
|
-
# Message of the response.
|
|
10
|
-
# @return [List of BulkPostError]
|
|
11
|
-
attr_accessor :errors
|
|
12
|
-
|
|
13
|
-
# A mapping from model property names to API property names
|
|
14
|
-
def self.names
|
|
15
|
-
if @hash.nil?
|
|
16
|
-
@hash = {}
|
|
17
|
-
@hash["message"] = "message"
|
|
18
|
-
@hash["errors"] = "errors"
|
|
19
|
-
end
|
|
20
|
-
@hash
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
def initialize(message = nil,
|
|
24
|
-
errors = nil,
|
|
25
|
-
additional_properties = {})
|
|
26
|
-
@message = message
|
|
27
|
-
@errors = errors
|
|
28
|
-
|
|
29
|
-
# Add additional model properties to the instance
|
|
30
|
-
additional_properties.each {|name, value| instance_variable_set("@#{name}", value)}
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
# Creates an instance of the object from a hash
|
|
34
|
-
def self.from_hash(hash)
|
|
35
|
-
if hash == nil
|
|
36
|
-
nil
|
|
37
|
-
else
|
|
38
|
-
# Extract variables from the hash
|
|
39
|
-
message = hash["message"]
|
|
40
|
-
# Parameter is an array, so we need to iterate through it
|
|
41
|
-
errors = nil
|
|
42
|
-
if hash["errors"] != nil
|
|
43
|
-
errors = Array.new
|
|
44
|
-
hash["errors"].each{|structure| errors << (BulkPostError.from_hash(structure) if structure)}
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
# Clean out expected properties from Hash
|
|
48
|
-
names.values.each {|k| hash.delete(k)}
|
|
49
|
-
|
|
50
|
-
# Create object from extracted values
|
|
51
|
-
BulkPostResponse.new(message,
|
|
52
|
-
errors,
|
|
53
|
-
hash)
|
|
54
|
-
end
|
|
55
|
-
end
|
|
56
|
-
end
|
|
57
|
-
end
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# This file was automatically generated for SuggestGrid by APIMATIC v2.0 ( https://apimatic.io ).
|
|
2
|
-
|
|
3
|
-
module SuggestGrid
|
|
4
|
-
class DeleteSuccessResponse < BaseModel
|
|
5
|
-
# Message of the response.
|
|
6
|
-
# @return [String]
|
|
7
|
-
attr_accessor :message
|
|
8
|
-
|
|
9
|
-
# The number of records found.
|
|
10
|
-
# @return [Long]
|
|
11
|
-
attr_accessor :found
|
|
12
|
-
|
|
13
|
-
# The number of records deleted.
|
|
14
|
-
# @return [Long]
|
|
15
|
-
attr_accessor :deleted
|
|
16
|
-
|
|
17
|
-
# The number of records failed to be deleted.
|
|
18
|
-
# @return [Long]
|
|
19
|
-
attr_accessor :failed
|
|
20
|
-
|
|
21
|
-
# A mapping from model property names to API property names
|
|
22
|
-
def self.names
|
|
23
|
-
if @hash.nil?
|
|
24
|
-
@hash = {}
|
|
25
|
-
@hash["message"] = "message"
|
|
26
|
-
@hash["found"] = "found"
|
|
27
|
-
@hash["deleted"] = "deleted"
|
|
28
|
-
@hash["failed"] = "failed"
|
|
29
|
-
end
|
|
30
|
-
@hash
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
def initialize(message = nil,
|
|
34
|
-
found = nil,
|
|
35
|
-
deleted = nil,
|
|
36
|
-
failed = nil,
|
|
37
|
-
additional_properties = {})
|
|
38
|
-
@message = message
|
|
39
|
-
@found = found
|
|
40
|
-
@deleted = deleted
|
|
41
|
-
@failed = failed
|
|
42
|
-
|
|
43
|
-
# Add additional model properties to the instance
|
|
44
|
-
additional_properties.each {|name, value| instance_variable_set("@#{name}", value)}
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
# Creates an instance of the object from a hash
|
|
48
|
-
def self.from_hash(hash)
|
|
49
|
-
if hash == nil
|
|
50
|
-
nil
|
|
51
|
-
else
|
|
52
|
-
# Extract variables from the hash
|
|
53
|
-
message = hash["message"]
|
|
54
|
-
found = hash["found"]
|
|
55
|
-
deleted = hash["deleted"]
|
|
56
|
-
failed = hash["failed"]
|
|
57
|
-
|
|
58
|
-
# Clean out expected properties from Hash
|
|
59
|
-
names.values.each {|k| hash.delete(k)}
|
|
60
|
-
|
|
61
|
-
# Create object from extracted values
|
|
62
|
-
DeleteSuccessResponse.new(message,
|
|
63
|
-
found,
|
|
64
|
-
deleted,
|
|
65
|
-
failed,
|
|
66
|
-
hash)
|
|
67
|
-
end
|
|
68
|
-
end
|
|
69
|
-
end
|
|
70
|
-
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 GetTypeResponse < BaseModel
|
|
5
|
-
# Rating type of the type that is either implicit or explicit.
|
|
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
|
-
GetTypeResponse.new(rating,
|
|
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 GetTypesResponse < BaseModel
|
|
5
|
-
# The list of type names
|
|
6
|
-
# @return [List of String]
|
|
7
|
-
attr_accessor :types
|
|
8
|
-
|
|
9
|
-
# A mapping from model property names to API property names
|
|
10
|
-
def self.names
|
|
11
|
-
if @hash.nil?
|
|
12
|
-
@hash = {}
|
|
13
|
-
@hash["types"] = "types"
|
|
14
|
-
end
|
|
15
|
-
@hash
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
def initialize(types = nil,
|
|
19
|
-
additional_properties = {})
|
|
20
|
-
@types = types
|
|
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
|
-
types = hash["types"]
|
|
33
|
-
|
|
34
|
-
# Clean out expected properties from Hash
|
|
35
|
-
names.values.each {|k| hash.delete(k)}
|
|
36
|
-
|
|
37
|
-
# Create object from extracted values
|
|
38
|
-
GetTypesResponse.new(types,
|
|
39
|
-
hash)
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
end
|