rustici_software_cloud_v2 1.0.0beta → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +194 -88
- data/lib/rustici_software_cloud_v2/api/about_api.rb +71 -0
- data/lib/rustici_software_cloud_v2/api/application_management_api.rb +161 -97
- data/lib/rustici_software_cloud_v2/api/authentication_api.rb +13 -13
- data/lib/rustici_software_cloud_v2/api/course_api.rb +246 -260
- data/lib/rustici_software_cloud_v2/api/dispatch_api.rb +1994 -0
- data/lib/rustici_software_cloud_v2/api/invitations_api.rb +964 -0
- data/lib/rustici_software_cloud_v2/api/learner_api.rb +296 -0
- data/lib/rustici_software_cloud_v2/api/ping_api.rb +10 -8
- data/lib/rustici_software_cloud_v2/api/registration_api.rb +379 -324
- data/lib/rustici_software_cloud_v2/api/reporting_api.rb +191 -0
- data/lib/rustici_software_cloud_v2/api/xapi_api.rb +555 -0
- data/lib/rustici_software_cloud_v2/api/zoomi_api.rb +448 -0
- data/lib/rustici_software_cloud_v2/api_client.rb +2 -3
- data/lib/rustici_software_cloud_v2/api_error.rb +1 -2
- data/lib/rustici_software_cloud_v2/configuration.rb +9 -19
- data/lib/rustici_software_cloud_v2/models/about_schema.rb +196 -0
- data/lib/rustici_software_cloud_v2/models/activity_result_schema.rb +17 -14
- data/lib/rustici_software_cloud_v2/models/application_list_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/application_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/application_token.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/{course_tags_batch_schema.rb → batch_tags_schema.rb} +29 -23
- data/lib/rustici_software_cloud_v2/models/comment_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/completion_amount_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/course_activity_schema.rb +14 -11
- data/lib/rustici_software_cloud_v2/models/course_list_non_paged_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/course_list_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/course_reference_schema.rb +11 -8
- data/lib/rustici_software_cloud_v2/models/course_schema.rb +14 -11
- data/lib/rustici_software_cloud_v2/models/create_dispatch_id_schema.rb +225 -0
- data/lib/rustici_software_cloud_v2/models/{link_schema.rb → create_dispatch_list_schema.rb} +22 -21
- data/lib/rustici_software_cloud_v2/models/create_dispatch_schema.rb +308 -0
- data/lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb +254 -0
- data/lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb +252 -0
- data/lib/rustici_software_cloud_v2/models/create_registration_schema.rb +15 -11
- data/lib/rustici_software_cloud_v2/models/credential_created_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/credential_list_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/credential_request_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/credential_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/destination_id_schema.rb +197 -0
- data/lib/rustici_software_cloud_v2/models/destination_list_schema.rb +200 -0
- data/lib/rustici_software_cloud_v2/models/{setting_metadata_valid_values.rb → destination_schema.rb} +42 -31
- data/lib/rustici_software_cloud_v2/models/dispatch_id_schema.rb +196 -0
- data/lib/rustici_software_cloud_v2/models/dispatch_list_schema.rb +198 -0
- data/lib/rustici_software_cloud_v2/models/dispatch_registration_count_schema.rb +196 -0
- data/lib/rustici_software_cloud_v2/models/dispatch_schema.rb +290 -0
- data/lib/rustici_software_cloud_v2/models/{tag_post_schema.rb → enabled_schema.rb} +24 -11
- data/lib/rustici_software_cloud_v2/models/import_fetch_request_schema.rb +12 -9
- data/lib/rustici_software_cloud_v2/models/import_job_result_schema.rb +14 -11
- data/lib/rustici_software_cloud_v2/models/import_result_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/integer_result_schema.rb +13 -9
- data/lib/rustici_software_cloud_v2/models/invitation_email_schema.rb +215 -0
- data/lib/rustici_software_cloud_v2/models/invitation_job_status_schema.rb +253 -0
- data/lib/rustici_software_cloud_v2/models/invitation_summary_list.rb +199 -0
- data/lib/rustici_software_cloud_v2/models/invitation_summary_schema.rb +227 -0
- data/lib/rustici_software_cloud_v2/models/item_value_pair_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/launch_history_list_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/launch_history_schema.rb +19 -16
- data/lib/rustici_software_cloud_v2/models/launch_link_request_schema.rb +17 -8
- data/lib/rustici_software_cloud_v2/models/launch_link_schema.rb +13 -9
- data/lib/rustici_software_cloud_v2/models/learner_preference_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/learner_schema.rb +13 -9
- data/lib/rustici_software_cloud_v2/models/message_schema.rb +13 -9
- data/lib/rustici_software_cloud_v2/models/metadata_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/objective_schema.rb +23 -20
- data/lib/rustici_software_cloud_v2/models/permissions_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/ping_schema.rb +28 -20
- data/lib/rustici_software_cloud_v2/models/post_back_schema.rb +33 -20
- data/lib/rustici_software_cloud_v2/models/private_invitation_list.rb +199 -0
- data/lib/rustici_software_cloud_v2/models/private_invitation_schema.rb +266 -0
- data/lib/rustici_software_cloud_v2/models/public_invitation_list.rb +199 -0
- data/lib/rustici_software_cloud_v2/models/public_invitation_schema.rb +289 -0
- data/lib/rustici_software_cloud_v2/models/registration_completion.rb +5 -14
- data/lib/rustici_software_cloud_v2/models/registration_list_schema.rb +13 -9
- data/lib/rustici_software_cloud_v2/models/registration_schema.rb +24 -9
- data/lib/rustici_software_cloud_v2/models/registration_success.rb +5 -14
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_schema.rb +259 -0
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.rb +214 -0
- data/lib/rustici_software_cloud_v2/models/reportage_auth_token_schema.rb +196 -0
- data/lib/rustici_software_cloud_v2/models/reportage_link_schema.rb +187 -0
- data/lib/rustici_software_cloud_v2/models/response_error.rb +13 -9
- data/lib/rustici_software_cloud_v2/models/runtime_interaction_schema.rb +14 -11
- data/lib/rustici_software_cloud_v2/models/runtime_objective_schema.rb +19 -16
- data/lib/rustici_software_cloud_v2/models/runtime_schema.rb +15 -12
- data/lib/rustici_software_cloud_v2/models/score_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/setting_item.rb +14 -11
- data/lib/rustici_software_cloud_v2/models/setting_list_schema.rb +13 -9
- data/lib/rustici_software_cloud_v2/models/setting_metadata.rb +15 -12
- data/lib/rustici_software_cloud_v2/models/setting_valid_value.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/settings_individual_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/settings_post_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/shared_data_entry_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/static_properties_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/string_result_schema.rb +13 -9
- data/lib/rustici_software_cloud_v2/models/tag_list_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/title_schema.rb +12 -8
- data/lib/rustici_software_cloud_v2/models/token_request_schema.rb +14 -10
- data/lib/rustici_software_cloud_v2/models/update_dispatch_schema.rb +258 -0
- data/lib/rustici_software_cloud_v2/models/user_invitation_list.rb +199 -0
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema.rb +236 -0
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.rb +214 -0
- data/lib/rustici_software_cloud_v2/models/xapi_account.rb +13 -10
- data/lib/rustici_software_cloud_v2/models/xapi_activity.rb +13 -10
- data/lib/rustici_software_cloud_v2/models/xapi_activity_definition.rb +14 -11
- data/lib/rustici_software_cloud_v2/models/xapi_agent_group.rb +14 -12
- data/lib/rustici_software_cloud_v2/models/xapi_attachment.rb +18 -15
- data/lib/rustici_software_cloud_v2/models/xapi_context.rb +12 -9
- data/lib/rustici_software_cloud_v2/models/xapi_context_activity.rb +11 -8
- data/lib/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.rb +220 -0
- data/lib/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.rb +220 -0
- data/lib/rustici_software_cloud_v2/models/xapi_credential_post_schema.rb +252 -0
- data/lib/rustici_software_cloud_v2/models/xapi_credential_schema.rb +266 -0
- data/lib/rustici_software_cloud_v2/models/{registration_tags_batch_schema.rb → xapi_credentials_list_schema.rb} +30 -31
- data/lib/rustici_software_cloud_v2/models/xapi_endpoint_schema.rb +205 -0
- data/lib/rustici_software_cloud_v2/models/xapi_interaction_component.rb +13 -10
- data/lib/rustici_software_cloud_v2/models/xapi_result.rb +12 -9
- data/lib/rustici_software_cloud_v2/models/xapi_score.rb +11 -8
- data/lib/rustici_software_cloud_v2/models/xapi_statement.rb +11 -8
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.rb +194 -0
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.rb +196 -0
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.rb +241 -0
- data/lib/rustici_software_cloud_v2/models/xapi_statement_reference.rb +14 -11
- data/lib/rustici_software_cloud_v2/models/xapi_statement_result.rb +12 -9
- data/lib/rustici_software_cloud_v2/models/xapi_verb.rb +13 -10
- data/lib/rustici_software_cloud_v2/models/zoomi_company_id.rb +187 -0
- data/lib/rustici_software_cloud_v2/models/zoomi_course_options_schema.rb +196 -0
- data/lib/rustici_software_cloud_v2/version.rb +2 -3
- data/lib/rustici_software_cloud_v2.rb +50 -6
- data/rustici_software_cloud_v2.gemspec +10 -11
- data/spec/api_client_spec.rb +1 -13
- data/spec/configuration_spec.rb +9 -10
- data/spec/spec_helper.rb +1 -13
- metadata +107 -271
- data/docs/ActivityResultSchema.md +0 -20
- data/docs/ApplicationListSchema.md +0 -8
- data/docs/ApplicationManagementApi.md +0 -570
- data/docs/ApplicationSchema.md +0 -9
- data/docs/ApplicationToken.md +0 -10
- data/docs/AuthenticationApi.md +0 -64
- data/docs/CommentSchema.md +0 -10
- data/docs/CompletionAmountSchema.md +0 -8
- data/docs/CourseActivitySchema.md +0 -15
- data/docs/CourseApi.md +0 -1459
- data/docs/CourseListNonPagedSchema.md +0 -8
- data/docs/CourseListSchema.md +0 -9
- data/docs/CourseReferenceSchema.md +0 -10
- data/docs/CourseSchema.md +0 -20
- data/docs/CourseTagsBatchSchema.md +0 -9
- data/docs/CreateRegistrationSchema.md +0 -17
- data/docs/CredentialCreatedSchema.md +0 -12
- data/docs/CredentialListSchema.md +0 -8
- data/docs/CredentialRequestSchema.md +0 -9
- data/docs/CredentialSchema.md +0 -12
- data/docs/ImportFetchRequestSchema.md +0 -8
- data/docs/ImportJobResultSchema.md +0 -11
- data/docs/ImportResultSchema.md +0 -11
- data/docs/IntegerResultSchema.md +0 -8
- data/docs/ItemValuePairSchema.md +0 -9
- data/docs/LaunchHistoryListSchema.md +0 -8
- data/docs/LaunchHistorySchema.md +0 -17
- data/docs/LaunchLinkRequestSchema.md +0 -17
- data/docs/LaunchLinkSchema.md +0 -8
- data/docs/LearnerPreferenceSchema.md +0 -11
- data/docs/LearnerSchema.md +0 -11
- data/docs/LinkSchema.md +0 -8
- data/docs/MessageSchema.md +0 -8
- data/docs/MetadataSchema.md +0 -14
- data/docs/ObjectiveSchema.md +0 -20
- data/docs/PermissionsSchema.md +0 -9
- data/docs/PingApi.md +0 -57
- data/docs/PingSchema.md +0 -8
- data/docs/PostBackSchema.md +0 -12
- data/docs/RegistrationApi.md +0 -1490
- data/docs/RegistrationCompletion.md +0 -7
- data/docs/RegistrationListSchema.md +0 -9
- data/docs/RegistrationSchema.md +0 -27
- data/docs/RegistrationSuccess.md +0 -7
- data/docs/RegistrationTagsBatchSchema.md +0 -9
- data/docs/ResponseError.md +0 -8
- data/docs/RuntimeInteractionSchema.md +0 -18
- data/docs/RuntimeObjectiveSchema.md +0 -16
- data/docs/RuntimeSchema.md +0 -27
- data/docs/ScoreSchema.md +0 -8
- data/docs/SettingItem.md +0 -12
- data/docs/SettingListSchema.md +0 -8
- data/docs/SettingMetadata.md +0 -15
- data/docs/SettingMetadataValidValues.md +0 -9
- data/docs/SettingValidValue.md +0 -9
- data/docs/SettingsIndividualSchema.md +0 -10
- data/docs/SettingsPostSchema.md +0 -8
- data/docs/SharedDataEntrySchema.md +0 -9
- data/docs/StaticPropertiesSchema.md +0 -13
- data/docs/StringResultSchema.md +0 -8
- data/docs/TagListSchema.md +0 -8
- data/docs/TagPostSchema.md +0 -7
- data/docs/TitleSchema.md +0 -8
- data/docs/TokenRequestSchema.md +0 -9
- data/docs/XapiAccount.md +0 -9
- data/docs/XapiActivity.md +0 -10
- data/docs/XapiActivityDefinition.md +0 -19
- data/docs/XapiAgentGroup.md +0 -14
- data/docs/XapiAttachment.md +0 -14
- data/docs/XapiContext.md +0 -16
- data/docs/XapiContextActivity.md +0 -11
- data/docs/XapiInteractionComponent.md +0 -9
- data/docs/XapiResult.md +0 -13
- data/docs/XapiScore.md +0 -11
- data/docs/XapiStatement.md +0 -20
- data/docs/XapiStatementReference.md +0 -9
- data/docs/XapiStatementResult.md +0 -9
- data/docs/XapiVerb.md +0 -9
- data/git_push.sh +0 -55
- data/spec/models/activity_result_schema_spec.rb +0 -133
- data/spec/models/application_list_schema_spec.rb +0 -53
- data/spec/models/application_schema_spec.rb +0 -59
- data/spec/models/application_token_spec.rb +0 -65
- data/spec/models/comment_schema_spec.rb +0 -65
- data/spec/models/completion_amount_schema_spec.rb +0 -53
- data/spec/models/course_activity_schema_spec.rb +0 -99
- data/spec/models/course_list_non_paged_schema_spec.rb +0 -53
- data/spec/models/course_list_schema_spec.rb +0 -59
- data/spec/models/course_reference_schema_spec.rb +0 -65
- data/spec/models/course_schema_spec.rb +0 -129
- data/spec/models/create_registration_schema_spec.rb +0 -107
- data/spec/models/credential_created_schema_spec.rb +0 -77
- data/spec/models/credential_list_schema_spec.rb +0 -53
- data/spec/models/credential_request_schema_spec.rb +0 -59
- data/spec/models/credential_schema_spec.rb +0 -77
- data/spec/models/import_fetch_request_schema_spec.rb +0 -53
- data/spec/models/import_job_result_schema_spec.rb +0 -75
- data/spec/models/import_result_schema_spec.rb +0 -71
- data/spec/models/integer_result_schema_spec.rb +0 -53
- data/spec/models/item_value_pair_schema_spec.rb +0 -59
- data/spec/models/launch_history_list_schema_spec.rb +0 -53
- data/spec/models/launch_history_schema_spec.rb +0 -115
- data/spec/models/launch_link_request_schema_spec.rb +0 -107
- data/spec/models/launch_link_schema_spec.rb +0 -53
- data/spec/models/learner_preference_schema_spec.rb +0 -71
- data/spec/models/learner_schema_spec.rb +0 -71
- data/spec/models/link_schema_spec.rb +0 -53
- data/spec/models/message_schema_spec.rb +0 -53
- data/spec/models/metadata_schema_spec.rb +0 -89
- data/spec/models/objective_schema_spec.rb +0 -137
- data/spec/models/permissions_schema_spec.rb +0 -59
- data/spec/models/ping_schema_spec.rb +0 -53
- data/spec/models/post_back_schema_spec.rb +0 -85
- data/spec/models/registration_completion_spec.rb +0 -47
- data/spec/models/registration_list_schema_spec.rb +0 -59
- data/spec/models/registration_schema_spec.rb +0 -167
- data/spec/models/registration_success_spec.rb +0 -47
- data/spec/models/response_error_spec.rb +0 -53
- data/spec/models/runtime_interaction_schema_spec.rb +0 -117
- data/spec/models/runtime_objective_schema_spec.rb +0 -109
- data/spec/models/runtime_schema_spec.rb +0 -171
- data/spec/models/score_schema_spec.rb +0 -53
- data/spec/models/setting_item_spec.rb +0 -81
- data/spec/models/setting_list_schema_spec.rb +0 -53
- data/spec/models/setting_metadata_spec.rb +0 -99
- data/spec/models/setting_metadata_valid_values_spec.rb +0 -59
- data/spec/models/settings_individual_schema_spec.rb +0 -65
- data/spec/models/settings_post_schema_spec.rb +0 -53
- data/spec/models/shared_data_entry_schema_spec.rb +0 -59
- data/spec/models/static_properties_schema_spec.rb +0 -83
- data/spec/models/string_result_schema_spec.rb +0 -53
- data/spec/models/title_schema_spec.rb +0 -53
- data/spec/models/token_request_schema_spec.rb +0 -59
- data/swagger-codegen.config +0 -11
@@ -3,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 SettingItem
|
17
17
|
attr_accessor :id
|
18
18
|
|
@@ -77,7 +77,7 @@ module RusticiSoftwareCloudV2
|
|
77
77
|
return unless attributes.is_a?(Hash)
|
78
78
|
|
79
79
|
# convert string to symbol for hash key
|
80
|
-
attributes = attributes.each_with_object({})
|
80
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
81
81
|
|
82
82
|
if attributes.has_key?(:'id')
|
83
83
|
self.id = attributes[:'id']
|
@@ -98,29 +98,30 @@ module RusticiSoftwareCloudV2
|
|
98
98
|
if attributes.has_key?(:'metadata')
|
99
99
|
self.metadata = attributes[:'metadata']
|
100
100
|
end
|
101
|
+
|
101
102
|
end
|
102
103
|
|
103
104
|
# Show invalid properties with the reasons. Usually used together with valid?
|
104
|
-
# @return Array for valid
|
105
|
+
# @return Array for valid properies with the reasons
|
105
106
|
def list_invalid_properties
|
106
107
|
invalid_properties = Array.new
|
107
|
-
invalid_properties
|
108
|
+
return invalid_properties
|
108
109
|
end
|
109
110
|
|
110
111
|
# Check to see if the all the properties in the model are valid
|
111
112
|
# @return true if the model is valid
|
112
113
|
def valid?
|
113
|
-
effective_value_source_validator = EnumAttributeValidator.new('String', [
|
114
|
+
effective_value_source_validator = EnumAttributeValidator.new('String', ["default", "application", "learningStandardForApplication", "dispatchDestination", "course", "dispatch", "registration"])
|
114
115
|
return false unless effective_value_source_validator.valid?(@effective_value_source)
|
115
|
-
true
|
116
|
+
return true
|
116
117
|
end
|
117
118
|
|
118
119
|
# Custom attribute writer method checking allowed values (enum).
|
119
120
|
# @param [Object] effective_value_source Object to be assigned
|
120
121
|
def effective_value_source=(effective_value_source)
|
121
|
-
validator = EnumAttributeValidator.new('String', [
|
122
|
+
validator = EnumAttributeValidator.new('String', ["default", "application", "learningStandardForApplication", "dispatchDestination", "course", "dispatch", "registration"])
|
122
123
|
unless validator.valid?(effective_value_source)
|
123
|
-
fail ArgumentError,
|
124
|
+
fail ArgumentError, "invalid value for 'effective_value_source', must be one of #{validator.allowable_values}."
|
124
125
|
end
|
125
126
|
@effective_value_source = effective_value_source
|
126
127
|
end
|
@@ -159,7 +160,7 @@ module RusticiSoftwareCloudV2
|
|
159
160
|
# check to ensure the input is an array given that the the attribute
|
160
161
|
# is documented as an array but the input is not
|
161
162
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
162
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map
|
163
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
163
164
|
end
|
164
165
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
165
166
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -241,7 +242,7 @@ module RusticiSoftwareCloudV2
|
|
241
242
|
# @return [Hash] Returns the value in the form of hash
|
242
243
|
def _to_hash(value)
|
243
244
|
if value.is_a?(Array)
|
244
|
-
value.compact.map
|
245
|
+
value.compact.map{ |v| _to_hash(v) }
|
245
246
|
elsif value.is_a?(Hash)
|
246
247
|
{}.tap do |hash|
|
247
248
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -252,5 +253,7 @@ module RusticiSoftwareCloudV2
|
|
252
253
|
value
|
253
254
|
end
|
254
255
|
end
|
256
|
+
|
255
257
|
end
|
258
|
+
|
256
259
|
end
|
@@ -3,19 +3,20 @@
|
|
3
3
|
|
4
4
|
#REST API used for SCORM Cloud integrations.
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0
|
6
|
+
OpenAPI spec version: 2.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.3
|
10
9
|
|
11
10
|
=end
|
12
11
|
|
13
12
|
require 'date'
|
14
13
|
|
15
14
|
module RusticiSoftwareCloudV2
|
15
|
+
|
16
16
|
class SettingListSchema
|
17
17
|
attr_accessor :setting_items
|
18
18
|
|
19
|
+
|
19
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
21
|
def self.attribute_map
|
21
22
|
{
|
@@ -36,31 +37,32 @@ module RusticiSoftwareCloudV2
|
|
36
37
|
return unless attributes.is_a?(Hash)
|
37
38
|
|
38
39
|
# convert string to symbol for hash key
|
39
|
-
attributes = attributes.each_with_object({})
|
40
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
40
41
|
|
41
42
|
if attributes.has_key?(:'settingItems')
|
42
43
|
if (value = attributes[:'settingItems']).is_a?(Array)
|
43
44
|
self.setting_items = value
|
44
45
|
end
|
45
46
|
end
|
47
|
+
|
46
48
|
end
|
47
49
|
|
48
50
|
# Show invalid properties with the reasons. Usually used together with valid?
|
49
|
-
# @return Array for valid
|
51
|
+
# @return Array for valid properies with the reasons
|
50
52
|
def list_invalid_properties
|
51
53
|
invalid_properties = Array.new
|
52
54
|
if @setting_items.nil?
|
53
|
-
invalid_properties.push(
|
55
|
+
invalid_properties.push("invalid value for 'setting_items', setting_items cannot be nil.")
|
54
56
|
end
|
55
57
|
|
56
|
-
invalid_properties
|
58
|
+
return invalid_properties
|
57
59
|
end
|
58
60
|
|
59
61
|
# Check to see if the all the properties in the model are valid
|
60
62
|
# @return true if the model is valid
|
61
63
|
def valid?
|
62
64
|
return false if @setting_items.nil?
|
63
|
-
true
|
65
|
+
return true
|
64
66
|
end
|
65
67
|
|
66
68
|
# Checks equality by comparing each attribute.
|
@@ -93,7 +95,7 @@ module RusticiSoftwareCloudV2
|
|
93
95
|
# check to ensure the input is an array given that the the attribute
|
94
96
|
# is documented as an array but the input is not
|
95
97
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
96
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map
|
98
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
97
99
|
end
|
98
100
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
99
101
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -175,7 +177,7 @@ module RusticiSoftwareCloudV2
|
|
175
177
|
# @return [Hash] Returns the value in the form of hash
|
176
178
|
def _to_hash(value)
|
177
179
|
if value.is_a?(Array)
|
178
|
-
value.compact.map
|
180
|
+
value.compact.map{ |v| _to_hash(v) }
|
179
181
|
elsif value.is_a?(Hash)
|
180
182
|
{}.tap do |hash|
|
181
183
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -186,5 +188,7 @@ module RusticiSoftwareCloudV2
|
|
186
188
|
value
|
187
189
|
end
|
188
190
|
end
|
191
|
+
|
189
192
|
end
|
193
|
+
|
190
194
|
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 SettingMetadata
|
17
17
|
# Default value of this setting
|
18
18
|
attr_accessor :default
|
@@ -94,7 +94,7 @@ module RusticiSoftwareCloudV2
|
|
94
94
|
return unless attributes.is_a?(Hash)
|
95
95
|
|
96
96
|
# convert string to symbol for hash key
|
97
|
-
attributes = attributes.each_with_object({})
|
97
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
98
98
|
|
99
99
|
if attributes.has_key?(:'default')
|
100
100
|
self.default = attributes[:'default']
|
@@ -121,7 +121,7 @@ module RusticiSoftwareCloudV2
|
|
121
121
|
if attributes.has_key?(:'learningStandardVariant')
|
122
122
|
self.learning_standard_variant = attributes[:'learningStandardVariant']
|
123
123
|
else
|
124
|
-
self.learning_standard_variant =
|
124
|
+
self.learning_standard_variant = "either"
|
125
125
|
end
|
126
126
|
|
127
127
|
if attributes.has_key?(:'fallback')
|
@@ -133,29 +133,30 @@ module RusticiSoftwareCloudV2
|
|
133
133
|
self.valid_values = value
|
134
134
|
end
|
135
135
|
end
|
136
|
+
|
136
137
|
end
|
137
138
|
|
138
139
|
# Show invalid properties with the reasons. Usually used together with valid?
|
139
|
-
# @return Array for valid
|
140
|
+
# @return Array for valid properies with the reasons
|
140
141
|
def list_invalid_properties
|
141
142
|
invalid_properties = Array.new
|
142
|
-
invalid_properties
|
143
|
+
return invalid_properties
|
143
144
|
end
|
144
145
|
|
145
146
|
# Check to see if the all the properties in the model are valid
|
146
147
|
# @return true if the model is valid
|
147
148
|
def valid?
|
148
|
-
learning_standard_variant_validator = EnumAttributeValidator.new('String', [
|
149
|
+
learning_standard_variant_validator = EnumAttributeValidator.new('String', ["singleScoOnly", "multiScoOnly", "either"])
|
149
150
|
return false unless learning_standard_variant_validator.valid?(@learning_standard_variant)
|
150
|
-
true
|
151
|
+
return true
|
151
152
|
end
|
152
153
|
|
153
154
|
# Custom attribute writer method checking allowed values (enum).
|
154
155
|
# @param [Object] learning_standard_variant Object to be assigned
|
155
156
|
def learning_standard_variant=(learning_standard_variant)
|
156
|
-
validator = EnumAttributeValidator.new('String', [
|
157
|
+
validator = EnumAttributeValidator.new('String', ["singleScoOnly", "multiScoOnly", "either"])
|
157
158
|
unless validator.valid?(learning_standard_variant)
|
158
|
-
fail ArgumentError,
|
159
|
+
fail ArgumentError, "invalid value for 'learning_standard_variant', must be one of #{validator.allowable_values}."
|
159
160
|
end
|
160
161
|
@learning_standard_variant = learning_standard_variant
|
161
162
|
end
|
@@ -197,7 +198,7 @@ module RusticiSoftwareCloudV2
|
|
197
198
|
# check to ensure the input is an array given that the the attribute
|
198
199
|
# is documented as an array but the input is not
|
199
200
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
200
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map
|
201
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
201
202
|
end
|
202
203
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
203
204
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -279,7 +280,7 @@ module RusticiSoftwareCloudV2
|
|
279
280
|
# @return [Hash] Returns the value in the form of hash
|
280
281
|
def _to_hash(value)
|
281
282
|
if value.is_a?(Array)
|
282
|
-
value.compact.map
|
283
|
+
value.compact.map{ |v| _to_hash(v) }
|
283
284
|
elsif value.is_a?(Hash)
|
284
285
|
{}.tap do |hash|
|
285
286
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -290,5 +291,7 @@ module RusticiSoftwareCloudV2
|
|
290
291
|
value
|
291
292
|
end
|
292
293
|
end
|
294
|
+
|
293
295
|
end
|
296
|
+
|
294
297
|
end
|
@@ -3,22 +3,23 @@
|
|
3
3
|
|
4
4
|
#REST API used for SCORM Cloud integrations.
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0
|
6
|
+
OpenAPI spec version: 2.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.3
|
10
9
|
|
11
10
|
=end
|
12
11
|
|
13
12
|
require 'date'
|
14
13
|
|
15
14
|
module RusticiSoftwareCloudV2
|
15
|
+
|
16
16
|
class SettingValidValue
|
17
17
|
attr_accessor :value
|
18
18
|
|
19
19
|
# Description of what this valid value means, how it will be applied if used in a setting
|
20
20
|
attr_accessor :value_description
|
21
21
|
|
22
|
+
|
22
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
24
|
def self.attribute_map
|
24
25
|
{
|
@@ -41,7 +42,7 @@ module RusticiSoftwareCloudV2
|
|
41
42
|
return unless attributes.is_a?(Hash)
|
42
43
|
|
43
44
|
# convert string to symbol for hash key
|
44
|
-
attributes = attributes.each_with_object({})
|
45
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
45
46
|
|
46
47
|
if attributes.has_key?(:'value')
|
47
48
|
self.value = attributes[:'value']
|
@@ -50,19 +51,20 @@ module RusticiSoftwareCloudV2
|
|
50
51
|
if attributes.has_key?(:'valueDescription')
|
51
52
|
self.value_description = attributes[:'valueDescription']
|
52
53
|
end
|
54
|
+
|
53
55
|
end
|
54
56
|
|
55
57
|
# Show invalid properties with the reasons. Usually used together with valid?
|
56
|
-
# @return Array for valid
|
58
|
+
# @return Array for valid properies with the reasons
|
57
59
|
def list_invalid_properties
|
58
60
|
invalid_properties = Array.new
|
59
|
-
invalid_properties
|
61
|
+
return invalid_properties
|
60
62
|
end
|
61
63
|
|
62
64
|
# Check to see if the all the properties in the model are valid
|
63
65
|
# @return true if the model is valid
|
64
66
|
def valid?
|
65
|
-
true
|
67
|
+
return true
|
66
68
|
end
|
67
69
|
|
68
70
|
# Checks equality by comparing each attribute.
|
@@ -96,7 +98,7 @@ module RusticiSoftwareCloudV2
|
|
96
98
|
# check to ensure the input is an array given that the the attribute
|
97
99
|
# is documented as an array but the input is not
|
98
100
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
99
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map
|
101
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
100
102
|
end
|
101
103
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
102
104
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -178,7 +180,7 @@ module RusticiSoftwareCloudV2
|
|
178
180
|
# @return [Hash] Returns the value in the form of hash
|
179
181
|
def _to_hash(value)
|
180
182
|
if value.is_a?(Array)
|
181
|
-
value.compact.map
|
183
|
+
value.compact.map{ |v| _to_hash(v) }
|
182
184
|
elsif value.is_a?(Hash)
|
183
185
|
{}.tap do |hash|
|
184
186
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -189,5 +191,7 @@ module RusticiSoftwareCloudV2
|
|
189
191
|
value
|
190
192
|
end
|
191
193
|
end
|
194
|
+
|
192
195
|
end
|
196
|
+
|
193
197
|
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 SettingsIndividualSchema
|
17
17
|
attr_accessor :setting_id
|
18
18
|
|
@@ -20,6 +20,7 @@ module RusticiSoftwareCloudV2
|
|
20
20
|
|
21
21
|
attr_accessor :explicit
|
22
22
|
|
23
|
+
|
23
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
25
|
def self.attribute_map
|
25
26
|
{
|
@@ -44,7 +45,7 @@ module RusticiSoftwareCloudV2
|
|
44
45
|
return unless attributes.is_a?(Hash)
|
45
46
|
|
46
47
|
# convert string to symbol for hash key
|
47
|
-
attributes = attributes.each_with_object({})
|
48
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
48
49
|
|
49
50
|
if attributes.has_key?(:'settingId')
|
50
51
|
self.setting_id = attributes[:'settingId']
|
@@ -59,19 +60,20 @@ module RusticiSoftwareCloudV2
|
|
59
60
|
else
|
60
61
|
self.explicit = false
|
61
62
|
end
|
63
|
+
|
62
64
|
end
|
63
65
|
|
64
66
|
# Show invalid properties with the reasons. Usually used together with valid?
|
65
|
-
# @return Array for valid
|
67
|
+
# @return Array for valid properies with the reasons
|
66
68
|
def list_invalid_properties
|
67
69
|
invalid_properties = Array.new
|
68
|
-
invalid_properties
|
70
|
+
return invalid_properties
|
69
71
|
end
|
70
72
|
|
71
73
|
# Check to see if the all the properties in the model are valid
|
72
74
|
# @return true if the model is valid
|
73
75
|
def valid?
|
74
|
-
true
|
76
|
+
return true
|
75
77
|
end
|
76
78
|
|
77
79
|
# Checks equality by comparing each attribute.
|
@@ -106,7 +108,7 @@ module RusticiSoftwareCloudV2
|
|
106
108
|
# check to ensure the input is an array given that the the attribute
|
107
109
|
# is documented as an array but the input is not
|
108
110
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
109
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map
|
111
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
110
112
|
end
|
111
113
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
112
114
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -188,7 +190,7 @@ module RusticiSoftwareCloudV2
|
|
188
190
|
# @return [Hash] Returns the value in the form of hash
|
189
191
|
def _to_hash(value)
|
190
192
|
if value.is_a?(Array)
|
191
|
-
value.compact.map
|
193
|
+
value.compact.map{ |v| _to_hash(v) }
|
192
194
|
elsif value.is_a?(Hash)
|
193
195
|
{}.tap do |hash|
|
194
196
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -199,5 +201,7 @@ module RusticiSoftwareCloudV2
|
|
199
201
|
value
|
200
202
|
end
|
201
203
|
end
|
204
|
+
|
202
205
|
end
|
206
|
+
|
203
207
|
end
|
@@ -3,19 +3,20 @@
|
|
3
3
|
|
4
4
|
#REST API used for SCORM Cloud integrations.
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0
|
6
|
+
OpenAPI spec version: 2.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.3
|
10
9
|
|
11
10
|
=end
|
12
11
|
|
13
12
|
require 'date'
|
14
13
|
|
15
14
|
module RusticiSoftwareCloudV2
|
15
|
+
|
16
16
|
class SettingsPostSchema
|
17
17
|
attr_accessor :settings
|
18
18
|
|
19
|
+
|
19
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
21
|
def self.attribute_map
|
21
22
|
{
|
@@ -36,26 +37,27 @@ module RusticiSoftwareCloudV2
|
|
36
37
|
return unless attributes.is_a?(Hash)
|
37
38
|
|
38
39
|
# convert string to symbol for hash key
|
39
|
-
attributes = attributes.each_with_object({})
|
40
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
40
41
|
|
41
42
|
if attributes.has_key?(:'settings')
|
42
43
|
if (value = attributes[:'settings']).is_a?(Array)
|
43
44
|
self.settings = value
|
44
45
|
end
|
45
46
|
end
|
47
|
+
|
46
48
|
end
|
47
49
|
|
48
50
|
# Show invalid properties with the reasons. Usually used together with valid?
|
49
|
-
# @return Array for valid
|
51
|
+
# @return Array for valid properies with the reasons
|
50
52
|
def list_invalid_properties
|
51
53
|
invalid_properties = Array.new
|
52
|
-
invalid_properties
|
54
|
+
return invalid_properties
|
53
55
|
end
|
54
56
|
|
55
57
|
# Check to see if the all the properties in the model are valid
|
56
58
|
# @return true if the model is valid
|
57
59
|
def valid?
|
58
|
-
true
|
60
|
+
return true
|
59
61
|
end
|
60
62
|
|
61
63
|
# Checks equality by comparing each attribute.
|
@@ -88,7 +90,7 @@ module RusticiSoftwareCloudV2
|
|
88
90
|
# check to ensure the input is an array given that the the attribute
|
89
91
|
# is documented as an array but the input is not
|
90
92
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
91
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map
|
93
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
92
94
|
end
|
93
95
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
94
96
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -170,7 +172,7 @@ module RusticiSoftwareCloudV2
|
|
170
172
|
# @return [Hash] Returns the value in the form of hash
|
171
173
|
def _to_hash(value)
|
172
174
|
if value.is_a?(Array)
|
173
|
-
value.compact.map
|
175
|
+
value.compact.map{ |v| _to_hash(v) }
|
174
176
|
elsif value.is_a?(Hash)
|
175
177
|
{}.tap do |hash|
|
176
178
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -181,5 +183,7 @@ module RusticiSoftwareCloudV2
|
|
181
183
|
value
|
182
184
|
end
|
183
185
|
end
|
186
|
+
|
184
187
|
end
|
188
|
+
|
185
189
|
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 SharedDataEntrySchema
|
17
17
|
attr_accessor :id
|
18
18
|
|
19
19
|
attr_accessor :value
|
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?(:'id')
|
46
47
|
self.id = attributes[:'id']
|
@@ -49,19 +50,20 @@ module RusticiSoftwareCloudV2
|
|
49
50
|
if attributes.has_key?(:'value')
|
50
51
|
self.value = attributes[:'value']
|
51
52
|
end
|
53
|
+
|
52
54
|
end
|
53
55
|
|
54
56
|
# Show invalid properties with the reasons. Usually used together with valid?
|
55
|
-
# @return Array for valid
|
57
|
+
# @return Array for valid properies with the reasons
|
56
58
|
def list_invalid_properties
|
57
59
|
invalid_properties = Array.new
|
58
|
-
invalid_properties
|
60
|
+
return invalid_properties
|
59
61
|
end
|
60
62
|
|
61
63
|
# Check to see if the all the properties in the model are valid
|
62
64
|
# @return true if the model is valid
|
63
65
|
def valid?
|
64
|
-
true
|
66
|
+
return true
|
65
67
|
end
|
66
68
|
|
67
69
|
# Checks equality by comparing each attribute.
|
@@ -95,7 +97,7 @@ module RusticiSoftwareCloudV2
|
|
95
97
|
# check to ensure the input is an array given that the the attribute
|
96
98
|
# is documented as an array but the input is not
|
97
99
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
98
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map
|
100
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
99
101
|
end
|
100
102
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
101
103
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -177,7 +179,7 @@ module RusticiSoftwareCloudV2
|
|
177
179
|
# @return [Hash] Returns the value in the form of hash
|
178
180
|
def _to_hash(value)
|
179
181
|
if value.is_a?(Array)
|
180
|
-
value.compact.map
|
182
|
+
value.compact.map{ |v| _to_hash(v) }
|
181
183
|
elsif value.is_a?(Hash)
|
182
184
|
{}.tap do |hash|
|
183
185
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -188,5 +190,7 @@ module RusticiSoftwareCloudV2
|
|
188
190
|
value
|
189
191
|
end
|
190
192
|
end
|
193
|
+
|
191
194
|
end
|
195
|
+
|
192
196
|
end
|