rustici_software_cloud_v2 1.1.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +355 -356
  4. data/lib/rustici_software_cloud_v2/api/about_api.rb +4 -4
  5. data/lib/rustici_software_cloud_v2/api/application_management_api.rb +190 -62
  6. data/lib/rustici_software_cloud_v2/api/authentication_api.rb +9 -17
  7. data/lib/rustici_software_cloud_v2/api/course_api.rb +903 -196
  8. data/lib/rustici_software_cloud_v2/api/dispatch_api.rb +458 -268
  9. data/lib/rustici_software_cloud_v2/api/invitations_api.rb +212 -170
  10. data/lib/rustici_software_cloud_v2/api/learner_api.rb +48 -48
  11. data/lib/rustici_software_cloud_v2/api/ping_api.rb +2 -0
  12. data/lib/rustici_software_cloud_v2/api/registration_api.rb +255 -269
  13. data/lib/rustici_software_cloud_v2/api/reporting_api.rb +19 -23
  14. data/lib/rustici_software_cloud_v2/api/xapi_api.rb +81 -66
  15. data/lib/rustici_software_cloud_v2/api/zoomi_api.rb +124 -55
  16. data/lib/rustici_software_cloud_v2/api_client.rb +2 -2
  17. data/lib/rustici_software_cloud_v2/configuration.rb +3 -3
  18. data/lib/rustici_software_cloud_v2/models/about_schema.rb +3 -1
  19. data/lib/rustici_software_cloud_v2/models/activity_result_schema.rb +8 -36
  20. data/lib/rustici_software_cloud_v2/models/application_info_schema.rb +234 -0
  21. data/lib/rustici_software_cloud_v2/models/application_list_schema.rb +3 -1
  22. data/lib/rustici_software_cloud_v2/models/application_request_schema.rb +186 -0
  23. data/lib/rustici_software_cloud_v2/models/application_schema.rb +3 -1
  24. data/lib/rustici_software_cloud_v2/models/application_token.rb +3 -1
  25. data/lib/rustici_software_cloud_v2/models/asset_file_schema.rb +194 -0
  26. data/lib/rustici_software_cloud_v2/models/batch_tags_schema.rb +3 -1
  27. data/lib/rustici_software_cloud_v2/models/comment_schema.rb +3 -1
  28. data/lib/rustici_software_cloud_v2/models/completion_amount_schema.rb +3 -1
  29. data/lib/rustici_software_cloud_v2/models/course_activity_schema.rb +5 -29
  30. data/lib/rustici_software_cloud_v2/models/course_list_non_paged_schema.rb +3 -1
  31. data/lib/rustici_software_cloud_v2/models/course_list_schema.rb +4 -1
  32. data/lib/rustici_software_cloud_v2/models/course_reference_schema.rb +3 -1
  33. data/lib/rustici_software_cloud_v2/models/course_schema.rb +5 -29
  34. data/lib/rustici_software_cloud_v2/models/create_dispatch_id_schema.rb +2 -19
  35. data/lib/rustici_software_cloud_v2/models/create_dispatch_list_schema.rb +3 -1
  36. data/lib/rustici_software_cloud_v2/models/create_dispatch_schema.rb +4 -2
  37. data/lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb +4 -2
  38. data/lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb +4 -2
  39. data/lib/rustici_software_cloud_v2/models/create_registration_schema.rb +3 -1
  40. data/lib/rustici_software_cloud_v2/models/credential_created_schema.rb +3 -1
  41. data/lib/rustici_software_cloud_v2/models/credential_list_schema.rb +3 -1
  42. data/lib/rustici_software_cloud_v2/models/credential_request_schema.rb +3 -1
  43. data/lib/rustici_software_cloud_v2/models/credential_schema.rb +3 -1
  44. data/lib/rustici_software_cloud_v2/models/destination_id_schema.rb +3 -1
  45. data/lib/rustici_software_cloud_v2/models/destination_list_schema.rb +4 -2
  46. data/lib/rustici_software_cloud_v2/models/destination_schema.rb +3 -1
  47. data/lib/rustici_software_cloud_v2/models/dispatch_id_schema.rb +3 -1
  48. data/lib/rustici_software_cloud_v2/models/dispatch_list_schema.rb +4 -1
  49. data/lib/rustici_software_cloud_v2/models/dispatch_lti_info_schema.rb +221 -0
  50. data/lib/rustici_software_cloud_v2/models/dispatch_registration_count_schema.rb +3 -1
  51. data/lib/rustici_software_cloud_v2/models/dispatch_schema.rb +43 -3
  52. data/lib/rustici_software_cloud_v2/models/enabled_schema.rb +3 -1
  53. data/lib/rustici_software_cloud_v2/models/file_list_item_schema.rb +205 -0
  54. data/lib/rustici_software_cloud_v2/models/file_list_schema.rb +187 -0
  55. data/lib/rustici_software_cloud_v2/models/import_asset_request_schema.rb +207 -0
  56. data/lib/rustici_software_cloud_v2/models/import_fetch_request_schema.rb +29 -6
  57. data/lib/rustici_software_cloud_v2/models/import_job_result_schema.rb +5 -29
  58. data/lib/rustici_software_cloud_v2/models/import_media_file_reference_request_schema.rb +216 -0
  59. data/lib/rustici_software_cloud_v2/models/import_request_schema.rb +195 -0
  60. data/lib/rustici_software_cloud_v2/models/import_result_schema.rb +3 -1
  61. data/lib/rustici_software_cloud_v2/models/integer_result_schema.rb +3 -1
  62. data/lib/rustici_software_cloud_v2/models/invitation_email_schema.rb +3 -1
  63. data/lib/rustici_software_cloud_v2/models/invitation_job_status_schema.rb +5 -29
  64. data/lib/rustici_software_cloud_v2/models/invitation_summary_list.rb +4 -1
  65. data/lib/rustici_software_cloud_v2/models/invitation_summary_schema.rb +3 -1
  66. data/lib/rustici_software_cloud_v2/models/item_value_pair_schema.rb +3 -1
  67. data/lib/rustici_software_cloud_v2/models/launch_auth_options_schema.rb +3 -1
  68. data/lib/rustici_software_cloud_v2/models/launch_auth_schema.rb +5 -29
  69. data/lib/rustici_software_cloud_v2/models/launch_history_list_schema.rb +3 -1
  70. data/lib/rustici_software_cloud_v2/models/launch_history_schema.rb +8 -36
  71. data/lib/rustici_software_cloud_v2/models/launch_link_request_schema.rb +5 -3
  72. data/lib/rustici_software_cloud_v2/models/launch_link_schema.rb +3 -1
  73. data/lib/rustici_software_cloud_v2/models/learner_preference_schema.rb +3 -1
  74. data/lib/rustici_software_cloud_v2/models/learner_schema.rb +3 -1
  75. data/lib/rustici_software_cloud_v2/models/media_file_metadata_schema.rb +213 -0
  76. data/lib/rustici_software_cloud_v2/models/message_schema.rb +3 -1
  77. data/lib/rustici_software_cloud_v2/models/metadata_schema.rb +10 -8
  78. data/lib/rustici_software_cloud_v2/models/objective_schema.rb +11 -43
  79. data/lib/rustici_software_cloud_v2/models/permissions_schema.rb +3 -1
  80. data/lib/rustici_software_cloud_v2/models/ping_schema.rb +3 -1
  81. data/lib/rustici_software_cloud_v2/models/post_back_schema.rb +8 -36
  82. data/lib/rustici_software_cloud_v2/models/private_invitation_list.rb +4 -1
  83. data/lib/rustici_software_cloud_v2/models/private_invitation_schema.rb +5 -3
  84. data/lib/rustici_software_cloud_v2/models/private_invitation_update_schema.rb +215 -0
  85. data/lib/rustici_software_cloud_v2/models/public_invitation_list.rb +4 -1
  86. data/lib/rustici_software_cloud_v2/models/public_invitation_schema.rb +6 -4
  87. data/lib/rustici_software_cloud_v2/models/public_invitation_update_schema.rb +228 -0
  88. data/lib/rustici_software_cloud_v2/models/registration_list_schema.rb +4 -1
  89. data/lib/rustici_software_cloud_v2/models/registration_schema.rb +3 -1
  90. data/lib/rustici_software_cloud_v2/models/reportage_account_info_schema.rb +3 -1
  91. data/lib/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.rb +3 -1
  92. data/lib/rustici_software_cloud_v2/models/reportage_auth_token_schema.rb +3 -1
  93. data/lib/rustici_software_cloud_v2/models/reportage_link_schema.rb +3 -1
  94. data/lib/rustici_software_cloud_v2/models/response_error.rb +3 -1
  95. data/lib/rustici_software_cloud_v2/models/runtime_interaction_schema.rb +5 -29
  96. data/lib/rustici_software_cloud_v2/models/runtime_objective_schema.rb +8 -36
  97. data/lib/rustici_software_cloud_v2/models/runtime_schema.rb +5 -29
  98. data/lib/rustici_software_cloud_v2/models/score_schema.rb +3 -1
  99. data/lib/rustici_software_cloud_v2/models/setting_item.rb +5 -29
  100. data/lib/rustici_software_cloud_v2/models/setting_list_schema.rb +3 -1
  101. data/lib/rustici_software_cloud_v2/models/setting_metadata.rb +5 -29
  102. data/lib/rustici_software_cloud_v2/models/setting_valid_value.rb +3 -1
  103. data/lib/rustici_software_cloud_v2/models/settings_individual_schema.rb +3 -1
  104. data/lib/rustici_software_cloud_v2/models/settings_post_schema.rb +3 -1
  105. data/lib/rustici_software_cloud_v2/models/shared_data_entry_schema.rb +3 -1
  106. data/lib/rustici_software_cloud_v2/models/static_properties_schema.rb +3 -1
  107. data/lib/rustici_software_cloud_v2/models/string_result_schema.rb +3 -1
  108. data/lib/rustici_software_cloud_v2/models/tag_list_schema.rb +3 -1
  109. data/lib/rustici_software_cloud_v2/models/title_schema.rb +3 -1
  110. data/lib/rustici_software_cloud_v2/models/token_request_schema.rb +3 -1
  111. data/lib/rustici_software_cloud_v2/models/update_application_schema.rb +196 -0
  112. data/lib/rustici_software_cloud_v2/models/update_dispatch_schema.rb +15 -3
  113. data/lib/rustici_software_cloud_v2/models/user_invitation_list.rb +4 -1
  114. data/lib/rustici_software_cloud_v2/models/user_invitation_schema.rb +3 -1
  115. data/lib/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.rb +3 -1
  116. data/lib/rustici_software_cloud_v2/models/xapi_account.rb +3 -1
  117. data/lib/rustici_software_cloud_v2/models/xapi_activity.rb +3 -1
  118. data/lib/rustici_software_cloud_v2/models/xapi_activity_definition.rb +3 -1
  119. data/lib/rustici_software_cloud_v2/models/xapi_agent_group.rb +5 -29
  120. data/lib/rustici_software_cloud_v2/models/xapi_attachment.rb +3 -1
  121. data/lib/rustici_software_cloud_v2/models/xapi_context.rb +3 -1
  122. data/lib/rustici_software_cloud_v2/models/xapi_context_activity.rb +3 -1
  123. data/lib/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.rb +5 -29
  124. data/lib/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.rb +5 -29
  125. data/lib/rustici_software_cloud_v2/models/xapi_credential_post_schema.rb +3 -1
  126. data/lib/rustici_software_cloud_v2/models/xapi_credential_put_schema.rb +3 -1
  127. data/lib/rustici_software_cloud_v2/models/xapi_credential_schema.rb +3 -1
  128. data/lib/rustici_software_cloud_v2/models/xapi_credentials_list_schema.rb +4 -1
  129. data/lib/rustici_software_cloud_v2/models/xapi_endpoint_schema.rb +3 -1
  130. data/lib/rustici_software_cloud_v2/models/xapi_interaction_component.rb +3 -1
  131. data/lib/rustici_software_cloud_v2/models/xapi_result.rb +3 -1
  132. data/lib/rustici_software_cloud_v2/models/xapi_score.rb +3 -1
  133. data/lib/rustici_software_cloud_v2/models/xapi_statement.rb +3 -1
  134. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.rb +3 -1
  135. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.rb +3 -1
  136. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_put_schema.rb +3 -1
  137. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.rb +3 -1
  138. data/lib/rustici_software_cloud_v2/models/xapi_statement_reference.rb +3 -1
  139. data/lib/rustici_software_cloud_v2/models/xapi_statement_result.rb +3 -1
  140. data/lib/rustici_software_cloud_v2/models/xapi_verb.rb +3 -1
  141. data/lib/rustici_software_cloud_v2/models/zoomi_company_id.rb +3 -1
  142. data/lib/rustici_software_cloud_v2/models/zoomi_course_options_schema.rb +13 -1
  143. data/lib/rustici_software_cloud_v2/version.rb +1 -1
  144. data/lib/rustici_software_cloud_v2.rb +13 -0
  145. data/rustici_software_cloud_v2.gemspec +2 -1
  146. data/spec/api_client_spec.rb +17 -0
  147. metadata +35 -2
