notifo-io 1.0.1 → 1.0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +510 -8
  3. data/Rakefile +0 -2
  4. data/docs/AddAllowedTopicDto.md +3 -14
  5. data/docs/AddContributorDto.md +4 -16
  6. data/docs/AppContributorDto.md +5 -18
  7. data/docs/AppDetailsDto.md +18 -44
  8. data/docs/AppDto.md +8 -24
  9. data/docs/AppsApi.md +149 -331
  10. data/docs/Body.md +7 -0
  11. data/docs/ConfigsApi.md +21 -61
  12. data/docs/ConfirmMode.md +2 -11
  13. data/docs/CreateEmailTemplateDto.md +3 -14
  14. data/docs/EmailTemplateDto.md +5 -18
  15. data/docs/EmailTemplatesDto.md +6 -0
  16. data/docs/EmailVerificationStatus.md +2 -11
  17. data/docs/ErrorDto.md +7 -22
  18. data/docs/EventDto.md +14 -36
  19. data/docs/EventProperties.md +6 -0
  20. data/docs/EventsApi.md +36 -73
  21. data/docs/IsoDayOfWeek.md +2 -11
  22. data/docs/ListResponseDtoOfEventDto.md +4 -16
  23. data/docs/ListResponseDtoOfLogEntryDto.md +4 -16
  24. data/docs/ListResponseDtoOfMediaDto.md +4 -16
  25. data/docs/ListResponseDtoOfSubscriptionDto.md +4 -16
  26. data/docs/ListResponseDtoOfTemplateDto.md +4 -16
  27. data/docs/ListResponseDtoOfTopicDto.md +4 -16
  28. data/docs/ListResponseDtoOfUserDto.md +4 -16
  29. data/docs/LocalizedText.md +6 -0
  30. data/docs/LogEntryDto.md +6 -20
  31. data/docs/LogsApi.md +21 -40
  32. data/docs/MediaApi.md +102 -196
  33. data/docs/MediaDto.md +9 -26
  34. data/docs/MediaMetadata.md +6 -0
  35. data/docs/MediaType.md +2 -11
  36. data/docs/NotificationFormattingDto.md +10 -28
  37. data/docs/NotificationSend.md +2 -11
  38. data/docs/NotificationSettingDto.md +4 -16
  39. data/docs/ProfileDto.md +10 -28
  40. data/docs/PublishDto.md +12 -32
  41. data/docs/PublishManyDto.md +3 -14
  42. data/docs/ResizeMode.md +2 -11
  43. data/docs/SchedulingDto.md +6 -20
  44. data/docs/SchedulingType.md +2 -11
  45. data/docs/SubscriptionDto.md +4 -16
  46. data/docs/TemplateDto.md +5 -18
  47. data/docs/TemplatesApi.md +51 -106
  48. data/docs/TopicDto.md +5 -18
  49. data/docs/TopicsApi.md +21 -40
  50. data/docs/UpdateProfileDto.md +8 -24
  51. data/docs/UpsertAppDto.md +12 -32
  52. data/docs/UpsertTemplateDto.md +5 -18
  53. data/docs/UpsertTemplatesDto.md +3 -14
  54. data/docs/UpsertUserDto.md +10 -28
  55. data/docs/UpsertUsersDto.md +3 -14
  56. data/docs/UserApi.md +68 -160
  57. data/docs/UserDto.md +12 -32
  58. data/docs/UsersApi.md +144 -308
  59. data/git_push.sh +7 -10
  60. data/lib/notifo.rb +9 -5
  61. data/lib/notifo/api/apps_api.rb +130 -202
  62. data/lib/notifo/api/configs_api.rb +14 -30
  63. data/lib/notifo/api/events_api.rb +29 -45
  64. data/lib/notifo/api/logs_api.rb +12 -21
  65. data/lib/notifo/api/media_api.rb +60 -97
  66. data/lib/notifo/api/templates_api.rb +39 -62
  67. data/lib/notifo/api/topics_api.rb +12 -21
  68. data/lib/notifo/api/user_api.rb +51 -88
  69. data/lib/notifo/api/users_api.rb +121 -186
  70. data/lib/notifo/api_client.rb +54 -56
  71. data/lib/notifo/api_error.rb +5 -5
  72. data/lib/notifo/configuration.rb +12 -84
  73. data/lib/notifo/models/add_allowed_topic_dto.rb +13 -44
  74. data/lib/notifo/models/add_contributor_dto.rb +14 -64
  75. data/lib/notifo/models/app_contributor_dto.rb +15 -84
  76. data/lib/notifo/models/app_details_dto.rb +28 -103
  77. data/lib/notifo/models/app_dto.rb +18 -87
  78. data/lib/notifo/models/{inline_object.rb → body.rb} +16 -29
  79. data/lib/notifo/models/confirm_mode.rb +7 -16
  80. data/lib/notifo/models/create_email_template_dto.rb +13 -44
  81. data/lib/notifo/models/email_template_dto.rb +15 -66
  82. data/lib/notifo/models/email_templates_dto.rb +201 -0
  83. data/lib/notifo/models/email_verification_status.rb +8 -17
  84. data/lib/notifo/models/error_dto.rb +17 -33
  85. data/lib/notifo/models/event_dto.rb +24 -114
  86. data/lib/notifo/models/event_properties.rb +201 -0
  87. data/lib/notifo/models/iso_day_of_week.rb +12 -21
  88. data/lib/notifo/models/list_response_dto_of_event_dto.rb +14 -26
  89. data/lib/notifo/models/list_response_dto_of_log_entry_dto.rb +14 -26
  90. data/lib/notifo/models/list_response_dto_of_media_dto.rb +14 -26
  91. data/lib/notifo/models/list_response_dto_of_subscription_dto.rb +14 -26
  92. data/lib/notifo/models/list_response_dto_of_template_dto.rb +14 -26
  93. data/lib/notifo/models/list_response_dto_of_topic_dto.rb +14 -26
  94. data/lib/notifo/models/list_response_dto_of_user_dto.rb +14 -26
  95. data/lib/notifo/models/localized_text.rb +201 -0
  96. data/lib/notifo/models/log_entry_dto.rb +16 -85
  97. data/lib/notifo/models/media_dto.rb +20 -110
  98. data/lib/notifo/models/media_metadata.rb +201 -0
  99. data/lib/notifo/models/media_type.rb +8 -17
  100. data/lib/notifo/models/notification_formatting_dto.rb +27 -53
  101. data/lib/notifo/models/notification_send.rb +8 -17
  102. data/lib/notifo/models/notification_setting_dto.rb +23 -36
  103. data/lib/notifo/models/profile_dto.rb +20 -73
  104. data/lib/notifo/models/publish_dto.rb +23 -60
  105. data/lib/notifo/models/publish_many_dto.rb +13 -25
  106. data/lib/notifo/models/resize_mode.rb +11 -20
  107. data/lib/notifo/models/scheduling_dto.rb +16 -29
  108. data/lib/notifo/models/scheduling_type.rb +6 -15
  109. data/lib/notifo/models/subscription_dto.rb +14 -46
  110. data/lib/notifo/models/template_dto.rb +15 -46
  111. data/lib/notifo/models/topic_dto.rb +15 -65
  112. data/lib/notifo/models/update_profile_dto.rb +18 -36
  113. data/lib/notifo/models/upsert_app_dto.rb +22 -44
  114. data/lib/notifo/models/upsert_template_dto.rb +15 -47
  115. data/lib/notifo/models/upsert_templates_dto.rb +13 -25
  116. data/lib/notifo/models/upsert_user_dto.rb +20 -40
  117. data/lib/notifo/models/upsert_users_dto.rb +13 -25
  118. data/lib/notifo/models/user_dto.rb +22 -77
  119. data/lib/notifo/version.rb +4 -5
  120. data/notifo.gemspec +7 -7
  121. data/spec/api/apps_api_spec.rb +14 -15
  122. data/spec/api/configs_api_spec.rb +7 -8
  123. data/spec/api/events_api_spec.rb +8 -9
  124. data/spec/api/logs_api_spec.rb +7 -8
  125. data/spec/api/media_api_spec.rb +32 -11
  126. data/spec/api/templates_api_spec.rb +8 -9
  127. data/spec/api/topics_api_spec.rb +7 -8
  128. data/spec/api/user_api_spec.rb +9 -10
  129. data/spec/api/users_api_spec.rb +10 -11
  130. data/spec/api_client_spec.rb +5 -6
  131. data/spec/base_object_spec.rb +109 -0
  132. data/spec/configuration_spec.rb +7 -8
  133. data/spec/models/add_allowed_topic_dto_spec.rb +15 -9
  134. data/spec/models/add_contributor_dto_spec.rb +15 -9
  135. data/spec/models/app_contributor_dto_spec.rb +15 -9
  136. data/spec/models/app_details_dto_spec.rb +15 -9
  137. data/spec/models/app_dto_spec.rb +15 -9
  138. data/spec/models/body_spec.rb +40 -0
  139. data/spec/models/confirm_mode_spec.rb +15 -9
  140. data/spec/models/create_email_template_dto_spec.rb +15 -9
  141. data/spec/models/email_template_dto_spec.rb +15 -9
  142. data/spec/models/email_templates_dto_spec.rb +34 -0
  143. data/spec/models/email_verification_status_spec.rb +15 -9
  144. data/spec/models/error_dto_spec.rb +15 -9
  145. data/spec/models/event_dto_spec.rb +15 -9
  146. data/spec/models/event_properties_spec.rb +34 -0
  147. data/spec/models/iso_day_of_week_spec.rb +15 -9
  148. data/spec/models/list_response_dto_of_event_dto_spec.rb +15 -9
  149. data/spec/models/list_response_dto_of_log_entry_dto_spec.rb +15 -9
  150. data/spec/models/list_response_dto_of_media_dto_spec.rb +15 -9
  151. data/spec/models/list_response_dto_of_subscription_dto_spec.rb +15 -9
  152. data/spec/models/list_response_dto_of_template_dto_spec.rb +15 -9
  153. data/spec/models/list_response_dto_of_topic_dto_spec.rb +15 -9
  154. data/spec/models/list_response_dto_of_user_dto_spec.rb +15 -9
  155. data/spec/models/localized_text_spec.rb +34 -0
  156. data/spec/models/log_entry_dto_spec.rb +15 -9
  157. data/spec/models/media_dto_spec.rb +21 -9
  158. data/spec/models/media_metadata_spec.rb +34 -0
  159. data/spec/models/media_type_spec.rb +15 -9
  160. data/spec/models/notification_formatting_dto_spec.rb +15 -9
  161. data/spec/models/notification_send_spec.rb +15 -9
  162. data/spec/models/notification_setting_dto_spec.rb +16 -10
  163. data/spec/models/profile_dto_spec.rb +15 -9
  164. data/spec/models/publish_dto_spec.rb +15 -9
  165. data/spec/models/publish_many_dto_spec.rb +15 -9
  166. data/spec/models/resize_mode_spec.rb +15 -9
  167. data/spec/models/scheduling_dto_spec.rb +15 -9
  168. data/spec/models/scheduling_type_spec.rb +15 -9
  169. data/spec/models/subscription_dto_spec.rb +15 -9
  170. data/spec/models/template_dto_spec.rb +15 -9
  171. data/spec/models/topic_dto_spec.rb +15 -9
  172. data/spec/models/update_profile_dto_spec.rb +15 -9
  173. data/spec/models/upsert_app_dto_spec.rb +15 -9
  174. data/spec/models/upsert_template_dto_spec.rb +15 -9
  175. data/spec/models/upsert_templates_dto_spec.rb +15 -9
  176. data/spec/models/upsert_user_dto_spec.rb +15 -9
  177. data/spec/models/upsert_users_dto_spec.rb +15 -9
  178. data/spec/models/user_dto_spec.rb +15 -9
  179. data/spec/spec_helper.rb +4 -5
  180. metadata +44 -9
  181. data/docs/InlineObject.md +0 -18
  182. data/notifo-1.0.0.gem +0 -0
  183. data/notifo-io-1.0.0.2.gem +0 -0
  184. data/notifo-io-1.0.0.gem +0 -0
  185. data/spec/models/inline_object_spec.rb +0 -34
