bombbomb 2.0.0 → 2.0.831

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.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +7 -0
  3. data/README.md +16 -9
  4. data/Rakefile +8 -3
  5. data/bombbomb.gemspec +8 -17
  6. data/docs/AutomationsApi.md +52 -0
  7. data/docs/ClientGroupAssetMetaData.md +11 -0
  8. data/docs/InlineResponse200.md +1 -1
  9. data/docs/JerichoConfiguration.md +1 -0
  10. data/docs/PromptMonthlyPerformance.md +11 -0
  11. data/docs/PromptOverview.md +11 -0
  12. data/docs/PromptsApi.md +53 -1
  13. data/docs/TeamsApi.md +103 -5
  14. data/docs/UsersApi.md +100 -0
  15. data/git_push.sh +1 -13
  16. data/lib/bombbomb.rb +6 -14
  17. data/lib/bombbomb/api/accounts_api.rb +41 -68
  18. data/lib/bombbomb/api/automations_api.rb +71 -30
  19. data/lib/bombbomb/api/contacts_api.rb +47 -76
  20. data/lib/bombbomb/api/curriculum_api.rb +8 -27
  21. data/lib/bombbomb/api/emails_api.rb +53 -96
  22. data/lib/bombbomb/api/files_api.rb +32 -53
  23. data/lib/bombbomb/api/forms_api.rb +8 -21
  24. data/lib/bombbomb/api/integrations_api.rb +26 -51
  25. data/lib/bombbomb/api/lists_api.rb +32 -53
  26. data/lib/bombbomb/api/orders_api.rb +8 -21
  27. data/lib/bombbomb/api/prompts_api.rb +177 -139
  28. data/lib/bombbomb/api/socials_api.rb +80 -111
  29. data/lib/bombbomb/api/teams_api.rb +294 -209
  30. data/lib/bombbomb/api/users_api.rb +119 -0
  31. data/lib/bombbomb/api/utilities_api.rb +23 -44
  32. data/lib/bombbomb/api/videos_api.rb +38 -55
  33. data/lib/bombbomb/api/webhooks_api.rb +23 -50
  34. data/lib/bombbomb/api_client.rb +55 -45
  35. data/lib/bombbomb/api_error.rb +9 -18
  36. data/lib/bombbomb/configuration.rb +8 -13
  37. data/lib/bombbomb/models/bb_web_hook.rb +6 -17
  38. data/lib/bombbomb/models/client_group_asset_meta_data.rb +215 -0
  39. data/lib/bombbomb/models/curriculum.rb +6 -17
  40. data/lib/bombbomb/models/curriculum_user_progress.rb +6 -17
  41. data/lib/bombbomb/models/curriculum_with_progress.rb +6 -17
  42. data/lib/bombbomb/models/hosted_doc.rb +6 -17
  43. data/lib/bombbomb/models/inline_response_200.rb +7 -18
  44. data/lib/bombbomb/models/jericho_configuration.rb +24 -21
  45. data/lib/bombbomb/models/jericho_performance.rb +6 -17
  46. data/lib/bombbomb/models/o_auth_client.rb +6 -17
  47. data/lib/bombbomb/models/prompt_bot.rb +6 -17
  48. data/lib/bombbomb/models/prompt_monthly_performance.rb +219 -0
  49. data/lib/bombbomb/models/prompt_overview.rb +219 -0
  50. data/lib/bombbomb/models/prompt_social_prompt.rb +6 -17
  51. data/lib/bombbomb/models/sign_upload_request.rb +6 -17
  52. data/lib/bombbomb/models/sign_upload_response.rb +6 -17
  53. data/lib/bombbomb/models/string.rb +6 -17
  54. data/lib/bombbomb/models/team_public_representation.rb +6 -17
  55. data/lib/bombbomb/models/video_email_prompt.rb +6 -17
  56. data/lib/bombbomb/models/video_encoding_status_response.rb +6 -17
  57. data/lib/bombbomb/models/video_public_representation.rb +6 -17
  58. data/lib/bombbomb/models/video_recorder_method_response.rb +6 -17
  59. data/lib/bombbomb/version.rb +3 -14
  60. data/spec/api/users_api_spec.rb +57 -0
  61. data/spec/models/{inline_response_200_items_spec.rb → client_group_asset_meta_data_spec.rb} +8 -19
  62. data/spec/models/prompt_monthly_performance_spec.rb +60 -0
  63. data/spec/models/prompt_overview_spec.rb +60 -0
  64. metadata +31 -19
  65. data/spec/models/prompt_bot_bot_spec.rb +0 -113
