rustici_software_cloud_v2 1.0.2 → 1.1.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 +4 -4
- data/README.md +5 -4
- data/lib/rustici_software_cloud_v2.rb +1 -0
- data/lib/rustici_software_cloud_v2/api/about_api.rb +5 -5
- data/lib/rustici_software_cloud_v2/api/application_management_api.rb +77 -79
- data/lib/rustici_software_cloud_v2/api/authentication_api.rb +12 -10
- data/lib/rustici_software_cloud_v2/api/course_api.rb +197 -140
- data/lib/rustici_software_cloud_v2/api/dispatch_api.rb +247 -195
- data/lib/rustici_software_cloud_v2/api/invitations_api.rb +104 -85
- data/lib/rustici_software_cloud_v2/api/learner_api.rb +50 -35
- data/lib/rustici_software_cloud_v2/api/ping_api.rb +5 -7
- data/lib/rustici_software_cloud_v2/api/registration_api.rb +262 -150
- data/lib/rustici_software_cloud_v2/api/reporting_api.rb +21 -17
- data/lib/rustici_software_cloud_v2/api/xapi_api.rb +62 -51
- data/lib/rustici_software_cloud_v2/api/zoomi_api.rb +53 -42
- data/lib/rustici_software_cloud_v2/api_client.rb +1 -0
- data/lib/rustici_software_cloud_v2/api_error.rb +1 -0
- data/lib/rustici_software_cloud_v2/configuration.rb +1 -0
- data/lib/rustici_software_cloud_v2/models/about_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/activity_result_schema.rb +13 -16
- data/lib/rustici_software_cloud_v2/models/application_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/application_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/application_token.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/batch_tags_schema.rb +9 -13
- data/lib/rustici_software_cloud_v2/models/comment_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/completion_amount_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/course_activity_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/course_list_non_paged_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/course_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/course_reference_schema.rb +7 -10
- data/lib/rustici_software_cloud_v2/models/course_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/create_dispatch_id_schema.rb +12 -16
- data/lib/rustici_software_cloud_v2/models/create_dispatch_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/create_dispatch_schema.rb +9 -13
- data/lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb +10 -14
- data/lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb +9 -13
- data/lib/rustici_software_cloud_v2/models/create_registration_schema.rb +10 -14
- data/lib/rustici_software_cloud_v2/models/credential_created_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/credential_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/credential_request_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/credential_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/destination_id_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/destination_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/destination_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/dispatch_id_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/dispatch_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/dispatch_registration_count_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/dispatch_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/enabled_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/import_fetch_request_schema.rb +8 -11
- data/lib/rustici_software_cloud_v2/models/import_job_result_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/import_result_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/integer_result_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/invitation_email_schema.rb +8 -11
- data/lib/rustici_software_cloud_v2/models/invitation_job_status_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/invitation_summary_list.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/invitation_summary_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/item_value_pair_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/launch_auth_options_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/launch_auth_schema.rb +11 -14
- data/lib/rustici_software_cloud_v2/models/launch_history_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/launch_history_schema.rb +15 -18
- data/lib/rustici_software_cloud_v2/models/launch_link_request_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/launch_link_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/learner_preference_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/learner_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/message_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/metadata_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/objective_schema.rb +19 -22
- data/lib/rustici_software_cloud_v2/models/permissions_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/ping_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/post_back_schema.rb +15 -18
- data/lib/rustici_software_cloud_v2/models/private_invitation_list.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/private_invitation_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/public_invitation_list.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/public_invitation_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/registration_completion.rb +13 -4
- data/lib/rustici_software_cloud_v2/models/registration_list_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/registration_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/registration_success.rb +13 -4
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/reportage_auth_token_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/reportage_link_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/response_error.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/runtime_interaction_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/runtime_objective_schema.rb +15 -18
- data/lib/rustici_software_cloud_v2/models/runtime_schema.rb +11 -14
- data/lib/rustici_software_cloud_v2/models/score_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/setting_item.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/setting_list_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/setting_metadata.rb +11 -14
- data/lib/rustici_software_cloud_v2/models/setting_valid_value.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/settings_individual_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/settings_post_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/shared_data_entry_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/static_properties_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/string_result_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/tag_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/title_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/token_request_schema.rb +9 -13
- data/lib/rustici_software_cloud_v2/models/update_dispatch_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/user_invitation_list.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.rb +7 -10
- data/lib/rustici_software_cloud_v2/models/xapi_account.rb +9 -12
- data/lib/rustici_software_cloud_v2/models/xapi_activity.rb +9 -12
- data/lib/rustici_software_cloud_v2/models/xapi_activity_definition.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/xapi_agent_group.rb +11 -13
- data/lib/rustici_software_cloud_v2/models/xapi_attachment.rb +14 -17
- data/lib/rustici_software_cloud_v2/models/xapi_context.rb +8 -11
- data/lib/rustici_software_cloud_v2/models/xapi_context_activity.rb +7 -10
- data/lib/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/xapi_credential_post_schema.rb +12 -16
- data/lib/rustici_software_cloud_v2/models/xapi_credential_put_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/xapi_credential_schema.rb +12 -16
- data/lib/rustici_software_cloud_v2/models/xapi_credentials_list_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/xapi_endpoint_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/xapi_interaction_component.rb +9 -12
- data/lib/rustici_software_cloud_v2/models/xapi_result.rb +8 -11
- data/lib/rustici_software_cloud_v2/models/xapi_score.rb +7 -10
- data/lib/rustici_software_cloud_v2/models/xapi_statement.rb +7 -10
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_put_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/xapi_statement_reference.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/xapi_statement_result.rb +8 -11
- data/lib/rustici_software_cloud_v2/models/xapi_verb.rb +9 -12
- data/lib/rustici_software_cloud_v2/models/zoomi_company_id.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/zoomi_course_options_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/version.rb +2 -1
- data/rustici_software_cloud_v2.gemspec +8 -7
- data/spec/api_client_spec.rb +35 -34
- data/spec/configuration_spec.rb +9 -8
- data/spec/spec_helper.rb +1 -0
- metadata +16 -16
|
@@ -6,13 +6,13 @@
|
|
|
6
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.12
|
|
9
10
|
|
|
10
11
|
=end
|
|
11
12
|
|
|
12
13
|
require 'date'
|
|
13
14
|
|
|
14
15
|
module RusticiSoftwareCloudV2
|
|
15
|
-
|
|
16
16
|
class RuntimeObjectiveSchema
|
|
17
17
|
attr_accessor :id
|
|
18
18
|
|
|
@@ -90,7 +90,7 @@ module RusticiSoftwareCloudV2
|
|
|
90
90
|
return unless attributes.is_a?(Hash)
|
|
91
91
|
|
|
92
92
|
# convert string to symbol for hash key
|
|
93
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
93
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
94
94
|
|
|
95
95
|
if attributes.has_key?(:'id')
|
|
96
96
|
self.id = attributes[:'id']
|
|
@@ -115,13 +115,13 @@ module RusticiSoftwareCloudV2
|
|
|
115
115
|
if attributes.has_key?(:'runtimeObjectiveSuccessStatus')
|
|
116
116
|
self.runtime_objective_success_status = attributes[:'runtimeObjectiveSuccessStatus']
|
|
117
117
|
else
|
|
118
|
-
self.runtime_objective_success_status =
|
|
118
|
+
self.runtime_objective_success_status = 'UNKNOWN'
|
|
119
119
|
end
|
|
120
120
|
|
|
121
121
|
if attributes.has_key?(:'runtimeObjectiveCompletionStatus')
|
|
122
122
|
self.runtime_objective_completion_status = attributes[:'runtimeObjectiveCompletionStatus']
|
|
123
123
|
else
|
|
124
|
-
self.runtime_objective_completion_status =
|
|
124
|
+
self.runtime_objective_completion_status = 'UNKNOWN'
|
|
125
125
|
end
|
|
126
126
|
|
|
127
127
|
if attributes.has_key?(:'progressMeasure')
|
|
@@ -131,32 +131,31 @@ module RusticiSoftwareCloudV2
|
|
|
131
131
|
if attributes.has_key?(:'description')
|
|
132
132
|
self.description = attributes[:'description']
|
|
133
133
|
end
|
|
134
|
-
|
|
135
134
|
end
|
|
136
135
|
|
|
137
136
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
138
|
-
# @return Array for valid
|
|
137
|
+
# @return Array for valid properties with the reasons
|
|
139
138
|
def list_invalid_properties
|
|
140
139
|
invalid_properties = Array.new
|
|
141
|
-
|
|
140
|
+
invalid_properties
|
|
142
141
|
end
|
|
143
142
|
|
|
144
143
|
# Check to see if the all the properties in the model are valid
|
|
145
144
|
# @return true if the model is valid
|
|
146
145
|
def valid?
|
|
147
|
-
runtime_objective_success_status_validator = EnumAttributeValidator.new('String', [
|
|
146
|
+
runtime_objective_success_status_validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
|
|
148
147
|
return false unless runtime_objective_success_status_validator.valid?(@runtime_objective_success_status)
|
|
149
|
-
runtime_objective_completion_status_validator = EnumAttributeValidator.new('String', [
|
|
148
|
+
runtime_objective_completion_status_validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'COMPLETED', 'INCOMPLETE', 'NOT_ATTEMPTED', 'BROWSED'])
|
|
150
149
|
return false unless runtime_objective_completion_status_validator.valid?(@runtime_objective_completion_status)
|
|
151
|
-
|
|
150
|
+
true
|
|
152
151
|
end
|
|
153
152
|
|
|
154
153
|
# Custom attribute writer method checking allowed values (enum).
|
|
155
154
|
# @param [Object] runtime_objective_success_status Object to be assigned
|
|
156
155
|
def runtime_objective_success_status=(runtime_objective_success_status)
|
|
157
|
-
validator = EnumAttributeValidator.new('String', [
|
|
156
|
+
validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
|
|
158
157
|
unless validator.valid?(runtime_objective_success_status)
|
|
159
|
-
fail ArgumentError,
|
|
158
|
+
fail ArgumentError, 'invalid value for "runtime_objective_success_status", must be one of #{validator.allowable_values}.'
|
|
160
159
|
end
|
|
161
160
|
@runtime_objective_success_status = runtime_objective_success_status
|
|
162
161
|
end
|
|
@@ -164,9 +163,9 @@ module RusticiSoftwareCloudV2
|
|
|
164
163
|
# Custom attribute writer method checking allowed values (enum).
|
|
165
164
|
# @param [Object] runtime_objective_completion_status Object to be assigned
|
|
166
165
|
def runtime_objective_completion_status=(runtime_objective_completion_status)
|
|
167
|
-
validator = EnumAttributeValidator.new('String', [
|
|
166
|
+
validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'COMPLETED', 'INCOMPLETE', 'NOT_ATTEMPTED', 'BROWSED'])
|
|
168
167
|
unless validator.valid?(runtime_objective_completion_status)
|
|
169
|
-
fail ArgumentError,
|
|
168
|
+
fail ArgumentError, 'invalid value for "runtime_objective_completion_status", must be one of #{validator.allowable_values}.'
|
|
170
169
|
end
|
|
171
170
|
@runtime_objective_completion_status = runtime_objective_completion_status
|
|
172
171
|
end
|
|
@@ -209,7 +208,7 @@ module RusticiSoftwareCloudV2
|
|
|
209
208
|
# check to ensure the input is an array given that the the attribute
|
|
210
209
|
# is documented as an array but the input is not
|
|
211
210
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
212
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
211
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
213
212
|
end
|
|
214
213
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
215
214
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -291,7 +290,7 @@ module RusticiSoftwareCloudV2
|
|
|
291
290
|
# @return [Hash] Returns the value in the form of hash
|
|
292
291
|
def _to_hash(value)
|
|
293
292
|
if value.is_a?(Array)
|
|
294
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
293
|
+
value.compact.map { |v| _to_hash(v) }
|
|
295
294
|
elsif value.is_a?(Hash)
|
|
296
295
|
{}.tap do |hash|
|
|
297
296
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -302,7 +301,5 @@ module RusticiSoftwareCloudV2
|
|
|
302
301
|
value
|
|
303
302
|
end
|
|
304
303
|
end
|
|
305
|
-
|
|
306
304
|
end
|
|
307
|
-
|
|
308
305
|
end
|
|
@@ -6,13 +6,13 @@
|
|
|
6
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.12
|
|
9
10
|
|
|
10
11
|
=end
|
|
11
12
|
|
|
12
13
|
require 'date'
|
|
13
14
|
|
|
14
15
|
module RusticiSoftwareCloudV2
|
|
15
|
-
|
|
16
16
|
class RuntimeSchema
|
|
17
17
|
attr_accessor :completion_status
|
|
18
18
|
|
|
@@ -134,7 +134,7 @@ module RusticiSoftwareCloudV2
|
|
|
134
134
|
return unless attributes.is_a?(Hash)
|
|
135
135
|
|
|
136
136
|
# convert string to symbol for hash key
|
|
137
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
137
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
138
138
|
|
|
139
139
|
if attributes.has_key?(:'completionStatus')
|
|
140
140
|
self.completion_status = attributes[:'completionStatus']
|
|
@@ -195,7 +195,7 @@ module RusticiSoftwareCloudV2
|
|
|
195
195
|
if attributes.has_key?(:'runtimeSuccessStatus')
|
|
196
196
|
self.runtime_success_status = attributes[:'runtimeSuccessStatus']
|
|
197
197
|
else
|
|
198
|
-
self.runtime_success_status =
|
|
198
|
+
self.runtime_success_status = 'UNKNOWN'
|
|
199
199
|
end
|
|
200
200
|
|
|
201
201
|
if attributes.has_key?(:'suspendData')
|
|
@@ -225,30 +225,29 @@ module RusticiSoftwareCloudV2
|
|
|
225
225
|
self.runtime_objectives = value
|
|
226
226
|
end
|
|
227
227
|
end
|
|
228
|
-
|
|
229
228
|
end
|
|
230
229
|
|
|
231
230
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
232
|
-
# @return Array for valid
|
|
231
|
+
# @return Array for valid properties with the reasons
|
|
233
232
|
def list_invalid_properties
|
|
234
233
|
invalid_properties = Array.new
|
|
235
|
-
|
|
234
|
+
invalid_properties
|
|
236
235
|
end
|
|
237
236
|
|
|
238
237
|
# Check to see if the all the properties in the model are valid
|
|
239
238
|
# @return true if the model is valid
|
|
240
239
|
def valid?
|
|
241
|
-
runtime_success_status_validator = EnumAttributeValidator.new('String', [
|
|
240
|
+
runtime_success_status_validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
|
|
242
241
|
return false unless runtime_success_status_validator.valid?(@runtime_success_status)
|
|
243
|
-
|
|
242
|
+
true
|
|
244
243
|
end
|
|
245
244
|
|
|
246
245
|
# Custom attribute writer method checking allowed values (enum).
|
|
247
246
|
# @param [Object] runtime_success_status Object to be assigned
|
|
248
247
|
def runtime_success_status=(runtime_success_status)
|
|
249
|
-
validator = EnumAttributeValidator.new('String', [
|
|
248
|
+
validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
|
|
250
249
|
unless validator.valid?(runtime_success_status)
|
|
251
|
-
fail ArgumentError,
|
|
250
|
+
fail ArgumentError, 'invalid value for "runtime_success_status", must be one of #{validator.allowable_values}.'
|
|
252
251
|
end
|
|
253
252
|
@runtime_success_status = runtime_success_status
|
|
254
253
|
end
|
|
@@ -302,7 +301,7 @@ module RusticiSoftwareCloudV2
|
|
|
302
301
|
# check to ensure the input is an array given that the the attribute
|
|
303
302
|
# is documented as an array but the input is not
|
|
304
303
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
305
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
304
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
306
305
|
end
|
|
307
306
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
308
307
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -384,7 +383,7 @@ module RusticiSoftwareCloudV2
|
|
|
384
383
|
# @return [Hash] Returns the value in the form of hash
|
|
385
384
|
def _to_hash(value)
|
|
386
385
|
if value.is_a?(Array)
|
|
387
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
386
|
+
value.compact.map { |v| _to_hash(v) }
|
|
388
387
|
elsif value.is_a?(Hash)
|
|
389
388
|
{}.tap do |hash|
|
|
390
389
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -395,7 +394,5 @@ module RusticiSoftwareCloudV2
|
|
|
395
394
|
value
|
|
396
395
|
end
|
|
397
396
|
end
|
|
398
|
-
|
|
399
397
|
end
|
|
400
|
-
|
|
401
398
|
end
|
|
@@ -6,18 +6,17 @@
|
|
|
6
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.12
|
|
9
10
|
|
|
10
11
|
=end
|
|
11
12
|
|
|
12
13
|
require 'date'
|
|
13
14
|
|
|
14
15
|
module RusticiSoftwareCloudV2
|
|
15
|
-
|
|
16
16
|
class ScoreSchema
|
|
17
17
|
# Scaled score between 0 and 100
|
|
18
18
|
attr_accessor :scaled
|
|
19
19
|
|
|
20
|
-
|
|
21
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
21
|
def self.attribute_map
|
|
23
22
|
{
|
|
@@ -38,25 +37,24 @@ module RusticiSoftwareCloudV2
|
|
|
38
37
|
return unless attributes.is_a?(Hash)
|
|
39
38
|
|
|
40
39
|
# convert string to symbol for hash key
|
|
41
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
40
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
42
41
|
|
|
43
42
|
if attributes.has_key?(:'scaled')
|
|
44
43
|
self.scaled = attributes[:'scaled']
|
|
45
44
|
end
|
|
46
|
-
|
|
47
45
|
end
|
|
48
46
|
|
|
49
47
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
50
|
-
# @return Array for valid
|
|
48
|
+
# @return Array for valid properties with the reasons
|
|
51
49
|
def list_invalid_properties
|
|
52
50
|
invalid_properties = Array.new
|
|
53
|
-
|
|
51
|
+
invalid_properties
|
|
54
52
|
end
|
|
55
53
|
|
|
56
54
|
# Check to see if the all the properties in the model are valid
|
|
57
55
|
# @return true if the model is valid
|
|
58
56
|
def valid?
|
|
59
|
-
|
|
57
|
+
true
|
|
60
58
|
end
|
|
61
59
|
|
|
62
60
|
# Checks equality by comparing each attribute.
|
|
@@ -89,7 +87,7 @@ module RusticiSoftwareCloudV2
|
|
|
89
87
|
# check to ensure the input is an array given that the the attribute
|
|
90
88
|
# is documented as an array but the input is not
|
|
91
89
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
92
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
90
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
93
91
|
end
|
|
94
92
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
95
93
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -171,7 +169,7 @@ module RusticiSoftwareCloudV2
|
|
|
171
169
|
# @return [Hash] Returns the value in the form of hash
|
|
172
170
|
def _to_hash(value)
|
|
173
171
|
if value.is_a?(Array)
|
|
174
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
172
|
+
value.compact.map { |v| _to_hash(v) }
|
|
175
173
|
elsif value.is_a?(Hash)
|
|
176
174
|
{}.tap do |hash|
|
|
177
175
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -182,7 +180,5 @@ module RusticiSoftwareCloudV2
|
|
|
182
180
|
value
|
|
183
181
|
end
|
|
184
182
|
end
|
|
185
|
-
|
|
186
183
|
end
|
|
187
|
-
|
|
188
184
|
end
|
|
@@ -6,13 +6,13 @@
|
|
|
6
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.12
|
|
9
10
|
|
|
10
11
|
=end
|
|
11
12
|
|
|
12
13
|
require 'date'
|
|
13
14
|
|
|
14
15
|
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({}){|(k,v), h| h[k.to_sym] = v}
|
|
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,30 +98,29 @@ module RusticiSoftwareCloudV2
|
|
|
98
98
|
if attributes.has_key?(:'metadata')
|
|
99
99
|
self.metadata = attributes[:'metadata']
|
|
100
100
|
end
|
|
101
|
-
|
|
102
101
|
end
|
|
103
102
|
|
|
104
103
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
105
|
-
# @return Array for valid
|
|
104
|
+
# @return Array for valid properties with the reasons
|
|
106
105
|
def list_invalid_properties
|
|
107
106
|
invalid_properties = Array.new
|
|
108
|
-
|
|
107
|
+
invalid_properties
|
|
109
108
|
end
|
|
110
109
|
|
|
111
110
|
# Check to see if the all the properties in the model are valid
|
|
112
111
|
# @return true if the model is valid
|
|
113
112
|
def valid?
|
|
114
|
-
effective_value_source_validator = EnumAttributeValidator.new('String', [
|
|
113
|
+
effective_value_source_validator = EnumAttributeValidator.new('String', ['default', 'application', 'learningStandardForApplication', 'dispatchDestination', 'course', 'dispatch', 'registration'])
|
|
115
114
|
return false unless effective_value_source_validator.valid?(@effective_value_source)
|
|
116
|
-
|
|
115
|
+
true
|
|
117
116
|
end
|
|
118
117
|
|
|
119
118
|
# Custom attribute writer method checking allowed values (enum).
|
|
120
119
|
# @param [Object] effective_value_source Object to be assigned
|
|
121
120
|
def effective_value_source=(effective_value_source)
|
|
122
|
-
validator = EnumAttributeValidator.new('String', [
|
|
121
|
+
validator = EnumAttributeValidator.new('String', ['default', 'application', 'learningStandardForApplication', 'dispatchDestination', 'course', 'dispatch', 'registration'])
|
|
123
122
|
unless validator.valid?(effective_value_source)
|
|
124
|
-
fail ArgumentError,
|
|
123
|
+
fail ArgumentError, 'invalid value for "effective_value_source", must be one of #{validator.allowable_values}.'
|
|
125
124
|
end
|
|
126
125
|
@effective_value_source = effective_value_source
|
|
127
126
|
end
|
|
@@ -160,7 +159,7 @@ module RusticiSoftwareCloudV2
|
|
|
160
159
|
# check to ensure the input is an array given that the the attribute
|
|
161
160
|
# is documented as an array but the input is not
|
|
162
161
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
163
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
162
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
164
163
|
end
|
|
165
164
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
166
165
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -242,7 +241,7 @@ module RusticiSoftwareCloudV2
|
|
|
242
241
|
# @return [Hash] Returns the value in the form of hash
|
|
243
242
|
def _to_hash(value)
|
|
244
243
|
if value.is_a?(Array)
|
|
245
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
244
|
+
value.compact.map { |v| _to_hash(v) }
|
|
246
245
|
elsif value.is_a?(Hash)
|
|
247
246
|
{}.tap do |hash|
|
|
248
247
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -253,7 +252,5 @@ module RusticiSoftwareCloudV2
|
|
|
253
252
|
value
|
|
254
253
|
end
|
|
255
254
|
end
|
|
256
|
-
|
|
257
255
|
end
|
|
258
|
-
|
|
259
256
|
end
|
|
@@ -6,17 +6,16 @@
|
|
|
6
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.12
|
|
9
10
|
|
|
10
11
|
=end
|
|
11
12
|
|
|
12
13
|
require 'date'
|
|
13
14
|
|
|
14
15
|
module RusticiSoftwareCloudV2
|
|
15
|
-
|
|
16
16
|
class SettingListSchema
|
|
17
17
|
attr_accessor :setting_items
|
|
18
18
|
|
|
19
|
-
|
|
20
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
20
|
def self.attribute_map
|
|
22
21
|
{
|
|
@@ -37,32 +36,31 @@ module RusticiSoftwareCloudV2
|
|
|
37
36
|
return unless attributes.is_a?(Hash)
|
|
38
37
|
|
|
39
38
|
# convert string to symbol for hash key
|
|
40
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
39
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
41
40
|
|
|
42
41
|
if attributes.has_key?(:'settingItems')
|
|
43
42
|
if (value = attributes[:'settingItems']).is_a?(Array)
|
|
44
43
|
self.setting_items = value
|
|
45
44
|
end
|
|
46
45
|
end
|
|
47
|
-
|
|
48
46
|
end
|
|
49
47
|
|
|
50
48
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
51
|
-
# @return Array for valid
|
|
49
|
+
# @return Array for valid properties with the reasons
|
|
52
50
|
def list_invalid_properties
|
|
53
51
|
invalid_properties = Array.new
|
|
54
52
|
if @setting_items.nil?
|
|
55
|
-
invalid_properties.push(
|
|
53
|
+
invalid_properties.push('invalid value for "setting_items", setting_items cannot be nil.')
|
|
56
54
|
end
|
|
57
55
|
|
|
58
|
-
|
|
56
|
+
invalid_properties
|
|
59
57
|
end
|
|
60
58
|
|
|
61
59
|
# Check to see if the all the properties in the model are valid
|
|
62
60
|
# @return true if the model is valid
|
|
63
61
|
def valid?
|
|
64
62
|
return false if @setting_items.nil?
|
|
65
|
-
|
|
63
|
+
true
|
|
66
64
|
end
|
|
67
65
|
|
|
68
66
|
# Checks equality by comparing each attribute.
|
|
@@ -95,7 +93,7 @@ module RusticiSoftwareCloudV2
|
|
|
95
93
|
# check to ensure the input is an array given that the the attribute
|
|
96
94
|
# is documented as an array but the input is not
|
|
97
95
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
98
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
96
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
99
97
|
end
|
|
100
98
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
101
99
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -177,7 +175,7 @@ module RusticiSoftwareCloudV2
|
|
|
177
175
|
# @return [Hash] Returns the value in the form of hash
|
|
178
176
|
def _to_hash(value)
|
|
179
177
|
if value.is_a?(Array)
|
|
180
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
178
|
+
value.compact.map { |v| _to_hash(v) }
|
|
181
179
|
elsif value.is_a?(Hash)
|
|
182
180
|
{}.tap do |hash|
|
|
183
181
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -188,7 +186,5 @@ module RusticiSoftwareCloudV2
|
|
|
188
186
|
value
|
|
189
187
|
end
|
|
190
188
|
end
|
|
191
|
-
|
|
192
189
|
end
|
|
193
|
-
|
|
194
190
|
end
|
|
@@ -6,13 +6,13 @@
|
|
|
6
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.12
|
|
9
10
|
|
|
10
11
|
=end
|
|
11
12
|
|
|
12
13
|
require 'date'
|
|
13
14
|
|
|
14
15
|
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({}){|(k,v), h| h[k.to_sym] = v}
|
|
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,30 +133,29 @@ module RusticiSoftwareCloudV2
|
|
|
133
133
|
self.valid_values = value
|
|
134
134
|
end
|
|
135
135
|
end
|
|
136
|
-
|
|
137
136
|
end
|
|
138
137
|
|
|
139
138
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
140
|
-
# @return Array for valid
|
|
139
|
+
# @return Array for valid properties with the reasons
|
|
141
140
|
def list_invalid_properties
|
|
142
141
|
invalid_properties = Array.new
|
|
143
|
-
|
|
142
|
+
invalid_properties
|
|
144
143
|
end
|
|
145
144
|
|
|
146
145
|
# Check to see if the all the properties in the model are valid
|
|
147
146
|
# @return true if the model is valid
|
|
148
147
|
def valid?
|
|
149
|
-
learning_standard_variant_validator = EnumAttributeValidator.new('String', [
|
|
148
|
+
learning_standard_variant_validator = EnumAttributeValidator.new('String', ['singleScoOnly', 'multiScoOnly', 'either'])
|
|
150
149
|
return false unless learning_standard_variant_validator.valid?(@learning_standard_variant)
|
|
151
|
-
|
|
150
|
+
true
|
|
152
151
|
end
|
|
153
152
|
|
|
154
153
|
# Custom attribute writer method checking allowed values (enum).
|
|
155
154
|
# @param [Object] learning_standard_variant Object to be assigned
|
|
156
155
|
def learning_standard_variant=(learning_standard_variant)
|
|
157
|
-
validator = EnumAttributeValidator.new('String', [
|
|
156
|
+
validator = EnumAttributeValidator.new('String', ['singleScoOnly', 'multiScoOnly', 'either'])
|
|
158
157
|
unless validator.valid?(learning_standard_variant)
|
|
159
|
-
fail ArgumentError,
|
|
158
|
+
fail ArgumentError, 'invalid value for "learning_standard_variant", must be one of #{validator.allowable_values}.'
|
|
160
159
|
end
|
|
161
160
|
@learning_standard_variant = learning_standard_variant
|
|
162
161
|
end
|
|
@@ -198,7 +197,7 @@ module RusticiSoftwareCloudV2
|
|
|
198
197
|
# check to ensure the input is an array given that the the attribute
|
|
199
198
|
# is documented as an array but the input is not
|
|
200
199
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
201
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
200
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
202
201
|
end
|
|
203
202
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
204
203
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -280,7 +279,7 @@ module RusticiSoftwareCloudV2
|
|
|
280
279
|
# @return [Hash] Returns the value in the form of hash
|
|
281
280
|
def _to_hash(value)
|
|
282
281
|
if value.is_a?(Array)
|
|
283
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
282
|
+
value.compact.map { |v| _to_hash(v) }
|
|
284
283
|
elsif value.is_a?(Hash)
|
|
285
284
|
{}.tap do |hash|
|
|
286
285
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -291,7 +290,5 @@ module RusticiSoftwareCloudV2
|
|
|
291
290
|
value
|
|
292
291
|
end
|
|
293
292
|
end
|
|
294
|
-
|
|
295
293
|
end
|
|
296
|
-
|
|
297
294
|
end
|