rustici_software_cloud_v2 1.0.2 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -4
  3. data/lib/rustici_software_cloud_v2.rb +1 -0
  4. data/lib/rustici_software_cloud_v2/api/about_api.rb +5 -5
  5. data/lib/rustici_software_cloud_v2/api/application_management_api.rb +77 -79
  6. data/lib/rustici_software_cloud_v2/api/authentication_api.rb +12 -10
  7. data/lib/rustici_software_cloud_v2/api/course_api.rb +197 -140
  8. data/lib/rustici_software_cloud_v2/api/dispatch_api.rb +247 -195
  9. data/lib/rustici_software_cloud_v2/api/invitations_api.rb +104 -85
  10. data/lib/rustici_software_cloud_v2/api/learner_api.rb +50 -35
  11. data/lib/rustici_software_cloud_v2/api/ping_api.rb +5 -7
  12. data/lib/rustici_software_cloud_v2/api/registration_api.rb +262 -150
  13. data/lib/rustici_software_cloud_v2/api/reporting_api.rb +21 -17
  14. data/lib/rustici_software_cloud_v2/api/xapi_api.rb +62 -51
  15. data/lib/rustici_software_cloud_v2/api/zoomi_api.rb +53 -42
  16. data/lib/rustici_software_cloud_v2/api_client.rb +1 -0
  17. data/lib/rustici_software_cloud_v2/api_error.rb +1 -0
  18. data/lib/rustici_software_cloud_v2/configuration.rb +1 -0
  19. data/lib/rustici_software_cloud_v2/models/about_schema.rb +7 -11
  20. data/lib/rustici_software_cloud_v2/models/activity_result_schema.rb +13 -16
  21. data/lib/rustici_software_cloud_v2/models/application_list_schema.rb +7 -11
  22. data/lib/rustici_software_cloud_v2/models/application_schema.rb +7 -11
  23. data/lib/rustici_software_cloud_v2/models/application_token.rb +7 -11
  24. data/lib/rustici_software_cloud_v2/models/batch_tags_schema.rb +9 -13
  25. data/lib/rustici_software_cloud_v2/models/comment_schema.rb +7 -11
  26. data/lib/rustici_software_cloud_v2/models/completion_amount_schema.rb +7 -11
  27. data/lib/rustici_software_cloud_v2/models/course_activity_schema.rb +10 -13
  28. data/lib/rustici_software_cloud_v2/models/course_list_non_paged_schema.rb +7 -11
  29. data/lib/rustici_software_cloud_v2/models/course_list_schema.rb +7 -11
  30. data/lib/rustici_software_cloud_v2/models/course_reference_schema.rb +7 -10
  31. data/lib/rustici_software_cloud_v2/models/course_schema.rb +10 -13
  32. data/lib/rustici_software_cloud_v2/models/create_dispatch_id_schema.rb +12 -16
  33. data/lib/rustici_software_cloud_v2/models/create_dispatch_list_schema.rb +7 -11
  34. data/lib/rustici_software_cloud_v2/models/create_dispatch_schema.rb +9 -13
  35. data/lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb +10 -14
  36. data/lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb +9 -13
  37. data/lib/rustici_software_cloud_v2/models/create_registration_schema.rb +10 -14
  38. data/lib/rustici_software_cloud_v2/models/credential_created_schema.rb +7 -11
  39. data/lib/rustici_software_cloud_v2/models/credential_list_schema.rb +7 -11
  40. data/lib/rustici_software_cloud_v2/models/credential_request_schema.rb +7 -11
  41. data/lib/rustici_software_cloud_v2/models/credential_schema.rb +7 -11
  42. data/lib/rustici_software_cloud_v2/models/destination_id_schema.rb +7 -11
  43. data/lib/rustici_software_cloud_v2/models/destination_list_schema.rb +7 -11
  44. data/lib/rustici_software_cloud_v2/models/destination_schema.rb +7 -11
  45. data/lib/rustici_software_cloud_v2/models/dispatch_id_schema.rb +7 -11
  46. data/lib/rustici_software_cloud_v2/models/dispatch_list_schema.rb +7 -11
  47. data/lib/rustici_software_cloud_v2/models/dispatch_registration_count_schema.rb +7 -11
  48. data/lib/rustici_software_cloud_v2/models/dispatch_schema.rb +7 -11
  49. data/lib/rustici_software_cloud_v2/models/enabled_schema.rb +7 -11
  50. data/lib/rustici_software_cloud_v2/models/import_fetch_request_schema.rb +8 -11
  51. data/lib/rustici_software_cloud_v2/models/import_job_result_schema.rb +10 -13
  52. data/lib/rustici_software_cloud_v2/models/import_result_schema.rb +7 -11
  53. data/lib/rustici_software_cloud_v2/models/integer_result_schema.rb +8 -12
  54. data/lib/rustici_software_cloud_v2/models/invitation_email_schema.rb +8 -11
  55. data/lib/rustici_software_cloud_v2/models/invitation_job_status_schema.rb +10 -13
  56. data/lib/rustici_software_cloud_v2/models/invitation_summary_list.rb +7 -11
  57. data/lib/rustici_software_cloud_v2/models/invitation_summary_schema.rb +7 -11
  58. data/lib/rustici_software_cloud_v2/models/item_value_pair_schema.rb +7 -11
  59. data/lib/rustici_software_cloud_v2/models/launch_auth_options_schema.rb +7 -11
  60. data/lib/rustici_software_cloud_v2/models/launch_auth_schema.rb +11 -14
  61. data/lib/rustici_software_cloud_v2/models/launch_history_list_schema.rb +7 -11
  62. data/lib/rustici_software_cloud_v2/models/launch_history_schema.rb +15 -18
  63. data/lib/rustici_software_cloud_v2/models/launch_link_request_schema.rb +8 -12
  64. data/lib/rustici_software_cloud_v2/models/launch_link_schema.rb +8 -12
  65. data/lib/rustici_software_cloud_v2/models/learner_preference_schema.rb +7 -11
  66. data/lib/rustici_software_cloud_v2/models/learner_schema.rb +8 -12
  67. data/lib/rustici_software_cloud_v2/models/message_schema.rb +8 -12
  68. data/lib/rustici_software_cloud_v2/models/metadata_schema.rb +7 -11
  69. data/lib/rustici_software_cloud_v2/models/objective_schema.rb +19 -22
  70. data/lib/rustici_software_cloud_v2/models/permissions_schema.rb +7 -11
  71. data/lib/rustici_software_cloud_v2/models/ping_schema.rb +7 -11
  72. data/lib/rustici_software_cloud_v2/models/post_back_schema.rb +15 -18
  73. data/lib/rustici_software_cloud_v2/models/private_invitation_list.rb +7 -11
  74. data/lib/rustici_software_cloud_v2/models/private_invitation_schema.rb +7 -11
  75. data/lib/rustici_software_cloud_v2/models/public_invitation_list.rb +7 -11
  76. data/lib/rustici_software_cloud_v2/models/public_invitation_schema.rb +7 -11
  77. data/lib/rustici_software_cloud_v2/models/registration_completion.rb +13 -4
  78. data/lib/rustici_software_cloud_v2/models/registration_list_schema.rb +8 -12
  79. data/lib/rustici_software_cloud_v2/models/registration_schema.rb +7 -11
  80. data/lib/rustici_software_cloud_v2/models/registration_success.rb +13 -4
  81. data/lib/rustici_software_cloud_v2/models/reportage_account_info_schema.rb +7 -11
  82. data/lib/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.rb +7 -11
  83. data/lib/rustici_software_cloud_v2/models/reportage_auth_token_schema.rb +7 -11
  84. data/lib/rustici_software_cloud_v2/models/reportage_link_schema.rb +7 -11
  85. data/lib/rustici_software_cloud_v2/models/response_error.rb +8 -12
  86. data/lib/rustici_software_cloud_v2/models/runtime_interaction_schema.rb +10 -13
  87. data/lib/rustici_software_cloud_v2/models/runtime_objective_schema.rb +15 -18
  88. data/lib/rustici_software_cloud_v2/models/runtime_schema.rb +11 -14
  89. data/lib/rustici_software_cloud_v2/models/score_schema.rb +7 -11
  90. data/lib/rustici_software_cloud_v2/models/setting_item.rb +10 -13
  91. data/lib/rustici_software_cloud_v2/models/setting_list_schema.rb +8 -12
  92. data/lib/rustici_software_cloud_v2/models/setting_metadata.rb +11 -14
  93. data/lib/rustici_software_cloud_v2/models/setting_valid_value.rb +7 -11
  94. data/lib/rustici_software_cloud_v2/models/settings_individual_schema.rb +7 -11
  95. data/lib/rustici_software_cloud_v2/models/settings_post_schema.rb +7 -11
  96. data/lib/rustici_software_cloud_v2/models/shared_data_entry_schema.rb +7 -11
  97. data/lib/rustici_software_cloud_v2/models/static_properties_schema.rb +7 -11
  98. data/lib/rustici_software_cloud_v2/models/string_result_schema.rb +8 -12
  99. data/lib/rustici_software_cloud_v2/models/tag_list_schema.rb +7 -11
  100. data/lib/rustici_software_cloud_v2/models/title_schema.rb +7 -11
  101. data/lib/rustici_software_cloud_v2/models/token_request_schema.rb +9 -13
  102. data/lib/rustici_software_cloud_v2/models/update_dispatch_schema.rb +7 -11
  103. data/lib/rustici_software_cloud_v2/models/user_invitation_list.rb +7 -11
  104. data/lib/rustici_software_cloud_v2/models/user_invitation_schema.rb +7 -11
  105. data/lib/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.rb +7 -10
  106. data/lib/rustici_software_cloud_v2/models/xapi_account.rb +9 -12
  107. data/lib/rustici_software_cloud_v2/models/xapi_activity.rb +9 -12
  108. data/lib/rustici_software_cloud_v2/models/xapi_activity_definition.rb +10 -13
  109. data/lib/rustici_software_cloud_v2/models/xapi_agent_group.rb +11 -13
  110. data/lib/rustici_software_cloud_v2/models/xapi_attachment.rb +14 -17
  111. data/lib/rustici_software_cloud_v2/models/xapi_context.rb +8 -11
  112. data/lib/rustici_software_cloud_v2/models/xapi_context_activity.rb +7 -10
  113. data/lib/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.rb +10 -13
  114. data/lib/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.rb +10 -13
  115. data/lib/rustici_software_cloud_v2/models/xapi_credential_post_schema.rb +12 -16
  116. data/lib/rustici_software_cloud_v2/models/xapi_credential_put_schema.rb +7 -11
  117. data/lib/rustici_software_cloud_v2/models/xapi_credential_schema.rb +12 -16
  118. data/lib/rustici_software_cloud_v2/models/xapi_credentials_list_schema.rb +8 -12
  119. data/lib/rustici_software_cloud_v2/models/xapi_endpoint_schema.rb +7 -11
  120. data/lib/rustici_software_cloud_v2/models/xapi_interaction_component.rb +9 -12
  121. data/lib/rustici_software_cloud_v2/models/xapi_result.rb +8 -11
  122. data/lib/rustici_software_cloud_v2/models/xapi_score.rb +7 -10
  123. data/lib/rustici_software_cloud_v2/models/xapi_statement.rb +7 -10
  124. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.rb +8 -12
  125. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.rb +8 -12
  126. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_put_schema.rb +7 -11
  127. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.rb +7 -11
  128. data/lib/rustici_software_cloud_v2/models/xapi_statement_reference.rb +10 -13
  129. data/lib/rustici_software_cloud_v2/models/xapi_statement_result.rb +8 -11
  130. data/lib/rustici_software_cloud_v2/models/xapi_verb.rb +9 -12
  131. data/lib/rustici_software_cloud_v2/models/zoomi_company_id.rb +7 -11
  132. data/lib/rustici_software_cloud_v2/models/zoomi_course_options_schema.rb +7 -11
  133. data/lib/rustici_software_cloud_v2/version.rb +2 -1
  134. data/rustici_software_cloud_v2.gemspec +8 -7
  135. data/spec/api_client_spec.rb +35 -34
  136. data/spec/configuration_spec.rb +9 -8
  137. data/spec/spec_helper.rb +1 -0
  138. metadata +16 -16