@@ -3,21 +3,10 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.0
6
+ OpenAPI spec version: 2.0.831
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
-
10
- Licensed under the Apache License, Version 2.0 (the "License");
11
- you may not use this file except in compliance with the License.
12
- You may obtain a copy of the License at
13
-
14
- http://www.apache.org/licenses/LICENSE-2.0
15
-
16
- Unless required by applicable law or agreed to in writing, software
17
- distributed under the License is distributed on an "AS IS" BASIS,
18
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- See the License for the specific language governing permissions and
20
- limitations under the License.
9
+ Swagger Codegen version: 2.3.1
21
10
 
22
11
  =end
23
12
 
@@ -51,23 +40,21 @@ module BombBomb
51
40
  @api_client.config.logger.debug "Calling API: FilesApi.doc_host_delete ..."
52
41
  end
53
42
  # verify the required parameter 'doc_id' is set
54
- fail ArgumentError, "Missing the required parameter 'doc_id' when calling FilesApi.doc_host_delete" if doc_id.nil?
43
+ if @api_client.config.client_side_validation && doc_id.nil?
44
+ fail ArgumentError, "Missing the required parameter 'doc_id' when calling FilesApi.doc_host_delete"
45
+ end
55
46
  # resource path
56
- local_var_path = "/files/{docId}".sub('{format}','json').sub('{' + 'docId' + '}', doc_id.to_s)
47
+ local_var_path = "/files/{docId}".sub('{' + 'docId' + '}', doc_id.to_s)
57
48
 
58
49
  # query parameters
59
50
  query_params = {}
60
51
 
61
52
  # header parameters
62
53
  header_params = {}
63
-
64
54
  # HTTP header 'Accept' (if needed)
65
- local_header_accept = ['application/json']
66
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
67
-
55
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
68
56
  # HTTP header 'Content-Type'
69
- local_header_content_type = ['application/x-www-form-urlencoded']
70
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
57
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
71
58
 
72
59
  # form parameters
73
60
  form_params = {}
@@ -107,23 +94,21 @@ module BombBomb
107
94
  @api_client.config.logger.debug "Calling API: FilesApi.doc_host_get ..."
108
95
  end
109
96
  # verify the required parameter 'doc_id' is set
110
- fail ArgumentError, "Missing the required parameter 'doc_id' when calling FilesApi.doc_host_get" if doc_id.nil?
97
+ if @api_client.config.client_side_validation && doc_id.nil?
98
+ fail ArgumentError, "Missing the required parameter 'doc_id' when calling FilesApi.doc_host_get"
99
+ end
111
100
  # resource path
112
- local_var_path = "/files/{docId}".sub('{format}','json').sub('{' + 'docId' + '}', doc_id.to_s)
101
+ local_var_path = "/files/{docId}".sub('{' + 'docId' + '}', doc_id.to_s)
113
102
 
114
103
  # query parameters
115
104
  query_params = {}
116
105
 
117
106
  # header parameters
118
107
  header_params = {}
119
-
120
108
  # HTTP header 'Accept' (if needed)
121
- local_header_accept = ['application/json']
122
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
123
-
109
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
124
110
  # HTTP header 'Content-Type'
125
- local_header_content_type = ['application/x-www-form-urlencoded']
126
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
111
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
127
112
 
128
113
  # form parameters
129
114
  form_params = {}
@@ -162,21 +147,17 @@ module BombBomb
162
147
  @api_client.config.logger.debug "Calling API: FilesApi.doc_host_list ..."
163
148
  end
164
149
  # resource path
165
- local_var_path = "/files".sub('{format}','json')
150
+ local_var_path = "/files"
166
151
 
167
152
  # query parameters
168
153
  query_params = {}
169
154
 
170
155
  # header parameters
171
156
  header_params = {}
172
-
173
157
  # HTTP header 'Accept' (if needed)
174
- local_header_accept = ['application/json']
175
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
176
-
158
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
177
159
  # HTTP header 'Content-Type'
178
- local_header_content_type = ['application/x-www-form-urlencoded']
179
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
160
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
180
161
 
181
162
  # form parameters
182
163
  form_params = {}
@@ -217,23 +198,21 @@ module BombBomb
217
198
  @api_client.config.logger.debug "Calling API: FilesApi.doc_host_upload_v2 ..."
218
199
  end
