rustici_software_cloud_v2 1.1.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (161) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +355 -356
  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 +191 -63
  6. data/lib/rustici_software_cloud_v2/api/authentication_api.rb +10 -18
  7. data/lib/rustici_software_cloud_v2/api/content_connectors_api.rb +236 -0
  8. data/lib/rustici_software_cloud_v2/api/course_api.rb +1046 -225
  9. data/lib/rustici_software_cloud_v2/api/dispatch_api.rb +634 -269
  10. data/lib/rustici_software_cloud_v2/api/invitations_api.rb +213 -171
  11. data/lib/rustici_software_cloud_v2/api/learner_api.rb +49 -49
  12. data/lib/rustici_software_cloud_v2/api/ping_api.rb +3 -1
  13. data/lib/rustici_software_cloud_v2/api/registration_api.rb +256 -270
  14. data/lib/rustici_software_cloud_v2/api/reporting_api.rb +20 -24
  15. data/lib/rustici_software_cloud_v2/api/xapi_api.rb +82 -67
  16. data/lib/rustici_software_cloud_v2/api/zoomi_api.rb +125 -56
  17. data/lib/rustici_software_cloud_v2/api_client.rb +3 -3
  18. data/lib/rustici_software_cloud_v2/api_error.rb +1 -1
  19. data/lib/rustici_software_cloud_v2/configuration.rb +11 -4
  20. data/lib/rustici_software_cloud_v2/models/about_schema.rb +4 -2
  21. data/lib/rustici_software_cloud_v2/models/activity_result_schema.rb +9 -37
  22. data/lib/rustici_software_cloud_v2/models/application_info_schema.rb +234 -0
  23. data/lib/rustici_software_cloud_v2/models/application_list_schema.rb +4 -2
  24. data/lib/rustici_software_cloud_v2/models/application_request_schema.rb +186 -0
  25. data/lib/rustici_software_cloud_v2/models/application_schema.rb +4 -2
  26. data/lib/rustici_software_cloud_v2/models/application_token.rb +4 -2
  27. data/lib/rustici_software_cloud_v2/models/asset_file_schema.rb +194 -0
  28. data/lib/rustici_software_cloud_v2/models/batch_tags_schema.rb +4 -2
  29. data/lib/rustici_software_cloud_v2/models/comment_schema.rb +4 -2
  30. data/lib/rustici_software_cloud_v2/models/completion_amount_schema.rb +4 -2
  31. data/lib/rustici_software_cloud_v2/models/connector_list_schema.rb +188 -0
  32. data/lib/rustici_software_cloud_v2/models/connector_schema.rb +226 -0
  33. data/lib/rustici_software_cloud_v2/models/course_activity_schema.rb +7 -31
  34. data/lib/rustici_software_cloud_v2/models/course_list_non_paged_schema.rb +4 -2
  35. data/lib/rustici_software_cloud_v2/models/course_list_schema.rb +5 -2
  36. data/lib/rustici_software_cloud_v2/models/course_reference_schema.rb +4 -2
  37. data/lib/rustici_software_cloud_v2/models/course_schema.rb +6 -30
  38. data/lib/rustici_software_cloud_v2/models/create_connector_schema.rb +218 -0
  39. data/lib/rustici_software_cloud_v2/models/create_dispatch_id_schema.rb +3 -20
  40. data/lib/rustici_software_cloud_v2/models/create_dispatch_list_schema.rb +4 -2
  41. data/lib/rustici_software_cloud_v2/models/create_dispatch_schema.rb +5 -3
  42. data/lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb +5 -3
  43. data/lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb +5 -3
  44. data/lib/rustici_software_cloud_v2/models/create_registration_schema.rb +4 -2
  45. data/lib/rustici_software_cloud_v2/models/credential_created_schema.rb +4 -2
  46. data/lib/rustici_software_cloud_v2/models/credential_list_schema.rb +4 -2
  47. data/lib/rustici_software_cloud_v2/models/credential_request_schema.rb +4 -2
  48. data/lib/rustici_software_cloud_v2/models/credential_schema.rb +4 -2
  49. data/lib/rustici_software_cloud_v2/models/destination_id_schema.rb +4 -2
  50. data/lib/rustici_software_cloud_v2/models/destination_list_schema.rb +5 -3
  51. data/lib/rustici_software_cloud_v2/models/destination_schema.rb +35 -6
  52. data/lib/rustici_software_cloud_v2/models/dispatch_id_schema.rb +4 -2
  53. data/lib/rustici_software_cloud_v2/models/dispatch_list_schema.rb +5 -2
  54. data/lib/rustici_software_cloud_v2/models/dispatch_lti13_info_schema.rb +186 -0
  55. data/lib/rustici_software_cloud_v2/models/dispatch_lti_info_schema.rb +221 -0
  56. data/lib/rustici_software_cloud_v2/models/dispatch_registration_count_schema.rb +4 -2
  57. data/lib/rustici_software_cloud_v2/models/dispatch_schema.rb +44 -4
  58. data/lib/rustici_software_cloud_v2/models/enabled_schema.rb +4 -2
  59. data/lib/rustici_software_cloud_v2/models/file_list_item_schema.rb +205 -0
  60. data/lib/rustici_software_cloud_v2/models/file_list_schema.rb +187 -0
  61. data/lib/rustici_software_cloud_v2/models/import_asset_request_schema.rb +207 -0
  62. data/lib/rustici_software_cloud_v2/models/import_connector_request_schema.rb +207 -0
  63. data/lib/rustici_software_cloud_v2/models/import_fetch_request_schema.rb +30 -7
  64. data/lib/rustici_software_cloud_v2/models/import_job_result_schema.rb +6 -30
  65. data/lib/rustici_software_cloud_v2/models/import_media_file_reference_request_schema.rb +216 -0
  66. data/lib/rustici_software_cloud_v2/models/import_request_schema.rb +204 -0
  67. data/lib/rustici_software_cloud_v2/models/import_result_schema.rb +4 -2
  68. data/lib/rustici_software_cloud_v2/models/integer_result_schema.rb +4 -2
  69. data/lib/rustici_software_cloud_v2/models/invitation_email_schema.rb +4 -2
  70. data/lib/rustici_software_cloud_v2/models/invitation_job_status_schema.rb +6 -30
  71. data/lib/rustici_software_cloud_v2/models/invitation_summary_list.rb +5 -2
  72. data/lib/rustici_software_cloud_v2/models/invitation_summary_schema.rb +4 -2
  73. data/lib/rustici_software_cloud_v2/models/item_value_pair_schema.rb +4 -2
  74. data/lib/rustici_software_cloud_v2/models/launch_auth_options_schema.rb +4 -2
  75. data/lib/rustici_software_cloud_v2/models/launch_auth_schema.rb +6 -30
  76. data/lib/rustici_software_cloud_v2/models/launch_history_list_schema.rb +4 -2
  77. data/lib/rustici_software_cloud_v2/models/launch_history_schema.rb +9 -37
  78. data/lib/rustici_software_cloud_v2/models/launch_link_request_schema.rb +6 -4
  79. data/lib/rustici_software_cloud_v2/models/launch_link_schema.rb +4 -2
  80. data/lib/rustici_software_cloud_v2/models/learner_preference_schema.rb +4 -2
  81. data/lib/rustici_software_cloud_v2/models/learner_schema.rb +4 -2
  82. data/lib/rustici_software_cloud_v2/models/lti13_platform_configuration_schema.rb +261 -0
  83. data/lib/rustici_software_cloud_v2/models/lti13_tool_configuration_schema.rb +236 -0
  84. data/lib/rustici_software_cloud_v2/models/media_file_metadata_schema.rb +213 -0
  85. data/lib/rustici_software_cloud_v2/models/message_schema.rb +4 -2
  86. data/lib/rustici_software_cloud_v2/models/metadata_schema.rb +11 -9
  87. data/lib/rustici_software_cloud_v2/models/objective_schema.rb +12 -44
  88. data/lib/rustici_software_cloud_v2/models/permissions_schema.rb +4 -2
  89. data/lib/rustici_software_cloud_v2/models/ping_schema.rb +4 -2
  90. data/lib/rustici_software_cloud_v2/models/post_back_schema.rb +9 -37
  91. data/lib/rustici_software_cloud_v2/models/private_invitation_list.rb +5 -2
  92. data/lib/rustici_software_cloud_v2/models/private_invitation_schema.rb +6 -4
  93. data/lib/rustici_software_cloud_v2/models/private_invitation_update_schema.rb +215 -0
  94. data/lib/rustici_software_cloud_v2/models/public_invitation_list.rb +5 -2
  95. data/lib/rustici_software_cloud_v2/models/public_invitation_schema.rb +17 -6
  96. data/lib/rustici_software_cloud_v2/models/public_invitation_update_schema.rb +228 -0
  97. data/lib/rustici_software_cloud_v2/models/registration_completion.rb +1 -1
  98. data/lib/rustici_software_cloud_v2/models/registration_list_schema.rb +5 -2
  99. data/lib/rustici_software_cloud_v2/models/registration_schema.rb +4 -2
  100. data/lib/rustici_software_cloud_v2/models/registration_success.rb +1 -1
  101. data/lib/rustici_software_cloud_v2/models/reportage_account_info_schema.rb +4 -2
  102. data/lib/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.rb +4 -2
  103. data/lib/rustici_software_cloud_v2/models/reportage_auth_token_schema.rb +4 -2
  104. data/lib/rustici_software_cloud_v2/models/reportage_link_schema.rb +4 -2
  105. data/lib/rustici_software_cloud_v2/models/response_error.rb +4 -2
  106. data/lib/rustici_software_cloud_v2/models/runtime_interaction_schema.rb +6 -30
  107. data/lib/rustici_software_cloud_v2/models/runtime_objective_schema.rb +9 -37
  108. data/lib/rustici_software_cloud_v2/models/runtime_schema.rb +6 -30
  109. data/lib/rustici_software_cloud_v2/models/score_schema.rb +4 -2
  110. data/lib/rustici_software_cloud_v2/models/setting_item.rb +6 -30
  111. data/lib/rustici_software_cloud_v2/models/setting_list_schema.rb +4 -2
  112. data/lib/rustici_software_cloud_v2/models/setting_metadata.rb +6 -30
  113. data/lib/rustici_software_cloud_v2/models/setting_valid_value.rb +4 -2
  114. data/lib/rustici_software_cloud_v2/models/settings_individual_schema.rb +4 -2
  115. data/lib/rustici_software_cloud_v2/models/settings_post_schema.rb +4 -2
  116. data/lib/rustici_software_cloud_v2/models/shared_data_entry_schema.rb +4 -2
  117. data/lib/rustici_software_cloud_v2/models/static_properties_schema.rb +4 -2
  118. data/lib/rustici_software_cloud_v2/models/string_result_schema.rb +4 -2
  119. data/lib/rustici_software_cloud_v2/models/tag_list_schema.rb +4 -2
  120. data/lib/rustici_software_cloud_v2/models/title_schema.rb +4 -2
  121. data/lib/rustici_software_cloud_v2/models/token_request_schema.rb +4 -2
  122. data/lib/rustici_software_cloud_v2/models/update_application_schema.rb +196 -0
  123. data/lib/rustici_software_cloud_v2/models/update_connector_schema.rb +196 -0
  124. data/lib/rustici_software_cloud_v2/models/update_dispatch_schema.rb +16 -4
  125. data/lib/rustici_software_cloud_v2/models/user_invitation_list.rb +5 -2
  126. data/lib/rustici_software_cloud_v2/models/user_invitation_schema.rb +4 -2
  127. data/lib/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.rb +4 -2
  128. data/lib/rustici_software_cloud_v2/models/xapi_account.rb +4 -2
  129. data/lib/rustici_software_cloud_v2/models/xapi_activity.rb +4 -2
  130. data/lib/rustici_software_cloud_v2/models/xapi_activity_definition.rb +4 -2
  131. data/lib/rustici_software_cloud_v2/models/xapi_agent_group.rb +6 -30
  132. data/lib/rustici_software_cloud_v2/models/xapi_attachment.rb +4 -2
  133. data/lib/rustici_software_cloud_v2/models/xapi_context.rb +4 -2
  134. data/lib/rustici_software_cloud_v2/models/xapi_context_activity.rb +4 -2
  135. data/lib/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.rb +6 -30
  136. data/lib/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.rb +6 -30
  137. data/lib/rustici_software_cloud_v2/models/xapi_credential_post_schema.rb +4 -2
  138. data/lib/rustici_software_cloud_v2/models/xapi_credential_put_schema.rb +4 -2
  139. data/lib/rustici_software_cloud_v2/models/xapi_credential_schema.rb +4 -2
  140. data/lib/rustici_software_cloud_v2/models/xapi_credentials_list_schema.rb +5 -2
  141. data/lib/rustici_software_cloud_v2/models/xapi_endpoint_schema.rb +4 -2
  142. data/lib/rustici_software_cloud_v2/models/xapi_interaction_component.rb +4 -2
  143. data/lib/rustici_software_cloud_v2/models/xapi_result.rb +4 -2
  144. data/lib/rustici_software_cloud_v2/models/xapi_score.rb +4 -2
  145. data/lib/rustici_software_cloud_v2/models/xapi_statement.rb +4 -2
  146. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.rb +4 -2
  147. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.rb +4 -2
  148. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_put_schema.rb +4 -2
  149. data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.rb +4 -2
  150. data/lib/rustici_software_cloud_v2/models/xapi_statement_reference.rb +4 -2
  151. data/lib/rustici_software_cloud_v2/models/xapi_statement_result.rb +4 -2
  152. data/lib/rustici_software_cloud_v2/models/xapi_verb.rb +4 -2
  153. data/lib/rustici_software_cloud_v2/models/zoomi_company_id.rb +4 -2
  154. data/lib/rustici_software_cloud_v2/models/zoomi_course_options_schema.rb +14 -2
  155. data/lib/rustici_software_cloud_v2/version.rb +2 -2
  156. data/lib/rustici_software_cloud_v2.rb +23 -1
  157. data/rustici_software_cloud_v2.gemspec +3 -2
  158. data/spec/api_client_spec.rb +18 -1
  159. data/spec/configuration_spec.rb +1 -1
  160. data/spec/spec_helper.rb +1 -1
  161. metadata +45 -3
