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
@@ -0,0 +1,289 @@
|
|
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 PublicInvitationSchema
|
17
|
+
# The invitationId for this invitation.
|
18
|
+
attr_accessor :id
|
19
|
+
|
20
|
+
# Course Id for this Invitation.
|
21
|
+
attr_accessor :course_id
|
22
|
+
|
23
|
+
# If true, then new registrations can be created for this dispatch.
|
24
|
+
attr_accessor :allow_launch
|
25
|
+
|
26
|
+
# If true, then new registrations can be created for this dispatch.
|
27
|
+
attr_accessor :allow_new_registrations
|
28
|
+
|
29
|
+
# The launch URL for the invitation
|
30
|
+
attr_accessor :url
|
31
|
+
|
32
|
+
# The create date for the invitation
|
33
|
+
attr_accessor :create_date
|
34
|
+
|
35
|
+
attr_accessor :updated
|
36
|
+
|
37
|
+
# Specifies a URL for which to post activity and status data in real time as the course is completed
|
38
|
+
attr_accessor :post_back
|
39
|
+
|
40
|
+
# The date this invitation will expire and can not be launched (formatted yyyyMMddHHmmss in UTC time).
|
41
|
+
attr_accessor :expiration_date
|
42
|
+
|
43
|
+
# Integer value that limits the amount of registrations a public invitation can generate.
|
44
|
+
attr_accessor :registration_cap
|
45
|
+
|
46
|
+
# The count of registrations for this invitation
|
47
|
+
attr_accessor :registration_count
|
48
|
+
|
49
|
+
|
50
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
51
|
+
def self.attribute_map
|
52
|
+
{
|
53
|
+
:'id' => :'id',
|
54
|
+
:'course_id' => :'courseId',
|
55
|
+
:'allow_launch' => :'allowLaunch',
|
56
|
+
:'allow_new_registrations' => :'allowNewRegistrations',
|
57
|
+
:'url' => :'url',
|
58
|
+
:'create_date' => :'createDate',
|
59
|
+
:'updated' => :'updated',
|
60
|
+
:'post_back' => :'postBack',
|
61
|
+
:'expiration_date' => :'expirationDate',
|
62
|
+
:'registration_cap' => :'registrationCap',
|
63
|
+
:'registration_count' => :'registrationCount'
|
64
|
+
}
|
65
|
+
end
|
66
|
+
|
67
|
+
# Attribute type mapping.
|
68
|
+
def self.swagger_types
|
69
|
+
{
|
70
|
+
:'id' => :'String',
|
71
|
+
:'course_id' => :'String',
|
72
|
+
:'allow_launch' => :'BOOLEAN',
|
73
|
+
:'allow_new_registrations' => :'BOOLEAN',
|
74
|
+
:'url' => :'String',
|
75
|
+
:'create_date' => :'DateTime',
|
76
|
+
:'updated' => :'DateTime',
|
77
|
+
:'post_back' => :'PostBackSchema',
|
78
|
+
:'expiration_date' => :'DateTime',
|
79
|
+
:'registration_cap' => :'Integer',
|
80
|
+
:'registration_count' => :'Integer'
|
81
|
+
}
|
82
|
+
end
|
83
|
+
|
84
|
+
# Initializes the object
|
85
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
86
|
+
def initialize(attributes = {})
|
87
|
+
return unless attributes.is_a?(Hash)
|
88
|
+
|
89
|
+
# convert string to symbol for hash key
|
90
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
91
|
+
|
92
|
+
if attributes.has_key?(:'id')
|
93
|
+
self.id = attributes[:'id']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.has_key?(:'courseId')
|
97
|
+
self.course_id = attributes[:'courseId']
|
98
|
+
end
|
99
|
+
|
100
|
+
if attributes.has_key?(:'allowLaunch')
|
101
|
+
self.allow_launch = attributes[:'allowLaunch']
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.has_key?(:'allowNewRegistrations')
|
105
|
+
self.allow_new_registrations = attributes[:'allowNewRegistrations']
|
106
|
+
end
|
107
|
+
|
108
|
+
if attributes.has_key?(:'url')
|
109
|
+
self.url = attributes[:'url']
|
110
|
+
end
|
111
|
+
|
112
|
+
if attributes.has_key?(:'createDate')
|
113
|
+
self.create_date = attributes[:'createDate']
|
114
|
+
end
|
115
|
+
|
116
|
+
if attributes.has_key?(:'updated')
|
117
|
+
self.updated = attributes[:'updated']
|
118
|
+
end
|
119
|
+
|
120
|
+
if attributes.has_key?(:'postBack')
|
121
|
+
self.post_back = attributes[:'postBack']
|
122
|
+
end
|
123
|
+
|
124
|
+
if attributes.has_key?(:'expirationDate')
|
125
|
+
self.expiration_date = attributes[:'expirationDate']
|
126
|
+
end
|
127
|
+
|
128
|
+
if attributes.has_key?(:'registrationCap')
|
129
|
+
self.registration_cap = attributes[:'registrationCap']
|
130
|
+
else
|
131
|
+
self.registration_cap = 0
|
132
|
+
end
|
133
|
+
|
134
|
+
if attributes.has_key?(:'registrationCount')
|
135
|
+
self.registration_count = attributes[:'registrationCount']
|
136
|
+
end
|
137
|
+
|
138
|
+
end
|
139
|
+
|
140
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
141
|
+
# @return Array for valid properies with the reasons
|
142
|
+
def list_invalid_properties
|
143
|
+
invalid_properties = Array.new
|
144
|
+
return invalid_properties
|
145
|
+
end
|
146
|
+
|
147
|
+
# Check to see if the all the properties in the model are valid
|
148
|
+
# @return true if the model is valid
|
149
|
+
def valid?
|
150
|
+
return true
|
151
|
+
end
|
152
|
+
|
153
|
+
# Checks equality by comparing each attribute.
|
154
|
+
# @param [Object] Object to be compared
|
155
|
+
def ==(o)
|
156
|
+
return true if self.equal?(o)
|
157
|
+
self.class == o.class &&
|
158
|
+
id == o.id &&
|
159
|
+
course_id == o.course_id &&
|
160
|
+
allow_launch == o.allow_launch &&
|
161
|
+
allow_new_registrations == o.allow_new_registrations &&
|
162
|
+
url == o.url &&
|
163
|
+
create_date == o.create_date &&
|
164
|
+
updated == o.updated &&
|
165
|
+
post_back == o.post_back &&
|
166
|
+
expiration_date == o.expiration_date &&
|
167
|
+
registration_cap == o.registration_cap &&
|
168
|
+
registration_count == o.registration_count
|
169
|
+
end
|
170
|
+
|
171
|
+
# @see the `==` method
|
172
|
+
# @param [Object] Object to be compared
|
173
|
+
def eql?(o)
|
174
|
+
self == o
|
175
|
+
end
|
176
|
+
|
177
|
+
# Calculates hash code according to all attributes.
|
178
|
+
# @return [Fixnum] Hash code
|
179
|
+
def hash
|
180
|
+
[id, course_id, allow_launch, allow_new_registrations, url, create_date, updated, post_back, expiration_date, registration_cap, registration_count].hash
|
181
|
+
end
|
182
|
+
|
183
|
+
# Builds the object from hash
|
184
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
185
|
+
# @return [Object] Returns the model itself
|
186
|
+
def build_from_hash(attributes)
|
187
|
+
return nil unless attributes.is_a?(Hash)
|
188
|
+
self.class.swagger_types.each_pair do |key, type|
|
189
|
+
if type =~ /\AArray<(.*)>/i
|
190
|
+
# check to ensure the input is an array given that the the attribute
|
191
|
+
# is documented as an array but the input is not
|
192
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
193
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
194
|
+
end
|
195
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
196
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
197
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
198
|
+
end
|
199
|
+
|
200
|
+
self
|
201
|
+
end
|
202
|
+
|
203
|
+
# Deserializes the data based on type
|
204
|
+
# @param string type Data type
|
205
|
+
# @param string value Value to be deserialized
|
206
|
+
# @return [Object] Deserialized data
|
207
|
+
def _deserialize(type, value)
|
208
|
+
case type.to_sym
|
209
|
+
when :DateTime
|
210
|
+
DateTime.parse(value)
|
211
|
+
when :Date
|
212
|
+
Date.parse(value)
|
213
|
+
when :String
|
214
|
+
value.to_s
|
215
|
+
when :Integer
|
216
|
+
value.to_i
|
217
|
+
when :Float
|
218
|
+
value.to_f
|
219
|
+
when :BOOLEAN
|
220
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
221
|
+
true
|
222
|
+
else
|
223
|
+
false
|
224
|
+
end
|
225
|
+
when :Object
|
226
|
+
# generic object (usually a Hash), return directly
|
227
|
+
value
|
228
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
229
|
+
inner_type = Regexp.last_match[:inner_type]
|
230
|
+
value.map { |v| _deserialize(inner_type, v) }
|
231
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
232
|
+
k_type = Regexp.last_match[:k_type]
|
233
|
+
v_type = Regexp.last_match[:v_type]
|
234
|
+
{}.tap do |hash|
|
235
|
+
value.each do |k, v|
|
236
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
237
|
+
end
|
238
|
+
end
|
239
|
+
else # model
|
240
|
+
temp_model = RusticiSoftwareCloudV2.const_get(type).new
|
241
|
+
temp_model.build_from_hash(value)
|
242
|
+
end
|
243
|
+
end
|
244
|
+
|
245
|
+
# Returns the string representation of the object
|
246
|
+
# @return [String] String presentation of the object
|
247
|
+
def to_s
|
248
|
+
to_hash.to_s
|
249
|
+
end
|
250
|
+
|
251
|
+
# to_body is an alias to to_hash (backward compatibility)
|
252
|
+
# @return [Hash] Returns the object in the form of hash
|
253
|
+
def to_body
|
254
|
+
to_hash
|
255
|
+
end
|
256
|
+
|
257
|
+
# Returns the object in the form of hash
|
258
|
+
# @return [Hash] Returns the object in the form of hash
|
259
|
+
def to_hash
|
260
|
+
hash = {}
|
261
|
+
self.class.attribute_map.each_pair do |attr, param|
|
262
|
+
value = self.send(attr)
|
263
|
+
next if value.nil?
|
264
|
+
hash[param] = _to_hash(value)
|
265
|
+
end
|
266
|
+
hash
|
267
|
+
end
|
268
|
+
|
269
|
+
# Outputs non-array value in the form of hash
|
270
|
+
# For object, use to_hash. Otherwise, just return the value
|
271
|
+
# @param [Object] value Any valid value
|
272
|
+
# @return [Hash] Returns the value in the form of hash
|
273
|
+
def _to_hash(value)
|
274
|
+
if value.is_a?(Array)
|
275
|
+
value.compact.map{ |v| _to_hash(v) }
|
276
|
+
elsif value.is_a?(Hash)
|
277
|
+
{}.tap do |hash|
|
278
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
279
|
+
end
|
280
|
+
elsif value.respond_to? :to_hash
|
281
|
+
value.to_hash
|
282
|
+
else
|
283
|
+
value
|
284
|
+
end
|
285
|
+
end
|
286
|
+
|
287
|
+
end
|
288
|
+
|
289
|
+
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
|
|
@@ -15,17 +14,9 @@ require 'date'
|
|
15
14
|
module RusticiSoftwareCloudV2
|
16
15
|
class RegistrationCompletion
|
17
16
|
|
18
|
-
UNKNOWN =
|
19
|
-
COMPLETED =
|
20
|
-
INCOMPLETE =
|
21
|
-
|
22
|
-
# Builds the enum from string
|
23
|
-
# @param [String] The enum value in the form of the string
|
24
|
-
# @return [String] The enum value
|
25
|
-
def build_from_hash(value)
|
26
|
-
constantValues = RegistrationCompletion.constants.select { |c| RegistrationCompletion::const_get(c) == value }
|
27
|
-
raise "Invalid ENUM value #{value} for class #RegistrationCompletion" if constantValues.empty?
|
28
|
-
value
|
29
|
-
end
|
17
|
+
UNKNOWN = "UNKNOWN".freeze
|
18
|
+
COMPLETED = "COMPLETED".freeze
|
19
|
+
INCOMPLETE = "INCOMPLETE".freeze
|
30
20
|
end
|
21
|
+
|
31
22
|
end
|
@@ -3,21 +3,22 @@
|
|
3
3
|
|
4
4
|
#REST API used for SCORM Cloud integrations.
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0
|
6
|
+
OpenAPI spec version: 2.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.3
|
10
9
|
|
11
10
|
=end
|
12
11
|
|
13
12
|
require 'date'
|
14
13
|
|
15
14
|
module RusticiSoftwareCloudV2
|
15
|
+
|
16
16
|
class RegistrationListSchema
|
17
17
|
attr_accessor :registrations
|
18
18
|
|
19
19
|
attr_accessor :more
|
20
20
|
|
21
|
+
|
21
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
23
|
def self.attribute_map
|
23
24
|
{
|
@@ -40,7 +41,7 @@ module RusticiSoftwareCloudV2
|
|
40
41
|
return unless attributes.is_a?(Hash)
|
41
42
|
|
42
43
|
# convert string to symbol for hash key
|
43
|
-
attributes = attributes.each_with_object({})
|
44
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
44
45
|
|
45
46
|
if attributes.has_key?(:'registrations')
|
46
47
|
if (value = attributes[:'registrations']).is_a?(Array)
|
@@ -51,24 +52,25 @@ module RusticiSoftwareCloudV2
|
|
51
52
|
if attributes.has_key?(:'more')
|
52
53
|
self.more = attributes[:'more']
|
53
54
|
end
|
55
|
+
|
54
56
|
end
|
55
57
|
|
56
58
|
# Show invalid properties with the reasons. Usually used together with valid?
|
57
|
-
# @return Array for valid
|
59
|
+
# @return Array for valid properies with the reasons
|
58
60
|
def list_invalid_properties
|
59
61
|
invalid_properties = Array.new
|
60
62
|
if @registrations.nil?
|
61
|
-
invalid_properties.push(
|
63
|
+
invalid_properties.push("invalid value for 'registrations', registrations cannot be nil.")
|
62
64
|
end
|
63
65
|
|
64
|
-
invalid_properties
|
66
|
+
return invalid_properties
|
65
67
|
end
|
66
68
|
|
67
69
|
# Check to see if the all the properties in the model are valid
|
68
70
|
# @return true if the model is valid
|
69
71
|
def valid?
|
70
72
|
return false if @registrations.nil?
|
71
|
-
true
|
73
|
+
return true
|
72
74
|
end
|
73
75
|
|
74
76
|
# Checks equality by comparing each attribute.
|
@@ -102,7 +104,7 @@ module RusticiSoftwareCloudV2
|
|
102
104
|
# check to ensure the input is an array given that the the attribute
|
103
105
|
# is documented as an array but the input is not
|
104
106
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
105
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map
|
107
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
106
108
|
end
|
107
109
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
108
110
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -184,7 +186,7 @@ module RusticiSoftwareCloudV2
|
|
184
186
|
# @return [Hash] Returns the value in the form of hash
|
185
187
|
def _to_hash(value)
|
186
188
|
if value.is_a?(Array)
|
187
|
-
value.compact.map
|
189
|
+
value.compact.map{ |v| _to_hash(v) }
|
188
190
|
elsif value.is_a?(Hash)
|
189
191
|
{}.tap do |hash|
|
190
192
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -195,5 +197,7 @@ module RusticiSoftwareCloudV2
|
|
195
197
|
value
|
196
198
|
end
|
197
199
|
end
|
200
|
+
|
198
201
|
end
|
202
|
+
|
199
203
|
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 RegistrationSchema
|
17
17
|
attr_accessor :id
|
18
18
|
|
@@ -48,6 +48,8 @@ module RusticiSoftwareCloudV2
|
|
48
48
|
|
49
49
|
attr_accessor :learner
|
50
50
|
|
51
|
+
attr_accessor :tags
|
52
|
+
|
51
53
|
attr_accessor :global_objectives
|
52
54
|
|
53
55
|
attr_accessor :shared_data
|
@@ -56,6 +58,7 @@ module RusticiSoftwareCloudV2
|
|
56
58
|
|
57
59
|
attr_accessor :activity_details
|
58
60
|
|
61
|
+
|
59
62
|
# Attribute mapping from ruby-style variable name to JSON key.
|
60
63
|
def self.attribute_map
|
61
64
|
{
|
@@ -75,6 +78,7 @@ module RusticiSoftwareCloudV2
|
|
75
78
|
:'created_date' => :'createdDate',
|
76
79
|
:'course' => :'course',
|
77
80
|
:'learner' => :'learner',
|
81
|
+
:'tags' => :'tags',
|
78
82
|
:'global_objectives' => :'globalObjectives',
|
79
83
|
:'shared_data' => :'sharedData',
|
80
84
|
:'suspended_activity_id' => :'suspendedActivityId',
|
@@ -101,6 +105,7 @@ module RusticiSoftwareCloudV2
|
|
101
105
|
:'created_date' => :'DateTime',
|
102
106
|
:'course' => :'CourseReferenceSchema',
|
103
107
|
:'learner' => :'LearnerSchema',
|
108
|
+
:'tags' => :'Array<String>',
|
104
109
|
:'global_objectives' => :'Array<ObjectiveSchema>',
|
105
110
|
:'shared_data' => :'Array<SharedDataEntrySchema>',
|
106
111
|
:'suspended_activity_id' => :'String',
|
@@ -114,7 +119,7 @@ module RusticiSoftwareCloudV2
|
|
114
119
|
return unless attributes.is_a?(Hash)
|
115
120
|
|
116
121
|
# convert string to symbol for hash key
|
117
|
-
attributes = attributes.each_with_object({})
|
122
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
118
123
|
|
119
124
|
if attributes.has_key?(:'id')
|
120
125
|
self.id = attributes[:'id']
|
@@ -180,6 +185,12 @@ module RusticiSoftwareCloudV2
|
|
180
185
|
self.learner = attributes[:'learner']
|
181
186
|
end
|
182
187
|
|
188
|
+
if attributes.has_key?(:'tags')
|
189
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
190
|
+
self.tags = value
|
191
|
+
end
|
192
|
+
end
|
193
|
+
|
183
194
|
if attributes.has_key?(:'globalObjectives')
|
184
195
|
if (value = attributes[:'globalObjectives']).is_a?(Array)
|
185
196
|
self.global_objectives = value
|
@@ -199,19 +210,20 @@ module RusticiSoftwareCloudV2
|
|
199
210
|
if attributes.has_key?(:'activityDetails')
|
200
211
|
self.activity_details = attributes[:'activityDetails']
|
201
212
|
end
|
213
|
+
|
202
214
|
end
|
203
215
|
|
204
216
|
# Show invalid properties with the reasons. Usually used together with valid?
|
205
|
-
# @return Array for valid
|
217
|
+
# @return Array for valid properies with the reasons
|
206
218
|
def list_invalid_properties
|
207
219
|
invalid_properties = Array.new
|
208
|
-
invalid_properties
|
220
|
+
return invalid_properties
|
209
221
|
end
|
210
222
|
|
211
223
|
# Check to see if the all the properties in the model are valid
|
212
224
|
# @return true if the model is valid
|
213
225
|
def valid?
|
214
|
-
true
|
226
|
+
return true
|
215
227
|
end
|
216
228
|
|
217
229
|
# Checks equality by comparing each attribute.
|
@@ -235,6 +247,7 @@ module RusticiSoftwareCloudV2
|
|
235
247
|
created_date == o.created_date &&
|
236
248
|
course == o.course &&
|
237
249
|
learner == o.learner &&
|
250
|
+
tags == o.tags &&
|
238
251
|
global_objectives == o.global_objectives &&
|
239
252
|
shared_data == o.shared_data &&
|
240
253
|
suspended_activity_id == o.suspended_activity_id &&
|
@@ -250,7 +263,7 @@ module RusticiSoftwareCloudV2
|
|
250
263
|
# Calculates hash code according to all attributes.
|
251
264
|
# @return [Fixnum] Hash code
|
252
265
|
def hash
|
253
|
-
[id, instance, xapi_registration_id, dispatch_id, updated, registration_completion, registration_completion_amount, registration_success, score, total_seconds_tracked, first_access_date, last_access_date, completed_date, created_date, course, learner, global_objectives, shared_data, suspended_activity_id, activity_details].hash
|
266
|
+
[id, instance, xapi_registration_id, dispatch_id, updated, registration_completion, registration_completion_amount, registration_success, score, total_seconds_tracked, first_access_date, last_access_date, completed_date, created_date, course, learner, tags, global_objectives, shared_data, suspended_activity_id, activity_details].hash
|
254
267
|
end
|
255
268
|
|
256
269
|
# Builds the object from hash
|
@@ -263,7 +276,7 @@ module RusticiSoftwareCloudV2
|
|
263
276
|
# check to ensure the input is an array given that the the attribute
|
264
277
|
# is documented as an array but the input is not
|
265
278
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
266
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map
|
279
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
267
280
|
end
|
268
281
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
269
282
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -345,7 +358,7 @@ module RusticiSoftwareCloudV2
|
|
345
358
|
# @return [Hash] Returns the value in the form of hash
|
346
359
|
def _to_hash(value)
|
347
360
|
if value.is_a?(Array)
|
348
|
-
value.compact.map
|
361
|
+
value.compact.map{ |v| _to_hash(v) }
|
349
362
|
elsif value.is_a?(Hash)
|
350
363
|
{}.tap do |hash|
|
351
364
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -356,5 +369,7 @@ module RusticiSoftwareCloudV2
|
|
356
369
|
value
|
357
370
|
end
|
358
371
|
end
|
372
|
+
|
359
373
|
end
|
374
|
+
|
360
375
|
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
|
|
@@ -15,17 +14,9 @@ require 'date'
|
|
15
14
|
module RusticiSoftwareCloudV2
|
16
15
|
class RegistrationSuccess
|
17
16
|
|
18
|
-
UNKNOWN =
|
19
|
-
PASSED =
|
20
|
-
FAILED =
|
21
|
-
|
22
|
-
# Builds the enum from string
|
23
|
-
# @param [String] The enum value in the form of the string
|
24
|
-
# @return [String] The enum value
|
25
|
-
def build_from_hash(value)
|
26
|
-
constantValues = RegistrationSuccess.constants.select { |c| RegistrationSuccess::const_get(c) == value }
|
27
|
-
raise "Invalid ENUM value #{value} for class #RegistrationSuccess" if constantValues.empty?
|
28
|
-
value
|
29
|
-
end
|
17
|
+
UNKNOWN = "UNKNOWN".freeze
|
18
|
+
PASSED = "PASSED".freeze
|
19
|
+
FAILED = "FAILED".freeze
|
30
20
|
end
|
21
|
+
|
31
22
|
end
|