@@ -6,10 +6,11 @@
6
6
  OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.12
9
10
 
10
11
  =end
11
12
 
12
- require "uri"
13
+ require 'uri'
13
14
 
14
15
  module RusticiSoftwareCloudV2
15
16
  class InvitationsApi
@@ -18,7 +19,6 @@ module RusticiSoftwareCloudV2
18
19
  def initialize(api_client = ApiClient.default)
19
20
  @api_client = api_client
20
21
  end
21
-
22
22
  # Create a private invitation to a course.
23
23
  # Create a private invitation to a course. The provided information will be used to create new registrations for all of the provided e-mail addresses, and send asynchronously send e-mails to those addresses inviting them to the course. To check the status of this process, a subsequent call to `/invitations/private/{invitationId}/status` must be made.
24
24
  # @param private_invitation_request
@@ -26,7 +26,7 @@ module RusticiSoftwareCloudV2
26
26
  # @return [InvitationSummarySchema]
27
27
  def create_private_invitation(private_invitation_request, opts = {})
28
28
  data, _status_code, _headers = create_private_invitation_with_http_info(private_invitation_request, opts)
29
- return data
29
+ data
30
30
  end
31
31
 
32
32
  # Create a private invitation to a course.
@@ -36,12 +36,14 @@ module RusticiSoftwareCloudV2
36
36
  # @return [Array<(InvitationSummarySchema, Fixnum, Hash)>] InvitationSummarySchema data, response status code and response headers
