rustici_software_cloud_v2 3.0.0 → 5.0.0

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 (158) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -5
  3. data/lib/rustici_software_cloud_v2/api/about_api.rb +1 -1
  4. data/lib/rustici_software_cloud_v2/api/application_management_api.rb +19 -19
  5. data/lib/rustici_software_cloud_v2/api/authentication_api.rb +2 -2
  6. data/lib/rustici_software_cloud_v2/api/content_connectors_api.rb +4 -4
  7. data/lib/rustici_software_cloud_v2/api/course_api.rb +46 -37
  8. data/lib/rustici_software_cloud_v2/api/dispatch_api.rb +59 -47
  9. data/lib/rustici_software_cloud_v2/api/invitations_api.rb +28 -22
  10. data/lib/rustici_software_cloud_v2/api/learner_api.rb +6 -6
  11. data/lib/rustici_software_cloud_v2/api/ping_api.rb +1 -1
  12. data/lib/rustici_software_cloud_v2/api/registration_api.rb +27 -27
  13. data/lib/rustici_software_cloud_v2/api/reporting_api.rb +3 -3
  14. data/lib/rustici_software_cloud_v2/api/xapi_api.rb +10 -10
  15. data/lib/rustici_software_cloud_v2/api_client.rb +2 -2
  16. data/lib/rustici_software_cloud_v2/models/about_schema.rb +1 -1
  17. data/lib/rustici_software_cloud_v2/models/activity_result_schema.rb +1 -1
  18. data/lib/rustici_software_cloud_v2/models/application_info_list_schema.rb +1 -1
  19. data/lib/rustici_software_cloud_v2/models/application_info_schema.rb +1 -1
  20. data/lib/rustici_software_cloud_v2/models/application_list_schema.rb +1 -1
  21. data/lib/rustici_software_cloud_v2/models/application_request_schema.rb +1 -1
  22. data/lib/rustici_software_cloud_v2/models/application_schema.rb +1 -1
  23. data/lib/rustici_software_cloud_v2/models/application_token.rb +1 -1
  24. data/lib/rustici_software_cloud_v2/models/asset_file_schema.rb +1 -1
  25. data/lib/rustici_software_cloud_v2/models/batch_tags_schema.rb +1 -1
  26. data/lib/rustici_software_cloud_v2/models/comment_schema.rb +1 -1
  27. data/lib/rustici_software_cloud_v2/models/completion_amount_schema.rb +1 -1
  28. data/lib/rustici_software_cloud_v2/models/connector_list_schema.rb +1 -1
  29. data/lib/rustici_software_cloud_v2/models/connector_schema.rb +1 -1
  30. data/lib/rustici_software_cloud_v2/models/course_activity_schema.rb +1 -1
  31. data/lib/rustici_software_cloud_v2/models/course_list_non_paged_schema.rb +1 -1
  32. data/lib/rustici_software_cloud_v2/models/course_list_schema.rb +1 -1
  33. data/lib/rustici_software_cloud_v2/models/course_reference_schema.rb +1 -1
  34. data/lib/rustici_software_cloud_v2/models/course_schema.rb +1 -1
  35. data/lib/rustici_software_cloud_v2/models/create_connector_schema.rb +1 -1
  36. data/lib/rustici_software_cloud_v2/models/create_dispatch_id_schema.rb +1 -1
  37. data/lib/rustici_software_cloud_v2/models/create_dispatch_list_schema.rb +1 -1
  38. data/lib/rustici_software_cloud_v2/models/create_dispatch_schema.rb +1 -1
  39. data/lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb +25 -5
  40. data/lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb +2 -2
  41. data/lib/rustici_software_cloud_v2/models/create_registration_schema.rb +1 -1
  42. data/lib/rustici_software_cloud_v2/models/credential_list_schema.rb +1 -1
  43. data/lib/rustici_software_cloud_v2/models/credential_request_schema.rb +1 -1
  44. data/lib/rustici_software_cloud_v2/models/credential_schema.rb +25 -5
  45. data/lib/rustici_software_cloud_v2/models/destination_id_schema.rb +1 -1
  46. data/lib/rustici_software_cloud_v2/models/{zoomi_company_id.rb → destination_info_id_schema.rb} +19 -9
  47. data/lib/rustici_software_cloud_v2/models/{zoomi_course_options_schema.rb → destination_info_list_schema.rb} +19 -25
  48. data/lib/rustici_software_cloud_v2/models/destination_info_schema.rb +263 -0
  49. data/lib/rustici_software_cloud_v2/models/destination_list_schema.rb +5 -15
  50. data/lib/rustici_software_cloud_v2/models/destination_schema.rb +1 -1
  51. data/lib/rustici_software_cloud_v2/models/dispatch_id_schema.rb +1 -1
  52. data/lib/rustici_software_cloud_v2/models/dispatch_list_schema.rb +1 -1
  53. data/lib/rustici_software_cloud_v2/models/dispatch_lti13_info_schema.rb +1 -1
  54. data/lib/rustici_software_cloud_v2/models/dispatch_lti_info_schema.rb +1 -1
  55. data/lib/rustici_software_cloud_v2/models/dispatch_registration_count_schema.rb +2 -1
  56. data/lib/rustici_software_cloud_v2/models/dispatch_schema.rb +12 -2
  57. data/lib/rustici_software_cloud_v2/models/enabled_schema.rb +1 -1
  58. data/lib/rustici_software_cloud_v2/models/file_list_item_schema.rb +1 -1
  59. data/lib/rustici_software_cloud_v2/models/file_list_schema.rb +1 -1
  60. data/lib/rustici_software_cloud_v2/models/import_asset_request_schema.rb +1 -1
  61. data/lib/rustici_software_cloud_v2/models/import_connector_request_schema.rb +1 -1
  62. data/lib/rustici_software_cloud_v2/models/import_fetch_request_schema.rb +1 -1
  63. data/lib/rustici_software_cloud_v2/models/import_job_result_schema.rb +1 -1
  64. data/lib/rustici_software_cloud_v2/models/import_media_file_reference_request_schema.rb +1 -1
  65. data/lib/rustici_software_cloud_v2/models/import_request_schema.rb +1 -1
  66. data/lib/rustici_software_cloud_v2/models/import_result_schema.rb +1 -1
  67. data/lib/rustici_software_cloud_v2/models/integer_result_schema.rb +1 -1
  68. data/lib/rustici_software_cloud_v2/models/invitation_email_schema.rb +1 -1
  69. data/lib/rustici_software_cloud_v2/models/{credential_created_schema.rb → invitation_email_update_schema.rb} +17 -46
  70. data/lib/rustici_software_cloud_v2/models/invitation_job_status_schema.rb +1 -1
  71. data/lib/rustici_software_cloud_v2/models/invitation_summary_list.rb +1 -1
  72. data/lib/rustici_software_cloud_v2/models/invitation_summary_schema.rb +1 -1
  73. data/lib/rustici_software_cloud_v2/models/item_value_pair_schema.rb +1 -1
  74. data/lib/rustici_software_cloud_v2/models/launch_auth_options_schema.rb +1 -1
  75. data/lib/rustici_software_cloud_v2/models/launch_auth_schema.rb +1 -1
  76. data/lib/rustici_software_cloud_v2/models/launch_history_list_schema.rb +1 -1
  77. data/lib/rustici_software_cloud_v2/models/launch_history_schema.rb +16 -5
  78. data/lib/rustici_software_cloud_v2/models/launch_link_request_schema.rb +1 -1
  79. data/lib/rustici_software_cloud_v2/models/launch_link_schema.rb +1 -1
  80. data/lib/rustici_software_cloud_v2/models/learner_preference_schema.rb +1 -1
  81. data/lib/rustici_software_cloud_v2/models/learner_schema.rb +1 -1
  82. data/lib/rustici_software_cloud_v2/models/lti13_platform_configuration_schema.rb +1 -1
  83. data/lib/rustici_software_cloud_v2/models/lti13_tool_configuration_schema.rb +1 -1
  84. data/lib/rustici_software_cloud_v2/models/media_file_metadata_schema.rb +1 -1
  85. data/lib/rustici_software_cloud_v2/models/message_schema.rb +1 -1
  86. data/lib/rustici_software_cloud_v2/models/metadata_schema.rb +1 -1
  87. data/lib/rustici_software_cloud_v2/models/objective_schema.rb +1 -1
  88. data/lib/rustici_software_cloud_v2/models/paginated_list.rb +1 -1
  89. data/lib/rustici_software_cloud_v2/models/permissions_schema.rb +1 -1
  90. data/lib/rustici_software_cloud_v2/models/ping_schema.rb +1 -1
  91. data/lib/rustici_software_cloud_v2/models/post_back_schema.rb +1 -1
  92. data/lib/rustici_software_cloud_v2/models/preview_launch_link_request_schema.rb +239 -0
  93. data/lib/rustici_software_cloud_v2/models/private_invitation_list.rb +1 -1
  94. data/lib/rustici_software_cloud_v2/models/private_invitation_schema.rb +26 -6
  95. data/lib/rustici_software_cloud_v2/models/private_invitation_update_schema.rb +3 -3
  96. data/lib/rustici_software_cloud_v2/models/public_invitation_list.rb +1 -1
  97. data/lib/rustici_software_cloud_v2/models/public_invitation_schema.rb +15 -16
  98. data/lib/rustici_software_cloud_v2/models/public_invitation_update_schema.rb +4 -6
  99. data/lib/rustici_software_cloud_v2/models/registration_list_schema.rb +1 -1
  100. data/lib/rustici_software_cloud_v2/models/registration_schema.rb +1 -1
  101. data/lib/rustici_software_cloud_v2/models/reportage_account_info_schema.rb +1 -1
  102. data/lib/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.rb +1 -1
  103. data/lib/rustici_software_cloud_v2/models/reportage_auth_token_schema.rb +1 -1
  104. data/lib/rustici_software_cloud_v2/models/reportage_link_schema.rb +1 -1
  105. data/lib/rustici_software_cloud_v2/models/response_error.rb +1 -1
  106. data/lib/rustici_software_cloud_v2/models/runtime_interaction_schema.rb +1 -1
  107. data/lib/rustici_software_cloud_v2/models/runtime_objective_schema.rb +1 -1
  108. data/lib/rustici_software_cloud_v2/models/runtime_schema.rb +1 -1
  109. data/lib/rustici_software_cloud_v2/models/score_schema.rb +1 -1
  110. data/lib/rustici_software_cloud_v2/models/setting_item.rb +1 -1
  111. data/lib/rustici_software_cloud_v2/models/setting_list_schema.rb +1 -1
  112. data/lib/rustici_software_cloud_v2/models/setting_metadata.rb +1 -1
  113. data/lib/rustici_software_cloud_v2/models/setting_valid_value.rb +1 -1
  114. data/lib/rustici_software_cloud_v2/models/settings_individual_schema.rb +1 -1
  115. data/lib/rustici_software_cloud_v2/models/settings_post_schema.rb +1 -1
  116. data/lib/rustici_software_cloud_v2/models/shared_data_entry_schema.rb +1 -1
  117. data/lib/rustici_software_cloud_v2/models/static_properties_schema.rb +1 -1
  118. data/lib/rustici_software_cloud_v2/models/string_result_schema.rb +1 -1
  119. data/lib/rustici_software_cloud_v2/models/tag_list_schema.rb +1 -1
  120. data/lib/rustici_software_cloud_v2/models/title_schema.rb +1 -1
  121. data/lib/rustici_software_cloud_v2/models/token_request_schema.rb +1 -1
  122. data/lib/rustici_software_cloud_v2/models/update_application_schema.rb +1 -1
  123. data/lib/rustici_software_cloud_v2/models/update_connector_schema.rb +1 -1
  124. data/lib/rustici_software_cloud_v2/models/update_dispatch_schema.rb +1 -1
  125. data/lib/rustici_software_cloud_v2/models/user_invitation_list.rb +1 -1
  126. data/lib/rustici_software_cloud_v2/models/user_invitation_schema.rb +1 -1
  127. data/lib/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.rb +1 -1
  128. data/lib/rustici_software_cloud_v2/models/xapi_account.rb +1 -1
  129. data/lib/rustici_software_cloud_v2/models/xapi_activity.rb +1 -1
  130. data/lib/rustici_software_cloud_v2/models/xapi_activity_definition.rb +1 -1
  131. data/lib/rustici_software_cloud_v2/models/xapi_agent_group.rb +1 -1
  132. data/lib/rustici_software_cloud_v2/models/xapi_attachment.rb +1 -1
  133. data/lib/rustici_software_cloud_v2/models/xapi_context.rb +1 -1
  134. data/lib/rustici_software_cloud_v2/models/xapi_context_activity.rb +1 -1
  135. data/lib/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.rb +1 -1
  136. data/lib/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.rb +1 -1
  137. data/lib/rustici_software_cloud_v2/models/xapi_credential_post_schema.rb +1 -1
  138. data/lib/rustici_software_cloud_v2/models/xapi_credential_put_schema.rb +1 -1
  139. data/lib/rustici_software_cloud_v2/models/xapi_credential_schema.rb +1 -1
  140. data/lib/rustici_software_cloud_v2/models/xapi_credentials_list_schema.rb +1 -1
  141. data/lib/rustici_software_cloud_v2/models/xapi_endpoint_schema.rb +1 -1
  142. data/lib/rustici_software_cloud_v2/models/xapi_interaction_component.rb +1 -1
  143. data/lib/rustici_software_cloud_v2/models/xapi_result.rb +1 -1
  144. data/lib/rustici_software_cloud_v2/models/xapi_score.rb +1 -1
  145. data/lib/rustici_software_cloud_v2/models/xapi_statement.rb +1 -1
  146. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.rb +1 -1
  147. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.rb +1 -1
  148. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_put_schema.rb +1 -1
  149. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.rb +1 -1
  150. data/lib/rustici_software_cloud_v2/models/xapi_statement_reference.rb +1 -1
  151. data/lib/rustici_software_cloud_v2/models/xapi_statement_result.rb +1 -1
  152. data/lib/rustici_software_cloud_v2/models/xapi_verb.rb +1 -1
  153. data/lib/rustici_software_cloud_v2/version.rb +1 -1
  154. data/lib/rustici_software_cloud_v2.rb +5 -4
  155. data/rustici_software_cloud_v2.gemspec +9 -13
  156. data/spec/api_client_spec.rb +1 -1
  157. metadata +33 -121
  158. data/lib/rustici_software_cloud_v2/api/zoomi_api.rb +0 -538