@@ -1,17 +1,14 @@
1
1
  =begin
2
2
  #Notifo API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
5
 
6
- The version of the OpenAPI document: 1.0.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.1.0-SNAPSHOT
6
+ OpenAPI spec version: 1.0.0
10
7
 
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 3.0.24
11
10
  =end
12
11
 
13
- require 'cgi'
14
-
15
12
  module Notifo
16
13
  class UsersApi
17
14
  attr_accessor :api_client
@@ -20,9 +17,9 @@ module Notifo
20
17
  @api_client = api_client
21
18
  end
22
19
  # Remove an allowed topic.
23
- # @param app_id [String] The app where the users belong to.
24
- # @param id [String] The user id.
25
- # @param prefix [String] The topic prefix.
20
+ # @param app_id The app where the users belong to.
21
+ # @param id The user id.
22
+ # @param prefix The topic prefix.
26
23
  # @param [Hash] opts the optional parameters
27
24
  # @return [nil]
28
25
  def users_delete_allowed_topic(app_id, id, prefix, opts = {})
@@ -31,9 +28,9 @@ module Notifo
31
28
  end
32
29
 
33
30
  # Remove an allowed topic.
34
- # @param app_id [String] The app where the users belong to.
35
- # @param id [String] The user id.
36
- # @param prefix [String] The topic prefix.
31
+ # @param app_id The app where the users belong to.
32
+ # @param id The user id.
33
+ # @param prefix The topic prefix.
37
34
  # @param [Hash] opts the optional parameters
