notifo-io 1.0.0.2 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/docs/AddAllowedTopicDto.md +1 -1
  4. data/docs/AddContributorDto.md +2 -2
  5. data/docs/AppContributorDto.md +3 -3
  6. data/docs/AppDetailsDto.md +10 -10
  7. data/docs/AppDto.md +6 -6
  8. data/docs/AppsApi.md +8 -8
  9. data/docs/ConfigsApi.md +1 -1
  10. data/docs/CreateEmailTemplateDto.md +1 -1
  11. data/docs/EmailTemplateDto.md +2 -2
  12. data/docs/EventDto.md +9 -9
  13. data/docs/EventsApi.md +2 -2
  14. data/docs/ListResponseDtoOfEventDto.md +2 -2
  15. data/docs/ListResponseDtoOfLogEntryDto.md +2 -2
  16. data/docs/ListResponseDtoOfMediaDto.md +2 -2
  17. data/docs/ListResponseDtoOfSubscriptionDto.md +2 -2
  18. data/docs/ListResponseDtoOfTemplateDto.md +2 -2
  19. data/docs/ListResponseDtoOfTopicDto.md +2 -2
  20. data/docs/ListResponseDtoOfUserDto.md +2 -2
  21. data/docs/LogEntryDto.md +4 -4
  22. data/docs/LogsApi.md +1 -1
  23. data/docs/MediaApi.md +89 -2
  24. data/docs/MediaDto.md +8 -6
  25. data/docs/NotificationFormattingDto.md +2 -2
  26. data/docs/NotificationSettingDto.md +1 -1
  27. data/docs/ProfileDto.md +5 -5
  28. data/docs/PublishDto.md +1 -1
  29. data/docs/PublishManyDto.md +1 -1
  30. data/docs/SubscriptionDto.md +1 -1
  31. data/docs/TemplateDto.md +3 -3
  32. data/docs/TemplatesApi.md +2 -2
  33. data/docs/TopicDto.md +3 -3
  34. data/docs/TopicsApi.md +1 -1
  35. data/docs/UpsertTemplateDto.md +2 -2
  36. data/docs/UpsertTemplatesDto.md +1 -1
  37. data/docs/UpsertUsersDto.md +1 -1
  38. data/docs/UserApi.md +2 -2
  39. data/docs/UserDto.md +5 -5
  40. data/docs/UsersApi.md +4 -4
  41. data/lib/notifo.rb +1 -2
  42. data/lib/notifo/api/apps_api.rb +4 -4
  43. data/lib/notifo/api/configs_api.rb +1 -1
  44. data/lib/notifo/api/events_api.rb +1 -1
  45. data/lib/notifo/api/logs_api.rb +1 -1
  46. data/lib/notifo/api/media_api.rb +99 -2
  47. data/lib/notifo/api/templates_api.rb +1 -1
  48. data/lib/notifo/api/topics_api.rb +1 -1
  49. data/lib/notifo/api/user_api.rb +1 -1
  50. data/lib/notifo/api/users_api.rb +1 -1
  51. data/lib/notifo/api_client.rb +2 -2
  52. data/lib/notifo/api_error.rb +1 -1
  53. data/lib/notifo/configuration.rb +9 -7
  54. data/lib/notifo/models/add_allowed_topic_dto.rb +25 -1
  55. data/lib/notifo/models/add_contributor_dto.rb +49 -1
  56. data/lib/notifo/models/app_contributor_dto.rb +73 -1
  57. data/lib/notifo/models/app_details_dto.rb +108 -1
  58. data/lib/notifo/models/app_dto.rb +88 -1
  59. data/lib/notifo/models/confirm_mode.rb +1 -1
  60. data/lib/notifo/models/create_email_template_dto.rb +25 -1
  61. data/lib/notifo/models/email_template_dto.rb +49 -1
  62. data/lib/notifo/models/email_verification_status.rb +1 -1
  63. data/lib/notifo/models/error_dto.rb +1 -1
  64. data/lib/notifo/models/event_dto.rb +122 -2
  65. data/lib/notifo/models/iso_day_of_week.rb +1 -1
  66. data/lib/notifo/models/list_response_dto_of_event_dto.rb +11 -1
  67. data/lib/notifo/models/list_response_dto_of_log_entry_dto.rb +11 -1
  68. data/lib/notifo/models/list_response_dto_of_media_dto.rb +11 -1
  69. data/lib/notifo/models/list_response_dto_of_subscription_dto.rb +11 -1
  70. data/lib/notifo/models/list_response_dto_of_template_dto.rb +11 -1
  71. data/lib/notifo/models/list_response_dto_of_topic_dto.rb +11 -1
  72. data/lib/notifo/models/list_response_dto_of_user_dto.rb +11 -1
  73. data/lib/notifo/models/log_entry_dto.rb +78 -1
  74. data/lib/notifo/models/media_dto.rb +123 -2
  75. data/lib/notifo/models/media_type.rb +1 -1
  76. data/lib/notifo/models/notification_formatting_dto.rb +11 -1
  77. data/lib/notifo/models/notification_send.rb +1 -1
  78. data/lib/notifo/models/notification_setting_dto.rb +6 -1
  79. data/lib/notifo/models/profile_dto.rb +67 -1
  80. data/lib/notifo/models/publish_dto.rb +25 -1
  81. data/lib/notifo/models/publish_many_dto.rb +6 -1
  82. data/lib/notifo/models/resize_mode.rb +1 -1
  83. data/lib/notifo/models/scheduling_dto.rb +1 -1
  84. data/lib/notifo/models/scheduling_type.rb +1 -1
  85. data/lib/notifo/models/subscription_dto.rb +25 -1
  86. data/lib/notifo/models/template_dto.rb +35 -1
  87. data/lib/notifo/models/topic_dto.rb +54 -1
  88. data/lib/notifo/models/update_profile_dto.rb +1 -1
  89. data/lib/notifo/models/upsert_app_dto.rb +1 -1
  90. data/lib/notifo/models/upsert_template_dto.rb +30 -1
  91. data/lib/notifo/models/upsert_templates_dto.rb +6 -1
  92. data/lib/notifo/models/upsert_user_dto.rb +1 -1
  93. data/lib/notifo/models/upsert_users_dto.rb +6 -1
  94. data/lib/notifo/models/user_dto.rb +69 -1
  95. data/lib/notifo/version.rb +1 -1
  96. data/notifo-io-1.0.0.2.gem +0 -0
  97. data/notifo.gemspec +4 -4
  98. data/spec/api_client_spec.rb +1 -1
  99. data/spec/configuration_spec.rb +4 -4
  100. data/spec/spec_helper.rb +1 -1
  101. metadata +7 -5
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -78,12 +78,22 @@ module Notifo
78
78
  # @return Array for valid properties with the reasons
