rustici_software_cloud_v2 1.0.0beta → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (268) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +194 -88
  3. data/lib/rustici_software_cloud_v2/api/about_api.rb +71 -0
  4. data/lib/rustici_software_cloud_v2/api/application_management_api.rb +161 -97
  5. data/lib/rustici_software_cloud_v2/api/authentication_api.rb +13 -13
  6. data/lib/rustici_software_cloud_v2/api/course_api.rb +246 -260
  7. data/lib/rustici_software_cloud_v2/api/dispatch_api.rb +1994 -0
  8. data/lib/rustici_software_cloud_v2/api/invitations_api.rb +964 -0
  9. data/lib/rustici_software_cloud_v2/api/learner_api.rb +296 -0
  10. data/lib/rustici_software_cloud_v2/api/ping_api.rb +10 -8
  11. data/lib/rustici_software_cloud_v2/api/registration_api.rb +379 -324
  12. data/lib/rustici_software_cloud_v2/api/reporting_api.rb +191 -0
  13. data/lib/rustici_software_cloud_v2/api/xapi_api.rb +555 -0
  14. data/lib/rustici_software_cloud_v2/api/zoomi_api.rb +448 -0
  15. data/lib/rustici_software_cloud_v2/api_client.rb +2 -3
  16. data/lib/rustici_software_cloud_v2/api_error.rb +1 -2
  17. data/lib/rustici_software_cloud_v2/configuration.rb +9 -19
  18. data/lib/rustici_software_cloud_v2/models/about_schema.rb +196 -0
  19. data/lib/rustici_software_cloud_v2/models/activity_result_schema.rb +17 -14
  20. data/lib/rustici_software_cloud_v2/models/application_list_schema.rb +12 -8
  21. data/lib/rustici_software_cloud_v2/models/application_schema.rb +12 -8
  22. data/lib/rustici_software_cloud_v2/models/application_token.rb +12 -8
  23. data/lib/rustici_software_cloud_v2/models/{course_tags_batch_schema.rb → batch_tags_schema.rb} +29 -23
  24. data/lib/rustici_software_cloud_v2/models/comment_schema.rb +12 -8
  25. data/lib/rustici_software_cloud_v2/models/completion_amount_schema.rb +12 -8
  26. data/lib/rustici_software_cloud_v2/models/course_activity_schema.rb +14 -11
  27. data/lib/rustici_software_cloud_v2/models/course_list_non_paged_schema.rb +12 -8
  28. data/lib/rustici_software_cloud_v2/models/course_list_schema.rb +12 -8
  29. data/lib/rustici_software_cloud_v2/models/course_reference_schema.rb +11 -8
  30. data/lib/rustici_software_cloud_v2/models/course_schema.rb +14 -11
  31. data/lib/rustici_software_cloud_v2/models/create_dispatch_id_schema.rb +225 -0
  32. data/lib/rustici_software_cloud_v2/models/{link_schema.rb → create_dispatch_list_schema.rb} +22 -21
  33. data/lib/rustici_software_cloud_v2/models/create_dispatch_schema.rb +308 -0
  34. data/lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb +254 -0
  35. data/lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb +252 -0
  36. data/lib/rustici_software_cloud_v2/models/create_registration_schema.rb +15 -11
  37. data/lib/rustici_software_cloud_v2/models/credential_created_schema.rb +12 -8
  38. data/lib/rustici_software_cloud_v2/models/credential_list_schema.rb +12 -8
  39. data/lib/rustici_software_cloud_v2/models/credential_request_schema.rb +12 -8
  40. data/lib/rustici_software_cloud_v2/models/credential_schema.rb +12 -8
  41. data/lib/rustici_software_cloud_v2/models/destination_id_schema.rb +197 -0
  42. data/lib/rustici_software_cloud_v2/models/destination_list_schema.rb +200 -0
  43. data/lib/rustici_software_cloud_v2/models/{setting_metadata_valid_values.rb → destination_schema.rb} +42 -31
  44. data/lib/rustici_software_cloud_v2/models/dispatch_id_schema.rb +196 -0
  45. data/lib/rustici_software_cloud_v2/models/dispatch_list_schema.rb +198 -0
  46. data/lib/rustici_software_cloud_v2/models/dispatch_registration_count_schema.rb +196 -0
  47. data/lib/rustici_software_cloud_v2/models/dispatch_schema.rb +290 -0
  48. data/lib/rustici_software_cloud_v2/models/{tag_post_schema.rb → enabled_schema.rb} +24 -11
  49. data/lib/rustici_software_cloud_v2/models/import_fetch_request_schema.rb +12 -9
  50. data/lib/rustici_software_cloud_v2/models/import_job_result_schema.rb +14 -11
  51. data/lib/rustici_software_cloud_v2/models/import_result_schema.rb +12 -8
  52. data/lib/rustici_software_cloud_v2/models/integer_result_schema.rb +13 -9
  53. data/lib/rustici_software_cloud_v2/models/invitation_email_schema.rb +215 -0
  54. data/lib/rustici_software_cloud_v2/models/invitation_job_status_schema.rb +253 -0
  55. data/lib/rustici_software_cloud_v2/models/invitation_summary_list.rb +199 -0
  56. data/lib/rustici_software_cloud_v2/models/invitation_summary_schema.rb +227 -0
  57. data/lib/rustici_software_cloud_v2/models/item_value_pair_schema.rb +12 -8
  58. data/lib/rustici_software_cloud_v2/models/launch_history_list_schema.rb +12 -8
  59. data/lib/rustici_software_cloud_v2/models/launch_history_schema.rb +19 -16
  60. data/lib/rustici_software_cloud_v2/models/launch_link_request_schema.rb +17 -8
  61. data/lib/rustici_software_cloud_v2/models/launch_link_schema.rb +13 -9
  62. data/lib/rustici_software_cloud_v2/models/learner_preference_schema.rb +12 -8
  63. data/lib/rustici_software_cloud_v2/models/learner_schema.rb +13 -9
  64. data/lib/rustici_software_cloud_v2/models/message_schema.rb +13 -9
  65. data/lib/rustici_software_cloud_v2/models/metadata_schema.rb +12 -8
  66. data/lib/rustici_software_cloud_v2/models/objective_schema.rb +23 -20
  67. data/lib/rustici_software_cloud_v2/models/permissions_schema.rb +12 -8
  68. data/lib/rustici_software_cloud_v2/models/ping_schema.rb +28 -20
  69. data/lib/rustici_software_cloud_v2/models/post_back_schema.rb +33 -20
  70. data/lib/rustici_software_cloud_v2/models/private_invitation_list.rb +199 -0
  71. data/lib/rustici_software_cloud_v2/models/private_invitation_schema.rb +266 -0
  72. data/lib/rustici_software_cloud_v2/models/public_invitation_list.rb +199 -0
  73. data/lib/rustici_software_cloud_v2/models/public_invitation_schema.rb +289 -0
  74. data/lib/rustici_software_cloud_v2/models/registration_completion.rb +5 -14
  75. data/lib/rustici_software_cloud_v2/models/registration_list_schema.rb +13 -9
  76. data/lib/rustici_software_cloud_v2/models/registration_schema.rb +24 -9
  77. data/lib/rustici_software_cloud_v2/models/registration_success.rb +5 -14
  78. data/lib/rustici_software_cloud_v2/models/reportage_account_info_schema.rb +259 -0
  79. data/lib/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.rb +214 -0
  80. data/lib/rustici_software_cloud_v2/models/reportage_auth_token_schema.rb +196 -0
  81. data/lib/rustici_software_cloud_v2/models/reportage_link_schema.rb +187 -0
  82. data/lib/rustici_software_cloud_v2/models/response_error.rb +13 -9
  83. data/lib/rustici_software_cloud_v2/models/runtime_interaction_schema.rb +14 -11
  84. data/lib/rustici_software_cloud_v2/models/runtime_objective_schema.rb +19 -16
  85. data/lib/rustici_software_cloud_v2/models/runtime_schema.rb +15 -12
  86. data/lib/rustici_software_cloud_v2/models/score_schema.rb +12 -8
  87. data/lib/rustici_software_cloud_v2/models/setting_item.rb +14 -11
  88. data/lib/rustici_software_cloud_v2/models/setting_list_schema.rb +13 -9
  89. data/lib/rustici_software_cloud_v2/models/setting_metadata.rb +15 -12
  90. data/lib/rustici_software_cloud_v2/models/setting_valid_value.rb +12 -8
  91. data/lib/rustici_software_cloud_v2/models/settings_individual_schema.rb +12 -8
  92. data/lib/rustici_software_cloud_v2/models/settings_post_schema.rb +12 -8
  93. data/lib/rustici_software_cloud_v2/models/shared_data_entry_schema.rb +12 -8
  94. data/lib/rustici_software_cloud_v2/models/static_properties_schema.rb +12 -8
  95. data/lib/rustici_software_cloud_v2/models/string_result_schema.rb +13 -9
  96. data/lib/rustici_software_cloud_v2/models/tag_list_schema.rb +12 -8
  97. data/lib/rustici_software_cloud_v2/models/title_schema.rb +12 -8
  98. data/lib/rustici_software_cloud_v2/models/token_request_schema.rb +14 -10
  99. data/lib/rustici_software_cloud_v2/models/update_dispatch_schema.rb +258 -0
  100. data/lib/rustici_software_cloud_v2/models/user_invitation_list.rb +199 -0
  101. data/lib/rustici_software_cloud_v2/models/user_invitation_schema.rb +236 -0
  102. data/lib/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.rb +214 -0
  103. data/lib/rustici_software_cloud_v2/models/xapi_account.rb +13 -10
  104. data/lib/rustici_software_cloud_v2/models/xapi_activity.rb +13 -10
  105. data/lib/rustici_software_cloud_v2/models/xapi_activity_definition.rb +14 -11
  106. data/lib/rustici_software_cloud_v2/models/xapi_agent_group.rb +14 -12
  107. data/lib/rustici_software_cloud_v2/models/xapi_attachment.rb +18 -15
  108. data/lib/rustici_software_cloud_v2/models/xapi_context.rb +12 -9
  109. data/lib/rustici_software_cloud_v2/models/xapi_context_activity.rb +11 -8
  110. data/lib/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.rb +220 -0
  111. data/lib/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.rb +220 -0
  112. data/lib/rustici_software_cloud_v2/models/xapi_credential_post_schema.rb +252 -0
  113. data/lib/rustici_software_cloud_v2/models/xapi_credential_schema.rb +266 -0
  114. data/lib/rustici_software_cloud_v2/models/{registration_tags_batch_schema.rb → xapi_credentials_list_schema.rb} +30 -31
  115. data/lib/rustici_software_cloud_v2/models/xapi_endpoint_schema.rb +205 -0
  116. data/lib/rustici_software_cloud_v2/models/xapi_interaction_component.rb +13 -10
  117. data/lib/rustici_software_cloud_v2/models/xapi_result.rb +12 -9
  118. data/lib/rustici_software_cloud_v2/models/xapi_score.rb +11 -8
  119. data/lib/rustici_software_cloud_v2/models/xapi_statement.rb +11 -8
  120. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.rb +194 -0
  121. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.rb +196 -0
  122. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.rb +241 -0
  123. data/lib/rustici_software_cloud_v2/models/xapi_statement_reference.rb +14 -11
  124. data/lib/rustici_software_cloud_v2/models/xapi_statement_result.rb +12 -9
  125. data/lib/rustici_software_cloud_v2/models/xapi_verb.rb +13 -10
  126. data/lib/rustici_software_cloud_v2/models/zoomi_company_id.rb +187 -0
  127. data/lib/rustici_software_cloud_v2/models/zoomi_course_options_schema.rb +196 -0
  128. data/lib/rustici_software_cloud_v2/version.rb +2 -3
  129. data/lib/rustici_software_cloud_v2.rb +50 -6
  130. data/rustici_software_cloud_v2.gemspec +10 -11
  131. data/spec/api_client_spec.rb +1 -13
  132. data/spec/configuration_spec.rb +9 -10
  133. data/spec/spec_helper.rb +1 -13
  134. metadata +107 -271
  135. data/docs/ActivityResultSchema.md +0 -20
  136. data/docs/ApplicationListSchema.md +0 -8
  137. data/docs/ApplicationManagementApi.md +0 -570
  138. data/docs/ApplicationSchema.md +0 -9
  139. data/docs/ApplicationToken.md +0 -10
  140. data/docs/AuthenticationApi.md +0 -64
  141. data/docs/CommentSchema.md +0 -10
  142. data/docs/CompletionAmountSchema.md +0 -8
  143. data/docs/CourseActivitySchema.md +0 -15
  144. data/docs/CourseApi.md +0 -1459
  145. data/docs/CourseListNonPagedSchema.md +0 -8
  146. data/docs/CourseListSchema.md +0 -9
  147. data/docs/CourseReferenceSchema.md +0 -10
  148. data/docs/CourseSchema.md +0 -20
  149. data/docs/CourseTagsBatchSchema.md +0 -9
  150. data/docs/CreateRegistrationSchema.md +0 -17
  151. data/docs/CredentialCreatedSchema.md +0 -12
  152. data/docs/CredentialListSchema.md +0 -8
  153. data/docs/CredentialRequestSchema.md +0 -9
  154. data/docs/CredentialSchema.md +0 -12
  155. data/docs/ImportFetchRequestSchema.md +0 -8
  156. data/docs/ImportJobResultSchema.md +0 -11
  157. data/docs/ImportResultSchema.md +0 -11
  158. data/docs/IntegerResultSchema.md +0 -8
  159. data/docs/ItemValuePairSchema.md +0 -9
  160. data/docs/LaunchHistoryListSchema.md +0 -8
  161. data/docs/LaunchHistorySchema.md +0 -17
  162. data/docs/LaunchLinkRequestSchema.md +0 -17
  163. data/docs/LaunchLinkSchema.md +0 -8
  164. data/docs/LearnerPreferenceSchema.md +0 -11
  165. data/docs/LearnerSchema.md +0 -11
  166. data/docs/LinkSchema.md +0 -8
  167. data/docs/MessageSchema.md +0 -8
  168. data/docs/MetadataSchema.md +0 -14
  169. data/docs/ObjectiveSchema.md +0 -20
  170. data/docs/PermissionsSchema.md +0 -9
  171. data/docs/PingApi.md +0 -57
  172. data/docs/PingSchema.md +0 -8
  173. data/docs/PostBackSchema.md +0 -12
  174. data/docs/RegistrationApi.md +0 -1490
  175. data/docs/RegistrationCompletion.md +0 -7
  176. data/docs/RegistrationListSchema.md +0 -9
  177. data/docs/RegistrationSchema.md +0 -27
  178. data/docs/RegistrationSuccess.md +0 -7
  179. data/docs/RegistrationTagsBatchSchema.md +0 -9
  180. data/docs/ResponseError.md +0 -8
  181. data/docs/RuntimeInteractionSchema.md +0 -18
  182. data/docs/RuntimeObjectiveSchema.md +0 -16
  183. data/docs/RuntimeSchema.md +0 -27
  184. data/docs/ScoreSchema.md +0 -8
  185. data/docs/SettingItem.md +0 -12
  186. data/docs/SettingListSchema.md +0 -8
  187. data/docs/SettingMetadata.md +0 -15
  188. data/docs/SettingMetadataValidValues.md +0 -9
  189. data/docs/SettingValidValue.md +0 -9
  190. data/docs/SettingsIndividualSchema.md +0 -10
  191. data/docs/SettingsPostSchema.md +0 -8
  192. data/docs/SharedDataEntrySchema.md +0 -9
  193. data/docs/StaticPropertiesSchema.md +0 -13
  194. data/docs/StringResultSchema.md +0 -8
  195. data/docs/TagListSchema.md +0 -8
  196. data/docs/TagPostSchema.md +0 -7
  197. data/docs/TitleSchema.md +0 -8
  198. data/docs/TokenRequestSchema.md +0 -9
  199. data/docs/XapiAccount.md +0 -9
  200. data/docs/XapiActivity.md +0 -10
  201. data/docs/XapiActivityDefinition.md +0 -19
  202. data/docs/XapiAgentGroup.md +0 -14
  203. data/docs/XapiAttachment.md +0 -14
  204. data/docs/XapiContext.md +0 -16
  205. data/docs/XapiContextActivity.md +0 -11
  206. data/docs/XapiInteractionComponent.md +0 -9
  207. data/docs/XapiResult.md +0 -13
  208. data/docs/XapiScore.md +0 -11
  209. data/docs/XapiStatement.md +0 -20
  210. data/docs/XapiStatementReference.md +0 -9
  211. data/docs/XapiStatementResult.md +0 -9
  212. data/docs/XapiVerb.md +0 -9
  213. data/git_push.sh +0 -55
  214. data/spec/models/activity_result_schema_spec.rb +0 -133
  215. data/spec/models/application_list_schema_spec.rb +0 -53
  216. data/spec/models/application_schema_spec.rb +0 -59
  217. data/spec/models/application_token_spec.rb +0 -65
  218. data/spec/models/comment_schema_spec.rb +0 -65
  219. data/spec/models/completion_amount_schema_spec.rb +0 -53
  220. data/spec/models/course_activity_schema_spec.rb +0 -99
  221. data/spec/models/course_list_non_paged_schema_spec.rb +0 -53
  222. data/spec/models/course_list_schema_spec.rb +0 -59
  223. data/spec/models/course_reference_schema_spec.rb +0 -65
  224. data/spec/models/course_schema_spec.rb +0 -129
  225. data/spec/models/create_registration_schema_spec.rb +0 -107
  226. data/spec/models/credential_created_schema_spec.rb +0 -77
  227. data/spec/models/credential_list_schema_spec.rb +0 -53
  228. data/spec/models/credential_request_schema_spec.rb +0 -59
  229. data/spec/models/credential_schema_spec.rb +0 -77
  230. data/spec/models/import_fetch_request_schema_spec.rb +0 -53
  231. data/spec/models/import_job_result_schema_spec.rb +0 -75
  232. data/spec/models/import_result_schema_spec.rb +0 -71
  233. data/spec/models/integer_result_schema_spec.rb +0 -53
  234. data/spec/models/item_value_pair_schema_spec.rb +0 -59
  235. data/spec/models/launch_history_list_schema_spec.rb +0 -53
  236. data/spec/models/launch_history_schema_spec.rb +0 -115
  237. data/spec/models/launch_link_request_schema_spec.rb +0 -107
  238. data/spec/models/launch_link_schema_spec.rb +0 -53
  239. data/spec/models/learner_preference_schema_spec.rb +0 -71
  240. data/spec/models/learner_schema_spec.rb +0 -71
  241. data/spec/models/link_schema_spec.rb +0 -53
  242. data/spec/models/message_schema_spec.rb +0 -53
  243. data/spec/models/metadata_schema_spec.rb +0 -89
  244. data/spec/models/objective_schema_spec.rb +0 -137
  245. data/spec/models/permissions_schema_spec.rb +0 -59
  246. data/spec/models/ping_schema_spec.rb +0 -53
  247. data/spec/models/post_back_schema_spec.rb +0 -85
  248. data/spec/models/registration_completion_spec.rb +0 -47
  249. data/spec/models/registration_list_schema_spec.rb +0 -59
  250. data/spec/models/registration_schema_spec.rb +0 -167
  251. data/spec/models/registration_success_spec.rb +0 -47
  252. data/spec/models/response_error_spec.rb +0 -53
  253. data/spec/models/runtime_interaction_schema_spec.rb +0 -117
  254. data/spec/models/runtime_objective_schema_spec.rb +0 -109
  255. data/spec/models/runtime_schema_spec.rb +0 -171
  256. data/spec/models/score_schema_spec.rb +0 -53
  257. data/spec/models/setting_item_spec.rb +0 -81
  258. data/spec/models/setting_list_schema_spec.rb +0 -53
  259. data/spec/models/setting_metadata_spec.rb +0 -99
  260. data/spec/models/setting_metadata_valid_values_spec.rb +0 -59
  261. data/spec/models/settings_individual_schema_spec.rb +0 -65
  262. data/spec/models/settings_post_schema_spec.rb +0 -53
  263. data/spec/models/shared_data_entry_schema_spec.rb +0 -59
  264. data/spec/models/static_properties_schema_spec.rb +0 -83
  265. data/spec/models/string_result_schema_spec.rb +0 -53
  266. data/spec/models/title_schema_spec.rb +0 -53
  267. data/spec/models/token_request_schema_spec.rb +0 -59
  268. data/swagger-codegen.config +0 -11