38
35
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
39
36
  def users_delete_allowed_topic_with_http_info(app_id, id, prefix, opts = {})
@@ -53,7 +50,7 @@ module Notifo
53
50
  fail ArgumentError, "Missing the required parameter 'prefix' when calling UsersApi.users_delete_allowed_topic"
54
51
  end
55
52
  # resource path
56
- local_var_path = '/api/apps/{appId}/users/{id}/allowed-topics/{prefix}'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'prefix' + '}', CGI.escape(prefix.to_s))
53
+ local_var_path = '/api/apps/{appId}/users/{id}/allowed-topics/{prefix}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'id' + '}', id.to_s).sub('{' + 'prefix' + '}', prefix.to_s)
57
54
 
58
55
  # query parameters
59
56
  query_params = opts[:query_params] || {}
@@ -67,35 +64,28 @@ module Notifo
67
64
  form_params = opts[:form_params] || {}
68
65
 
69
66
  # http body (model)
70
- post_body = opts[:debug_body]
67
+ post_body = opts[:body]
71
68
 
72
- # return_type
73
- return_type = opts[:debug_return_type]
69
+ return_type = opts[:return_type]
74
70
 
75
- # auth_names
76
- auth_names = opts[:debug_auth_names] || []
77
-
78
- new_options = opts.merge(
79
- :operation => :"UsersApi.users_delete_allowed_topic",
71
+ auth_names = opts[:auth_names] || []
72
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
80
73
  :header_params => header_params,
81
74
  :query_params => query_params,
82
75
  :form_params => form_params,
83
76
  :body => post_body,
84
77
  :auth_names => auth_names,
85
- :return_type => return_type
86
- )
78
+ :return_type => return_type)
87
79
 
