rustici_software_cloud_v2 1.0.2 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -4
  3. data/lib/rustici_software_cloud_v2.rb +1 -0
  4. data/lib/rustici_software_cloud_v2/api/about_api.rb +5 -5
  5. data/lib/rustici_software_cloud_v2/api/application_management_api.rb +77 -79
  6. data/lib/rustici_software_cloud_v2/api/authentication_api.rb +12 -10
  7. data/lib/rustici_software_cloud_v2/api/course_api.rb +197 -140
  8. data/lib/rustici_software_cloud_v2/api/dispatch_api.rb +247 -195
  9. data/lib/rustici_software_cloud_v2/api/invitations_api.rb +104 -85
  10. data/lib/rustici_software_cloud_v2/api/learner_api.rb +50 -35
  11. data/lib/rustici_software_cloud_v2/api/ping_api.rb +5 -7
  12. data/lib/rustici_software_cloud_v2/api/registration_api.rb +262 -150
  13. data/lib/rustici_software_cloud_v2/api/reporting_api.rb +21 -17
  14. data/lib/rustici_software_cloud_v2/api/xapi_api.rb +62 -51
  15. data/lib/rustici_software_cloud_v2/api/zoomi_api.rb +53 -42
  16. data/lib/rustici_software_cloud_v2/api_client.rb +1 -0
  17. data/lib/rustici_software_cloud_v2/api_error.rb +1 -0
  18. data/lib/rustici_software_cloud_v2/configuration.rb +1 -0
  19. data/lib/rustici_software_cloud_v2/models/about_schema.rb +7 -11
  20. data/lib/rustici_software_cloud_v2/models/activity_result_schema.rb +13 -16
  21. data/lib/rustici_software_cloud_v2/models/application_list_schema.rb +7 -11
  22. data/lib/rustici_software_cloud_v2/models/application_schema.rb +7 -11
  23. data/lib/rustici_software_cloud_v2/models/application_token.rb +7 -11
  24. data/lib/rustici_software_cloud_v2/models/batch_tags_schema.rb +9 -13
  25. data/lib/rustici_software_cloud_v2/models/comment_schema.rb +7 -11
  26. data/lib/rustici_software_cloud_v2/models/completion_amount_schema.rb +7 -11
  27. data/lib/rustici_software_cloud_v2/models/course_activity_schema.rb +10 -13
  28. data/lib/rustici_software_cloud_v2/models/course_list_non_paged_schema.rb +7 -11
  29. data/lib/rustici_software_cloud_v2/models/course_list_schema.rb +7 -11
  30. data/lib/rustici_software_cloud_v2/models/course_reference_schema.rb +7 -10
  31. data/lib/rustici_software_cloud_v2/models/course_schema.rb +10 -13
  32. data/lib/rustici_software_cloud_v2/models/create_dispatch_id_schema.rb +12 -16
  33. data/lib/rustici_software_cloud_v2/models/create_dispatch_list_schema.rb +7 -11
  34. data/lib/rustici_software_cloud_v2/models/create_dispatch_schema.rb +9 -13
  35. data/lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb +10 -14
  36. data/lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb +9 -13
  37. data/lib/rustici_software_cloud_v2/models/create_registration_schema.rb +10 -14
  38. data/lib/rustici_software_cloud_v2/models/credential_created_schema.rb +7 -11
  39. data/lib/rustici_software_cloud_v2/models/credential_list_schema.rb +7 -11
  40. data/lib/rustici_software_cloud_v2/models/credential_request_schema.rb +7 -11
  41. data/lib/rustici_software_cloud_v2/models/credential_schema.rb +7 -11
  42. data/lib/rustici_software_cloud_v2/models/destination_id_schema.rb +7 -11
  43. data/lib/rustici_software_cloud_v2/models/destination_list_schema.rb +7 -11
  44. data/lib/rustici_software_cloud_v2/models/destination_schema.rb +7 -11
  45. data/lib/rustici_software_cloud_v2/models/dispatch_id_schema.rb +7 -11
  46. data/lib/rustici_software_cloud_v2/models/dispatch_list_schema.rb +7 -11
  47. data/lib/rustici_software_cloud_v2/models/dispatch_registration_count_schema.rb +7 -11
  48. data/lib/rustici_software_cloud_v2/models/dispatch_schema.rb +7 -11
  49. data/lib/rustici_software_cloud_v2/models/enabled_schema.rb +7 -11
  50. data/lib/rustici_software_cloud_v2/models/import_fetch_request_schema.rb +8 -11
  51. data/lib/rustici_software_cloud_v2/models/import_job_result_schema.rb +10 -13
  52. data/lib/rustici_software_cloud_v2/models/import_result_schema.rb +7 -11
  53. data/lib/rustici_software_cloud_v2/models/integer_result_schema.rb +8 -12
  54. data/lib/rustici_software_cloud_v2/models/invitation_email_schema.rb +8 -11
  55. data/lib/rustici_software_cloud_v2/models/invitation_job_status_schema.rb +10 -13
  56. data/lib/rustici_software_cloud_v2/models/invitation_summary_list.rb +7 -11
  57. data/lib/rustici_software_cloud_v2/models/invitation_summary_schema.rb +7 -11
  58. data/lib/rustici_software_cloud_v2/models/item_value_pair_schema.rb +7 -11
  59. data/lib/rustici_software_cloud_v2/models/launch_auth_options_schema.rb +7 -11
  60. data/lib/rustici_software_cloud_v2/models/launch_auth_schema.rb +11 -14
  61. data/lib/rustici_software_cloud_v2/models/launch_history_list_schema.rb +7 -11
  62. data/lib/rustici_software_cloud_v2/models/launch_history_schema.rb +15 -18
  63. data/lib/rustici_software_cloud_v2/models/launch_link_request_schema.rb +8 -12
  64. data/lib/rustici_software_cloud_v2/models/launch_link_schema.rb +8 -12
  65. data/lib/rustici_software_cloud_v2/models/learner_preference_schema.rb +7 -11
  66. data/lib/rustici_software_cloud_v2/models/learner_schema.rb +8 -12
  67. data/lib/rustici_software_cloud_v2/models/message_schema.rb +8 -12
  68. data/lib/rustici_software_cloud_v2/models/metadata_schema.rb +7 -11
  69. data/lib/rustici_software_cloud_v2/models/objective_schema.rb +19 -22
  70. data/lib/rustici_software_cloud_v2/models/permissions_schema.rb +7 -11
  71. data/lib/rustici_software_cloud_v2/models/ping_schema.rb +7 -11
  72. data/lib/rustici_software_cloud_v2/models/post_back_schema.rb +15 -18
  73. data/lib/rustici_software_cloud_v2/models/private_invitation_list.rb +7 -11
  74. data/lib/rustici_software_cloud_v2/models/private_invitation_schema.rb +7 -11
  75. data/lib/rustici_software_cloud_v2/models/public_invitation_list.rb +7 -11
  76. data/lib/rustici_software_cloud_v2/models/public_invitation_schema.rb +7 -11
  77. data/lib/rustici_software_cloud_v2/models/registration_completion.rb +13 -4
  78. data/lib/rustici_software_cloud_v2/models/registration_list_schema.rb +8 -12
  79. data/lib/rustici_software_cloud_v2/models/registration_schema.rb +7 -11
  80. data/lib/rustici_software_cloud_v2/models/registration_success.rb +13 -4
  81. data/lib/rustici_software_cloud_v2/models/reportage_account_info_schema.rb +7 -11
  82. data/lib/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.rb +7 -11
  83. data/lib/rustici_software_cloud_v2/models/reportage_auth_token_schema.rb +7 -11
  84. data/lib/rustici_software_cloud_v2/models/reportage_link_schema.rb +7 -11
  85. data/lib/rustici_software_cloud_v2/models/response_error.rb +8 -12
  86. data/lib/rustici_software_cloud_v2/models/runtime_interaction_schema.rb +10 -13
  87. data/lib/rustici_software_cloud_v2/models/runtime_objective_schema.rb +15 -18
  88. data/lib/rustici_software_cloud_v2/models/runtime_schema.rb +11 -14
  89. data/lib/rustici_software_cloud_v2/models/score_schema.rb +7 -11
  90. data/lib/rustici_software_cloud_v2/models/setting_item.rb +10 -13
  91. data/lib/rustici_software_cloud_v2/models/setting_list_schema.rb +8 -12
  92. data/lib/rustici_software_cloud_v2/models/setting_metadata.rb +11 -14
  93. data/lib/rustici_software_cloud_v2/models/setting_valid_value.rb +7 -11
  94. data/lib/rustici_software_cloud_v2/models/settings_individual_schema.rb +7 -11
  95. data/lib/rustici_software_cloud_v2/models/settings_post_schema.rb +7 -11
  96. data/lib/rustici_software_cloud_v2/models/shared_data_entry_schema.rb +7 -11
  97. data/lib/rustici_software_cloud_v2/models/static_properties_schema.rb +7 -11
  98. data/lib/rustici_software_cloud_v2/models/string_result_schema.rb +8 -12
  99. data/lib/rustici_software_cloud_v2/models/tag_list_schema.rb +7 -11
  100. data/lib/rustici_software_cloud_v2/models/title_schema.rb +7 -11
  101. data/lib/rustici_software_cloud_v2/models/token_request_schema.rb +9 -13
  102. data/lib/rustici_software_cloud_v2/models/update_dispatch_schema.rb +7 -11
  103. data/lib/rustici_software_cloud_v2/models/user_invitation_list.rb +7 -11
  104. data/lib/rustici_software_cloud_v2/models/user_invitation_schema.rb +7 -11
  105. data/lib/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.rb +7 -10
  106. data/lib/rustici_software_cloud_v2/models/xapi_account.rb +9 -12
  107. data/lib/rustici_software_cloud_v2/models/xapi_activity.rb +9 -12
  108. data/lib/rustici_software_cloud_v2/models/xapi_activity_definition.rb +10 -13
  109. data/lib/rustici_software_cloud_v2/models/xapi_agent_group.rb +11 -13
  110. data/lib/rustici_software_cloud_v2/models/xapi_attachment.rb +14 -17
  111. data/lib/rustici_software_cloud_v2/models/xapi_context.rb +8 -11
  112. data/lib/rustici_software_cloud_v2/models/xapi_context_activity.rb +7 -10
  113. data/lib/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.rb +10 -13
  114. data/lib/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.rb +10 -13
  115. data/lib/rustici_software_cloud_v2/models/xapi_credential_post_schema.rb +12 -16
  116. data/lib/rustici_software_cloud_v2/models/xapi_credential_put_schema.rb +7 -11
  117. data/lib/rustici_software_cloud_v2/models/xapi_credential_schema.rb +12 -16
  118. data/lib/rustici_software_cloud_v2/models/xapi_credentials_list_schema.rb +8 -12
  119. data/lib/rustici_software_cloud_v2/models/xapi_endpoint_schema.rb +7 -11
  120. data/lib/rustici_software_cloud_v2/models/xapi_interaction_component.rb +9 -12
  121. data/lib/rustici_software_cloud_v2/models/xapi_result.rb +8 -11
  122. data/lib/rustici_software_cloud_v2/models/xapi_score.rb +7 -10
  123. data/lib/rustici_software_cloud_v2/models/xapi_statement.rb +7 -10
  124. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.rb +8 -12
  125. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.rb +8 -12
  126. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_put_schema.rb +7 -11
  127. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.rb +7 -11
  128. data/lib/rustici_software_cloud_v2/models/xapi_statement_reference.rb +10 -13
  129. data/lib/rustici_software_cloud_v2/models/xapi_statement_result.rb +8 -11
  130. data/lib/rustici_software_cloud_v2/models/xapi_verb.rb +9 -12
  131. data/lib/rustici_software_cloud_v2/models/zoomi_company_id.rb +7 -11
  132. data/lib/rustici_software_cloud_v2/models/zoomi_course_options_schema.rb +7 -11
  133. data/lib/rustici_software_cloud_v2/version.rb +2 -1
  134. data/rustici_software_cloud_v2.gemspec +8 -7
  135. data/spec/api_client_spec.rb +35 -34
  136. data/spec/configuration_spec.rb +9 -8
  137. data/spec/spec_helper.rb +1 -0
  138. 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 = "UNKNOWN"
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 = "UNKNOWN"
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 properies with the reasons
137
+ # @return Array for valid properties with the reasons
139
138
  def list_invalid_properties
