rustici_software_cloud_v2 1.1.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +355 -356
- data/lib/rustici_software_cloud_v2/api/about_api.rb +5 -5
- data/lib/rustici_software_cloud_v2/api/application_management_api.rb +191 -63
- data/lib/rustici_software_cloud_v2/api/authentication_api.rb +10 -18
- data/lib/rustici_software_cloud_v2/api/content_connectors_api.rb +236 -0
- data/lib/rustici_software_cloud_v2/api/course_api.rb +1046 -225
- data/lib/rustici_software_cloud_v2/api/dispatch_api.rb +634 -269
- data/lib/rustici_software_cloud_v2/api/invitations_api.rb +213 -171
- data/lib/rustici_software_cloud_v2/api/learner_api.rb +49 -49
- data/lib/rustici_software_cloud_v2/api/ping_api.rb +3 -1
- data/lib/rustici_software_cloud_v2/api/registration_api.rb +256 -270
- data/lib/rustici_software_cloud_v2/api/reporting_api.rb +20 -24
- data/lib/rustici_software_cloud_v2/api/xapi_api.rb +82 -67
- data/lib/rustici_software_cloud_v2/api/zoomi_api.rb +125 -56
- data/lib/rustici_software_cloud_v2/api_client.rb +3 -3
- data/lib/rustici_software_cloud_v2/api_error.rb +1 -1
- data/lib/rustici_software_cloud_v2/configuration.rb +11 -4
- data/lib/rustici_software_cloud_v2/models/about_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/activity_result_schema.rb +9 -37
- data/lib/rustici_software_cloud_v2/models/application_info_schema.rb +234 -0
- data/lib/rustici_software_cloud_v2/models/application_list_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/application_request_schema.rb +186 -0
- data/lib/rustici_software_cloud_v2/models/application_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/application_token.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/asset_file_schema.rb +194 -0
- data/lib/rustici_software_cloud_v2/models/batch_tags_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/comment_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/completion_amount_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/connector_list_schema.rb +188 -0
- data/lib/rustici_software_cloud_v2/models/connector_schema.rb +226 -0
- data/lib/rustici_software_cloud_v2/models/course_activity_schema.rb +7 -31
- data/lib/rustici_software_cloud_v2/models/course_list_non_paged_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/course_list_schema.rb +5 -2
- data/lib/rustici_software_cloud_v2/models/course_reference_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/course_schema.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/create_connector_schema.rb +218 -0
- data/lib/rustici_software_cloud_v2/models/create_dispatch_id_schema.rb +3 -20
- data/lib/rustici_software_cloud_v2/models/create_dispatch_list_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/create_dispatch_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/create_registration_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/credential_created_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/credential_list_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/credential_request_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/credential_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/destination_id_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/destination_list_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/destination_schema.rb +35 -6
- data/lib/rustici_software_cloud_v2/models/dispatch_id_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/dispatch_list_schema.rb +5 -2
- data/lib/rustici_software_cloud_v2/models/dispatch_lti13_info_schema.rb +186 -0
- data/lib/rustici_software_cloud_v2/models/dispatch_lti_info_schema.rb +221 -0
- data/lib/rustici_software_cloud_v2/models/dispatch_registration_count_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/dispatch_schema.rb +44 -4
- data/lib/rustici_software_cloud_v2/models/enabled_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/file_list_item_schema.rb +205 -0
- data/lib/rustici_software_cloud_v2/models/file_list_schema.rb +187 -0
- data/lib/rustici_software_cloud_v2/models/import_asset_request_schema.rb +207 -0
- data/lib/rustici_software_cloud_v2/models/import_connector_request_schema.rb +207 -0
- data/lib/rustici_software_cloud_v2/models/import_fetch_request_schema.rb +30 -7
- data/lib/rustici_software_cloud_v2/models/import_job_result_schema.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/import_media_file_reference_request_schema.rb +216 -0
- data/lib/rustici_software_cloud_v2/models/import_request_schema.rb +204 -0
- data/lib/rustici_software_cloud_v2/models/import_result_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/integer_result_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/invitation_email_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/invitation_job_status_schema.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/invitation_summary_list.rb +5 -2
- data/lib/rustici_software_cloud_v2/models/invitation_summary_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/item_value_pair_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/launch_auth_options_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/launch_auth_schema.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/launch_history_list_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/launch_history_schema.rb +9 -37
- data/lib/rustici_software_cloud_v2/models/launch_link_request_schema.rb +6 -4
- data/lib/rustici_software_cloud_v2/models/launch_link_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/learner_preference_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/learner_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/lti13_platform_configuration_schema.rb +261 -0
- data/lib/rustici_software_cloud_v2/models/lti13_tool_configuration_schema.rb +236 -0
- data/lib/rustici_software_cloud_v2/models/media_file_metadata_schema.rb +213 -0
- data/lib/rustici_software_cloud_v2/models/message_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/metadata_schema.rb +11 -9
- data/lib/rustici_software_cloud_v2/models/objective_schema.rb +12 -44
- data/lib/rustici_software_cloud_v2/models/permissions_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/ping_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/post_back_schema.rb +9 -37
- data/lib/rustici_software_cloud_v2/models/private_invitation_list.rb +5 -2
- data/lib/rustici_software_cloud_v2/models/private_invitation_schema.rb +6 -4
- data/lib/rustici_software_cloud_v2/models/private_invitation_update_schema.rb +215 -0
- data/lib/rustici_software_cloud_v2/models/public_invitation_list.rb +5 -2
- data/lib/rustici_software_cloud_v2/models/public_invitation_schema.rb +17 -6
- data/lib/rustici_software_cloud_v2/models/public_invitation_update_schema.rb +228 -0
- data/lib/rustici_software_cloud_v2/models/registration_completion.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/registration_list_schema.rb +5 -2
- data/lib/rustici_software_cloud_v2/models/registration_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/registration_success.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/reportage_auth_token_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/reportage_link_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/response_error.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/runtime_interaction_schema.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/runtime_objective_schema.rb +9 -37
- data/lib/rustici_software_cloud_v2/models/runtime_schema.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/score_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/setting_item.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/setting_list_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/setting_metadata.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/setting_valid_value.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/settings_individual_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/settings_post_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/shared_data_entry_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/static_properties_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/string_result_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/tag_list_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/title_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/token_request_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/update_application_schema.rb +196 -0
- data/lib/rustici_software_cloud_v2/models/update_connector_schema.rb +196 -0
- data/lib/rustici_software_cloud_v2/models/update_dispatch_schema.rb +16 -4
- data/lib/rustici_software_cloud_v2/models/user_invitation_list.rb +5 -2
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_account.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_activity.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_activity_definition.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_agent_group.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/xapi_attachment.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_context.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_context_activity.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/xapi_credential_post_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_credential_put_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_credential_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_credentials_list_schema.rb +5 -2
- data/lib/rustici_software_cloud_v2/models/xapi_endpoint_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_interaction_component.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_result.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_score.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_statement.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_put_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_statement_reference.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_statement_result.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_verb.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/zoomi_company_id.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/zoomi_course_options_schema.rb +14 -2
- data/lib/rustici_software_cloud_v2/version.rb +2 -2
- data/lib/rustici_software_cloud_v2.rb +23 -1
- data/rustici_software_cloud_v2.gemspec +3 -2
- data/spec/api_client_spec.rb +18 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +45 -3
@@ -6,7 +6,7 @@
|
|
6
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.
|
9
|
+
Swagger Codegen version: 2.4.27
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -64,6 +64,7 @@ module RusticiSoftwareCloudV2
|
|
64
64
|
true
|
65
65
|
end
|
66
66
|
|
67
|
+
|
67
68
|
# Checks equality by comparing each attribute.
|
68
69
|
# @param [Object] Object to be compared
|
69
70
|
def ==(o)
|
@@ -92,7 +93,7 @@ module RusticiSoftwareCloudV2
|
|
92
93
|
return nil unless attributes.is_a?(Hash)
|
93
94
|
self.class.swagger_types.each_pair do |key, type|
|
94
95
|
if type =~ /\AArray<(.*)>/i
|
95
|
-
# check to ensure the input is an array given that the
|
96
|
+
# check to ensure the input is an array given that the attribute
|
96
97
|
# is documented as an array but the input is not
|
97
98
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
98
99
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -188,5 +189,6 @@ module RusticiSoftwareCloudV2
|
|
188
189
|
value
|
189
190
|
end
|
190
191
|
end
|
192
|
+
|
191
193
|
end
|
192
194
|
end
|
@@ -6,7 +6,7 @@
|
|
6
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.
|
9
|
+
Swagger Codegen version: 2.4.27
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,9 +17,19 @@ module RusticiSoftwareCloudV2
|
|
17
17
|
# Destination ID.
|
18
18
|
attr_accessor :destination_id
|
19
19
|
|
20
|
+
# Name of the destination housing this dispatch
|
21
|
+
attr_accessor :destination_name
|
22
|
+
|
20
23
|
# Serialized external package ID.
|
21
24
|
attr_accessor :course_id
|
22
25
|
|
26
|
+
# Title of this dispatched course
|
27
|
+
attr_accessor :course_title
|
28
|
+
|
29
|
+
attr_accessor :updated
|
30
|
+
|
31
|
+
attr_accessor :created
|
32
|
+
|
23
33
|
# If true, then new registrations can be created for this dispatch.
|
24
34
|
attr_accessor :allow_new_registrations
|
25
35
|
|
@@ -35,7 +45,7 @@ module RusticiSoftwareCloudV2
|
|
35
45
|
# The current number of registrations that have been created for this dispatch.
|
36
46
|
attr_accessor :registration_count
|
37
47
|
|
38
|
-
# The
|
48
|
+
# The ISO 8601 TimeStamp (defaults to UTC) after which this dispatch will be disabled. An empty value will represent no expiration date.
|
39
49
|
attr_accessor :expiration_date
|
40
50
|
|
41
51
|
# The tags to associate with this Dispatch.
|
@@ -51,7 +61,11 @@ module RusticiSoftwareCloudV2
|
|
51
61
|
def self.attribute_map
|
52
62
|
{
|
53
63
|
:'destination_id' => :'destinationId',
|
64
|
+
:'destination_name' => :'destinationName',
|
54
65
|
:'course_id' => :'courseId',
|
66
|
+
:'course_title' => :'courseTitle',
|
67
|
+
:'updated' => :'updated',
|
68
|
+
:'created' => :'created',
|
55
69
|
:'allow_new_registrations' => :'allowNewRegistrations',
|
56
70
|
:'enabled' => :'enabled',
|
57
71
|
:'instanced' => :'instanced',
|
@@ -68,7 +82,11 @@ module RusticiSoftwareCloudV2
|
|
68
82
|
def self.swagger_types
|
69
83
|
{
|
70
84
|
:'destination_id' => :'String',
|
85
|
+
:'destination_name' => :'String',
|
71
86
|
:'course_id' => :'String',
|
87
|
+
:'course_title' => :'String',
|
88
|
+
:'updated' => :'DateTime',
|
89
|
+
:'created' => :'DateTime',
|
72
90
|
:'allow_new_registrations' => :'BOOLEAN',
|
73
91
|
:'enabled' => :'BOOLEAN',
|
74
92
|
:'instanced' => :'BOOLEAN',
|
@@ -93,10 +111,26 @@ module RusticiSoftwareCloudV2
|
|
93
111
|
self.destination_id = attributes[:'destinationId']
|
94
112
|
end
|
95
113
|
|
114
|
+
if attributes.has_key?(:'destinationName')
|
115
|
+
self.destination_name = attributes[:'destinationName']
|
116
|
+
end
|
117
|
+
|
96
118
|
if attributes.has_key?(:'courseId')
|
97
119
|
self.course_id = attributes[:'courseId']
|
98
120
|
end
|
99
121
|
|
122
|
+
if attributes.has_key?(:'courseTitle')
|
123
|
+
self.course_title = attributes[:'courseTitle']
|
124
|
+
end
|
125
|
+
|
126
|
+
if attributes.has_key?(:'updated')
|
127
|
+
self.updated = attributes[:'updated']
|
128
|
+
end
|
129
|
+
|
130
|
+
if attributes.has_key?(:'created')
|
131
|
+
self.created = attributes[:'created']
|
132
|
+
end
|
133
|
+
|
100
134
|
if attributes.has_key?(:'allowNewRegistrations')
|
101
135
|
self.allow_new_registrations = attributes[:'allowNewRegistrations']
|
102
136
|
end
|
@@ -149,13 +183,18 @@ module RusticiSoftwareCloudV2
|
|
149
183
|
true
|
150
184
|
end
|
151
185
|
|
186
|
+
|
152
187
|
# Checks equality by comparing each attribute.
|
153
188
|
# @param [Object] Object to be compared
|
154
189
|
def ==(o)
|
155
190
|
return true if self.equal?(o)
|
156
191
|
self.class == o.class &&
|
157
192
|
destination_id == o.destination_id &&
|
193
|
+
destination_name == o.destination_name &&
|
158
194
|
course_id == o.course_id &&
|
195
|
+
course_title == o.course_title &&
|
196
|
+
updated == o.updated &&
|
197
|
+
created == o.created &&
|
159
198
|
allow_new_registrations == o.allow_new_registrations &&
|
160
199
|
enabled == o.enabled &&
|
161
200
|
instanced == o.instanced &&
|
@@ -176,7 +215,7 @@ module RusticiSoftwareCloudV2
|
|
176
215
|
# Calculates hash code according to all attributes.
|
177
216
|
# @return [Fixnum] Hash code
|
178
217
|
def hash
|
179
|
-
[destination_id, course_id, allow_new_registrations, enabled, instanced, registration_cap, registration_count, expiration_date, tags, email, notes].hash
|
218
|
+
[destination_id, destination_name, course_id, course_title, updated, created, allow_new_registrations, enabled, instanced, registration_cap, registration_count, expiration_date, tags, email, notes].hash
|
180
219
|
end
|
181
220
|
|
182
221
|
# Builds the object from hash
|
@@ -186,7 +225,7 @@ module RusticiSoftwareCloudV2
|
|
186
225
|
return nil unless attributes.is_a?(Hash)
|
187
226
|
self.class.swagger_types.each_pair do |key, type|
|
188
227
|
if type =~ /\AArray<(.*)>/i
|
189
|
-
# check to ensure the input is an array given that the
|
228
|
+
# check to ensure the input is an array given that the attribute
|
190
229
|
# is documented as an array but the input is not
|
191
230
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
192
231
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -282,5 +321,6 @@ module RusticiSoftwareCloudV2
|
|
282
321
|
value
|
283
322
|
end
|
284
323
|
end
|
324
|
+
|
285
325
|
end
|
286
326
|
end
|
@@ -6,7 +6,7 @@
|
|
6
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.
|
9
|
+
Swagger Codegen version: 2.4.27
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -56,6 +56,7 @@ module RusticiSoftwareCloudV2
|
|
56
56
|
true
|
57
57
|
end
|
58
58
|
|
59
|
+
|
59
60
|
# Checks equality by comparing each attribute.
|
60
61
|
# @param [Object] Object to be compared
|
61
62
|
def ==(o)
|
@@ -83,7 +84,7 @@ module RusticiSoftwareCloudV2
|
|
83
84
|
return nil unless attributes.is_a?(Hash)
|
84
85
|
self.class.swagger_types.each_pair do |key, type|
|
85
86
|
if type =~ /\AArray<(.*)>/i
|
86
|
-
# check to ensure the input is an array given that the
|
87
|
+
# check to ensure the input is an array given that the attribute
|
87
88
|
# is documented as an array but the input is not
|
88
89
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
89
90
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -179,5 +180,6 @@ module RusticiSoftwareCloudV2
|
|
179
180
|
value
|
180
181
|
end
|
181
182
|
end
|
183
|
+
|
182
184
|
end
|
183
185
|
end
|
@@ -0,0 +1,205 @@
|
|
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
|
+
Swagger Codegen version: 2.4.27
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module RusticiSoftwareCloudV2
|
16
|
+
class FileListItemSchema
|
17
|
+
# Relative file path of the file. Used in asset manipulation calls
|
18
|
+
attr_accessor :path
|
19
|
+
|
20
|
+
# File size in bytes of the file
|
21
|
+
attr_accessor :size
|
22
|
+
|
23
|
+
attr_accessor :modified
|
24
|
+
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
+
def self.attribute_map
|
27
|
+
{
|
28
|
+
:'path' => :'path',
|
29
|
+
:'size' => :'size',
|
30
|
+
:'modified' => :'modified'
|
31
|
+
}
|
32
|
+
end
|
33
|
+
|
34
|
+
# Attribute type mapping.
|
35
|
+
def self.swagger_types
|
36
|
+
{
|
37
|
+
:'path' => :'String',
|
38
|
+
:'size' => :'Integer',
|
39
|
+
:'modified' => :'DateTime'
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# Initializes the object
|
44
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
45
|
+
def initialize(attributes = {})
|
46
|
+
return unless attributes.is_a?(Hash)
|
47
|
+
|
48
|
+
# convert string to symbol for hash key
|
49
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
50
|
+
|
51
|
+
if attributes.has_key?(:'path')
|
52
|
+
self.path = attributes[:'path']
|
53
|
+
end
|
54
|
+
|
55
|
+
if attributes.has_key?(:'size')
|
56
|
+
self.size = attributes[:'size']
|
57
|
+
end
|
58
|
+
|
59
|
+
if attributes.has_key?(:'modified')
|
60
|
+
self.modified = attributes[:'modified']
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
65
|
+
# @return Array for valid properties with the reasons
|
66
|
+
def list_invalid_properties
|
67
|
+
invalid_properties = Array.new
|
68
|
+
invalid_properties
|
69
|
+
end
|
70
|
+
|
71
|
+
# Check to see if the all the properties in the model are valid
|
72
|
+
# @return true if the model is valid
|
73
|
+
def valid?
|
74
|
+
true
|
75
|
+
end
|
76
|
+
|
77
|
+
|
78
|
+
# Checks equality by comparing each attribute.
|
79
|
+
# @param [Object] Object to be compared
|
80
|
+
def ==(o)
|
81
|
+
return true if self.equal?(o)
|
82
|
+
self.class == o.class &&
|
83
|
+
path == o.path &&
|
84
|
+
size == o.size &&
|
85
|
+
modified == o.modified
|
86
|
+
end
|
87
|
+
|
88
|
+
# @see the `==` method
|
89
|
+
# @param [Object] Object to be compared
|
90
|
+
def eql?(o)
|
91
|
+
self == o
|
92
|
+
end
|
93
|
+
|
94
|
+
# Calculates hash code according to all attributes.
|
95
|
+
# @return [Fixnum] Hash code
|
96
|
+
def hash
|
97
|
+
[path, size, modified].hash
|
98
|
+
end
|
99
|
+
|
100
|
+
# Builds the object from hash
|
101
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
102
|
+
# @return [Object] Returns the model itself
|
103
|
+
def build_from_hash(attributes)
|
104
|
+
return nil unless attributes.is_a?(Hash)
|
105
|
+
self.class.swagger_types.each_pair do |key, type|
|
106
|
+
if type =~ /\AArray<(.*)>/i
|
107
|
+
# check to ensure the input is an array given that the attribute
|
108
|
+
# is documented as an array but the input is not
|
109
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
110
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
111
|
+
end
|
112
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
113
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
114
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
115
|
+
end
|
116
|
+
|
117
|
+
self
|
118
|
+
end
|
119
|
+
|
120
|
+
# Deserializes the data based on type
|
121
|
+
# @param string type Data type
|
122
|
+
# @param string value Value to be deserialized
|
123
|
+
# @return [Object] Deserialized data
|
124
|
+
def _deserialize(type, value)
|
125
|
+
case type.to_sym
|
126
|
+
when :DateTime
|
127
|
+
DateTime.parse(value)
|
128
|
+
when :Date
|
129
|
+
Date.parse(value)
|
130
|
+
when :String
|
131
|
+
value.to_s
|
132
|
+
when :Integer
|
133
|
+
value.to_i
|
134
|
+
when :Float
|
135
|
+
value.to_f
|
136
|
+
when :BOOLEAN
|
137
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
138
|
+
true
|
139
|
+
else
|
140
|
+
false
|
141
|
+
end
|
142
|
+
when :Object
|
143
|
+
# generic object (usually a Hash), return directly
|
144
|
+
value
|
145
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
146
|
+
inner_type = Regexp.last_match[:inner_type]
|
147
|
+
value.map { |v| _deserialize(inner_type, v) }
|
148
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
149
|
+
k_type = Regexp.last_match[:k_type]
|
150
|
+
v_type = Regexp.last_match[:v_type]
|
151
|
+
{}.tap do |hash|
|
152
|
+
value.each do |k, v|
|
153
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
154
|
+
end
|
155
|
+
end
|
156
|
+
else # model
|
157
|
+
temp_model = RusticiSoftwareCloudV2.const_get(type).new
|
158
|
+
temp_model.build_from_hash(value)
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
# Returns the string representation of the object
|
163
|
+
# @return [String] String presentation of the object
|
164
|
+
def to_s
|
165
|
+
to_hash.to_s
|
166
|
+
end
|
167
|
+
|
168
|
+
# to_body is an alias to to_hash (backward compatibility)
|
169
|
+
# @return [Hash] Returns the object in the form of hash
|
170
|
+
def to_body
|
171
|
+
to_hash
|
172
|
+
end
|
173
|
+
|
174
|
+
# Returns the object in the form of hash
|
175
|
+
# @return [Hash] Returns the object in the form of hash
|
176
|
+
def to_hash
|
177
|
+
hash = {}
|
178
|
+
self.class.attribute_map.each_pair do |attr, param|
|
179
|
+
value = self.send(attr)
|
180
|
+
next if value.nil?
|
181
|
+
hash[param] = _to_hash(value)
|
182
|
+
end
|
183
|
+
hash
|
184
|
+
end
|
185
|
+
|
186
|
+
# Outputs non-array value in the form of hash
|
187
|
+
# For object, use to_hash. Otherwise, just return the value
|
188
|
+
# @param [Object] value Any valid value
|
189
|
+
# @return [Hash] Returns the value in the form of hash
|
190
|
+
def _to_hash(value)
|
191
|
+
if value.is_a?(Array)
|
192
|
+
value.compact.map { |v| _to_hash(v) }
|
193
|
+
elsif value.is_a?(Hash)
|
194
|
+
{}.tap do |hash|
|
195
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
196
|
+
end
|
197
|
+
elsif value.respond_to? :to_hash
|
198
|
+
value.to_hash
|
199
|
+
else
|
200
|
+
value
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
end
|
205
|
+
end
|
@@ -0,0 +1,187 @@
|
|
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
|
+
Swagger Codegen version: 2.4.27
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module RusticiSoftwareCloudV2
|
16
|
+
class FileListSchema
|
17
|
+
attr_accessor :files
|
18
|
+
|
19
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
20
|
+
def self.attribute_map
|
21
|
+
{
|
22
|
+
:'files' => :'files'
|
23
|
+
}
|
24
|
+
end
|
25
|
+
|
26
|
+
# Attribute type mapping.
|
27
|
+
def self.swagger_types
|
28
|
+
{
|
29
|
+
:'files' => :'Array<FileListItemSchema>'
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# Initializes the object
|
34
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
35
|
+
def initialize(attributes = {})
|
36
|
+
return unless attributes.is_a?(Hash)
|
37
|
+
|
38
|
+
# convert string to symbol for hash key
|
39
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
40
|
+
|
41
|
+
if attributes.has_key?(:'files')
|
42
|
+
if (value = attributes[:'files']).is_a?(Array)
|
43
|
+
self.files = value
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
49
|
+
# @return Array for valid properties with the reasons
|
50
|
+
def list_invalid_properties
|
51
|
+
invalid_properties = Array.new
|
52
|
+
invalid_properties
|
53
|
+
end
|
54
|
+
|
55
|
+
# Check to see if the all the properties in the model are valid
|
56
|
+
# @return true if the model is valid
|
57
|
+
def valid?
|
58
|
+
true
|
59
|
+
end
|
60
|
+
|
61
|
+
|
62
|
+
# Checks equality by comparing each attribute.
|
63
|
+
# @param [Object] Object to be compared
|
64
|
+
def ==(o)
|
65
|
+
return true if self.equal?(o)
|
66
|
+
self.class == o.class &&
|
67
|
+
files == o.files
|
68
|
+
end
|
69
|
+
|
70
|
+
# @see the `==` method
|
71
|
+
# @param [Object] Object to be compared
|
72
|
+
def eql?(o)
|
73
|
+
self == o
|
74
|
+
end
|
75
|
+
|
76
|
+
# Calculates hash code according to all attributes.
|
77
|
+
# @return [Fixnum] Hash code
|
78
|
+
def hash
|
79
|
+
[files].hash
|
80
|
+
end
|
81
|
+
|
82
|
+
# Builds the object from hash
|
83
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
84
|
+
# @return [Object] Returns the model itself
|
85
|
+
def build_from_hash(attributes)
|
86
|
+
return nil unless attributes.is_a?(Hash)
|
87
|
+
self.class.swagger_types.each_pair do |key, type|
|
88
|
+
if type =~ /\AArray<(.*)>/i
|
89
|
+
# check to ensure the input is an array given that the attribute
|
90
|
+
# is documented as an array but the input is not
|
91
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
92
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
93
|
+
end
|
94
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
95
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
96
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
97
|
+
end
|
98
|
+
|
99
|
+
self
|
100
|
+
end
|
101
|
+
|
102
|
+
# Deserializes the data based on type
|
103
|
+
# @param string type Data type
|
104
|
+
# @param string value Value to be deserialized
|
105
|
+
# @return [Object] Deserialized data
|
106
|
+
def _deserialize(type, value)
|
107
|
+
case type.to_sym
|
108
|
+
when :DateTime
|
109
|
+
DateTime.parse(value)
|
110
|
+
when :Date
|
111
|
+
Date.parse(value)
|
112
|
+
when :String
|
113
|
+
value.to_s
|
114
|
+
when :Integer
|
115
|
+
value.to_i
|
116
|
+
when :Float
|
117
|
+
value.to_f
|
118
|
+
when :BOOLEAN
|
119
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
120
|
+
true
|
121
|
+
else
|
122
|
+
false
|
123
|
+
end
|
124
|
+
when :Object
|
125
|
+
# generic object (usually a Hash), return directly
|
126
|
+
value
|
127
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
128
|
+
inner_type = Regexp.last_match[:inner_type]
|
129
|
+
value.map { |v| _deserialize(inner_type, v) }
|
130
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
131
|
+
k_type = Regexp.last_match[:k_type]
|
132
|
+
v_type = Regexp.last_match[:v_type]
|
133
|
+
{}.tap do |hash|
|
134
|
+
value.each do |k, v|
|
135
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
136
|
+
end
|
137
|
+
end
|
138
|
+
else # model
|
139
|
+
temp_model = RusticiSoftwareCloudV2.const_get(type).new
|
140
|
+
temp_model.build_from_hash(value)
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
# Returns the string representation of the object
|
145
|
+
# @return [String] String presentation of the object
|
146
|
+
def to_s
|
147
|
+
to_hash.to_s
|
148
|
+
end
|
149
|
+
|
150
|
+
# to_body is an alias to to_hash (backward compatibility)
|
151
|
+
# @return [Hash] Returns the object in the form of hash
|
152
|
+
def to_body
|
153
|
+
to_hash
|
154
|
+
end
|
155
|
+
|
156
|
+
# Returns the object in the form of hash
|
157
|
+
# @return [Hash] Returns the object in the form of hash
|
158
|
+
def to_hash
|
159
|
+
hash = {}
|
160
|
+
self.class.attribute_map.each_pair do |attr, param|
|
161
|
+
value = self.send(attr)
|
162
|
+
next if value.nil?
|
163
|
+
hash[param] = _to_hash(value)
|
164
|
+
end
|
165
|
+
hash
|
166
|
+
end
|
167
|
+
|
168
|
+
# Outputs non-array value in the form of hash
|
169
|
+
# For object, use to_hash. Otherwise, just return the value
|
170
|
+
# @param [Object] value Any valid value
|
171
|
+
# @return [Hash] Returns the value in the form of hash
|
172
|
+
def _to_hash(value)
|
173
|
+
if value.is_a?(Array)
|
174
|
+
value.compact.map { |v| _to_hash(v) }
|
175
|
+
elsif value.is_a?(Hash)
|
176
|
+
{}.tap do |hash|
|
177
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
178
|
+
end
|
179
|
+
elsif value.respond_to? :to_hash
|
180
|
+
value.to_hash
|
181
|
+
else
|
182
|
+
value
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
186
|
+
end
|
187
|
+
end
|