rustici_software_cloud_v2 1.0.0beta → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -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
|
|
@@ -37,28 +37,6 @@ module RusticiSoftwareCloudV2
|
|
37
37
|
# The time of the last runtime update in UTC
|
38
38
|
attr_accessor :last_runtime_update
|
39
39
|
|
40
|
-
class EnumAttributeValidator
|
41
|
-
attr_reader :datatype
|
42
|
-
attr_reader :allowable_values
|
43
|
-
|
44
|
-
def initialize(datatype, allowable_values)
|
45
|
-
@allowable_values = allowable_values.map do |value|
|
46
|
-
case datatype.to_s
|
47
|
-
when /Integer/i
|
48
|
-
value.to_i
|
49
|
-
when /Float/i
|
50
|
-
value.to_f
|
51
|
-
else
|
52
|
-
value
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
def valid?(value)
|
58
|
-
!value || allowable_values.include?(value)
|
59
|
-
end
|
60
|
-
end
|
61
|
-
|
62
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
63
41
|
def self.attribute_map
|
64
42
|
{
|
@@ -154,30 +132,23 @@ module RusticiSoftwareCloudV2
|
|
154
132
|
# Check to see if the all the properties in the model are valid
|
155
133
|
# @return true if the model is valid
|
156
134
|
def valid?
|
157
|
-
completion_status_validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'COMPLETED', 'INCOMPLETE'])
|
158
|
-
return false unless completion_status_validator.valid?(@completion_status)
|
159
|
-
success_status_validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
|
160
|
-
return false unless success_status_validator.valid?(@success_status)
|
161
135
|
true
|
162
136
|
end
|
163
137
|
|
164
138
|
# Custom attribute writer method checking allowed values (enum).
|
139
|
+
#
|
140
|
+
# allowable_values = ['UNKNOWN', 'COMPLETED', 'INCOMPLETE']
|
141
|
+
#
|
165
142
|
# @param [Object] completion_status Object to be assigned
|
166
143
|
def completion_status=(completion_status)
|
167
|
-
validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'COMPLETED', 'INCOMPLETE'])
|
168
|
-
unless validator.valid?(completion_status)
|
169
|
-
fail ArgumentError, 'invalid value for "completion_status", must be one of #{validator.allowable_values}.'
|
170
|
-
end
|
171
144
|
@completion_status = completion_status
|
172
145
|
end
|
173
|
-
|
174
146
|
# Custom attribute writer method checking allowed values (enum).
|
147
|
+
#
|
148
|
+
# allowable_values = ['UNKNOWN', 'PASSED', 'FAILED']
|
149
|
+
#
|
175
150
|
# @param [Object] success_status Object to be assigned
|
176
151
|
def success_status=(success_status)
|
177
|
-
validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
|
178
|
-
unless validator.valid?(success_status)
|
179
|
-
fail ArgumentError, 'invalid value for "success_status", must be one of #{validator.allowable_values}.'
|
180
|
-
end
|
181
152
|
@success_status = success_status
|
182
153
|
end
|
183
154
|
|
@@ -217,7 +188,7 @@ module RusticiSoftwareCloudV2
|
|
217
188
|
return nil unless attributes.is_a?(Hash)
|
218
189
|
self.class.swagger_types.each_pair do |key, type|
|
219
190
|
if type =~ /\AArray<(.*)>/i
|
220
|
-
# check to ensure the input is an array given that the
|
191
|
+
# check to ensure the input is an array given that the attribute
|
221
192
|
# is documented as an array but the input is not
|
222
193
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
223
194
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -313,5 +284,6 @@ module RusticiSoftwareCloudV2
|
|
313
284
|
value
|
314
285
|
end
|
315
286
|
end
|
287
|
+
|
316
288
|
end
|
317
289
|
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
|
|
@@ -17,10 +17,10 @@ module RusticiSoftwareCloudV2
|
|
17
17
|
# Number of seconds from now this link will expire in. Defaults to 120s. Range 10s:300s
|
18
18
|
attr_accessor :expiry
|
19
19
|
|
20
|
-
# The URL the application should redirect to when the learner exits a course. If
|
20
|
+
# The URL the application should redirect to when the learner exits a course. Alternatively one of the following keywords can be used to redirect to: - `closer` - A page that automatically tries to close the browser tab/window - `blank` - A blank page - `message` - A page with a message about the course being complete If an empty string is specified, the configured setting will be used (default www.scorm.com). If an invalid url is specified, the Message.html page will be loaded.
|
21
21
|
attr_accessor :redirect_on_exit_url
|
22
22
|
|
23
|
-
# Should this launch be tracked? If false,
|
23
|
+
# Should this launch be tracked? If false, SCORM Cloud will avoid tracking to the extent possible for the standard being used.
|
24
24
|
attr_accessor :tracking
|
25
25
|
|
26
26
|
# For SCORM, SCO identifier to override launch, overriding the normal sequencing.
|
@@ -40,6 +40,8 @@ module RusticiSoftwareCloudV2
|
|
40
40
|
|
41
41
|
attr_accessor :additionalvalues
|
42
42
|
|
43
|
+
attr_accessor :launch_auth
|
44
|
+
|
43
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
44
46
|
def self.attribute_map
|
45
47
|
{
|
@@ -52,7 +54,8 @@ module RusticiSoftwareCloudV2
|
|
52
54
|
:'learner_tags' => :'learnerTags',
|
53
55
|
:'course_tags' => :'courseTags',
|
54
56
|
:'registration_tags' => :'registrationTags',
|
55
|
-
:'additionalvalues' => :'additionalvalues'
|
57
|
+
:'additionalvalues' => :'additionalvalues',
|
58
|
+
:'launch_auth' => :'launchAuth'
|
56
59
|
}
|
57
60
|
end
|
58
61
|
|
@@ -68,7 +71,8 @@ module RusticiSoftwareCloudV2
|
|
68
71
|
:'learner_tags' => :'Array<String>',
|
69
72
|
:'course_tags' => :'Array<String>',
|
70
73
|
:'registration_tags' => :'Array<String>',
|
71
|
-
:'additionalvalues' => :'Array<ItemValuePairSchema>'
|
74
|
+
:'additionalvalues' => :'Array<ItemValuePairSchema>',
|
75
|
+
:'launch_auth' => :'LaunchAuthSchema'
|
72
76
|
}
|
73
77
|
end
|
74
78
|
|
@@ -131,21 +135,31 @@ module RusticiSoftwareCloudV2
|
|
131
135
|
self.additionalvalues = value
|
132
136
|
end
|
133
137
|
end
|
138
|
+
|
139
|
+
if attributes.has_key?(:'launchAuth')
|
140
|
+
self.launch_auth = attributes[:'launchAuth']
|
141
|
+
end
|
134
142
|
end
|
135
143
|
|
136
144
|
# Show invalid properties with the reasons. Usually used together with valid?
|
137
145
|
# @return Array for valid properties with the reasons
|
138
146
|
def list_invalid_properties
|
139
147
|
invalid_properties = Array.new
|
148
|
+
if @redirect_on_exit_url.nil?
|
149
|
+
invalid_properties.push('invalid value for "redirect_on_exit_url", redirect_on_exit_url cannot be nil.')
|
150
|
+
end
|
151
|
+
|
140
152
|
invalid_properties
|
141
153
|
end
|
142
154
|
|
143
155
|
# Check to see if the all the properties in the model are valid
|
144
156
|
# @return true if the model is valid
|
145
157
|
def valid?
|
158
|
+
return false if @redirect_on_exit_url.nil?
|
146
159
|
true
|
147
160
|
end
|
148
161
|
|
162
|
+
|
149
163
|
# Checks equality by comparing each attribute.
|
150
164
|
# @param [Object] Object to be compared
|
151
165
|
def ==(o)
|
@@ -160,7 +174,8 @@ module RusticiSoftwareCloudV2
|
|
160
174
|
learner_tags == o.learner_tags &&
|
161
175
|
course_tags == o.course_tags &&
|
162
176
|
registration_tags == o.registration_tags &&
|
163
|
-
additionalvalues == o.additionalvalues
|
177
|
+
additionalvalues == o.additionalvalues &&
|
178
|
+
launch_auth == o.launch_auth
|
164
179
|
end
|
165
180
|
|
166
181
|
# @see the `==` method
|
@@ -172,7 +187,7 @@ module RusticiSoftwareCloudV2
|
|
172
187
|
# Calculates hash code according to all attributes.
|
173
188
|
# @return [Fixnum] Hash code
|
174
189
|
def hash
|
175
|
-
[expiry, redirect_on_exit_url, tracking, start_sco, culture, css_url, learner_tags, course_tags, registration_tags, additionalvalues].hash
|
190
|
+
[expiry, redirect_on_exit_url, tracking, start_sco, culture, css_url, learner_tags, course_tags, registration_tags, additionalvalues, launch_auth].hash
|
176
191
|
end
|
177
192
|
|
178
193
|
# Builds the object from hash
|
@@ -182,7 +197,7 @@ module RusticiSoftwareCloudV2
|
|
182
197
|
return nil unless attributes.is_a?(Hash)
|
183
198
|
self.class.swagger_types.each_pair do |key, type|
|
184
199
|
if type =~ /\AArray<(.*)>/i
|
185
|
-
# check to ensure the input is an array given that the
|
200
|
+
# check to ensure the input is an array given that the attribute
|
186
201
|
# is documented as an array but the input is not
|
187
202
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
188
203
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -278,5 +293,6 @@ module RusticiSoftwareCloudV2
|
|
278
293
|
value
|
279
294
|
end
|
280
295
|
end
|
296
|
+
|
281
297
|
end
|
282
298
|
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
|
|
@@ -80,6 +80,7 @@ module RusticiSoftwareCloudV2
|
|
80
80
|
true
|
81
81
|
end
|
82
82
|
|
83
|
+
|
83
84
|
# Checks equality by comparing each attribute.
|
84
85
|
# @param [Object] Object to be compared
|
85
86
|
def ==(o)
|
@@ -110,7 +111,7 @@ module RusticiSoftwareCloudV2
|
|
110
111
|
return nil unless attributes.is_a?(Hash)
|
111
112
|
self.class.swagger_types.each_pair do |key, type|
|
112
113
|
if type =~ /\AArray<(.*)>/i
|
113
|
-
# check to ensure the input is an array given that the
|
114
|
+
# check to ensure the input is an array given that the attribute
|
114
115
|
# is documented as an array but the input is not
|
115
116
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
116
117
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -206,5 +207,6 @@ module RusticiSoftwareCloudV2
|
|
206
207
|
value
|
207
208
|
end
|
208
209
|
end
|
210
|
+
|
209
211
|
end
|
210
212
|
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
|
|
@@ -86,6 +86,7 @@ module RusticiSoftwareCloudV2
|
|
86
86
|
true
|
87
87
|
end
|
88
88
|
|
89
|
+
|
89
90
|
# Checks equality by comparing each attribute.
|
90
91
|
# @param [Object] Object to be compared
|
91
92
|
def ==(o)
|
@@ -116,7 +117,7 @@ module RusticiSoftwareCloudV2
|
|
116
117
|
return nil unless attributes.is_a?(Hash)
|
117
118
|
self.class.swagger_types.each_pair do |key, type|
|
118
119
|
if type =~ /\AArray<(.*)>/i
|
119
|
-
# check to ensure the input is an array given that the
|
120
|
+
# check to ensure the input is an array given that the attribute
|
120
121
|
# is documented as an array but the input is not
|
121
122
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
122
123
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -212,5 +213,6 @@ module RusticiSoftwareCloudV2
|
|
212
213
|
value
|
213
214
|
end
|
214
215
|
end
|
216
|
+
|
215
217
|
end
|
216
218
|
end
|
@@ -0,0 +1,213 @@
|
|
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
|
+
# Metadata used to set various properties of a media file course
|
17
|
+
class MediaFileMetadataSchema
|
18
|
+
attr_accessor :title
|
19
|
+
|
20
|
+
attr_accessor :description
|
21
|
+
|
22
|
+
attr_accessor :content_language
|
23
|
+
|
24
|
+
attr_accessor :estimated_duration
|
25
|
+
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
27
|
+
def self.attribute_map
|
28
|
+
{
|
29
|
+
:'title' => :'title',
|
30
|
+
:'description' => :'description',
|
31
|
+
:'content_language' => :'contentLanguage',
|
32
|
+
:'estimated_duration' => :'estimatedDuration'
|
33
|
+
}
|
34
|
+
end
|
35
|
+
|
36
|
+
# Attribute type mapping.
|
37
|
+
def self.swagger_types
|
38
|
+
{
|
39
|
+
:'title' => :'String',
|
40
|
+
:'description' => :'String',
|
41
|
+
:'content_language' => :'String',
|
42
|
+
:'estimated_duration' => :'Integer'
|
43
|
+
}
|
44
|
+
end
|
45
|
+
|
46
|
+
# Initializes the object
|
47
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
48
|
+
def initialize(attributes = {})
|
49
|
+
return unless attributes.is_a?(Hash)
|
50
|
+
|
51
|
+
# convert string to symbol for hash key
|
52
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
53
|
+
|
54
|
+
if attributes.has_key?(:'title')
|
55
|
+
self.title = attributes[:'title']
|
56
|
+
end
|
57
|
+
|
58
|
+
if attributes.has_key?(:'description')
|
59
|
+
self.description = attributes[:'description']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes.has_key?(:'contentLanguage')
|
63
|
+
self.content_language = attributes[:'contentLanguage']
|
64
|
+
end
|
65
|
+
|
66
|
+
if attributes.has_key?(:'estimatedDuration')
|
67
|
+
self.estimated_duration = attributes[:'estimatedDuration']
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
72
|
+
# @return Array for valid properties with the reasons
|
73
|
+
def list_invalid_properties
|
74
|
+
invalid_properties = Array.new
|
75
|
+
invalid_properties
|
76
|
+
end
|
77
|
+
|
78
|
+
# Check to see if the all the properties in the model are valid
|
79
|
+
# @return true if the model is valid
|
80
|
+
def valid?
|
81
|
+
true
|
82
|
+
end
|
83
|
+
|
84
|
+
|
85
|
+
# Checks equality by comparing each attribute.
|
86
|
+
# @param [Object] Object to be compared
|
87
|
+
def ==(o)
|
88
|
+
return true if self.equal?(o)
|
89
|
+
self.class == o.class &&
|
90
|
+
title == o.title &&
|
91
|
+
description == o.description &&
|
92
|
+
content_language == o.content_language &&
|
93
|
+
estimated_duration == o.estimated_duration
|
94
|
+
end
|
95
|
+
|
96
|
+
# @see the `==` method
|
97
|
+
# @param [Object] Object to be compared
|
98
|
+
def eql?(o)
|
99
|
+
self == o
|
100
|
+
end
|
101
|
+
|
102
|
+
# Calculates hash code according to all attributes.
|
103
|
+
# @return [Fixnum] Hash code
|
104
|
+
def hash
|
105
|
+
[title, description, content_language, estimated_duration].hash
|
106
|
+
end
|
107
|
+
|
108
|
+
# Builds the object from hash
|
109
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
110
|
+
# @return [Object] Returns the model itself
|
111
|
+
def build_from_hash(attributes)
|
112
|
+
return nil unless attributes.is_a?(Hash)
|
113
|
+
self.class.swagger_types.each_pair do |key, type|
|
114
|
+
if type =~ /\AArray<(.*)>/i
|
115
|
+
# check to ensure the input is an array given that the attribute
|
116
|
+
# is documented as an array but the input is not
|
117
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
118
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
119
|
+
end
|
120
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
121
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
122
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
123
|
+
end
|
124
|
+
|
125
|
+
self
|
126
|
+
end
|
127
|
+
|
128
|
+
# Deserializes the data based on type
|
129
|
+
# @param string type Data type
|
130
|
+
# @param string value Value to be deserialized
|
131
|
+
# @return [Object] Deserialized data
|
132
|
+
def _deserialize(type, value)
|
133
|
+
case type.to_sym
|
134
|
+
when :DateTime
|
135
|
+
DateTime.parse(value)
|
136
|
+
when :Date
|
137
|
+
Date.parse(value)
|
138
|
+
when :String
|
139
|
+
value.to_s
|
140
|
+
when :Integer
|
141
|
+
value.to_i
|
142
|
+
when :Float
|
143
|
+
value.to_f
|
144
|
+
when :BOOLEAN
|
145
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
146
|
+
true
|
147
|
+
else
|
148
|
+
false
|
149
|
+
end
|
150
|
+
when :Object
|
151
|
+
# generic object (usually a Hash), return directly
|
152
|
+
value
|
153
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
154
|
+
inner_type = Regexp.last_match[:inner_type]
|
155
|
+
value.map { |v| _deserialize(inner_type, v) }
|
156
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
157
|
+
k_type = Regexp.last_match[:k_type]
|
158
|
+
v_type = Regexp.last_match[:v_type]
|
159
|
+
{}.tap do |hash|
|
160
|
+
value.each do |k, v|
|
161
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
162
|
+
end
|
163
|
+
end
|
164
|
+
else # model
|
165
|
+
temp_model = RusticiSoftwareCloudV2.const_get(type).new
|
166
|
+
temp_model.build_from_hash(value)
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
# Returns the string representation of the object
|
171
|
+
# @return [String] String presentation of the object
|
172
|
+
def to_s
|
173
|
+
to_hash.to_s
|
174
|
+
end
|
175
|
+
|
176
|
+
# to_body is an alias to to_hash (backward compatibility)
|
177
|
+
# @return [Hash] Returns the object in the form of hash
|
178
|
+
def to_body
|
179
|
+
to_hash
|
180
|
+
end
|
181
|
+
|
182
|
+
# Returns the object in the form of hash
|
183
|
+
# @return [Hash] Returns the object in the form of hash
|
184
|
+
def to_hash
|
185
|
+
hash = {}
|
186
|
+
self.class.attribute_map.each_pair do |attr, param|
|
187
|
+
value = self.send(attr)
|
188
|
+
next if value.nil?
|
189
|
+
hash[param] = _to_hash(value)
|
190
|
+
end
|
191
|
+
hash
|
192
|
+
end
|
193
|
+
|
194
|
+
# Outputs non-array value in the form of hash
|
195
|
+
# For object, use to_hash. Otherwise, just return the value
|
196
|
+
# @param [Object] value Any valid value
|
197
|
+
# @return [Hash] Returns the value in the form of hash
|
198
|
+
def _to_hash(value)
|
199
|
+
if value.is_a?(Array)
|
200
|
+
value.compact.map { |v| _to_hash(v) }
|
201
|
+
elsif value.is_a?(Hash)
|
202
|
+
{}.tap do |hash|
|
203
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
204
|
+
end
|
205
|
+
elsif value.respond_to? :to_hash
|
206
|
+
value.to_hash
|
207
|
+
else
|
208
|
+
value
|
209
|
+
end
|
210
|
+
end
|
211
|
+
|
212
|
+
end
|
213
|
+
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
|
|
@@ -24,7 +24,7 @@ module RusticiSoftwareCloudV2
|
|
24
24
|
|
25
25
|
attr_accessor :duration
|
26
26
|
|
27
|
-
attr_accessor :
|
27
|
+
attr_accessor :typical_time
|
28
28
|
|
29
29
|
attr_accessor :keywords
|
30
30
|
|
@@ -36,7 +36,7 @@ module RusticiSoftwareCloudV2
|
|
36
36
|
:'description' => :'description',
|
37
37
|
:'description_language' => :'descriptionLanguage',
|
38
38
|
:'duration' => :'duration',
|
39
|
-
:'
|
39
|
+
:'typical_time' => :'typicalTime',
|
40
40
|
:'keywords' => :'keywords'
|
41
41
|
}
|
42
42
|
end
|
@@ -49,7 +49,7 @@ module RusticiSoftwareCloudV2
|
|
49
49
|
:'description' => :'String',
|
50
50
|
:'description_language' => :'String',
|
51
51
|
:'duration' => :'String',
|
52
|
-
:'
|
52
|
+
:'typical_time' => :'String',
|
53
53
|
:'keywords' => :'Array<String>'
|
54
54
|
}
|
55
55
|
end
|
@@ -82,8 +82,8 @@ module RusticiSoftwareCloudV2
|
|
82
82
|
self.duration = attributes[:'duration']
|
83
83
|
end
|
84
84
|
|
85
|
-
if attributes.has_key?(:'
|
86
|
-
self.
|
85
|
+
if attributes.has_key?(:'typicalTime')
|
86
|
+
self.typical_time = attributes[:'typicalTime']
|
87
87
|
end
|
88
88
|
|
89
89
|
if attributes.has_key?(:'keywords')
|
@@ -106,6 +106,7 @@ module RusticiSoftwareCloudV2
|
|
106
106
|
true
|
107
107
|
end
|
108
108
|
|
109
|
+
|
109
110
|
# Checks equality by comparing each attribute.
|
110
111
|
# @param [Object] Object to be compared
|
111
112
|
def ==(o)
|
@@ -116,7 +117,7 @@ module RusticiSoftwareCloudV2
|
|
116
117
|
description == o.description &&
|
117
118
|
description_language == o.description_language &&
|
118
119
|
duration == o.duration &&
|
119
|
-
|
120
|
+
typical_time == o.typical_time &&
|
120
121
|
keywords == o.keywords
|
121
122
|
end
|
122
123
|
|
@@ -129,7 +130,7 @@ module RusticiSoftwareCloudV2
|
|
129
130
|
# Calculates hash code according to all attributes.
|
130
131
|
# @return [Fixnum] Hash code
|
131
132
|
def hash
|
132
|
-
[title, title_language, description, description_language, duration,
|
133
|
+
[title, title_language, description, description_language, duration, typical_time, keywords].hash
|
133
134
|
end
|
134
135
|
|
135
136
|
# Builds the object from hash
|
@@ -139,7 +140,7 @@ module RusticiSoftwareCloudV2
|
|
139
140
|
return nil unless attributes.is_a?(Hash)
|
140
141
|
self.class.swagger_types.each_pair do |key, type|
|
141
142
|
if type =~ /\AArray<(.*)>/i
|
142
|
-
# check to ensure the input is an array given that the
|
143
|
+
# check to ensure the input is an array given that the attribute
|
143
144
|
# is documented as an array but the input is not
|
144
145
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
145
146
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -235,5 +236,6 @@ module RusticiSoftwareCloudV2
|
|
235
236
|
value
|
236
237
|
end
|
237
238
|
end
|
239
|
+
|
238
240
|
end
|
239
241
|
end
|