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
@@ -0,0 +1,196 @@
1
+ =begin
2
+ #SCORM Cloud Rest API
3
+
4
+ #REST API used for SCORM Cloud integrations.
5
+
6
+ OpenAPI spec version: 2.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ =end
11
+
12
+ require 'date'
13
+
14
+ module RusticiSoftwareCloudV2
15
+
16
+ class ZoomiCourseOptionsSchema
17
+ attr_accessor :nti
18
+
19
+ attr_accessor :cta
20
+
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'nti' => :'nti',
26
+ :'cta' => :'cta'
27
+ }
28
+ end
29
+
30
+ # Attribute type mapping.
31
+ def self.swagger_types
32
+ {
33
+ :'nti' => :'String',
34
+ :'cta' => :'String'
35
+ }
36
+ end
37
+
38
+ # Initializes the object
39
+ # @param [Hash] attributes Model attributes in the form of hash
40
+ def initialize(attributes = {})
41
+ return unless attributes.is_a?(Hash)
42
+
43
+ # convert string to symbol for hash key
44
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
45
+
46
+ if attributes.has_key?(:'nti')
47
+ self.nti = attributes[:'nti']
48
+ end
49
+
50
+ if attributes.has_key?(:'cta')
51
+ self.cta = attributes[:'cta']
52
+ end
53
+
54
+ end
55
+
56
+ # Show invalid properties with the reasons. Usually used together with valid?
57
+ # @return Array for valid properies with the reasons
58
+ def list_invalid_properties
59
+ invalid_properties = Array.new
60
+ return invalid_properties
61
+ end
62
+
63
+ # Check to see if the all the properties in the model are valid
64
+ # @return true if the model is valid
65
+ def valid?
66
+ return true
67
+ end
68
+
69
+ # Checks equality by comparing each attribute.
70
+ # @param [Object] Object to be compared
71
+ def ==(o)
72
+ return true if self.equal?(o)
73
+ self.class == o.class &&
74
+ nti == o.nti &&
75
+ cta == o.cta
76
+ end
77
+
78
+ # @see the `==` method
79
+ # @param [Object] Object to be compared
80
+ def eql?(o)
81
+ self == o
82
+ end
83
+
84
+ # Calculates hash code according to all attributes.
85
+ # @return [Fixnum] Hash code
86
+ def hash
87
+ [nti, cta].hash
88
+ end
89
+
90
+ # Builds the object from hash
91
+ # @param [Hash] attributes Model attributes in the form of hash
92
+ # @return [Object] Returns the model itself
93
+ def build_from_hash(attributes)
94
+ return nil unless attributes.is_a?(Hash)
95
+ self.class.swagger_types.each_pair do |key, type|
96
+ if type =~ /\AArray<(.*)>/i
97
+ # check to ensure the input is an array given that the the attribute
98
+ # is documented as an array but the input is not
99
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
100
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
101
+ end
102
+ elsif !attributes[self.class.attribute_map[key]].nil?
103
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
104
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
105
+ end
106
+
107
+ self
108
+ end
109
+
110
+ # Deserializes the data based on type
111
+ # @param string type Data type
112
+ # @param string value Value to be deserialized
113
+ # @return [Object] Deserialized data
114
+ def _deserialize(type, value)
115
+ case type.to_sym
116
+ when :DateTime
117
+ DateTime.parse(value)
118
+ when :Date
119
+ Date.parse(value)
120
+ when :String
121
+ value.to_s
122
+ when :Integer
123
+ value.to_i
124
+ when :Float
125
+ value.to_f
126
+ when :BOOLEAN
127
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
128
+ true
129
+ else
130
+ false
131
+ end
132
+ when :Object
133
+ # generic object (usually a Hash), return directly
134
+ value
135
+ when /\AArray<(?<inner_type>.+)>\z/
136
+ inner_type = Regexp.last_match[:inner_type]
137
+ value.map { |v| _deserialize(inner_type, v) }
138
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
139
+ k_type = Regexp.last_match[:k_type]
140
+ v_type = Regexp.last_match[:v_type]
141
+ {}.tap do |hash|
142
+ value.each do |k, v|
143
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
144
+ end
145
+ end
146
+ else # model
147
+ temp_model = RusticiSoftwareCloudV2.const_get(type).new
148
+ temp_model.build_from_hash(value)
149
+ end
150
+ end
151
+
152
+ # Returns the string representation of the object
153
+ # @return [String] String presentation of the object
154
+ def to_s
155
+ to_hash.to_s
156
+ end
157
+
158
+ # to_body is an alias to to_hash (backward compatibility)
159
+ # @return [Hash] Returns the object in the form of hash
160
+ def to_body
161
+ to_hash
162
+ end
163
+
164
+ # Returns the object in the form of hash
165
+ # @return [Hash] Returns the object in the form of hash
166
+ def to_hash
167
+ hash = {}
168
+ self.class.attribute_map.each_pair do |attr, param|
169
+ value = self.send(attr)
170
+ next if value.nil?
171
+ hash[param] = _to_hash(value)
172
+ end
173
+ hash
174
+ end
175
+
176
+ # Outputs non-array value in the form of hash
177
+ # For object, use to_hash. Otherwise, just return the value
178
+ # @param [Object] value Any valid value
179
+ # @return [Hash] Returns the value in the form of hash
180
+ def _to_hash(value)
181
+ if value.is_a?(Array)
182
+ value.compact.map{ |v| _to_hash(v) }
183
+ elsif value.is_a?(Hash)
184
+ {}.tap do |hash|
185
+ value.each { |k, v| hash[k] = _to_hash(v) }
186
+ end
187
+ elsif value.respond_to? :to_hash
188
+ value.to_hash
189
+ else
190
+ value
191
+ end
192
+ end
193
+
194
+ end
195
+
196
+ end
@@ -3,13 +3,12 @@
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
  module RusticiSoftwareCloudV2