37
37
  def create_private_invitation_with_http_info(private_invitation_request, opts = {})
38
38
  if @api_client.config.debugging
39
- @api_client.config.logger.debug "Calling API: InvitationsApi.create_private_invitation ..."
39
+ @api_client.config.logger.debug 'Calling API: InvitationsApi.create_private_invitation ...'
40
40
  end
41
41
  # verify the required parameter 'private_invitation_request' is set
42
- fail ArgumentError, "Missing the required parameter 'private_invitation_request' when calling InvitationsApi.create_private_invitation" if private_invitation_request.nil?
42
+ if @api_client.config.client_side_validation && private_invitation_request.nil?
43
+ fail ArgumentError, "Missing the required parameter 'private_invitation_request' when calling InvitationsApi.create_private_invitation"
44
+ end
43
45
  # resource path
44
- local_var_path = "/invitations/private".sub('{format}','json')
46
+ local_var_path = '/invitations/private'
45
47
 
46
48
  # query parameters
47
49
  query_params = {}
@@ -71,7 +73,6 @@ module RusticiSoftwareCloudV2
71
73
  end
72
74
  return data, status_code, headers
73
75
  end
74
-
75
76
  # Create a publicly accessible invitation to a course.
76
77
  # Create a publicly accessible invitation to a course.
77
78
  # @param public_invitation_request A description of the public invitation to be created.
@@ -79,7 +80,7 @@ module RusticiSoftwareCloudV2
79
80
  # @return [PublicInvitationSchema]
80
81
  def create_public_invitation(public_invitation_request, opts = {})
81
82
  data, _status_code, _headers = create_public_invitation_with_http_info(public_invitation_request, opts)
82
- return data
83
+ data
83
84
  end
84
85
 
85
86
  # Create a publicly accessible invitation to a course.
@@ -89,12 +90,14 @@ module RusticiSoftwareCloudV2
89
90
  # @return [Array<(PublicInvitationSchema, Fixnum, Hash)>] PublicInvitationSchema data, response status code and response headers
90
91
  def create_public_invitation_with_http_info(public_invitation_request, opts = {})
91
92
  if @api_client.config.debugging
92
- @api_client.config.logger.debug "Calling API: InvitationsApi.create_public_invitation ..."
93
+ @api_client.config.logger.debug 'Calling API: InvitationsApi.create_public_invitation ...'
93
94
  end
94
95
  # verify the required parameter 'public_invitation_request' is set
95
- fail ArgumentError, "Missing the required parameter 'public_invitation_request' when calling InvitationsApi.create_public_invitation" if public_invitation_request.nil?
96
+ if @api_client.config.client_side_validation && public_invitation_request.nil?
97
+ fail ArgumentError, "Missing the required parameter 'public_invitation_request' when calling InvitationsApi.create_public_invitation"
98
+ end
96
99
  # resource path
97
- local_var_path = "/invitations/public".sub('{format}','json')
100
+ local_var_path = '/invitations/public'
98
101
 
99
102
  # query parameters
100
103
  query_params = {}
@@ -124,7 +127,6 @@ module RusticiSoftwareCloudV2
124
127
  end
125
128
  return data, status_code, headers
126
129
  end
127
-
128
130
  # Delete the tags for this invitation
129
131
  # Delete the tags for this invitation
130
132
  # @param invitation_id invitation id
@@ -133,7 +135,7 @@ module RusticiSoftwareCloudV2
133
135
  # @return [nil]
134
136
  def delete_invitation_tags(invitation_id, tags, opts = {})
135
137
  delete_invitation_tags_with_http_info(invitation_id, tags, opts)
136
- return nil
138
+ nil
137
139
  end
138
140
 
139
141
  # Delete the tags for this invitation
@@ -144,14 +146,18 @@ module RusticiSoftwareCloudV2
144
146
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
145
147
  def delete_invitation_tags_with_http_info(invitation_id, tags, opts = {})