@@ -19,8 +19,8 @@ module RusticiSoftwareCloudV2
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Delete the keys for an application.
23
- # Delete the keys for an application.
22
+ # Delete the Zoomi keys for an Application
23
+ # Deletes the Zoomi keys for an application.
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @return [nil]
26
26
  def delete_application_zoomi_keys(opts = {})
@@ -28,8 +28,8 @@ module RusticiSoftwareCloudV2
28
28
  nil
29
29
  end
30
30
 
31
- # Delete the keys for an application.
32
- # Delete the keys for an application.
31
+ # Delete the Zoomi keys for an Application
32
+ # Deletes the Zoomi keys for an application.
33
33
  # @param [Hash] opts the optional parameters
34
34
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
35
35
  def delete_application_zoomi_keys_with_http_info(opts = {})
@@ -66,10 +66,10 @@ module RusticiSoftwareCloudV2
66
66
  end
67
67
  return data, status_code, headers
68
68
  end
69
- # Deletes the course in zoomi
70
- # Deletes the course in zoomi
69
+ # Delete the Course from Zoomi
70
+ # Deletes the course from Zoomi, but the course will remain in SCORM Cloud.
71
71
  # @param course_id
72
- # @param version_id The course version
72
+ # @param version_id
73
73
  # @param [Hash] opts the optional parameters