@@ -3,21 +3,22 @@
3
3
 
4
4
  #REST API used for SCORM Cloud integrations.
5
5
 
6
- OpenAPI spec version: 2.0 beta
6
+ OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.3
10
9
 
11
10
  =end
12
11
 
13
12
  require 'date'
14
13
 
15
14
  module RusticiSoftwareCloudV2
15
+
16
16
  class ItemValuePairSchema
17
17
  attr_accessor :item
18
18
 
19
19
  attr_accessor :value
20
20
 
21
+
21
22
  # Attribute mapping from ruby-style variable name to JSON key.
22
23
  def self.attribute_map
23
24
  {
@@ -40,7 +41,7 @@ module RusticiSoftwareCloudV2
40
41
  return unless attributes.is_a?(Hash)
41
42
 
42
43
  # convert string to symbol for hash key
43
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
44
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
44
45
 
45
46
  if attributes.has_key?(:'item')
46
47
  self.item = attributes[:'item']
@@ -49,19 +50,20 @@ module RusticiSoftwareCloudV2
49
50
  if attributes.has_key?(:'value')
50
51
  self.value = attributes[:'value']
51
52
  end
53
+
52
54
  end
53
55
 
54
56
  # Show invalid properties with the reasons. Usually used together with valid?
55
- # @return Array for valid properties with the reasons
57
+ # @return Array for valid properies with the reasons
56
58
  def list_invalid_properties
57
59
  invalid_properties = Array.new
58
- invalid_properties
60
+ return invalid_properties
59
61
  end
60
62
 
61
63
  # Check to see if the all the properties in the model are valid
62
64
  # @return true if the model is valid
63
65
  def valid?
64
- true
66
+ return true
65
67
  end
66
68
 
67
69
  # Checks equality by comparing each attribute.
@@ -95,7 +97,7 @@ module RusticiSoftwareCloudV2
95
97
  # check to ensure the input is an array given that the the attribute
96
98
  # is documented as an array but the input is not
97
99
  if attributes[self.class.attribute_map[key]].is_a?(Array)
98
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
100
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
99
101
  end
100
102
  elsif !attributes[self.class.attribute_map[key]].nil?
101
103
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -177,7 +179,7 @@ module RusticiSoftwareCloudV2
177
179
  # @return [Hash] Returns the value in the form of hash
178
180
  def _to_hash(value)
179
181
  if value.is_a?(Array)
180
- value.compact.map { |v| _to_hash(v) }
182
+ value.compact.map{ |v| _to_hash(v) }
181
183
  elsif value.is_a?(Hash)
182
184
  {}.tap do |hash|
183
185
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -188,5 +190,7 @@ module RusticiSoftwareCloudV2
188
190
  value
189
191
  end
190
192
  end
193
+
191
194
  end
195
+
192
196
  end
@@ -3,19 +3,20 @@
3
3
 
4
4
  #REST API used for SCORM Cloud integrations.
5
5
 
6
- OpenAPI spec version: 2.0 beta
6
+ OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.3
10
9
 
11
10
  =end
12
11
 
13
12
  require 'date'
14
13
 
15
14
  module RusticiSoftwareCloudV2
15
+
16
16
  class LaunchHistoryListSchema
17
17
  attr_accessor :launch_history
18
18
 
19
+
19
20
  # Attribute mapping from ruby-style variable name to JSON key.
20
21
  def self.attribute_map
21
22
  {
@@ -36,26 +37,27 @@ module RusticiSoftwareCloudV2
36
37
  return unless attributes.is_a?(Hash)
37
38
 
38
39
  # convert string to symbol for hash key
39
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
40
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
40
41
 
41
42
  if attributes.has_key?(:'launchHistory')
42
43
  if (value = attributes[:'launchHistory']).is_a?(Array)
43
44
  self.launch_history = value
44
45
  end
45
46
  end
47
+
46
48
  end
47
49
 
48
50
  # Show invalid properties with the reasons. Usually used together with valid?
49
- # @return Array for valid properties with the reasons
51
+ # @return Array for valid properies with the reasons
50
52
  def list_invalid_properties
51
53
  invalid_properties = Array.new
52
- invalid_properties
54
+ return invalid_properties
53
55
  end
54
56
 
55
57
  # Check to see if the all the properties in the model are valid
56
58
  # @return true if the model is valid
57
59
  def valid?
58
- true
60
+ return true
59
61
  end
60
62
 
61
63
  # Checks equality by comparing each attribute.
@@ -88,7 +90,7 @@ module RusticiSoftwareCloudV2
88
90
  # check to ensure the input is an array given that the the attribute
89
91
  # is documented as an array but the input is not
90
92
  if attributes[self.class.attribute_map[key]].is_a?(Array)
91
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
93
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
92
94
  end
93
95
  elsif !attributes[self.class.attribute_map[key]].nil?
94
96
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -170,7 +172,7 @@ module RusticiSoftwareCloudV2
170
172
  # @return [Hash] Returns the value in the form of hash
171
173
  def _to_hash(value)
172
174
  if value.is_a?(Array)
173
- value.compact.map { |v| _to_hash(v) }
175
+ value.compact.map{ |v| _to_hash(v) }
174
176
  elsif value.is_a?(Hash)
175
177
  {}.tap do |hash|
176
178
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -181,5 +183,7 @@ module RusticiSoftwareCloudV2
181
183
  value
182
184
  end
183
185
  end
186
+
184
187
  end
188
+
185
189
  end
@@ -3,16 +3,16 @@
3
3
 
4
4
  #REST API used for SCORM Cloud integrations.
5
5
 
6
- OpenAPI spec version: 2.0 beta
6
+ OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.3
10
9
 
11
10
  =end
12
11
 
13
12
  require 'date'
14
13
 
15
14
  module RusticiSoftwareCloudV2
15
+
16
16
  class LaunchHistorySchema
17
17
  attr_accessor :id
18
18
 
@@ -97,7 +97,7 @@ module RusticiSoftwareCloudV2
97
97
  return unless attributes.is_a?(Hash)
98
98
 
99
99
  # convert string to symbol for hash key
100
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
100
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
101
101
 
102
102
  if attributes.has_key?(:'id')
103
103
  self.id = attributes[:'id']
@@ -114,13 +114,13 @@ module RusticiSoftwareCloudV2
114
114
  if attributes.has_key?(:'completionStatus')
115
115
  self.completion_status = attributes[:'completionStatus']
116
116
  else
117
- self.completion_status = 'UNKNOWN'
117
+ self.completion_status = "UNKNOWN"
118
118
  end
119
119
 
120
120
  if attributes.has_key?(:'successStatus')
121
121
  self.success_status = attributes[:'successStatus']
122
122
  else
123
- self.success_status = 'UNKNOWN'
123
+ self.success_status = "UNKNOWN"
124
124
  end
125
125
 
126
126
  if attributes.has_key?(:'historyLog')
@@ -142,31 +142,32 @@ module RusticiSoftwareCloudV2
142
142
  if attributes.has_key?(:'lastRuntimeUpdate')
143
143
  self.last_runtime_update = attributes[:'lastRuntimeUpdate']
144
144
  end
145
+
145
146
  end
146
147
 
147
148
  # Show invalid properties with the reasons. Usually used together with valid?
148
- # @return Array for valid properties with the reasons
149
+ # @return Array for valid properies with the reasons
149
150
  def list_invalid_properties
150
151
  invalid_properties = Array.new
151
- invalid_properties
152
+ return invalid_properties
152
153
  end
153
154
 
154
155
  # Check to see if the all the properties in the model are valid
155
156
  # @return true if the model is valid
156
157
  def valid?
157
- completion_status_validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'COMPLETED', 'INCOMPLETE'])
158
+ completion_status_validator = EnumAttributeValidator.new('String', ["UNKNOWN", "COMPLETED", "INCOMPLETE"])
158
159
  return false unless completion_status_validator.valid?(@completion_status)