88
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
89
80
  if @api_client.config.debugging
90
81
  @api_client.config.logger.debug "API called: UsersApi#users_delete_allowed_topic\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
91
82
  end
92
83
  return data, status_code, headers
93
84
  end
94
-
95
85
  # Remove a user subscriptions.
96
- # @param app_id [String] The app where the user belongs to.
97
- # @param id [String] The user id.
98
- # @param prefix [String] The topic prefix.
86
+ # @param app_id The app where the user belongs to.
87
+ # @param id The user id.
88
+ # @param prefix The topic prefix.
99
89
  # @param [Hash] opts the optional parameters
100
90
  # @return [nil]
101
91
  def users_delete_subscription(app_id, id, prefix, opts = {})
@@ -104,9 +94,9 @@ module Notifo
104
94
  end
105
95
 
106
96
  # Remove a user subscriptions.
107
- # @param app_id [String] The app where the user belongs to.
108
- # @param id [String] The user id.
109
- # @param prefix [String] The topic prefix.
97
+ # @param app_id The app where the user belongs to.
98
+ # @param id The user id.
99
+ # @param prefix The topic prefix.
110
100
  # @param [Hash] opts the optional parameters
111
101
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
112
102
  def users_delete_subscription_with_http_info(app_id, id, prefix, opts = {})
@@ -126,7 +116,7 @@ module Notifo
126
116
  fail ArgumentError, "Missing the required parameter 'prefix' when calling UsersApi.users_delete_subscription"
127
117
  end
128
118
  # resource path
129
- local_var_path = '/api/apps/{appId}/users/{id}/subscriptions/{prefix}'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'prefix' + '}', CGI.escape(prefix.to_s))
119
+ local_var_path = '/api/apps/{appId}/users/{id}/subscriptions/{prefix}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'id' + '}', id.to_s).sub('{' + 'prefix' + '}', prefix.to_s)
130
120
 
131
121
  # query parameters
132
122
  query_params = opts[:query_params] || {}
@@ -140,34 +130,27 @@ module Notifo
140
130
  form_params = opts[:form_params] || {}
141
131
 
142
132
  # http body (model)
143
- post_body = opts[:debug_body]
133
+ post_body = opts[:body]
144
134
 
145
- # return_type
146
- return_type = opts[:debug_return_type]
135
+ return_type = opts[:return_type]
147
136
 
148
- # auth_names
149
- auth_names = opts[:debug_auth_names] || []
150
-
151
- new_options = opts.merge(
152
- :operation => :"UsersApi.users_delete_subscription",
137
+ auth_names = opts[:auth_names] || []
138
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
153
139
  :header_params => header_params,
154
140
  :query_params => query_params,
155
141
  :form_params => form_params,
156
142
  :body => post_body,
157
143
  :auth_names => auth_names,
158
- :return_type => return_type
159
- )
144
+ :return_type => return_type)
160
145
 
161
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
162
146
  if @api_client.config.debugging
163
147
  @api_client.config.logger.debug "API called: UsersApi#users_delete_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
164
148
  end
165
149
  return data, status_code, headers
166
150
  end
167
-
168
151
  # Delete a user.
169
- # @param app_id [String] The app where the users belongs to.
170
- # @param id [String] The user id to delete.
152
+ # @param app_id The app where the users belongs to.
153
+ # @param id The user id to delete.
171
154
  # @param [Hash] opts the optional parameters
172
155
  # @return [ListResponseDtoOfUserDto]
173
156
  def users_delete_user(app_id, id, opts = {})
@@ -176,8 +159,8 @@ module Notifo
176
159
  end
177
160
 
178
161
  # Delete a user.
179
- # @param app_id [String] The app where the users belongs to.
180
- # @param id [String] The user id to delete.
162
+ # @param app_id The app where the users belongs to.
163
+ # @param id The user id to delete.
181
164
  # @param [Hash] opts the optional parameters
182
165
  # @return [Array<(ListResponseDtoOfUserDto, Integer, Hash)>] ListResponseDtoOfUserDto data, response status code and response headers
183
166
  def users_delete_user_with_http_info(app_id, id, opts = {})
@@ -193,7 +176,7 @@ module Notifo
193
176
  fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.users_delete_user"
194
177
  end
195
178
  # resource path
196
- local_var_path = '/api/apps/{appId}/users/{id}'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
179
+ local_var_path = '/api/apps/{appId}/users/{id}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'id' + '}', id.to_s)
197
180
 
198
181
  # query parameters
199
182
  query_params = opts[:query_params] || {}
@@ -207,34 +190,27 @@ module Notifo
207
190
  form_params = opts[:form_params] || {}
208
191
 
209
192
  # http body (model)
