rustici_software_cloud_v2 1.0.0beta → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (287) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +1 -1
  3. data/README.md +354 -243
  4. data/lib/rustici_software_cloud_v2/api/about_api.rb +71 -0
  5. data/lib/rustici_software_cloud_v2/api/application_management_api.rb +253 -63
  6. data/lib/rustici_software_cloud_v2/api/authentication_api.rb +11 -17
  7. data/lib/rustici_software_cloud_v2/api/course_api.rb +910 -160
  8. data/lib/rustici_software_cloud_v2/api/dispatch_api.rb +2236 -0
  9. data/lib/rustici_software_cloud_v2/api/invitations_api.rb +1025 -0
  10. data/lib/rustici_software_cloud_v2/api/learner_api.rb +367 -0
  11. data/lib/rustici_software_cloud_v2/api/ping_api.rb +6 -4
  12. data/lib/rustici_software_cloud_v2/api/registration_api.rb +448 -295
  13. data/lib/rustici_software_cloud_v2/api/reporting_api.rb +191 -0
  14. data/lib/rustici_software_cloud_v2/api/xapi_api.rb +581 -0
  15. data/lib/rustici_software_cloud_v2/api/zoomi_api.rb +528 -0
  16. data/lib/rustici_software_cloud_v2/api_client.rb +5 -5
  17. data/lib/rustici_software_cloud_v2/api_error.rb +2 -2
  18. data/lib/rustici_software_cloud_v2/configuration.rb +11 -20
  19. data/lib/rustici_software_cloud_v2/models/about_schema.rb +194 -0
  20. data/lib/rustici_software_cloud_v2/models/activity_result_schema.rb +10 -38
  21. data/lib/rustici_software_cloud_v2/models/application_info_schema.rb +234 -0
  22. data/lib/rustici_software_cloud_v2/models/application_list_schema.rb +5 -3
  23. data/lib/rustici_software_cloud_v2/models/{link_schema.rb → application_request_schema.rb} +14 -16
  24. data/lib/rustici_software_cloud_v2/models/application_schema.rb +5 -3
  25. data/lib/rustici_software_cloud_v2/models/application_token.rb +5 -3
  26. data/lib/rustici_software_cloud_v2/models/asset_file_schema.rb +194 -0
  27. data/lib/rustici_software_cloud_v2/models/{course_tags_batch_schema.rb → batch_tags_schema.rb} +21 -17
  28. data/lib/rustici_software_cloud_v2/models/comment_schema.rb +5 -3
  29. data/lib/rustici_software_cloud_v2/models/completion_amount_schema.rb +5 -3
  30. data/lib/rustici_software_cloud_v2/models/course_activity_schema.rb +7 -31
  31. data/lib/rustici_software_cloud_v2/models/course_list_non_paged_schema.rb +5 -3
  32. data/lib/rustici_software_cloud_v2/models/course_list_schema.rb +6 -3
  33. data/lib/rustici_software_cloud_v2/models/course_reference_schema.rb +5 -3
  34. data/lib/rustici_software_cloud_v2/models/course_schema.rb +7 -31
  35. data/lib/rustici_software_cloud_v2/models/{registration_tags_batch_schema.rb → create_dispatch_id_schema.rb} +25 -25
  36. data/lib/rustici_software_cloud_v2/models/create_dispatch_list_schema.rb +187 -0
  37. data/lib/rustici_software_cloud_v2/models/create_dispatch_schema.rb +306 -0
  38. data/lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb +252 -0
  39. data/lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb +250 -0
  40. data/lib/rustici_software_cloud_v2/models/create_registration_schema.rb +5 -3
  41. data/lib/rustici_software_cloud_v2/models/credential_created_schema.rb +5 -3
  42. data/lib/rustici_software_cloud_v2/models/credential_list_schema.rb +5 -3
  43. data/lib/rustici_software_cloud_v2/models/credential_request_schema.rb +5 -3
  44. data/lib/rustici_software_cloud_v2/models/credential_schema.rb +5 -3
  45. data/lib/rustici_software_cloud_v2/models/destination_id_schema.rb +195 -0
  46. data/lib/rustici_software_cloud_v2/models/destination_list_schema.rb +198 -0
  47. data/lib/rustici_software_cloud_v2/models/destination_schema.rb +227 -0
  48. data/lib/rustici_software_cloud_v2/models/dispatch_id_schema.rb +194 -0
  49. data/lib/rustici_software_cloud_v2/models/dispatch_list_schema.rb +197 -0
  50. data/lib/rustici_software_cloud_v2/models/dispatch_lti_info_schema.rb +221 -0
  51. data/lib/rustici_software_cloud_v2/models/dispatch_registration_count_schema.rb +194 -0
  52. data/lib/rustici_software_cloud_v2/models/dispatch_schema.rb +326 -0
  53. data/lib/rustici_software_cloud_v2/models/{tag_post_schema.rb → enabled_schema.rb} +17 -6
  54. data/lib/rustici_software_cloud_v2/models/file_list_item_schema.rb +205 -0
  55. data/lib/rustici_software_cloud_v2/models/file_list_schema.rb +187 -0
  56. data/lib/rustici_software_cloud_v2/models/import_asset_request_schema.rb +207 -0
  57. data/lib/rustici_software_cloud_v2/models/import_fetch_request_schema.rb +31 -8
  58. data/lib/rustici_software_cloud_v2/models/import_job_result_schema.rb +7 -31
  59. data/lib/rustici_software_cloud_v2/models/import_media_file_reference_request_schema.rb +216 -0
  60. data/lib/rustici_software_cloud_v2/models/import_request_schema.rb +195 -0
  61. data/lib/rustici_software_cloud_v2/models/import_result_schema.rb +5 -3
  62. data/lib/rustici_software_cloud_v2/models/integer_result_schema.rb +5 -3
  63. data/lib/rustici_software_cloud_v2/models/invitation_email_schema.rb +214 -0
  64. data/lib/rustici_software_cloud_v2/models/invitation_job_status_schema.rb +226 -0
  65. data/lib/rustici_software_cloud_v2/models/invitation_summary_list.rb +198 -0
  66. data/lib/rustici_software_cloud_v2/models/invitation_summary_schema.rb +225 -0
  67. data/lib/rustici_software_cloud_v2/models/item_value_pair_schema.rb +5 -3
  68. data/lib/rustici_software_cloud_v2/models/launch_auth_options_schema.rb +212 -0
  69. data/lib/rustici_software_cloud_v2/models/launch_auth_schema.rb +204 -0
  70. data/lib/rustici_software_cloud_v2/models/launch_history_list_schema.rb +5 -3
  71. data/lib/rustici_software_cloud_v2/models/launch_history_schema.rb +10 -38
  72. data/lib/rustici_software_cloud_v2/models/launch_link_request_schema.rb +25 -9
  73. data/lib/rustici_software_cloud_v2/models/launch_link_schema.rb +5 -3
  74. data/lib/rustici_software_cloud_v2/models/learner_preference_schema.rb +5 -3
  75. data/lib/rustici_software_cloud_v2/models/learner_schema.rb +5 -3
  76. data/lib/rustici_software_cloud_v2/models/media_file_metadata_schema.rb +213 -0
  77. data/lib/rustici_software_cloud_v2/models/message_schema.rb +5 -3
  78. data/lib/rustici_software_cloud_v2/models/metadata_schema.rb +12 -10
  79. data/lib/rustici_software_cloud_v2/models/objective_schema.rb +13 -45
  80. data/lib/rustici_software_cloud_v2/models/permissions_schema.rb +5 -3
  81. data/lib/rustici_software_cloud_v2/models/ping_schema.rb +21 -15
  82. data/lib/rustici_software_cloud_v2/models/post_back_schema.rb +24 -42
  83. data/lib/rustici_software_cloud_v2/models/private_invitation_list.rb +198 -0
  84. data/lib/rustici_software_cloud_v2/models/private_invitation_schema.rb +264 -0
  85. data/lib/rustici_software_cloud_v2/models/private_invitation_update_schema.rb +215 -0
  86. data/lib/rustici_software_cloud_v2/models/public_invitation_list.rb +198 -0
  87. data/lib/rustici_software_cloud_v2/models/public_invitation_schema.rb +287 -0
  88. data/lib/rustici_software_cloud_v2/models/public_invitation_update_schema.rb +228 -0
  89. data/lib/rustici_software_cloud_v2/models/registration_completion.rb +2 -2
  90. data/lib/rustici_software_cloud_v2/models/registration_list_schema.rb +6 -3
  91. data/lib/rustici_software_cloud_v2/models/registration_schema.rb +17 -4
  92. data/lib/rustici_software_cloud_v2/models/registration_success.rb +2 -2
  93. data/lib/rustici_software_cloud_v2/models/reportage_account_info_schema.rb +257 -0
  94. data/lib/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.rb +212 -0
  95. data/lib/rustici_software_cloud_v2/models/reportage_auth_token_schema.rb +194 -0
  96. data/lib/rustici_software_cloud_v2/models/reportage_link_schema.rb +185 -0
  97. data/lib/rustici_software_cloud_v2/models/response_error.rb +5 -3
  98. data/lib/rustici_software_cloud_v2/models/runtime_interaction_schema.rb +7 -31
  99. data/lib/rustici_software_cloud_v2/models/runtime_objective_schema.rb +10 -38
  100. data/lib/rustici_software_cloud_v2/models/runtime_schema.rb +7 -31
  101. data/lib/rustici_software_cloud_v2/models/score_schema.rb +5 -3
  102. data/lib/rustici_software_cloud_v2/models/setting_item.rb +7 -31
  103. data/lib/rustici_software_cloud_v2/models/setting_list_schema.rb +5 -3
  104. data/lib/rustici_software_cloud_v2/models/setting_metadata.rb +7 -31
  105. data/lib/rustici_software_cloud_v2/models/setting_valid_value.rb +5 -3
  106. data/lib/rustici_software_cloud_v2/models/settings_individual_schema.rb +5 -3
  107. data/lib/rustici_software_cloud_v2/models/settings_post_schema.rb +5 -3
  108. data/lib/rustici_software_cloud_v2/models/shared_data_entry_schema.rb +5 -3
  109. data/lib/rustici_software_cloud_v2/models/static_properties_schema.rb +5 -3
  110. data/lib/rustici_software_cloud_v2/models/string_result_schema.rb +5 -3
  111. data/lib/rustici_software_cloud_v2/models/tag_list_schema.rb +5 -3
  112. data/lib/rustici_software_cloud_v2/models/title_schema.rb +5 -3
  113. data/lib/rustici_software_cloud_v2/models/token_request_schema.rb +5 -3
  114. data/lib/rustici_software_cloud_v2/models/update_application_schema.rb +196 -0
  115. data/lib/rustici_software_cloud_v2/models/update_dispatch_schema.rb +266 -0
  116. data/lib/rustici_software_cloud_v2/models/user_invitation_list.rb +198 -0
  117. data/lib/rustici_software_cloud_v2/models/user_invitation_schema.rb +234 -0
  118. data/lib/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.rb +213 -0
  119. data/lib/rustici_software_cloud_v2/models/xapi_account.rb +5 -3
  120. data/lib/rustici_software_cloud_v2/models/xapi_activity.rb +5 -3
  121. data/lib/rustici_software_cloud_v2/models/xapi_activity_definition.rb +5 -3
  122. data/lib/rustici_software_cloud_v2/models/xapi_agent_group.rb +7 -31
  123. data/lib/rustici_software_cloud_v2/models/xapi_attachment.rb +5 -3
  124. data/lib/rustici_software_cloud_v2/models/xapi_context.rb +5 -3
  125. data/lib/rustici_software_cloud_v2/models/xapi_context_activity.rb +5 -3
  126. data/lib/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.rb +193 -0
  127. data/lib/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.rb +193 -0
  128. data/lib/rustici_software_cloud_v2/models/xapi_credential_post_schema.rb +255 -0
  129. data/lib/rustici_software_cloud_v2/models/xapi_credential_put_schema.rb +239 -0
  130. data/lib/rustici_software_cloud_v2/models/xapi_credential_schema.rb +264 -0
  131. data/lib/rustici_software_cloud_v2/models/xapi_credentials_list_schema.rb +202 -0
  132. data/lib/rustici_software_cloud_v2/models/xapi_endpoint_schema.rb +203 -0
  133. data/lib/rustici_software_cloud_v2/models/xapi_interaction_component.rb +5 -3
  134. data/lib/rustici_software_cloud_v2/models/xapi_result.rb +5 -3
  135. data/lib/rustici_software_cloud_v2/models/xapi_score.rb +5 -3
  136. data/lib/rustici_software_cloud_v2/models/xapi_statement.rb +5 -3
  137. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.rb +192 -0
  138. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.rb +199 -0
  139. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_put_schema.rb +194 -0
  140. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.rb +239 -0
  141. data/lib/rustici_software_cloud_v2/models/xapi_statement_reference.rb +5 -3
  142. data/lib/rustici_software_cloud_v2/models/xapi_statement_result.rb +5 -3
  143. data/lib/rustici_software_cloud_v2/models/xapi_verb.rb +5 -3
  144. data/lib/rustici_software_cloud_v2/models/zoomi_company_id.rb +185 -0
  145. data/lib/rustici_software_cloud_v2/models/zoomi_course_options_schema.rb +204 -0
  146. data/lib/rustici_software_cloud_v2/version.rb +3 -3
  147. data/lib/rustici_software_cloud_v2.rb +68 -6
  148. data/rustici_software_cloud_v2.gemspec +8 -7
  149. data/spec/api_client_spec.rb +53 -47
  150. data/spec/configuration_spec.rb +2 -2
  151. data/spec/spec_helper.rb +2 -13
  152. metadata +142 -270
  153. data/docs/ActivityResultSchema.md +0 -20
  154. data/docs/ApplicationListSchema.md +0 -8
  155. data/docs/ApplicationManagementApi.md +0 -570
  156. data/docs/ApplicationSchema.md +0 -9
  157. data/docs/ApplicationToken.md +0 -10
  158. data/docs/AuthenticationApi.md +0 -64
  159. data/docs/CommentSchema.md +0 -10
  160. data/docs/CompletionAmountSchema.md +0 -8
  161. data/docs/CourseActivitySchema.md +0 -15
  162. data/docs/CourseApi.md +0 -1459
  163. data/docs/CourseListNonPagedSchema.md +0 -8
  164. data/docs/CourseListSchema.md +0 -9
  165. data/docs/CourseReferenceSchema.md +0 -10
  166. data/docs/CourseSchema.md +0 -20
  167. data/docs/CourseTagsBatchSchema.md +0 -9
  168. data/docs/CreateRegistrationSchema.md +0 -17
  169. data/docs/CredentialCreatedSchema.md +0 -12
  170. data/docs/CredentialListSchema.md +0 -8
  171. data/docs/CredentialRequestSchema.md +0 -9
  172. data/docs/CredentialSchema.md +0 -12
  173. data/docs/ImportFetchRequestSchema.md +0 -8
  174. data/docs/ImportJobResultSchema.md +0 -11
  175. data/docs/ImportResultSchema.md +0 -11
  176. data/docs/IntegerResultSchema.md +0 -8
  177. data/docs/ItemValuePairSchema.md +0 -9
  178. data/docs/LaunchHistoryListSchema.md +0 -8
  179. data/docs/LaunchHistorySchema.md +0 -17
  180. data/docs/LaunchLinkRequestSchema.md +0 -17
  181. data/docs/LaunchLinkSchema.md +0 -8
  182. data/docs/LearnerPreferenceSchema.md +0 -11
  183. data/docs/LearnerSchema.md +0 -11
  184. data/docs/LinkSchema.md +0 -8
  185. data/docs/MessageSchema.md +0 -8
  186. data/docs/MetadataSchema.md +0 -14
  187. data/docs/ObjectiveSchema.md +0 -20
  188. data/docs/PermissionsSchema.md +0 -9
  189. data/docs/PingApi.md +0 -57
  190. data/docs/PingSchema.md +0 -8
  191. data/docs/PostBackSchema.md +0 -12
  192. data/docs/RegistrationApi.md +0 -1490
  193. data/docs/RegistrationCompletion.md +0 -7
  194. data/docs/RegistrationListSchema.md +0 -9
  195. data/docs/RegistrationSchema.md +0 -27
  196. data/docs/RegistrationSuccess.md +0 -7
  197. data/docs/RegistrationTagsBatchSchema.md +0 -9
  198. data/docs/ResponseError.md +0 -8
  199. data/docs/RuntimeInteractionSchema.md +0 -18
  200. data/docs/RuntimeObjectiveSchema.md +0 -16
  201. data/docs/RuntimeSchema.md +0 -27
  202. data/docs/ScoreSchema.md +0 -8
  203. data/docs/SettingItem.md +0 -12
  204. data/docs/SettingListSchema.md +0 -8
  205. data/docs/SettingMetadata.md +0 -15
  206. data/docs/SettingMetadataValidValues.md +0 -9
  207. data/docs/SettingValidValue.md +0 -9
  208. data/docs/SettingsIndividualSchema.md +0 -10
  209. data/docs/SettingsPostSchema.md +0 -8
  210. data/docs/SharedDataEntrySchema.md +0 -9
  211. data/docs/StaticPropertiesSchema.md +0 -13
  212. data/docs/StringResultSchema.md +0 -8
  213. data/docs/TagListSchema.md +0 -8
  214. data/docs/TagPostSchema.md +0 -7
  215. data/docs/TitleSchema.md +0 -8
  216. data/docs/TokenRequestSchema.md +0 -9
  217. data/docs/XapiAccount.md +0 -9
  218. data/docs/XapiActivity.md +0 -10
  219. data/docs/XapiActivityDefinition.md +0 -19
  220. data/docs/XapiAgentGroup.md +0 -14
  221. data/docs/XapiAttachment.md +0 -14
  222. data/docs/XapiContext.md +0 -16
  223. data/docs/XapiContextActivity.md +0 -11
  224. data/docs/XapiInteractionComponent.md +0 -9
  225. data/docs/XapiResult.md +0 -13
  226. data/docs/XapiScore.md +0 -11
  227. data/docs/XapiStatement.md +0 -20
  228. data/docs/XapiStatementReference.md +0 -9
  229. data/docs/XapiStatementResult.md +0 -9
  230. data/docs/XapiVerb.md +0 -9
  231. data/git_push.sh +0 -55
  232. data/lib/rustici_software_cloud_v2/models/setting_metadata_valid_values.rb +0 -209
  233. data/spec/models/activity_result_schema_spec.rb +0 -133
  234. data/spec/models/application_list_schema_spec.rb +0 -53
  235. data/spec/models/application_schema_spec.rb +0 -59
  236. data/spec/models/application_token_spec.rb +0 -65
  237. data/spec/models/comment_schema_spec.rb +0 -65
  238. data/spec/models/completion_amount_schema_spec.rb +0 -53
  239. data/spec/models/course_activity_schema_spec.rb +0 -99
  240. data/spec/models/course_list_non_paged_schema_spec.rb +0 -53
  241. data/spec/models/course_list_schema_spec.rb +0 -59
  242. data/spec/models/course_reference_schema_spec.rb +0 -65
  243. data/spec/models/course_schema_spec.rb +0 -129
  244. data/spec/models/create_registration_schema_spec.rb +0 -107
  245. data/spec/models/credential_created_schema_spec.rb +0 -77
  246. data/spec/models/credential_list_schema_spec.rb +0 -53
  247. data/spec/models/credential_request_schema_spec.rb +0 -59
  248. data/spec/models/credential_schema_spec.rb +0 -77
  249. data/spec/models/import_fetch_request_schema_spec.rb +0 -53
  250. data/spec/models/import_job_result_schema_spec.rb +0 -75
  251. data/spec/models/import_result_schema_spec.rb +0 -71
  252. data/spec/models/integer_result_schema_spec.rb +0 -53
  253. data/spec/models/item_value_pair_schema_spec.rb +0 -59
  254. data/spec/models/launch_history_list_schema_spec.rb +0 -53
  255. data/spec/models/launch_history_schema_spec.rb +0 -115
  256. data/spec/models/launch_link_request_schema_spec.rb +0 -107
  257. data/spec/models/launch_link_schema_spec.rb +0 -53
  258. data/spec/models/learner_preference_schema_spec.rb +0 -71
  259. data/spec/models/learner_schema_spec.rb +0 -71
  260. data/spec/models/link_schema_spec.rb +0 -53
  261. data/spec/models/message_schema_spec.rb +0 -53
  262. data/spec/models/metadata_schema_spec.rb +0 -89
  263. data/spec/models/objective_schema_spec.rb +0 -137
  264. data/spec/models/permissions_schema_spec.rb +0 -59
  265. data/spec/models/ping_schema_spec.rb +0 -53
  266. data/spec/models/post_back_schema_spec.rb +0 -85
  267. data/spec/models/registration_completion_spec.rb +0 -47
  268. data/spec/models/registration_list_schema_spec.rb +0 -59
  269. data/spec/models/registration_schema_spec.rb +0 -167
  270. data/spec/models/registration_success_spec.rb +0 -47
  271. data/spec/models/response_error_spec.rb +0 -53
  272. data/spec/models/runtime_interaction_schema_spec.rb +0 -117
  273. data/spec/models/runtime_objective_schema_spec.rb +0 -109
  274. data/spec/models/runtime_schema_spec.rb +0 -171
  275. data/spec/models/score_schema_spec.rb +0 -53
  276. data/spec/models/setting_item_spec.rb +0 -81
  277. data/spec/models/setting_list_schema_spec.rb +0 -53
  278. data/spec/models/setting_metadata_spec.rb +0 -99
  279. data/spec/models/setting_metadata_valid_values_spec.rb +0 -59
  280. data/spec/models/settings_individual_schema_spec.rb +0 -65
  281. data/spec/models/settings_post_schema_spec.rb +0 -53
  282. data/spec/models/shared_data_entry_schema_spec.rb +0 -59
  283. data/spec/models/static_properties_schema_spec.rb +0 -83
  284. data/spec/models/string_result_schema_spec.rb +0 -53
  285. data/spec/models/title_schema_spec.rb +0 -53
  286. data/spec/models/token_request_schema_spec.rb +0 -59
  287. data/swagger-codegen.config +0 -11
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 76a614b52e38306b7ef49b804c9d53209e8ad854f4e74a11cd2092be1638180b
4
+ data.tar.gz: cda1d65a0e1ee135dd3905169a2fdbdd1a92155e271efbe24e9555cb9edde962
5
+ SHA512:
6
+ metadata.gz: aeca3f98049127435943a6d120e86d1aa9a97b09d0ff826c62806000f5f53e2ab580359b3ce682aca846e2555642bfbf0e3e0bf4623bbb182054a0a2c35b63a2
7
+ data.tar.gz: 2aa262cd225e5bf1ec2d36b132839cdfaf7e6435b061403cc2dc5252df8ffea7bad38fcfbca5dc2db24afa59ea7f51b74502fd29dd2d5da167effb14c719d361
data/Gemfile CHANGED
@@ -3,5 +3,5 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :development, :test do
6
- gem 'rake', '~> 12.0.0'
6
+ gem 'rake', '~> 12.3.3'
7
7
  end