159
- success_status_validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
160
+ success_status_validator = EnumAttributeValidator.new('String', ["UNKNOWN", "PASSED", "FAILED"])
160
161
  return false unless success_status_validator.valid?(@success_status)
161
- true
162
+ return true
162
163
  end
163
164
 
164
165
  # Custom attribute writer method checking allowed values (enum).
165
166
  # @param [Object] completion_status Object to be assigned
166
167
  def completion_status=(completion_status)
167
- validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'COMPLETED', 'INCOMPLETE'])
168
+ validator = EnumAttributeValidator.new('String', ["UNKNOWN", "COMPLETED", "INCOMPLETE"])
168
169
  unless validator.valid?(completion_status)
169
- fail ArgumentError, 'invalid value for "completion_status", must be one of #{validator.allowable_values}.'
170
+ fail ArgumentError, "invalid value for 'completion_status', must be one of #{validator.allowable_values}."
170
171
  end
171
172
  @completion_status = completion_status
172
173
  end
@@ -174,9 +175,9 @@ module RusticiSoftwareCloudV2
174
175
  # Custom attribute writer method checking allowed values (enum).
175
176
  # @param [Object] success_status Object to be assigned
176
177
  def success_status=(success_status)
177
- validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
178
+ validator = EnumAttributeValidator.new('String', ["UNKNOWN", "PASSED", "FAILED"])
178
179
  unless validator.valid?(success_status)
