moonlogs-ruby 0.6.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +143 -141
  3. data/docs/ApiTokenRequest.md +7 -0
  4. data/docs/ApiTokenResponse.md +10 -0
  5. data/docs/DefaultApi.md +274 -274
  6. data/docs/InlineResponse20010.md +1 -1
  7. data/docs/InlineResponse20012.md +1 -1
  8. data/docs/InlineResponse20013.md +1 -1
  9. data/docs/InlineResponse2009.md +1 -1
  10. data/docs/SchemaRequest.md +1 -0
  11. data/docs/TagRequest.md +7 -0
  12. data/docs/TagResponse.md +8 -0
  13. data/lib/moonlogs-ruby/api/default_api.rb +382 -382
  14. data/lib/moonlogs-ruby/api_client.rb +1 -1
  15. data/lib/moonlogs-ruby/api_error.rb +1 -1
  16. data/lib/moonlogs-ruby/configuration.rb +1 -1
  17. data/lib/moonlogs-ruby/models/api_token_request.rb +211 -0
  18. data/lib/moonlogs-ruby/models/api_token_response.rb +253 -0
  19. data/lib/moonlogs-ruby/models/credentials.rb +1 -1
  20. data/lib/moonlogs-ruby/models/inline_response_200.rb +1 -1
  21. data/lib/moonlogs-ruby/models/inline_response_200_1.rb +1 -1
  22. data/lib/moonlogs-ruby/models/inline_response_200_10.rb +1 -1
  23. data/lib/moonlogs-ruby/models/inline_response_200_11.rb +1 -1
  24. data/lib/moonlogs-ruby/models/inline_response_200_12.rb +1 -1
  25. data/lib/moonlogs-ruby/models/inline_response_200_13.rb +1 -1
  26. data/lib/moonlogs-ruby/models/inline_response_200_2.rb +1 -1
  27. data/lib/moonlogs-ruby/models/inline_response_200_3.rb +1 -1
  28. data/lib/moonlogs-ruby/models/inline_response_200_4.rb +1 -1
  29. data/lib/moonlogs-ruby/models/inline_response_200_5.rb +1 -1
  30. data/lib/moonlogs-ruby/models/inline_response_200_6.rb +1 -1
  31. data/lib/moonlogs-ruby/models/inline_response_200_7.rb +1 -1
  32. data/lib/moonlogs-ruby/models/inline_response_200_8.rb +1 -1
  33. data/lib/moonlogs-ruby/models/inline_response_200_9.rb +1 -1
  34. data/lib/moonlogs-ruby/models/level.rb +1 -1
  35. data/lib/moonlogs-ruby/models/meta.rb +1 -1
  36. data/lib/moonlogs-ruby/models/one_of_record_request_level.rb +1 -1
  37. data/lib/moonlogs-ruby/models/one_of_record_response_level.rb +1 -1
  38. data/lib/moonlogs-ruby/models/one_of_user_request_role.rb +1 -1
  39. data/lib/moonlogs-ruby/models/one_of_user_response_role.rb +1 -1
  40. data/lib/moonlogs-ruby/models/record_request.rb +1 -1
  41. data/lib/moonlogs-ruby/models/record_response.rb +1 -1
  42. data/lib/moonlogs-ruby/models/role.rb +1 -1
  43. data/lib/moonlogs-ruby/models/schema_field.rb +1 -1
  44. data/lib/moonlogs-ruby/models/schema_kind.rb +1 -1
  45. data/lib/moonlogs-ruby/models/schema_request.rb +11 -2
  46. data/lib/moonlogs-ruby/models/schema_response.rb +1 -1
  47. data/lib/moonlogs-ruby/models/session.rb +1 -1
  48. data/lib/moonlogs-ruby/models/tag_request.rb +211 -0
  49. data/lib/moonlogs-ruby/models/tag_response.rb +225 -0
  50. data/lib/moonlogs-ruby/models/user_request.rb +1 -1
  51. data/lib/moonlogs-ruby/models/user_response.rb +1 -1
  52. data/lib/moonlogs-ruby/version.rb +2 -2
  53. data/lib/moonlogs-ruby.rb +5 -3
  54. data/moonlogs-ruby.gemspec +1 -1
  55. data/spec/models/api_token_request_spec.rb +40 -0
  56. data/spec/models/api_token_response_spec.rb +58 -0
  57. data/spec/models/tag_request_spec.rb +40 -0
  58. data/spec/models/tag_response_spec.rb +46 -0
  59. metadata +18 -2
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Moonlogs API
5
5
 