146
148
  if @api_client.config.debugging
147
- @api_client.config.logger.debug "Calling API: InvitationsApi.delete_invitation_tags ..."
149
+ @api_client.config.logger.debug 'Calling API: InvitationsApi.delete_invitation_tags ...'
148
150
  end
149
151
  # verify the required parameter 'invitation_id' is set
150
- fail ArgumentError, "Missing the required parameter 'invitation_id' when calling InvitationsApi.delete_invitation_tags" if invitation_id.nil?
152
+ if @api_client.config.client_side_validation && invitation_id.nil?
153
+ fail ArgumentError, "Missing the required parameter 'invitation_id' when calling InvitationsApi.delete_invitation_tags"
154
+ end
151
155
  # verify the required parameter 'tags' is set
152
- fail ArgumentError, "Missing the required parameter 'tags' when calling InvitationsApi.delete_invitation_tags" if tags.nil?
156
+ if @api_client.config.client_side_validation && tags.nil?
157
+ fail ArgumentError, "Missing the required parameter 'tags' when calling InvitationsApi.delete_invitation_tags"
158
+ end
153
159
  # resource path
154
- local_var_path = "/invitations/{invitationId}/tags".sub('{format}','json').sub('{' + 'invitationId' + '}', invitation_id.to_s)
160
+ local_var_path = '/invitations/{invitationId}/tags'.sub('{' + 'invitationId' + '}', invitation_id.to_s)
155
161
 
156
162
  # query parameters
157
163
  query_params = {}
@@ -180,7 +186,6 @@ module RusticiSoftwareCloudV2
180
186
  end
181
187
  return data, status_code, headers
182
188
  end
183
-
184
189
  # Get a list of invitation summaries.
185
190
  # Get a summary of all the invitations for an appId, both public and private.
186
191
  # @param [Hash] opts the optional parameters
@@ -193,7 +198,7 @@ module RusticiSoftwareCloudV2
193
198
  # @return [InvitationSummaryList]
194
199
  def get_all_invitations(opts = {})
195
200
  data, _status_code, _headers = get_all_invitations_with_http_info(opts)
196
- return data
201
+ data
197
202
  end
198
203
 
199
204
  # Get a list of invitation summaries.
@@ -208,13 +213,13 @@ module RusticiSoftwareCloudV2
208
213
  # @return [Array<(InvitationSummaryList, Fixnum, Hash)>] InvitationSummaryList data, response status code and response headers
209
214
  def get_all_invitations_with_http_info(opts = {})
210
215
  if @api_client.config.debugging
211
- @api_client.config.logger.debug "Calling API: InvitationsApi.get_all_invitations ..."
216
+ @api_client.config.logger.debug 'Calling API: InvitationsApi.get_all_invitations ...'
212
217
  end
213
- if opts[:'datetime_filter'] && !['created', 'updated'].include?(opts[:'datetime_filter'])
218
+ if @api_client.config.client_side_validation && opts[:'datetime_filter'] && !['created', 'updated'].include?(opts[:'datetime_filter'])
214
219
  fail ArgumentError, 'invalid value for "datetime_filter", must be one of created, updated'
215
220
  end
216
221
  # resource path
217
- local_var_path = "/invitations".sub('{format}','json')
222
+ local_var_path = '/invitations'
218
223
 
219
224
  # query parameters
220
225
  query_params = {}
@@ -250,7 +255,6 @@ module RusticiSoftwareCloudV2
250
255
  end
251
256
  return data, status_code, headers
252
257
  end
253
-
254
258
  # Get the tags for this invitation
255
259
  # Get the tags for this invitation
256
260
  # @param invitation_id invitation id
@@ -258,7 +262,7 @@ module RusticiSoftwareCloudV2
258
262
  # @return [TagListSchema]
259
263
  def get_invitation_tags(invitation_id, opts = {})
260
264
  data, _status_code, _headers = get_invitation_tags_with_http_info(invitation_id, opts)
261
- return data
265
+ data
262
266
  end
263
267
 
264
268
  # Get the tags for this invitation
@@ -268,12 +272,14 @@ module RusticiSoftwareCloudV2
268
272
  # @return [Array<(TagListSchema, Fixnum, Hash)>] TagListSchema data, response status code and response headers
269
273
  def get_invitation_tags_with_http_info(invitation_id, opts = {})
270
274
  if @api_client.config.debugging
271
- @api_client.config.logger.debug "Calling API: InvitationsApi.get_invitation_tags ..."
275
+ @api_client.config.logger.debug 'Calling API: InvitationsApi.get_invitation_tags ...'
272
276
  end
273
277
  # verify the required parameter 'invitation_id' is set
274
- fail ArgumentError, "Missing the required parameter 'invitation_id' when calling InvitationsApi.get_invitation_tags" if invitation_id.nil?
278
+ if @api_client.config.client_side_validation && invitation_id.nil?
279
+ fail ArgumentError, "Missing the required parameter 'invitation_id' when calling InvitationsApi.get_invitation_tags"
280
+ end
275
281
  # resource path
276
- local_var_path = "/invitations/{invitationId}/tags".sub('{format}','json').sub('{' + 'invitationId' + '}', invitation_id.to_s)
282
+ local_var_path = '/invitations/{invitationId}/tags'.sub('{' + 'invitationId' + '}', invitation_id.to_s)
277
283
 
278
284
  # query parameters
279
285
  query_params = {}
@@ -303,7 +309,6 @@ module RusticiSoftwareCloudV2
303
309
  end
304
310
  return data, status_code, headers
305
311
  end
306
-
307
312
  # Get a information about a private invitation.
308
313
  # Get a information about a private invitation.
309
314
  # @param invitation_id invitation id
@@ -312,7 +317,7 @@ module RusticiSoftwareCloudV2
312
317
  # @return [PrivateInvitationSchema]
313
318
  def get_private_invitation(invitation_id, opts = {})
