suggestgrid 0.1.15.pre.SNAPSHOT → 0.1.17.pre.SNAPSHOT

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/suggest_grid/api_helper.rb +2 -2
  4. data/lib/suggest_grid/configuration.rb +1 -1
  5. data/lib/suggest_grid/controllers/action_controller.rb +24 -18
  6. data/lib/suggest_grid/controllers/metadata_controller.rb +36 -32
  7. data/lib/suggest_grid/controllers/recommendation_controller.rb +12 -12
  8. data/lib/suggest_grid/controllers/similarity_controller.rb +12 -12
  9. data/lib/suggest_grid/controllers/type_controller.rb +12 -12
  10. data/lib/suggest_grid/exceptions/bulk_schema_error_response_exception.rb +37 -0
  11. data/lib/suggest_grid/exceptions/detailed_error_response_exception.rb +42 -0
  12. data/lib/suggest_grid/exceptions/error_response_exception.rb +37 -0
  13. data/lib/suggest_grid/exceptions/limit_exceeded_error_response_exception.rb +47 -0
  14. data/lib/suggest_grid/models/action.rb +15 -19
  15. data/lib/suggest_grid/models/base_model.rb +32 -0
  16. data/lib/suggest_grid/models/count_response.rb +12 -16
  17. data/lib/suggest_grid/models/delete_error_response.rb +80 -0
  18. data/lib/suggest_grid/models/delete_success_response.rb +62 -0
  19. data/lib/suggest_grid/models/get_recommended_items_body.rb +39 -32
  20. data/lib/suggest_grid/models/get_recommended_users_body.rb +39 -32
  21. data/lib/suggest_grid/models/get_similar_items_body.rb +27 -30
  22. data/lib/suggest_grid/models/get_similar_users_body.rb +27 -30
  23. data/lib/suggest_grid/models/get_type_response.rb +12 -16
  24. data/lib/suggest_grid/models/get_types_response.rb +12 -16
  25. data/lib/suggest_grid/models/items_response.rb +12 -16
  26. data/lib/suggest_grid/models/message_response.rb +11 -15
  27. data/lib/suggest_grid/models/metadata.rb +34 -39
  28. data/lib/suggest_grid/models/metadata_information_response.rb +11 -15
  29. data/lib/suggest_grid/models/schema_error_response.rb +13 -17
  30. data/lib/suggest_grid/models/type_request_body.rb +12 -15
  31. data/lib/suggest_grid/models/users_response.rb +12 -16
  32. data/lib/suggest_grid.rb +7 -2
  33. data/spec/swagger.yaml +235 -121
  34. metadata +10 -5
  35. data/lib/suggest_grid/models/bulk_schema_error_response.rb +0 -53
  36. data/lib/suggest_grid/models/error_response.rb +0 -48
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.1.15.pre.SNAPSHOT
4
+ version: 0.1.17.pre.SNAPSHOT
5
5
  platform: ruby
6
6
  authors:
7
7
  - SuggestGrid
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-07 00:00:00.000000000 Z
11
+ date: 2016-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit
@@ -52,7 +52,7 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.2.1
55
- description: SuggestGrid is an recommendation and personalization service.
55
+ description: SuggestGrid is a recommendation and personalization service.
56
56
  email: support@suggestgrid.com
57
57
  executables: []
58
58
  extensions: []
@@ -70,6 +70,10 @@ files:
70
70
  - lib/suggest_grid/controllers/similarity_controller.rb
71
71
  - lib/suggest_grid/controllers/type_controller.rb
72
72
  - lib/suggest_grid/exceptions/api_exception.rb
73
+ - lib/suggest_grid/exceptions/bulk_schema_error_response_exception.rb
74
+ - lib/suggest_grid/exceptions/detailed_error_response_exception.rb
75
+ - lib/suggest_grid/exceptions/error_response_exception.rb
76
+ - lib/suggest_grid/exceptions/limit_exceeded_error_response_exception.rb
73
77
  - lib/suggest_grid/http/http_call_back.rb
74
78
  - lib/suggest_grid/http/http_client.rb
75
79
  - lib/suggest_grid/http/http_context.rb
@@ -78,9 +82,10 @@ files:
78
82
  - lib/suggest_grid/http/http_response.rb
79
83
  - lib/suggest_grid/http/unirest_client.rb
80
84
  - lib/suggest_grid/models/action.rb
81
- - lib/suggest_grid/models/bulk_schema_error_response.rb
85
+ - lib/suggest_grid/models/base_model.rb
82
86
  - lib/suggest_grid/models/count_response.rb
83
- - lib/suggest_grid/models/error_response.rb
87
+ - lib/suggest_grid/models/delete_error_response.rb
88
+ - lib/suggest_grid/models/delete_success_response.rb
84
89
  - lib/suggest_grid/models/get_recommended_items_body.rb
85
90
  - lib/suggest_grid/models/get_recommended_users_body.rb
86
91
  - lib/suggest_grid/models/get_similar_items_body.rb
@@ -1,53 +0,0 @@
1
- # This file was automatically generated for SuggestGrid by APIMATIC v2.0 ( https://apimatic.io ).
2
-
3
- module SuggestGrid
4
- class BulkSchemaErrorResponse
5
- # Message of the response.
6
- # @return [String]
7
- attr_accessor :message
8
-
9
- # Message of the response.
10
- # @return [List of SchemaErrorResponse]
11
- attr_accessor :errors
12
-
13
- def initialize(message = nil,
14
- errors = nil)
15
- @message = message
16
- @errors = errors
17
-
18
- end
19
-
20
- # Creates JSON of the curent object
21
- def to_json(options = {})
22
- hash = key_map
23
- hash.to_json(options)
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
- # Parameter is an array, so we need to iterate through it
34
- errors = nil
35
- if hash["errors"] != nil
36
- errors = Array.new
37
- hash["errors"].each{|structure| errors << (SchemaErrorResponse.from_hash(structure) if structure)}
38
- end
39
- # Create object from extracted values
40
- BulkSchemaErrorResponse.new(message,
41
- errors)
42
- end
43
- end
44
-
45
- # Defines the key map for json serialization
46
- def key_map
47
- hash = {}
48
- hash['message'] = message
49
- hash['errors'] = errors ? errors.map(&:key_map) : nil
50
- hash
51
- end
52
- end
53
- end
@@ -1,48 +0,0 @@
1
- # This file was automatically generated for SuggestGrid by APIMATIC v2.0 ( https://apimatic.io ).
2
-
3
- module SuggestGrid
4
- class ErrorResponse
5
- # Message of the response.
6
- # @return [String]
7
- attr_accessor :message
8
-
9
- # Status code of the response. It is not 2XX.
10
- # @return [Integer]
11
- attr_accessor :status
12
-
13
- def initialize(message = nil,
14
- status = nil)
15
- @message = message
16
- @status = status
17
-
18
- end
19
-
20
- # Creates JSON of the curent object
21
- def to_json(options = {})
22
- hash = key_map
23
- hash.to_json(options)
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
- status = hash["status"]
34
- # Create object from extracted values
35
- ErrorResponse.new(message,
36
- status)
37
- end
38
- end
39
-
40
- # Defines the key map for json serialization
41
- def key_map
42
- hash = {}
43
- hash['message'] = message
44
- hash['status'] = status
45
- hash
46
- end
47
- end
48
- end