rustici_software_cloud_v2 1.0.0beta → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/README.md +194 -88
- data/lib/rustici_software_cloud_v2/api/about_api.rb +71 -0
- data/lib/rustici_software_cloud_v2/api/application_management_api.rb +161 -97
- data/lib/rustici_software_cloud_v2/api/authentication_api.rb +13 -13
- data/lib/rustici_software_cloud_v2/api/course_api.rb +246 -260
- data/lib/rustici_software_cloud_v2/api/dispatch_api.rb +1994 -0
- data/lib/rustici_software_cloud_v2/api/invitations_api.rb +964 -0
- data/lib/rustici_software_cloud_v2/api/learner_api.rb +296 -0
- data/lib/rustici_software_cloud_v2/api/ping_api.rb +10 -8
- data/lib/rustici_software_cloud_v2/api/registration_api.rb +379 -324
- data/lib/rustici_software_cloud_v2/api/reporting_api.rb +191 -0
- data/lib/rustici_software_cloud_v2/api/xapi_api.rb +555 -0
- data/lib/rustici_software_cloud_v2/api/zoomi_api.rb +448 -0
- data/lib/rustici_software_cloud_v2/api_client.rb +2 -3
- data/lib/rustici_software_cloud_v2/api_error.rb +1 -2
- data/lib/rustici_software_cloud_v2/configuration.rb +9 -19
- data/lib/rustici_software_cloud_v2/models/about_schema.rb +196 -0
- data/lib/rustici_software_cloud_v2/models/activity_result_schema.rb +17 -14
- data/lib/rustici_software_cloud_v2/models/application_list_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/application_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/application_token.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/{course_tags_batch_schema.rb → batch_tags_schema.rb} +29 -23
- data/lib/rustici_software_cloud_v2/models/comment_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/completion_amount_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/course_activity_schema.rb +14 -11
- data/lib/rustici_software_cloud_v2/models/course_list_non_paged_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/course_list_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/course_reference_schema.rb +11 -8
- data/lib/rustici_software_cloud_v2/models/course_schema.rb +14 -11
- data/lib/rustici_software_cloud_v2/models/create_dispatch_id_schema.rb +225 -0
- data/lib/rustici_software_cloud_v2/models/{link_schema.rb → create_dispatch_list_schema.rb} +22 -21
- data/lib/rustici_software_cloud_v2/models/create_dispatch_schema.rb +308 -0
- data/lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb +254 -0
- data/lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb +252 -0
- data/lib/rustici_software_cloud_v2/models/create_registration_schema.rb +15 -11
- data/lib/rustici_software_cloud_v2/models/credential_created_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/credential_list_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/credential_request_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/credential_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/destination_id_schema.rb +197 -0
- data/lib/rustici_software_cloud_v2/models/destination_list_schema.rb +200 -0
- data/lib/rustici_software_cloud_v2/models/{setting_metadata_valid_values.rb → destination_schema.rb} +42 -31
- data/lib/rustici_software_cloud_v2/models/dispatch_id_schema.rb +196 -0
- data/lib/rustici_software_cloud_v2/models/dispatch_list_schema.rb +198 -0
- data/lib/rustici_software_cloud_v2/models/dispatch_registration_count_schema.rb +196 -0
- data/lib/rustici_software_cloud_v2/models/dispatch_schema.rb +290 -0
- data/lib/rustici_software_cloud_v2/models/{tag_post_schema.rb → enabled_schema.rb} +24 -11
- data/lib/rustici_software_cloud_v2/models/import_fetch_request_schema.rb +12 -9
- data/lib/rustici_software_cloud_v2/models/import_job_result_schema.rb +14 -11
- data/lib/rustici_software_cloud_v2/models/import_result_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/integer_result_schema.rb +13 -9
- data/lib/rustici_software_cloud_v2/models/invitation_email_schema.rb +215 -0
- data/lib/rustici_software_cloud_v2/models/invitation_job_status_schema.rb +253 -0
- data/lib/rustici_software_cloud_v2/models/invitation_summary_list.rb +199 -0
- data/lib/rustici_software_cloud_v2/models/invitation_summary_schema.rb +227 -0
- data/lib/rustici_software_cloud_v2/models/item_value_pair_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/launch_history_list_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/launch_history_schema.rb +19 -16
- data/lib/rustici_software_cloud_v2/models/launch_link_request_schema.rb +17 -8
- data/lib/rustici_software_cloud_v2/models/launch_link_schema.rb +13 -9
- data/lib/rustici_software_cloud_v2/models/learner_preference_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/learner_schema.rb +13 -9
- data/lib/rustici_software_cloud_v2/models/message_schema.rb +13 -9
- data/lib/rustici_software_cloud_v2/models/metadata_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/objective_schema.rb +23 -20
- data/lib/rustici_software_cloud_v2/models/permissions_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/ping_schema.rb +28 -20
- data/lib/rustici_software_cloud_v2/models/post_back_schema.rb +33 -20
- data/lib/rustici_software_cloud_v2/models/private_invitation_list.rb +199 -0
- data/lib/rustici_software_cloud_v2/models/private_invitation_schema.rb +266 -0
- data/lib/rustici_software_cloud_v2/models/public_invitation_list.rb +199 -0
- data/lib/rustici_software_cloud_v2/models/public_invitation_schema.rb +289 -0
- data/lib/rustici_software_cloud_v2/models/registration_completion.rb +5 -14
- data/lib/rustici_software_cloud_v2/models/registration_list_schema.rb +13 -9
- data/lib/rustici_software_cloud_v2/models/registration_schema.rb +24 -9
- data/lib/rustici_software_cloud_v2/models/registration_success.rb +5 -14
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_schema.rb +259 -0
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.rb +214 -0
- data/lib/rustici_software_cloud_v2/models/reportage_auth_token_schema.rb +196 -0
- data/lib/rustici_software_cloud_v2/models/reportage_link_schema.rb +187 -0
- data/lib/rustici_software_cloud_v2/models/response_error.rb +13 -9
- data/lib/rustici_software_cloud_v2/models/runtime_interaction_schema.rb +14 -11
- data/lib/rustici_software_cloud_v2/models/runtime_objective_schema.rb +19 -16
- data/lib/rustici_software_cloud_v2/models/runtime_schema.rb +15 -12
- data/lib/rustici_software_cloud_v2/models/score_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/setting_item.rb +14 -11
- data/lib/rustici_software_cloud_v2/models/setting_list_schema.rb +13 -9
- data/lib/rustici_software_cloud_v2/models/setting_metadata.rb +15 -12
- data/lib/rustici_software_cloud_v2/models/setting_valid_value.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/settings_individual_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/settings_post_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/shared_data_entry_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/static_properties_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/string_result_schema.rb +13 -9
- data/lib/rustici_software_cloud_v2/models/tag_list_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/title_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/token_request_schema.rb +14 -10
- data/lib/rustici_software_cloud_v2/models/update_dispatch_schema.rb +258 -0
- data/lib/rustici_software_cloud_v2/models/user_invitation_list.rb +199 -0
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema.rb +236 -0
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.rb +214 -0
- data/lib/rustici_software_cloud_v2/models/xapi_account.rb +13 -10
- data/lib/rustici_software_cloud_v2/models/xapi_activity.rb +13 -10
- data/lib/rustici_software_cloud_v2/models/xapi_activity_definition.rb +14 -11
- data/lib/rustici_software_cloud_v2/models/xapi_agent_group.rb +14 -12
- data/lib/rustici_software_cloud_v2/models/xapi_attachment.rb +18 -15
- data/lib/rustici_software_cloud_v2/models/xapi_context.rb +12 -9
- data/lib/rustici_software_cloud_v2/models/xapi_context_activity.rb +11 -8
- data/lib/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.rb +220 -0
- data/lib/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.rb +220 -0
- data/lib/rustici_software_cloud_v2/models/xapi_credential_post_schema.rb +252 -0
- data/lib/rustici_software_cloud_v2/models/xapi_credential_schema.rb +266 -0
- data/lib/rustici_software_cloud_v2/models/{registration_tags_batch_schema.rb → xapi_credentials_list_schema.rb} +30 -31
- data/lib/rustici_software_cloud_v2/models/xapi_endpoint_schema.rb +205 -0
- data/lib/rustici_software_cloud_v2/models/xapi_interaction_component.rb +13 -10
- data/lib/rustici_software_cloud_v2/models/xapi_result.rb +12 -9
- data/lib/rustici_software_cloud_v2/models/xapi_score.rb +11 -8
- data/lib/rustici_software_cloud_v2/models/xapi_statement.rb +11 -8
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.rb +194 -0
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.rb +196 -0
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.rb +241 -0
- data/lib/rustici_software_cloud_v2/models/xapi_statement_reference.rb +14 -11
- data/lib/rustici_software_cloud_v2/models/xapi_statement_result.rb +12 -9
- data/lib/rustici_software_cloud_v2/models/xapi_verb.rb +13 -10
- data/lib/rustici_software_cloud_v2/models/zoomi_company_id.rb +187 -0
- data/lib/rustici_software_cloud_v2/models/zoomi_course_options_schema.rb +196 -0
- data/lib/rustici_software_cloud_v2/version.rb +2 -3
- data/lib/rustici_software_cloud_v2.rb +50 -6
- data/rustici_software_cloud_v2.gemspec +10 -11
- data/spec/api_client_spec.rb +1 -13
- data/spec/configuration_spec.rb +9 -10
- data/spec/spec_helper.rb +1 -13
- metadata +107 -271
- data/docs/ActivityResultSchema.md +0 -20
- data/docs/ApplicationListSchema.md +0 -8
- data/docs/ApplicationManagementApi.md +0 -570
- data/docs/ApplicationSchema.md +0 -9
- data/docs/ApplicationToken.md +0 -10
- data/docs/AuthenticationApi.md +0 -64
- data/docs/CommentSchema.md +0 -10
- data/docs/CompletionAmountSchema.md +0 -8
- data/docs/CourseActivitySchema.md +0 -15
- data/docs/CourseApi.md +0 -1459
- data/docs/CourseListNonPagedSchema.md +0 -8
- data/docs/CourseListSchema.md +0 -9
- data/docs/CourseReferenceSchema.md +0 -10
- data/docs/CourseSchema.md +0 -20
- data/docs/CourseTagsBatchSchema.md +0 -9
- data/docs/CreateRegistrationSchema.md +0 -17
- data/docs/CredentialCreatedSchema.md +0 -12
- data/docs/CredentialListSchema.md +0 -8
- data/docs/CredentialRequestSchema.md +0 -9
- data/docs/CredentialSchema.md +0 -12
- data/docs/ImportFetchRequestSchema.md +0 -8
- data/docs/ImportJobResultSchema.md +0 -11
- data/docs/ImportResultSchema.md +0 -11
- data/docs/IntegerResultSchema.md +0 -8
- data/docs/ItemValuePairSchema.md +0 -9
- data/docs/LaunchHistoryListSchema.md +0 -8
- data/docs/LaunchHistorySchema.md +0 -17
- data/docs/LaunchLinkRequestSchema.md +0 -17
- data/docs/LaunchLinkSchema.md +0 -8
- data/docs/LearnerPreferenceSchema.md +0 -11
- data/docs/LearnerSchema.md +0 -11
- data/docs/LinkSchema.md +0 -8
- data/docs/MessageSchema.md +0 -8
- data/docs/MetadataSchema.md +0 -14
- data/docs/ObjectiveSchema.md +0 -20
- data/docs/PermissionsSchema.md +0 -9
- data/docs/PingApi.md +0 -57
- data/docs/PingSchema.md +0 -8
- data/docs/PostBackSchema.md +0 -12
- data/docs/RegistrationApi.md +0 -1490
- data/docs/RegistrationCompletion.md +0 -7
- data/docs/RegistrationListSchema.md +0 -9
- data/docs/RegistrationSchema.md +0 -27
- data/docs/RegistrationSuccess.md +0 -7
- data/docs/RegistrationTagsBatchSchema.md +0 -9
- data/docs/ResponseError.md +0 -8
- data/docs/RuntimeInteractionSchema.md +0 -18
- data/docs/RuntimeObjectiveSchema.md +0 -16
- data/docs/RuntimeSchema.md +0 -27
- data/docs/ScoreSchema.md +0 -8
- data/docs/SettingItem.md +0 -12
- data/docs/SettingListSchema.md +0 -8
- data/docs/SettingMetadata.md +0 -15
- data/docs/SettingMetadataValidValues.md +0 -9
- data/docs/SettingValidValue.md +0 -9
- data/docs/SettingsIndividualSchema.md +0 -10
- data/docs/SettingsPostSchema.md +0 -8
- data/docs/SharedDataEntrySchema.md +0 -9
- data/docs/StaticPropertiesSchema.md +0 -13
- data/docs/StringResultSchema.md +0 -8
- data/docs/TagListSchema.md +0 -8
- data/docs/TagPostSchema.md +0 -7
- data/docs/TitleSchema.md +0 -8
- data/docs/TokenRequestSchema.md +0 -9
- data/docs/XapiAccount.md +0 -9
- data/docs/XapiActivity.md +0 -10
- data/docs/XapiActivityDefinition.md +0 -19
- data/docs/XapiAgentGroup.md +0 -14
- data/docs/XapiAttachment.md +0 -14
- data/docs/XapiContext.md +0 -16
- data/docs/XapiContextActivity.md +0 -11
- data/docs/XapiInteractionComponent.md +0 -9
- data/docs/XapiResult.md +0 -13
- data/docs/XapiScore.md +0 -11
- data/docs/XapiStatement.md +0 -20
- data/docs/XapiStatementReference.md +0 -9
- data/docs/XapiStatementResult.md +0 -9
- data/docs/XapiVerb.md +0 -9
- data/git_push.sh +0 -55
- data/spec/models/activity_result_schema_spec.rb +0 -133
- data/spec/models/application_list_schema_spec.rb +0 -53
- data/spec/models/application_schema_spec.rb +0 -59
- data/spec/models/application_token_spec.rb +0 -65
- data/spec/models/comment_schema_spec.rb +0 -65
- data/spec/models/completion_amount_schema_spec.rb +0 -53
- data/spec/models/course_activity_schema_spec.rb +0 -99
- data/spec/models/course_list_non_paged_schema_spec.rb +0 -53
- data/spec/models/course_list_schema_spec.rb +0 -59
- data/spec/models/course_reference_schema_spec.rb +0 -65
- data/spec/models/course_schema_spec.rb +0 -129
- data/spec/models/create_registration_schema_spec.rb +0 -107
- data/spec/models/credential_created_schema_spec.rb +0 -77
- data/spec/models/credential_list_schema_spec.rb +0 -53
- data/spec/models/credential_request_schema_spec.rb +0 -59
- data/spec/models/credential_schema_spec.rb +0 -77
- data/spec/models/import_fetch_request_schema_spec.rb +0 -53
- data/spec/models/import_job_result_schema_spec.rb +0 -75
- data/spec/models/import_result_schema_spec.rb +0 -71
- data/spec/models/integer_result_schema_spec.rb +0 -53
- data/spec/models/item_value_pair_schema_spec.rb +0 -59
- data/spec/models/launch_history_list_schema_spec.rb +0 -53
- data/spec/models/launch_history_schema_spec.rb +0 -115
- data/spec/models/launch_link_request_schema_spec.rb +0 -107
- data/spec/models/launch_link_schema_spec.rb +0 -53
- data/spec/models/learner_preference_schema_spec.rb +0 -71
- data/spec/models/learner_schema_spec.rb +0 -71
- data/spec/models/link_schema_spec.rb +0 -53
- data/spec/models/message_schema_spec.rb +0 -53
- data/spec/models/metadata_schema_spec.rb +0 -89
- data/spec/models/objective_schema_spec.rb +0 -137
- data/spec/models/permissions_schema_spec.rb +0 -59
- data/spec/models/ping_schema_spec.rb +0 -53
- data/spec/models/post_back_schema_spec.rb +0 -85
- data/spec/models/registration_completion_spec.rb +0 -47
- data/spec/models/registration_list_schema_spec.rb +0 -59
- data/spec/models/registration_schema_spec.rb +0 -167
- data/spec/models/registration_success_spec.rb +0 -47
- data/spec/models/response_error_spec.rb +0 -53
- data/spec/models/runtime_interaction_schema_spec.rb +0 -117
- data/spec/models/runtime_objective_schema_spec.rb +0 -109
- data/spec/models/runtime_schema_spec.rb +0 -171
- data/spec/models/score_schema_spec.rb +0 -53
- data/spec/models/setting_item_spec.rb +0 -81
- data/spec/models/setting_list_schema_spec.rb +0 -53
- data/spec/models/setting_metadata_spec.rb +0 -99
- data/spec/models/setting_metadata_valid_values_spec.rb +0 -59
- data/spec/models/settings_individual_schema_spec.rb +0 -65
- data/spec/models/settings_post_schema_spec.rb +0 -53
- data/spec/models/shared_data_entry_schema_spec.rb +0 -59
- data/spec/models/static_properties_schema_spec.rb +0 -83
- data/spec/models/string_result_schema_spec.rb +0 -53
- data/spec/models/title_schema_spec.rb +0 -53
- data/spec/models/token_request_schema_spec.rb +0 -59
- data/swagger-codegen.config +0 -11
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
|
|
4
4
|
#REST API used for SCORM Cloud integrations.
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 2.0
|
|
6
|
+
OpenAPI spec version: 2.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 2.4.3
|
|
10
9
|
|
|
11
10
|
=end
|
|
12
11
|
|
|
13
12
|
require 'date'
|
|
14
13
|
|
|
15
14
|
module RusticiSoftwareCloudV2
|
|
15
|
+
|
|
16
16
|
class CommentSchema
|
|
17
17
|
attr_accessor :value
|
|
18
18
|
|
|
@@ -20,6 +20,7 @@ module RusticiSoftwareCloudV2
|
|
|
20
20
|
|
|
21
21
|
attr_accessor :date_time
|
|
22
22
|
|
|
23
|
+
|
|
23
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
24
25
|
def self.attribute_map
|
|
25
26
|
{
|
|
@@ -44,7 +45,7 @@ module RusticiSoftwareCloudV2
|
|
|
44
45
|
return unless attributes.is_a?(Hash)
|
|
45
46
|
|
|
46
47
|
# convert string to symbol for hash key
|
|
47
|
-
attributes = attributes.each_with_object({})
|
|
48
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
48
49
|
|
|
49
50
|
if attributes.has_key?(:'value')
|
|
50
51
|
self.value = attributes[:'value']
|
|
@@ -57,19 +58,20 @@ module RusticiSoftwareCloudV2
|
|
|
57
58
|
if attributes.has_key?(:'dateTime')
|
|
58
59
|
self.date_time = attributes[:'dateTime']
|
|
59
60
|
end
|
|
61
|
+
|
|
60
62
|
end
|
|
61
63
|
|
|
62
64
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
63
|
-
# @return Array for valid
|
|
65
|
+
# @return Array for valid properies with the reasons
|
|
64
66
|
def list_invalid_properties
|
|
65
67
|
invalid_properties = Array.new
|
|
66
|
-
invalid_properties
|
|
68
|
+
return invalid_properties
|
|
67
69
|
end
|
|
68
70
|
|
|
69
71
|
# Check to see if the all the properties in the model are valid
|
|
70
72
|
# @return true if the model is valid
|
|
71
73
|
def valid?
|
|
72
|
-
true
|
|
74
|
+
return true
|
|
73
75
|
end
|
|
74
76
|
|
|
75
77
|
# Checks equality by comparing each attribute.
|
|
@@ -104,7 +106,7 @@ module RusticiSoftwareCloudV2
|
|
|
104
106
|
# check to ensure the input is an array given that the the attribute
|
|
105
107
|
# is documented as an array but the input is not
|
|
106
108
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
107
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map
|
|
109
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
108
110
|
end
|
|
109
111
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
110
112
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -186,7 +188,7 @@ module RusticiSoftwareCloudV2
|
|
|
186
188
|
# @return [Hash] Returns the value in the form of hash
|
|
187
189
|
def _to_hash(value)
|
|
188
190
|
if value.is_a?(Array)
|
|
189
|
-
value.compact.map
|
|
191
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
190
192
|
elsif value.is_a?(Hash)
|
|
191
193
|
{}.tap do |hash|
|
|
192
194
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -197,5 +199,7 @@ module RusticiSoftwareCloudV2
|
|
|
197
199
|
value
|
|
198
200
|
end
|
|
199
201
|
end
|
|
202
|
+
|
|
200
203
|
end
|
|
204
|
+
|
|
201
205
|
end
|
|
@@ -3,20 +3,21 @@
|
|
|
3
3
|
|
|
4
4
|
#REST API used for SCORM Cloud integrations.
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 2.0
|
|
6
|
+
OpenAPI spec version: 2.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 2.4.3
|
|
10
9
|
|
|
11
10
|
=end
|
|
12
11
|
|
|
13
12
|
require 'date'
|
|
14
13
|
|
|
15
14
|
module RusticiSoftwareCloudV2
|
|
15
|
+
|
|
16
16
|
class CompletionAmountSchema
|
|
17
17
|
# Scaled completion amount between 0 and 100
|
|
18
18
|
attr_accessor :scaled
|
|
19
19
|
|
|
20
|
+
|
|
20
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
22
|
def self.attribute_map
|
|
22
23
|
{
|
|
@@ -37,24 +38,25 @@ module RusticiSoftwareCloudV2
|
|
|
37
38
|
return unless attributes.is_a?(Hash)
|
|
38
39
|
|
|
39
40
|
# convert string to symbol for hash key
|
|
40
|
-
attributes = attributes.each_with_object({})
|
|
41
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
41
42
|
|
|
42
43
|
if attributes.has_key?(:'scaled')
|
|
43
44
|
self.scaled = attributes[:'scaled']
|
|
44
45
|
end
|
|
46
|
+
|
|
45
47
|
end
|
|
46
48
|
|
|
47
49
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
48
|
-
# @return Array for valid
|
|
50
|
+
# @return Array for valid properies with the reasons
|
|
49
51
|
def list_invalid_properties
|
|
50
52
|
invalid_properties = Array.new
|
|
51
|
-
invalid_properties
|
|
53
|
+
return invalid_properties
|
|
52
54
|
end
|
|
53
55
|
|
|
54
56
|
# Check to see if the all the properties in the model are valid
|
|
55
57
|
# @return true if the model is valid
|
|
56
58
|
def valid?
|
|
57
|
-
true
|
|
59
|
+
return true
|
|
58
60
|
end
|
|
59
61
|
|
|
60
62
|
# Checks equality by comparing each attribute.
|
|
@@ -87,7 +89,7 @@ module RusticiSoftwareCloudV2
|
|
|
87
89
|
# check to ensure the input is an array given that the the attribute
|
|
88
90
|
# is documented as an array but the input is not
|
|
89
91
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
90
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map
|
|
92
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
91
93
|
end
|
|
92
94
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
93
95
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -169,7 +171,7 @@ module RusticiSoftwareCloudV2
|
|
|
169
171
|
# @return [Hash] Returns the value in the form of hash
|
|
170
172
|
def _to_hash(value)
|
|
171
173
|
if value.is_a?(Array)
|
|
172
|
-
value.compact.map
|
|
174
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
173
175
|
elsif value.is_a?(Hash)
|
|
174
176
|
{}.tap do |hash|
|
|
175
177
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -180,5 +182,7 @@ module RusticiSoftwareCloudV2
|
|
|
180
182
|
value
|
|
181
183
|
end
|
|
182
184
|
end
|
|
185
|
+
|
|
183
186
|
end
|
|
187
|
+
|
|
184
188
|
end
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
|
|
4
4
|
#REST API used for SCORM Cloud integrations.
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 2.0
|
|
6
|
+
OpenAPI spec version: 2.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 2.4.3
|
|
10
9
|
|
|
11
10
|
=end
|
|
12
11
|
|
|
13
12
|
require 'date'
|
|
14
13
|
|
|
15
14
|
module RusticiSoftwareCloudV2
|
|
15
|
+
|
|
16
16
|
class CourseActivitySchema
|
|
17
17
|
# An arbitrary identifier that the external LMS system can associate with this LearningObject to track it as it isreused across courses
|
|
18
18
|
attr_accessor :external_identifier
|
|
@@ -93,7 +93,7 @@ module RusticiSoftwareCloudV2
|
|
|
93
93
|
return unless attributes.is_a?(Hash)
|
|
94
94
|
|
|
95
95
|
# convert string to symbol for hash key
|
|
96
|
-
attributes = attributes.each_with_object({})
|
|
96
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
97
97
|
|
|
98
98
|
if attributes.has_key?(:'externalIdentifier')
|
|
99
99
|
self.external_identifier = attributes[:'externalIdentifier']
|
|
@@ -128,29 +128,30 @@ module RusticiSoftwareCloudV2
|
|
|
128
128
|
self.children = value
|
|
129
129
|
end
|
|
130
130
|
end
|
|
131
|
+
|
|
131
132
|
end
|
|
132
133
|
|
|
133
134
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
134
|
-
# @return Array for valid
|
|
135
|
+
# @return Array for valid properies with the reasons
|
|
135
136
|
def list_invalid_properties
|
|
136
137
|
invalid_properties = Array.new
|
|
137
|
-
invalid_properties
|
|
138
|
+
return invalid_properties
|
|
138
139
|
end
|
|
139
140
|
|
|
140
141
|
# Check to see if the all the properties in the model are valid
|
|
141
142
|
# @return true if the model is valid
|
|
142
143
|
def valid?
|
|
143
|
-
activity_type_validator = EnumAttributeValidator.new('String', [
|
|
144
|
+
activity_type_validator = EnumAttributeValidator.new('String', ["UNKNOWN", "AGGREGATION", "SCO", "ASSET", "OBJECTIVE"])
|
|
144
145
|
return false unless activity_type_validator.valid?(@activity_type)
|
|
145
|
-
true
|
|
146
|
+
return true
|
|
146
147
|
end
|
|
147
148
|
|
|
148
149
|
# Custom attribute writer method checking allowed values (enum).
|
|
149
150
|
# @param [Object] activity_type Object to be assigned
|
|
150
151
|
def activity_type=(activity_type)
|
|
151
|
-
validator = EnumAttributeValidator.new('String', [
|
|
152
|
+
validator = EnumAttributeValidator.new('String', ["UNKNOWN", "AGGREGATION", "SCO", "ASSET", "OBJECTIVE"])
|
|
152
153
|
unless validator.valid?(activity_type)
|
|
153
|
-
fail ArgumentError,
|
|
154
|
+
fail ArgumentError, "invalid value for 'activity_type', must be one of #{validator.allowable_values}."
|
|
154
155
|
end
|
|
155
156
|
@activity_type = activity_type
|
|
156
157
|
end
|
|
@@ -192,7 +193,7 @@ module RusticiSoftwareCloudV2
|
|
|
192
193
|
# check to ensure the input is an array given that the the attribute
|
|
193
194
|
# is documented as an array but the input is not
|
|
194
195
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
195
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map
|
|
196
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
196
197
|
end
|
|
197
198
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
198
199
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -274,7 +275,7 @@ module RusticiSoftwareCloudV2
|
|
|
274
275
|
# @return [Hash] Returns the value in the form of hash
|
|
275
276
|
def _to_hash(value)
|
|
276
277
|
if value.is_a?(Array)
|
|
277
|
-
value.compact.map
|
|
278
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
278
279
|
elsif value.is_a?(Hash)
|
|
279
280
|
{}.tap do |hash|
|
|
280
281
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -285,5 +286,7 @@ module RusticiSoftwareCloudV2
|
|
|
285
286
|
value
|
|
286
287
|
end
|
|
287
288
|
end
|
|
289
|
+
|
|
288
290
|
end
|
|
291
|
+
|
|
289
292
|
end
|
|
@@ -3,19 +3,20 @@
|
|
|
3
3
|
|
|
4
4
|
#REST API used for SCORM Cloud integrations.
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 2.0
|
|
6
|
+
OpenAPI spec version: 2.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 2.4.3
|
|
10
9
|
|
|
11
10
|
=end
|
|
12
11
|
|
|
13
12
|
require 'date'
|
|
14
13
|
|
|
15
14
|
module RusticiSoftwareCloudV2
|
|
15
|
+
|
|
16
16
|
class CourseListNonPagedSchema
|
|
17
17
|
attr_accessor :courses
|
|
18
18
|
|
|
19
|
+
|
|
19
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
20
21
|
def self.attribute_map
|
|
21
22
|
{
|
|
@@ -36,26 +37,27 @@ module RusticiSoftwareCloudV2
|
|
|
36
37
|
return unless attributes.is_a?(Hash)
|
|
37
38
|
|
|
38
39
|
# convert string to symbol for hash key
|
|
39
|
-
attributes = attributes.each_with_object({})
|
|
40
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
40
41
|
|
|
41
42
|
if attributes.has_key?(:'courses')
|
|
42
43
|
if (value = attributes[:'courses']).is_a?(Array)
|
|
43
44
|
self.courses = value
|
|
44
45
|
end
|
|
45
46
|
end
|
|
47
|
+
|
|
46
48
|
end
|
|
47
49
|
|
|
48
50
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
49
|
-
# @return Array for valid
|
|
51
|
+
# @return Array for valid properies with the reasons
|
|
50
52
|
def list_invalid_properties
|
|
51
53
|
invalid_properties = Array.new
|
|
52
|
-
invalid_properties
|
|
54
|
+
return invalid_properties
|
|
53
55
|
end
|
|
54
56
|
|
|
55
57
|
# Check to see if the all the properties in the model are valid
|
|
56
58
|
# @return true if the model is valid
|
|
57
59
|
def valid?
|
|
58
|
-
true
|
|
60
|
+
return true
|
|
59
61
|
end
|
|
60
62
|
|
|
61
63
|
# Checks equality by comparing each attribute.
|
|
@@ -88,7 +90,7 @@ module RusticiSoftwareCloudV2
|
|
|
88
90
|
# check to ensure the input is an array given that the the attribute
|
|
89
91
|
# is documented as an array but the input is not
|
|
90
92
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
91
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map
|
|
93
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
92
94
|
end
|
|
93
95
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
94
96
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -170,7 +172,7 @@ module RusticiSoftwareCloudV2
|
|
|
170
172
|
# @return [Hash] Returns the value in the form of hash
|
|
171
173
|
def _to_hash(value)
|
|
172
174
|
if value.is_a?(Array)
|
|
173
|
-
value.compact.map
|
|
175
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
174
176
|
elsif value.is_a?(Hash)
|
|
175
177
|
{}.tap do |hash|
|
|
176
178
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -181,5 +183,7 @@ module RusticiSoftwareCloudV2
|
|
|
181
183
|
value
|
|
182
184
|
end
|
|
183
185
|
end
|
|
186
|
+
|
|
184
187
|
end
|
|
188
|
+
|
|
185
189
|
end
|
|
@@ -3,21 +3,22 @@
|
|
|
3
3
|
|
|
4
4
|
#REST API used for SCORM Cloud integrations.
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 2.0
|
|
6
|
+
OpenAPI spec version: 2.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 2.4.3
|
|
10
9
|
|
|
11
10
|
=end
|
|
12
11
|
|
|
13
12
|
require 'date'
|
|
14
13
|
|
|
15
14
|
module RusticiSoftwareCloudV2
|
|
15
|
+
|
|
16
16
|
class CourseListSchema
|
|
17
17
|
attr_accessor :courses
|
|
18
18
|
|
|
19
19
|
attr_accessor :more
|
|
20
20
|
|
|
21
|
+
|
|
21
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
23
|
def self.attribute_map
|
|
23
24
|
{
|
|
@@ -40,7 +41,7 @@ module RusticiSoftwareCloudV2
|
|
|
40
41
|
return unless attributes.is_a?(Hash)
|
|
41
42
|
|
|
42
43
|
# convert string to symbol for hash key
|
|
43
|
-
attributes = attributes.each_with_object({})
|
|
44
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
44
45
|
|
|
45
46
|
if attributes.has_key?(:'courses')
|
|
46
47
|
if (value = attributes[:'courses']).is_a?(Array)
|
|
@@ -51,19 +52,20 @@ module RusticiSoftwareCloudV2
|
|
|
51
52
|
if attributes.has_key?(:'more')
|
|
52
53
|
self.more = attributes[:'more']
|
|
53
54
|
end
|
|
55
|
+
|
|
54
56
|
end
|
|
55
57
|
|
|
56
58
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
57
|
-
# @return Array for valid
|
|
59
|
+
# @return Array for valid properies with the reasons
|
|
58
60
|
def list_invalid_properties
|
|
59
61
|
invalid_properties = Array.new
|
|
60
|
-
invalid_properties
|
|
62
|
+
return invalid_properties
|
|
61
63
|
end
|
|
62
64
|
|
|
63
65
|
# Check to see if the all the properties in the model are valid
|
|
64
66
|
# @return true if the model is valid
|
|
65
67
|
def valid?
|
|
66
|
-
true
|
|
68
|
+
return true
|
|
67
69
|
end
|
|
68
70
|
|
|
69
71
|
# Checks equality by comparing each attribute.
|
|
@@ -97,7 +99,7 @@ module RusticiSoftwareCloudV2
|
|
|
97
99
|
# check to ensure the input is an array given that the the attribute
|
|
98
100
|
# is documented as an array but the input is not
|
|
99
101
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
100
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map
|
|
102
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
101
103
|
end
|
|
102
104
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
103
105
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -179,7 +181,7 @@ module RusticiSoftwareCloudV2
|
|
|
179
181
|
# @return [Hash] Returns the value in the form of hash
|
|
180
182
|
def _to_hash(value)
|
|
181
183
|
if value.is_a?(Array)
|
|
182
|
-
value.compact.map
|
|
184
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
183
185
|
elsif value.is_a?(Hash)
|
|
184
186
|
{}.tap do |hash|
|
|
185
187
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -190,5 +192,7 @@ module RusticiSoftwareCloudV2
|
|
|
190
192
|
value
|
|
191
193
|
end
|
|
192
194
|
end
|
|
195
|
+
|
|
193
196
|
end
|
|
197
|
+
|
|
194
198
|
end
|
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
#REST API used for SCORM Cloud integrations.
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 2.0
|
|
6
|
+
OpenAPI spec version: 2.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 2.4.3
|
|
10
9
|
|
|
11
10
|
=end
|
|
12
11
|
|
|
@@ -21,6 +20,7 @@ module RusticiSoftwareCloudV2
|
|
|
21
20
|
|
|
22
21
|
attr_accessor :version
|
|
23
22
|
|
|
23
|
+
|
|
24
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
25
|
def self.attribute_map
|
|
26
26
|
{
|
|
@@ -45,7 +45,7 @@ module RusticiSoftwareCloudV2
|
|
|
45
45
|
return unless attributes.is_a?(Hash)
|
|
46
46
|
|
|
47
47
|
# convert string to symbol for hash key
|
|
48
|
-
attributes = attributes.each_with_object({})
|
|
48
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
49
49
|
|
|
50
50
|
if attributes.has_key?(:'id')
|
|
51
51
|
self.id = attributes[:'id']
|
|
@@ -58,19 +58,20 @@ module RusticiSoftwareCloudV2
|
|
|
58
58
|
if attributes.has_key?(:'version')
|
|
59
59
|
self.version = attributes[:'version']
|
|
60
60
|
end
|
|
61
|
+
|
|
61
62
|
end
|
|
62
63
|
|
|
63
64
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
64
|
-
# @return Array for valid
|
|
65
|
+
# @return Array for valid properies with the reasons
|
|
65
66
|
def list_invalid_properties
|
|
66
67
|
invalid_properties = Array.new
|
|
67
|
-
invalid_properties
|
|
68
|
+
return invalid_properties
|
|
68
69
|
end
|
|
69
70
|
|
|
70
71
|
# Check to see if the all the properties in the model are valid
|
|
71
72
|
# @return true if the model is valid
|
|
72
73
|
def valid?
|
|
73
|
-
true
|
|
74
|
+
return true
|
|
74
75
|
end
|
|
75
76
|
|
|
76
77
|
# Checks equality by comparing each attribute.
|
|
@@ -105,7 +106,7 @@ module RusticiSoftwareCloudV2
|
|
|
105
106
|
# check to ensure the input is an array given that the the attribute
|
|
106
107
|
# is documented as an array but the input is not
|
|
107
108
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
108
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map
|
|
109
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
109
110
|
end
|
|
110
111
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
111
112
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -187,7 +188,7 @@ module RusticiSoftwareCloudV2
|
|
|
187
188
|
# @return [Hash] Returns the value in the form of hash
|
|
188
189
|
def _to_hash(value)
|
|
189
190
|
if value.is_a?(Array)
|
|
190
|
-
value.compact.map
|
|
191
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
191
192
|
elsif value.is_a?(Hash)
|
|
192
193
|
{}.tap do |hash|
|
|
193
194
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -198,5 +199,7 @@ module RusticiSoftwareCloudV2
|
|
|
198
199
|
value
|
|
199
200
|
end
|
|
200
201
|
end
|
|
202
|
+
|
|
201
203
|
end
|
|
204
|
+
|
|
202
205
|
end
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
|
|
4
4
|
#REST API used for SCORM Cloud integrations.
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 2.0
|
|
6
|
+
OpenAPI spec version: 2.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 2.4.3
|
|
10
9
|
|
|
11
10
|
=end
|
|
12
11
|
|
|
13
12
|
require 'date'
|
|
14
13
|
|
|
15
14
|
module RusticiSoftwareCloudV2
|
|
15
|
+
|
|
16
16
|
class CourseSchema
|
|
17
17
|
attr_accessor :id
|
|
18
18
|
|
|
@@ -107,7 +107,7 @@ module RusticiSoftwareCloudV2
|
|
|
107
107
|
return unless attributes.is_a?(Hash)
|
|
108
108
|
|
|
109
109
|
# convert string to symbol for hash key
|
|
110
|
-
attributes = attributes.each_with_object({})
|
|
110
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
111
111
|
|
|
112
112
|
if attributes.has_key?(:'id')
|
|
113
113
|
self.id = attributes[:'id']
|
|
@@ -162,29 +162,30 @@ module RusticiSoftwareCloudV2
|
|
|
162
162
|
if attributes.has_key?(:'rootActivity')
|
|
163
163
|
self.root_activity = attributes[:'rootActivity']
|
|
164
164
|
end
|
|
165
|
+
|
|
165
166
|
end
|
|
166
167
|
|
|
167
168
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
168
|
-
# @return Array for valid
|
|
169
|
+
# @return Array for valid properies with the reasons
|
|
169
170
|
def list_invalid_properties
|
|
170
171
|
invalid_properties = Array.new
|
|
171
|
-
invalid_properties
|
|
172
|
+
return invalid_properties
|
|
172
173
|
end
|
|
173
174
|
|
|
174
175
|
# Check to see if the all the properties in the model are valid
|
|
175
176
|
# @return true if the model is valid
|
|
176
177
|
def valid?
|
|
177
|
-
course_learning_standard_validator = EnumAttributeValidator.new('String', [
|
|
178
|
+
course_learning_standard_validator = EnumAttributeValidator.new('String', ["UNKNOWN", "SCORM11", "SCORM12", "SCORM20042NDEDITION", "SCORM20043RDEDITION", "SCORM20044THEDITION", "AICC", "XAPI", "CMI5"])
|
|
178
179
|
return false unless course_learning_standard_validator.valid?(@course_learning_standard)
|
|
179
|
-
true
|
|
180
|
+
return true
|
|
180
181
|
end
|
|
181
182
|
|
|
182
183
|
# Custom attribute writer method checking allowed values (enum).
|
|
183
184
|
# @param [Object] course_learning_standard Object to be assigned
|
|
184
185
|
def course_learning_standard=(course_learning_standard)
|
|
185
|
-
validator = EnumAttributeValidator.new('String', [
|
|
186
|
+
validator = EnumAttributeValidator.new('String', ["UNKNOWN", "SCORM11", "SCORM12", "SCORM20042NDEDITION", "SCORM20043RDEDITION", "SCORM20044THEDITION", "AICC", "XAPI", "CMI5"])
|
|
186
187
|
unless validator.valid?(course_learning_standard)
|
|
187
|
-
fail ArgumentError,
|
|
188
|
+
fail ArgumentError, "invalid value for 'course_learning_standard', must be one of #{validator.allowable_values}."
|
|
188
189
|
end
|
|
189
190
|
@course_learning_standard = course_learning_standard
|
|
190
191
|
end
|
|
@@ -231,7 +232,7 @@ module RusticiSoftwareCloudV2
|
|
|
231
232
|
# check to ensure the input is an array given that the the attribute
|
|
232
233
|
# is documented as an array but the input is not
|
|
233
234
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
234
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map
|
|
235
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
235
236
|
end
|
|
236
237
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
237
238
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -313,7 +314,7 @@ module RusticiSoftwareCloudV2
|
|
|
313
314
|
# @return [Hash] Returns the value in the form of hash
|
|
314
315
|
def _to_hash(value)
|
|
315
316
|
if value.is_a?(Array)
|
|
316
|
-
value.compact.map
|
|
317
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
317
318
|
elsif value.is_a?(Hash)
|
|
318
319
|
{}.tap do |hash|
|
|
319
320
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -324,5 +325,7 @@ module RusticiSoftwareCloudV2
|
|
|
324
325
|
value
|
|
325
326
|
end
|
|
326
327
|
end
|
|
328
|
+
|
|
327
329
|
end
|
|
330
|
+
|
|
328
331
|
end
|