219
200
  # verify the required parameter 'file' is set
220
- fail ArgumentError, "Missing the required parameter 'file' when calling FilesApi.doc_host_upload_v2" if file.nil?
201
+ if @api_client.config.client_side_validation && file.nil?
202
+ fail ArgumentError, "Missing the required parameter 'file' when calling FilesApi.doc_host_upload_v2"
203
+ end
221
204
  # resource path
222
- local_var_path = "/files".sub('{format}','json')
205
+ local_var_path = "/files"
223
206
 
224
207
  # query parameters
225
208
  query_params = {}
226
209
 
227
210
  # header parameters
228
211
  header_params = {}
229
-
230
212
  # HTTP header 'Accept' (if needed)
231
- local_header_accept = ['application/json']
232
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
233
-
213
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
234
214
  # HTTP header 'Content-Type'
235
- local_header_content_type = ['application/x-www-form-urlencoded']
236
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
215
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
237
216
 
238
217
  # form parameters
239
218
  form_params = {}
@@ -279,11 +258,15 @@ module BombBomb
279
258
  @api_client.config.logger.debug "Calling API: FilesApi.get_hosted_images_paged ..."
280
259
  end
281
260
  # verify the required parameter 'page_size' is set
282
- fail ArgumentError, "Missing the required parameter 'page_size' when calling FilesApi.get_hosted_images_paged" if page_size.nil?
261
+ if @api_client.config.client_side_validation && page_size.nil?
262
+ fail ArgumentError, "Missing the required parameter 'page_size' when calling FilesApi.get_hosted_images_paged"
263
+ end
283
264
  # verify the required parameter 'page' is set
284
- fail ArgumentError, "Missing the required parameter 'page' when calling FilesApi.get_hosted_images_paged" if page.nil?
265
+ if @api_client.config.client_side_validation && page.nil?
266
+ fail ArgumentError, "Missing the required parameter 'page' when calling FilesApi.get_hosted_images_paged"
267
+ end
285
268
  # resource path
286
- local_var_path = "/files/images/paged".sub('{format}','json')
269
+ local_var_path = "/files/images/paged"
287
270
 
288
271
  # query parameters
289
272
  query_params = {}
@@ -293,14 +276,10 @@ module BombBomb
293
276
 
294
277
  # header parameters
295
278
  header_params = {}
296
-
297
279
  # HTTP header 'Accept' (if needed)
298
- local_header_accept = ['application/json']
299
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
300
-
280
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
301
281
  # HTTP header 'Content-Type'
302
- local_header_content_type = ['application/x-www-form-urlencoded']
303
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
282
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
304
283
 
305
284
  # form parameters
306
285
  form_params = {}
@@ -3,21 +3,10 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.0
6
+ OpenAPI spec version: 2.0.831
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
-
10
- Licensed under the Apache License, Version 2.0 (the "License");
11
- you may not use this file except in compliance with the License.
12
- You may obtain a copy of the License at
13
-
14
- http://www.apache.org/licenses/LICENSE-2.0
15
-
16
- Unless required by applicable law or agreed to in writing, software
17
- distributed under the License is distributed on an "AS IS" BASIS,
18
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- See the License for the specific language governing permissions and
20
- limitations under the License.
9
+ Swagger Codegen version: 2.3.1
21
10
 
22
11
  =end
23
12
 
@@ -51,23 +40,21 @@ module BombBomb
51
40
  @api_client.config.logger.debug "Calling API: FormsApi.get_form_tracking_as_csv ..."
52
41
  end
53
42
  # verify the required parameter 'id' is set
54
- fail ArgumentError, "Missing the required parameter 'id' when calling FormsApi.get_form_tracking_as_csv" if id.nil?
43
+ if @api_client.config.client_side_validation && id.nil?
44
+ fail ArgumentError, "Missing the required parameter 'id' when calling FormsApi.get_form_tracking_as_csv"
45
+ end
55
46
  # resource path
56
- local_var_path = "/forms/{id}/tracking/export".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
47
+ local_var_path = "/forms/{id}/tracking/export".sub('{' + 'id' + '}', id.to_s)
57
48
 
58
49
  # query parameters
59
50
  query_params = {}
60
51
 
61
52
  # header parameters
62
53
  header_params = {}
63
-
64
54
  # HTTP header 'Accept' (if needed)
65
- local_header_accept = ['application/json']
66
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
67
-
55
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
68
56
  # HTTP header 'Content-Type'