data/README.md CHANGED
@@ -6,278 +6,389 @@ REST API used for SCORM Cloud integrations.
6
6
 
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
- - API version: 2.0 beta
10
- - Package version: 1.0.0-beta
9
+ - API version: 2.0
10
+ - Package version: 2.0.0
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
14
+ ### Gem
15
+ [rustici_software_cloud_v2](https://rubygems.org/gems/rustici_software_cloud_v2)
14
16
 
15
- ### Build a gem
16
-
17
- To build the Ruby code into a gem:
17
+ ### Local:
18
+ Build the Ruby code into a gem:
18
19
 
19
20
  ```shell
20
21
  gem build rustici_software_cloud_v2.gemspec
21
22
  ```
22
23
 
23
- Then either install the gem locally:
24
-
25
24
  ```shell
26
- gem install ./rustici_software_cloud_v2-1.0.0-beta.gem
25
+ gem install ./rustici_software_cloud_v2-2.0.0.gem
27
26
  ```
28
- (for development, run `gem install --dev ./rustici_software_cloud_v2-1.0.0-beta.gem` to install the development dependencies)
29
-
30
- or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
27
+ For development, run `gem install --dev ./rustici_software_cloud_v2-2.0.0.gem` to install the development dependencies
31
28
 
32
29
  Finally add this to the Gemfile:
33
30
 
34
- gem 'rustici_software_cloud_v2', '~> 1.0.0-beta'
31
+ gem 'rustici_software_cloud_v2', '~> 2.0.0'
35
32
 
36
- ### Install from Git
33
+ ## Tips and Tricks
34
+ Working with headers will require calling the `WithHttpInfo` version of the function. This allows for grabbing the header directly from the response object:
35
+ ```ruby
36
+ # Note: This code is specifically designed to not modify any existing data
37
+ dispatch_api = RusticiSoftwareCloudV2::DispatchApi.new
38
+ response = dispatch_api.update_dispatches_with_http_info(RusticiSoftwareCloudV2::UpdateDispatchSchema.new, {since: Time.now.strftime('%Y-%m-%dT%H:%M:%S.%L') + 'Z'})
39
+ puts response[2]["X-Total-Count"]
40
+ ```
37
41
 
38
- If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
42
+ ## Release 2.0.X:
43
+ Check the [changelog](https://cloud.scorm.com/docs/v2/reference/changelog/) for details of what has changed.
39
44
 
40
- gem 'rustici_software_cloud_v2', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
45
+ ## Sample Code
46
+ ```ruby
47
+ require 'rustici_software_cloud_v2'
48
+ require 'open-uri'
49
+ include RusticiSoftwareCloudV2
41
50
 
42
- ### Include the Ruby code directly
43
51
 
44
- Include the Ruby code directly using `-I` as follows:
52
+ # ScormCloud API credentials
53
+ # Note: These are not the same credentials used to log in to ScormCloud
54
+ APP_ID = 'APP_ID'
55
+ SECRET_KEY = 'SECRET_KEY'
45
56
 
46
- ```shell
47
- ruby -Ilib script.rb
48
- ```
57
+ # Sample values for data
58
+ COURSE_PATH = '/PATH/TO/COURSE/RunTimeAdvancedCalls_SCORM20043rdEdition.zip'
49
59
 
50
- ## Getting Started
60
+ COURSE_ID = 'RB_SAMPLE_COURSE'
61
+ LEARNER_ID = 'RB_SAMPLE_COURSE_LEARNER'
62
+ REGISTRATION_ID = 'RB_SAMPLE_COURSE_REGISTRATION'
51
63
 
52
- Please follow the [installation](#installation) procedure and then run the following code:
53
- ```ruby
54
- # Load the gem
55
- require 'rustici_software_cloud_v2'
64
+ # String used for output formatting
65
+ OUTPUT_BORDER = "---------------------------------------------------------\n\n"
66
+
67
+
68
+ # This sample will consist of:
69
+ # 1. Creating a course.
70
+ # 2. Registering a learner for the course.
71
+ # 3. Building a link for the learner to take the course.
72
+ # 4. Getting the learner's progress after having taken the course.
73
+ # 5. Viewing all courses and registrations.
74
+ # 6. Deleting all of the data created via this sample.
75
+ #
76
+ # All input variables used in this sample are defined up above.
77
+ def main()
78
+ RusticiSoftwareCloudV2.configure do |config|
79
+ # Configure HTTP basic authorization: APP_NORMAL
80
+ config.username = APP_ID
81
+ config.password = SECRET_KEY
82
+ end
83
+
84
+ sc = ScormCloud_Ruby_Sample.new
85
+
86
+ begin
87
+ # Create a course and a registration
88
+ course_details = sc.create_course(COURSE_ID, COURSE_PATH)
89
+ sc.create_registration(COURSE_ID, LEARNER_ID, REGISTRATION_ID)
90
+
91
+ # Show details of the newly imported course
92
+ puts 'Newly Imported Course Details: '
93
+ puts course_details
56
94
 
57
- # Setup authorization
58
- RusticiSoftwareCloudV2.configure do |config|
59
- # Configure HTTP basic authorization: APP_NORMAL
60
- config.username = 'YOUR USERNAME'
61
- config.password = 'YOUR PASSWORD'
62
95
 
63
- # Configure OAuth2 access token for authorization: OAUTH
64
- config.access_token = 'YOUR ACCESS TOKEN'
65
- end
66
96
 
67
- api_instance = RusticiSoftwareCloudV2::ApplicationManagementApi.new
97
+ # Create the registration launch link
98
+ launch_link = sc.build_launch_link(REGISTRATION_ID)
68
99
 
69
- application_name = 'application_name_example' # String |
100
+ # Show the launch link
101
+ puts OUTPUT_BORDER
102
+ puts "Launck Link: #{launch_link}"
103
+ puts 'Navigate to the url above to take the course. Hit enter once complete.'
104
+ gets
70
105
 
71
106
 
72
- begin
73
- #Create a new application
74
- result = api_instance.create_application(application_name)
75
- p result
76
- rescue RusticiSoftwareCloudV2::ApiError => e
77
- puts "Exception when calling ApplicationManagementApi->create_application: #{e}"
107
+
108
+ # Get the results for the registration
109
+ registration_progress = sc.get_result_for_registration(REGISTRATION_ID)
110
+
111
+ # Show details of the registration progress
112
+ puts OUTPUT_BORDER
113
+ puts 'Registration Progress: '
114
+ puts registration_progress
115
+
116
+
117
+
118
+ # Get information about all the courses in ScormCloud
119
+ course_list = sc.get_all_courses()
120
+
121
+ # Show details of the courses
122
+ puts OUTPUT_BORDER
123
+ puts 'Course List: '
124
+ course_list.each do |course|
125
+ puts course
126
+ end
127
+
128
+
129
+
130
+ # Get information about all the registrations in ScormCloud
131
+ registration_list = sc.get_all_registrations()
132
+
133
+ # Show details of the registrations
134
+ puts OUTPUT_BORDER
135
+ puts 'Registration List: '
136
+ registration_list.each do |registration|
137
+ puts registration
138
+ end
139
+
140
+ rescue ApiError, ArgumentError => error
141
+ puts error
142
+
143
+ ensure
144
+ # Delete all the data created by this sample
145
+ sc.clean_up(COURSE_ID, REGISTRATION_ID)
146
+
147
+ end
78
148
  end
79
149
 
80
- ```
150
+ class ScormCloud_Ruby_Sample
151
+
152
+ # Sets the default OAuth token passed with all calls to the API.
153
+ #
154
+ # If a token is created with limited scope (i.e. read:registration),
155
+ # calls that require a different permission set will error. Either a
156
+ # new token needs to be generated with the correct scope, or the
157
+ # default access token can be reset to nil. This would cause the
158
+ # request to be made with basic auth credentials (appId/ secret key)
159
+ # instead.
160
+ #
161
+ # Additionally, you could create a new configuration object and set
162
+ # the token on that object instead of the default access token. This
163
+ # configuration would then be passed into the Api object:
164
+ #
165
+ # config = Configuration.new
166
+ # token_request = TokenRequestSchema.new({
167
+ # permissions: PermissionsSchema.new({
168
+ # scopes: [ "write:course", "read:course" ]
169
+ # }),
170
+ # expiry: (Time.now + 2 * 60).iso8601
171
+ # })
172
+ # config.access_token = app_management_api.create_token(token_request).result
173
+ # course_api = CourseApi.new(ApiClient.new(config))
174
+ #
175
+ # Any calls that would use this CourseApi instance would then have the
176
+ # write:course and read:course permissions passed automatically, but
177
+ # other instances would be unaffected and continue to use other means
178
+ # of authorization.
179
+ #
180
+ # @param [Array<String>] :scopes List of permissions for calls made with the token.
181
+ private def configure_oauth(scopes)
182
+ app_management_api = ApplicationManagementApi.new
183
+
184
+ # Set permissions and expiry time of the token
185
+ # The expiry expected for token request must be in ISO-8601 format
186
+ expiry = (Time.now + 2 * 60).iso8601
187
+ permissions = PermissionsSchema.new({ scopes: scopes })
188
+
189
+ # Make the request to get the OAuth token
190
+ token_request = TokenRequestSchema.new({ permissions: permissions, expiry: expiry })
191
+ token_result = app_management_api.create_token(token_request)
192
+
193
+ # Set the default access token used with further API requests.
194
+ # To remove the token, reset config.access_token back to nil
195
+ # before the next call.
196
+ RusticiSoftwareCloudV2.configure do |config|
197
+ config.access_token = token_result.result
198
+ end
199
+
200
+ nil
201
+ end
202
+
203
+ # Creates a course by uploading the course from your local machine.
204
+ # Courses are a package of content for a learner to consume.
205
+ #
206
+ # Other methods for importing a course exist. Check the documentation
207
+ # for additional ways of importing a course.
208
+ #
209
+ # @param [String] :course_id Id that will be used to identify the course.
210
+ # @param [String] :course_path Path to the course being uploaded.
211
+ # @return [CourseSchema] Detailed information about the newly uploaded course.
212
+ def create_course(course_id, course_path)
213
+ # (Optional) Further authenticate via OAuth token access
214
+ # configure_oauth([ "write:course", "read:course" ])
215
+
216
+ # This call will use OAuth with the "write:course" scope
217
+ # if configured. Otherwise the basic auth credentials will be used
218
+ course_api = CourseApi.new
219
+ job_id = course_api.create_upload_and_import_course_job(course_id, { file: open(course_path) })
220
+
221
+ # This call will use OAuth with the "read:course" scope
222
+ # if configured. Otherwise the basic auth credentials will be used
223
+ job_result = course_api.get_import_job_status(job_id.result)
224
+ while job_result.status == 'RUNNING'
225
+ sleep(1)
226
+ job_result = course_api.get_import_job_status(job_id.result)
227
+ end
228
+
229
+ if job_result.status == 'ERROR'
230
+ raise ArgumentError.new('Course is not properly formatted: ' + job_result.message)
231
+ end
232
+
233
+ job_result.import_result.course
234
+ end
235
+
236
+ # Creates a registration allowing the learner to consume the course
237
+ # content. A registration is the link between a learner and a single
238
+ # course.
239
+ #
240
+ # @param [String] :course_id Id of the course to register the learner for.
241
+ # @param [String] :learner_id Id that will be used to identify the learner.
242
+ # @param [String] :registration_id Id that will be used to identify the registration.
243
+ def create_registration(course_id, learner_id, registration_id)
244
+ # (Optional) Further authenticate via OAuth token access
245
+ # configure_oauth([ "write:registration" ])
246
+
247
+ registration_api = RegistrationApi.new
248
+ learner = LearnerSchema.new({ id: learner_id })
249
+ registration = CreateRegistrationSchema.new({ courseId: course_id, learner: learner, registrationId: registration_id })
250
+ registration_api.create_registration(registration)
251
+
252
+ nil
253
+ end
254
+
255
+ # Builds a url allowing the learner to access the course.
256
+ #
257
+ # This sample will build the launch link and print it out. It will then
258
+ # pause and wait for user input, allowing you to navigate to the course
259
+ # to generate sample learner progress. Once this step has been reached,
260
+ # hitting the enter key will continue program execution.
261
+ #
262
+ # @param [String] :registration_id Id of the registration the link is being built for.
263
+ # @return [String] Link for the learner to launch the course.
264
+ def build_launch_link(registration_id)
265
+ # (Optional) Further authenticate via OAuth token access
266
+ # configure_oauth([ "read:registration" ])
267
+
268
+ registration_api = RegistrationApi.new
269
+ settings = LaunchLinkRequestSchema.new({ redirectOnExitUrl: 'Message' })
270
+ launch_link = registration_api.build_registration_launch_link(registration_id, settings)
271
+
272
+ launch_link.launch_link
273
+ end
274
+
275
+ # Gets information about the progress of the registration.
276
+ #
277
+ # For the most up-to-date results, you should implement our postback
278
+ # mechanism. The basic premise is that any update to the registration
279
+ # would cause us to send the updated results to your system.
280
+ #
281
+ # More details can be found in the documentation:
282
+ # https://cloud.scorm.com/docs/v2/guides/postback/
283
+ #
284
+ # @param [String] :registration_id Id of the registration to get results for.
285
+ # @return [RegistrationSchema] Detailed information about the registration's progress.
286
+ def get_result_for_registration(registration_id)
287
+ # (Optional) Further authenticate via OAuth token access
288
+ # configure_oauth([ "read:registration" ])
289
+
290
+ registration_api = RegistrationApi.new
291
+ progress = registration_api.get_registration_progress(registration_id)
292
+
293
+ progress
294
+ end
295
+
296
+ # Gets information about all courses. The result received from the API
297
+ # call is a paginated list, meaning that additional calls are required
298
+ # to retrieve all the information from the API. This has already been
299
+ # accounted for in the sample.
300
+ #
301
+ # @return [Array<CourseSchema>] List of detailed information about all of the courses.
302
+ def get_all_courses()
303
+ # (Optional) Further authenticate via OAuth token access
304
+ # configure_oauth([ "read:course" ])
305
+
306
+ # Additional filters can be provided to this call to get a subset
307
+ # of all courses.
308
+ course_api = CourseApi.new
309
+ response = course_api.get_courses()
310
+
311
+ # This call is paginated, with a token provided if more results exist
312
+ course_list = response.courses
313
+ until response.more.nil?
314
+ response = course_api.get_courses({ more: response.more })
315
+ course_list += response.courses
316
+ end
317
+
318
+ course_list
319
+ end
320
+
321
+ # Gets information about the registration progress for all
322
+ # registrations. The result received from the API call is a paginated
323
+ # list, meaning that additional calls are required to retrieve all the
324
+ # information from the API. This has already been accounted for in the
325
+ # sample.
326
+ #
327
+ # This call can be quite time-consuming and tedious with lots of
328
+ # registrations. If you find yourself making lots of calls to this
329
+ # endpoint, it might be worthwhile to look into registration postbacks.
330
+ #
331
+ # More details can be found in the documentation:
332
+ # https://cloud.scorm.com/docs/v2/guides/postback/
333
+ #
334
+ # @return [Array<RegistrationSchema>] List of detailed information about all of the registrations.
335
+ def get_all_registrations()
336
+ # (Optional) Further authenticate via OAuth token access
337
+ # configure_oauth([ "read:registration" ])
338
+
339
+ # Additional filters can be provided to this call to get a subset
340
+ # of all registrations.
341
+ registration_api = RegistrationApi.new
342
+ response = registration_api.get_registrations()
343
+
344
+ # This call is paginated, with a token provided if more results exist
345
+ registration_list = response.registrations
346
+ until response.more.nil?
347
+ response = registration_api.get_registrations({ more: response.more })
348
+ registration_list += response.registrations
349
+ end
350
+
351
+ registration_list
352
+ end
353
+
354
+ # Deletes all of the data generated by this sample.
355
+ # This code is run even if the program has errored out, providing a
356
+ # "clean slate" for every run of this sample.
357
+ #
358
+ # It is not necessary to delete registrations if the course
359
+ # they belong to has been deleted. Deleting the course will
360
+ # automatically queue deletion of all registrations associated with
361
+ # the course. There will be a delay between when the course is deleted
362
+ # and when the registrations for the course have been removed. The
363
+ # registration deletion has been handled here to prevent scenarios
364
+ # where the registration hasn't been deleted yet by the time the
365
+ # sample has been rerun.
366
+ #
367
+ # @param [String] :course_id Id of the course to delete.
368
+ # @param [String] :registration_id Id of the registration to delete.
369
+ def clean_up(course_id, registration_id)
370
+ # (Optional) Further authenticate via OAuth token access
371
+ # configure_oauth([ "delete:course", "delete:registration" ])
372
+
373
+ # This call will use OAuth with the "delete:course" scope
374
+ # if configured. Otherwise the basic auth credentials will be used
375
+ course_api = CourseApi.new
376
+ course_api.delete_course(course_id)
377
+
378
+ # The code below is to prevent race conditions if the
379
+ # sample is run in quick successions.
380
+
381
+ # This call will use OAuth with the "delete:registration" scope
382
+ # if configured. Otherwise the basic auth credentials will be used
383
+ registration_api = RegistrationApi.new
384
+ registration_api.delete_registration(registration_id)
385
+
386
+ nil
387
+ end
388
+ end
81
389
 
82
- ## Documentation for API Endpoints
83
-
84
- All URIs are relative to *https://cloud.scorm.com/api/v2/*
85
-
86
- Class | Method | HTTP request | Description
87
- ------------ | ------------- | ------------- | -------------
88
- *RusticiSoftwareCloudV2::ApplicationManagementApi* | [**create_application**](docs/ApplicationManagementApi.md#create_application) | **PUT** /appManagement/applications/{applicationName} | Create a new application
89
- *RusticiSoftwareCloudV2::ApplicationManagementApi* | [**create_credential**](docs/ApplicationManagementApi.md#create_credential) | **POST** /appManagement/{childAppId}/credentials | Create credential
90
- *RusticiSoftwareCloudV2::ApplicationManagementApi* | [**create_token**](docs/ApplicationManagementApi.md#create_token) | **POST** /appManagement/token | Create token
91
- *RusticiSoftwareCloudV2::ApplicationManagementApi* | [**delete_application**](docs/ApplicationManagementApi.md#delete_application) | **DELETE** /appManagement/applications/{childAppId} | Delete an application. If the application contains content, it must first be manually removed before calling this method, else an error will be thrown.
92
- *RusticiSoftwareCloudV2::ApplicationManagementApi* | [**delete_credential**](docs/ApplicationManagementApi.md#delete_credential) | **DELETE** /appManagement/{childAppId}/credentials/{credentialId} | Removes `credentialId` credentials
93
- *RusticiSoftwareCloudV2::ApplicationManagementApi* | [**get_application_configuration**](docs/ApplicationManagementApi.md#get_application_configuration) | **GET** /appManagement/configuration | Returns all configuration settings for this level
94
- *RusticiSoftwareCloudV2::ApplicationManagementApi* | [**get_application_list**](docs/ApplicationManagementApi.md#get_application_list) | **GET** /appManagement/applications | Get list of all applications in this realm.
95
- *RusticiSoftwareCloudV2::ApplicationManagementApi* | [**get_credentials**](docs/ApplicationManagementApi.md#get_credentials) | **GET** /appManagement/{childAppId}/credentials | List of credentials
96
- *RusticiSoftwareCloudV2::ApplicationManagementApi* | [**set_application_configuration**](docs/ApplicationManagementApi.md#set_application_configuration) | **POST** /appManagement/configuration | Set configuration settings for this level.
97
- *RusticiSoftwareCloudV2::ApplicationManagementApi* | [**update_credential**](docs/ApplicationManagementApi.md#update_credential) | **PUT** /appManagement/{childAppId}/credentials/{credentialId} | Update the name or status associated with `credentialId`
98
- *RusticiSoftwareCloudV2::AuthenticationApi* | [**get_app_token**](docs/AuthenticationApi.md#get_app_token) | **POST** /oauth/authenticate/application/token | Authenticates for a oauth token
99
- *RusticiSoftwareCloudV2::CourseApi* | [**build_course_preview_launch_link**](docs/CourseApi.md#build_course_preview_launch_link) | **POST** /courses/{courseId}/preview | Returns the launch link to use to preview this course
100
- *RusticiSoftwareCloudV2::CourseApi* | [**build_course_preview_launch_link_with_version**](docs/CourseApi.md#build_course_preview_launch_link_with_version) | **POST** /courses/{courseId}/versions/{versionId}/preview | Returns the link to use to preview this course
101
- *RusticiSoftwareCloudV2::CourseApi* | [**create_fetch_and_import_course_job**](docs/CourseApi.md#create_fetch_and_import_course_job) | **POST** /courses/importJobs | Start a job to fetch and import a course.
102
- *RusticiSoftwareCloudV2::CourseApi* | [**create_upload_and_import_course_job**](docs/CourseApi.md#create_upload_and_import_course_job) | **POST** /courses/importJobs/upload | Upload a course and start an import job for it.
103
- *RusticiSoftwareCloudV2::CourseApi* | [**delete_course**](docs/CourseApi.md#delete_course) | **DELETE** /courses/{courseId} | Delete `courseId`
104
- *RusticiSoftwareCloudV2::CourseApi* | [**delete_course_configuration_setting**](docs/CourseApi.md#delete_course_configuration_setting) | **DELETE** /courses/{courseId}/configuration/{settingId} | Clears the `settingId` value for this course
105
- *RusticiSoftwareCloudV2::CourseApi* | [**delete_course_tags**](docs/CourseApi.md#delete_course_tags) | **DELETE** /courses/{courseId}/tags | Delete tags for this course
106
- *RusticiSoftwareCloudV2::CourseApi* | [**delete_course_version**](docs/CourseApi.md#delete_course_version) | **DELETE** /courses/{courseId}/versions/{versionId} | Delete version `versionId` of `courseId`
107
- *RusticiSoftwareCloudV2::CourseApi* | [**delete_course_version_configuration_setting**](docs/CourseApi.md#delete_course_version_configuration_setting) | **DELETE** /courses/{courseId}/versions/{versionId}/configuration/{settingId} | Clears the `settingId` value for this course and version.
108
- *RusticiSoftwareCloudV2::CourseApi* | [**get_course**](docs/CourseApi.md#get_course) | **GET** /courses/{courseId} | Get information about `courseId`
109
- *RusticiSoftwareCloudV2::CourseApi* | [**get_course_configuration**](docs/CourseApi.md#get_course_configuration) | **GET** /courses/{courseId}/configuration | Returns all configuration settings for this course
110
- *RusticiSoftwareCloudV2::CourseApi* | [**get_course_statements**](docs/CourseApi.md#get_course_statements) | **GET** /courses/{courseId}/xAPIStatements | Get xAPI statements for `courseId`
111
- *RusticiSoftwareCloudV2::CourseApi* | [**get_course_tags**](docs/CourseApi.md#get_course_tags) | **GET** /courses/{courseId}/tags | Get the tags for this course
112
- *RusticiSoftwareCloudV2::CourseApi* | [**get_course_version_configuration**](docs/CourseApi.md#get_course_version_configuration) | **GET** /courses/{courseId}/versions/{versionId}/configuration | Returns all configuration settings for this course and version.
113
- *RusticiSoftwareCloudV2::CourseApi* | [**get_course_version_info**](docs/CourseApi.md#get_course_version_info) | **GET** /courses/{courseId}/versions/{versionId} | Get version `versionId` of `courseId`
114
- *RusticiSoftwareCloudV2::CourseApi* | [**get_course_version_statements**](docs/CourseApi.md#get_course_version_statements) | **GET** /courses/{courseId}/versions/{versionId}/xAPIStatements | Get xAPI statements for version `versionId` of `courseId`
115
- *RusticiSoftwareCloudV2::CourseApi* | [**get_course_versions**](docs/CourseApi.md#get_course_versions) | **GET** /courses/{courseId}/versions | Get all versions of `courseId`
116
- *RusticiSoftwareCloudV2::CourseApi* | [**get_courses**](docs/CourseApi.md#get_courses) | **GET** /courses | Get all courses for `appId`
117
- *RusticiSoftwareCloudV2::CourseApi* | [**get_import_job_status**](docs/CourseApi.md#get_import_job_status) | **GET** /courses/importJobs/{importJobId} | Check the status of an import job.
118
- *RusticiSoftwareCloudV2::CourseApi* | [**put_course_tags**](docs/CourseApi.md#put_course_tags) | **PUT** /courses/{courseId}/tags | Set the tags for this course
119
- *RusticiSoftwareCloudV2::CourseApi* | [**put_course_tags_batch**](docs/CourseApi.md#put_course_tags_batch) | **PUT** /courses/tags | Sets all of the provided tags on all of the provided courses
120
- *RusticiSoftwareCloudV2::CourseApi* | [**set_course_configuration**](docs/CourseApi.md#set_course_configuration) | **POST** /courses/{courseId}/configuration | Set configuration settings for this course.
121
- *RusticiSoftwareCloudV2::CourseApi* | [**set_course_title**](docs/CourseApi.md#set_course_title) | **PUT** /courses/{courseId}/title | Sets the course title for `courseId`
122
- *RusticiSoftwareCloudV2::CourseApi* | [**set_course_version_configuration**](docs/CourseApi.md#set_course_version_configuration) | **POST** /courses/{courseId}/versions/{versionId}/configuration | Set configuration settings for this course and version.
123
- *RusticiSoftwareCloudV2::PingApi* | [**ping_app_id**](docs/PingApi.md#ping_app_id) | **GET** /ping | Get back a message indicating that the API is working.
124
- *RusticiSoftwareCloudV2::RegistrationApi* | [**create_new_registration_instance**](docs/RegistrationApi.md#create_new_registration_instance) | **POST** /registrations/{registrationId}/instances | Create a new instance for this registration specified by the registration ID
125
- *RusticiSoftwareCloudV2::RegistrationApi* | [**create_registration**](docs/RegistrationApi.md#create_registration) | **POST** /registrations | Create a registration.
126
- *RusticiSoftwareCloudV2::RegistrationApi* | [**delete_registration**](docs/RegistrationApi.md#delete_registration) | **DELETE** /registrations/{registrationId} | Delete `registrationId`
127
- *RusticiSoftwareCloudV2::RegistrationApi* | [**delete_registration_configuration_setting**](docs/RegistrationApi.md#delete_registration_configuration_setting) | **DELETE** /registrations/{registrationId}/configuration/{settingId} | Clears the `settingId` value for this registration
128
- *RusticiSoftwareCloudV2::RegistrationApi* | [**delete_registration_instance_configuration_setting**](docs/RegistrationApi.md#delete_registration_instance_configuration_setting) | **DELETE** /registrations/{registrationId}/instances/{instanceId}/configuration/{settingId} | Clears the `settingId` value for this registration instance
129
- *RusticiSoftwareCloudV2::RegistrationApi* | [**delete_registration_progress**](docs/RegistrationApi.md#delete_registration_progress) | **DELETE** /registrations/{registrationId}/progress | Delete registration progress (clear registration)
130
- *RusticiSoftwareCloudV2::RegistrationApi* | [**delete_registration_tags**](docs/RegistrationApi.md#delete_registration_tags) | **DELETE** /registrations/{registrationId}/tags | Delete tags for this registration
131
- *RusticiSoftwareCloudV2::RegistrationApi* | [**delete_registrations_global_data**](docs/RegistrationApi.md#delete_registrations_global_data) | **DELETE** /registrations/{registrationId}/globalData | Delete global data associated with `registrationId`
132
- *RusticiSoftwareCloudV2::RegistrationApi* | [**get_registration_configuration**](docs/RegistrationApi.md#get_registration_configuration) | **GET** /registrations/{registrationId}/configuration | Returns all configuration settings for this registration
133
- *RusticiSoftwareCloudV2::RegistrationApi* | [**get_registration_instance_configuration**](docs/RegistrationApi.md#get_registration_instance_configuration) | **GET** /registrations/{registrationId}/instances/{instanceId}/configuration | Returns all configuration settings for this registration instance
134
- *RusticiSoftwareCloudV2::RegistrationApi* | [**get_registration_instance_launch_history**](docs/RegistrationApi.md#get_registration_instance_launch_history) | **GET** /registrations/{registrationId}/instances/{instanceId}/launchHistory | Returns history of this registration's launches
135
- *RusticiSoftwareCloudV2::RegistrationApi* | [**get_registration_instance_progress**](docs/RegistrationApi.md#get_registration_instance_progress) | **GET** /registrations/{registrationId}/instances/{instanceId} | Get registration progress for instance `instanceId` of `registrationId`
136
- *RusticiSoftwareCloudV2::RegistrationApi* | [**get_registration_instance_statements**](docs/RegistrationApi.md#get_registration_instance_statements) | **GET** /registrations/{registrationId}/instances/{instanceId}/xAPIStatements | Get xAPI statements for instance `instanceId` of `registrationId`
137
- *RusticiSoftwareCloudV2::RegistrationApi* | [**get_registration_instances**](docs/RegistrationApi.md#get_registration_instances) | **GET** /registrations/{registrationId}/instances | Get all the instances of this the registration specified by the registration ID
138
- *RusticiSoftwareCloudV2::RegistrationApi* | [**get_registration_launch_history**](docs/RegistrationApi.md#get_registration_launch_history) | **GET** /registrations/{registrationId}/launchHistory | Returns history of this registration's launches
139
- *RusticiSoftwareCloudV2::RegistrationApi* | [**get_registration_launch_link**](docs/RegistrationApi.md#get_registration_launch_link) | **POST** /registrations/{registrationId}/launchLink | Returns the link to use to launch this registration
140
- *RusticiSoftwareCloudV2::RegistrationApi* | [**get_registration_progress**](docs/RegistrationApi.md#get_registration_progress) | **GET** /registrations/{registrationId} | Get registration progress for `registrationId`
141
- *RusticiSoftwareCloudV2::RegistrationApi* | [**get_registration_statements**](docs/RegistrationApi.md#get_registration_statements) | **GET** /registrations/{registrationId}/xAPIStatements | Get xAPI statements for `registrationId`
142
- *RusticiSoftwareCloudV2::RegistrationApi* | [**get_registration_tags**](docs/RegistrationApi.md#get_registration_tags) | **GET** /registrations/{registrationId}/tags | Get the tags for this registration
143
- *RusticiSoftwareCloudV2::RegistrationApi* | [**get_registrations**](docs/RegistrationApi.md#get_registrations) | **GET** /registrations | Gets a list of registrations including a summary of the status of each registration.
144
- *RusticiSoftwareCloudV2::RegistrationApi* | [**put_registration_tags**](docs/RegistrationApi.md#put_registration_tags) | **PUT** /registrations/{registrationId}/tags | Set the tags for this registration
145
- *RusticiSoftwareCloudV2::RegistrationApi* | [**put_registration_tags_batch**](docs/RegistrationApi.md#put_registration_tags_batch) | **PUT** /registrations/tags | Sets all of the provided tags on all of the provided registrations
146
- *RusticiSoftwareCloudV2::RegistrationApi* | [**registration_exists**](docs/RegistrationApi.md#registration_exists) | **HEAD** /registrations/{registrationId} | Does this registration exist?
147
- *RusticiSoftwareCloudV2::RegistrationApi* | [**set_registration_configuration**](docs/RegistrationApi.md#set_registration_configuration) | **POST** /registrations/{registrationId}/configuration | Set configuration settings for this registration.
148
- *RusticiSoftwareCloudV2::RegistrationApi* | [**set_registration_instance_configuration**](docs/RegistrationApi.md#set_registration_instance_configuration) | **POST** /registrations/{registrationId}/instances/{instanceId}/configuration | Set configuration settings for this registration instance.
149
-
150
-
151
- ## Documentation for Models
152
-
153
- - [RusticiSoftwareCloudV2::ActivityResultSchema](docs/ActivityResultSchema.md)
154
- - [RusticiSoftwareCloudV2::ApplicationListSchema](docs/ApplicationListSchema.md)
155
- - [RusticiSoftwareCloudV2::ApplicationSchema](docs/ApplicationSchema.md)
156
- - [RusticiSoftwareCloudV2::ApplicationToken](docs/ApplicationToken.md)
157
- - [RusticiSoftwareCloudV2::CommentSchema](docs/CommentSchema.md)
158
- - [RusticiSoftwareCloudV2::CompletionAmountSchema](docs/CompletionAmountSchema.md)
159
- - [RusticiSoftwareCloudV2::CourseActivitySchema](docs/CourseActivitySchema.md)
160
- - [RusticiSoftwareCloudV2::CourseListNonPagedSchema](docs/CourseListNonPagedSchema.md)
161
- - [RusticiSoftwareCloudV2::CourseListSchema](docs/CourseListSchema.md)
162
- - [RusticiSoftwareCloudV2::CourseReferenceSchema](docs/CourseReferenceSchema.md)
163
- - [RusticiSoftwareCloudV2::CourseSchema](docs/CourseSchema.md)
164
- - [RusticiSoftwareCloudV2::CourseTagsBatchSchema](docs/CourseTagsBatchSchema.md)
165
- - [RusticiSoftwareCloudV2::CreateRegistrationSchema](docs/CreateRegistrationSchema.md)
166
- - [RusticiSoftwareCloudV2::CredentialCreatedSchema](docs/CredentialCreatedSchema.md)
167
- - [RusticiSoftwareCloudV2::CredentialListSchema](docs/CredentialListSchema.md)
168
- - [RusticiSoftwareCloudV2::CredentialRequestSchema](docs/CredentialRequestSchema.md)
169
- - [RusticiSoftwareCloudV2::CredentialSchema](docs/CredentialSchema.md)
170
- - [RusticiSoftwareCloudV2::ImportFetchRequestSchema](docs/ImportFetchRequestSchema.md)
171
- - [RusticiSoftwareCloudV2::ImportJobResultSchema](docs/ImportJobResultSchema.md)
172
- - [RusticiSoftwareCloudV2::ImportResultSchema](docs/ImportResultSchema.md)
173
- - [RusticiSoftwareCloudV2::IntegerResultSchema](docs/IntegerResultSchema.md)
174
- - [RusticiSoftwareCloudV2::ItemValuePairSchema](docs/ItemValuePairSchema.md)
175
- - [RusticiSoftwareCloudV2::LaunchHistoryListSchema](docs/LaunchHistoryListSchema.md)
176
- - [RusticiSoftwareCloudV2::LaunchHistorySchema](docs/LaunchHistorySchema.md)
177
- - [RusticiSoftwareCloudV2::LaunchLinkRequestSchema](docs/LaunchLinkRequestSchema.md)
178
- - [RusticiSoftwareCloudV2::LaunchLinkSchema](docs/LaunchLinkSchema.md)
179
- - [RusticiSoftwareCloudV2::LearnerPreferenceSchema](docs/LearnerPreferenceSchema.md)
180
- - [RusticiSoftwareCloudV2::LearnerSchema](docs/LearnerSchema.md)
181
- - [RusticiSoftwareCloudV2::LinkSchema](docs/LinkSchema.md)
182
- - [RusticiSoftwareCloudV2::MessageSchema](docs/MessageSchema.md)
183
- - [RusticiSoftwareCloudV2::MetadataSchema](docs/MetadataSchema.md)
184
- - [RusticiSoftwareCloudV2::ObjectiveSchema](docs/ObjectiveSchema.md)
185
- - [RusticiSoftwareCloudV2::PermissionsSchema](docs/PermissionsSchema.md)
186
- - [RusticiSoftwareCloudV2::PingSchema](docs/PingSchema.md)
187
- - [RusticiSoftwareCloudV2::PostBackSchema](docs/PostBackSchema.md)
188
- - [RusticiSoftwareCloudV2::RegistrationCompletion](docs/RegistrationCompletion.md)
189
- - [RusticiSoftwareCloudV2::RegistrationListSchema](docs/RegistrationListSchema.md)
190
- - [RusticiSoftwareCloudV2::RegistrationSchema](docs/RegistrationSchema.md)
191
- - [RusticiSoftwareCloudV2::RegistrationSuccess](docs/RegistrationSuccess.md)
192
- - [RusticiSoftwareCloudV2::RegistrationTagsBatchSchema](docs/RegistrationTagsBatchSchema.md)
193
- - [RusticiSoftwareCloudV2::ResponseError](docs/ResponseError.md)
194
- - [RusticiSoftwareCloudV2::RuntimeInteractionSchema](docs/RuntimeInteractionSchema.md)
195
- - [RusticiSoftwareCloudV2::RuntimeObjectiveSchema](docs/RuntimeObjectiveSchema.md)
196
- - [RusticiSoftwareCloudV2::RuntimeSchema](docs/RuntimeSchema.md)
197
- - [RusticiSoftwareCloudV2::ScoreSchema](docs/ScoreSchema.md)
198
- - [RusticiSoftwareCloudV2::SettingItem](docs/SettingItem.md)
199
- - [RusticiSoftwareCloudV2::SettingListSchema](docs/SettingListSchema.md)
200
- - [RusticiSoftwareCloudV2::SettingMetadata](docs/SettingMetadata.md)
201
- - [RusticiSoftwareCloudV2::SettingValidValue](docs/SettingValidValue.md)
202
- - [RusticiSoftwareCloudV2::SettingsIndividualSchema](docs/SettingsIndividualSchema.md)
203
- - [RusticiSoftwareCloudV2::SettingsPostSchema](docs/SettingsPostSchema.md)
204
- - [RusticiSoftwareCloudV2::SharedDataEntrySchema](docs/SharedDataEntrySchema.md)
205
- - [RusticiSoftwareCloudV2::StaticPropertiesSchema](docs/StaticPropertiesSchema.md)
206
- - [RusticiSoftwareCloudV2::StringResultSchema](docs/StringResultSchema.md)
207
- - [RusticiSoftwareCloudV2::TagListSchema](docs/TagListSchema.md)
208
- - [RusticiSoftwareCloudV2::TagPostSchema](docs/TagPostSchema.md)
209
- - [RusticiSoftwareCloudV2::TitleSchema](docs/TitleSchema.md)
210
- - [RusticiSoftwareCloudV2::TokenRequestSchema](docs/TokenRequestSchema.md)
211
- - [RusticiSoftwareCloudV2::XapiAccount](docs/XapiAccount.md)
212
- - [RusticiSoftwareCloudV2::XapiActivity](docs/XapiActivity.md)
213
- - [RusticiSoftwareCloudV2::XapiActivityDefinition](docs/XapiActivityDefinition.md)
214
- - [RusticiSoftwareCloudV2::XapiAgentGroup](docs/XapiAgentGroup.md)
215
- - [RusticiSoftwareCloudV2::XapiAttachment](docs/XapiAttachment.md)
216
- - [RusticiSoftwareCloudV2::XapiContext](docs/XapiContext.md)
217
- - [RusticiSoftwareCloudV2::XapiContextActivity](docs/XapiContextActivity.md)
218
- - [RusticiSoftwareCloudV2::XapiInteractionComponent](docs/XapiInteractionComponent.md)
219
- - [RusticiSoftwareCloudV2::XapiResult](docs/XapiResult.md)
220
- - [RusticiSoftwareCloudV2::XapiScore](docs/XapiScore.md)
221
- - [RusticiSoftwareCloudV2::XapiStatement](docs/XapiStatement.md)
222
- - [RusticiSoftwareCloudV2::XapiStatementReference](docs/XapiStatementReference.md)
223
- - [RusticiSoftwareCloudV2::XapiStatementResult](docs/XapiStatementResult.md)
224
- - [RusticiSoftwareCloudV2::XapiVerb](docs/XapiVerb.md)
225
-
226
-
227
- ## Documentation for Authorization
228
-
229
-
230
- ### APP_MANAGEMENT
231
-
232
- - **Type**: HTTP basic authentication
233
-
234
- ### APP_NORMAL
235
-
236
- - **Type**: HTTP basic authentication
237
-
238
- ### LAUNCH_TOKEN
239
-
240
- - **Type**: API key
241
- - **API key parameter name**: launchToken
242
- - **Location**: URL query string
243
-
244
- ### OAUTH
245
-
246
- - **Type**: OAuth
247
- - **Flow**: application
248
- - **Authorization URL**:
249
- - **Scopes**:
250
- - read: Grants read access
251
- - write: Grants write access
252
- - delete: Grants deletion access
253
- - admin: Grants read, write, and account management access
254
- - read:course: Grants read access to course methods
255
- - write:course: Grants write access to course methods
256
- - delete:course: Grants deletion access to course methods
257
- - read:dispatch: Grants read access to dispatch methods
258
- - write:dispatch: Grants write access to dispatch methods
259
- - delete:dispatch: Grants deletion access to dispatch methods
260
- - read:invitation: Grants read access to invitation methods
261
- - write:invitation: Grants write access to invitation methods
262
- - delete:invitation: Grants deletion access to invitation methods
263
- - read:ping: Grants read access to the ping method
264
- - read:registration: Grants read access to registration methods
265
- - write:registration: Grants write access to registration methods
266
- - delete:registration: Grants deletion access to registration methods
267
- - read:reporting: Grants read access to reporting methods
268
- - read:xapicredential: Grants read access to xapi credential methods
269
- - write:xapicredential: Grants write access to xapi credential methods
270
- - delete:xapicredential: Grants deletion access to xapi credential methods
271
- - read:xapipipe: Grants read access to xapi pipe methods
272
- - write:xapipipe: Grants write access to xapi pipe methods
273
- - delete:xapipipe: Grants deletion access to xapi pipe methods
274
- - read:appmgmt: Grants read access to app management methods
275
- - write:appmgmt: Grants write access to app management methods
276
- - delete:appmgmt: Grants deletion access to app management methods
277
-
278
- ### URL_TOKEN
279
-
280
- - **Type**: API key
281
- - **API key parameter name**: authtoken
282
- - **Location**: URL query string
390
+ if __FILE__ == $0
391
+ main
392
+ end
283
393
 
394
+ ```