74
74
  # @return [nil]
75
75
  def delete_zoomi_course(course_id, version_id, opts = {})
@@ -77,10 +77,10 @@ module RusticiSoftwareCloudV2
77
77
  nil
78
78
  end
79
79
 
80
- # Deletes the course in zoomi
81
- # Deletes the course in zoomi
80
+ # Delete the Course from Zoomi
81
+ # Deletes the course from Zoomi, but the course will remain in SCORM Cloud.
82
82
  # @param course_id
83
- # @param version_id The course version
83
+ # @param version_id
84
84
  # @param [Hash] opts the optional parameters
85
85
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
86
86
  def delete_zoomi_course_with_http_info(course_id, version_id, opts = {})
@@ -88,11 +88,11 @@ module RusticiSoftwareCloudV2
88
88
  @api_client.config.logger.debug 'Calling API: ZoomiApi.delete_zoomi_course ...'
89
89
  end
90
90
  # verify the required parameter 'course_id' is set
91
- if @api_client.config.client_side_validation && course_id.nil?
91
+ if course_id.nil?
92
92
  fail ArgumentError, "Missing the required parameter 'course_id' when calling ZoomiApi.delete_zoomi_course"
93
93
  end
94
94
  # verify the required parameter 'version_id' is set
95
- if @api_client.config.client_side_validation && version_id.nil?
95
+ if version_id.nil?
96
96
  fail ArgumentError, "Missing the required parameter 'version_id' when calling ZoomiApi.delete_zoomi_course"