@@ -13,40 +13,26 @@ require 'date'
13
13
 
14
14
 
15
15
  module RusticiSoftwareCloudV2
16
- class CredentialCreatedSchema
17
- # id for this credential
18
- attr_accessor :id
16
+ class InvitationEmailUpdateSchema
17
+ # The subject line for the email.
18
+ attr_accessor :subject
19
19
 
20
- # name for this credential
21
- attr_accessor :name
22
-
23
- # The newly created API credential
24
- attr_accessor :credential
25
-
26
- # The PENS key for this credential
27
- attr_accessor :pens_credential
28
-
29
- attr_accessor :status
20
+ # The body of the email.
21
+ attr_accessor :body
30
22
 
31
23
  # Attribute mapping from ruby-style variable name to JSON key.
32
24
  def self.attribute_map
33
25
  {
34
- :'id' => :'id',
35
- :'name' => :'name',
36
- :'credential' => :'credential',
37
- :'pens_credential' => :'pensCredential',
38
- :'status' => :'status'
26
+ :'subject' => :'subject',
27
+ :'body' => :'body'
39
28
  }
40
29
  end
41
30
 
42
31
  # Attribute type mapping.
43
32
  def self.swagger_types
44
33
  {
45
- :'id' => :'String',
46
- :'name' => :'String',
47
- :'credential' => :'String',
48
- :'pens_credential' => :'String',
49
- :'status' => :'String'
34
+ :'subject' => :'String',
35
+ :'body' => :'String'
50
36
  }
