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