97
97
  end
98
98
  # resource path
@@ -125,8 +125,8 @@ module RusticiSoftwareCloudV2
125
125
  end
126
126
  return data, status_code, headers
127
127
  end
128
- # Gets the zoomi company id of an application.
129
- # Gets the zoomi company id of an application.
128
+ # Get the Zoomi company ID of an Application
129
+ # Returns the Zoomi company ID of an application.
130
130
  # @param [Hash] opts the optional parameters
131
131
  # @return [StringResultSchema]
132
132
  def get_application_zoomi_company_id(opts = {})
@@ -134,8 +134,8 @@ module RusticiSoftwareCloudV2
134
134
  data
135
135
  end
136
136
 
137
- # Gets the zoomi company id of an application.
138
- # Gets the zoomi company id of an application.
137
+ # Get the Zoomi company ID of an Application
138
+ # Returns the Zoomi company ID of an application.
139
139
  # @param [Hash] opts the optional parameters
140
140
  # @return [Array<(StringResultSchema, Fixnum, Hash)>] StringResultSchema data, response status code and response headers
141
141
  def get_application_zoomi_company_id_with_http_info(opts = {})
@@ -173,8 +173,8 @@ module RusticiSoftwareCloudV2
173
173
  end
174
174
  return data, status_code, headers
175
175
  end
176
- # Gets the public key for an application.
177
- # Gets the public key for an application.
176
+ # Get the Zoomi public key for an Application
177
+ # Returns the Zoomi public key for an application.
178
178
  # @param [Hash] opts the optional parameters
179
179
  # @return [StringResultSchema]
180
180
  def get_application_zoomi_public_key(opts = {})
@@ -182,8 +182,8 @@ module RusticiSoftwareCloudV2
182
182
  data
183
183
  end
184
184
 
185
- # Gets the public key for an application.
186
- # Gets the public key for an application.
185
+ # Get the Zoomi public key for an Application
186
+ # Returns the Zoomi public key for an application.
187
187
  # @param [Hash] opts the optional parameters