79
79
  def list_invalid_properties
80
80
  invalid_properties = Array.new
81
+ if @items.nil?
82
+ invalid_properties.push('invalid value for "items", items cannot be nil.')
83
+ end
84
+
85
+ if @total.nil?
86
+ invalid_properties.push('invalid value for "total", total cannot be nil.')
87
+ end
88
+
81
89
  invalid_properties
82
90
  end
83
91
 
84
92
  # Check to see if the all the properties in the model are valid
85
93
  # @return true if the model is valid
86
94
  def valid?
95
+ return false if @items.nil?
96
+ return false if @total.nil?
87
97
  true
88
98
  end
89
99
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -78,12 +78,22 @@ module Notifo
78
78
  # @return Array for valid properties with the reasons
79
79
  def list_invalid_properties
80
80
  invalid_properties = Array.new
81
+ if @items.nil?
82
+ invalid_properties.push('invalid value for "items", items cannot be nil.')
83
+ end
84
+
85
+ if @total.nil?
86
+ invalid_properties.push('invalid value for "total", total cannot be nil.')
87
+ end
88
+
81
89
  invalid_properties
82
90
  end
83
91
 
84
92
  # Check to see if the all the properties in the model are valid
85
93
  # @return true if the model is valid
86
94
  def valid?
95
+ return false if @items.nil?
96
+ return false if @total.nil?
87
97
  true
88
98
  end
89
99
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -78,12 +78,22 @@ module Notifo
78
78
  # @return Array for valid properties with the reasons
79
79
  def list_invalid_properties
80
80
  invalid_properties = Array.new