51
37
  end
52
38
 
@@ -58,24 +44,12 @@ module RusticiSoftwareCloudV2
58
44
  # convert string to symbol for hash key
59
45
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
60
46
 
61
- if attributes.has_key?(:'id')
62
- self.id = attributes[:'id']
63
- end
64
-
65
- if attributes.has_key?(:'name')
66
- self.name = attributes[:'name']
67
- end
68
-
69
- if attributes.has_key?(:'credential')
70
- self.credential = attributes[:'credential']
71
- end
72
-
73
- if attributes.has_key?(:'pensCredential')
74
- self.pens_credential = attributes[:'pensCredential']
47
+ if attributes.has_key?(:'subject')
48
+ self.subject = attributes[:'subject']
75
49
  end
76
50
 
77
- if attributes.has_key?(:'status')
78
- self.status = attributes[:'status']
51
+ if attributes.has_key?(:'body')
52
+ self.body = attributes[:'body']
79
53
  end
80
54
  end
81
55
 
@@ -98,11 +72,8 @@ module RusticiSoftwareCloudV2
98
72
  def ==(o)
99
73
  return true if self.equal?(o)
100
74
  self.class == o.class &&
101
- id == o.id &&
102
- name == o.name &&
103
- credential == o.credential &&
104
- pens_credential == o.pens_credential &&
105
- status == o.status
75
+ subject == o.subject &&
76
+ body == o.body
106
77
  end