188
188
  # @return [Array<(StringResultSchema, Fixnum, Hash)>] StringResultSchema data, response status code and response headers
189
189
  def get_application_zoomi_public_key_with_http_info(opts = {})
@@ -221,10 +221,10 @@ module RusticiSoftwareCloudV2
221
221
  end
222
222
  return data, status_code, headers
223
223
  end
224
- # Gets the zoomi enabled value of a course
225
- # Gets the zoomi enabled value of a course
224
+ # Get the Zoomi enabled value of a Course Version
225
+ # Returns the Zoomi enabled value of a course version.
226
226
  # @param course_id
227
- # @param version_id The course version
227
+ # @param version_id
228
228
  # @param [Hash] opts the optional parameters
229
229
  # @return [EnabledSchema]
230
230
  def get_course_zoomi_enabled(course_id, version_id, opts = {})
@@ -232,10 +232,10 @@ module RusticiSoftwareCloudV2
232
232
  data
233
233
  end
234
234
 
235
- # Gets the zoomi enabled value of a course
236
- # Gets the zoomi enabled value of a course
235
+ # Get the Zoomi enabled value of a Course Version
236
+ # Returns the Zoomi enabled value of a course version.
237
237
  # @param course_id
238
- # @param version_id The course version
238
+ # @param version_id
239
239
  # @param [Hash] opts the optional parameters
240
240
  # @return [Array<(EnabledSchema, Fixnum, Hash)>] EnabledSchema data, response status code and response headers
241
241
  def get_course_zoomi_enabled_with_http_info(course_id, version_id, opts = {})
@@ -243,11 +243,11 @@ module RusticiSoftwareCloudV2
243
243
  @api_client.config.logger.debug 'Calling API: ZoomiApi.get_course_zoomi_enabled ...'
244
244
  end
245
245
  # verify the required parameter 'course_id' is set
246
- if @api_client.config.client_side_validation && course_id.nil?
246
+ if course_id.nil?
247
247
  fail ArgumentError, "Missing the required parameter 'course_id' when calling ZoomiApi.get_course_zoomi_enabled"
248
248
  end
249
249
  # verify the required parameter 'version_id' is set
250
- if @api_client.config.client_side_validation && version_id.nil?
250
+ if version_id.nil?
251
251
  fail ArgumentError, "Missing the required parameter 'version_id' when calling ZoomiApi.get_course_zoomi_enabled"
252
252
  end
253
253
  # resource path
@@ -281,10 +281,10 @@ module RusticiSoftwareCloudV2
281
281
  end
282
282
  return data, status_code, headers
283
283
  end
284
- # Gets the status for a course and imports to Zoomi
285
- # Gets the status for a course and imports to Zoomi
284
+ # Get the status for a Course from Zoomi
285
+ # Returns the status for a course and starts the upload process to Zoomi if not started.
286
286
  # @param course_id
287
- # @param version_id The course version
287
+ # @param version_id
288
288
  # @param [Hash] opts the optional parameters
289
289
  # @return [StringResultSchema]
290
290
  def get_zoomi_course_status(course_id, version_id, opts = {})
@@ -292,10 +292,10 @@ module RusticiSoftwareCloudV2
292
292
  data
293
293
  end
294
294
 
295
- # Gets the status for a course and imports to Zoomi
296
- # Gets the status for a course and imports to Zoomi
295
+ # Get the status for a Course from Zoomi
296
+ # Returns the status for a course and starts the upload process to Zoomi if not started.
297
297
  # @param course_id
298
- # @param version_id The course version
298
+ # @param version_id
299
299
  # @param [Hash] opts the optional parameters
300
300
  # @return [Array<(StringResultSchema, Fixnum, Hash)>] StringResultSchema data, response status code and response headers
301
301
  def get_zoomi_course_status_with_http_info(course_id, version_id, opts = {})
@@ -303,11 +303,11 @@ module RusticiSoftwareCloudV2
303
303
  @api_client.config.logger.debug 'Calling API: ZoomiApi.get_zoomi_course_status ...'
304
304
  end
305
305
  # verify the required parameter 'course_id' is set
306
- if @api_client.config.client_side_validation && course_id.nil?
306
+ if course_id.nil?
307
307
  fail ArgumentError, "Missing the required parameter 'course_id' when calling ZoomiApi.get_zoomi_course_status"
308
308
  end
309
309
  # verify the required parameter 'version_id' is set
310
- if @api_client.config.client_side_validation && version_id.nil?
310
+ if version_id.nil?
311
311
  fail ArgumentError, "Missing the required parameter 'version_id' when calling ZoomiApi.get_zoomi_course_status"