140
139
  invalid_properties = Array.new
141
- return invalid_properties
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', ["UNKNOWN", "PASSED", "FAILED"])
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', ["UNKNOWN", "COMPLETED", "INCOMPLETE", "NOT_ATTEMPTED", "BROWSED"])
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
- return true
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', ["UNKNOWN", "PASSED", "FAILED"])
156
+ validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
158
157
  unless validator.valid?(runtime_objective_success_status)
159
- fail ArgumentError, "invalid value for 'runtime_objective_success_status', must be one of #{validator.allowable_values}."
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', ["UNKNOWN", "COMPLETED", "INCOMPLETE", "NOT_ATTEMPTED", "BROWSED"])
166
+ validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'COMPLETED', 'INCOMPLETE', 'NOT_ATTEMPTED', 'BROWSED'])
168
167
  unless validator.valid?(runtime_objective_completion_status)
169
- fail ArgumentError, "invalid value for 'runtime_objective_completion_status', must be one of #{validator.allowable_values}."
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 = "UNKNOWN"
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 properies with the reasons
231
+ # @return Array for valid properties with the reasons
233
232
  def list_invalid_properties
234
233
  invalid_properties = Array.new
235
- return invalid_properties
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', ["UNKNOWN", "PASSED", "FAILED"])
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
- return true
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', ["UNKNOWN", "PASSED", "FAILED"])
248
+ validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
250
249
  unless validator.valid?(runtime_success_status)