107
78
 
108
79
  # @see the `==` method
@@ -112,9 +83,9 @@ module RusticiSoftwareCloudV2
112
83
  end
113
84
 
114
85
  # Calculates hash code according to all attributes.
115
- # @return [Fixnum] Hash code
86
+ # @return [Integer] Hash code
116
87
  def hash
117
- [id, name, credential, pens_credential, status].hash
88
+ [subject, body].hash
118
89
  end
119
90
 
120
91
  # Builds the object from hash
@@ -113,7 +113,7 @@ module RusticiSoftwareCloudV2
113
113
  end
114
114
 
115
115
  # Calculates hash code according to all attributes.
116
- # @return [Fixnum] Hash code
116
+ # @return [Integer] Hash code
117
117
  def hash
118
118
  [status, errors, total, processed].hash
119
119
  end
@@ -81,7 +81,7 @@ module RusticiSoftwareCloudV2
81
81
  end
82
82
 
83
83
  # Calculates hash code according to all attributes.
84
- # @return [Fixnum] Hash code
84
+ # @return [Integer] Hash code
85
85
  def hash
86
86
  [invitations].hash
87
87
  end
@@ -112,7 +112,7 @@ module RusticiSoftwareCloudV2
112
112
  end
113
113
 
114
114
  # Calculates hash code according to all attributes.