312
312
  end
313
313
  # resource path
@@ -341,8 +341,73 @@ module RusticiSoftwareCloudV2
341
341
  end
342
342
  return data, status_code, headers
343
343
  end
344
- # Set the zoomi company id value of an application.
345
- # Set the zoomi company id value of an application.
344
+ # Begin the import process with Zoomi
345
+ # Begins the import process with Zoomi. Must be followed up by a status call.
346
+ # @param course_id
347
+ # @param version_id
348
+ # @param zoomi_course_options
349
+ # @param [Hash] opts the optional parameters
350
+ # @return [nil]
351
+ def import_course_version_to_zoomi(course_id, version_id, zoomi_course_options, opts = {})
352
+ import_course_version_to_zoomi_with_http_info(course_id, version_id, zoomi_course_options, opts)
353
+ nil
354
+ end
355
+
356
+ # Begin the import process with Zoomi
357
+ # Begins the import process with Zoomi. Must be followed up by a status call.
358
+ # @param course_id
359
+ # @param version_id
360
+ # @param zoomi_course_options
361
+ # @param [Hash] opts the optional parameters
362
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
363
+ def import_course_version_to_zoomi_with_http_info(course_id, version_id, zoomi_course_options, opts = {})
364
+ if @api_client.config.debugging
365
+ @api_client.config.logger.debug 'Calling API: ZoomiApi.import_course_version_to_zoomi ...'
366
+ end
367
+ # verify the required parameter 'course_id' is set
368
+ if course_id.nil?
369
+ fail ArgumentError, "Missing the required parameter 'course_id' when calling ZoomiApi.import_course_version_to_zoomi"
370
+ end
371
+ # verify the required parameter 'version_id' is set
372
+ if version_id.nil?
373
+ fail ArgumentError, "Missing the required parameter 'version_id' when calling ZoomiApi.import_course_version_to_zoomi"
374
+ end
375
+ # verify the required parameter 'zoomi_course_options' is set
376
+ if zoomi_course_options.nil?
377
+ fail ArgumentError, "Missing the required parameter 'zoomi_course_options' when calling ZoomiApi.import_course_version_to_zoomi"
378
+ end
379
+ # resource path
380
+ local_var_path = '/zoomi/course/{courseId}/version/{versionId}/import'.sub('{' + 'courseId' + '}', course_id.to_s).sub('{' + 'versionId' + '}', version_id.to_s)
381
+
382
+ # query parameters
383
+ query_params = {}
384
+
385
+ # header parameters
386
+ header_params = {}
387
+ # HTTP header 'Accept' (if needed)
388
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
389
+ # HTTP header 'Content-Type'
390
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
391
+
392
+ # form parameters
393
+ form_params = {}
394
+
395
+ # http body (model)
396
+ post_body = @api_client.object_to_http_body(zoomi_course_options)
397
+ auth_names = ['APP_NORMAL', 'OAUTH']
398
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
399
+ :header_params => header_params,
400
+ :query_params => query_params,
401
+ :form_params => form_params,
402
+ :body => post_body,
403
+ :auth_names => auth_names)
404
+ if @api_client.config.debugging
405
+ @api_client.config.logger.debug "API called: ZoomiApi#import_course_version_to_zoomi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
406
+ end
407
+ return data, status_code, headers
408
+ end
409
+ # Set the Zoomi company ID of an Application
410
+ # Sets the Zoomi company ID value of an application.
346
411
  # @param zoomi_company_id
347
412
  # @param [Hash] opts the optional parameters
348
413
  # @return [nil]
@@ -351,8 +416,8 @@ module RusticiSoftwareCloudV2
351
416
  nil
352
417
  end
353
418
 
354
- # Set the zoomi company id value of an application.
355
- # Set the zoomi company id value of an application.
419
+ # Set the Zoomi company ID of an Application
420
+ # Sets the Zoomi company ID value of an application.
356
421
  # @param zoomi_company_id
357
422
  # @param [Hash] opts the optional parameters
358
423
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
@@ -361,7 +426,7 @@ module RusticiSoftwareCloudV2
361
426
  @api_client.config.logger.debug 'Calling API: ZoomiApi.set_application_zoomi_company_id ...'
362
427
  end
363
428
  # verify the required parameter 'zoomi_company_id' is set
364
- if @api_client.config.client_side_validation && zoomi_company_id.nil?
429
+ if zoomi_company_id.nil?
365
430
  fail ArgumentError, "Missing the required parameter 'zoomi_company_id' when calling ZoomiApi.set_application_zoomi_company_id"