81
+ if @items.nil?
82
+ invalid_properties.push('invalid value for "items", items cannot be nil.')
83
+ end
84
+
85
+ if @total.nil?
86
+ invalid_properties.push('invalid value for "total", total cannot be nil.')
87
+ end
88
+
81
89
  invalid_properties
82
90
  end
83
91
 
84
92
  # Check to see if the all the properties in the model are valid
85
93
  # @return true if the model is valid
86
94
  def valid?
95
+ return false if @items.nil?
96
+ return false if @total.nil?
87
97
  true
88
98
  end
89
99
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -78,12 +78,22 @@ module Notifo
78
78
  # @return Array for valid properties with the reasons
79
79
  def list_invalid_properties
80
80
  invalid_properties = Array.new
81
+ if @items.nil?
82
+ invalid_properties.push('invalid value for "items", items cannot be nil.')
83
+ end
84
+
85
+ if @total.nil?
86
+ invalid_properties.push('invalid value for "total", total cannot be nil.')
87
+ end
88
+
81
89
  invalid_properties
82
90
  end
83
91
 
84
92
  # Check to see if the all the properties in the model are valid
85
93
  # @return true if the model is valid
86
94
  def valid?
95
+ return false if @items.nil?
96
+ return false if @total.nil?
87
97
  true
88
98
  end
89
99
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -78,12 +78,22 @@ module Notifo
78
78
  # @return Array for valid properties with the reasons
79
79
  def list_invalid_properties
80
80
  invalid_properties = Array.new
81
+ if @items.nil?
82
+ invalid_properties.push('invalid value for "items", items cannot be nil.')
83
+ end
84
+
85
+ if @total.nil?
86
+ invalid_properties.push('invalid value for "total", total cannot be nil.')
87
+ end
88
+
81
89
  invalid_properties
82
90
  end
83
91
 
84
92
  # Check to see if the all the properties in the model are valid
85
93
  # @return true if the model is valid
86
94
  def valid?
95
+ return false if @items.nil?
96
+ return false if @total.nil?
87
97
  true
88
98
  end
89
99
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -78,12 +78,22 @@ module Notifo
78
78
  # @return Array for valid properties with the reasons
79
79
  def list_invalid_properties
80
80
  invalid_properties = Array.new
81
+ if @items.nil?
82
+ invalid_properties.push('invalid value for "items", items cannot be nil.')
83
+ end
84
+
85
+ if @total.nil?
86
+ invalid_properties.push('invalid value for "total", total cannot be nil.')
87
+ end
88
+
81
89
  invalid_properties
82
90
  end
83
91
 
84
92
  # Check to see if the all the properties in the model are valid
85
93
  # @return true if the model is valid
86
94
  def valid?
95
+ return false if @items.nil?
96
+ return false if @total.nil?
87
97
  true
88
98
  end
89
99
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -94,15 +94,92 @@ module Notifo
94
94
  # @return Array for valid properties with the reasons
95
95
  def list_invalid_properties
96
96
  invalid_properties = Array.new
97
+ if @message.nil?
98
+ invalid_properties.push('invalid value for "message", message cannot be nil.')
99
+ end
100
+
101
+ if @message.to_s.length < 1
102
+ invalid_properties.push('invalid value for "message", the character length must be great than or equal to 1.')
103
+ end
104
+
105
+ if @first_seen.nil?
106
+ invalid_properties.push('invalid value for "first_seen", first_seen cannot be nil.')
107
+ end
108
+
109
+ if @first_seen.to_s.length < 1
110
+ invalid_properties.push('invalid value for "first_seen", the character length must be great than or equal to 1.')
111
+ end
112
+
113
+ if @last_seen.nil?
114
+ invalid_properties.push('invalid value for "last_seen", last_seen cannot be nil.')
115
+ end
116
+
117
+ if @last_seen.to_s.length < 1
118
+ invalid_properties.push('invalid value for "last_seen", the character length must be great than or equal to 1.')
119
+ end
120
+
121
+ if @count.nil?
122
+ invalid_properties.push('invalid value for "count", count cannot be nil.')
123
+ end
124
+
97
125
  invalid_properties
98
126
  end
99
127
 
100
128
  # Check to see if the all the properties in the model are valid
101
129
  # @return true if the model is valid
102
130
  def valid?