115
- # @return [Fixnum] Hash code
115
+ # @return [Integer] Hash code
116
116
  def hash
117
117
  [id, course_id, is_public, create_date, updated].hash
118
118
  end
@@ -81,7 +81,7 @@ module RusticiSoftwareCloudV2
81
81
  end
82
82
 
83
83
  # Calculates hash code according to all attributes.
84
- # @return [Fixnum] Hash code
84
+ # @return [Integer] Hash code
85
85
  def hash
86
86
  [item, value].hash
87
87
  end
@@ -99,7 +99,7 @@ module RusticiSoftwareCloudV2
99
99
  end
100
100
 
101
101
  # Calculates hash code according to all attributes.
102
- # @return [Fixnum] Hash code
102
+ # @return [Integer] Hash code
103
103
  def hash
104
104
  [ip_address, fingerprint, expiry, sliding_expiry].hash
105
105
  end
@@ -91,7 +91,7 @@ module RusticiSoftwareCloudV2
91
91
  end
92
92
 
93
93
  # Calculates hash code according to all attributes.
94
- # @return [Fixnum] Hash code
94
+ # @return [Integer] Hash code
95
95
  def hash
96
96
  [type, options].hash
97
97
  end
@@ -74,7 +74,7 @@ module RusticiSoftwareCloudV2
74
74
  end
75
75
 
76
76
  # Calculates hash code according to all attributes.
77
- # @return [Fixnum] Hash code
77
+ # @return [Integer] Hash code
78
78
  def hash
79
79
  [launch_history].hash
80
80
  end
@@ -14,6 +14,7 @@ require 'date'
14
14
 
15
15
  module RusticiSoftwareCloudV2
16
16
  class LaunchHistorySchema
17
+ # Identifier for the registration associated with this record
17
18
  attr_accessor :id
18
19
 
19
20
  attr_accessor :instance
@@ -37,6 +38,9 @@ module RusticiSoftwareCloudV2
37
38
  # The time of the last runtime update in UTC
38
39
  attr_accessor :last_runtime_update
39
40
 
41
+ # A unique identifier for this launch history record
42
+ attr_accessor :launch_history_id
43
+
40
44
  # Attribute mapping from ruby-style variable name to JSON key.
41
45
  def self.attribute_map
42
46
  {
@@ -49,7 +53,8 @@ module RusticiSoftwareCloudV2
49
53
  :'total_seconds_tracked' => :'totalSecondsTracked',
50
54
  :'launch_time' => :'launchTime',
51
55
  :'exit_time' => :'exitTime',
52
- :'last_runtime_update' => :'lastRuntimeUpdate'
56
+ :'last_runtime_update' => :'lastRuntimeUpdate',
57
+ :'launch_history_id' => :'launchHistoryId'
53
58
  }
54
59
  end
55
60
 
@@ -65,7 +70,8 @@ module RusticiSoftwareCloudV2
65
70
  :'total_seconds_tracked' => :'Float',
66
71
  :'launch_time' => :'DateTime',
67
72
  :'exit_time' => :'DateTime',
68
- :'last_runtime_update' => :'DateTime'
73
+ :'last_runtime_update' => :'DateTime',
74
+ :'launch_history_id' => :'String'
69
75
  }
70
76
  end
71
77
 
@@ -120,6 +126,10 @@ module RusticiSoftwareCloudV2
120
126
  if attributes.has_key?(:'lastRuntimeUpdate')
121
127
  self.last_runtime_update = attributes[:'lastRuntimeUpdate']
122
128
  end
129
+
130
+ if attributes.has_key?(:'launchHistoryId')
131
+ self.launch_history_id = attributes[:'launchHistoryId']
132
+ end
123
133
  end
124
134
 
125
135
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -166,7 +176,8 @@ module RusticiSoftwareCloudV2
166
176
  total_seconds_tracked == o.total_seconds_tracked &&
167
177
  launch_time == o.launch_time &&
168
178
  exit_time == o.exit_time &&
169
- last_runtime_update == o.last_runtime_update
179
+ last_runtime_update == o.last_runtime_update &&
180
+ launch_history_id == o.launch_history_id
170
181
  end
171
182
 
172
183
  # @see the `==` method
@@ -176,9 +187,9 @@ module RusticiSoftwareCloudV2
176
187
  end
177
188
 
178
189
  # Calculates hash code according to all attributes.
179
- # @return [Fixnum] Hash code
190
+ # @return [Integer] Hash code
180
191
  def hash
