rustici_software_cloud_v2 1.0.0beta → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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,10 +3,9 @@
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
 
@@ -19,6 +18,7 @@ module RusticiSoftwareCloudV2
19
18
 
20
19
  attr_accessor :name
21
20
 
21
+
22
22
  # Attribute mapping from ruby-style variable name to JSON key.
23
23
  def self.attribute_map
24
24
  {
@@ -41,7 +41,7 @@ module RusticiSoftwareCloudV2
41
41
  return unless attributes.is_a?(Hash)
42
42
 
43
43
  # convert string to symbol for hash key
44
- 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}
45
45
 
46
46
  if attributes.has_key?(:'homePage')
47
47
  self.home_page = attributes[:'homePage']
@@ -50,21 +50,22 @@ module RusticiSoftwareCloudV2
50
50
  if attributes.has_key?(:'name')
51
51
  self.name = attributes[:'name']
52
52
  end
53
+
53
54
  end
54
55
 
55
56
  # Show invalid properties with the reasons. Usually used together with valid?
56
- # @return Array for valid properties with the reasons
57
+ # @return Array for valid properies with the reasons
57
58
  def list_invalid_properties
58
59
  invalid_properties = Array.new
59
60
  if @home_page.nil?
60
- invalid_properties.push('invalid value for "home_page", home_page cannot be nil.')
61
+ invalid_properties.push("invalid value for 'home_page', home_page cannot be nil.")
61
62
  end
62
63
 
63
64
  if @name.nil?
64
- invalid_properties.push('invalid value for "name", name cannot be nil.')
65
+ invalid_properties.push("invalid value for 'name', name cannot be nil.")
65
66
  end
66
67
 
67
- invalid_properties
68
+ return invalid_properties
68
69
  end
69
70
 
70
71
  # Check to see if the all the properties in the model are valid
@@ -72,7 +73,7 @@ module RusticiSoftwareCloudV2
72
73
  def valid?
73
74
  return false if @home_page.nil?
74
75
  return false if @name.nil?
75
- true
76
+ return true
76
77
  end
77
78
 
78
79
  # Checks equality by comparing each attribute.
@@ -106,7 +107,7 @@ module RusticiSoftwareCloudV2
106
107
  # check to ensure the input is an array given that the the attribute
107
108
  # is documented as an array but the input is not
108
109
  if attributes[self.class.attribute_map[key]].is_a?(Array)
109
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
110
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
110
111
  end
111
112
  elsif !attributes[self.class.attribute_map[key]].nil?
112
113
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -188,7 +189,7 @@ module RusticiSoftwareCloudV2
188
189
  # @return [Hash] Returns the value in the form of hash
189
190
  def _to_hash(value)
190
191
  if value.is_a?(Array)
191
- value.compact.map { |v| _to_hash(v) }
192
+ value.compact.map{ |v| _to_hash(v) }
192
193
  elsif value.is_a?(Hash)
193
194
  {}.tap do |hash|
194
195
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -199,5 +200,7 @@ module RusticiSoftwareCloudV2
199
200
  value
200
201
  end
201
202
  end
203
+
202
204
  end
205
+
203
206
  end
@@ -3,10 +3,9 @@
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
 
@@ -21,6 +20,7 @@ module RusticiSoftwareCloudV2
21
20
 
22
21
  attr_accessor :definition
23
22
 
23
+
24
24
  # Attribute mapping from ruby-style variable name to JSON key.
25
25
  def self.attribute_map