14
- VERSION = '1.0.0beta'
13
+ VERSION = "1.0.1"
15
14
  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
 
@@ -17,10 +16,12 @@ require 'rustici_software_cloud_v2/version'
17
16
  require 'rustici_software_cloud_v2/configuration'
18
17
 
19
18
  # Models
19
+ require 'rustici_software_cloud_v2/models/about_schema'
20
20
  require 'rustici_software_cloud_v2/models/activity_result_schema'
21
21
  require 'rustici_software_cloud_v2/models/application_list_schema'
22
22
  require 'rustici_software_cloud_v2/models/application_schema'
23
23
  require 'rustici_software_cloud_v2/models/application_token'
24
+ require 'rustici_software_cloud_v2/models/batch_tags_schema'
24
25
  require 'rustici_software_cloud_v2/models/comment_schema'
25
26
  require 'rustici_software_cloud_v2/models/completion_amount_schema'
26
27
  require 'rustici_software_cloud_v2/models/course_activity_schema'
@@ -28,16 +29,32 @@ require 'rustici_software_cloud_v2/models/course_list_non_paged_schema'
28
29
  require 'rustici_software_cloud_v2/models/course_list_schema'
29
30
  require 'rustici_software_cloud_v2/models/course_reference_schema'
30
31
  require 'rustici_software_cloud_v2/models/course_schema'
31
- require 'rustici_software_cloud_v2/models/course_tags_batch_schema'
32
+ require 'rustici_software_cloud_v2/models/create_dispatch_id_schema'
33
+ require 'rustici_software_cloud_v2/models/create_dispatch_list_schema'
34
+ require 'rustici_software_cloud_v2/models/create_dispatch_schema'
35
+ require 'rustici_software_cloud_v2/models/create_private_invitation_schema'
36
+ require 'rustici_software_cloud_v2/models/create_public_invitation_schema'
32
37
  require 'rustici_software_cloud_v2/models/create_registration_schema'
33
38
  require 'rustici_software_cloud_v2/models/credential_created_schema'
34
39
  require 'rustici_software_cloud_v2/models/credential_list_schema'
35
40
  require 'rustici_software_cloud_v2/models/credential_request_schema'
36
41
  require 'rustici_software_cloud_v2/models/credential_schema'