131
+ return false if @message.nil?
132
+ return false if @message.to_s.length < 1
133
+ return false if @first_seen.nil?
134
+ return false if @first_seen.to_s.length < 1
135
+ return false if @last_seen.nil?
136
+ return false if @last_seen.to_s.length < 1
137
+ return false if @count.nil?
103
138
  true
104
139
  end
105
140
 
141
+ # Custom attribute writer method with validation
142
+ # @param [Object] message Value to be assigned
143
+ def message=(message)
144
+ if message.nil?
145
+ fail ArgumentError, 'message cannot be nil'
146
+ end
147
+
148
+ if message.to_s.length < 1
149
+ fail ArgumentError, 'invalid value for "message", the character length must be great than or equal to 1.'
150
+ end
151
+
152
+ @message = message
153
+ end
154
+
155
+ # Custom attribute writer method with validation
156
+ # @param [Object] first_seen Value to be assigned
157
+ def first_seen=(first_seen)
158
+ if first_seen.nil?
159
+ fail ArgumentError, 'first_seen cannot be nil'
160
+ end
161
+
162
+ if first_seen.to_s.length < 1
163
+ fail ArgumentError, 'invalid value for "first_seen", the character length must be great than or equal to 1.'
164
+ end
165
+
166
+ @first_seen = first_seen
167
+ end
168
+
169
+ # Custom attribute writer method with validation
170
+ # @param [Object] last_seen Value to be assigned
171
+ def last_seen=(last_seen)
172
+ if last_seen.nil?
173
+ fail ArgumentError, 'last_seen cannot be nil'
174
+ end
175
+
176
+ if last_seen.to_s.length < 1
177
+ fail ArgumentError, 'invalid value for "last_seen", the character length must be great than or equal to 1.'
178
+ end
179
+
180
+ @last_seen = last_seen
181
+ end
182
+
106
183
  # Checks equality by comparing each attribute.
107
184
  # @param [Object] Object to be compared
108
185
  def ==(o)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 5.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -27,6 +27,9 @@ module Notifo
27
27
  # The size of the media file.
28
28
  attr_accessor :file_size
29
29
 
30
+ # The url to the media item.
31
+ attr_accessor :url
32
+
30
33
  attr_accessor :type
31
34
 
32
35
  attr_accessor :metadata
@@ -38,6 +41,7 @@ module Notifo
38
41
  :'file_name' => :'fileName',
39
42
  :'file_info' => :'fileInfo',
40
43
  :'file_size' => :'fileSize',
44
+ :'url' => :'url',
41
45
  :'type' => :'type',
42
46
  :'metadata' => :'metadata'
43
47
  }
@@ -55,6 +59,7 @@ module Notifo
55
59
  :'file_name' => :'String',
56
60
  :'file_info' => :'String',
57
61
  :'file_size' => :'Integer',
62
+ :'url' => :'String',
58
63
  :'type' => :'MediaType',
59
64
  :'metadata' => :'Hash<String, String>'
60
65
  }
@@ -97,6 +102,10 @@ module Notifo
97
102
  self.file_size = attributes[:'file_size']
98
103
  end
99
104
 
105
+ if attributes.key?(:'url')
106
+ self.url = attributes[:'url']
107
+ end
108
+
100
109
  if attributes.key?(:'type')
101
110
  self.type = attributes[:'type']
102
111
  end
@@ -112,15 +121,126 @@ module Notifo
112
121
  # @return Array for valid properties with the reasons
113
122
  def list_invalid_properties
114
123
  invalid_properties = Array.new