314
319
  data, _status_code, _headers = get_private_invitation_with_http_info(invitation_id, opts)
315
- return data
320
+ data
316
321
  end
317
322
 
318
323
  # Get a information about a private invitation.
@@ -323,12 +328,14 @@ module RusticiSoftwareCloudV2
323
328
  # @return [Array<(PrivateInvitationSchema, Fixnum, Hash)>] PrivateInvitationSchema data, response status code and response headers
324
329
  def get_private_invitation_with_http_info(invitation_id, opts = {})
325
330
  if @api_client.config.debugging
326
- @api_client.config.logger.debug "Calling API: InvitationsApi.get_private_invitation ..."
331
+ @api_client.config.logger.debug 'Calling API: InvitationsApi.get_private_invitation ...'
327
332
  end
328
333
  # verify the required parameter 'invitation_id' is set
329
- fail ArgumentError, "Missing the required parameter 'invitation_id' when calling InvitationsApi.get_private_invitation" if invitation_id.nil?
334
+ if @api_client.config.client_side_validation && invitation_id.nil?
335
+ fail ArgumentError, "Missing the required parameter 'invitation_id' when calling InvitationsApi.get_private_invitation"
336
+ end
330
337
  # resource path
331
- local_var_path = "/invitations/private/{invitationId}".sub('{format}','json').sub('{' + 'invitationId' + '}', invitation_id.to_s)
338
+ local_var_path = '/invitations/private/{invitationId}'.sub('{' + 'invitationId' + '}', invitation_id.to_s)
332
339
 
333
340
  # query parameters
334
341
  query_params = {}
@@ -359,7 +366,6 @@ module RusticiSoftwareCloudV2
359
366
  end
360
367
  return data, status_code, headers
361
368
  end
362
-
363
369
  # Get the status of an invitation job.
364
370
  # Get the status of a job to send out private invitations.
365
371
  # @param invitation_id invitation id
@@ -367,7 +373,7 @@ module RusticiSoftwareCloudV2
367
373
  # @return [InvitationJobStatusSchema]
368
374
  def get_private_invitation_job_status(invitation_id, opts = {})
369
375
  data, _status_code, _headers = get_private_invitation_job_status_with_http_info(invitation_id, opts)
370
- return data
376
+ data
371
377
  end
372
378
 
373
379
  # Get the status of an invitation job.
@@ -377,12 +383,14 @@ module RusticiSoftwareCloudV2
377
383
  # @return [Array<(InvitationJobStatusSchema, Fixnum, Hash)>] InvitationJobStatusSchema data, response status code and response headers
378
384
  def get_private_invitation_job_status_with_http_info(invitation_id, opts = {})
379
385
  if @api_client.config.debugging
380
- @api_client.config.logger.debug "Calling API: InvitationsApi.get_private_invitation_job_status ..."
386
+ @api_client.config.logger.debug 'Calling API: InvitationsApi.get_private_invitation_job_status ...'
381
387
  end
382
388
  # verify the required parameter 'invitation_id' is set
383
- fail ArgumentError, "Missing the required parameter 'invitation_id' when calling InvitationsApi.get_private_invitation_job_status" if invitation_id.nil?
389
+ if @api_client.config.client_side_validation && invitation_id.nil?
390
+ fail ArgumentError, "Missing the required parameter 'invitation_id' when calling InvitationsApi.get_private_invitation_job_status"
391
+ end
384
392
  # resource path
385
- local_var_path = "/invitations/private/{invitationId}/jobStatus".sub('{format}','json').sub('{' + 'invitationId' + '}', invitation_id.to_s)
393
+ local_var_path = '/invitations/private/{invitationId}/jobStatus'.sub('{' + 'invitationId' + '}', invitation_id.to_s)
386
394
 
387
395
  # query parameters
388
396
  query_params = {}
@@ -412,7 +420,6 @@ module RusticiSoftwareCloudV2
412
420
  end
413
421
  return data, status_code, headers
414
422
  end
415
-
416
423
  # Get a list of all private invitations.
417
424
  # Retrieves a list of all private invitations, optionally filtered by the given parameters.
418
425
  # @param [Hash] opts the optional parameters
@@ -425,7 +432,7 @@ module RusticiSoftwareCloudV2
425
432
  # @return [PrivateInvitationList]
426
433
  def get_private_invitations(opts = {})
427
434
  data, _status_code, _headers = get_private_invitations_with_http_info(opts)
428
- return data
435
+ data
429
436
  end
430
437
 
431
438
  # Get a list of all private invitations.
@@ -440,13 +447,13 @@ module RusticiSoftwareCloudV2
440
447
  # @return [Array<(PrivateInvitationList, Fixnum, Hash)>] PrivateInvitationList data, response status code and response headers
441
448
  def get_private_invitations_with_http_info(opts = {})
442
449
  if @api_client.config.debugging
443
- @api_client.config.logger.debug "Calling API: InvitationsApi.get_private_invitations ..."
450
+ @api_client.config.logger.debug 'Calling API: InvitationsApi.get_private_invitations ...'
444
451
  end
445
- if opts[:'datetime_filter'] && !['created', 'updated'].include?(opts[:'datetime_filter'])
452
+ if @api_client.config.client_side_validation && opts[:'datetime_filter'] && !['created', 'updated'].include?(opts[:'datetime_filter'])
446
453
  fail ArgumentError, 'invalid value for "datetime_filter", must be one of created, updated'
447
454
  end
448
455
  # resource path
449
- local_var_path = "/invitations/private".sub('{format}','json')
456
+ local_var_path = '/invitations/private'
450
457
 
451
458
  # query parameters
452
459
  query_params = {}
@@ -482,7 +489,6 @@ module RusticiSoftwareCloudV2
482
489
  end
483
490
  return data, status_code, headers
484
491
  end
485
-
486
492
  # Get a list of user invitations.
