rustici_software_cloud_v2 1.1.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +355 -356
- data/lib/rustici_software_cloud_v2/api/about_api.rb +4 -4
- data/lib/rustici_software_cloud_v2/api/application_management_api.rb +190 -62
- data/lib/rustici_software_cloud_v2/api/authentication_api.rb +9 -17
- data/lib/rustici_software_cloud_v2/api/course_api.rb +903 -196
- data/lib/rustici_software_cloud_v2/api/dispatch_api.rb +458 -268
- data/lib/rustici_software_cloud_v2/api/invitations_api.rb +212 -170
- data/lib/rustici_software_cloud_v2/api/learner_api.rb +48 -48
- data/lib/rustici_software_cloud_v2/api/ping_api.rb +2 -0
- data/lib/rustici_software_cloud_v2/api/registration_api.rb +255 -269
- data/lib/rustici_software_cloud_v2/api/reporting_api.rb +19 -23
- data/lib/rustici_software_cloud_v2/api/xapi_api.rb +81 -66
- data/lib/rustici_software_cloud_v2/api/zoomi_api.rb +124 -55
- data/lib/rustici_software_cloud_v2/api_client.rb +2 -2
- data/lib/rustici_software_cloud_v2/configuration.rb +3 -3
- data/lib/rustici_software_cloud_v2/models/about_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/activity_result_schema.rb +8 -36
- data/lib/rustici_software_cloud_v2/models/application_info_schema.rb +234 -0
- data/lib/rustici_software_cloud_v2/models/application_list_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/application_request_schema.rb +186 -0
- data/lib/rustici_software_cloud_v2/models/application_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/application_token.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/asset_file_schema.rb +194 -0
- data/lib/rustici_software_cloud_v2/models/batch_tags_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/comment_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/completion_amount_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/course_activity_schema.rb +5 -29
- data/lib/rustici_software_cloud_v2/models/course_list_non_paged_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/course_list_schema.rb +4 -1
- data/lib/rustici_software_cloud_v2/models/course_reference_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/course_schema.rb +5 -29
- data/lib/rustici_software_cloud_v2/models/create_dispatch_id_schema.rb +2 -19
- data/lib/rustici_software_cloud_v2/models/create_dispatch_list_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/create_dispatch_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/create_registration_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/credential_created_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/credential_list_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/credential_request_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/credential_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/destination_id_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/destination_list_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/destination_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/dispatch_id_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/dispatch_list_schema.rb +4 -1
- data/lib/rustici_software_cloud_v2/models/dispatch_lti_info_schema.rb +221 -0
- data/lib/rustici_software_cloud_v2/models/dispatch_registration_count_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/dispatch_schema.rb +43 -3
- data/lib/rustici_software_cloud_v2/models/enabled_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/file_list_item_schema.rb +205 -0
- data/lib/rustici_software_cloud_v2/models/file_list_schema.rb +187 -0
- data/lib/rustici_software_cloud_v2/models/import_asset_request_schema.rb +207 -0
- data/lib/rustici_software_cloud_v2/models/import_fetch_request_schema.rb +29 -6
- data/lib/rustici_software_cloud_v2/models/import_job_result_schema.rb +5 -29
- data/lib/rustici_software_cloud_v2/models/import_media_file_reference_request_schema.rb +216 -0
- data/lib/rustici_software_cloud_v2/models/import_request_schema.rb +195 -0
- data/lib/rustici_software_cloud_v2/models/import_result_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/integer_result_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/invitation_email_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/invitation_job_status_schema.rb +5 -29
- data/lib/rustici_software_cloud_v2/models/invitation_summary_list.rb +4 -1
- data/lib/rustici_software_cloud_v2/models/invitation_summary_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/item_value_pair_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/launch_auth_options_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/launch_auth_schema.rb +5 -29
- data/lib/rustici_software_cloud_v2/models/launch_history_list_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/launch_history_schema.rb +8 -36
- data/lib/rustici_software_cloud_v2/models/launch_link_request_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/launch_link_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/learner_preference_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/learner_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/media_file_metadata_schema.rb +213 -0
- data/lib/rustici_software_cloud_v2/models/message_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/metadata_schema.rb +10 -8
- data/lib/rustici_software_cloud_v2/models/objective_schema.rb +11 -43
- data/lib/rustici_software_cloud_v2/models/permissions_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/ping_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/post_back_schema.rb +8 -36
- data/lib/rustici_software_cloud_v2/models/private_invitation_list.rb +4 -1
- data/lib/rustici_software_cloud_v2/models/private_invitation_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/private_invitation_update_schema.rb +215 -0
- data/lib/rustici_software_cloud_v2/models/public_invitation_list.rb +4 -1
- data/lib/rustici_software_cloud_v2/models/public_invitation_schema.rb +6 -4
- data/lib/rustici_software_cloud_v2/models/public_invitation_update_schema.rb +228 -0
- data/lib/rustici_software_cloud_v2/models/registration_list_schema.rb +4 -1
- data/lib/rustici_software_cloud_v2/models/registration_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/reportage_auth_token_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/reportage_link_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/response_error.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/runtime_interaction_schema.rb +5 -29
- data/lib/rustici_software_cloud_v2/models/runtime_objective_schema.rb +8 -36
- data/lib/rustici_software_cloud_v2/models/runtime_schema.rb +5 -29
- data/lib/rustici_software_cloud_v2/models/score_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/setting_item.rb +5 -29
- data/lib/rustici_software_cloud_v2/models/setting_list_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/setting_metadata.rb +5 -29
- data/lib/rustici_software_cloud_v2/models/setting_valid_value.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/settings_individual_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/settings_post_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/shared_data_entry_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/static_properties_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/string_result_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/tag_list_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/title_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/token_request_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/update_application_schema.rb +196 -0
- data/lib/rustici_software_cloud_v2/models/update_dispatch_schema.rb +15 -3
- data/lib/rustici_software_cloud_v2/models/user_invitation_list.rb +4 -1
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_account.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_activity.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_activity_definition.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_agent_group.rb +5 -29
- data/lib/rustici_software_cloud_v2/models/xapi_attachment.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_context.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_context_activity.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.rb +5 -29
- data/lib/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.rb +5 -29
- data/lib/rustici_software_cloud_v2/models/xapi_credential_post_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_credential_put_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_credential_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_credentials_list_schema.rb +4 -1
- data/lib/rustici_software_cloud_v2/models/xapi_endpoint_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_interaction_component.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_result.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_score.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_statement.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_put_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_statement_reference.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_statement_result.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/xapi_verb.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/zoomi_company_id.rb +3 -1
- data/lib/rustici_software_cloud_v2/models/zoomi_course_options_schema.rb +13 -1
- data/lib/rustici_software_cloud_v2/version.rb +1 -1
- data/lib/rustici_software_cloud_v2.rb +13 -0
- data/rustici_software_cloud_v2.gemspec +2 -1
- data/spec/api_client_spec.rb +17 -0
- metadata +35 -2
@@ -100,6 +100,7 @@ module RusticiSoftwareCloudV2
|
|
100
100
|
true
|
101
101
|
end
|
102
102
|
|
103
|
+
|
103
104
|
# Checks equality by comparing each attribute.
|
104
105
|
# @param [Object] Object to be compared
|
105
106
|
def ==(o)
|
@@ -132,7 +133,7 @@ module RusticiSoftwareCloudV2
|
|
132
133
|
return nil unless attributes.is_a?(Hash)
|
133
134
|
self.class.swagger_types.each_pair do |key, type|
|
134
135
|
if type =~ /\AArray<(.*)>/i
|
135
|
-
# check to ensure the input is an array given that the
|
136
|
+
# check to ensure the input is an array given that the attribute
|
136
137
|
# is documented as an array but the input is not
|
137
138
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
138
139
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -228,5 +229,6 @@ module RusticiSoftwareCloudV2
|
|
228
229
|
value
|
229
230
|
end
|
230
231
|
end
|
232
|
+
|
231
233
|
end
|
232
234
|
end
|
@@ -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
|
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
|
@@ -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
|
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
|
@@ -80,6 +80,7 @@ module RusticiSoftwareCloudV2
|
|
80
80
|
true
|
81
81
|
end
|
82
82
|
|
83
|
+
|
83
84
|
# Checks equality by comparing each attribute.
|
84
85
|
# @param [Object] Object to be compared
|
85
86
|
def ==(o)
|
@@ -109,7 +110,7 @@ module RusticiSoftwareCloudV2
|
|
109
110
|
return nil unless attributes.is_a?(Hash)
|
110
111
|
self.class.swagger_types.each_pair do |key, type|
|
111
112
|
if type =~ /\AArray<(.*)>/i
|
112
|
-
# check to ensure the input is an array given that the
|
113
|
+
# check to ensure the input is an array given that the attribute
|
113
114
|
# is documented as an array but the input is not
|
114
115
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
115
116
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -205,5 +206,6 @@ module RusticiSoftwareCloudV2
|
|
205
206
|
value
|
206
207
|
end
|
207
208
|
end
|
209
|
+
|
208
210
|
end
|
209
211
|
end
|
@@ -163,6 +163,7 @@ module RusticiSoftwareCloudV2
|
|
163
163
|
true
|
164
164
|
end
|
165
165
|
|
166
|
+
|
166
167
|
# Checks equality by comparing each attribute.
|
167
168
|
# @param [Object] Object to be compared
|
168
169
|
def ==(o)
|
@@ -201,7 +202,7 @@ module RusticiSoftwareCloudV2
|
|
201
202
|
return nil unless attributes.is_a?(Hash)
|
202
203
|
self.class.swagger_types.each_pair do |key, type|
|
203
204
|
if type =~ /\AArray<(.*)>/i
|
204
|
-
# check to ensure the input is an array given that the
|
205
|
+
# check to ensure the input is an array given that the attribute
|
205
206
|
# is documented as an array but the input is not
|
206
207
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
207
208
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -297,5 +298,6 @@ module RusticiSoftwareCloudV2
|
|
297
298
|
value
|
298
299
|
end
|
299
300
|
end
|
301
|
+
|
300
302
|
end
|
301
303
|
end
|
@@ -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
|
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
|
@@ -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
|
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
|
@@ -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
|
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
|
@@ -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
|
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
|
@@ -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
|
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
|
@@ -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
|
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
|
@@ -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
|
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
|
@@ -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
|
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
|
@@ -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
|
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
|
@@ -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
|
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
|
@@ -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
|
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
|
@@ -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
|
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
|
@@ -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
|
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
|
@@ -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
|
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
|
@@ -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
|
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
|
@@ -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
|
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
|
@@ -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
|
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
|