42
+ require 'rustici_software_cloud_v2/models/destination_id_schema'
43
+ require 'rustici_software_cloud_v2/models/destination_list_schema'
44
+ require 'rustici_software_cloud_v2/models/destination_schema'
45
+ require 'rustici_software_cloud_v2/models/dispatch_id_schema'
46
+ require 'rustici_software_cloud_v2/models/dispatch_list_schema'
47
+ require 'rustici_software_cloud_v2/models/dispatch_registration_count_schema'
48
+ require 'rustici_software_cloud_v2/models/dispatch_schema'
49
+ require 'rustici_software_cloud_v2/models/enabled_schema'
37
50
  require 'rustici_software_cloud_v2/models/import_fetch_request_schema'
38
51
  require 'rustici_software_cloud_v2/models/import_job_result_schema'
39
52
  require 'rustici_software_cloud_v2/models/import_result_schema'
40
53
  require 'rustici_software_cloud_v2/models/integer_result_schema'
54
+ require 'rustici_software_cloud_v2/models/invitation_email_schema'
55
+ require 'rustici_software_cloud_v2/models/invitation_job_status_schema'
56
+ require 'rustici_software_cloud_v2/models/invitation_summary_list'
57
+ require 'rustici_software_cloud_v2/models/invitation_summary_schema'
41
58
  require 'rustici_software_cloud_v2/models/item_value_pair_schema'
42
59
  require 'rustici_software_cloud_v2/models/launch_history_list_schema'
43
60
  require 'rustici_software_cloud_v2/models/launch_history_schema'
@@ -45,18 +62,24 @@ require 'rustici_software_cloud_v2/models/launch_link_request_schema'
45
62
  require 'rustici_software_cloud_v2/models/launch_link_schema'
46
63
  require 'rustici_software_cloud_v2/models/learner_preference_schema'
47
64
  require 'rustici_software_cloud_v2/models/learner_schema'
48
- require 'rustici_software_cloud_v2/models/link_schema'
49
65
  require 'rustici_software_cloud_v2/models/message_schema'
50
66
  require 'rustici_software_cloud_v2/models/metadata_schema'
51
67
  require 'rustici_software_cloud_v2/models/objective_schema'
52
68
  require 'rustici_software_cloud_v2/models/permissions_schema'
53
69
  require 'rustici_software_cloud_v2/models/ping_schema'
54
70
  require 'rustici_software_cloud_v2/models/post_back_schema'
71
+ require 'rustici_software_cloud_v2/models/private_invitation_list'
72
+ require 'rustici_software_cloud_v2/models/private_invitation_schema'
73
+ require 'rustici_software_cloud_v2/models/public_invitation_list'
74
+ require 'rustici_software_cloud_v2/models/public_invitation_schema'
55
75
  require 'rustici_software_cloud_v2/models/registration_completion'
56
76
  require 'rustici_software_cloud_v2/models/registration_list_schema'
57
77
  require 'rustici_software_cloud_v2/models/registration_schema'
58
78
  require 'rustici_software_cloud_v2/models/registration_success'
59
- require 'rustici_software_cloud_v2/models/registration_tags_batch_schema'
79
+ require 'rustici_software_cloud_v2/models/reportage_account_info_schema'
80
+ require 'rustici_software_cloud_v2/models/reportage_account_info_usage_schema'
81
+ require 'rustici_software_cloud_v2/models/reportage_auth_token_schema'
82
+ require 'rustici_software_cloud_v2/models/reportage_link_schema'
60
83
  require 'rustici_software_cloud_v2/models/response_error'
61
84
  require 'rustici_software_cloud_v2/models/runtime_interaction_schema'
62
85
  require 'rustici_software_cloud_v2/models/runtime_objective_schema'
@@ -72,9 +95,12 @@ require 'rustici_software_cloud_v2/models/shared_data_entry_schema'
72
95
  require 'rustici_software_cloud_v2/models/static_properties_schema'
73
96
  require 'rustici_software_cloud_v2/models/string_result_schema'
74
97
  require 'rustici_software_cloud_v2/models/tag_list_schema'
75
- require 'rustici_software_cloud_v2/models/tag_post_schema'
76
98
  require 'rustici_software_cloud_v2/models/title_schema'