@@ -6,7 +6,7 @@
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
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -54,28 +54,6 @@ module RusticiSoftwareCloudV2
54
54
 
55
55
  attr_accessor :runtime_objectives
56
56
 
57
- class EnumAttributeValidator
58
- attr_reader :datatype
59
- attr_reader :allowable_values
60
-
61
- def initialize(datatype, allowable_values)
62
- @allowable_values = allowable_values.map do |value|
63
- case datatype.to_s
64
- when /Integer/i
65
- value.to_i
66
- when /Float/i
67
- value.to_f
68
- else
69
- value
70
- end
71
- end
72
- end
73
-
74
- def valid?(value)
75
- !value || allowable_values.include?(value)
76
- end
77
- end
78
-
79
57
  # Attribute mapping from ruby-style variable name to JSON key.
80
58
  def self.attribute_map
81
59
  {
@@ -237,18 +215,15 @@ module RusticiSoftwareCloudV2
237
215
  # Check to see if the all the properties in the model are valid
238
216
  # @return true if the model is valid
239
217
  def valid?
240
- runtime_success_status_validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
241
- return false unless runtime_success_status_validator.valid?(@runtime_success_status)
242
218
  true
243
219
  end
244
220
 
245
221
  # Custom attribute writer method checking allowed values (enum).
222
+ #
223
+ # allowable_values = ['UNKNOWN', 'PASSED', 'FAILED']
224
+ #
246
225
  # @param [Object] runtime_success_status Object to be assigned
247
226
  def runtime_success_status=(runtime_success_status)
248
- validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
249
- unless validator.valid?(runtime_success_status)
250
- fail ArgumentError, 'invalid value for "runtime_success_status", must be one of #{validator.allowable_values}.'
251
- end
252
227
  @runtime_success_status = runtime_success_status
253
228
  end
254
229
 
@@ -298,7 +273,7 @@ module RusticiSoftwareCloudV2
298
273
  return nil unless attributes.is_a?(Hash)
299
274
  self.class.swagger_types.each_pair do |key, type|
300
275
  if type =~ /\AArray<(.*)>/i
301
- # check to ensure the input is an array given that the the attribute
276
+ # check to ensure the input is an array given that the attribute
302
277
  # is documented as an array but the input is not
303
278
  if attributes[self.class.attribute_map[key]].is_a?(Array)
304
279
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -394,5 +369,6 @@ module RusticiSoftwareCloudV2
394
369
  value
395
370
  end
396
371
  end
372
+
397
373
  end
398
374
  end
@@ -6,7 +6,7 @@
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
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -57,6 +57,7 @@ module RusticiSoftwareCloudV2
57
57
  true
58
58
  end
59
59
 
60
+
60
61
  # Checks equality by comparing each attribute.
61
62
  # @param [Object] Object to be compared
62
63
  def ==(o)
@@ -84,7 +85,7 @@ module RusticiSoftwareCloudV2
84
85
  return nil unless attributes.is_a?(Hash)
85
86
  self.class.swagger_types.each_pair do |key, type|
86
87
  if type =~ /\AArray<(.*)>/i
87
- # check to ensure the input is an array given that the the attribute
88
+ # check to ensure the input is an array given that the attribute
88
89
  # is documented as an array but the input is not
89
90
  if attributes[self.class.attribute_map[key]].is_a?(Array)
90
91
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -180,5 +181,6 @@ module RusticiSoftwareCloudV2
180
181
  value
181
182
  end
182
183
  end
184
+
183
185
  end
184
186
  end
@@ -6,7 +6,7 @@
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
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -27,28 +27,6 @@ module RusticiSoftwareCloudV2
27
27
 
28
28
  attr_accessor :metadata
29
29
 
30
- class EnumAttributeValidator
31
- attr_reader :datatype
32
- attr_reader :allowable_values
33
-
34
- def initialize(datatype, allowable_values)
35
- @allowable_values = allowable_values.map do |value|
36
- case datatype.to_s
37
- when /Integer/i
38
- value.to_i
39
- when /Float/i
40
- value.to_f
41
- else
42
- value
43
- end
44
- end
45
- end
46
-
47
- def valid?(value)
48
- !value || allowable_values.include?(value)
49
- end
50
- end
51
-
52
30
  # Attribute mapping from ruby-style variable name to JSON key.
53
31
  def self.attribute_map
54
32
  {
@@ -110,18 +88,15 @@ module RusticiSoftwareCloudV2
110
88
  # Check to see if the all the properties in the model are valid
111
89
  # @return true if the model is valid
112
90
  def valid?
113
- effective_value_source_validator = EnumAttributeValidator.new('String', ['default', 'application', 'learningStandardForApplication', 'dispatchDestination', 'course', 'dispatch', 'registration'])
114
- return false unless effective_value_source_validator.valid?(@effective_value_source)
115
91
  true
116
92
  end
117
93
 
118
94
  # Custom attribute writer method checking allowed values (enum).
95
+ #
96
+ # allowable_values = ['default', 'application', 'learningStandardForApplication', 'dispatchDestination', 'course', 'dispatch', 'registration']
97
+ #
119
98
  # @param [Object] effective_value_source Object to be assigned
120
99
  def effective_value_source=(effective_value_source)
121
- validator = EnumAttributeValidator.new('String', ['default', 'application', 'learningStandardForApplication', 'dispatchDestination', 'course', 'dispatch', 'registration'])
122
- unless validator.valid?(effective_value_source)
123
- fail ArgumentError, 'invalid value for "effective_value_source", must be one of #{validator.allowable_values}.'
124
- end
125
100
  @effective_value_source = effective_value_source
126
101
  end
127
102
 
@@ -156,7 +131,7 @@ module RusticiSoftwareCloudV2
156
131
  return nil unless attributes.is_a?(Hash)
157
132
  self.class.swagger_types.each_pair do |key, type|
158
133
  if type =~ /\AArray<(.*)>/i
159
- # check to ensure the input is an array given that the the attribute
134
+ # check to ensure the input is an array given that the attribute
160
135
  # is documented as an array but the input is not
161
136
  if attributes[self.class.attribute_map[key]].is_a?(Array)
162
137
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -252,5 +227,6 @@ module RusticiSoftwareCloudV2
252
227
  value
253
228
  end
254
229
  end
230
+
255
231
  end
256
232
  end
@@ -6,7 +6,7 @@
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
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -63,6 +63,7 @@ module RusticiSoftwareCloudV2
63
63
  true
64
64
  end
65
65
 
66
+
66
67
  # Checks equality by comparing each attribute.
67
68
  # @param [Object] Object to be compared
68
69
  def ==(o)
@@ -90,7 +91,7 @@ module RusticiSoftwareCloudV2
90
91
  return nil unless attributes.is_a?(Hash)
91
92
  self.class.swagger_types.each_pair do |key, type|
92
93
  if type =~ /\AArray<(.*)>/i
93
- # check to ensure the input is an array given that the the attribute
94
+ # check to ensure the input is an array given that the attribute
94
95
  # is documented as an array but the input is not
95
96
  if attributes[self.class.attribute_map[key]].is_a?(Array)
96
97
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -186,5 +187,6 @@ module RusticiSoftwareCloudV2
186
187
  value
187
188
  end
188
189
  end
190
+
189
191
  end
190
192
  end
@@ -6,7 +6,7 @@
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
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -38,28 +38,6 @@ module RusticiSoftwareCloudV2
38
38
  # For settings with a fixed list of valid values, the list of those values
39
39
  attr_accessor :valid_values
40
40
 
41
- class EnumAttributeValidator
42
- attr_reader :datatype
43
- attr_reader :allowable_values
44
-
45
- def initialize(datatype, allowable_values)
46
- @allowable_values = allowable_values.map do |value|
47
- case datatype.to_s
48
- when /Integer/i
49
- value.to_i
50
- when /Float/i
51
- value.to_f
52
- else
53
- value
54
- end
55
- end
56
- end
57
-
58
- def valid?(value)
59
- !value || allowable_values.include?(value)
60
- end
61
- end
62
-
63
41
  # Attribute mapping from ruby-style variable name to JSON key.
64
42
  def self.attribute_map
65
43
  {
@@ -145,18 +123,15 @@ module RusticiSoftwareCloudV2
145
123
  # Check to see if the all the properties in the model are valid
146
124
  # @return true if the model is valid
147
125
  def valid?
148
- learning_standard_variant_validator = EnumAttributeValidator.new('String', ['singleScoOnly', 'multiScoOnly', 'either'])
149
- return false unless learning_standard_variant_validator.valid?(@learning_standard_variant)
150
126
  true
151
127
  end
152
128
 
153
129
  # Custom attribute writer method checking allowed values (enum).
130
+ #
131
+ # allowable_values = ['singleScoOnly', 'multiScoOnly', 'either']
132
+ #
154
133
  # @param [Object] learning_standard_variant Object to be assigned
155
134
  def learning_standard_variant=(learning_standard_variant)
156
- validator = EnumAttributeValidator.new('String', ['singleScoOnly', 'multiScoOnly', 'either'])
157
- unless validator.valid?(learning_standard_variant)
158
- fail ArgumentError, 'invalid value for "learning_standard_variant", must be one of #{validator.allowable_values}.'
159
- end
160
135
  @learning_standard_variant = learning_standard_variant
161
136
  end
162
137
 
@@ -194,7 +169,7 @@ module RusticiSoftwareCloudV2
194
169
  return nil unless attributes.is_a?(Hash)
195
170
  self.class.swagger_types.each_pair do |key, type|
196
171
  if type =~ /\AArray<(.*)>/i
197
- # check to ensure the input is an array given that the the attribute
172
+ # check to ensure the input is an array given that the attribute
198
173
  # is documented as an array but the input is not
199
174
  if attributes[self.class.attribute_map[key]].is_a?(Array)
200
175
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -290,5 +265,6 @@ module RusticiSoftwareCloudV2
290
265
  value
291
266
  end
292
267
  end
268
+
293
269
  end
294
270
  end
@@ -6,7 +6,7 @@
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
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -65,6 +65,7 @@ module RusticiSoftwareCloudV2
65
65
  true
66
66
  end
67
67
 
68
+
68
69
  # Checks equality by comparing each attribute.
69
70
  # @param [Object] Object to be compared
70
71
  def ==(o)
@@ -93,7 +94,7 @@ module RusticiSoftwareCloudV2
93
94
  return nil unless attributes.is_a?(Hash)
94
95
  self.class.swagger_types.each_pair do |key, type|
95
96
  if type =~ /\AArray<(.*)>/i
96
- # check to ensure the input is an array given that the the attribute
97
+ # check to ensure the input is an array given that the attribute
97
98
  # is documented as an array but the input is not
98
99
  if attributes[self.class.attribute_map[key]].is_a?(Array)
99
100
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -189,5 +190,6 @@ module RusticiSoftwareCloudV2
189
190
  value
190
191
  end
191
192
  end
193
+
192
194
  end
193
195
  end
@@ -6,7 +6,7 @@
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
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -74,6 +74,7 @@ module RusticiSoftwareCloudV2
74
74
  true
75
75
  end
76
76
 
77
+
77
78
  # Checks equality by comparing each attribute.
78
79
  # @param [Object] Object to be compared
79
80
  def ==(o)
@@ -103,7 +104,7 @@ module RusticiSoftwareCloudV2
103
104
  return nil unless attributes.is_a?(Hash)
104
105
  self.class.swagger_types.each_pair do |key, type|
105
106
  if type =~ /\AArray<(.*)>/i
106
- # check to ensure the input is an array given that the the attribute
107
+ # check to ensure the input is an array given that the attribute
107
108
  # is documented as an array but the input is not
108
109
  if attributes[self.class.attribute_map[key]].is_a?(Array)
109
110
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -199,5 +200,6 @@ module RusticiSoftwareCloudV2
199
200
  value
200
201
  end
201
202
  end
203
+
202
204
  end
203
205
  end
@@ -6,7 +6,7 @@
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
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -58,6 +58,7 @@ module RusticiSoftwareCloudV2
58
58
  true
59
59
  end
60
60
 
61
+
61
62
  # Checks equality by comparing each attribute.
62
63
  # @param [Object] Object to be compared
63
64
  def ==(o)
@@ -85,7 +86,7 @@ module RusticiSoftwareCloudV2
85
86
  return nil unless attributes.is_a?(Hash)
86
87
  self.class.swagger_types.each_pair do |key, type|
87
88
  if type =~ /\AArray<(.*)>/i
88
- # check to ensure the input is an array given that the the attribute
89
+ # check to ensure the input is an array given that the attribute
89
90
  # is documented as an array but the input is not
90
91
  if attributes[self.class.attribute_map[key]].is_a?(Array)
91
92
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -181,5 +182,6 @@ module RusticiSoftwareCloudV2
181
182
  value
182
183
  end
183
184
  end
185
+
184
186
  end
185
187
  end
@@ -6,7 +6,7 @@
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
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -64,6 +64,7 @@ module RusticiSoftwareCloudV2
64
64
  true
65
65
  end
66
66
 
67
+
67
68
  # Checks equality by comparing each attribute.
68
69
  # @param [Object] Object to be compared
69
70
  def ==(o)
@@ -92,7 +93,7 @@ module RusticiSoftwareCloudV2
92
93
  return nil unless attributes.is_a?(Hash)
93
94
  self.class.swagger_types.each_pair do |key, type|
94
95
  if type =~ /\AArray<(.*)>/i
95
- # check to ensure the input is an array given that the the attribute
96
+ # check to ensure the input is an array given that the attribute
96
97
  # is documented as an array but the input is not
97
98
  if attributes[self.class.attribute_map[key]].is_a?(Array)
98
99
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -188,5 +189,6 @@ module RusticiSoftwareCloudV2
188
189
  value
189
190
  end
190
191
  end
192
+
191
193
  end
192
194
  end
@@ -6,7 +6,7 @@
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
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -96,6 +96,7 @@ module RusticiSoftwareCloudV2
96
96
  true
97
97
  end
98
98
 
99
+
99
100
  # Checks equality by comparing each attribute.
100
101
  # @param [Object] Object to be compared
101
102
  def ==(o)
@@ -128,7 +129,7 @@ module RusticiSoftwareCloudV2
128
129
  return nil unless attributes.is_a?(Hash)
129
130
  self.class.swagger_types.each_pair do |key, type|
130
131
  if type =~ /\AArray<(.*)>/i
131
- # check to ensure the input is an array given that the the attribute
132
+ # check to ensure the input is an array given that the attribute
132
133
  # is documented as an array but the input is not
133
134
  if attributes[self.class.attribute_map[key]].is_a?(Array)
134
135
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -224,5 +225,6 @@ module RusticiSoftwareCloudV2
224
225
  value
225
226
  end
226
227
  end
228
+
227
229
  end
228
230
  end
@@ -6,7 +6,7 @@
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
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -61,6 +61,7 @@ module RusticiSoftwareCloudV2
61
61
  true
62
62
  end
63
63
 
64
+
64
65
  # Checks equality by comparing each attribute.
65
66
  # @param [Object] Object to be compared
66
67
  def ==(o)
@@ -88,7 +89,7 @@ module RusticiSoftwareCloudV2
88
89
  return nil unless attributes.is_a?(Hash)
89
90
  self.class.swagger_types.each_pair do |key, type|
90
91
  if type =~ /\AArray<(.*)>/i
91
- # check to ensure the input is an array given that the the attribute
92
+ # check to ensure the input is an array given that the attribute
92
93
  # is documented as an array but the input is not
93
94
  if attributes[self.class.attribute_map[key]].is_a?(Array)
94
95
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -184,5 +185,6 @@ module RusticiSoftwareCloudV2
184
185
  value
185
186
  end
186
187
  end
188
+
187
189
  end
188
190
  end
@@ -6,7 +6,7 @@
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
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -58,6 +58,7 @@ module RusticiSoftwareCloudV2
58
58
  true
59
59
  end
60
60
 
61
+
61
62
  # Checks equality by comparing each attribute.
62
63
  # @param [Object] Object to be compared
63
64
  def ==(o)
@@ -85,7 +86,7 @@ module RusticiSoftwareCloudV2
85
86
  return nil unless attributes.is_a?(Hash)
86
87
  self.class.swagger_types.each_pair do |key, type|
87
88
  if type =~ /\AArray<(.*)>/i
88
- # check to ensure the input is an array given that the the attribute
89
+ # check to ensure the input is an array given that the attribute
89
90
  # is documented as an array but the input is not
90
91
  if attributes[self.class.attribute_map[key]].is_a?(Array)
91
92
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -181,5 +182,6 @@ module RusticiSoftwareCloudV2
181
182
  value
182
183
  end
183
184
  end
185
+
184
186
  end
185
187
  end
@@ -6,7 +6,7 @@
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
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -56,6 +56,7 @@ module RusticiSoftwareCloudV2
56
56
  true
57
57
  end
58
58
 
59
+
59
60
  # Checks equality by comparing each attribute.
60
61
  # @param [Object] Object to be compared
61
62
  def ==(o)
@@ -83,7 +84,7 @@ module RusticiSoftwareCloudV2
83
84
  return nil unless attributes.is_a?(Hash)
84
85
  self.class.swagger_types.each_pair do |key, type|
85
86
  if type =~ /\AArray<(.*)>/i
86
- # check to ensure the input is an array given that the the attribute
87
+ # check to ensure the input is an array given that the attribute
87
88
  # is documented as an array but the input is not
88
89
  if attributes[self.class.attribute_map[key]].is_a?(Array)
89
90
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -179,5 +180,6 @@ module RusticiSoftwareCloudV2
179
180
  value
180
181
  end
181
182
  end
183
+
182
184
  end
183
185
  end
@@ -6,7 +6,7 @@
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
+ Swagger Codegen version: 2.4.27
10
10
 
11
11
  =end
12
12
 
@@ -75,6 +75,7 @@ module RusticiSoftwareCloudV2
75
75
  true
76
76
  end
77
77
 
78
+
78
79
  # Checks equality by comparing each attribute.
79
80
  # @param [Object] Object to be compared
80
81
  def ==(o)
@@ -103,7 +104,7 @@ module RusticiSoftwareCloudV2
103
104
  return nil unless attributes.is_a?(Hash)
104
105
  self.class.swagger_types.each_pair do |key, type|
105
106
  if type =~ /\AArray<(.*)>/i
106
- # check to ensure the input is an array given that the the attribute
107
+ # check to ensure the input is an array given that the attribute
107
108
  # is documented as an array but the input is not
108
109
  if attributes[self.class.attribute_map[key]].is_a?(Array)
109
110
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -199,5 +200,6 @@ module RusticiSoftwareCloudV2
199
200
  value
200
201
  end
201
202
  end
203
+
202
204
  end
203
205
  end