rustici_software_cloud_v2 1.0.0beta → 2.0.0
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/Gemfile +1 -1
- data/README.md +354 -243
- data/lib/rustici_software_cloud_v2/api/about_api.rb +71 -0
- data/lib/rustici_software_cloud_v2/api/application_management_api.rb +253 -63
- data/lib/rustici_software_cloud_v2/api/authentication_api.rb +11 -17
- data/lib/rustici_software_cloud_v2/api/course_api.rb +910 -160
- data/lib/rustici_software_cloud_v2/api/dispatch_api.rb +2236 -0
- data/lib/rustici_software_cloud_v2/api/invitations_api.rb +1025 -0
- data/lib/rustici_software_cloud_v2/api/learner_api.rb +367 -0
- data/lib/rustici_software_cloud_v2/api/ping_api.rb +6 -4
- data/lib/rustici_software_cloud_v2/api/registration_api.rb +448 -295
- data/lib/rustici_software_cloud_v2/api/reporting_api.rb +191 -0
- data/lib/rustici_software_cloud_v2/api/xapi_api.rb +581 -0
- data/lib/rustici_software_cloud_v2/api/zoomi_api.rb +528 -0
- data/lib/rustici_software_cloud_v2/api_client.rb +5 -5
- data/lib/rustici_software_cloud_v2/api_error.rb +2 -2
- data/lib/rustici_software_cloud_v2/configuration.rb +11 -20
- data/lib/rustici_software_cloud_v2/models/about_schema.rb +194 -0
- data/lib/rustici_software_cloud_v2/models/activity_result_schema.rb +10 -38
- data/lib/rustici_software_cloud_v2/models/application_info_schema.rb +234 -0
- data/lib/rustici_software_cloud_v2/models/application_list_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/{link_schema.rb → application_request_schema.rb} +14 -16
- data/lib/rustici_software_cloud_v2/models/application_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/application_token.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/asset_file_schema.rb +194 -0
- data/lib/rustici_software_cloud_v2/models/{course_tags_batch_schema.rb → batch_tags_schema.rb} +21 -17
- data/lib/rustici_software_cloud_v2/models/comment_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/completion_amount_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/course_activity_schema.rb +7 -31
- data/lib/rustici_software_cloud_v2/models/course_list_non_paged_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/course_list_schema.rb +6 -3
- data/lib/rustici_software_cloud_v2/models/course_reference_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/course_schema.rb +7 -31
- data/lib/rustici_software_cloud_v2/models/{registration_tags_batch_schema.rb → create_dispatch_id_schema.rb} +25 -25
- data/lib/rustici_software_cloud_v2/models/create_dispatch_list_schema.rb +187 -0
- data/lib/rustici_software_cloud_v2/models/create_dispatch_schema.rb +306 -0
- data/lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb +252 -0
- data/lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb +250 -0
- data/lib/rustici_software_cloud_v2/models/create_registration_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/credential_created_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/credential_list_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/credential_request_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/credential_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/destination_id_schema.rb +195 -0
- data/lib/rustici_software_cloud_v2/models/destination_list_schema.rb +198 -0
- data/lib/rustici_software_cloud_v2/models/destination_schema.rb +227 -0
- data/lib/rustici_software_cloud_v2/models/dispatch_id_schema.rb +194 -0
- data/lib/rustici_software_cloud_v2/models/dispatch_list_schema.rb +197 -0
- data/lib/rustici_software_cloud_v2/models/dispatch_lti_info_schema.rb +221 -0
- data/lib/rustici_software_cloud_v2/models/dispatch_registration_count_schema.rb +194 -0
- data/lib/rustici_software_cloud_v2/models/dispatch_schema.rb +326 -0
- data/lib/rustici_software_cloud_v2/models/{tag_post_schema.rb → enabled_schema.rb} +17 -6
- data/lib/rustici_software_cloud_v2/models/file_list_item_schema.rb +205 -0
- data/lib/rustici_software_cloud_v2/models/file_list_schema.rb +187 -0
- data/lib/rustici_software_cloud_v2/models/import_asset_request_schema.rb +207 -0
- data/lib/rustici_software_cloud_v2/models/import_fetch_request_schema.rb +31 -8
- data/lib/rustici_software_cloud_v2/models/import_job_result_schema.rb +7 -31
- data/lib/rustici_software_cloud_v2/models/import_media_file_reference_request_schema.rb +216 -0
- data/lib/rustici_software_cloud_v2/models/import_request_schema.rb +195 -0
- data/lib/rustici_software_cloud_v2/models/import_result_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/integer_result_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/invitation_email_schema.rb +214 -0
- data/lib/rustici_software_cloud_v2/models/invitation_job_status_schema.rb +226 -0
- data/lib/rustici_software_cloud_v2/models/invitation_summary_list.rb +198 -0
- data/lib/rustici_software_cloud_v2/models/invitation_summary_schema.rb +225 -0
- data/lib/rustici_software_cloud_v2/models/item_value_pair_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/launch_auth_options_schema.rb +212 -0
- data/lib/rustici_software_cloud_v2/models/launch_auth_schema.rb +204 -0
- data/lib/rustici_software_cloud_v2/models/launch_history_list_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/launch_history_schema.rb +10 -38
- data/lib/rustici_software_cloud_v2/models/launch_link_request_schema.rb +25 -9
- data/lib/rustici_software_cloud_v2/models/launch_link_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/learner_preference_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/learner_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/media_file_metadata_schema.rb +213 -0
- data/lib/rustici_software_cloud_v2/models/message_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/metadata_schema.rb +12 -10
- data/lib/rustici_software_cloud_v2/models/objective_schema.rb +13 -45
- data/lib/rustici_software_cloud_v2/models/permissions_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/ping_schema.rb +21 -15
- data/lib/rustici_software_cloud_v2/models/post_back_schema.rb +24 -42
- data/lib/rustici_software_cloud_v2/models/private_invitation_list.rb +198 -0
- data/lib/rustici_software_cloud_v2/models/private_invitation_schema.rb +264 -0
- data/lib/rustici_software_cloud_v2/models/private_invitation_update_schema.rb +215 -0
- data/lib/rustici_software_cloud_v2/models/public_invitation_list.rb +198 -0
- data/lib/rustici_software_cloud_v2/models/public_invitation_schema.rb +287 -0
- data/lib/rustici_software_cloud_v2/models/public_invitation_update_schema.rb +228 -0
- data/lib/rustici_software_cloud_v2/models/registration_completion.rb +2 -2
- data/lib/rustici_software_cloud_v2/models/registration_list_schema.rb +6 -3
- data/lib/rustici_software_cloud_v2/models/registration_schema.rb +17 -4
- data/lib/rustici_software_cloud_v2/models/registration_success.rb +2 -2
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_schema.rb +257 -0
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.rb +212 -0
- data/lib/rustici_software_cloud_v2/models/reportage_auth_token_schema.rb +194 -0
- data/lib/rustici_software_cloud_v2/models/reportage_link_schema.rb +185 -0
- data/lib/rustici_software_cloud_v2/models/response_error.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/runtime_interaction_schema.rb +7 -31
- data/lib/rustici_software_cloud_v2/models/runtime_objective_schema.rb +10 -38
- data/lib/rustici_software_cloud_v2/models/runtime_schema.rb +7 -31
- data/lib/rustici_software_cloud_v2/models/score_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/setting_item.rb +7 -31
- data/lib/rustici_software_cloud_v2/models/setting_list_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/setting_metadata.rb +7 -31
- data/lib/rustici_software_cloud_v2/models/setting_valid_value.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/settings_individual_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/settings_post_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/shared_data_entry_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/static_properties_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/string_result_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/tag_list_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/title_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/token_request_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/update_application_schema.rb +196 -0
- data/lib/rustici_software_cloud_v2/models/update_dispatch_schema.rb +266 -0
- data/lib/rustici_software_cloud_v2/models/user_invitation_list.rb +198 -0
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema.rb +234 -0
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.rb +213 -0
- data/lib/rustici_software_cloud_v2/models/xapi_account.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/xapi_activity.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/xapi_activity_definition.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/xapi_agent_group.rb +7 -31
- data/lib/rustici_software_cloud_v2/models/xapi_attachment.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/xapi_context.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/xapi_context_activity.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.rb +193 -0
- data/lib/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.rb +193 -0
- data/lib/rustici_software_cloud_v2/models/xapi_credential_post_schema.rb +255 -0
- data/lib/rustici_software_cloud_v2/models/xapi_credential_put_schema.rb +239 -0
- data/lib/rustici_software_cloud_v2/models/xapi_credential_schema.rb +264 -0
- data/lib/rustici_software_cloud_v2/models/xapi_credentials_list_schema.rb +202 -0
- data/lib/rustici_software_cloud_v2/models/xapi_endpoint_schema.rb +203 -0
- data/lib/rustici_software_cloud_v2/models/xapi_interaction_component.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/xapi_result.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/xapi_score.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/xapi_statement.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.rb +192 -0
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.rb +199 -0
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_put_schema.rb +194 -0
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.rb +239 -0
- data/lib/rustici_software_cloud_v2/models/xapi_statement_reference.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/xapi_statement_result.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/xapi_verb.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/zoomi_company_id.rb +185 -0
- data/lib/rustici_software_cloud_v2/models/zoomi_course_options_schema.rb +204 -0
- data/lib/rustici_software_cloud_v2/version.rb +3 -3
- data/lib/rustici_software_cloud_v2.rb +68 -6
- data/rustici_software_cloud_v2.gemspec +8 -7
- data/spec/api_client_spec.rb +53 -47
- data/spec/configuration_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -13
- metadata +142 -270
- 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/lib/rustici_software_cloud_v2/models/setting_metadata_valid_values.rb +0 -209
- 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,185 @@
|
|
|
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
|
+
Swagger Codegen version: 2.4.12
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
|
|
15
|
+
module RusticiSoftwareCloudV2
|
|
16
|
+
class ReportageLinkSchema
|
|
17
|
+
attr_accessor :reportage_link
|
|
18
|
+
|
|
19
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
20
|
+
def self.attribute_map
|
|
21
|
+
{
|
|
22
|
+
:'reportage_link' => :'reportageLink'
|
|
23
|
+
}
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Attribute type mapping.
|
|
27
|
+
def self.swagger_types
|
|
28
|
+
{
|
|
29
|
+
:'reportage_link' => :'String'
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Initializes the object
|
|
34
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
35
|
+
def initialize(attributes = {})
|
|
36
|
+
return unless attributes.is_a?(Hash)
|
|
37
|
+
|
|
38
|
+
# convert string to symbol for hash key
|
|
39
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
40
|
+
|
|
41
|
+
if attributes.has_key?(:'reportageLink')
|
|
42
|
+
self.reportage_link = attributes[:'reportageLink']
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
47
|
+
# @return Array for valid properties with the reasons
|
|
48
|
+
def list_invalid_properties
|
|
49
|
+
invalid_properties = Array.new
|
|
50
|
+
invalid_properties
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Check to see if the all the properties in the model are valid
|
|
54
|
+
# @return true if the model is valid
|
|
55
|
+
def valid?
|
|
56
|
+
true
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
# Checks equality by comparing each attribute.
|
|
61
|
+
# @param [Object] Object to be compared
|
|
62
|
+
def ==(o)
|
|
63
|
+
return true if self.equal?(o)
|
|
64
|
+
self.class == o.class &&
|
|
65
|
+
reportage_link == o.reportage_link
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# @see the `==` method
|
|
69
|
+
# @param [Object] Object to be compared
|
|
70
|
+
def eql?(o)
|
|
71
|
+
self == o
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Calculates hash code according to all attributes.
|
|
75
|
+
# @return [Fixnum] Hash code
|
|
76
|
+
def hash
|
|
77
|
+
[reportage_link].hash
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Builds the object from hash
|
|
81
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
82
|
+
# @return [Object] Returns the model itself
|
|
83
|
+
def build_from_hash(attributes)
|
|
84
|
+
return nil unless attributes.is_a?(Hash)
|
|
85
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
86
|
+
if type =~ /\AArray<(.*)>/i
|
|
87
|
+
# check to ensure the input is an array given that the attribute
|
|
88
|
+
# is documented as an array but the input is not
|
|
89
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
90
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
91
|
+
end
|
|
92
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
93
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
94
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
self
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Deserializes the data based on type
|
|
101
|
+
# @param string type Data type
|
|
102
|
+
# @param string value Value to be deserialized
|
|
103
|
+
# @return [Object] Deserialized data
|
|
104
|
+
def _deserialize(type, value)
|
|
105
|
+
case type.to_sym
|
|
106
|
+
when :DateTime
|
|
107
|
+
DateTime.parse(value)
|
|
108
|
+
when :Date
|
|
109
|
+
Date.parse(value)
|
|
110
|
+
when :String
|
|
111
|
+
value.to_s
|
|
112
|
+
when :Integer
|
|
113
|
+
value.to_i
|
|
114
|
+
when :Float
|
|
115
|
+
value.to_f
|
|
116
|
+
when :BOOLEAN
|
|
117
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
118
|
+
true
|
|
119
|
+
else
|
|
120
|
+
false
|
|
121
|
+
end
|
|
122
|
+
when :Object
|
|
123
|
+
# generic object (usually a Hash), return directly
|
|
124
|
+
value
|
|
125
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
126
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
127
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
128
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
129
|
+
k_type = Regexp.last_match[:k_type]
|
|
130
|
+
v_type = Regexp.last_match[:v_type]
|
|
131
|
+
{}.tap do |hash|
|
|
132
|
+
value.each do |k, v|
|
|
133
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
else # model
|
|
137
|
+
temp_model = RusticiSoftwareCloudV2.const_get(type).new
|
|
138
|
+
temp_model.build_from_hash(value)
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# Returns the string representation of the object
|
|
143
|
+
# @return [String] String presentation of the object
|
|
144
|
+
def to_s
|
|
145
|
+
to_hash.to_s
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
149
|
+
# @return [Hash] Returns the object in the form of hash
|
|
150
|
+
def to_body
|
|
151
|
+
to_hash
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# Returns the object in the form of hash
|
|
155
|
+
# @return [Hash] Returns the object in the form of hash
|
|
156
|
+
def to_hash
|
|
157
|
+
hash = {}
|
|
158
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
159
|
+
value = self.send(attr)
|
|
160
|
+
next if value.nil?
|
|
161
|
+
hash[param] = _to_hash(value)
|
|
162
|
+
end
|
|
163
|
+
hash
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# Outputs non-array value in the form of hash
|
|
167
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
168
|
+
# @param [Object] value Any valid value
|
|
169
|
+
# @return [Hash] Returns the value in the form of hash
|
|
170
|
+
def _to_hash(value)
|
|
171
|
+
if value.is_a?(Array)
|
|
172
|
+
value.compact.map { |v| _to_hash(v) }
|
|
173
|
+
elsif value.is_a?(Hash)
|
|
174
|
+
{}.tap do |hash|
|
|
175
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
176
|
+
end
|
|
177
|
+
elsif value.respond_to? :to_hash
|
|
178
|
+
value.to_hash
|
|
179
|
+
else
|
|
180
|
+
value
|
|
181
|
+
end
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
end
|
|
185
|
+
end
|
|
@@ -3,10 +3,10 @@
|
|
|
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.
|
|
9
|
+
Swagger Codegen version: 2.4.12
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -61,6 +61,7 @@ module RusticiSoftwareCloudV2
|
|
|
61
61
|
true
|
|
62
62
|
end
|
|
63
63
|
|
|
64
|
+
|
|
64
65
|
# Checks equality by comparing each attribute.
|
|
65
66
|
# @param [Object] Object to be compared
|
|
66
67
|
def ==(o)
|
|
@@ -88,7 +89,7 @@ module RusticiSoftwareCloudV2
|
|
|
88
89
|
return nil unless attributes.is_a?(Hash)
|
|
89
90
|
self.class.swagger_types.each_pair do |key, type|
|
|
90
91
|
if type =~ /\AArray<(.*)>/i
|
|
91
|
-
# check to ensure the input is an array given that the
|
|
92
|
+
# check to ensure the input is an array given that the attribute
|
|
92
93
|
# is documented as an array but the input is not
|
|
93
94
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
94
95
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
@@ -184,5 +185,6 @@ module RusticiSoftwareCloudV2
|
|
|
184
185
|
value
|
|
185
186
|
end
|
|
186
187
|
end
|
|
188
|
+
|
|
187
189
|
end
|
|
188
190
|
end
|
|
@@ -3,10 +3,10 @@
|
|
|
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.
|
|
9
|
+
Swagger Codegen version: 2.4.12
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -36,28 +36,6 @@ module RusticiSoftwareCloudV2
|
|
|
36
36
|
|
|
37
37
|
attr_accessor :description
|
|
38
38
|
|
|
39
|
-
class EnumAttributeValidator
|
|
40
|
-
attr_reader :datatype
|
|
41
|
-
attr_reader :allowable_values
|
|
42
|
-
|
|
43
|
-
def initialize(datatype, allowable_values)
|
|
44
|
-
@allowable_values = allowable_values.map do |value|
|
|
45
|
-
case datatype.to_s
|
|
46
|
-
when /Integer/i
|
|
47
|
-
value.to_i
|
|
48
|
-
when /Float/i
|
|
49
|
-
value.to_f
|
|
50
|
-
else
|
|
51
|
-
value
|
|
52
|
-
end
|
|
53
|
-
end
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
def valid?(value)
|
|
57
|
-
!value || allowable_values.include?(value)
|
|
58
|
-
end
|
|
59
|
-
end
|
|
60
|
-
|
|
61
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
62
40
|
def self.attribute_map
|
|
63
41
|
{
|
|
@@ -159,18 +137,15 @@ module RusticiSoftwareCloudV2
|
|
|
159
137
|
# Check to see if the all the properties in the model are valid
|
|
160
138
|
# @return true if the model is valid
|
|
161
139
|
def valid?
|
|
162
|
-
type_validator = EnumAttributeValidator.new('String', ['TrueFalse', 'Choice', 'FillIn', 'LongFillIn', 'Likert', 'Matching', 'Performance', 'Sequencing', 'Numeric', 'Other'])
|
|
163
|
-
return false unless type_validator.valid?(@type)
|
|
164
140
|
true
|
|
165
141
|
end
|
|
166
142
|
|
|
167
143
|
# Custom attribute writer method checking allowed values (enum).
|
|
144
|
+
#
|
|
145
|
+
# allowable_values = ['TrueFalse', 'Choice', 'FillIn', 'LongFillIn', 'Likert', 'Matching', 'Performance', 'Sequencing', 'Numeric', 'Other']
|
|
146
|
+
#
|
|
168
147
|
# @param [Object] type Object to be assigned
|
|
169
148
|
def type=(type)
|
|
170
|
-
validator = EnumAttributeValidator.new('String', ['TrueFalse', 'Choice', 'FillIn', 'LongFillIn', 'Likert', 'Matching', 'Performance', 'Sequencing', 'Numeric', 'Other'])
|
|
171
|
-
unless validator.valid?(type)
|
|
172
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
|
173
|
-
end
|
|
174
149
|
@type = type
|
|
175
150
|
end
|
|
176
151
|
|
|
@@ -211,7 +186,7 @@ module RusticiSoftwareCloudV2
|
|
|
211
186
|
return nil unless attributes.is_a?(Hash)
|
|
212
187
|
self.class.swagger_types.each_pair do |key, type|
|
|
213
188
|
if type =~ /\AArray<(.*)>/i
|
|
214
|
-
# check to ensure the input is an array given that the
|
|
189
|
+
# check to ensure the input is an array given that the attribute
|
|
215
190
|
# is documented as an array but the input is not
|
|
216
191
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
217
192
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
@@ -307,5 +282,6 @@ module RusticiSoftwareCloudV2
|
|
|
307
282
|
value
|
|
308
283
|
end
|
|
309
284
|
end
|
|
285
|
+
|
|
310
286
|
end
|
|
311
287
|
end
|
|
@@ -3,10 +3,10 @@
|
|
|
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.
|
|
9
|
+
Swagger Codegen version: 2.4.12
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -32,28 +32,6 @@ module RusticiSoftwareCloudV2
|
|
|
32
32
|
|
|
33
33
|
attr_accessor :description
|
|
34
34
|
|
|
35
|
-
class EnumAttributeValidator
|
|
36
|
-
attr_reader :datatype
|
|
37
|
-
attr_reader :allowable_values
|
|
38
|
-
|
|
39
|
-
def initialize(datatype, allowable_values)
|
|
40
|
-
@allowable_values = allowable_values.map do |value|
|
|
41
|
-
case datatype.to_s
|
|
42
|
-
when /Integer/i
|
|
43
|
-
value.to_i
|
|
44
|
-
when /Float/i
|
|
45
|
-
value.to_f
|
|
46
|
-
else
|
|
47
|
-
value
|
|
48
|
-
end
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
def valid?(value)
|
|
53
|
-
!value || allowable_values.include?(value)
|
|
54
|
-
end
|
|
55
|
-
end
|
|
56
|
-
|
|
57
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
58
36
|
def self.attribute_map
|
|
59
37
|
{
|
|
@@ -143,30 +121,23 @@ module RusticiSoftwareCloudV2
|
|
|
143
121
|
# Check to see if the all the properties in the model are valid
|
|
144
122
|
# @return true if the model is valid
|
|
145
123
|
def valid?
|
|
146
|
-
runtime_objective_success_status_validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
|
|
147
|
-
return false unless runtime_objective_success_status_validator.valid?(@runtime_objective_success_status)
|
|
148
|
-
runtime_objective_completion_status_validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'COMPLETED', 'INCOMPLETE', 'NOT_ATTEMPTED', 'BROWSED'])
|
|
149
|
-
return false unless runtime_objective_completion_status_validator.valid?(@runtime_objective_completion_status)
|
|
150
124
|
true
|
|
151
125
|
end
|
|
152
126
|
|
|
153
127
|
# Custom attribute writer method checking allowed values (enum).
|
|
128
|
+
#
|
|
129
|
+
# allowable_values = ['UNKNOWN', 'PASSED', 'FAILED']
|
|
130
|
+
#
|
|
154
131
|
# @param [Object] runtime_objective_success_status Object to be assigned
|
|
155
132
|
def runtime_objective_success_status=(runtime_objective_success_status)
|
|
156
|
-
validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
|
|
157
|
-
unless validator.valid?(runtime_objective_success_status)
|
|
158
|
-
fail ArgumentError, 'invalid value for "runtime_objective_success_status", must be one of #{validator.allowable_values}.'
|
|
159
|
-
end
|
|
160
133
|
@runtime_objective_success_status = runtime_objective_success_status
|
|
161
134
|
end
|
|
162
|
-
|
|
163
135
|
# Custom attribute writer method checking allowed values (enum).
|
|
136
|
+
#
|
|
137
|
+
# allowable_values = ['UNKNOWN', 'COMPLETED', 'INCOMPLETE', 'NOT_ATTEMPTED', 'BROWSED']
|
|
138
|
+
#
|
|
164
139
|
# @param [Object] runtime_objective_completion_status Object to be assigned
|
|
165
140
|
def runtime_objective_completion_status=(runtime_objective_completion_status)
|
|
166
|
-
validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'COMPLETED', 'INCOMPLETE', 'NOT_ATTEMPTED', 'BROWSED'])
|
|
167
|
-
unless validator.valid?(runtime_objective_completion_status)
|
|
168
|
-
fail ArgumentError, 'invalid value for "runtime_objective_completion_status", must be one of #{validator.allowable_values}.'
|
|
169
|
-
end
|
|
170
141
|
@runtime_objective_completion_status = runtime_objective_completion_status
|
|
171
142
|
end
|
|
172
143
|
|
|
@@ -205,7 +176,7 @@ module RusticiSoftwareCloudV2
|
|
|
205
176
|
return nil unless attributes.is_a?(Hash)
|
|
206
177
|
self.class.swagger_types.each_pair do |key, type|
|
|
207
178
|
if type =~ /\AArray<(.*)>/i
|
|
208
|
-
# check to ensure the input is an array given that the
|
|
179
|
+
# check to ensure the input is an array given that the attribute
|
|
209
180
|
# is documented as an array but the input is not
|
|
210
181
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
211
182
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
@@ -301,5 +272,6 @@ module RusticiSoftwareCloudV2
|
|
|
301
272
|
value
|
|
302
273
|
end
|
|
303
274
|
end
|
|
275
|
+
|
|
304
276
|
end
|
|
305
277
|
end
|
|
@@ -3,10 +3,10 @@
|
|
|
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.
|
|
9
|
+
Swagger Codegen version: 2.4.12
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -54,28 +54,6 @@ module RusticiSoftwareCloudV2
|
|
|
54
54
|
|
|
55
55
|
attr_accessor :runtime_objectives
|
|
56
56
|
|
|
57
|
-
class EnumAttributeValidator
|
|
58
|
-
attr_reader :datatype
|
|
59
|
-
attr_reader :allowable_values
|
|
60
|
-
|
|
61
|
-
def initialize(datatype, allowable_values)
|
|
62
|
-
@allowable_values = allowable_values.map do |value|
|
|
63
|
-
case datatype.to_s
|
|
64
|
-
when /Integer/i
|
|
65
|
-
value.to_i
|
|
66
|
-
when /Float/i
|
|
67
|
-
value.to_f
|
|
68
|
-
else
|
|
69
|
-
value
|
|
70
|
-
end
|
|
71
|
-
end
|
|
72
|
-
end
|
|
73
|
-
|
|
74
|
-
def valid?(value)
|
|
75
|
-
!value || allowable_values.include?(value)
|
|
76
|
-
end
|
|
77
|
-
end
|
|
78
|
-
|
|
79
57
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
80
58
|
def self.attribute_map
|
|
81
59
|
{
|
|
@@ -237,18 +215,15 @@ module RusticiSoftwareCloudV2
|
|
|
237
215
|
# Check to see if the all the properties in the model are valid
|
|
238
216
|
# @return true if the model is valid
|
|
239
217
|
def valid?
|
|
240
|
-
runtime_success_status_validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
|
|
241
|
-
return false unless runtime_success_status_validator.valid?(@runtime_success_status)
|
|
242
218
|
true
|
|
243
219
|
end
|
|
244
220
|
|
|
245
221
|
# Custom attribute writer method checking allowed values (enum).
|
|
222
|
+
#
|
|
223
|
+
# allowable_values = ['UNKNOWN', 'PASSED', 'FAILED']
|
|
224
|
+
#
|
|
246
225
|
# @param [Object] runtime_success_status Object to be assigned
|
|
247
226
|
def runtime_success_status=(runtime_success_status)
|
|
248
|
-
validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
|
|
249
|
-
unless validator.valid?(runtime_success_status)
|
|
250
|
-
fail ArgumentError, 'invalid value for "runtime_success_status", must be one of #{validator.allowable_values}.'
|
|
251
|
-
end
|
|
252
227
|
@runtime_success_status = runtime_success_status
|
|
253
228
|
end
|
|
254
229
|
|
|
@@ -298,7 +273,7 @@ module RusticiSoftwareCloudV2
|
|
|
298
273
|
return nil unless attributes.is_a?(Hash)
|
|
299
274
|
self.class.swagger_types.each_pair do |key, type|
|
|
300
275
|
if type =~ /\AArray<(.*)>/i
|
|
301
|
-
# check to ensure the input is an array given that the
|
|
276
|
+
# check to ensure the input is an array given that the attribute
|
|
302
277
|
# is documented as an array but the input is not
|
|
303
278
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
304
279
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
@@ -394,5 +369,6 @@ module RusticiSoftwareCloudV2
|
|
|
394
369
|
value
|
|
395
370
|
end
|
|
396
371
|
end
|
|
372
|
+
|
|
397
373
|
end
|
|
398
374
|
end
|
|
@@ -3,10 +3,10 @@
|
|
|
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.
|
|
9
|
+
Swagger Codegen version: 2.4.12
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -57,6 +57,7 @@ module RusticiSoftwareCloudV2
|
|
|
57
57
|
true
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
+
|
|
60
61
|
# Checks equality by comparing each attribute.
|
|
61
62
|
# @param [Object] Object to be compared
|
|
62
63
|
def ==(o)
|
|
@@ -84,7 +85,7 @@ module RusticiSoftwareCloudV2
|
|
|
84
85
|
return nil unless attributes.is_a?(Hash)
|
|
85
86
|
self.class.swagger_types.each_pair do |key, type|
|
|
86
87
|
if type =~ /\AArray<(.*)>/i
|
|
87
|
-
# check to ensure the input is an array given that the
|
|
88
|
+
# check to ensure the input is an array given that the attribute
|
|
88
89
|
# is documented as an array but the input is not
|
|
89
90
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
90
91
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
@@ -180,5 +181,6 @@ module RusticiSoftwareCloudV2
|
|
|
180
181
|
value
|
|
181
182
|
end
|
|
182
183
|
end
|
|
184
|
+
|
|
183
185
|
end
|
|
184
186
|
end
|
|
@@ -3,10 +3,10 @@
|
|
|
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.
|
|
9
|
+
Swagger Codegen version: 2.4.12
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -27,28 +27,6 @@ module RusticiSoftwareCloudV2
|
|
|
27
27
|
|
|
28
28
|
attr_accessor :metadata
|
|
29
29
|
|
|
30
|
-
class EnumAttributeValidator
|
|
31
|
-
attr_reader :datatype
|
|
32
|
-
attr_reader :allowable_values
|
|
33
|
-
|
|
34
|
-
def initialize(datatype, allowable_values)
|
|
35
|
-
@allowable_values = allowable_values.map do |value|
|
|
36
|
-
case datatype.to_s
|
|
37
|
-
when /Integer/i
|
|
38
|
-
value.to_i
|
|
39
|
-
when /Float/i
|
|
40
|
-
value.to_f
|
|
41
|
-
else
|
|
42
|
-
value
|
|
43
|
-
end
|
|
44
|
-
end
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
def valid?(value)
|
|
48
|
-
!value || allowable_values.include?(value)
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
|
|
52
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
53
31
|
def self.attribute_map
|
|
54
32
|
{
|
|
@@ -110,18 +88,15 @@ module RusticiSoftwareCloudV2
|
|
|
110
88
|
# Check to see if the all the properties in the model are valid
|
|
111
89
|
# @return true if the model is valid
|
|
112
90
|
def valid?
|
|
113
|
-
effective_value_source_validator = EnumAttributeValidator.new('String', ['default', 'fallback', 'base', 'system', 'learningStandard', 'application', 'learningStandardForApplication', 'dispatchDestination', 'course', 'dispatchDestinationForCourse', 'registration'])
|
|
114
|
-
return false unless effective_value_source_validator.valid?(@effective_value_source)
|
|
115
91
|
true
|
|
116
92
|
end
|
|
117
93
|
|
|
118
94
|
# Custom attribute writer method checking allowed values (enum).
|
|
95
|
+
#
|
|
96
|
+
# allowable_values = ['default', 'application', 'learningStandardForApplication', 'dispatchDestination', 'course', 'dispatch', 'registration']
|
|
97
|
+
#
|
|
119
98
|
# @param [Object] effective_value_source Object to be assigned
|
|
120
99
|
def effective_value_source=(effective_value_source)
|
|
121
|
-
validator = EnumAttributeValidator.new('String', ['default', 'fallback', 'base', 'system', 'learningStandard', 'application', 'learningStandardForApplication', 'dispatchDestination', 'course', 'dispatchDestinationForCourse', 'registration'])
|
|
122
|
-
unless validator.valid?(effective_value_source)
|
|
123
|
-
fail ArgumentError, 'invalid value for "effective_value_source", must be one of #{validator.allowable_values}.'
|
|
124
|
-
end
|
|
125
100
|
@effective_value_source = effective_value_source
|
|
126
101
|
end
|
|
127
102
|
|
|
@@ -156,7 +131,7 @@ module RusticiSoftwareCloudV2
|
|
|
156
131
|
return nil unless attributes.is_a?(Hash)
|
|
157
132
|
self.class.swagger_types.each_pair do |key, type|
|
|
158
133
|
if type =~ /\AArray<(.*)>/i
|
|
159
|
-
# check to ensure the input is an array given that the
|
|
134
|
+
# check to ensure the input is an array given that the attribute
|
|
160
135
|
# is documented as an array but the input is not
|
|
161
136
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
162
137
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
@@ -252,5 +227,6 @@ module RusticiSoftwareCloudV2
|
|
|
252
227
|
value
|
|
253
228
|
end
|
|
254
229
|
end
|
|
230
|
+
|
|
255
231
|
end
|
|
256
232
|
end
|
|
@@ -3,10 +3,10 @@
|
|
|
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.
|
|
9
|
+
Swagger Codegen version: 2.4.12
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -63,6 +63,7 @@ module RusticiSoftwareCloudV2
|
|
|
63
63
|
true
|
|
64
64
|
end
|
|
65
65
|
|
|
66
|
+
|
|
66
67
|
# Checks equality by comparing each attribute.
|
|
67
68
|
# @param [Object] Object to be compared
|
|
68
69
|
def ==(o)
|
|
@@ -90,7 +91,7 @@ module RusticiSoftwareCloudV2
|
|
|
90
91
|
return nil unless attributes.is_a?(Hash)
|
|
91
92
|
self.class.swagger_types.each_pair do |key, type|
|
|
92
93
|
if type =~ /\AArray<(.*)>/i
|
|
93
|
-
# check to ensure the input is an array given that the
|
|
94
|
+
# check to ensure the input is an array given that the attribute
|
|
94
95
|
# is documented as an array but the input is not
|
|
95
96
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
96
97
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
@@ -186,5 +187,6 @@ module RusticiSoftwareCloudV2
|
|
|
186
187
|
value
|
|
187
188
|
end
|
|
188
189
|
end
|
|
190
|
+
|
|
189
191
|
end
|
|
190
192
|
end
|