210
- post_body = opts[:debug_body]
211
-
212
- # return_type
213
- return_type = opts[:debug_return_type] || 'ListResponseDtoOfUserDto'
193
+ post_body = opts[:body]
214
194
 
215
- # auth_names
216
- auth_names = opts[:debug_auth_names] || []
195
+ return_type = opts[:return_type] || 'ListResponseDtoOfUserDto'
217
196
 
218
- new_options = opts.merge(
219
- :operation => :"UsersApi.users_delete_user",
197
+ auth_names = opts[:auth_names] || []
198
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
220
199
  :header_params => header_params,
221
200
  :query_params => query_params,
222
201
  :form_params => form_params,
223
202
  :body => post_body,
224
203
  :auth_names => auth_names,
225
- :return_type => return_type
226
- )
204
+ :return_type => return_type)
227
205
 
228
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
229
206
  if @api_client.config.debugging
230
207
  @api_client.config.logger.debug "API called: UsersApi#users_delete_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
231
208
  end
232
209
  return data, status_code, headers
233
210
  end
234
-
235
211
  # Query user subscriptions.
236
- # @param app_id [String] The app where the user belongs to.
237
- # @param id [String] The user id.
212
+ # @param app_id The app where the user belongs to.
213
+ # @param id The user id.
238
214
  # @param [Hash] opts the optional parameters
239
215
  # @option opts [String] :query The optional query to search for items.
240
216
  # @option opts [Integer] :take The number of items to return.
@@ -246,8 +222,8 @@ module Notifo
246
222
  end
247
223
 
248
224
  # Query user subscriptions.
249
- # @param app_id [String] The app where the user belongs to.
250
- # @param id [String] The user id.
225
+ # @param app_id The app where the user belongs to.
226
+ # @param id The user id.
251
227
  # @param [Hash] opts the optional parameters
252
228
  # @option opts [String] :query The optional query to search for items.
253
229
  # @option opts [Integer] :take The number of items to return.
@@ -266,7 +242,7 @@ module Notifo
266
242
  fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.users_get_subscriptions"
267
243
  end
268
244
  # resource path
269
- local_var_path = '/api/apps/{appId}/users/{id}/subscriptions'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
245
+ local_var_path = '/api/apps/{appId}/users/{id}/subscriptions'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'id' + '}', id.to_s)
270
246
 
271
247
  # query parameters
272
248
  query_params = opts[:query_params] || {}
@@ -283,34 +259,27 @@ module Notifo
283
259
  form_params = opts[:form_params] || {}
284
260
 
285
261
  # http body (model)
286
- post_body = opts[:debug_body]
287
-
288
- # return_type
289
- return_type = opts[:debug_return_type] || 'ListResponseDtoOfSubscriptionDto'
262
+ post_body = opts[:body]
290
263
 
291
- # auth_names
292
- auth_names = opts[:debug_auth_names] || []
264
+ return_type = opts[:return_type] || 'ListResponseDtoOfSubscriptionDto'
293
265
 
294
- new_options = opts.merge(
295
- :operation => :"UsersApi.users_get_subscriptions",
266
+ auth_names = opts[:auth_names] || []
267
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
296
268
  :header_params => header_params,
297
269
  :query_params => query_params,
298
270
  :form_params => form_params,
299
271
  :body => post_body,
300
272
  :auth_names => auth_names,
301
- :return_type => return_type
302
- )
273
+ :return_type => return_type)
303
274
 
304
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
305
275
  if @api_client.config.debugging
306
276
  @api_client.config.logger.debug "API called: UsersApi#users_get_subscriptions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
307
277
  end
308
278
  return data, status_code, headers
309
279
  end
310
-
311
280
  # Get a user.
312
- # @param app_id [String] The app where the user belongs to.
313
- # @param id [String] The user id.
281
+ # @param app_id The app where the user belongs to.
282
+ # @param id The user id.
314
283
  # @param [Hash] opts the optional parameters
315
284
  # @return [ListResponseDtoOfUserDto]
316
285
  def users_get_user(app_id, id, opts = {})
@@ -319,8 +288,8 @@ module Notifo
319
288
  end
320
289
 
321
290
  # Get a user.
322
- # @param app_id [String] The app where the user belongs to.
323
- # @param id [String] The user id.
291
+ # @param app_id The app where the user belongs to.
292
+ # @param id The user id.
324
293
  # @param [Hash] opts the optional parameters
325
294
  # @return [Array<(ListResponseDtoOfUserDto, Integer, Hash)>] ListResponseDtoOfUserDto data, response status code and response headers
326
295
  def users_get_user_with_http_info(app_id, id, opts = {})
@@ -336,7 +305,7 @@ module Notifo
336
305
  fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.users_get_user"
337
306
  end
338
307
  # resource path
339
- local_var_path = '/api/apps/{appId}/users/{id}'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
308
+ local_var_path = '/api/apps/{appId}/users/{id}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'id' + '}', id.to_s)
340
309
 
341
310
  # query parameters
342
311
  query_params = opts[:query_params] || {}
@@ -350,33 +319,26 @@ module Notifo
350
319
  form_params = opts[:form_params] || {}
351
320
 