181
- [id, instance, score, completion_status, success_status, history_log, total_seconds_tracked, launch_time, exit_time, last_runtime_update].hash
192
+ [id, instance, score, completion_status, success_status, history_log, total_seconds_tracked, launch_time, exit_time, last_runtime_update, launch_history_id].hash
182
193
  end
183
194
 
184
195
  # Builds the object from hash
@@ -185,7 +185,7 @@ module RusticiSoftwareCloudV2
185
185
  end
186
186
 
187
187
  # Calculates hash code according to all attributes.
188
- # @return [Fixnum] Hash code
188
+ # @return [Integer] Hash code
189
189
  def hash
190
190
  [expiry, redirect_on_exit_url, tracking, start_sco, culture, css_url, learner_tags, course_tags, registration_tags, additionalvalues, launch_auth].hash
191
191
  end
@@ -77,7 +77,7 @@ module RusticiSoftwareCloudV2
77
77
  end
78
78
 
79
79
  # Calculates hash code according to all attributes.
80
- # @return [Fixnum] Hash code
80
+ # @return [Integer] Hash code
81
81
  def hash
82
82
  [launch_link].hash
83
83
  end
@@ -99,7 +99,7 @@ module RusticiSoftwareCloudV2
99
99
  end
100
100
 
101
101
  # Calculates hash code according to all attributes.
102
- # @return [Fixnum] Hash code
102
+ # @return [Integer] Hash code
103
103
  def hash
104
104
  [audio_level, language, delivery_speed, audio_captioning].hash
105
105
  end
@@ -105,7 +105,7 @@ module RusticiSoftwareCloudV2
105
105
  end
106
106
 
107
107
  # Calculates hash code according to all attributes.
108
- # @return [Fixnum] Hash code
108
+ # @return [Integer] Hash code
109
109
  def hash
110
110
  [id, email, first_name, last_name].hash
111
111
  end
@@ -148,7 +148,7 @@ module RusticiSoftwareCloudV2
148
148
  end
149
149
 
150
150
  # Calculates hash code according to all attributes.
151
- # @return [Fixnum] Hash code
151
+ # @return [Integer] Hash code
152
152
  def hash
153
153
  [client_id, platform_issuer_identifier, deployment_id, oidc_authorization_endpoint, json_web_key_set_url, access_token_url].hash
154
154
  end
@@ -123,7 +123,7 @@ module RusticiSoftwareCloudV2
123
123
  end
124
124
 
125
125
  # Calculates hash code according to all attributes.
126
- # @return [Fixnum] Hash code
126
+ # @return [Integer] Hash code
127
127
  def hash
128
128
  [public_key, oidc_login_initiations_url, redirect_uri, json_web_key_set_url].hash
129
129
  end
@@ -100,7 +100,7 @@ module RusticiSoftwareCloudV2
100
100
  end
101
101
 
102
102
  # Calculates hash code according to all attributes.
103
- # @return [Fixnum] Hash code
103
+ # @return [Integer] Hash code
104
104
  def hash
105
105
  [title, description, content_language, estimated_duration].hash
106
106
  end
@@ -77,7 +77,7 @@ module RusticiSoftwareCloudV2
77
77
  end
78
78
 
79
79
  # Calculates hash code according to all attributes.
80
- # @return [Fixnum] Hash code
80
+ # @return [Integer] Hash code
81
81
  def hash
82
82
  [message].hash
83
83
  end
@@ -128,7 +128,7 @@ module RusticiSoftwareCloudV2
128
128
  end
129
129
 
130
130
  # Calculates hash code according to all attributes.
131
- # @return [Fixnum] Hash code
131
+ # @return [Integer] Hash code
132
132
  def hash
133
133
  [title, title_language, description, description_language, duration, typical_time, keywords].hash
134
134
  end
@@ -210,7 +210,7 @@ module RusticiSoftwareCloudV2
210
210
  end
211
211
 
212
212
  # Calculates hash code according to all attributes.
213
- # @return [Fixnum] Hash code
213
+ # @return [Integer] Hash code
214
214
  def hash
215
215
  [id, primary, score, score_max, score_min, score_raw, previous_score_scaled, first_score_scaled, progress_measure, first_success_time_stamp, objective_completion, objective_success, previous_objective_success].hash
216
216
  end
@@ -73,7 +73,7 @@ module RusticiSoftwareCloudV2
73
73
  end
74
74
 
75
75
  # Calculates hash code according to all attributes.
76
- # @return [Fixnum] Hash code
76
+ # @return [Integer] Hash code
77
77
  def hash
78
78
  [more].hash
79
79
  end
@@ -84,7 +84,7 @@ module RusticiSoftwareCloudV2
84
84
  end
85
85
 