69
- local_header_content_type = ['application/x-www-form-urlencoded']
70
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
57
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
71
58
 
72
59
  # form parameters
73
60
  form_params = {}
@@ -3,21 +3,10 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.0
6
+ OpenAPI spec version: 2.0.831
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
-
10
- Licensed under the Apache License, Version 2.0 (the "License");
11
- you may not use this file except in compliance with the License.
12
- You may obtain a copy of the License at
13
-
14
- http://www.apache.org/licenses/LICENSE-2.0
15
-
16
- Unless required by applicable law or agreed to in writing, software
17
- distributed under the License is distributed on an "AS IS" BASIS,
18
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- See the License for the specific language governing permissions and
20
- limitations under the License.
9
+ Swagger Codegen version: 2.3.1
21
10
 
22
11
  =end
23
12
 
@@ -61,23 +50,21 @@ module BombBomb
61
50
  @api_client.config.logger.debug "Calling API: IntegrationsApi.connect_integration ..."
62
51
  end
63
52
  # verify the required parameter 'code' is set
64
- fail ArgumentError, "Missing the required parameter 'code' when calling IntegrationsApi.connect_integration" if code.nil?
53
+ if @api_client.config.client_side_validation && code.nil?
54
+ fail ArgumentError, "Missing the required parameter 'code' when calling IntegrationsApi.connect_integration"
55
+ end
65
56
  # resource path
66
- local_var_path = "/integrations".sub('{format}','json')
57
+ local_var_path = "/integrations"
67
58
 
68
59
  # query parameters
69
60
  query_params = {}
70
61
 
71
62
  # header parameters
72
63
  header_params = {}
73
-
74
64
  # HTTP header 'Accept' (if needed)
75
- local_header_accept = ['application/json']
76
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
77
-
65
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
78
66
  # HTTP header 'Content-Type'
79
- local_header_content_type = ['application/x-www-form-urlencoded']
80
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
67
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
81
68
 
82
69
  # form parameters
83
70
  form_params = {}
@@ -125,21 +112,17 @@ module BombBomb
125
112
  @api_client.config.logger.debug "Calling API: IntegrationsApi.delete_integration ..."
126
113
  end
127
114
  # resource path
128
- local_var_path = "/integrations".sub('{format}','json')
115
+ local_var_path = "/integrations"
129
116
 
130
117
  # query parameters
131
118
  query_params = {}
132
119
 
133
120
  # header parameters
134
121
  header_params = {}
135
-
136
122
  # HTTP header 'Accept' (if needed)
137
- local_header_accept = ['application/json']
138
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
139
-
123
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
140
124
  # HTTP header 'Content-Type'
141
- local_header_content_type = ['application/x-www-form-urlencoded']
142
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
125
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
143
126
 
144
127
  # form parameters
145
128
  form_params = {}
@@ -181,23 +164,21 @@ module BombBomb
181
164
  @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integration_health ..."
182
165
  end
183
166
  # verify the required parameter 'code' is set
184
- fail ArgumentError, "Missing the required parameter 'code' when calling IntegrationsApi.get_integration_health" if code.nil?
167
+ if @api_client.config.client_side_validation && code.nil?
168
+ fail ArgumentError, "Missing the required parameter 'code' when calling IntegrationsApi.get_integration_health"
169
+ end
185
170
  # resource path
186
- local_var_path = "/integrations/health/{code}".sub('{format}','json').sub('{' + 'code' + '}', code.to_s)
171
+ local_var_path = "/integrations/health/{code}".sub('{' + 'code' + '}', code.to_s)
187
172
 
188
173
  # query parameters
189
174
  query_params = {}
190
175
 
191
176
  # header parameters
192
177
  header_params = {}
193
-
194
178
  # HTTP header 'Accept' (if needed)
195
- local_header_accept = ['application/json']
196
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
197
-
179
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
198
180
  # HTTP header 'Content-Type'
199
- local_header_content_type = ['application/x-www-form-urlencoded']
200
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
181
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
201
182
 
202
183
  # form parameters
203
184
  form_params = {}
@@ -237,9 +218,11 @@ module BombBomb
237
218
  @api_client.config.logger.debug "Calling API: IntegrationsApi.get_integration_page_components ..."
238
219
  end
239
220
  # verify the required parameter 'integration_name' is set