366
431
  end
367
432
  # resource path
@@ -394,37 +459,41 @@ module RusticiSoftwareCloudV2
394
459
  end
395
460
  return data, status_code, headers
396
461
  end
397
- # Set the zoomi enabled value of a course.
398
- # Set the zoomi enabled value of a course.
462
+ # Set the Zoomi enabled value of a Course Version
463
+ # Sets the Zoomi enabled value of a course version.
399
464
  # @param course_id
400
- # @param version_id The course version
465
+ # @param version_id
466
+ # @param enabled
401
467
  # @param [Hash] opts the optional parameters
402
- # @option opts [ZoomiCourseOptionsSchema] :zoomi_course_options
403
468
  # @return [nil]
404
- def set_course_zoomi_enabled(course_id, version_id, opts = {})
405
- set_course_zoomi_enabled_with_http_info(course_id, version_id, opts)
469
+ def set_course_zoomi_enabled(course_id, version_id, enabled, opts = {})
470
+ set_course_zoomi_enabled_with_http_info(course_id, version_id, enabled, opts)
406
471
  nil
407
472
  end
408
473
 
409
- # Set the zoomi enabled value of a course.
410
- # Set the zoomi enabled value of a course.
474
+ # Set the Zoomi enabled value of a Course Version
475
+ # Sets the Zoomi enabled value of a course version.
411
476
  # @param course_id
412
- # @param version_id The course version
477
+ # @param version_id
478
+ # @param enabled
413
479
  # @param [Hash] opts the optional parameters
414
- # @option opts [ZoomiCourseOptionsSchema] :zoomi_course_options
415
480
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
416
- def set_course_zoomi_enabled_with_http_info(course_id, version_id, opts = {})
481
+ def set_course_zoomi_enabled_with_http_info(course_id, version_id, enabled, opts = {})
417
482
  if @api_client.config.debugging
418
483
  @api_client.config.logger.debug 'Calling API: ZoomiApi.set_course_zoomi_enabled ...'
419
484
  end
420
485
  # verify the required parameter 'course_id' is set
421
- if @api_client.config.client_side_validation && course_id.nil?
486
+ if course_id.nil?
422
487
  fail ArgumentError, "Missing the required parameter 'course_id' when calling ZoomiApi.set_course_zoomi_enabled"
423
488
  end
424
489
  # verify the required parameter 'version_id' is set
425
- if @api_client.config.client_side_validation && version_id.nil?
490
+ if version_id.nil?
426
491
  fail ArgumentError, "Missing the required parameter 'version_id' when calling ZoomiApi.set_course_zoomi_enabled"
427
492
  end
493
+ # verify the required parameter 'enabled' is set
494
+ if enabled.nil?
495
+ fail ArgumentError, "Missing the required parameter 'enabled' when calling ZoomiApi.set_course_zoomi_enabled"
496
+ end
428
497
  # resource path
429
498
  local_var_path = '/zoomi/course/{courseId}/version/{versionId}/enabled'.sub('{' + 'courseId' + '}', course_id.to_s).sub('{' + 'versionId' + '}', version_id.to_s)
430
499
 
@@ -442,7 +511,7 @@ module RusticiSoftwareCloudV2
442
511
  form_params = {}
443
512
 
444
513
  # http body (model)
445
- post_body = @api_client.object_to_http_body(opts[:'zoomi_course_options'])
514
+ post_body = @api_client.object_to_http_body(enabled)
446
515
  auth_names = ['APP_NORMAL', 'OAUTH']
447
516
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
448
517
  :header_params => header_params,
@@ -15,7 +15,7 @@ require 'json'
15
15
  require 'logger'
16
16
  require 'tempfile'
17
17
  require 'typhoeus'
18
- require 'uri'
18
+ require 'addressable/uri'
19
19
 
20
20
  module RusticiSoftwareCloudV2
21
21
  class ApiClient
@@ -264,7 +264,7 @@ module RusticiSoftwareCloudV2
264
264
  def build_request_url(path)
265
265
  # Add leading and trailing slashes to path
266
266
  path = "/#{path}".gsub(/\/+/, '/')
267
- URI.encode(@config.base_url + path)
267
+ Addressable::URI.encode(@config.base_url + path)
268
268
  end
269
269
 
270
270
  # Builds the HTTP request body
@@ -10,7 +10,7 @@ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
13
- require 'uri'
13
+ require 'addressable/uri'
14
14
 
15
15
  module RusticiSoftwareCloudV2
16
16
  class Configuration