77
99
  require 'rustici_software_cloud_v2/models/token_request_schema'
100
+ require 'rustici_software_cloud_v2/models/update_dispatch_schema'
101
+ require 'rustici_software_cloud_v2/models/user_invitation_list'
102
+ require 'rustici_software_cloud_v2/models/user_invitation_schema'
103
+ require 'rustici_software_cloud_v2/models/user_invitation_schema_registration_report'
78
104
  require 'rustici_software_cloud_v2/models/xapi_account'
79
105
  require 'rustici_software_cloud_v2/models/xapi_activity'
80
106
  require 'rustici_software_cloud_v2/models/xapi_activity_definition'
@@ -82,20 +108,38 @@ require 'rustici_software_cloud_v2/models/xapi_agent_group'
82
108
  require 'rustici_software_cloud_v2/models/xapi_attachment'
83
109
  require 'rustici_software_cloud_v2/models/xapi_context'
84
110
  require 'rustici_software_cloud_v2/models/xapi_context_activity'
111
+ require 'rustici_software_cloud_v2/models/xapi_credential_auth_type_schema'
112
+ require 'rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema'
113
+ require 'rustici_software_cloud_v2/models/xapi_credential_post_schema'
114
+ require 'rustici_software_cloud_v2/models/xapi_credential_schema'
115
+ require 'rustici_software_cloud_v2/models/xapi_credentials_list_schema'
116
+ require 'rustici_software_cloud_v2/models/xapi_endpoint_schema'
85
117
  require 'rustici_software_cloud_v2/models/xapi_interaction_component'
86
118
  require 'rustici_software_cloud_v2/models/xapi_result'
87
119
  require 'rustici_software_cloud_v2/models/xapi_score'
88
120
  require 'rustici_software_cloud_v2/models/xapi_statement'
121
+ require 'rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema'
122
+ require 'rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema'
123
+ require 'rustici_software_cloud_v2/models/xapi_statement_pipe_schema'
89
124
  require 'rustici_software_cloud_v2/models/xapi_statement_reference'
90
125
  require 'rustici_software_cloud_v2/models/xapi_statement_result'
91
126
  require 'rustici_software_cloud_v2/models/xapi_verb'
127
+ require 'rustici_software_cloud_v2/models/zoomi_company_id'
128
+ require 'rustici_software_cloud_v2/models/zoomi_course_options_schema'
92
129
 
93
130
  # APIs
131
+ require 'rustici_software_cloud_v2/api/about_api'
94
132
  require 'rustici_software_cloud_v2/api/application_management_api'
95
133
  require 'rustici_software_cloud_v2/api/authentication_api'
96
134
  require 'rustici_software_cloud_v2/api/course_api'
135
+ require 'rustici_software_cloud_v2/api/dispatch_api'
136
+ require 'rustici_software_cloud_v2/api/invitations_api'
137
+ require 'rustici_software_cloud_v2/api/learner_api'
97
138
  require 'rustici_software_cloud_v2/api/ping_api'
98
139
  require 'rustici_software_cloud_v2/api/registration_api'
140
+ require 'rustici_software_cloud_v2/api/reporting_api'
141
+ require 'rustici_software_cloud_v2/api/xapi_api'
142
+ require 'rustici_software_cloud_v2/api/zoomi_api'
99
143
 
100
144
  module RusticiSoftwareCloudV2
101
145
  class << self
@@ -1,14 +1,13 @@
1
1
  # -*- encoding: utf-8 -*-
2
-
2
+ #
3
3
  =begin
4
4
  #SCORM Cloud Rest API
5
5
 
6
6
  #REST API used for SCORM Cloud integrations.
7
7
 
8
- OpenAPI spec version: 2.0 beta
8
+ OpenAPI spec version: 2.0
9
9
 
10
10
  Generated by: https://github.com/swagger-api/swagger-codegen.git
11
- Swagger Codegen version: 2.4.3
12
11
 
13
12
  =end
14
13
 
@@ -19,26 +18,26 @@ Gem::Specification.new do |s|
19
18
  s.name = "rustici_software_cloud_v2"