240
- fail ArgumentError, "Missing the required parameter 'integration_name' when calling IntegrationsApi.get_integration_page_components" if integration_name.nil?
221
+ if @api_client.config.client_side_validation && integration_name.nil?
222
+ fail ArgumentError, "Missing the required parameter 'integration_name' when calling IntegrationsApi.get_integration_page_components"
223
+ end
241
224
  # resource path
242
- local_var_path = "/integrations/pageComponents".sub('{format}','json')
225
+ local_var_path = "/integrations/pageComponents"
243
226
 
244
227
  # query parameters
245
228
  query_params = {}
@@ -247,14 +230,10 @@ module BombBomb
247
230
 
248
231
  # header parameters
249
232
  header_params = {}
250
-
251
233
  # HTTP header 'Accept' (if needed)
252
- local_header_accept = ['application/json']
253
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
254
-
234
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
255
235
  # HTTP header 'Content-Type'
256
- local_header_content_type = ['application/x-www-form-urlencoded']
257
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
236
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
258
237
 
259
238
  # form parameters
260
239
  form_params = {}
@@ -294,7 +273,7 @@ module BombBomb
294
273
  @api_client.config.logger.debug "Calling API: IntegrationsApi.sync_users_integrated_lists ..."
295
274
  end
296
275
  # resource path
297
- local_var_path = "/integrations/sync".sub('{format}','json')
276
+ local_var_path = "/integrations/sync"
298
277
 
299
278
  # query parameters
300
279
  query_params = {}
@@ -302,14 +281,10 @@ module BombBomb
302
281
 
303
282
  # header parameters
304
283
  header_params = {}
305
-
306
284
  # HTTP header 'Accept' (if needed)
307
- local_header_accept = ['application/json']
308
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
309
-
285
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
310
286
  # HTTP header 'Content-Type'
311
- local_header_content_type = ['application/x-www-form-urlencoded']
312
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
287
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
313
288
 
314
289
  # form parameters
315
290
  form_params = {}
@@ -3,21 +3,10 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.0
6
+ OpenAPI spec version: 2.0.831
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
-
10
- Licensed under the Apache License, Version 2.0 (the "License");
11
- you may not use this file except in compliance with the License.
12
- You may obtain a copy of the License at
13
-
14
- http://www.apache.org/licenses/LICENSE-2.0
15
-
16
- Unless required by applicable law or agreed to in writing, software
17
- distributed under the License is distributed on an "AS IS" BASIS,
18
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- See the License for the specific language governing permissions and
20
- limitations under the License.
9
+ Swagger Codegen version: 2.3.1
21
10
 
22
11
  =end
23
12
 
@@ -51,23 +40,21 @@ module BombBomb
51
40
  @api_client.config.logger.debug "Calling API: ListsApi.add_new_list ..."
52
41
  end
53
42
  # verify the required parameter 'list_name' is set
54
- fail ArgumentError, "Missing the required parameter 'list_name' when calling ListsApi.add_new_list" if list_name.nil?
43
+ if @api_client.config.client_side_validation && list_name.nil?
44
+ fail ArgumentError, "Missing the required parameter 'list_name' when calling ListsApi.add_new_list"
45
+ end
55
46
  # resource path
56
- local_var_path = "/lists/".sub('{format}','json')
47
+ local_var_path = "/lists/"
57
48
 
58
49
  # query parameters
59
50
  query_params = {}
60
51
 
61
52
  # header parameters
62
53
  header_params = {}
63
-
64
54
  # HTTP header 'Accept' (if needed)
65
- local_header_accept = ['application/json']
66
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
67
-
55
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
68
56
  # HTTP header 'Content-Type'
69
- local_header_content_type = ['application/x-www-form-urlencoded']
70
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
57
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
71
58
 
72
59
  # form parameters
73
60
  form_params = {}
@@ -108,23 +95,21 @@ module BombBomb
108
95
  @api_client.config.logger.debug "Calling API: ListsApi.clear_list ..."
109
96
  end
110
97
  # verify the required parameter 'list_id' is set
111
- fail ArgumentError, "Missing the required parameter 'list_id' when calling ListsApi.clear_list" if list_id.nil?
98
+ if @api_client.config.client_side_validation && list_id.nil?
99
+ fail ArgumentError, "Missing the required parameter 'list_id' when calling ListsApi.clear_list"
100
+ end
112
101
  # resource path
113
- local_var_path = "/lists/{listId}/clear".sub('{format}','json').sub('{' + 'listId' + '}', list_id.to_s)
102
+ local_var_path = "/lists/{listId}/clear".sub('{' + 'listId' + '}', list_id.to_s)
114
103
 