@@ -175,7 +175,7 @@ module RusticiSoftwareCloudV2
175
175
 
176
176
  def base_url
177
177
  url = "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
178
- URI.encode(url)
178
+ Addressable::URI.encode(url)
179
179
  end
180
180
 
181
181
  # Gets API key (with prefix if set).
@@ -225,4 +225,4 @@ module RusticiSoftwareCloudV2
225
225
  }
226
226
  end
227
227
  end
228
- end
228
+ end
@@ -64,6 +64,7 @@ module RusticiSoftwareCloudV2
64
64
  true
65
65
  end
66
66
 
67
+
67
68
  # Checks equality by comparing each attribute.
68
69
  # @param [Object] Object to be compared
69
70
  def ==(o)
@@ -92,7 +93,7 @@ module RusticiSoftwareCloudV2
92
93
  return nil unless attributes.is_a?(Hash)
93
94
  self.class.swagger_types.each_pair do |key, type|
94
95
  if type =~ /\AArray<(.*)>/i
95
- # check to ensure the input is an array given that the the attribute
96
+ # check to ensure the input is an array given that the attribute
96
97
  # is documented as an array but the input is not
97
98
  if attributes[self.class.attribute_map[key]].is_a?(Array)
98
99
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -188,5 +189,6 @@ module RusticiSoftwareCloudV2
188
189
  value
189
190
  end
190
191
  end
192
+
191
193
  end
192
194
  end
@@ -40,28 +40,6 @@ module RusticiSoftwareCloudV2
40
40
 
41
41
  attr_accessor :runtime
42
42
 
43
- class EnumAttributeValidator
44
- attr_reader :datatype
45
- attr_reader :allowable_values
46
-
47
- def initialize(datatype, allowable_values)
48
- @allowable_values = allowable_values.map do |value|
49
- case datatype.to_s
50
- when /Integer/i
51
- value.to_i
52
- when /Float/i
53
- value.to_f
54
- else
55
- value
56
- end
57
- end
58
- end
59
-
60
- def valid?(value)
61
- !value || allowable_values.include?(value)
62
- end
63
- end
64
-
65
43
  # Attribute mapping from ruby-style variable name to JSON key.
66
44
  def self.attribute_map
67
45
  {
@@ -175,30 +153,23 @@ module RusticiSoftwareCloudV2
175
153
  # Check to see if the all the properties in the model are valid
176
154
  # @return true if the model is valid
177
155
  def valid?
178
- activity_completion_validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'COMPLETED', 'INCOMPLETE'])
179
- return false unless activity_completion_validator.valid?(@activity_completion)
180
- activity_success_validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
181
- return false unless activity_success_validator.valid?(@activity_success)
182
156
  true
183
157
  end
184
158
 
185
159
  # Custom attribute writer method checking allowed values (enum).
160
+ #
161
+ # allowable_values = ['UNKNOWN', 'COMPLETED', 'INCOMPLETE']
162
+ #
186
163
  # @param [Object] activity_completion Object to be assigned
187
164
  def activity_completion=(activity_completion)
188
- validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'COMPLETED', 'INCOMPLETE'])
189
- unless validator.valid?(activity_completion)
190
- fail ArgumentError, 'invalid value for "activity_completion", must be one of #{validator.allowable_values}.'
191
- end
192
165
  @activity_completion = activity_completion
193
166
  end
194
-
195
167
  # Custom attribute writer method checking allowed values (enum).
168
+ #
169
+ # allowable_values = ['UNKNOWN', 'PASSED', 'FAILED']
170
+ #
196
171
  # @param [Object] activity_success Object to be assigned
197
172
  def activity_success=(activity_success)
198
- validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
199
- unless validator.valid?(activity_success)
200
- fail ArgumentError, 'invalid value for "activity_success", must be one of #{validator.allowable_values}.'
201
- end
202
173
  @activity_success = activity_success
203
174
  end
204
175
 
@@ -241,7 +212,7 @@ module RusticiSoftwareCloudV2
241
212
  return nil unless attributes.is_a?(Hash)
242
213
  self.class.swagger_types.each_pair do |key, type|
243
214
  if type =~ /\AArray<(.*)>/i
244
- # check to ensure the input is an array given that the the attribute
215
+ # check to ensure the input is an array given that the attribute
245
216
  # is documented as an array but the input is not
246
217
  if attributes[self.class.attribute_map[key]].is_a?(Array)
247
218
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -337,5 +308,6 @@ module RusticiSoftwareCloudV2
337
308
  value
338
309
  end
339
310
  end
311
+
340
312
  end
341
313
  end