26
26
  {
@@ -45,12 +45,12 @@ module RusticiSoftwareCloudV2
45
45
  return unless attributes.is_a?(Hash)
46
46
 
47
47
  # convert string to symbol for hash key
48
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
48
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
49
49
 
50
50
  if attributes.has_key?(:'objectType')
51
51
  self.object_type = attributes[:'objectType']
52
52
  else
53
- self.object_type = 'Activity'
53
+ self.object_type = "Activity"
54
54
  end
55
55
 
56
56
  if attributes.has_key?(:'id')
@@ -60,24 +60,25 @@ module RusticiSoftwareCloudV2
60
60
  if attributes.has_key?(:'definition')
61
61
  self.definition = attributes[:'definition']
62
62
  end
63
+
63
64
  end
64
65
 
65
66
  # Show invalid properties with the reasons. Usually used together with valid?
66
- # @return Array for valid properties with the reasons
67
+ # @return Array for valid properies with the reasons
67
68
  def list_invalid_properties
68
69
  invalid_properties = Array.new
69
70
  if @id.nil?
70
- invalid_properties.push('invalid value for "id", id cannot be nil.')
71
+ invalid_properties.push("invalid value for 'id', id cannot be nil.")
71
72
  end
72
73
 
73
- invalid_properties
74
+ return invalid_properties
74
75
  end
75
76
 
76
77
  # Check to see if the all the properties in the model are valid
77
78
  # @return true if the model is valid
78
79
  def valid?
79
80
  return false if @id.nil?
80
- true
81
+ return true
81
82
  end
82
83
 
83
84
  # Checks equality by comparing each attribute.
@@ -112,7 +113,7 @@ module RusticiSoftwareCloudV2
112
113
  # check to ensure the input is an array given that the the attribute
113
114
  # is documented as an array but the input is not
114
115
  if attributes[self.class.attribute_map[key]].is_a?(Array)
115
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
116
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
116
117
  end
117
118
  elsif !attributes[self.class.attribute_map[key]].nil?
118
119
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -194,7 +195,7 @@ module RusticiSoftwareCloudV2
194
195
  # @return [Hash] Returns the value in the form of hash
195
196
  def _to_hash(value)
196
197
  if value.is_a?(Array)
197
- value.compact.map { |v| _to_hash(v) }
198
+ value.compact.map{ |v| _to_hash(v) }
198
199
  elsif value.is_a?(Hash)
199
200
  {}.tap do |hash|
200
201
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -205,5 +206,7 @@ module RusticiSoftwareCloudV2
205
206
  value
206
207
  end
207
208
  end
209
+
208
210
  end
211
+
209
212
  end
@@ -3,10 +3,9 @@
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
 
@@ -39,6 +38,7 @@ module RusticiSoftwareCloudV2
39
38
 
40
39
  attr_accessor :extensions
41
40
 
41
+
42
42
  # Attribute mapping from ruby-style variable name to JSON key.
43
43
  def self.attribute_map
44
44
  {
@@ -81,16 +81,16 @@ module RusticiSoftwareCloudV2
81
81
  return unless attributes.is_a?(Hash)
82
82
 
83
83
  # convert string to symbol for hash key
84
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
84
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
85
85
 
86
86
  if attributes.has_key?(:'name')
87
- if (value = attributes[:'name']).is_a?(Hash)
87
+ if (value = attributes[:'name']).is_a?(Array)
88
88
  self.name = value
89
89
  end
90
90
  end
91
91
 
92
92
  if attributes.has_key?(:'description')
93
- if (value = attributes[:'description']).is_a?(Hash)
93
+ if (value = attributes[:'description']).is_a?(Array)
94
94
  self.description = value
95
95
  end
96
96
  end
@@ -144,23 +144,24 @@ module RusticiSoftwareCloudV2
144
144
  end
145
145
 
146
146
  if attributes.has_key?(:'extensions')
147
- if (value = attributes[:'extensions']).is_a?(Hash)
147
+ if (value = attributes[:'extensions']).is_a?(Array)
148
148
  self.extensions = value
149
149
  end
150
150
  end
151
+
151
152
  end
152
153
 
153
154
  # Show invalid properties with the reasons. Usually used together with valid?
154
- # @return Array for valid properties with the reasons
155
+ # @return Array for valid properies with the reasons
155
156
  def list_invalid_properties
156
157
  invalid_properties = Array.new
157
- invalid_properties
158
+ return invalid_properties
158
159
  end
159
160
 
160
161
  # Check to see if the all the properties in the model are valid
161
162
  # @return true if the model is valid
162
163
  def valid?
163
- true
164
+ return true
164
165
  end
165
166
 
166
167
  # Checks equality by comparing each attribute.
@@ -204,7 +205,7 @@ module RusticiSoftwareCloudV2
204
205
  # check to ensure the input is an array given that the the attribute
205
206
  # is documented as an array but the input is not
206
207
  if attributes[self.class.attribute_map[key]].is_a?(Array)
207
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
208
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
208
209
  end
209
210
  elsif !attributes[self.class.attribute_map[key]].nil?
210
211
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -286,7 +287,7 @@ module RusticiSoftwareCloudV2
286
287
  # @return [Hash] Returns the value in the form of hash
287
288
  def _to_hash(value)
288
289
  if value.is_a?(Array)
289
- value.compact.map { |v| _to_hash(v) }
290
+ value.compact.map{ |v| _to_hash(v) }
290
291
  elsif value.is_a?(Hash)
291
292
  {}.tap do |hash|
292
293
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -297,5 +298,7 @@ module RusticiSoftwareCloudV2
297
298
  value
298
299
  end
299
300
  end
301
+
300
302
  end
303
+
301
304
  end
@@ -3,10 +3,9 @@
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
 
@@ -83,7 +82,7 @@ module RusticiSoftwareCloudV2
83
82
  return unless attributes.is_a?(Hash)
84
83
 
85
84
  # convert string to symbol for hash key
86
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
85
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
87
86
 
88
87
  if attributes.has_key?(:'objectType')
89
88
  self.object_type = attributes[:'objectType']
@@ -114,34 +113,35 @@ module RusticiSoftwareCloudV2
114
113
  self.member = value
115
114
  end
116
115
  end
116
+
117
117
  end
118
118
 
119
119
  # Show invalid properties with the reasons. Usually used together with valid?
120
- # @return Array for valid properties with the reasons
120
+ # @return Array for valid properies with the reasons
121
121
  def list_invalid_properties
122
122
  invalid_properties = Array.new
123
123
  if @object_type.nil?
124
- invalid_properties.push('invalid value for "object_type", object_type cannot be nil.')
124
+ invalid_properties.push("invalid value for 'object_type', object_type cannot be nil.")
125
125
  end
126
126
 
127
- invalid_properties
127
+ return invalid_properties
128
128
  end
129
129
 
130
130
  # Check to see if the all the properties in the model are valid
131
131
  # @return true if the model is valid
132
132
  def valid?
133
133
  return false if @object_type.nil?
134
- object_type_validator = EnumAttributeValidator.new('String', ['Agent', 'Group'])
134
+ object_type_validator = EnumAttributeValidator.new('String', ["Agent", "Group"])
135
135
  return false unless object_type_validator.valid?(@object_type)
136
- true
136
+ return true
137
137
  end
138
138
 
139
139
  # Custom attribute writer method checking allowed values (enum).
140
140
  # @param [Object] object_type Object to be assigned
141
141
  def object_type=(object_type)
142
- validator = EnumAttributeValidator.new('String', ['Agent', 'Group'])
142
+ validator = EnumAttributeValidator.new('String', ["Agent", "Group"])
143
143
  unless validator.valid?(object_type)
144
- fail ArgumentError, 'invalid value for "object_type", must be one of #{validator.allowable_values}.'
144
+ fail ArgumentError, "invalid value for 'object_type', must be one of #{validator.allowable_values}."
145
145
  end
146
146
  @object_type = object_type
147
147
  end
@@ -182,7 +182,7 @@ module RusticiSoftwareCloudV2
182
182
  # check to ensure the input is an array given that the the attribute
183
183
  # is documented as an array but the input is not
184
184
  if attributes[self.class.attribute_map[key]].is_a?(Array)
185
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
185
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
186
186
  end
187
187
  elsif !attributes[self.class.attribute_map[key]].nil?
188
188
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -264,7 +264,7 @@ module RusticiSoftwareCloudV2
264
264
  # @return [Hash] Returns the value in the form of hash
265
265
  def _to_hash(value)
266
266
  if value.is_a?(Array)
267
- value.compact.map { |v| _to_hash(v) }
267
+ value.compact.map{ |v| _to_hash(v) }
268
268
  elsif value.is_a?(Hash)
269
269
  {}.tap do |hash|
270
270
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -275,5 +275,7 @@ module RusticiSoftwareCloudV2
275
275
  value
276
276
  end
277
277
  end
278
+
278
279
  end
280
+
279
281
  end
@@ -3,10 +3,9 @@
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
 
@@ -29,6 +28,7 @@ module RusticiSoftwareCloudV2
29
28
 
30
29
  attr_accessor :file_url
31
30
 
31
+
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
@@ -61,20 +61,20 @@ module RusticiSoftwareCloudV2
61
61
  return unless attributes.is_a?(Hash)
62
62
 
63
63
  # convert string to symbol for hash key
64
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
64
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
65
65
 
66
66
  if attributes.has_key?(:'usageType')
67
67
  self.usage_type = attributes[:'usageType']
68
68
  end
69
69
 
70
70
  if attributes.has_key?(:'display')
71
- if (value = attributes[:'display']).is_a?(Hash)
71
+ if (value = attributes[:'display']).is_a?(Array)
72
72
  self.display = value
73
73
  end
74
74
  end
75
75
 
76
76
  if attributes.has_key?(:'description')
77
- if (value = attributes[:'description']).is_a?(Hash)
77
+ if (value = attributes[:'description']).is_a?(Array)
78
78
  self.description = value
79
79
  end
80
80
  end
@@ -94,33 +94,34 @@ module RusticiSoftwareCloudV2
94
94
  if attributes.has_key?(:'fileUrl')
95
95
  self.file_url = attributes[:'fileUrl']
96
96
  end
97
+
97
98
  end
98
99
 
99
100
  # Show invalid properties with the reasons. Usually used together with valid?
100
- # @return Array for valid properties with the reasons
101
+ # @return Array for valid properies with the reasons
101
102
  def list_invalid_properties
102
103
  invalid_properties = Array.new
103
104
  if @usage_type.nil?
104
- invalid_properties.push('invalid value for "usage_type", usage_type cannot be nil.')
105
+ invalid_properties.push("invalid value for 'usage_type', usage_type cannot be nil.")
105
106
  end
106
107
 
107
108
  if @display.nil?
108
- invalid_properties.push('invalid value for "display", display cannot be nil.')
109
+ invalid_properties.push("invalid value for 'display', display cannot be nil.")
109
110
  end
110
111
 
111
112
  if @content_type.nil?
112
- invalid_properties.push('invalid value for "content_type", content_type cannot be nil.')
113
+ invalid_properties.push("invalid value for 'content_type', content_type cannot be nil.")
113
114
  end
114
115
 
115
116
  if @length.nil?
116
- invalid_properties.push('invalid value for "length", length cannot be nil.')
117
+ invalid_properties.push("invalid value for 'length', length cannot be nil.")
117
118
  end
118
119
 
119
120
  if @sha2.nil?
120
- invalid_properties.push('invalid value for "sha2", sha2 cannot be nil.')
121
+ invalid_properties.push("invalid value for 'sha2', sha2 cannot be nil.")
121
122
  end
122
123
 
123
- invalid_properties
124
+ return invalid_properties
124
125
  end
125
126
 
126
127
  # Check to see if the all the properties in the model are valid
@@ -131,7 +132,7 @@ module RusticiSoftwareCloudV2
131
132
  return false if @content_type.nil?
132
133
  return false if @length.nil?
133
134
  return false if @sha2.nil?
134
- true
135
+ return true
135
136
  end
136
137
 
137
138
  # Checks equality by comparing each attribute.
@@ -170,7 +171,7 @@ module RusticiSoftwareCloudV2
170
171
  # check to ensure the input is an array given that the the attribute
171
172
  # is documented as an array but the input is not
172
173
  if attributes[self.class.attribute_map[key]].is_a?(Array)
173
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
174
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
174
175
  end
175
176
  elsif !attributes[self.class.attribute_map[key]].nil?
176
177
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -252,7 +253,7 @@ module RusticiSoftwareCloudV2
252
253
  # @return [Hash] Returns the value in the form of hash
253
254
  def _to_hash(value)
254
255
  if value.is_a?(Array)
255
- value.compact.map { |v| _to_hash(v) }
256
+ value.compact.map{ |v| _to_hash(v) }
256
257
  elsif value.is_a?(Hash)
257
258
  {}.tap do |hash|
258
259
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -263,5 +264,7 @@ module RusticiSoftwareCloudV2
263
264
  value
264
265
  end
265
266
  end
267
+
266
268
  end
269
+
267
270
  end
@@ -3,10 +3,9 @@
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
 
@@ -33,6 +32,7 @@ module RusticiSoftwareCloudV2
33
32
 
34
33
  attr_accessor :extensions
35
34
 
35
+
36
36
  # Attribute mapping from ruby-style variable name to JSON key.
37
37
  def self.attribute_map
38
38
  {
@@ -69,7 +69,7 @@ module RusticiSoftwareCloudV2
69
69
  return unless attributes.is_a?(Hash)
70
70
 
71
71
  # convert string to symbol for hash key
72
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
72
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
73
73
 
74
74
  if attributes.has_key?(:'registration')
75
75
  self.registration = attributes[:'registration']
@@ -104,23 +104,24 @@ module RusticiSoftwareCloudV2
104
104
  end
105
105
 
106
106
  if attributes.has_key?(:'extensions')
107
- if (value = attributes[:'extensions']).is_a?(Hash)
107
+ if (value = attributes[:'extensions']).is_a?(Array)
108
108
  self.extensions = value
109
109
  end
110
110
  end
111
+
111
112
  end
112
113
 
113
114
  # Show invalid properties with the reasons. Usually used together with valid?
114
- # @return Array for valid properties with the reasons
115
+ # @return Array for valid properies with the reasons
115
116
  def list_invalid_properties
116
117
  invalid_properties = Array.new
117
- invalid_properties
118
+ return invalid_properties
118
119
  end
119
120
 
120
121
  # Check to see if the all the properties in the model are valid
121
122
  # @return true if the model is valid
122
123
  def valid?
123
- true
124
+ return true
124
125
  end
125
126
 
126
127
  # Checks equality by comparing each attribute.
@@ -161,7 +162,7 @@ module RusticiSoftwareCloudV2
161
162
  # check to ensure the input is an array given that the the attribute
162
163
  # is documented as an array but the input is not
163
164
  if attributes[self.class.attribute_map[key]].is_a?(Array)
164
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
165
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
165
166
  end
166
167
  elsif !attributes[self.class.attribute_map[key]].nil?
167
168
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -243,7 +244,7 @@ module RusticiSoftwareCloudV2
243
244
  # @return [Hash] Returns the value in the form of hash
244
245
  def _to_hash(value)
245
246
  if value.is_a?(Array)
246
- value.compact.map { |v| _to_hash(v) }
247
+ value.compact.map{ |v| _to_hash(v) }
247
248
  elsif value.is_a?(Hash)
248
249
  {}.tap do |hash|
249
250
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -254,5 +255,7 @@ module RusticiSoftwareCloudV2
254
255
  value
255
256
  end
256
257
  end
258
+
257
259
  end
260
+
258
261
  end
@@ -3,10 +3,9 @@
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
 
@@ -23,6 +22,7 @@ module RusticiSoftwareCloudV2
23
22
 
24
23
  attr_accessor :other
25
24
 
25
+
26
26
  # Attribute mapping from ruby-style variable name to JSON key.
27
27
  def self.attribute_map
28
28
  {
@@ -49,7 +49,7 @@ module RusticiSoftwareCloudV2
49
49
  return unless attributes.is_a?(Hash)
50
50
 
51
51
  # convert string to symbol for hash key
52
- 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}
53
53
 
54
54
  if attributes.has_key?(:'parent')
55
55
  if (value = attributes[:'parent']).is_a?(Array)
@@ -74,19 +74,20 @@ module RusticiSoftwareCloudV2
74
74
  self.other = value
75
75
  end
76
76
  end
77
+
77
78
  end
78
79
 
79
80
  # Show invalid properties with the reasons. Usually used together with valid?
80
- # @return Array for valid properties with the reasons
81
+ # @return Array for valid properies with the reasons
81
82
  def list_invalid_properties
82
83
  invalid_properties = Array.new
83
- invalid_properties
84
+ return invalid_properties
84
85
  end
85
86
 
86
87
  # Check to see if the all the properties in the model are valid
87
88
  # @return true if the model is valid
88
89
  def valid?
89
- true
90
+ return true
90
91
  end
91
92
 
92
93
  # Checks equality by comparing each attribute.
@@ -122,7 +123,7 @@ module RusticiSoftwareCloudV2
122
123
  # check to ensure the input is an array given that the the attribute
123
124
  # is documented as an array but the input is not
124
125
  if attributes[self.class.attribute_map[key]].is_a?(Array)
125
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
126
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
126
127
  end
127
128
  elsif !attributes[self.class.attribute_map[key]].nil?
128
129
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -204,7 +205,7 @@ module RusticiSoftwareCloudV2
204
205
  # @return [Hash] Returns the value in the form of hash
205
206
  def _to_hash(value)
206
207
  if value.is_a?(Array)
207
- value.compact.map { |v| _to_hash(v) }
208
+ value.compact.map{ |v| _to_hash(v) }
208
209
  elsif value.is_a?(Hash)
209
210
  {}.tap do |hash|
210
211
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -215,5 +216,7 @@ module RusticiSoftwareCloudV2
215
216
  value
216
217
  end
217
218
  end
219
+
218
220
  end
221
+
219
222
  end