251
- fail ArgumentError, "invalid value for 'runtime_success_status', must be one of #{validator.allowable_values}."
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 properies with the reasons
48
+ # @return Array for valid properties with the reasons
51
49
  def list_invalid_properties
52
50
  invalid_properties = Array.new
53
- return invalid_properties
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
- return true
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 properies with the reasons
104
+ # @return Array for valid properties with the reasons
106
105
  def list_invalid_properties
107
106
  invalid_properties = Array.new
108
- return invalid_properties
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', ["default", "application", "learningStandardForApplication", "dispatchDestination", "course", "dispatch", "registration"])
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
- return true
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', ["default", "application", "learningStandardForApplication", "dispatchDestination", "course", "dispatch", "registration"])
121
+ validator = EnumAttributeValidator.new('String', ['default', 'application', 'learningStandardForApplication', 'dispatchDestination', 'course', 'dispatch', 'registration'])
123
122
  unless validator.valid?(effective_value_source)
124
- fail ArgumentError, "invalid value for 'effective_value_source', must be one of #{validator.allowable_values}."
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 properies with the reasons
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("invalid value for 'setting_items', setting_items cannot be nil.")
53
+ invalid_properties.push('invalid value for "setting_items", setting_items cannot be nil.')
56
54
  end
57
55
 
58
- return invalid_properties
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
- return true
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 = "either"
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 properies with the reasons
139
+ # @return Array for valid properties with the reasons
141
140
  def list_invalid_properties
142
141
  invalid_properties = Array.new
143
- return invalid_properties
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', ["singleScoOnly", "multiScoOnly", "either"])
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
- return true
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', ["singleScoOnly", "multiScoOnly", "either"])
156
+ validator = EnumAttributeValidator.new('String', ['singleScoOnly', 'multiScoOnly', 'either'])
158
157
  unless validator.valid?(learning_standard_variant)
159
- fail ArgumentError, "invalid value for 'learning_standard_variant', must be one of #{validator.allowable_values}."
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