179
- fail ArgumentError, 'invalid value for "success_status", must be one of #{validator.allowable_values}.'
180
+ fail ArgumentError, "invalid value for 'success_status', must be one of #{validator.allowable_values}."
180
181
  end
181
182
  @success_status = success_status
182
183
  end
@@ -220,7 +221,7 @@ module RusticiSoftwareCloudV2
220
221
  # check to ensure the input is an array given that the the attribute
221
222
  # is documented as an array but the input is not
222
223
  if attributes[self.class.attribute_map[key]].is_a?(Array)
223
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
224
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
224
225
  end
225
226
  elsif !attributes[self.class.attribute_map[key]].nil?
226
227
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -302,7 +303,7 @@ module RusticiSoftwareCloudV2
302
303
  # @return [Hash] Returns the value in the form of hash
303
304
  def _to_hash(value)
304
305
  if value.is_a?(Array)
305
- value.compact.map { |v| _to_hash(v) }
306
+ value.compact.map{ |v| _to_hash(v) }
306
307
  elsif value.is_a?(Hash)
307
308
  {}.tap do |hash|
308
309
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -313,5 +314,7 @@ module RusticiSoftwareCloudV2
313
314
  value
314
315
  end
315
316
  end
317
+
316
318
  end
319
+
317
320
  end