352
321
  # http body (model)
353
- post_body = opts[:debug_body]
322
+ post_body = opts[:body]
354
323
 
355
- # return_type
356
- return_type = opts[:debug_return_type] || 'ListResponseDtoOfUserDto'
324
+ return_type = opts[:return_type] || 'ListResponseDtoOfUserDto'
357
325
 
358
- # auth_names
359
- auth_names = opts[:debug_auth_names] || []
360
-
361
- new_options = opts.merge(
362
- :operation => :"UsersApi.users_get_user",
326
+ auth_names = opts[:auth_names] || []
327
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
363
328
  :header_params => header_params,
364
329
  :query_params => query_params,
365
330
  :form_params => form_params,
366
331
  :body => post_body,
367
332
  :auth_names => auth_names,
368
- :return_type => return_type
369
- )
333
+ :return_type => return_type)
370
334
 
371
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
372
335
  if @api_client.config.debugging
373
336
  @api_client.config.logger.debug "API called: UsersApi#users_get_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
374
337
  end
375
338
  return data, status_code, headers
376
339
  end
377
-
378
340
  # Query users.
379
- # @param app_id [String] The app where the users belongs to.
341
+ # @param app_id The app where the users belongs to.
380
342
  # @param [Hash] opts the optional parameters
381
343
  # @option opts [String] :query The optional query to search for items.
382
344
  # @option opts [Integer] :take The number of items to return.
@@ -388,7 +350,7 @@ module Notifo
388
350
  end
389
351
 
390
352
  # Query users.
391
- # @param app_id [String] The app where the users belongs to.
353
+ # @param app_id The app where the users belongs to.
392
354
  # @param [Hash] opts the optional parameters
393
355
  # @option opts [String] :query The optional query to search for items.
394
356
  # @option opts [Integer] :take The number of items to return.
@@ -403,7 +365,7 @@ module Notifo
403
365
  fail ArgumentError, "Missing the required parameter 'app_id' when calling UsersApi.users_get_users"
404
366
  end
405
367
  # resource path
406
- local_var_path = '/api/apps/{appId}/users'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
368
+ local_var_path = '/api/apps/{appId}/users'.sub('{' + 'appId' + '}', app_id.to_s)
407
369
 
408
370
  # query parameters
409
371
  query_params = opts[:query_params] || {}
@@ -420,52 +382,49 @@ module Notifo
420
382
  form_params = opts[:form_params] || {}
421
383
 
422
384
  # http body (model)
423
- post_body = opts[:debug_body]
424
-
425
- # return_type
426
- return_type = opts[:debug_return_type] || 'ListResponseDtoOfUserDto'
385
+ post_body = opts[:body]
427
386
 
428
- # auth_names
429
- auth_names = opts[:debug_auth_names] || []
387
+ return_type = opts[:return_type] || 'ListResponseDtoOfUserDto'
430
388
 
431
- new_options = opts.merge(
432
- :operation => :"UsersApi.users_get_users",
389
+ auth_names = opts[:auth_names] || []
390
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
433
391
  :header_params => header_params,
434
392
  :query_params => query_params,
435
393
  :form_params => form_params,
436
394
  :body => post_body,
437
395
  :auth_names => auth_names,
438
- :return_type => return_type
439
- )
396
+ :return_type => return_type)
440
397
 
441
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
442
398
  if @api_client.config.debugging
443
399
  @api_client.config.logger.debug "API called: UsersApi#users_get_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
444
400
  end
445
401
  return data, status_code, headers
446
402
  end
447
-
448
403
  # Add an allowed topic.
449
- # @param app_id [String] The app where the users belong to.
450
- # @param id [String] The user id.
451
- # @param add_allowed_topic_dto [AddAllowedTopicDto] The upsert request.
404
+ # @param body The upsert request.
405
+ # @param app_id The app where the users belong to.
406
+ # @param id The user id.
452
407
  # @param [Hash] opts the optional parameters
453
408
  # @return [nil]
454
- def users_post_allowed_topic(app_id, id, add_allowed_topic_dto, opts = {})
455
- users_post_allowed_topic_with_http_info(app_id, id, add_allowed_topic_dto, opts)
409
+ def users_post_allowed_topic(body, app_id, id, opts = {})
410
+ users_post_allowed_topic_with_http_info(body, app_id, id, opts)
456
411
  nil
457
412
  end
458
413
 
459
414
  # Add an allowed topic.
460
- # @param app_id [String] The app where the users belong to.
461
- # @param id [String] The user id.
462
- # @param add_allowed_topic_dto [AddAllowedTopicDto] The upsert request.
415
+ # @param body The upsert request.
416
+ # @param app_id The app where the users belong to.
417
+ # @param id The user id.
463
418
  # @param [Hash] opts the optional parameters
464
419
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
465
- def users_post_allowed_topic_with_http_info(app_id, id, add_allowed_topic_dto, opts = {})
420
+ def users_post_allowed_topic_with_http_info(body, app_id, id, opts = {})
466
421
  if @api_client.config.debugging
467
422
  @api_client.config.logger.debug 'Calling API: UsersApi.users_post_allowed_topic ...'
