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
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#SCORM Cloud Rest API
|
|
3
|
+
|
|
4
|
+
#REST API used for SCORM Cloud integrations.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'date'
|
|
13
|
+
|
|
14
|
+
module RusticiSoftwareCloudV2
|
|
15
|
+
|
|
16
|
+
class ReportageLinkSchema
|
|
17
|
+
attr_accessor :reportage_link
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
|
+
def self.attribute_map
|
|
22
|
+
{
|
|
23
|
+
:'reportage_link' => :'reportageLink'
|
|
24
|
+
}
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# Attribute type mapping.
|
|
28
|
+
def self.swagger_types
|
|
29
|
+
{
|
|
30
|
+
:'reportage_link' => :'String'
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Initializes the object
|
|
35
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
36
|
+
def initialize(attributes = {})
|
|
37
|
+
return unless attributes.is_a?(Hash)
|
|
38
|
+
|
|
39
|
+
# convert string to symbol for hash key
|
|
40
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
41
|
+
|
|
42
|
+
if attributes.has_key?(:'reportageLink')
|
|
43
|
+
self.reportage_link = attributes[:'reportageLink']
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
49
|
+
# @return Array for valid properies with the reasons
|
|
50
|
+
def list_invalid_properties
|
|
51
|
+
invalid_properties = Array.new
|
|
52
|
+
return invalid_properties
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Check to see if the all the properties in the model are valid
|
|
56
|
+
# @return true if the model is valid
|
|
57
|
+
def valid?
|
|
58
|
+
return true
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Checks equality by comparing each attribute.
|
|
62
|
+
# @param [Object] Object to be compared
|
|
63
|
+
def ==(o)
|
|
64
|
+
return true if self.equal?(o)
|
|
65
|
+
self.class == o.class &&
|
|
66
|
+
reportage_link == o.reportage_link
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# @see the `==` method
|
|
70
|
+
# @param [Object] Object to be compared
|
|
71
|
+
def eql?(o)
|
|
72
|
+
self == o
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Calculates hash code according to all attributes.
|
|
76
|
+
# @return [Fixnum] Hash code
|
|
77
|
+
def hash
|
|
78
|
+
[reportage_link].hash
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Builds the object from hash
|
|
82
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
83
|
+
# @return [Object] Returns the model itself
|
|
84
|
+
def build_from_hash(attributes)
|
|
85
|
+
return nil unless attributes.is_a?(Hash)
|
|
86
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
87
|
+
if type =~ /\AArray<(.*)>/i
|
|
88
|
+
# check to ensure the input is an array given that the the attribute
|
|
89
|
+
# is documented as an array but the input is not
|
|
90
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
91
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
92
|
+
end
|
|
93
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
94
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
95
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
self
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Deserializes the data based on type
|
|
102
|
+
# @param string type Data type
|
|
103
|
+
# @param string value Value to be deserialized
|
|
104
|
+
# @return [Object] Deserialized data
|
|
105
|
+
def _deserialize(type, value)
|
|
106
|
+
case type.to_sym
|
|
107
|
+
when :DateTime
|
|
108
|
+
DateTime.parse(value)
|
|
109
|
+
when :Date
|
|
110
|
+
Date.parse(value)
|
|
111
|
+
when :String
|
|
112
|
+
value.to_s
|
|
113
|
+
when :Integer
|
|
114
|
+
value.to_i
|
|
115
|
+
when :Float
|
|
116
|
+
value.to_f
|
|
117
|
+
when :BOOLEAN
|
|
118
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
119
|
+
true
|
|
120
|
+
else
|
|
121
|
+
false
|
|
122
|
+
end
|
|
123
|
+
when :Object
|
|
124
|
+
# generic object (usually a Hash), return directly
|
|
125
|
+
value
|
|
126
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
127
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
128
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
129
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
130
|
+
k_type = Regexp.last_match[:k_type]
|
|
131
|
+
v_type = Regexp.last_match[:v_type]
|
|
132
|
+
{}.tap do |hash|
|
|
133
|
+
value.each do |k, v|
|
|
134
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
else # model
|
|
138
|
+
temp_model = RusticiSoftwareCloudV2.const_get(type).new
|
|
139
|
+
temp_model.build_from_hash(value)
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Returns the string representation of the object
|
|
144
|
+
# @return [String] String presentation of the object
|
|
145
|
+
def to_s
|
|
146
|
+
to_hash.to_s
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
150
|
+
# @return [Hash] Returns the object in the form of hash
|
|
151
|
+
def to_body
|
|
152
|
+
to_hash
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Returns the object in the form of hash
|
|
156
|
+
# @return [Hash] Returns the object in the form of hash
|
|
157
|
+
def to_hash
|
|
158
|
+
hash = {}
|
|
159
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
160
|
+
value = self.send(attr)
|
|
161
|
+
next if value.nil?
|
|
162
|
+
hash[param] = _to_hash(value)
|
|
163
|
+
end
|
|
164
|
+
hash
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
# Outputs non-array value in the form of hash
|
|
168
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
169
|
+
# @param [Object] value Any valid value
|
|
170
|
+
# @return [Hash] Returns the value in the form of hash
|
|
171
|
+
def _to_hash(value)
|
|
172
|
+
if value.is_a?(Array)
|
|
173
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
174
|
+
elsif value.is_a?(Hash)
|
|
175
|
+
{}.tap do |hash|
|
|
176
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
177
|
+
end
|
|
178
|
+
elsif value.respond_to? :to_hash
|
|
179
|
+
value.to_hash
|
|
180
|
+
else
|
|
181
|
+
value
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
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 ResponseError
|
|
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 RuntimeInteractionSchema
|
|
17
17
|
attr_accessor :id
|
|
18
18
|
|
|
@@ -98,7 +98,7 @@ module RusticiSoftwareCloudV2
|
|
|
98
98
|
return unless attributes.is_a?(Hash)
|
|
99
99
|
|
|
100
100
|
# convert string to symbol for hash key
|
|
101
|
-
attributes = attributes.each_with_object({})
|
|
101
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
102
102
|
|
|
103
103
|
if attributes.has_key?(:'id')
|
|
104
104
|
self.id = attributes[:'id']
|
|
@@ -147,29 +147,30 @@ module RusticiSoftwareCloudV2
|
|
|
147
147
|
if attributes.has_key?(:'description')
|
|
148
148
|
self.description = attributes[:'description']
|
|
149
149
|
end
|
|
150
|
+
|
|
150
151
|
end
|
|
151
152
|
|
|
152
153
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
153
|
-
# @return Array for valid
|
|
154
|
+
# @return Array for valid properies with the reasons
|
|
154
155
|
def list_invalid_properties
|
|
155
156
|
invalid_properties = Array.new
|
|
156
|
-
invalid_properties
|
|
157
|
+
return invalid_properties
|
|
157
158
|
end
|
|
158
159
|
|
|
159
160
|
# Check to see if the all the properties in the model are valid
|
|
160
161
|
# @return true if the model is valid
|
|
161
162
|
def valid?
|
|
162
|
-
type_validator = EnumAttributeValidator.new('String', [
|
|
163
|
+
type_validator = EnumAttributeValidator.new('String', ["TrueFalse", "Choice", "FillIn", "LongFillIn", "Likert", "Matching", "Performance", "Sequencing", "Numeric", "Other"])
|
|
163
164
|
return false unless type_validator.valid?(@type)
|
|
164
|
-
true
|
|
165
|
+
return true
|
|
165
166
|
end
|
|
166
167
|
|
|
167
168
|
# Custom attribute writer method checking allowed values (enum).
|
|
168
169
|
# @param [Object] type Object to be assigned
|
|
169
170
|
def type=(type)
|
|
170
|
-
validator = EnumAttributeValidator.new('String', [
|
|
171
|
+
validator = EnumAttributeValidator.new('String', ["TrueFalse", "Choice", "FillIn", "LongFillIn", "Likert", "Matching", "Performance", "Sequencing", "Numeric", "Other"])
|
|
171
172
|
unless validator.valid?(type)
|
|
172
|
-
fail ArgumentError,
|
|
173
|
+
fail ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}."
|
|
173
174
|
end
|
|
174
175
|
@type = type
|
|
175
176
|
end
|
|
@@ -214,7 +215,7 @@ module RusticiSoftwareCloudV2
|
|
|
214
215
|
# check to ensure the input is an array given that the the attribute
|
|
215
216
|
# is documented as an array but the input is not
|
|
216
217
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
217
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map
|
|
218
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
218
219
|
end
|
|
219
220
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
220
221
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -296,7 +297,7 @@ module RusticiSoftwareCloudV2
|
|
|
296
297
|
# @return [Hash] Returns the value in the form of hash
|
|
297
298
|
def _to_hash(value)
|
|
298
299
|
if value.is_a?(Array)
|
|
299
|
-
value.compact.map
|
|
300
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
300
301
|
elsif value.is_a?(Hash)
|
|
301
302
|
{}.tap do |hash|
|
|
302
303
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -307,5 +308,7 @@ module RusticiSoftwareCloudV2
|
|
|
307
308
|
value
|
|
308
309
|
end
|
|
309
310
|
end
|
|
311
|
+
|
|
310
312
|
end
|
|
313
|
+
|
|
311
314
|
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 RuntimeObjectiveSchema
|
|
17
17
|
attr_accessor :id
|
|
18
18
|
|
|
@@ -90,7 +90,7 @@ module RusticiSoftwareCloudV2
|
|
|
90
90
|
return unless attributes.is_a?(Hash)
|
|
91
91
|
|
|
92
92
|
# convert string to symbol for hash key
|
|
93
|
-
attributes = attributes.each_with_object({})
|
|
93
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
94
94
|
|
|
95
95
|
if attributes.has_key?(:'id')
|
|
96
96
|
self.id = attributes[:'id']
|
|
@@ -115,13 +115,13 @@ module RusticiSoftwareCloudV2
|
|
|
115
115
|
if attributes.has_key?(:'runtimeObjectiveSuccessStatus')
|
|
116
116
|
self.runtime_objective_success_status = attributes[:'runtimeObjectiveSuccessStatus']
|
|
117
117
|
else
|
|
118
|
-
self.runtime_objective_success_status =
|
|
118
|
+
self.runtime_objective_success_status = "UNKNOWN"
|
|
119
119
|
end
|
|
120
120
|
|
|
121
121
|
if attributes.has_key?(:'runtimeObjectiveCompletionStatus')
|
|
122
122
|
self.runtime_objective_completion_status = attributes[:'runtimeObjectiveCompletionStatus']
|
|
123
123
|
else
|
|
124
|
-
self.runtime_objective_completion_status =
|
|
124
|
+
self.runtime_objective_completion_status = "UNKNOWN"
|
|
125
125
|
end
|
|
126
126
|
|
|
127
127
|
if attributes.has_key?(:'progressMeasure')
|
|
@@ -131,31 +131,32 @@ module RusticiSoftwareCloudV2
|
|
|
131
131
|
if attributes.has_key?(:'description')
|
|
132
132
|
self.description = attributes[:'description']
|
|
133
133
|
end
|
|
134
|
+
|
|
134
135
|
end
|
|
135
136
|
|
|
136
137
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
137
|
-
# @return Array for valid
|
|
138
|
+
# @return Array for valid properies with the reasons
|
|
138
139
|
def list_invalid_properties
|
|
139
140
|
invalid_properties = Array.new
|
|
140
|
-
invalid_properties
|
|
141
|
+
return invalid_properties
|
|
141
142
|
end
|
|
142
143
|
|
|
143
144
|
# Check to see if the all the properties in the model are valid
|
|
144
145
|
# @return true if the model is valid
|
|
145
146
|
def valid?
|
|
146
|
-
runtime_objective_success_status_validator = EnumAttributeValidator.new('String', [
|
|
147
|
+
runtime_objective_success_status_validator = EnumAttributeValidator.new('String', ["UNKNOWN", "PASSED", "FAILED"])
|
|
147
148
|
return false unless runtime_objective_success_status_validator.valid?(@runtime_objective_success_status)
|
|
148
|
-
runtime_objective_completion_status_validator = EnumAttributeValidator.new('String', [
|
|
149
|
+
runtime_objective_completion_status_validator = EnumAttributeValidator.new('String', ["UNKNOWN", "COMPLETED", "INCOMPLETE", "NOT_ATTEMPTED", "BROWSED"])
|
|
149
150
|
return false unless runtime_objective_completion_status_validator.valid?(@runtime_objective_completion_status)
|
|
150
|
-
true
|
|
151
|
+
return true
|
|
151
152
|
end
|
|
152
153
|
|
|
153
154
|
# Custom attribute writer method checking allowed values (enum).
|
|
154
155
|
# @param [Object] runtime_objective_success_status Object to be assigned
|
|
155
156
|
def runtime_objective_success_status=(runtime_objective_success_status)
|
|
156
|
-
validator = EnumAttributeValidator.new('String', [
|
|
157
|
+
validator = EnumAttributeValidator.new('String', ["UNKNOWN", "PASSED", "FAILED"])
|
|
157
158
|
unless validator.valid?(runtime_objective_success_status)
|
|
158
|
-
fail ArgumentError,
|
|
159
|
+
fail ArgumentError, "invalid value for 'runtime_objective_success_status', must be one of #{validator.allowable_values}."
|
|
159
160
|
end
|
|
160
161
|
@runtime_objective_success_status = runtime_objective_success_status
|
|
161
162
|
end
|
|
@@ -163,9 +164,9 @@ module RusticiSoftwareCloudV2
|
|
|
163
164
|
# Custom attribute writer method checking allowed values (enum).
|
|
164
165
|
# @param [Object] runtime_objective_completion_status Object to be assigned
|
|
165
166
|
def runtime_objective_completion_status=(runtime_objective_completion_status)
|
|
166
|
-
validator = EnumAttributeValidator.new('String', [
|
|
167
|
+
validator = EnumAttributeValidator.new('String', ["UNKNOWN", "COMPLETED", "INCOMPLETE", "NOT_ATTEMPTED", "BROWSED"])
|
|
167
168
|
unless validator.valid?(runtime_objective_completion_status)
|
|
168
|
-
fail ArgumentError,
|
|
169
|
+
fail ArgumentError, "invalid value for 'runtime_objective_completion_status', must be one of #{validator.allowable_values}."
|
|
169
170
|
end
|
|
170
171
|
@runtime_objective_completion_status = runtime_objective_completion_status
|
|
171
172
|
end
|
|
@@ -208,7 +209,7 @@ module RusticiSoftwareCloudV2
|
|
|
208
209
|
# check to ensure the input is an array given that the the attribute
|
|
209
210
|
# is documented as an array but the input is not
|
|
210
211
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
211
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map
|
|
212
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
212
213
|
end
|
|
213
214
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
214
215
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -290,7 +291,7 @@ module RusticiSoftwareCloudV2
|
|
|
290
291
|
# @return [Hash] Returns the value in the form of hash
|
|
291
292
|
def _to_hash(value)
|
|
292
293
|
if value.is_a?(Array)
|
|
293
|
-
value.compact.map
|
|
294
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
294
295
|
elsif value.is_a?(Hash)
|
|
295
296
|
{}.tap do |hash|
|
|
296
297
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -301,5 +302,7 @@ module RusticiSoftwareCloudV2
|
|
|
301
302
|
value
|
|
302
303
|
end
|
|
303
304
|
end
|
|
305
|
+
|
|
304
306
|
end
|
|
307
|
+
|
|
305
308
|
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 RuntimeSchema
|
|
17
17
|
attr_accessor :completion_status
|
|
18
18
|
|
|
@@ -134,7 +134,7 @@ module RusticiSoftwareCloudV2
|
|
|
134
134
|
return unless attributes.is_a?(Hash)
|
|
135
135
|
|
|
136
136
|
# convert string to symbol for hash key
|
|
137
|
-
attributes = attributes.each_with_object({})
|
|
137
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
138
138
|
|
|
139
139
|
if attributes.has_key?(:'completionStatus')
|
|
140
140
|
self.completion_status = attributes[:'completionStatus']
|
|
@@ -195,7 +195,7 @@ module RusticiSoftwareCloudV2
|
|
|
195
195
|
if attributes.has_key?(:'runtimeSuccessStatus')
|
|
196
196
|
self.runtime_success_status = attributes[:'runtimeSuccessStatus']
|
|
197
197
|
else
|
|
198
|
-
self.runtime_success_status =
|
|
198
|
+
self.runtime_success_status = "UNKNOWN"
|
|
199
199
|
end
|
|
200
200
|
|
|
201
201
|
if attributes.has_key?(:'suspendData')
|
|
@@ -225,29 +225,30 @@ module RusticiSoftwareCloudV2
|
|
|
225
225
|
self.runtime_objectives = value
|
|
226
226
|
end
|
|
227
227
|
end
|
|
228
|
+
|
|
228
229
|
end
|
|
229
230
|
|
|
230
231
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
231
|
-
# @return Array for valid
|
|
232
|
+
# @return Array for valid properies with the reasons
|
|
232
233
|
def list_invalid_properties
|
|
233
234
|
invalid_properties = Array.new
|
|
234
|
-
invalid_properties
|
|
235
|
+
return invalid_properties
|
|
235
236
|
end
|
|
236
237
|
|
|
237
238
|
# Check to see if the all the properties in the model are valid
|
|
238
239
|
# @return true if the model is valid
|
|
239
240
|
def valid?
|
|
240
|
-
runtime_success_status_validator = EnumAttributeValidator.new('String', [
|
|
241
|
+
runtime_success_status_validator = EnumAttributeValidator.new('String', ["UNKNOWN", "PASSED", "FAILED"])
|
|
241
242
|
return false unless runtime_success_status_validator.valid?(@runtime_success_status)
|
|
242
|
-
true
|
|
243
|
+
return true
|
|
243
244
|
end
|
|
244
245
|
|
|
245
246
|
# Custom attribute writer method checking allowed values (enum).
|
|
246
247
|
# @param [Object] runtime_success_status Object to be assigned
|
|
247
248
|
def runtime_success_status=(runtime_success_status)
|
|
248
|
-
validator = EnumAttributeValidator.new('String', [
|
|
249
|
+
validator = EnumAttributeValidator.new('String', ["UNKNOWN", "PASSED", "FAILED"])
|
|
249
250
|
unless validator.valid?(runtime_success_status)
|
|
250
|
-
fail ArgumentError,
|
|
251
|
+
fail ArgumentError, "invalid value for 'runtime_success_status', must be one of #{validator.allowable_values}."
|
|
251
252
|
end
|
|
252
253
|
@runtime_success_status = runtime_success_status
|
|
253
254
|
end
|
|
@@ -301,7 +302,7 @@ module RusticiSoftwareCloudV2
|
|
|
301
302
|
# check to ensure the input is an array given that the the attribute
|
|
302
303
|
# is documented as an array but the input is not
|
|
303
304
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
304
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map
|
|
305
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
305
306
|
end
|
|
306
307
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
307
308
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -383,7 +384,7 @@ module RusticiSoftwareCloudV2
|
|
|
383
384
|
# @return [Hash] Returns the value in the form of hash
|
|
384
385
|
def _to_hash(value)
|
|
385
386
|
if value.is_a?(Array)
|
|
386
|
-
value.compact.map
|
|
387
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
387
388
|
elsif value.is_a?(Hash)
|
|
388
389
|
{}.tap do |hash|
|
|
389
390
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -394,5 +395,7 @@ module RusticiSoftwareCloudV2
|
|
|
394
395
|
value
|
|
395
396
|
end
|
|
396
397
|
end
|
|
398
|
+
|
|
397
399
|
end
|
|
400
|
+
|
|
398
401
|
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 ScoreSchema
|
|
17
17
|
# Scaled score 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
|