487
493
  # Get a list of objects which contain the specific information about each user to whom this invitation was sent.
488
494
  # @param invitation_id invitation id
@@ -494,7 +500,7 @@ module RusticiSoftwareCloudV2
494
500
  # @return [UserInvitationList]
495
501
  def get_private_user_invitations(invitation_id, opts = {})
496
502
  data, _status_code, _headers = get_private_user_invitations_with_http_info(invitation_id, opts)
497
- return data
503
+ data
498
504
  end
499
505
 
500
506
  # Get a list of user invitations.
@@ -508,12 +514,14 @@ module RusticiSoftwareCloudV2
508
514
  # @return [Array<(UserInvitationList, Fixnum, Hash)>] UserInvitationList data, response status code and response headers
509
515
  def get_private_user_invitations_with_http_info(invitation_id, opts = {})
510
516
  if @api_client.config.debugging
511
- @api_client.config.logger.debug "Calling API: InvitationsApi.get_private_user_invitations ..."
517
+ @api_client.config.logger.debug 'Calling API: InvitationsApi.get_private_user_invitations ...'
512
518
  end
513
519
  # verify the required parameter 'invitation_id' is set
514
- fail ArgumentError, "Missing the required parameter 'invitation_id' when calling InvitationsApi.get_private_user_invitations" if invitation_id.nil?
520
+ if @api_client.config.client_side_validation && invitation_id.nil?
521
+ fail ArgumentError, "Missing the required parameter 'invitation_id' when calling InvitationsApi.get_private_user_invitations"
522
+ end
515
523
  # resource path
516
- local_var_path = "/invitations/private/{invitationId}/userInvitations".sub('{format}','json').sub('{' + 'invitationId' + '}', invitation_id.to_s)
524
+ local_var_path = '/invitations/private/{invitationId}/userInvitations'.sub('{' + 'invitationId' + '}', invitation_id.to_s)
517
525
 
518
526
  # query parameters
519
527
  query_params = {}
@@ -547,7 +555,6 @@ module RusticiSoftwareCloudV2
547
555
  end
548
556
  return data, status_code, headers
549
557
  end
550
-
551
558
  # Get a information about a public invitation.
552
559
  # Get a information about a public invitation.
553
560
  # @param invitation_id invitation id
@@ -556,7 +563,7 @@ module RusticiSoftwareCloudV2
556
563
  # @return [PublicInvitationSchema]
557
564
  def get_public_invitation(invitation_id, opts = {})
558
565
  data, _status_code, _headers = get_public_invitation_with_http_info(invitation_id, opts)
559
- return data
566
+ data
560
567
  end
561
568
 
562
569
  # Get a information about a public invitation.
@@ -567,12 +574,14 @@ module RusticiSoftwareCloudV2
567
574
  # @return [Array<(PublicInvitationSchema, Fixnum, Hash)>] PublicInvitationSchema data, response status code and response headers
568
575
  def get_public_invitation_with_http_info(invitation_id, opts = {})
569
576
  if @api_client.config.debugging
570
- @api_client.config.logger.debug "Calling API: InvitationsApi.get_public_invitation ..."
577
+ @api_client.config.logger.debug 'Calling API: InvitationsApi.get_public_invitation ...'
571
578
  end
572
579
  # verify the required parameter 'invitation_id' is set
573
- fail ArgumentError, "Missing the required parameter 'invitation_id' when calling InvitationsApi.get_public_invitation" if invitation_id.nil?
580
+ if @api_client.config.client_side_validation && invitation_id.nil?
581
+ fail ArgumentError, "Missing the required parameter 'invitation_id' when calling InvitationsApi.get_public_invitation"
582
+ end
574
583
  # resource path
575
- local_var_path = "/invitations/public/{invitationId}".sub('{format}','json').sub('{' + 'invitationId' + '}', invitation_id.to_s)
584
+ local_var_path = '/invitations/public/{invitationId}'.sub('{' + 'invitationId' + '}', invitation_id.to_s)
576
585
 
577
586
  # query parameters
578
587
  query_params = {}
@@ -603,7 +612,6 @@ module RusticiSoftwareCloudV2
603
612
  end
604
613
  return data, status_code, headers
605
614
  end
606
-
607
615
  # Get a list of all public invitations.
608
616
  # Retrieves a list of all public invitations, optionally filtered by the given parameters.
609
617
  # @param [Hash] opts the optional parameters
@@ -616,7 +624,7 @@ module RusticiSoftwareCloudV2
616
624
  # @return [PublicInvitationList]
617
625
  def get_public_invitations(opts = {})
618
626
  data, _status_code, _headers = get_public_invitations_with_http_info(opts)
619
- return data
627
+ data
620
628
  end
621
629
 
622
630
  # Get a list of all public invitations.
@@ -631,13 +639,13 @@ module RusticiSoftwareCloudV2
631
639
  # @return [Array<(PublicInvitationList, Fixnum, Hash)>] PublicInvitationList data, response status code and response headers
632
640
  def get_public_invitations_with_http_info(opts = {})
633
641
  if @api_client.config.debugging
634
- @api_client.config.logger.debug "Calling API: InvitationsApi.get_public_invitations ..."
642
+ @api_client.config.logger.debug 'Calling API: InvitationsApi.get_public_invitations ...'
635
643
  end
636
- if opts[:'datetime_filter'] && !['created', 'updated'].include?(opts[:'datetime_filter'])
644
+ if @api_client.config.client_side_validation && opts[:'datetime_filter'] && !['created', 'updated'].include?(opts[:'datetime_filter'])
637
645
  fail ArgumentError, 'invalid value for "datetime_filter", must be one of created, updated'
638
646
  end
639
647
  # resource path
640
- local_var_path = "/invitations/public".sub('{format}','json')
648
+ local_var_path = '/invitations/public'
641
649
 
642
650
  # query parameters
643
651
  query_params = {}
@@ -673,7 +681,6 @@ module RusticiSoftwareCloudV2
673
681
  end