6
- OpenAPI spec version: 0.6.1
6
+ OpenAPI spec version: 0.7.0
7
7
  Contact: shalpack@gmail.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 3.0.52
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Moonlogs API
5
5
 
6
- OpenAPI spec version: 0.6.1
6
+ OpenAPI spec version: 0.7.0
7
7
  Contact: shalpack@gmail.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 3.0.52
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Moonlogs API
5
5
 
6
- OpenAPI spec version: 0.6.1
6
+ OpenAPI spec version: 0.7.0
7
7
  Contact: shalpack@gmail.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 3.0.52
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Moonlogs API
5
5
 
6
- OpenAPI spec version: 0.6.1
6
+ OpenAPI spec version: 0.7.0
7
7
  Contact: shalpack@gmail.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 3.0.52
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Moonlogs API
5
5
 
6
- OpenAPI spec version: 0.6.1
6
+ OpenAPI spec version: 0.7.0
7
7
  Contact: shalpack@gmail.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 3.0.52
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Moonlogs API
5
5
 
6
- OpenAPI spec version: 0.6.1
6
+ OpenAPI spec version: 0.7.0
7
7
  Contact: shalpack@gmail.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 3.0.52
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Moonlogs API
5
5
 
6
- OpenAPI spec version: 0.6.1
6
+ OpenAPI spec version: 0.7.0
7
7
  Contact: shalpack@gmail.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 3.0.52
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Moonlogs API
5
5
 
6
- OpenAPI spec version: 0.6.1
6
+ OpenAPI spec version: 0.7.0
7
7
  Contact: shalpack@gmail.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 3.0.52
@@ -25,6 +25,8 @@ module MoonlogsRuby
25
25
 
26
26
  attr_accessor :tag_id
27
27
 
28
+ attr_accessor :tag_name
29
+
28
30
  attr_accessor :retention_days
29
31
 
30
32
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -36,6 +38,7 @@ module MoonlogsRuby
36
38
  :'fields' => :'fields',
37
39
  :'kinds' => :'kinds',
38
40
  :'tag_id' => :'tag_id',
41
+ :'tag_name' => :'tag_name',
39
42
  :'retention_days' => :'retention_days'
40
43
  }
41
44
  end
@@ -49,6 +52,7 @@ module MoonlogsRuby
49
52
  :'fields' => :'Object',
50
53
  :'kinds' => :'Object',
51
54
  :'tag_id' => :'Object',
55
+ :'tag_name' => :'Object',
52
56
  :'retention_days' => :'Object'
53
57
  }
54
58
  end
@@ -102,6 +106,10 @@ module MoonlogsRuby
102
106
  self.tag_id = attributes[:'tag_id']
103
107
  end
104
108
 
109
+ if attributes.key?(:'tag_name')
110
+ self.tag_name = attributes[:'tag_name']
111
+ end
112
+
105
113
  if attributes.key?(:'retention_days')
106
114
  self.retention_days = attributes[:'retention_days']
107
115
  end
@@ -151,6 +159,7 @@ module MoonlogsRuby
151
159
  fields == o.fields &&
152
160
  kinds == o.kinds &&
153
161
  tag_id == o.tag_id &&
162
+ tag_name == o.tag_name &&
154
163
  retention_days == o.retention_days
155
164
  end
156
165
 
@@ -163,7 +172,7 @@ module MoonlogsRuby
163
172
  # Calculates hash code according to all attributes.
164
173
  # @return [Integer] Hash code
165
174
  def hash
166
- [title, description, name, fields, kinds, tag_id, retention_days].hash
175
+ [title, description, name, fields, kinds, tag_id, tag_name, retention_days].hash
167
176
  end