@@ -3,16 +3,16 @@
3
3
 
4
4
  #REST API used for SCORM Cloud integrations.
5
5
 
6
- OpenAPI spec version: 2.0 beta
6
+ OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.3
10
9
 
11
10
  =end
12
11
 
13
12
  require 'date'
14
13
 
15
14
  module RusticiSoftwareCloudV2
15
+
16
16
  class LaunchLinkRequestSchema
17
17
  # Number of seconds from now this link will expire in. Defaults to 120s. Range 10s:300s
18
18
  attr_accessor :expiry
@@ -40,6 +40,7 @@ module RusticiSoftwareCloudV2
40
40
 
41
41
  attr_accessor :additionalvalues
42
42
 
43
+
43
44
  # Attribute mapping from ruby-style variable name to JSON key.
44
45
  def self.attribute_map
45
46
  {
@@ -78,7 +79,7 @@ module RusticiSoftwareCloudV2
78
79
  return unless attributes.is_a?(Hash)
79
80
 
80
81
  # convert string to symbol for hash key
81
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
82
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
82
83
 
83
84
  if attributes.has_key?(:'expiry')
84
85
  self.expiry = attributes[:'expiry']
@@ -131,19 +132,25 @@ module RusticiSoftwareCloudV2
131
132
  self.additionalvalues = value
132
133
  end
133
134
  end
135
+
134
136
  end
135
137
 
136
138
  # Show invalid properties with the reasons. Usually used together with valid?
137
- # @return Array for valid properties with the reasons
139
+ # @return Array for valid properies with the reasons
138
140
  def list_invalid_properties
139
141
  invalid_properties = Array.new
140
- invalid_properties
142
+ if @redirect_on_exit_url.nil?
143
+ invalid_properties.push("invalid value for 'redirect_on_exit_url', redirect_on_exit_url cannot be nil.")
144
+ end
145
+
146
+ return invalid_properties
141
147
  end
142
148
 
143
149
  # Check to see if the all the properties in the model are valid
144
150
  # @return true if the model is valid
145
151
  def valid?
146
- true
152
+ return false if @redirect_on_exit_url.nil?
153
+ return true
147
154
  end
148
155
 
149
156
  # Checks equality by comparing each attribute.
@@ -185,7 +192,7 @@ module RusticiSoftwareCloudV2
185
192
  # check to ensure the input is an array given that the the attribute
186
193
  # is documented as an array but the input is not
187
194
  if attributes[self.class.attribute_map[key]].is_a?(Array)
188
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
195
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
189
196
  end
190
197
  elsif !attributes[self.class.attribute_map[key]].nil?
191
198
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -267,7 +274,7 @@ module RusticiSoftwareCloudV2
267
274
  # @return [Hash] Returns the value in the form of hash
268
275
  def _to_hash(value)
269
276
  if value.is_a?(Array)
270
- value.compact.map { |v| _to_hash(v) }
277
+ value.compact.map{ |v| _to_hash(v) }
271
278
  elsif value.is_a?(Hash)
272
279
  {}.tap do |hash|
273
280
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -278,5 +285,7 @@ module RusticiSoftwareCloudV2
278
285
  value
279
286
  end
280
287
  end
288
+
281
289
  end
290
+
282
291
  end
@@ -3,19 +3,20 @@
3
3
 
4
4
  #REST API used for SCORM Cloud integrations.
5
5
 
6
- OpenAPI spec version: 2.0 beta
6
+ OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.3
10
9
 
11
10
  =end
12
11
 
13
12
  require 'date'
14
13
 
15
14
  module RusticiSoftwareCloudV2
15
+
16
16
  class LaunchLinkSchema
17
17
  attr_accessor :launch_link
18
18
 
19
+
19
20
  # Attribute mapping from ruby-style variable name to JSON key.
20
21
  def self.attribute_map
21
22
  {
@@ -36,29 +37,30 @@ module RusticiSoftwareCloudV2
36
37
  return unless attributes.is_a?(Hash)
37
38
 
38
39
  # convert string to symbol for hash key
39
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
40
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
40
41
 
41
42
  if attributes.has_key?(:'launchLink')
42
43
  self.launch_link = attributes[:'launchLink']
43
44
  end
45
+
44
46
  end
45
47
 
46
48
  # Show invalid properties with the reasons. Usually used together with valid?
47
- # @return Array for valid properties with the reasons
49
+ # @return Array for valid properies with the reasons
48
50
  def list_invalid_properties
49
51
  invalid_properties = Array.new
50
52
  if @launch_link.nil?
51
- invalid_properties.push('invalid value for "launch_link", launch_link cannot be nil.')
53
+ invalid_properties.push("invalid value for 'launch_link', launch_link cannot be nil.")
52
54
  end
53
55
 
54
- invalid_properties
56
+ return invalid_properties
55
57
  end
56
58
 
57
59
  # Check to see if the all the properties in the model are valid
58
60
  # @return true if the model is valid
59
61
  def valid?
60
62
  return false if @launch_link.nil?
61
- true
63
+ return true
62
64
  end
63
65
 
64
66
  # Checks equality by comparing each attribute.
@@ -91,7 +93,7 @@ module RusticiSoftwareCloudV2
91
93
  # check to ensure the input is an array given that the the attribute
92
94
  # is documented as an array but the input is not
93
95
  if attributes[self.class.attribute_map[key]].is_a?(Array)
94
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
96
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
95
97
  end
96
98
  elsif !attributes[self.class.attribute_map[key]].nil?
97
99
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -173,7 +175,7 @@ module RusticiSoftwareCloudV2
173
175
  # @return [Hash] Returns the value in the form of hash
174
176
  def _to_hash(value)
175
177
  if value.is_a?(Array)
176
- value.compact.map { |v| _to_hash(v) }
178
+ value.compact.map{ |v| _to_hash(v) }
177
179
  elsif value.is_a?(Hash)
178
180
  {}.tap do |hash|
179
181
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -184,5 +186,7 @@ module RusticiSoftwareCloudV2
184
186
  value
185
187
  end
186
188
  end
189
+
187
190
  end
191
+
188
192
  end
@@ -3,16 +3,16 @@
3
3
 
4
4
  #REST API used for SCORM Cloud integrations.
5
5
 
6
- OpenAPI spec version: 2.0 beta
6
+ OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.3
10
9
 
11
10
  =end
12
11
 
13
12
  require 'date'
14
13
 
15
14
  module RusticiSoftwareCloudV2
15
+
16
16
  class LearnerPreferenceSchema
17
17
  attr_accessor :audio_level
18
18
 
@@ -22,6 +22,7 @@ module RusticiSoftwareCloudV2
22
22
 
23
23
  attr_accessor :audio_captioning
24
24
 
25
+
25
26
  # Attribute mapping from ruby-style variable name to JSON key.
26
27
  def self.attribute_map
27
28
  {
@@ -48,7 +49,7 @@ module RusticiSoftwareCloudV2
48
49
  return unless attributes.is_a?(Hash)
49
50
 
50
51
  # convert string to symbol for hash key
51
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
52
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
52
53
 
53
54
  if attributes.has_key?(:'audioLevel')
54
55
  self.audio_level = attributes[:'audioLevel']
@@ -65,19 +66,20 @@ module RusticiSoftwareCloudV2
65
66
  if attributes.has_key?(:'audioCaptioning')
66
67
  self.audio_captioning = attributes[:'audioCaptioning']
67
68
  end
69
+
68
70
  end
69
71
 
70
72
  # Show invalid properties with the reasons. Usually used together with valid?
71
- # @return Array for valid properties with the reasons
73
+ # @return Array for valid properies with the reasons
72
74
  def list_invalid_properties
73
75
  invalid_properties = Array.new
74
- invalid_properties
76
+ return invalid_properties
75
77
  end
76
78
 
77
79
  # Check to see if the all the properties in the model are valid
78
80
  # @return true if the model is valid
79
81
  def valid?
80
- true
82
+ return true
81
83
  end
82
84
 
83
85
  # Checks equality by comparing each attribute.
@@ -113,7 +115,7 @@ module RusticiSoftwareCloudV2
113
115
  # check to ensure the input is an array given that the the attribute
114
116
  # is documented as an array but the input is not
115
117
  if attributes[self.class.attribute_map[key]].is_a?(Array)
116
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
118
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
117
119
  end
118
120
  elsif !attributes[self.class.attribute_map[key]].nil?
119
121
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -195,7 +197,7 @@ module RusticiSoftwareCloudV2
195
197
  # @return [Hash] Returns the value in the form of hash
196
198
  def _to_hash(value)
197
199
  if value.is_a?(Array)
198
- value.compact.map { |v| _to_hash(v) }
200
+ value.compact.map{ |v| _to_hash(v) }
199
201
  elsif value.is_a?(Hash)
200
202
  {}.tap do |hash|
201
203
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -206,5 +208,7 @@ module RusticiSoftwareCloudV2
206
208
  value
207
209
  end
208
210
  end
211
+
209
212
  end
213
+
210
214
  end
@@ -3,16 +3,16 @@
3
3
 
4
4
  #REST API used for SCORM Cloud integrations.
5
5
 
6
- OpenAPI spec version: 2.0 beta
6
+ OpenAPI spec version: 2.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.3
10
9
 
11
10
  =end
12
11
 
13
12
  require 'date'
14
13
 
15
14
  module RusticiSoftwareCloudV2
15
+
16
16
  class LearnerSchema
17
17
  attr_accessor :id
18
18
 
@@ -23,6 +23,7 @@ module RusticiSoftwareCloudV2
23
23
 
24
24
  attr_accessor :last_name
25
25
 
26
+
26
27
  # Attribute mapping from ruby-style variable name to JSON key.
27
28
  def self.attribute_map
28
29
  {
@@ -49,7 +50,7 @@ module RusticiSoftwareCloudV2
49
50
  return unless attributes.is_a?(Hash)
50
51
 
51
52
  # convert string to symbol for hash key
52
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
53
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
53
54
 
54
55
  if attributes.has_key?(:'id')
55
56
  self.id = attributes[:'id']
@@ -66,24 +67,25 @@ module RusticiSoftwareCloudV2
66
67
  if attributes.has_key?(:'lastName')
67
68
  self.last_name = attributes[:'lastName']
68
69
  end
70
+
69
71
  end
70
72
 
71
73
  # Show invalid properties with the reasons. Usually used together with valid?
72
- # @return Array for valid properties with the reasons
74
+ # @return Array for valid properies with the reasons
73
75
  def list_invalid_properties
74
76
  invalid_properties = Array.new
75
77
  if @id.nil?
76
- invalid_properties.push('invalid value for "id", id cannot be nil.')
78
+ invalid_properties.push("invalid value for 'id', id cannot be nil.")
77
79
  end
78
80
 
79
- invalid_properties
81
+ return invalid_properties
80
82
  end
81
83
 
82
84
  # Check to see if the all the properties in the model are valid
83
85
  # @return true if the model is valid
84
86
  def valid?
85
87
  return false if @id.nil?
86
- true
88
+ return true
87
89
  end
88
90
 
89
91
  # Checks equality by comparing each attribute.
@@ -119,7 +121,7 @@ module RusticiSoftwareCloudV2
119
121
  # check to ensure the input is an array given that the the attribute
120
122
  # is documented as an array but the input is not
121
123
  if attributes[self.class.attribute_map[key]].is_a?(Array)
122
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
124
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
123
125
  end
124
126
  elsif !attributes[self.class.attribute_map[key]].nil?
125
127
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -201,7 +203,7 @@ module RusticiSoftwareCloudV2
201
203
  # @return [Hash] Returns the value in the form of hash
202
204
  def _to_hash(value)
203
205
  if value.is_a?(Array)
204
- value.compact.map { |v| _to_hash(v) }
206
+ value.compact.map{ |v| _to_hash(v) }
205
207
  elsif value.is_a?(Hash)
206
208
  {}.tap do |hash|
207
209
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -212,5 +214,7 @@ module RusticiSoftwareCloudV2
212
214
  value
213
215
  end
214
216
  end
217
+
215
218
  end
219
+
216
220
  end