674
682
  return data, status_code, headers
675
683
  end
676
-
677
684
  # Get a list of user invitations.
678
685
  # Get a list of objects which contain the specific information about each user who visited the invitation link.
679
686
  # @param invitation_id invitation id
@@ -685,7 +692,7 @@ module RusticiSoftwareCloudV2
685
692
  # @return [UserInvitationList]
686
693
  def get_public_user_invitations(invitation_id, opts = {})
687
694
  data, _status_code, _headers = get_public_user_invitations_with_http_info(invitation_id, opts)
688
- return data
695
+ data
689
696
  end
690
697
 
691
698
  # Get a list of user invitations.
@@ -699,12 +706,14 @@ module RusticiSoftwareCloudV2
699
706
  # @return [Array<(UserInvitationList, Fixnum, Hash)>] UserInvitationList data, response status code and response headers
700
707
  def get_public_user_invitations_with_http_info(invitation_id, opts = {})
701
708
  if @api_client.config.debugging
702
- @api_client.config.logger.debug "Calling API: InvitationsApi.get_public_user_invitations ..."
709
+ @api_client.config.logger.debug 'Calling API: InvitationsApi.get_public_user_invitations ...'
703
710
  end
704
711
  # verify the required parameter 'invitation_id' is set
705
- fail ArgumentError, "Missing the required parameter 'invitation_id' when calling InvitationsApi.get_public_user_invitations" if invitation_id.nil?
712
+ if @api_client.config.client_side_validation && invitation_id.nil?
713
+ fail ArgumentError, "Missing the required parameter 'invitation_id' when calling InvitationsApi.get_public_user_invitations"
714
+ end
706
715
  # resource path
707
- local_var_path = "/invitations/public/{invitationId}/userInvitations".sub('{format}','json').sub('{' + 'invitationId' + '}', invitation_id.to_s)
716
+ local_var_path = '/invitations/public/{invitationId}/userInvitations'.sub('{' + 'invitationId' + '}', invitation_id.to_s)
708
717
 
709
718
  # query parameters
710
719
  query_params = {}
@@ -738,7 +747,6 @@ module RusticiSoftwareCloudV2
738
747
  end
739
748
  return data, status_code, headers
740
749
  end
741
-
742
750
  # Set the tags for this invitation
743
751
  # Set the tags for this invitation
744
752
  # @param invitation_id invitation id
@@ -747,7 +755,7 @@ module RusticiSoftwareCloudV2
747
755
  # @return [nil]
748
756
  def put_invitation_tags(invitation_id, tags, opts = {})
749
757
  put_invitation_tags_with_http_info(invitation_id, tags, opts)
750
- return nil
758
+ nil
751
759
  end
752
760
 
753
761
  # Set the tags for this invitation
@@ -758,14 +766,18 @@ module RusticiSoftwareCloudV2
758
766
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
759
767
  def put_invitation_tags_with_http_info(invitation_id, tags, opts = {})
760
768
  if @api_client.config.debugging
761
- @api_client.config.logger.debug "Calling API: InvitationsApi.put_invitation_tags ..."
769
+ @api_client.config.logger.debug 'Calling API: InvitationsApi.put_invitation_tags ...'
762
770
  end
763
771
  # verify the required parameter 'invitation_id' is set
764
- fail ArgumentError, "Missing the required parameter 'invitation_id' when calling InvitationsApi.put_invitation_tags" if invitation_id.nil?
772
+ if @api_client.config.client_side_validation && invitation_id.nil?
773
+ fail ArgumentError, "Missing the required parameter 'invitation_id' when calling InvitationsApi.put_invitation_tags"
774
+ end
765
775
  # verify the required parameter 'tags' is set
766
- fail ArgumentError, "Missing the required parameter 'tags' when calling InvitationsApi.put_invitation_tags" if tags.nil?
776
+ if @api_client.config.client_side_validation && tags.nil?
777
+ fail ArgumentError, "Missing the required parameter 'tags' when calling InvitationsApi.put_invitation_tags"
778
+ end
767
779
  # resource path
768
- local_var_path = "/invitations/{invitationId}/tags".sub('{format}','json').sub('{' + 'invitationId' + '}', invitation_id.to_s)
780
+ local_var_path = '/invitations/{invitationId}/tags'.sub('{' + 'invitationId' + '}', invitation_id.to_s)
769
781
 
770
782
  # query parameters
771
783
  query_params = {}
@@ -794,7 +806,6 @@ module RusticiSoftwareCloudV2
794
806
  end
795
807
  return data, status_code, headers
796
808
  end
797
-
798
809
  # Sets all of the provided tags on all of the provided invitations
799
810
  # Sets all of the provided tags on all of the provided invitations
800
811
  # @param batch Object representing an array of ids to apply an array of tags to.
@@ -802,7 +813,7 @@ module RusticiSoftwareCloudV2
802
813
  # @return [nil]
803
814
  def put_invitation_tags_batch(batch, opts = {})
804
815
  put_invitation_tags_batch_with_http_info(batch, opts)
805
- return nil
816
+ nil
806
817
  end
807
818
 
808
819
  # Sets all of the provided tags on all of the provided invitations
@@ -812,12 +823,14 @@ module RusticiSoftwareCloudV2
812
823
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
813
824
  def put_invitation_tags_batch_with_http_info(batch, opts = {})
814
825
  if @api_client.config.debugging
815
- @api_client.config.logger.debug "Calling API: InvitationsApi.put_invitation_tags_batch ..."
826
+ @api_client.config.logger.debug 'Calling API: InvitationsApi.put_invitation_tags_batch ...'
816
827
  end
817
828
  # verify the required parameter 'batch' is set
818
- fail ArgumentError, "Missing the required parameter 'batch' when calling InvitationsApi.put_invitation_tags_batch" if batch.nil?
829
+ if @api_client.config.client_side_validation && batch.nil?
830
+ fail ArgumentError, "Missing the required parameter 'batch' when calling InvitationsApi.put_invitation_tags_batch"
831
+ end
819
832
  # resource path
