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,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 MessageSchema
|
17
17
|
attr_accessor :message
|
18
18
|
|
19
|
+
|
19
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
21
|
def self.attribute_map
|
21
22
|
{
|
@@ -36,29 +37,30 @@ 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?(:'message')
|
42
43
|
self.message = attributes[:'message']
|
43
44
|
end
|
45
|
+
|
44
46
|
end
|
45
47
|
|
46
48
|
# Show invalid properties with the reasons. Usually used together with valid?
|
47
|
-
# @return Array for valid
|
49
|
+
# @return Array for valid properies with the reasons
|
48
50
|
def list_invalid_properties
|
49
51
|
invalid_properties = Array.new
|
50
52
|
if @message.nil?
|
51
|
-
invalid_properties.push(
|
53
|
+
invalid_properties.push("invalid value for 'message', message cannot be nil.")
|
52
54
|
end
|
53
55
|
|
54
|
-
invalid_properties
|
56
|
+
return invalid_properties
|
55
57
|
end
|
56
58
|
|
57
59
|
# Check to see if the all the properties in the model are valid
|
58
60
|
# @return true if the model is valid
|
59
61
|
def valid?
|
60
62
|
return false if @message.nil?
|
61
|
-
true
|
63
|
+
return true
|
62
64
|
end
|
63
65
|
|
64
66
|
# Checks equality by comparing each attribute.
|
@@ -91,7 +93,7 @@ module RusticiSoftwareCloudV2
|
|
91
93
|
# check to ensure the input is an array given that the the attribute
|
92
94
|
# is documented as an array but the input is not
|
93
95
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
94
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map
|
96
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
95
97
|
end
|
96
98
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
97
99
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -173,7 +175,7 @@ module RusticiSoftwareCloudV2
|
|
173
175
|
# @return [Hash] Returns the value in the form of hash
|
174
176
|
def _to_hash(value)
|
175
177
|
if value.is_a?(Array)
|
176
|
-
value.compact.map
|
178
|
+
value.compact.map{ |v| _to_hash(v) }
|
177
179
|
elsif value.is_a?(Hash)
|
178
180
|
{}.tap do |hash|
|
179
181
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -184,5 +186,7 @@ module RusticiSoftwareCloudV2
|
|
184
186
|
value
|
185
187
|
end
|
186
188
|
end
|
189
|
+
|
187
190
|
end
|
191
|
+
|
188
192
|
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 MetadataSchema
|
17
17
|
attr_accessor :title
|
18
18
|
|
@@ -28,6 +28,7 @@ module RusticiSoftwareCloudV2
|
|
28
28
|
|
29
29
|
attr_accessor :keywords
|
30
30
|
|
31
|
+
|
31
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
32
33
|
def self.attribute_map
|
33
34
|
{
|
@@ -60,7 +61,7 @@ module RusticiSoftwareCloudV2
|
|
60
61
|
return unless attributes.is_a?(Hash)
|
61
62
|
|
62
63
|
# convert string to symbol for hash key
|
63
|
-
attributes = attributes.each_with_object({})
|
64
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
64
65
|
|
65
66
|
if attributes.has_key?(:'title')
|
66
67
|
self.title = attributes[:'title']
|
@@ -91,19 +92,20 @@ module RusticiSoftwareCloudV2
|
|
91
92
|
self.keywords = value
|
92
93
|
end
|
93
94
|
end
|
95
|
+
|
94
96
|
end
|
95
97
|
|
96
98
|
# Show invalid properties with the reasons. Usually used together with valid?
|
97
|
-
# @return Array for valid
|
99
|
+
# @return Array for valid properies with the reasons
|
98
100
|
def list_invalid_properties
|
99
101
|
invalid_properties = Array.new
|
100
|
-
invalid_properties
|
102
|
+
return invalid_properties
|
101
103
|
end
|
102
104
|
|
103
105
|
# Check to see if the all the properties in the model are valid
|
104
106
|
# @return true if the model is valid
|
105
107
|
def valid?
|
106
|
-
true
|
108
|
+
return true
|
107
109
|
end
|
108
110
|
|
109
111
|
# Checks equality by comparing each attribute.
|
@@ -142,7 +144,7 @@ module RusticiSoftwareCloudV2
|
|
142
144
|
# check to ensure the input is an array given that the the attribute
|
143
145
|
# is documented as an array but the input is not
|
144
146
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
145
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map
|
147
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
146
148
|
end
|
147
149
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
148
150
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -224,7 +226,7 @@ module RusticiSoftwareCloudV2
|
|
224
226
|
# @return [Hash] Returns the value in the form of hash
|
225
227
|
def _to_hash(value)
|
226
228
|
if value.is_a?(Array)
|
227
|
-
value.compact.map
|
229
|
+
value.compact.map{ |v| _to_hash(v) }
|
228
230
|
elsif value.is_a?(Hash)
|
229
231
|
{}.tap do |hash|
|
230
232
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -235,5 +237,7 @@ module RusticiSoftwareCloudV2
|
|
235
237
|
value
|
236
238
|
end
|
237
239
|
end
|
240
|
+
|
238
241
|
end
|
242
|
+
|
239
243
|
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 ObjectiveSchema
|
17
17
|
attr_accessor :id
|
18
18
|
|
@@ -106,7 +106,7 @@ module RusticiSoftwareCloudV2
|
|
106
106
|
return unless attributes.is_a?(Hash)
|
107
107
|
|
108
108
|
# convert string to symbol for hash key
|
109
|
-
attributes = attributes.each_with_object({})
|
109
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
110
110
|
|
111
111
|
if attributes.has_key?(:'id')
|
112
112
|
self.id = attributes[:'id']
|
@@ -151,47 +151,48 @@ module RusticiSoftwareCloudV2
|
|
151
151
|
if attributes.has_key?(:'objectiveCompletion')
|
152
152
|
self.objective_completion = attributes[:'objectiveCompletion']
|
153
153
|
else
|
154
|
-
self.objective_completion =
|
154
|
+
self.objective_completion = "UNKNOWN"
|
155
155
|
end
|
156
156
|
|
157
157
|
if attributes.has_key?(:'objectiveSuccess')
|
158
158
|
self.objective_success = attributes[:'objectiveSuccess']
|
159
159
|
else
|
160
|
-
self.objective_success =
|
160
|
+
self.objective_success = "UNKNOWN"
|
161
161
|
end
|
162
162
|
|
163
163
|
if attributes.has_key?(:'previousObjectiveSuccess')
|
164
164
|
self.previous_objective_success = attributes[:'previousObjectiveSuccess']
|
165
165
|
else
|
166
|
-
self.previous_objective_success =
|
166
|
+
self.previous_objective_success = "UNKNOWN"
|
167
167
|
end
|
168
|
+
|
168
169
|
end
|
169
170
|
|
170
171
|
# Show invalid properties with the reasons. Usually used together with valid?
|
171
|
-
# @return Array for valid
|
172
|
+
# @return Array for valid properies with the reasons
|
172
173
|
def list_invalid_properties
|
173
174
|
invalid_properties = Array.new
|
174
|
-
invalid_properties
|
175
|
+
return invalid_properties
|
175
176
|
end
|
176
177
|
|
177
178
|
# Check to see if the all the properties in the model are valid
|
178
179
|
# @return true if the model is valid
|
179
180
|
def valid?
|
180
|
-
objective_completion_validator = EnumAttributeValidator.new('String', [
|
181
|
+
objective_completion_validator = EnumAttributeValidator.new('String', ["UNKNOWN", "COMPLETED", "INCOMPLETE"])
|
181
182
|
return false unless objective_completion_validator.valid?(@objective_completion)
|
182
|
-
objective_success_validator = EnumAttributeValidator.new('String', [
|
183
|
+
objective_success_validator = EnumAttributeValidator.new('String', ["UNKNOWN", "PASSED", "FAILED"])
|
183
184
|
return false unless objective_success_validator.valid?(@objective_success)
|
184
|
-
previous_objective_success_validator = EnumAttributeValidator.new('String', [
|
185
|
+
previous_objective_success_validator = EnumAttributeValidator.new('String', ["UNKNOWN", "PASSED", "FAILED"])
|
185
186
|
return false unless previous_objective_success_validator.valid?(@previous_objective_success)
|
186
|
-
true
|
187
|
+
return true
|
187
188
|
end
|
188
189
|
|
189
190
|
# Custom attribute writer method checking allowed values (enum).
|
190
191
|
# @param [Object] objective_completion Object to be assigned
|
191
192
|
def objective_completion=(objective_completion)
|
192
|
-
validator = EnumAttributeValidator.new('String', [
|
193
|
+
validator = EnumAttributeValidator.new('String', ["UNKNOWN", "COMPLETED", "INCOMPLETE"])
|
193
194
|
unless validator.valid?(objective_completion)
|
194
|
-
fail ArgumentError,
|
195
|
+
fail ArgumentError, "invalid value for 'objective_completion', must be one of #{validator.allowable_values}."
|
195
196
|
end
|
196
197
|
@objective_completion = objective_completion
|
197
198
|
end
|
@@ -199,9 +200,9 @@ module RusticiSoftwareCloudV2
|
|
199
200
|
# Custom attribute writer method checking allowed values (enum).
|
200
201
|
# @param [Object] objective_success Object to be assigned
|
201
202
|
def objective_success=(objective_success)
|
202
|
-
validator = EnumAttributeValidator.new('String', [
|
203
|
+
validator = EnumAttributeValidator.new('String', ["UNKNOWN", "PASSED", "FAILED"])
|
203
204
|
unless validator.valid?(objective_success)
|
204
|
-
fail ArgumentError,
|
205
|
+
fail ArgumentError, "invalid value for 'objective_success', must be one of #{validator.allowable_values}."
|
205
206
|
end
|
206
207
|
@objective_success = objective_success
|
207
208
|
end
|
@@ -209,9 +210,9 @@ module RusticiSoftwareCloudV2
|
|
209
210
|
# Custom attribute writer method checking allowed values (enum).
|
210
211
|
# @param [Object] previous_objective_success Object to be assigned
|
211
212
|
def previous_objective_success=(previous_objective_success)
|
212
|
-
validator = EnumAttributeValidator.new('String', [
|
213
|
+
validator = EnumAttributeValidator.new('String', ["UNKNOWN", "PASSED", "FAILED"])
|
213
214
|
unless validator.valid?(previous_objective_success)
|
214
|
-
fail ArgumentError,
|
215
|
+
fail ArgumentError, "invalid value for 'previous_objective_success', must be one of #{validator.allowable_values}."
|
215
216
|
end
|
216
217
|
@previous_objective_success = previous_objective_success
|
217
218
|
end
|
@@ -258,7 +259,7 @@ module RusticiSoftwareCloudV2
|
|
258
259
|
# check to ensure the input is an array given that the the attribute
|
259
260
|
# is documented as an array but the input is not
|
260
261
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
261
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map
|
262
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
262
263
|
end
|
263
264
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
264
265
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -340,7 +341,7 @@ module RusticiSoftwareCloudV2
|
|
340
341
|
# @return [Hash] Returns the value in the form of hash
|
341
342
|
def _to_hash(value)
|
342
343
|
if value.is_a?(Array)
|
343
|
-
value.compact.map
|
344
|
+
value.compact.map{ |v| _to_hash(v) }
|
344
345
|
elsif value.is_a?(Hash)
|
345
346
|
{}.tap do |hash|
|
346
347
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -351,5 +352,7 @@ module RusticiSoftwareCloudV2
|
|
351
352
|
value
|
352
353
|
end
|
353
354
|
end
|
355
|
+
|
354
356
|
end
|
357
|
+
|
355
358
|
end
|
@@ -3,22 +3,23 @@
|
|
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 PermissionsSchema
|
17
17
|
attr_accessor :scopes
|
18
18
|
|
19
19
|
# application these permissions apply to
|
20
20
|
attr_accessor :application_name
|
21
21
|
|
22
|
+
|
22
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
24
|
def self.attribute_map
|
24
25
|
{
|
@@ -41,7 +42,7 @@ module RusticiSoftwareCloudV2
|
|
41
42
|
return unless attributes.is_a?(Hash)
|
42
43
|
|
43
44
|
# convert string to symbol for hash key
|
44
|
-
attributes = attributes.each_with_object({})
|
45
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
45
46
|
|
46
47
|
if attributes.has_key?(:'scopes')
|
47
48
|
if (value = attributes[:'scopes']).is_a?(Array)
|
@@ -52,19 +53,20 @@ module RusticiSoftwareCloudV2
|
|
52
53
|
if attributes.has_key?(:'applicationName')
|
53
54
|
self.application_name = attributes[:'applicationName']
|
54
55
|
end
|
56
|
+
|
55
57
|
end
|
56
58
|
|
57
59
|
# Show invalid properties with the reasons. Usually used together with valid?
|
58
|
-
# @return Array for valid
|
60
|
+
# @return Array for valid properies with the reasons
|
59
61
|
def list_invalid_properties
|
60
62
|
invalid_properties = Array.new
|
61
|
-
invalid_properties
|
63
|
+
return invalid_properties
|
62
64
|
end
|
63
65
|
|
64
66
|
# Check to see if the all the properties in the model are valid
|
65
67
|
# @return true if the model is valid
|
66
68
|
def valid?
|
67
|
-
true
|
69
|
+
return true
|
68
70
|
end
|
69
71
|
|
70
72
|
# Checks equality by comparing each attribute.
|
@@ -98,7 +100,7 @@ module RusticiSoftwareCloudV2
|
|
98
100
|
# check to ensure the input is an array given that the the attribute
|
99
101
|
# is documented as an array but the input is not
|
100
102
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
101
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map
|
103
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
102
104
|
end
|
103
105
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
104
106
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -180,7 +182,7 @@ module RusticiSoftwareCloudV2
|
|
180
182
|
# @return [Hash] Returns the value in the form of hash
|
181
183
|
def _to_hash(value)
|
182
184
|
if value.is_a?(Array)
|
183
|
-
value.compact.map
|
185
|
+
value.compact.map{ |v| _to_hash(v) }
|
184
186
|
elsif value.is_a?(Hash)
|
185
187
|
{}.tap do |hash|
|
186
188
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -191,5 +193,7 @@ module RusticiSoftwareCloudV2
|
|
191
193
|
value
|
192
194
|
end
|
193
195
|
end
|
196
|
+
|
194
197
|
end
|
198
|
+
|
195
199
|
end
|
@@ -3,30 +3,35 @@
|
|
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 PingSchema
|
17
|
-
attr_accessor :
|
17
|
+
attr_accessor :api_message
|
18
|
+
|
19
|
+
attr_accessor :current_time
|
20
|
+
|
18
21
|
|
19
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
23
|
def self.attribute_map
|
21
24
|
{
|
22
|
-
:'
|
25
|
+
:'api_message' => :'apiMessage',
|
26
|
+
:'current_time' => :'currentTime'
|
23
27
|
}
|
24
28
|
end
|
25
29
|
|
26
30
|
# Attribute type mapping.
|
27
31
|
def self.swagger_types
|
28
32
|
{
|
29
|
-
:'
|
33
|
+
:'api_message' => :'String',
|
34
|
+
:'current_time' => :'String'
|
30
35
|
}
|
31
36
|
end
|
32
37
|
|
@@ -36,29 +41,29 @@ module RusticiSoftwareCloudV2
|
|
36
41
|
return unless attributes.is_a?(Hash)
|
37
42
|
|
38
43
|
# convert string to symbol for hash key
|
39
|
-
attributes = attributes.each_with_object({})
|
44
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
45
|
+
|
46
|
+
if attributes.has_key?(:'apiMessage')
|
47
|
+
self.api_message = attributes[:'apiMessage']
|
48
|
+
end
|
40
49
|
|
41
|
-
if attributes.has_key?(:'
|
42
|
-
self.
|
50
|
+
if attributes.has_key?(:'currentTime')
|
51
|
+
self.current_time = attributes[:'currentTime']
|
43
52
|
end
|
53
|
+
|
44
54
|
end
|
45
55
|
|
46
56
|
# Show invalid properties with the reasons. Usually used together with valid?
|
47
|
-
# @return Array for valid
|
57
|
+
# @return Array for valid properies with the reasons
|
48
58
|
def list_invalid_properties
|
49
59
|
invalid_properties = Array.new
|
50
|
-
|
51
|
-
invalid_properties.push('invalid value for "message", message cannot be nil.')
|
52
|
-
end
|
53
|
-
|
54
|
-
invalid_properties
|
60
|
+
return invalid_properties
|
55
61
|
end
|
56
62
|
|
57
63
|
# Check to see if the all the properties in the model are valid
|
58
64
|
# @return true if the model is valid
|
59
65
|
def valid?
|
60
|
-
return
|
61
|
-
true
|
66
|
+
return true
|
62
67
|
end
|
63
68
|
|
64
69
|
# Checks equality by comparing each attribute.
|
@@ -66,7 +71,8 @@ module RusticiSoftwareCloudV2
|
|
66
71
|
def ==(o)
|
67
72
|
return true if self.equal?(o)
|
68
73
|
self.class == o.class &&
|
69
|
-
|
74
|
+
api_message == o.api_message &&
|
75
|
+
current_time == o.current_time
|
70
76
|
end
|
71
77
|
|
72
78
|
# @see the `==` method
|
@@ -78,7 +84,7 @@ module RusticiSoftwareCloudV2
|
|
78
84
|
# Calculates hash code according to all attributes.
|
79
85
|
# @return [Fixnum] Hash code
|
80
86
|
def hash
|
81
|
-
[
|
87
|
+
[api_message, current_time].hash
|
82
88
|
end
|
83
89
|
|
84
90
|
# Builds the object from hash
|
@@ -91,7 +97,7 @@ module RusticiSoftwareCloudV2
|
|
91
97
|
# check to ensure the input is an array given that the the attribute
|
92
98
|
# is documented as an array but the input is not
|
93
99
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
94
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map
|
100
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
95
101
|
end
|
96
102
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
97
103
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -173,7 +179,7 @@ module RusticiSoftwareCloudV2
|
|
173
179
|
# @return [Hash] Returns the value in the form of hash
|
174
180
|
def _to_hash(value)
|
175
181
|
if value.is_a?(Array)
|
176
|
-
value.compact.map
|
182
|
+
value.compact.map{ |v| _to_hash(v) }
|
177
183
|
elsif value.is_a?(Hash)
|
178
184
|
{}.tap do |hash|
|
179
185
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -184,5 +190,7 @@ module RusticiSoftwareCloudV2
|
|
184
190
|
value
|
185
191
|
end
|
186
192
|
end
|
193
|
+
|
187
194
|
end
|
195
|
+
|
188
196
|
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 PostBackSchema
|
17
17
|
attr_accessor :url
|
18
18
|
|
@@ -28,6 +28,9 @@ module RusticiSoftwareCloudV2
|
|
28
28
|
# This parameter allows you to specify a level of detail in the information that is posted back while the course is being taken. It may be one of three values: 'course' (course summary), 'activity' (activity summary, or 'full' (full detail), and is set to 'course' by default. The information will be posted as xml, and the format of that xml is specified below under the method 'getRegistrationResult'
|
29
29
|
attr_accessor :results_format
|
30
30
|
|
31
|
+
# This paramenter is ONLY used for backwards compatibility with XML postback implementations. You probably shouldn't need to use this unless you're currently transitioning from the V1 api to the V2 api and already have existing XML postback logic in your application, but have not yet built out JSON postback logic. If a registration is created with the V2 api we will assume that you're expecting JSON results unless otherwise specified.
|
32
|
+
attr_accessor :legacy
|
33
|
+
|
31
34
|
class EnumAttributeValidator
|
32
35
|
attr_reader :datatype
|
33
36
|
attr_reader :allowable_values
|
@@ -57,7 +60,8 @@ module RusticiSoftwareCloudV2
|
|
57
60
|
:'auth_type' => :'authType',
|
58
61
|
:'user_name' => :'userName',
|
59
62
|
:'password' => :'password',
|
60
|
-
:'results_format' => :'resultsFormat'
|
63
|
+
:'results_format' => :'resultsFormat',
|
64
|
+
:'legacy' => :'legacy'
|
61
65
|
}
|
62
66
|
end
|
63
67
|
|
@@ -68,7 +72,8 @@ module RusticiSoftwareCloudV2
|
|
68
72
|
:'auth_type' => :'String',
|
69
73
|
:'user_name' => :'String',
|
70
74
|
:'password' => :'String',
|
71
|
-
:'results_format' => :'String'
|
75
|
+
:'results_format' => :'String',
|
76
|
+
:'legacy' => :'BOOLEAN'
|
72
77
|
}
|
73
78
|
end
|
74
79
|
|
@@ -78,7 +83,7 @@ module RusticiSoftwareCloudV2
|
|
78
83
|
return unless attributes.is_a?(Hash)
|
79
84
|
|
80
85
|
# convert string to symbol for hash key
|
81
|
-
attributes = attributes.each_with_object({})
|
86
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
82
87
|
|
83
88
|
if attributes.has_key?(:'url')
|
84
89
|
self.url = attributes[:'url']
|
@@ -87,7 +92,7 @@ module RusticiSoftwareCloudV2
|
|
87
92
|
if attributes.has_key?(:'authType')
|
88
93
|
self.auth_type = attributes[:'authType']
|
89
94
|
else
|
90
|
-
self.auth_type =
|
95
|
+
self.auth_type = "UNDEFINED"
|
91
96
|
end
|
92
97
|
|
93
98
|
if attributes.has_key?(:'userName')
|
@@ -101,33 +106,38 @@ module RusticiSoftwareCloudV2
|
|
101
106
|
if attributes.has_key?(:'resultsFormat')
|
102
107
|
self.results_format = attributes[:'resultsFormat']
|
103
108
|
else
|
104
|
-
self.results_format =
|
109
|
+
self.results_format = "UNDEFINED"
|
110
|
+
end
|
111
|
+
|
112
|
+
if attributes.has_key?(:'legacy')
|
113
|
+
self.legacy = attributes[:'legacy']
|
105
114
|
end
|
115
|
+
|
106
116
|
end
|
107
117
|
|
108
118
|
# Show invalid properties with the reasons. Usually used together with valid?
|
109
|
-
# @return Array for valid
|
119
|
+
# @return Array for valid properies with the reasons
|
110
120
|
def list_invalid_properties
|
111
121
|
invalid_properties = Array.new
|
112
|
-
invalid_properties
|
122
|
+
return invalid_properties
|
113
123
|
end
|
114
124
|
|
115
125
|
# Check to see if the all the properties in the model are valid
|
116
126
|
# @return true if the model is valid
|
117
127
|
def valid?
|
118
|
-
auth_type_validator = EnumAttributeValidator.new('String', [
|
128
|
+
auth_type_validator = EnumAttributeValidator.new('String', ["UNDEFINED", "FORM", "HTTPBASIC"])
|
119
129
|
return false unless auth_type_validator.valid?(@auth_type)
|
120
|
-
results_format_validator = EnumAttributeValidator.new('String', [
|
130
|
+
results_format_validator = EnumAttributeValidator.new('String', ["UNDEFINED", "COURSE", "ACTIVITY", "FULL"])
|
121
131
|
return false unless results_format_validator.valid?(@results_format)
|
122
|
-
true
|
132
|
+
return true
|
123
133
|
end
|
124
134
|
|
125
135
|
# Custom attribute writer method checking allowed values (enum).
|
126
136
|
# @param [Object] auth_type Object to be assigned
|
127
137
|
def auth_type=(auth_type)
|
128
|
-
validator = EnumAttributeValidator.new('String', [
|
138
|
+
validator = EnumAttributeValidator.new('String', ["UNDEFINED", "FORM", "HTTPBASIC"])
|
129
139
|
unless validator.valid?(auth_type)
|
130
|
-
fail ArgumentError,
|
140
|
+
fail ArgumentError, "invalid value for 'auth_type', must be one of #{validator.allowable_values}."
|
131
141
|
end
|
132
142
|
@auth_type = auth_type
|
133
143
|
end
|
@@ -135,9 +145,9 @@ module RusticiSoftwareCloudV2
|
|
135
145
|
# Custom attribute writer method checking allowed values (enum).
|
136
146
|
# @param [Object] results_format Object to be assigned
|
137
147
|
def results_format=(results_format)
|
138
|
-
validator = EnumAttributeValidator.new('String', [
|
148
|
+
validator = EnumAttributeValidator.new('String', ["UNDEFINED", "COURSE", "ACTIVITY", "FULL"])
|
139
149
|
unless validator.valid?(results_format)
|
140
|
-
fail ArgumentError,
|
150
|
+
fail ArgumentError, "invalid value for 'results_format', must be one of #{validator.allowable_values}."
|
141
151
|
end
|
142
152
|
@results_format = results_format
|
143
153
|
end
|
@@ -151,7 +161,8 @@ module RusticiSoftwareCloudV2
|
|
151
161
|
auth_type == o.auth_type &&
|
152
162
|
user_name == o.user_name &&
|
153
163
|
password == o.password &&
|
154
|
-
results_format == o.results_format
|
164
|
+
results_format == o.results_format &&
|
165
|
+
legacy == o.legacy
|
155
166
|
end
|
156
167
|
|
157
168
|
# @see the `==` method
|
@@ -163,7 +174,7 @@ module RusticiSoftwareCloudV2
|
|
163
174
|
# Calculates hash code according to all attributes.
|
164
175
|
# @return [Fixnum] Hash code
|
165
176
|
def hash
|
166
|
-
[url, auth_type, user_name, password, results_format].hash
|
177
|
+
[url, auth_type, user_name, password, results_format, legacy].hash
|
167
178
|
end
|
168
179
|
|
169
180
|
# Builds the object from hash
|
@@ -176,7 +187,7 @@ module RusticiSoftwareCloudV2
|
|
176
187
|
# check to ensure the input is an array given that the the attribute
|
177
188
|
# is documented as an array but the input is not
|
178
189
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
179
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map
|
190
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
180
191
|
end
|
181
192
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
182
193
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -258,7 +269,7 @@ module RusticiSoftwareCloudV2
|
|
258
269
|
# @return [Hash] Returns the value in the form of hash
|
259
270
|
def _to_hash(value)
|
260
271
|
if value.is_a?(Array)
|
261
|
-
value.compact.map
|
272
|
+
value.compact.map{ |v| _to_hash(v) }
|
262
273
|
elsif value.is_a?(Hash)
|
263
274
|
{}.tap do |hash|
|
264
275
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -269,5 +280,7 @@ module RusticiSoftwareCloudV2
|
|
269
280
|
value
|
270
281
|
end
|
271
282
|
end
|
283
|
+
|
272
284
|
end
|
285
|
+
|
273
286
|
end
|