20
19
  s.version = RusticiSoftwareCloudV2::VERSION
21
20
  s.platform = Gem::Platform::RUBY
22
- s.authors = ["Swagger-Codegen"]
23
- s.email = [""]
24
- s.homepage = "https://github.com/swagger-api/swagger-codegen"
21
+ s.authors = ["Rustici Software"]
22
+ s.email = ["systems@rusticisoftware.com"]
23
+ s.homepage = "https://github.com/RusticiSoftware/scormcloud-api-v2-client-ruby"
25
24
  s.summary = "A Ruby wrapper for the SCORM Cloud API V2"
26
25
  s.description = "SCORM Cloud API V2 Client"
27
- s.license = ''
26
+ s.license = "Apache-2.0"
28
27
  s.required_ruby_version = ">= 1.9"
29
28
 
30
29
  s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
- s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
30
+ s.add_runtime_dependency 'json', '~> 1.8', '>= 1.8.3'
32
31
 
33
- s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
32
+ s.add_development_dependency 'rspec', '~> 3.4', '>= 3.4.0'
34
33
  s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
35
34
  s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
36
35
  s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
37
36
  s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
38
37
  s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
39
- s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
38
+ s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.11'
40
39
 
41
- s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
40
+ s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? }
42
41
  s.test_files = `find spec/*`.split("\n")
43
42
  s.executables = []
44
43
  s.require_paths = ["lib"]
@@ -3,22 +3,10 @@
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
9
 
10
- Licensed under the Apache License, Version 2.0 (the "License");
11
- you may not use this file except in compliance with the License.
12
- You may obtain a copy of the License at
13
-
14
- http://www.apache.org/licenses/LICENSE-2.0
15
-
16
- Unless required by applicable law or agreed to in writing, software
17
- distributed under the License is distributed on an "AS IS" BASIS,
18
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- See the License for the specific language governing permissions and
20
- limitations under the License.
21
-
22
10
  =end
23
11
 
24
12
  require 'spec_helper'
@@ -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
 
@@ -17,25 +16,25 @@ describe RusticiSoftwareCloudV2::Configuration do
17
16
 
18
17
  before(:each) do
19
18
  # uncomment below to setup host and base_path
20
- # require 'URI'
21
- # uri = URI.parse("https://cloud.scorm.com/api/v2/")
22
- # RusticiSoftwareCloudV2.configure do |c|
23
- # c.host = uri.host
24
- # c.base_path = uri.path
25
- # end
19
+ #require 'URI'
20
+ #uri = URI.parse("https://cloud.scorm.com/api/v2/")
21
+ #RusticiSoftwareCloudV2.configure do |c|
22
+ # c.host = uri.host
23
+ # c.base_path = uri.path
24
+ #end
26
25
  end
27
26
 
28
27
  describe '#base_url' do
29
28
  it 'should have the default value' do
30
29
  # uncomment below to test default value of the base path
31
- # expect(config.base_url).to eq("https://cloud.scorm.com/api/v2/")
30
+ #expect(config.base_url).to eq("https://cloud.scorm.com/api/v2/")
32
31
  end
33
32
 
34
33
  it 'should remove trailing slashes' do
35
34
  [nil, '', '/', '//'].each do |base_path|
36
35
  config.base_path = base_path
37
36
  # uncomment below to test trailing slashes
38
- # expect(config.base_url).to eq("https://cloud.scorm.com/api/v2/")
37
+ #expect(config.base_url).to eq("https://cloud.scorm.com/api/v2/")
39
38
  end
40
39
  end
41
40
  end
data/spec/spec_helper.rb CHANGED
@@ -3,22 +3,10 @@
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
9
 
10
- Licensed under the Apache License, Version 2.0 (the "License");
11
- you may not use this file except in compliance with the License.
12
- You may obtain a copy of the License at
13
-
14
- http://www.apache.org/licenses/LICENSE-2.0
15
-
16
- Unless required by applicable law or agreed to in writing, software
17
- distributed under the License is distributed on an "AS IS" BASIS,
18
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- See the License for the specific language governing permissions and
20
- limitations under the License.
21
-
22
10
  =end
23
11
 
24
12
  # load the gem