168
177
 
169
178
  # Builds the object from hash
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Moonlogs API
5
5
 
6
- OpenAPI spec version: 0.6.1
6
+ OpenAPI spec version: 0.7.0
7
7
  Contact: shalpack@gmail.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 3.0.52
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Moonlogs API
5
5
 
6
- OpenAPI spec version: 0.6.1
6
+ OpenAPI spec version: 0.7.0
7
7
  Contact: shalpack@gmail.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 3.0.52
@@ -0,0 +1,211 @@
1
+ =begin
2
+ #Moonlogs
3
+
4
+ #Moonlogs API
5
+
6
+ OpenAPI spec version: 0.7.0
7
+ Contact: shalpack@gmail.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 3.0.52
10
+ =end
11
+
12
+ require 'date'
13
+
14
+ module MoonlogsRuby
15
+ class TagRequest
16
+ attr_accessor :name
17
+
18
+ # Attribute mapping from ruby-style variable name to JSON key.
19
+ def self.attribute_map
20
+ {
21
+ :'name' => :'name'
22
+ }
23
+ end
24
+
25
+ # Attribute type mapping.
26
+ def self.openapi_types
27
+ {
28
+ :'name' => :'Object'
29
+ }
30
+ end
31
+
32
+ # List of attributes with nullable: true
33
+ def self.openapi_nullable
34
+ Set.new([
35
+ ])
36
+ end
37
+
38
+ # Initializes the object
39
+ # @param [Hash] attributes Model attributes in the form of hash
40
+ def initialize(attributes = {})
41
+ if (!attributes.is_a?(Hash))
42
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MoonlogsRuby::TagRequest` initialize method"
43
+ end
44
+
45
+ # check to see if the attribute exists and convert string to symbol for hash key
46
+ attributes = attributes.each_with_object({}) { |(k, v), h|
47
+ if (!self.class.attribute_map.key?(k.to_sym))
48
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MoonlogsRuby::TagRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
49
+ end
50
+ h[k.to_sym] = v
51
+ }
52
+
53
+ if attributes.key?(:'name')
54
+ self.name = attributes[:'name']
55
+ end
56
+ end
57
+
58
+ # Show invalid properties with the reasons. Usually used together with valid?
59
+ # @return Array for valid properties with the reasons
60
+ def list_invalid_properties
61
+ invalid_properties = Array.new
62
+ if @name.nil?
63
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
64
+ end
65
+
66
+ invalid_properties
67
+ end
68
+
69
+ # Check to see if the all the properties in the model are valid
70
+ # @return true if the model is valid
71
+ def valid?
72
+ return false if @name.nil?
73
+ true
74
+ end
75
+
76
+ # Checks equality by comparing each attribute.
77
+ # @param [Object] Object to be compared
78
+ def ==(o)
79
+ return true if self.equal?(o)
80
+ self.class == o.class &&
81
+ name == o.name
82
+ end
83
+
84
+ # @see the `==` method
85
+ # @param [Object] Object to be compared
86
+ def eql?(o)
87
+ self == o
88
+ end
89
+
90
+ # Calculates hash code according to all attributes.
91
+ # @return [Integer] Hash code
92
+ def hash
93
+ [name].hash
94
+ end
95
+
96
+ # Builds the object from hash
97
+ # @param [Hash] attributes Model attributes in the form of hash
98
+ # @return [Object] Returns the model itself
99
+ def self.build_from_hash(attributes)
100
+ new.build_from_hash(attributes)
101
+ end
102
+
103
+ # Builds the object from hash
104
+ # @param [Hash] attributes Model attributes in the form of hash
105
+ # @return [Object] Returns the model itself
106
+ def build_from_hash(attributes)
107
+ return nil unless attributes.is_a?(Hash)
108
+ self.class.openapi_types.each_pair do |key, type|
109
+ if type =~ /\AArray<(.*)>/i
110
+ # check to ensure the input is an array given that the attribute
111
+ # is documented as an array but the input is not
112
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
113
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
114
+ end
115
+ elsif !attributes[self.class.attribute_map[key]].nil?
116
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
117
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
118
+ self.send("#{key}=", nil)
119
+ end
120
+ end
121
+
122
+ self
123
+ end
124
+
125
+ # Deserializes the data based on type
126
+ # @param string type Data type
127
+ # @param string value Value to be deserialized
128
+ # @return [Object] Deserialized data
129
+ def _deserialize(type, value)
130
+ case type.to_sym
131
+ when :DateTime
132
+ DateTime.parse(value)
133
+ when :Date
134
+ Date.parse(value)
135
+ when :String
136
+ value.to_s
137
+ when :Integer
138
+ value.to_i
139
+ when :Float
140
+ value.to_f
141
+ when :Boolean
142
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
143
+ true
144
+ else
145
+ false
146
+ end
147
+ when :Object
148
+ # generic object (usually a Hash), return directly
149
+ value
150
+ when /\AArray<(?<inner_type>.+)>\z/
151
+ inner_type = Regexp.last_match[:inner_type]
152
+ value.map { |v| _deserialize(inner_type, v) }
153
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
154
+ k_type = Regexp.last_match[:k_type]
155
+ v_type = Regexp.last_match[:v_type]
156
+ {}.tap do |hash|
157
+ value.each do |k, v|
158
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
159
+ end
160
+ end
161
+ else # model
162
+ MoonlogsRuby.const_get(type).build_from_hash(value)
163
+ end
164
+ end
165
+
166
+ # Returns the string representation of the object
167
+ # @return [String] String presentation of the object
168
+ def to_s
169
+ to_hash.to_s
170
+ end
171
+
172
+ # to_body is an alias to to_hash (backward compatibility)
173
+ # @return [Hash] Returns the object in the form of hash
174
+ def to_body
175
+ to_hash
176
+ end
177
+
178
+ # Returns the object in the form of hash
179
+ # @return [Hash] Returns the object in the form of hash
180
+ def to_hash
181
+ hash = {}
182
+ self.class.attribute_map.each_pair do |attr, param|
183
+ value = self.send(attr)
184
+ if value.nil?
185
+ is_nullable = self.class.openapi_nullable.include?(attr)
186
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
187
+ end
188
+
189
+ hash[param] = _to_hash(value)
190
+ end
191
+ hash
192
+ end
193
+
194
+ # Outputs non-array value in the form of hash
195
+ # For object, use to_hash. Otherwise, just return the value
196
+ # @param [Object] value Any valid value
197
+ # @return [Hash] Returns the value in the form of hash
198
+ def _to_hash(value)
199
+ if value.is_a?(Array)
200
+ value.compact.map { |v| _to_hash(v) }
201
+ elsif value.is_a?(Hash)
202
+ {}.tap do |hash|
203
+ value.each { |k, v| hash[k] = _to_hash(v) }
204
+ end
205
+ elsif value.respond_to? :to_hash
206
+ value.to_hash
207
+ else
208
+ value
209
+ end
210
+ end end
211
+ end
@@ -0,0 +1,225 @@
1
+ =begin
2
+ #Moonlogs
3
+
4
+ #Moonlogs API
5
+
6
+ OpenAPI spec version: 0.7.0
7
+ Contact: shalpack@gmail.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 3.0.52
10
+ =end
11
+
12
+ require 'date'
13
+
14
+ module MoonlogsRuby
15
+ class TagResponse
16
+ attr_accessor :id
17
+
18
+ attr_accessor :name
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'id' => :'id',
24
+ :'name' => :'name'
25
+ }
26
+ end
27
+
28
+ # Attribute type mapping.
29
+ def self.openapi_types
30
+ {
31
+ :'id' => :'Object',
32
+ :'name' => :'Object'
33
+ }
34
+ end
35
+
36
+ # List of attributes with nullable: true
37
+ def self.openapi_nullable
38
+ Set.new([
39
+ ])
40
+ end
41
+
42
+ # Initializes the object
43
+ # @param [Hash] attributes Model attributes in the form of hash
44
+ def initialize(attributes = {})
45
+ if (!attributes.is_a?(Hash))
46
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MoonlogsRuby::TagResponse` initialize method"
47
+ end
48
+
49
+ # check to see if the attribute exists and convert string to symbol for hash key
50
+ attributes = attributes.each_with_object({}) { |(k, v), h|
51
+ if (!self.class.attribute_map.key?(k.to_sym))
52
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MoonlogsRuby::TagResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
53
+ end
54
+ h[k.to_sym] = v
55
+ }
56
+
57
+ if attributes.key?(:'id')
58
+ self.id = attributes[:'id']
59
+ end
60
+
61
+ if attributes.key?(:'name')
62
+ self.name = attributes[:'name']
63
+ end
64
+ end
65
+
66
+ # Show invalid properties with the reasons. Usually used together with valid?
67
+ # @return Array for valid properties with the reasons
68
+ def list_invalid_properties
69
+ invalid_properties = Array.new
70
+ if @id.nil?
71
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
72
+ end
73
+
74
+ if @name.nil?
75
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
76
+ end
77
+
78
+ invalid_properties
79
+ end
80
+
81
+ # Check to see if the all the properties in the model are valid
82
+ # @return true if the model is valid
83
+ def valid?
84
+ return false if @id.nil?
85
+ return false if @name.nil?
86
+ true
87
+ end
88
+
89
+ # Checks equality by comparing each attribute.
90
+ # @param [Object] Object to be compared
91
+ def ==(o)
92
+ return true if self.equal?(o)
93
+ self.class == o.class &&
94
+ id == o.id &&
95
+ name == o.name
96
+ end
97
+
98
+ # @see the `==` method
99
+ # @param [Object] Object to be compared
100
+ def eql?(o)
101
+ self == o
102
+ end
103
+
104
+ # Calculates hash code according to all attributes.
105
+ # @return [Integer] Hash code
106
+ def hash
107
+ [id, name].hash
108
+ end
109
+
110
+ # Builds the object from hash
111
+ # @param [Hash] attributes Model attributes in the form of hash
112
+ # @return [Object] Returns the model itself
113
+ def self.build_from_hash(attributes)
114
+ new.build_from_hash(attributes)
115
+ end
116
+
117
+ # Builds the object from hash
118
+ # @param [Hash] attributes Model attributes in the form of hash
119
+ # @return [Object] Returns the model itself
120
+ def build_from_hash(attributes)
121
+ return nil unless attributes.is_a?(Hash)
122
+ self.class.openapi_types.each_pair do |key, type|
123
+ if type =~ /\AArray<(.*)>/i
124
+ # check to ensure the input is an array given that the attribute
125
+ # is documented as an array but the input is not
126
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
127
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
128
+ end
129
+ elsif !attributes[self.class.attribute_map[key]].nil?
130
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
131
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
132
+ self.send("#{key}=", nil)
133
+ end
134
+ end
135
+
136
+ self
137
+ end
138
+
139
+ # Deserializes the data based on type
140
+ # @param string type Data type
141
+ # @param string value Value to be deserialized
142
+ # @return [Object] Deserialized data
143
+ def _deserialize(type, value)
144
+ case type.to_sym
145
+ when :DateTime
146
+ DateTime.parse(value)
147
+ when :Date
148
+ Date.parse(value)
149
+ when :String
150
+ value.to_s
151
+ when :Integer
152
+ value.to_i
153
+ when :Float
154
+ value.to_f
155
+ when :Boolean
156
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
157
+ true
158
+ else
159
+ false
160
+ end
161
+ when :Object
162
+ # generic object (usually a Hash), return directly
163
+ value
164
+ when /\AArray<(?<inner_type>.+)>\z/
165
+ inner_type = Regexp.last_match[:inner_type]
166
+ value.map { |v| _deserialize(inner_type, v) }
167
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
168
+ k_type = Regexp.last_match[:k_type]
169
+ v_type = Regexp.last_match[:v_type]
170
+ {}.tap do |hash|
171
+ value.each do |k, v|
172
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
173
+ end
174
+ end
175
+ else # model
176
+ MoonlogsRuby.const_get(type).build_from_hash(value)
177
+ end
178
+ end
179
+
180
+ # Returns the string representation of the object
181
+ # @return [String] String presentation of the object
182
+ def to_s
183
+ to_hash.to_s
184
+ end
185
+
186
+ # to_body is an alias to to_hash (backward compatibility)
187
+ # @return [Hash] Returns the object in the form of hash
188
+ def to_body
189
+ to_hash
190
+ end
191
+
192
+ # Returns the object in the form of hash
193
+ # @return [Hash] Returns the object in the form of hash
194
+ def to_hash
195
+ hash = {}
196
+ self.class.attribute_map.each_pair do |attr, param|
197
+ value = self.send(attr)
198
+ if value.nil?
199
+ is_nullable = self.class.openapi_nullable.include?(attr)
200
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
201
+ end
202
+
203
+ hash[param] = _to_hash(value)
204
+ end
205
+ hash
206
+ end
207
+
208
+ # Outputs non-array value in the form of hash
209
+ # For object, use to_hash. Otherwise, just return the value
210
+ # @param [Object] value Any valid value
211
+ # @return [Hash] Returns the value in the form of hash
212
+ def _to_hash(value)
213
+ if value.is_a?(Array)
214
+ value.compact.map { |v| _to_hash(v) }
215
+ elsif value.is_a?(Hash)
216
+ {}.tap do |hash|
217
+ value.each { |k, v| hash[k] = _to_hash(v) }
218
+ end
219
+ elsif value.respond_to? :to_hash
220
+ value.to_hash
221
+ else
222
+ value
223
+ end
224
+ end end
225
+ end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Moonlogs API
5
5
 