820
- local_var_path = "/invitations/tags".sub('{format}','json')
833
+ local_var_path = '/invitations/tags'
821
834
 
822
835
  # query parameters
823
836
  query_params = {}
@@ -846,7 +859,6 @@ module RusticiSoftwareCloudV2
846
859
  end
847
860
  return data, status_code, headers
848
861
  end
849
-
850
862
  # Update attributes of this invitation.
851
863
  # Updates certain attributes of this invitation, and returns the invitation its new state. The following attributes can be updated: - allowLaunch - invitationEmail - postBack - expirationDate NOTE: Any attributes not in the above list will not be considered for update.
852
864
  # @param invitation_id invitation id
@@ -855,7 +867,7 @@ module RusticiSoftwareCloudV2
855
867
  # @return [PrivateInvitationSchema]
856
868
  def update_private_invitation(invitation_id, invitation_update_schema, opts = {})
857
869
  data, _status_code, _headers = update_private_invitation_with_http_info(invitation_id, invitation_update_schema, opts)
858
- return data
870
+ data
859
871
  end
860
872
 
861
873
  # Update attributes of this invitation.
@@ -866,14 +878,18 @@ module RusticiSoftwareCloudV2
866
878
  # @return [Array<(PrivateInvitationSchema, Fixnum, Hash)>] PrivateInvitationSchema data, response status code and response headers
867
879
  def update_private_invitation_with_http_info(invitation_id, invitation_update_schema, opts = {})
868
880
  if @api_client.config.debugging
869
- @api_client.config.logger.debug "Calling API: InvitationsApi.update_private_invitation ..."
881
+ @api_client.config.logger.debug 'Calling API: InvitationsApi.update_private_invitation ...'
870
882
  end
871
883
  # verify the required parameter 'invitation_id' is set
872
- fail ArgumentError, "Missing the required parameter 'invitation_id' when calling InvitationsApi.update_private_invitation" if invitation_id.nil?
884
+ if @api_client.config.client_side_validation && invitation_id.nil?
885
+ fail ArgumentError, "Missing the required parameter 'invitation_id' when calling InvitationsApi.update_private_invitation"
886
+ end
873
887
  # verify the required parameter 'invitation_update_schema' is set
874
- fail ArgumentError, "Missing the required parameter 'invitation_update_schema' when calling InvitationsApi.update_private_invitation" if invitation_update_schema.nil?
888
+ if @api_client.config.client_side_validation && invitation_update_schema.nil?
889
+ fail ArgumentError, "Missing the required parameter 'invitation_update_schema' when calling InvitationsApi.update_private_invitation"
890
+ end
875
891
  # resource path
876
- local_var_path = "/invitations/private/{invitationId}".sub('{format}','json').sub('{' + 'invitationId' + '}', invitation_id.to_s)
892
+ local_var_path = '/invitations/private/{invitationId}'.sub('{' + 'invitationId' + '}', invitation_id.to_s)
877
893
 
878
894
  # query parameters
879
895
  query_params = {}
@@ -903,7 +919,6 @@ module RusticiSoftwareCloudV2
903
919
  end
904
920
  return data, status_code, headers
905
921
  end
906
-
907
922
  # Update attributes of this invitation.
908
923
  # Updates certain attributes of this invitation, and returns the invitation its new state. The following attributes can be updated: - allowLaunch - allowNewRegistrations - postBack - expirationDate - registrationCap NOTE: Any attributes not in the above list will not be considered for update.
909
924
  # @param invitation_id invitation id
@@ -912,7 +927,7 @@ module RusticiSoftwareCloudV2
912
927
  # @return [PublicInvitationSchema]
913
928
  def update_public_invitation(invitation_id, invitation_update_schema, opts = {})
914
929
  data, _status_code, _headers = update_public_invitation_with_http_info(invitation_id, invitation_update_schema, opts)
915
- return data
930
+ data
916
931
  end
917
932
 
918
933
  # Update attributes of this invitation.
@@ -923,14 +938,18 @@ module RusticiSoftwareCloudV2
923
938
  # @return [Array<(PublicInvitationSchema, Fixnum, Hash)>] PublicInvitationSchema data, response status code and response headers
924
939
  def update_public_invitation_with_http_info(invitation_id, invitation_update_schema, opts = {})
925
940
  if @api_client.config.debugging
926
- @api_client.config.logger.debug "Calling API: InvitationsApi.update_public_invitation ..."
941
+ @api_client.config.logger.debug 'Calling API: InvitationsApi.update_public_invitation ...'
927
942
  end
928
943
  # verify the required parameter 'invitation_id' is set
929
- fail ArgumentError, "Missing the required parameter 'invitation_id' when calling InvitationsApi.update_public_invitation" if invitation_id.nil?
944
+ if @api_client.config.client_side_validation && invitation_id.nil?
945
+ fail ArgumentError, "Missing the required parameter 'invitation_id' when calling InvitationsApi.update_public_invitation"
946
+ end
930
947
  # verify the required parameter 'invitation_update_schema' is set
931
- fail ArgumentError, "Missing the required parameter 'invitation_update_schema' when calling InvitationsApi.update_public_invitation" if invitation_update_schema.nil?
948
+ if @api_client.config.client_side_validation && invitation_update_schema.nil?
949
+ fail ArgumentError, "Missing the required parameter 'invitation_update_schema' when calling InvitationsApi.update_public_invitation"
950
+ end
932
951
  # resource path
933
- local_var_path = "/invitations/public/{invitationId}".sub('{format}','json').sub('{' + 'invitationId' + '}', invitation_id.to_s)
952
+ local_var_path = '/invitations/public/{invitationId}'.sub('{' + 'invitationId' + '}', invitation_id.to_s)
934
953
 
935
954
  # query parameters
936
955
  query_params = {}