124
+ if @mime_type.nil?
125
+ invalid_properties.push('invalid value for "mime_type", mime_type cannot be nil.')
126
+ end
127
+
128
+ if @mime_type.to_s.length < 1
129
+ invalid_properties.push('invalid value for "mime_type", the character length must be great than or equal to 1.')
130
+ end
131
+
132
+ if @file_name.nil?
133
+ invalid_properties.push('invalid value for "file_name", file_name cannot be nil.')
134
+ end
135
+
136
+ if @file_name.to_s.length < 1
137
+ invalid_properties.push('invalid value for "file_name", the character length must be great than or equal to 1.')
138
+ end
139
+
140
+ if @file_info.nil?
141
+ invalid_properties.push('invalid value for "file_info", file_info cannot be nil.')
142
+ end
143
+
144
+ if @file_info.to_s.length < 1
145
+ invalid_properties.push('invalid value for "file_info", the character length must be great than or equal to 1.')
146
+ end
147
+
148
+ if @file_size.nil?
149
+ invalid_properties.push('invalid value for "file_size", file_size cannot be nil.')
150
+ end
151
+
152
+ if @url.nil?
153
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
154
+ end
155
+
156
+ if @url.to_s.length < 1
157
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
158
+ end
159
+
160
+ if @type.nil?
161
+ invalid_properties.push('invalid value for "type", type cannot be nil.')
162
+ end
163
+
164
+ if @metadata.nil?
165
+ invalid_properties.push('invalid value for "metadata", metadata cannot be nil.')
166
+ end
167
+
115
168
  invalid_properties
116
169
  end
117
170
 
118
171
  # Check to see if the all the properties in the model are valid
119
172
  # @return true if the model is valid
120
173
  def valid?
174
+ return false if @mime_type.nil?
175
+ return false if @mime_type.to_s.length < 1
176
+ return false if @file_name.nil?
177
+ return false if @file_name.to_s.length < 1
178
+ return false if @file_info.nil?
179
+ return false if @file_info.to_s.length < 1
180
+ return false if @file_size.nil?
181
+ return false if @url.nil?
182
+ return false if @url.to_s.length < 1
183
+ return false if @type.nil?
184
+ return false if @metadata.nil?
121
185
  true
122
186
  end
123
187
 
188
+ # Custom attribute writer method with validation
189
+ # @param [Object] mime_type Value to be assigned
190
+ def mime_type=(mime_type)
191
+ if mime_type.nil?
192
+ fail ArgumentError, 'mime_type cannot be nil'
193
+ end
194
+
195
+ if mime_type.to_s.length < 1
196
+ fail ArgumentError, 'invalid value for "mime_type", the character length must be great than or equal to 1.'
197
+ end
198
+
199
+ @mime_type = mime_type
200
+ end
201
+
202
+ # Custom attribute writer method with validation
203
+ # @param [Object] file_name Value to be assigned
204
+ def file_name=(file_name)
205
+ if file_name.nil?
206
+ fail ArgumentError, 'file_name cannot be nil'
207
+ end
208
+
209
+ if file_name.to_s.length < 1
210
+ fail ArgumentError, 'invalid value for "file_name", the character length must be great than or equal to 1.'
211
+ end
212
+
213
+ @file_name = file_name
214
+ end
215
+
216
+ # Custom attribute writer method with validation
217
+ # @param [Object] file_info Value to be assigned
218
+ def file_info=(file_info)
219
+ if file_info.nil?
220
+ fail ArgumentError, 'file_info cannot be nil'
221
+ end
222
+
223
+ if file_info.to_s.length < 1
224
+ fail ArgumentError, 'invalid value for "file_info", the character length must be great than or equal to 1.'
225
+ end
226
+
227
+ @file_info = file_info
228
+ end
229
+
230
+ # Custom attribute writer method with validation
231
+ # @param [Object] url Value to be assigned
232
+ def url=(url)
233
+ if url.nil?
234
+ fail ArgumentError, 'url cannot be nil'
235
+ end
236
+
237
+ if url.to_s.length < 1
238
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
239
+ end
240
+
241
+ @url = url
242
+ end
243
+
124
244
  # Checks equality by comparing each attribute.
125
245
  # @param [Object] Object to be compared
126
246
  def ==(o)
@@ -130,6 +250,7 @@ module Notifo
130
250
  file_name == o.file_name &&
131
251
  file_info == o.file_info &&
132
252
  file_size == o.file_size &&
253
+ url == o.url &&
133
254
  type == o.type &&
134
255
  metadata == o.metadata
135
256
  end
@@ -143,7 +264,7 @@ module Notifo
143
264
  # Calculates hash code according to all attributes.
144
265
  # @return [Integer] Hash code
145
266
  def hash
146
- [mime_type, file_name, file_info, file_size, type, metadata].hash
267
+ [mime_type, file_name, file_info, file_size, url, type, metadata].hash
147
268
  end
148
269
 
149
270
  # Builds the object from hash