6
- OpenAPI spec version: 0.6.1
6
+ OpenAPI spec version: 0.7.0
7
7
  Contact: shalpack@gmail.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 3.0.52
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Moonlogs API
5
5
 
6
- OpenAPI spec version: 0.6.1
6
+ OpenAPI spec version: 0.7.0
7
7
  Contact: shalpack@gmail.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 3.0.52
@@ -3,12 +3,12 @@
3
3
 
4
4
  #Moonlogs API
5
5
 
6
- OpenAPI spec version: 0.6.1
6
+ OpenAPI spec version: 0.7.0
7
7
  Contact: shalpack@gmail.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 3.0.52
10
10
  =end
11
11
 
12
12
  module MoonlogsRuby
13
- VERSION = '0.6.1'
13
+ VERSION = '0.7.0'
14
14
  end
data/lib/moonlogs-ruby.rb CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Moonlogs API
5
5
 
6
- OpenAPI spec version: 0.6.1
6
+ OpenAPI spec version: 0.7.0
7
7
  Contact: shalpack@gmail.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 3.0.52
@@ -16,7 +16,8 @@ require 'moonlogs-ruby/version'
16
16
  require 'moonlogs-ruby/configuration'
17
17
 
18
18
  # Models
19
- require 'moonlogs-ruby/models/api_token'
19
+ require 'moonlogs-ruby/models/api_token_request'
20
+ require 'moonlogs-ruby/models/api_token_response'
20
21
  require 'moonlogs-ruby/models/credentials'
21
22
  require 'moonlogs-ruby/models/inline_response_200'
22
23
  require 'moonlogs-ruby/models/inline_response_200_1'
@@ -46,7 +47,8 @@ require 'moonlogs-ruby/models/schema_kind'
46
47
  require 'moonlogs-ruby/models/schema_request'
47
48
  require 'moonlogs-ruby/models/schema_response'
48
49
  require 'moonlogs-ruby/models/session'
49
- require 'moonlogs-ruby/models/tag'
50
+ require 'moonlogs-ruby/models/tag_request'
51
+ require 'moonlogs-ruby/models/tag_response'
50
52
  require 'moonlogs-ruby/models/user_request'
51
53
  require 'moonlogs-ruby/models/user_response'
52
54
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  #Moonlogs API
7
7
 
8
- OpenAPI spec version: 0.6.1
8
+ OpenAPI spec version: 0.7.0
9
9
  Contact: shalpack@gmail.com
10
10
  Generated by: https://github.com/swagger-api/swagger-codegen.git
11
11
  Swagger Codegen version: 3.0.52