86
86
  # Calculates hash code according to all attributes.
87
- # @return [Fixnum] Hash code
87
+ # @return [Integer] Hash code
88
88
  def hash
89
89
  [scopes, application_name].hash
90
90
  end
@@ -81,7 +81,7 @@ module RusticiSoftwareCloudV2
81
81
  end
82
82
 
83
83
  # Calculates hash code according to all attributes.
84
- # @return [Fixnum] Hash code
84
+ # @return [Integer] Hash code
85
85
  def hash
86
86
  [api_message, current_time].hash
87
87
  end
@@ -142,7 +142,7 @@ module RusticiSoftwareCloudV2
142
142
  end
143
143
 
144
144
  # Calculates hash code according to all attributes.
145
- # @return [Fixnum] Hash code
145
+ # @return [Integer] Hash code
146
146
  def hash
147
147
  [url, auth_type, user_name, password, results_format, legacy].hash
148
148
  end
@@ -0,0 +1,239 @@
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
+
15
+ module RusticiSoftwareCloudV2
16
+ class PreviewLaunchLinkRequestSchema
17
+ # Number of seconds from now this link will expire in. Defaults to 120s. Range 10s:300s
18
+ attr_accessor :expiry
19
+
20
+ # The URL the application should redirect to when the learner exits a course. Alternatively one of the following keywords can be used to redirect to: - `closer` - A page that automatically tries to close the browser tab/window - `blank` - A blank page - `message` - A page with a message about the course being complete If an empty string is specified, the configured setting will be used (default www.scorm.com). If an invalid url is specified, the Message.html page will be loaded.
21
+ attr_accessor :redirect_on_exit_url
22
+
23
+ # For SCORM, SCO identifier to override launch, overriding the normal sequencing.
24
+ attr_accessor :start_sco
25
+
26
+ # This parameter should specify a culture code. If specified, and supported, the navigation and alerts in the player will be displayed in the associated language. If not specified, the locale of the user’s browser will be used.
27
+ attr_accessor :culture
28
+
29
+ # A url pointing to custom CSS for the player to use.
30
+ attr_accessor :css_url
31
+
32
+ attr_accessor :additionalvalues
33
+
34
+ # Attribute mapping from ruby-style variable name to JSON key.
35
+ def self.attribute_map
36
+ {
37
+ :'expiry' => :'expiry',
38
+ :'redirect_on_exit_url' => :'redirectOnExitUrl',
39
+ :'start_sco' => :'startSco',
40
+ :'culture' => :'culture',
41
+ :'css_url' => :'cssUrl',
42
+ :'additionalvalues' => :'additionalvalues'
43
+ }
44
+ end
45
+
46
+ # Attribute type mapping.
47
+ def self.swagger_types
48
+ {
49
+ :'expiry' => :'Integer',
50
+ :'redirect_on_exit_url' => :'String',
51
+ :'start_sco' => :'String',
52
+ :'culture' => :'String',
53
+ :'css_url' => :'String',
54
+ :'additionalvalues' => :'Array<ItemValuePairSchema>'
55
+ }
56
+ end
57
+
58
+ # Initializes the object
59
+ # @param [Hash] attributes Model attributes in the form of hash
60
+ def initialize(attributes = {})
61
+ return unless attributes.is_a?(Hash)
62
+
63
+ # convert string to symbol for hash key
64
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
65
+
66
+ if attributes.has_key?(:'expiry')
67
+ self.expiry = attributes[:'expiry']
68
+ else
69
+ self.expiry = 120
70
+ end
71
+
72
+ if attributes.has_key?(:'redirectOnExitUrl')
73
+ self.redirect_on_exit_url = attributes[:'redirectOnExitUrl']
74
+ end
75
+
76
+ if attributes.has_key?(:'startSco')
77
+ self.start_sco = attributes[:'startSco']
78
+ end
79
+
80
+ if attributes.has_key?(:'culture')
81
+ self.culture = attributes[:'culture']
82
+ end
83
+
84
+ if attributes.has_key?(:'cssUrl')
85
+ self.css_url = attributes[:'cssUrl']
86
+ end
87
+
88
+ if attributes.has_key?(:'additionalvalues')
89
+ if (value = attributes[:'additionalvalues']).is_a?(Array)
90
+ self.additionalvalues = value
91
+ end
92
+ end
93
+ end
94
+
95
+ # Show invalid properties with the reasons. Usually used together with valid?
96
+ # @return Array for valid properties with the reasons
97
+ def list_invalid_properties
98
+ invalid_properties = Array.new
99
+ invalid_properties
100
+ end
101
+
102
+ # Check to see if the all the properties in the model are valid
103
+ # @return true if the model is valid
104
+ def valid?
105
+ true
106
+ end
107
+
108
+
109
+ # Checks equality by comparing each attribute.
110
+ # @param [Object] Object to be compared
111
+ def ==(o)
112
+ return true if self.equal?(o)
113
+ self.class == o.class &&
114
+ expiry == o.expiry &&
115
+ redirect_on_exit_url == o.redirect_on_exit_url &&
116
+ start_sco == o.start_sco &&
117
+ culture == o.culture &&
118
+ css_url == o.css_url &&
119
+ additionalvalues == o.additionalvalues
120
+ end
121
+
122
+ # @see the `==` method
123
+ # @param [Object] Object to be compared
124
+ def eql?(o)
125
+ self == o
126
+ end
127
+
128
+ # Calculates hash code according to all attributes.
129
+ # @return [Integer] Hash code
130
+ def hash
131
+ [expiry, redirect_on_exit_url, start_sco, culture, css_url, additionalvalues].hash
132
+ end
133
+
134
+ # Builds the object from hash
135
+ # @param [Hash] attributes Model attributes in the form of hash
136
+ # @return [Object] Returns the model itself
137
+ def build_from_hash(attributes)
138
+ return nil unless attributes.is_a?(Hash)
139
+ self.class.swagger_types.each_pair do |key, type|
140
+ if type =~ /\AArray<(.*)>/i
141
+ # check to ensure the input is an array given that the attribute
142
+ # is documented as an array but the input is not
143
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
144
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
145
+ end
146
+ elsif !attributes[self.class.attribute_map[key]].nil?
147
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
148
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
149
+ end
150
+
151
+ self
152
+ end
153
+
154
+ # Deserializes the data based on type
155
+ # @param string type Data type
156
+ # @param string value Value to be deserialized
157
+ # @return [Object] Deserialized data
158
+ def _deserialize(type, value)
159
+ case type.to_sym
160
+ when :DateTime
161
+ DateTime.parse(value)
162
+ when :Date
163
+ Date.parse(value)
164
+ when :String
165
+ value.to_s
166
+ when :Integer
167
+ value.to_i
168
+ when :Float
169
+ value.to_f
170
+ when :BOOLEAN
171
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
172
+ true
173
+ else
174
+ false
175
+ end
176
+ when :Object
177
+ # generic object (usually a Hash), return directly
178
+ value
179
+ when /\AArray<(?<inner_type>.+)>\z/
180
+ inner_type = Regexp.last_match[:inner_type]
181
+ value.map { |v| _deserialize(inner_type, v) }
182
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
183
+ k_type = Regexp.last_match[:k_type]
184
+ v_type = Regexp.last_match[:v_type]
185
+ {}.tap do |hash|
186
+ value.each do |k, v|
187
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
188
+ end
189
+ end
190
+ else # model
191
+ temp_model = RusticiSoftwareCloudV2.const_get(type).new
192
+ temp_model.build_from_hash(value)
193
+ end
194
+ end
195
+
196
+ # Returns the string representation of the object
197
+ # @return [String] String presentation of the object
198
+ def to_s
199
+ to_hash.to_s
200
+ end
201
+
202
+ # to_body is an alias to to_hash (backward compatibility)
203
+ # @return [Hash] Returns the object in the form of hash
204
+ def to_body
205
+ to_hash
206
+ end
207
+
208
+ # Returns the object in the form of hash
209
+ # @return [Hash] Returns the object in the form of hash
210
+ def to_hash
211
+ hash = {}
212
+ self.class.attribute_map.each_pair do |attr, param|
213
+ value = self.send(attr)
214
+ next if value.nil?
215
+ hash[param] = _to_hash(value)
216
+ end
217
+ hash
218
+ end
219
+
220
+ # Outputs non-array value in the form of hash
221
+ # For object, use to_hash. Otherwise, just return the value
222
+ # @param [Object] value Any valid value
223
+ # @return [Hash] Returns the value in the form of hash
224
+ def _to_hash(value)
225
+ if value.is_a?(Array)
226
+ value.compact.map { |v| _to_hash(v) }
227
+ elsif value.is_a?(Hash)
228
+ {}.tap do |hash|
229
+ value.each { |k, v| hash[k] = _to_hash(v) }
230
+ end
231
+ elsif value.respond_to? :to_hash
232
+ value.to_hash
233
+ else
234
+ value
235
+ end
236
+ end
237
+
238
+ end
239
+ end
@@ -81,7 +81,7 @@ module RusticiSoftwareCloudV2
81
81
  end
82
82
 
83
83
  # Calculates hash code according to all attributes.
84
- # @return [Fixnum] Hash code
84
+ # @return [Integer] Hash code
85
85
  def hash
86
86
  [invitations].hash
87
87
  end