115
104
  # query parameters
116
105
  query_params = {}
117
106
 
118
107
  # header parameters
119
108
  header_params = {}
120
-
121
109
  # HTTP header 'Accept' (if needed)
122
- local_header_accept = ['application/json']
123
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
124
-
110
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
125
111
  # HTTP header 'Content-Type'
126
- local_header_content_type = ['application/x-www-form-urlencoded']
127
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
112
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
128
113
 
129
114
  # form parameters
130
115
  form_params = {}
@@ -166,25 +151,25 @@ module BombBomb
166
151
  @api_client.config.logger.debug "Calling API: ListsApi.copy_list_contacts ..."
167
152
  end
168
153
  # verify the required parameter 'from_list_id' is set
169
- fail ArgumentError, "Missing the required parameter 'from_list_id' when calling ListsApi.copy_list_contacts" if from_list_id.nil?
154
+ if @api_client.config.client_side_validation && from_list_id.nil?
155
+ fail ArgumentError, "Missing the required parameter 'from_list_id' when calling ListsApi.copy_list_contacts"
156
+ end
170
157
  # verify the required parameter 'list_id' is set
171
- fail ArgumentError, "Missing the required parameter 'list_id' when calling ListsApi.copy_list_contacts" if list_id.nil?
158
+ if @api_client.config.client_side_validation && list_id.nil?
159
+ fail ArgumentError, "Missing the required parameter 'list_id' when calling ListsApi.copy_list_contacts"
160
+ end
172
161
  # resource path
173
- local_var_path = "/lists/{listId}/copy".sub('{format}','json').sub('{' + 'listId' + '}', list_id.to_s)
162
+ local_var_path = "/lists/{listId}/copy".sub('{' + 'listId' + '}', list_id.to_s)
174
163
 
175
164
  # query parameters
176
165
  query_params = {}
177
166
 
178
167
  # header parameters
179
168
  header_params = {}
180
-
181
169
  # HTTP header 'Accept' (if needed)
182
- local_header_accept = ['application/json']
183
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
184
-
170
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
185
171
  # HTTP header 'Content-Type'
186
- local_header_content_type = ['application/x-www-form-urlencoded']
187
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
172
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
188
173
 
189
174
  # form parameters
190
175
  form_params = {}
@@ -223,21 +208,17 @@ module BombBomb
223
208
  @api_client.config.logger.debug "Calling API: ListsApi.get_all_lists ..."
224
209
  end
225
210
  # resource path
226
- local_var_path = "/lists/".sub('{format}','json')
211
+ local_var_path = "/lists/"
227
212
 
228
213
  # query parameters
229
214
  query_params = {}
230
215
 
231
216
  # header parameters
232
217
  header_params = {}
233
-
234
218
  # HTTP header 'Accept' (if needed)
235
- local_header_accept = ['application/json']
236
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
237
-
219
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
238
220
  # HTTP header 'Content-Type'
239
- local_header_content_type = ['application/x-www-form-urlencoded']
240
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
221
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
241
222
 
242
223
  # form parameters
243
224
  form_params = {}
@@ -277,23 +258,21 @@ module BombBomb
277
258
  @api_client.config.logger.debug "Calling API: ListsApi.suppress_all_in_list ..."
278
259
  end
279
260
  # verify the required parameter 'list_id' is set
280
- fail ArgumentError, "Missing the required parameter 'list_id' when calling ListsApi.suppress_all_in_list" if list_id.nil?
261
+ if @api_client.config.client_side_validation && list_id.nil?
262
+ fail ArgumentError, "Missing the required parameter 'list_id' when calling ListsApi.suppress_all_in_list"
263
+ end
281
264
  # resource path
282
- local_var_path = "/lists/{listId}/suppress".sub('{format}','json').sub('{' + 'listId' + '}', list_id.to_s)
265
+ local_var_path = "/lists/{listId}/suppress".sub('{' + 'listId' + '}', list_id.to_s)
283
266
 
284
267
  # query parameters
285
268
  query_params = {}
286
269
 
287
270
  # header parameters
288
271
  header_params = {}
289
-
290
272
  # HTTP header 'Accept' (if needed)
291
- local_header_accept = ['application/json']
292
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
293
-
273
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
294
274
  # HTTP header 'Content-Type'
295
- local_header_content_type = ['application/x-www-form-urlencoded']
296
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
275
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
297
276
 
298
277
  # form parameters
299
278
  form_params = {}