468
423
  end
424
+ # verify the required parameter 'body' is set
425
+ if @api_client.config.client_side_validation && body.nil?
426
+ fail ArgumentError, "Missing the required parameter 'body' when calling UsersApi.users_post_allowed_topic"
427
+ end
469
428
  # verify the required parameter 'app_id' is set
470
429
  if @api_client.config.client_side_validation && app_id.nil?
471
430
  fail ArgumentError, "Missing the required parameter 'app_id' when calling UsersApi.users_post_allowed_topic"
@@ -474,12 +433,8 @@ module Notifo
474
433
  if @api_client.config.client_side_validation && id.nil?
475
434
  fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.users_post_allowed_topic"
476
435
  end
477
- # verify the required parameter 'add_allowed_topic_dto' is set
478
- if @api_client.config.client_side_validation && add_allowed_topic_dto.nil?
479
- fail ArgumentError, "Missing the required parameter 'add_allowed_topic_dto' when calling UsersApi.users_post_allowed_topic"
480
- end
481
436
  # resource path
482
- local_var_path = '/api/apps/{appId}/users/{id}/allowed-topics'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
437
+ local_var_path = '/api/apps/{appId}/users/{id}/allowed-topics'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'id' + '}', id.to_s)
483
438
 
484
439
  # query parameters
485
440
  query_params = opts[:query_params] || {}
@@ -495,52 +450,49 @@ module Notifo
495
450
  form_params = opts[:form_params] || {}
496
451
 
497
452
  # http body (model)
498
- post_body = opts[:debug_body] || @api_client.object_to_http_body(add_allowed_topic_dto)
453
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
499
454
 
500
- # return_type
501
- return_type = opts[:debug_return_type]
455
+ return_type = opts[:return_type]
502
456
 
503
- # auth_names
504
- auth_names = opts[:debug_auth_names] || []
505
-
506
- new_options = opts.merge(
507
- :operation => :"UsersApi.users_post_allowed_topic",
457
+ auth_names = opts[:auth_names] || []
458
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
508
459
  :header_params => header_params,
509
460
  :query_params => query_params,
510
461
  :form_params => form_params,
511
462
  :body => post_body,
512
463
  :auth_names => auth_names,
513
- :return_type => return_type
514
- )
464
+ :return_type => return_type)
515
465
 
516
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
517
466
  if @api_client.config.debugging
518
467
  @api_client.config.logger.debug "API called: UsersApi#users_post_allowed_topic\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
519
468
  end
520
469
  return data, status_code, headers
521
470
  end
522
-
523
471
  # Upsert a user subscriptions.
524
- # @param app_id [String] The app where the user belongs to.
525
- # @param id [String] The user id.
526
- # @param subscription_dto [SubscriptionDto] The subscription object.
472
+ # @param body The subscription object.
473
+ # @param app_id The app where the user belongs to.
474
+ # @param id The user id.
527
475
  # @param [Hash] opts the optional parameters
528
476
  # @return [nil]
529
- def users_post_subscription(app_id, id, subscription_dto, opts = {})
530
- users_post_subscription_with_http_info(app_id, id, subscription_dto, opts)
477
+ def users_post_subscription(body, app_id, id, opts = {})
478
+ users_post_subscription_with_http_info(body, app_id, id, opts)
531
479
  nil
532
480
  end
533
481
 
534
482
  # Upsert a user subscriptions.
535
- # @param app_id [String] The app where the user belongs to.
536
- # @param id [String] The user id.
537
- # @param subscription_dto [SubscriptionDto] The subscription object.
483
+ # @param body The subscription object.
484
+ # @param app_id The app where the user belongs to.
485
+ # @param id The user id.
538
486
  # @param [Hash] opts the optional parameters
539
487
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
540
- def users_post_subscription_with_http_info(app_id, id, subscription_dto, opts = {})
488
+ def users_post_subscription_with_http_info(body, app_id, id, opts = {})
541
489
  if @api_client.config.debugging
542
490
  @api_client.config.logger.debug 'Calling API: UsersApi.users_post_subscription ...'
543
491
  end
492
+ # verify the required parameter 'body' is set
493
+ if @api_client.config.client_side_validation && body.nil?
494
+ fail ArgumentError, "Missing the required parameter 'body' when calling UsersApi.users_post_subscription"
495
+ end
544
496
  # verify the required parameter 'app_id' is set
545
497
  if @api_client.config.client_side_validation && app_id.nil?
546
498
  fail ArgumentError, "Missing the required parameter 'app_id' when calling UsersApi.users_post_subscription"
@@ -549,12 +501,8 @@ module Notifo
549
501
  if @api_client.config.client_side_validation && id.nil?
550
502
  fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.users_post_subscription"
551
503
  end
552
- # verify the required parameter 'subscription_dto' is set
553
- if @api_client.config.client_side_validation && subscription_dto.nil?
554
- fail ArgumentError, "Missing the required parameter 'subscription_dto' when calling UsersApi.users_post_subscription"
555
- end
556
504
  # resource path
