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
 
@@ -29,28 +29,6 @@ module RusticiSoftwareCloudV2
29
29
 
30
30
  attr_accessor :member
31
31
 
32
- class EnumAttributeValidator
33
- attr_reader :datatype
34
- attr_reader :allowable_values
35
-
36
- def initialize(datatype, allowable_values)
37
- @allowable_values = allowable_values.map do |value|
38
- case datatype.to_s
39
- when /Integer/i
40
- value.to_i
41
- when /Float/i
42
- value.to_f
43
- else
44
- value
45
- end
46
- end
47
- end
48
-
49
- def valid?(value)
50
- !value || allowable_values.include?(value)
51
- end
52
- end
53
-
54
32
  # Attribute mapping from ruby-style variable name to JSON key.
55
33
  def self.attribute_map
56
34
  {
@@ -131,18 +109,15 @@ module RusticiSoftwareCloudV2
131
109
  # @return true if the model is valid
132
110
  def valid?
133
111
  return false if @object_type.nil?
134
- object_type_validator = EnumAttributeValidator.new('String', ['Agent', 'Group'])
135
- return false unless object_type_validator.valid?(@object_type)
136
112
  true
137
113
  end
138
114
 
139
115
  # Custom attribute writer method checking allowed values (enum).
116
+ #
117
+ # allowable_values = ['Agent', 'Group']
118
+ #
140
119
  # @param [Object] object_type Object to be assigned
141
120
  def object_type=(object_type)
142
- validator = EnumAttributeValidator.new('String', ['Agent', 'Group'])
143
- unless validator.valid?(object_type)
144
- fail ArgumentError, 'invalid value for "object_type", must be one of #{validator.allowable_values}.'
145
- end
146
121
  @object_type = object_type
147
122
  end
148
123
 
@@ -179,7 +154,7 @@ module RusticiSoftwareCloudV2
179
154
  return nil unless attributes.is_a?(Hash)
180
155
  self.class.swagger_types.each_pair do |key, type|
181
156
  if type =~ /\AArray<(.*)>/i
182
- # check to ensure the input is an array given that the the attribute
157
+ # check to ensure the input is an array given that the attribute
183
158
  # is documented as an array but the input is not
184
159
  if attributes[self.class.attribute_map[key]].is_a?(Array)
185
160
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -275,5 +250,6 @@ module RusticiSoftwareCloudV2
275
250
  value
276
251
  end
277
252
  end
253
+
278
254
  end
279
255
  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
 
@@ -134,6 +134,7 @@ module RusticiSoftwareCloudV2
134
134
  true
135
135
  end
136
136
 
137
+
137
138
  # Checks equality by comparing each attribute.
138
139
  # @param [Object] Object to be compared
139
140
  def ==(o)
@@ -167,7 +168,7 @@ module RusticiSoftwareCloudV2
167
168
  return nil unless attributes.is_a?(Hash)
168
169
  self.class.swagger_types.each_pair do |key, type|
169
170
  if type =~ /\AArray<(.*)>/i
170
- # check to ensure the input is an array given that the the attribute
171
+ # check to ensure the input is an array given that the attribute
171
172
  # is documented as an array but the input is not
172
173
  if attributes[self.class.attribute_map[key]].is_a?(Array)
173
174
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -263,5 +264,6 @@ module RusticiSoftwareCloudV2
263
264
  value
264
265
  end
265
266
  end
267
+
266
268
  end
267
269
  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
 
@@ -123,6 +123,7 @@ module RusticiSoftwareCloudV2
123
123
  true
124
124
  end
125
125
 
126
+
126
127
  # Checks equality by comparing each attribute.
127
128
  # @param [Object] Object to be compared
128
129
  def ==(o)
@@ -158,7 +159,7 @@ module RusticiSoftwareCloudV2
158
159
  return nil unless attributes.is_a?(Hash)
159
160
  self.class.swagger_types.each_pair do |key, type|
160
161
  if type =~ /\AArray<(.*)>/i
161
- # check to ensure the input is an array given that the the attribute
162
+ # check to ensure the input is an array given that the attribute
162
163
  # is documented as an array but the input is not
163
164
  if attributes[self.class.attribute_map[key]].is_a?(Array)
164
165
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -254,5 +255,6 @@ module RusticiSoftwareCloudV2
254
255
  value
255
256
  end
256
257
  end
258
+
257
259
  end
258
260
  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
 
@@ -89,6 +89,7 @@ module RusticiSoftwareCloudV2
89
89
  true
90
90
  end
91
91
 
92
+
92
93
  # Checks equality by comparing each attribute.
93
94
  # @param [Object] Object to be compared
94
95
  def ==(o)
@@ -119,7 +120,7 @@ module RusticiSoftwareCloudV2
119
120
  return nil unless attributes.is_a?(Hash)
120
121
  self.class.swagger_types.each_pair do |key, type|
121
122
  if type =~ /\AArray<(.*)>/i
122
- # check to ensure the input is an array given that the the attribute
123
+ # check to ensure the input is an array given that the attribute
123
124
  # is documented as an array but the input is not
124
125
  if attributes[self.class.attribute_map[key]].is_a?(Array)
125
126
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -215,5 +216,6 @@ module RusticiSoftwareCloudV2
215
216
  value
216
217
  end
217
218
  end
219
+
218
220
  end
219
221
  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
 
@@ -16,28 +16,6 @@ module RusticiSoftwareCloudV2
16
16
  class XapiCredentialAuthTypeSchema
17
17
  attr_accessor :xapi_credential_auth_type
18
18
 
19
- class EnumAttributeValidator
20
- attr_reader :datatype
21
- attr_reader :allowable_values
22
-
23
- def initialize(datatype, allowable_values)
24
- @allowable_values = allowable_values.map do |value|
25
- case datatype.to_s
26
- when /Integer/i
27
- value.to_i
28
- when /Float/i
29
- value.to_f
30
- else
31
- value
32
- end
33
- end
34
- end
35
-
36
- def valid?(value)
37
- !value || allowable_values.include?(value)
38
- end
39
- end
40
-
41
19
  # Attribute mapping from ruby-style variable name to JSON key.
42
20
  def self.attribute_map
43
21
  {
@@ -75,18 +53,15 @@ module RusticiSoftwareCloudV2
75
53
  # Check to see if the all the properties in the model are valid
76
54
  # @return true if the model is valid
77
55
  def valid?
78
- xapi_credential_auth_type_validator = EnumAttributeValidator.new('String', ['BASICAUTH', 'OAUTH'])
79
- return false unless xapi_credential_auth_type_validator.valid?(@xapi_credential_auth_type)
80
56
  true
81
57
  end
82
58
 
83
59
  # Custom attribute writer method checking allowed values (enum).
60
+ #
61
+ # allowable_values = ['BASICAUTH', 'OAUTH']
62
+ #
84
63
  # @param [Object] xapi_credential_auth_type Object to be assigned
85
64
  def xapi_credential_auth_type=(xapi_credential_auth_type)
86
- validator = EnumAttributeValidator.new('String', ['BASICAUTH', 'OAUTH'])
87
- unless validator.valid?(xapi_credential_auth_type)
88
- fail ArgumentError, 'invalid value for "xapi_credential_auth_type", must be one of #{validator.allowable_values}.'
89
- end
90
65
  @xapi_credential_auth_type = xapi_credential_auth_type
91
66
  end
92
67
 
@@ -117,7 +92,7 @@ module RusticiSoftwareCloudV2
117
92
  return nil unless attributes.is_a?(Hash)
118
93
  self.class.swagger_types.each_pair do |key, type|
119
94
  if type =~ /\AArray<(.*)>/i
120
- # check to ensure the input is an array given that the the attribute
95
+ # check to ensure the input is an array given that the attribute
121
96
  # is documented as an array but the input is not
122
97
  if attributes[self.class.attribute_map[key]].is_a?(Array)
123
98
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -213,5 +188,6 @@ module RusticiSoftwareCloudV2
213
188
  value
214
189
  end
215
190
  end
191
+
216
192
  end
217
193
  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
 
@@ -16,28 +16,6 @@ module RusticiSoftwareCloudV2
16
16
  class XapiCredentialPermissionsLevelSchema
17
17
  attr_accessor :xapi_credential_permissions_level
18
18
 
19
- class EnumAttributeValidator
20
- attr_reader :datatype
21
- attr_reader :allowable_values
22
-
23
- def initialize(datatype, allowable_values)
24
- @allowable_values = allowable_values.map do |value|
25
- case datatype.to_s
26
- when /Integer/i
27
- value.to_i
28
- when /Float/i
29
- value.to_f
30
- else
31
- value
32
- end
33
- end
34
- end
35
-
36
- def valid?(value)
37
- !value || allowable_values.include?(value)
38
- end
39
- end
40
-
41
19
  # Attribute mapping from ruby-style variable name to JSON key.
42
20
  def self.attribute_map
43
21
  {
@@ -75,18 +53,15 @@ module RusticiSoftwareCloudV2
75
53
  # Check to see if the all the properties in the model are valid
76
54
  # @return true if the model is valid
77
55
  def valid?
78
- xapi_credential_permissions_level_validator = EnumAttributeValidator.new('String', ['DEFAULT', 'USER', 'ROOT', 'READONLY', 'WRITEONLY'])
79
- return false unless xapi_credential_permissions_level_validator.valid?(@xapi_credential_permissions_level)
80
56
  true
81
57
  end
82
58
 
83
59
  # Custom attribute writer method checking allowed values (enum).
60
+ #
61
+ # allowable_values = ['DEFAULT', 'USER', 'ROOT', 'READONLY', 'WRITEONLY']
62
+ #
84
63
  # @param [Object] xapi_credential_permissions_level Object to be assigned
85
64
  def xapi_credential_permissions_level=(xapi_credential_permissions_level)
86
- validator = EnumAttributeValidator.new('String', ['DEFAULT', 'USER', 'ROOT', 'READONLY', 'WRITEONLY'])
87
- unless validator.valid?(xapi_credential_permissions_level)
88
- fail ArgumentError, 'invalid value for "xapi_credential_permissions_level", must be one of #{validator.allowable_values}.'
89
- end
90
65
  @xapi_credential_permissions_level = xapi_credential_permissions_level
91
66
  end
92
67
 
@@ -117,7 +92,7 @@ module RusticiSoftwareCloudV2
117
92
  return nil unless attributes.is_a?(Hash)
118
93
  self.class.swagger_types.each_pair do |key, type|
119
94
  if type =~ /\AArray<(.*)>/i
120
- # check to ensure the input is an array given that the the attribute
95
+ # check to ensure the input is an array given that the attribute
121
96
  # is documented as an array but the input is not
122
97
  if attributes[self.class.attribute_map[key]].is_a?(Array)
123
98
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -213,5 +188,6 @@ module RusticiSoftwareCloudV2
213
188
  value
214
189
  end
215
190
  end
191
+
216
192
  end
217
193
  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
 
@@ -121,6 +121,7 @@ module RusticiSoftwareCloudV2
121
121
  true
122
122
  end
123
123
 
124
+
124
125
  # Checks equality by comparing each attribute.
125
126
  # @param [Object] Object to be compared
126
127
  def ==(o)
@@ -153,7 +154,7 @@ module RusticiSoftwareCloudV2
153
154
  return nil unless attributes.is_a?(Hash)
154
155
  self.class.swagger_types.each_pair do |key, type|
155
156
  if type =~ /\AArray<(.*)>/i
156
- # check to ensure the input is an array given that the the attribute
157
+ # check to ensure the input is an array given that the attribute
157
158
  # is documented as an array but the input is not
158
159
  if attributes[self.class.attribute_map[key]].is_a?(Array)
159
160
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -249,5 +250,6 @@ module RusticiSoftwareCloudV2
249
250
  value
250
251
  end
251
252
  end
253
+
252
254
  end
253
255
  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
 
@@ -104,6 +104,7 @@ module RusticiSoftwareCloudV2
104
104
  true
105
105
  end
106
106
 
107
+
107
108
  # Checks equality by comparing each attribute.
108
109
  # @param [Object] Object to be compared
109
110
  def ==(o)
@@ -137,7 +138,7 @@ module RusticiSoftwareCloudV2
137
138
  return nil unless attributes.is_a?(Hash)
138
139
  self.class.swagger_types.each_pair do |key, type|
139
140
  if type =~ /\AArray<(.*)>/i
140
- # check to ensure the input is an array given that the the attribute
141
+ # check to ensure the input is an array given that the attribute
141
142
  # is documented as an array but the input is not
142
143
  if attributes[self.class.attribute_map[key]].is_a?(Array)
143
144
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -233,5 +234,6 @@ module RusticiSoftwareCloudV2
233
234
  value
234
235
  end
235
236
  end
237
+
236
238
  end
237
239
  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
 
@@ -129,6 +129,7 @@ module RusticiSoftwareCloudV2
129
129
  true
130
130
  end
131
131
 
132
+
132
133
  # Checks equality by comparing each attribute.
133
134
  # @param [Object] Object to be compared
134
135
  def ==(o)
@@ -162,7 +163,7 @@ module RusticiSoftwareCloudV2
162
163
  return nil unless attributes.is_a?(Hash)
163
164
  self.class.swagger_types.each_pair do |key, type|
164
165
  if type =~ /\AArray<(.*)>/i
165
- # check to ensure the input is an array given that the the attribute
166
+ # check to ensure the input is an array given that the attribute
166
167
  # is documented as an array but the input is not
167
168
  if attributes[self.class.attribute_map[key]].is_a?(Array)
168
169
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -258,5 +259,6 @@ module RusticiSoftwareCloudV2
258
259
  value
259
260
  end
260
261
  end
262
+
261
263
  end
262
264
  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
 
@@ -16,6 +16,7 @@ module RusticiSoftwareCloudV2
16
16
  class XapiCredentialsListSchema
17
17
  attr_accessor :xapi_credentials
18
18
 
19
+ # Token for getting the next set of results, from the prior set of results.
19
20
  attr_accessor :more
20
21
 
21
22
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -71,6 +72,7 @@ module RusticiSoftwareCloudV2
71
72
  true
72
73
  end
73
74
 
75
+
74
76
  # Checks equality by comparing each attribute.
75
77
  # @param [Object] Object to be compared
76
78
  def ==(o)
@@ -99,7 +101,7 @@ module RusticiSoftwareCloudV2
99
101
  return nil unless attributes.is_a?(Hash)
100
102
  self.class.swagger_types.each_pair do |key, type|
101
103
  if type =~ /\AArray<(.*)>/i
102
- # check to ensure the input is an array given that the the attribute
104
+ # check to ensure the input is an array given that the attribute
103
105
  # is documented as an array but the input is not
104
106
  if attributes[self.class.attribute_map[key]].is_a?(Array)
105
107
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -195,5 +197,6 @@ module RusticiSoftwareCloudV2
195
197
  value
196
198
  end
197
199
  end
200
+
198
201
  end
199
202
  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
 
@@ -72,6 +72,7 @@ module RusticiSoftwareCloudV2
72
72
  true
73
73
  end
74
74
 
75
+
75
76
  # Checks equality by comparing each attribute.
76
77
  # @param [Object] Object to be compared
77
78
  def ==(o)
@@ -101,7 +102,7 @@ module RusticiSoftwareCloudV2
101
102
  return nil unless attributes.is_a?(Hash)
102
103
  self.class.swagger_types.each_pair do |key, type|
103
104
  if type =~ /\AArray<(.*)>/i
104
- # check to ensure the input is an array given that the the attribute
105
+ # check to ensure the input is an array given that the attribute
105
106
  # is documented as an array but the input is not
106
107
  if attributes[self.class.attribute_map[key]].is_a?(Array)
107
108
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -197,5 +198,6 @@ module RusticiSoftwareCloudV2
197
198
  value
198
199
  end
199
200
  end
201
+
200
202
  end
201
203
  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
 
@@ -72,6 +72,7 @@ module RusticiSoftwareCloudV2
72
72
  true
73
73
  end
74
74
 
75
+
75
76
  # Checks equality by comparing each attribute.
76
77
  # @param [Object] Object to be compared
77
78
  def ==(o)
@@ -100,7 +101,7 @@ module RusticiSoftwareCloudV2
100
101
  return nil unless attributes.is_a?(Hash)
101
102
  self.class.swagger_types.each_pair do |key, type|
102
103
  if type =~ /\AArray<(.*)>/i
103
- # check to ensure the input is an array given that the the attribute
104
+ # check to ensure the input is an array given that the attribute
104
105
  # is documented as an array but the input is not
105
106
  if attributes[self.class.attribute_map[key]].is_a?(Array)
106
107
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -196,5 +197,6 @@ module RusticiSoftwareCloudV2
196
197
  value
197
198
  end
198
199
  end
200
+
199
201
  end
200
202
  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
 
@@ -99,6 +99,7 @@ module RusticiSoftwareCloudV2
99
99
  true
100
100
  end
101
101
 
102
+
102
103
  # Checks equality by comparing each attribute.
103
104
  # @param [Object] Object to be compared
104
105
  def ==(o)
@@ -131,7 +132,7 @@ module RusticiSoftwareCloudV2
131
132
  return nil unless attributes.is_a?(Hash)
132
133
  self.class.swagger_types.each_pair do |key, type|
133
134
  if type =~ /\AArray<(.*)>/i
134
- # check to ensure the input is an array given that the the attribute
135
+ # check to ensure the input is an array given that the attribute
135
136
  # is documented as an array but the input is not
136
137
  if attributes[self.class.attribute_map[key]].is_a?(Array)
137
138
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -227,5 +228,6 @@ module RusticiSoftwareCloudV2
227
228
  value
228
229
  end
229
230
  end
231
+
230
232
  end
231
233
  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
 
@@ -81,6 +81,7 @@ module RusticiSoftwareCloudV2
81
81
  true
82
82
  end
83
83
 
84
+
84
85
  # Checks equality by comparing each attribute.
85
86
  # @param [Object] Object to be compared
86
87
  def ==(o)
@@ -111,7 +112,7 @@ module RusticiSoftwareCloudV2
111
112
  return nil unless attributes.is_a?(Hash)
112
113
  self.class.swagger_types.each_pair do |key, type|
113
114
  if type =~ /\AArray<(.*)>/i
114
- # check to ensure the input is an array given that the the attribute
115
+ # check to ensure the input is an array given that the attribute
115
116
  # is documented as an array but the input is not
116
117
  if attributes[self.class.attribute_map[key]].is_a?(Array)
117
118
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -207,5 +208,6 @@ module RusticiSoftwareCloudV2
207
208
  value
208
209
  end
209
210
  end
211
+
210
212
  end
211
213
  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
 
@@ -155,6 +155,7 @@ module RusticiSoftwareCloudV2
155
155
  true
156
156
  end
157
157
 
158
+
158
159
  # Checks equality by comparing each attribute.
159
160
  # @param [Object] Object to be compared
160
161
  def ==(o)
@@ -194,7 +195,7 @@ module RusticiSoftwareCloudV2
194
195
  return nil unless attributes.is_a?(Hash)
195
196
  self.class.swagger_types.each_pair do |key, type|
196
197
  if type =~ /\AArray<(.*)>/i
197
- # check to ensure the input is an array given that the the attribute
198
+ # check to ensure the input is an array given that the attribute
198
199
  # is documented as an array but the input is not
199
200
  if attributes[self.class.attribute_map[key]].is_a?(Array)
200
201
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -290,5 +291,6 @@ module RusticiSoftwareCloudV2
290
291
  value
291
292
  end
292
293
  end
294
+
293
295
  end
294
296
  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
 
@@ -69,6 +69,7 @@ module RusticiSoftwareCloudV2
69
69
  true
70
70
  end
71
71
 
72
+
72
73
  # Checks equality by comparing each attribute.
73
74
  # @param [Object] Object to be compared
74
75
  def ==(o)
@@ -97,7 +98,7 @@ module RusticiSoftwareCloudV2
97
98
  return nil unless attributes.is_a?(Hash)
98
99
  self.class.swagger_types.each_pair do |key, type|
99
100
  if type =~ /\AArray<(.*)>/i
100
- # check to ensure the input is an array given that the the attribute
101
+ # check to ensure the input is an array given that the attribute
101
102
  # is documented as an array but the input is not
102
103
  if attributes[self.class.attribute_map[key]].is_a?(Array)
103
104
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -193,5 +194,6 @@ module RusticiSoftwareCloudV2
193
194
  value
194
195
  end
195
196
  end
197
+
196
198
  end
197
199
  end