557
- local_var_path = '/api/apps/{appId}/users/{id}/subscriptions'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
505
+ local_var_path = '/api/apps/{appId}/users/{id}/subscriptions'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'id' + '}', id.to_s)
558
506
 
559
507
  # query parameters
560
508
  query_params = opts[:query_params] || {}
@@ -570,60 +518,53 @@ module Notifo
570
518
  form_params = opts[:form_params] || {}
571
519
 
572
520
  # http body (model)
573
- post_body = opts[:debug_body] || @api_client.object_to_http_body(subscription_dto)
574
-
575
- # return_type
576
- return_type = opts[:debug_return_type]
521
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
577
522
 
578
- # auth_names
579
- auth_names = opts[:debug_auth_names] || []
523
+ return_type = opts[:return_type]
580
524
 
581
- new_options = opts.merge(
582
- :operation => :"UsersApi.users_post_subscription",
525
+ auth_names = opts[:auth_names] || []
526
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
583
527
  :header_params => header_params,
584
528
  :query_params => query_params,
585
529
  :form_params => form_params,
586
530
  :body => post_body,
587
531
  :auth_names => auth_names,
588
- :return_type => return_type
589
- )
532
+ :return_type => return_type)
590
533
 
591
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
592
534
  if @api_client.config.debugging
593
535
  @api_client.config.logger.debug "API called: UsersApi#users_post_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
594
536
  end
595
537
  return data, status_code, headers
596
538
  end
597
-
598
539
  # Upsert users.
599
- # @param app_id [String] The app where the users belong to.
600
- # @param upsert_users_dto [UpsertUsersDto] The upsert request.
540
+ # @param body The upsert request.
541
+ # @param app_id The app where the users belong to.
601
542
  # @param [Hash] opts the optional parameters
602
543
  # @return [Array<UserDto>]
603
- def users_post_users(app_id, upsert_users_dto, opts = {})
604
- data, _status_code, _headers = users_post_users_with_http_info(app_id, upsert_users_dto, opts)
544
+ def users_post_users(body, app_id, opts = {})
545
+ data, _status_code, _headers = users_post_users_with_http_info(body, app_id, opts)
605
546
  data
606
547
  end
607
548
 
608
549
  # Upsert users.
609
- # @param app_id [String] The app where the users belong to.
610
- # @param upsert_users_dto [UpsertUsersDto] The upsert request.
550
+ # @param body The upsert request.
551
+ # @param app_id The app where the users belong to.
611
552
  # @param [Hash] opts the optional parameters
612
553
  # @return [Array<(Array<UserDto>, Integer, Hash)>] Array<UserDto> data, response status code and response headers
613
- def users_post_users_with_http_info(app_id, upsert_users_dto, opts = {})
554
+ def users_post_users_with_http_info(body, app_id, opts = {})
614
555
  if @api_client.config.debugging
615
556
  @api_client.config.logger.debug 'Calling API: UsersApi.users_post_users ...'
616
557
  end
558
+ # verify the required parameter 'body' is set
559
+ if @api_client.config.client_side_validation && body.nil?
560
+ fail ArgumentError, "Missing the required parameter 'body' when calling UsersApi.users_post_users"
561
+ end
617
562
  # verify the required parameter 'app_id' is set
618
563
  if @api_client.config.client_side_validation && app_id.nil?
619
564
  fail ArgumentError, "Missing the required parameter 'app_id' when calling UsersApi.users_post_users"
620
565
  end
621
- # verify the required parameter 'upsert_users_dto' is set
622
- if @api_client.config.client_side_validation && upsert_users_dto.nil?
623
- fail ArgumentError, "Missing the required parameter 'upsert_users_dto' when calling UsersApi.users_post_users"
624
- end
625
566
  # resource path
626
- local_var_path = '/api/apps/{appId}/users'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
567
+ local_var_path = '/api/apps/{appId}/users'.sub('{' + 'appId' + '}', app_id.to_s)
627
568
 
628
569
  # query parameters
629
570
  query_params = opts[:query_params] || {}
@@ -639,25 +580,19 @@ module Notifo
639
580
  form_params = opts[:form_params] || {}
640
581
 
641
582
  # http body (model)
642
- post_body = opts[:debug_body] || @api_client.object_to_http_body(upsert_users_dto)
643
-
644
- # return_type
645
- return_type = opts[:debug_return_type] || 'Array<UserDto>'
583
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
646
584
 
647
- # auth_names
648
- auth_names = opts[:debug_auth_names] || []
585
+ return_type = opts[:return_type] || 'Array<UserDto>'
649
586
 
650
- new_options = opts.merge(
651
- :operation => :"UsersApi.users_post_users",
587
+ auth_names = opts[:auth_names] || []
588
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
652
589
  :header_params => header_params,
653
590
  :query_params => query_params,
654
591
  :form_params => form_params,
655
592
  :body => post_body,
656
593
  :auth_names => auth_names,
657
- :return_type => return_type
658
- )
594
+ :return_type => return_type)
659
595
 
660
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
661
596
  if @api_client.config.debugging
662
597
  @api_client.config.logger.debug "API called: UsersApi#users_post_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
663
598
  end