rustici_software_cloud_v2 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/lib/rustici_software_cloud_v2.rb +1 -0
- data/lib/rustici_software_cloud_v2/api/about_api.rb +5 -5
- data/lib/rustici_software_cloud_v2/api/application_management_api.rb +77 -79
- data/lib/rustici_software_cloud_v2/api/authentication_api.rb +12 -10
- data/lib/rustici_software_cloud_v2/api/course_api.rb +197 -140
- data/lib/rustici_software_cloud_v2/api/dispatch_api.rb +247 -195
- data/lib/rustici_software_cloud_v2/api/invitations_api.rb +104 -85
- data/lib/rustici_software_cloud_v2/api/learner_api.rb +50 -35
- data/lib/rustici_software_cloud_v2/api/ping_api.rb +5 -7
- data/lib/rustici_software_cloud_v2/api/registration_api.rb +262 -150
- data/lib/rustici_software_cloud_v2/api/reporting_api.rb +21 -17
- data/lib/rustici_software_cloud_v2/api/xapi_api.rb +62 -51
- data/lib/rustici_software_cloud_v2/api/zoomi_api.rb +53 -42
- data/lib/rustici_software_cloud_v2/api_client.rb +1 -0
- data/lib/rustici_software_cloud_v2/api_error.rb +1 -0
- data/lib/rustici_software_cloud_v2/configuration.rb +1 -0
- data/lib/rustici_software_cloud_v2/models/about_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/activity_result_schema.rb +13 -16
- data/lib/rustici_software_cloud_v2/models/application_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/application_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/application_token.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/batch_tags_schema.rb +9 -13
- data/lib/rustici_software_cloud_v2/models/comment_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/completion_amount_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/course_activity_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/course_list_non_paged_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/course_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/course_reference_schema.rb +7 -10
- data/lib/rustici_software_cloud_v2/models/course_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/create_dispatch_id_schema.rb +12 -16
- data/lib/rustici_software_cloud_v2/models/create_dispatch_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/create_dispatch_schema.rb +9 -13
- data/lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb +10 -14
- data/lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb +9 -13
- data/lib/rustici_software_cloud_v2/models/create_registration_schema.rb +10 -14
- data/lib/rustici_software_cloud_v2/models/credential_created_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/credential_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/credential_request_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/credential_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/destination_id_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/destination_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/destination_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/dispatch_id_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/dispatch_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/dispatch_registration_count_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/dispatch_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/enabled_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/import_fetch_request_schema.rb +8 -11
- data/lib/rustici_software_cloud_v2/models/import_job_result_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/import_result_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/integer_result_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/invitation_email_schema.rb +8 -11
- data/lib/rustici_software_cloud_v2/models/invitation_job_status_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/invitation_summary_list.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/invitation_summary_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/item_value_pair_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/launch_auth_options_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/launch_auth_schema.rb +11 -14
- data/lib/rustici_software_cloud_v2/models/launch_history_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/launch_history_schema.rb +15 -18
- data/lib/rustici_software_cloud_v2/models/launch_link_request_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/launch_link_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/learner_preference_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/learner_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/message_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/metadata_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/objective_schema.rb +19 -22
- data/lib/rustici_software_cloud_v2/models/permissions_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/ping_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/post_back_schema.rb +15 -18
- data/lib/rustici_software_cloud_v2/models/private_invitation_list.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/private_invitation_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/public_invitation_list.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/public_invitation_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/registration_completion.rb +13 -4
- data/lib/rustici_software_cloud_v2/models/registration_list_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/registration_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/registration_success.rb +13 -4
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/reportage_auth_token_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/reportage_link_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/response_error.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/runtime_interaction_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/runtime_objective_schema.rb +15 -18
- data/lib/rustici_software_cloud_v2/models/runtime_schema.rb +11 -14
- data/lib/rustici_software_cloud_v2/models/score_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/setting_item.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/setting_list_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/setting_metadata.rb +11 -14
- data/lib/rustici_software_cloud_v2/models/setting_valid_value.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/settings_individual_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/settings_post_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/shared_data_entry_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/static_properties_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/string_result_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/tag_list_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/title_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/token_request_schema.rb +9 -13
- data/lib/rustici_software_cloud_v2/models/update_dispatch_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/user_invitation_list.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.rb +7 -10
- data/lib/rustici_software_cloud_v2/models/xapi_account.rb +9 -12
- data/lib/rustici_software_cloud_v2/models/xapi_activity.rb +9 -12
- data/lib/rustici_software_cloud_v2/models/xapi_activity_definition.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/xapi_agent_group.rb +11 -13
- data/lib/rustici_software_cloud_v2/models/xapi_attachment.rb +14 -17
- data/lib/rustici_software_cloud_v2/models/xapi_context.rb +8 -11
- data/lib/rustici_software_cloud_v2/models/xapi_context_activity.rb +7 -10
- data/lib/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/xapi_credential_post_schema.rb +12 -16
- data/lib/rustici_software_cloud_v2/models/xapi_credential_put_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/xapi_credential_schema.rb +12 -16
- data/lib/rustici_software_cloud_v2/models/xapi_credentials_list_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/xapi_endpoint_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/xapi_interaction_component.rb +9 -12
- data/lib/rustici_software_cloud_v2/models/xapi_result.rb +8 -11
- data/lib/rustici_software_cloud_v2/models/xapi_score.rb +7 -10
- data/lib/rustici_software_cloud_v2/models/xapi_statement.rb +7 -10
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.rb +8 -12
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_put_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/xapi_statement_reference.rb +10 -13
- data/lib/rustici_software_cloud_v2/models/xapi_statement_result.rb +8 -11
- data/lib/rustici_software_cloud_v2/models/xapi_verb.rb +9 -12
- data/lib/rustici_software_cloud_v2/models/zoomi_company_id.rb +7 -11
- data/lib/rustici_software_cloud_v2/models/zoomi_course_options_schema.rb +7 -11
- data/lib/rustici_software_cloud_v2/version.rb +2 -1
- data/rustici_software_cloud_v2.gemspec +8 -7
- data/spec/api_client_spec.rb +35 -34
- data/spec/configuration_spec.rb +9 -8
- data/spec/spec_helper.rb +1 -0
- metadata +16 -16
@@ -6,6 +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
10
|
|
10
11
|
=end
|
11
12
|
|
@@ -32,7 +33,6 @@ module RusticiSoftwareCloudV2
|
|
32
33
|
|
33
34
|
attr_accessor :extensions
|
34
35
|
|
35
|
-
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
37
|
def self.attribute_map
|
38
38
|
{
|
@@ -69,7 +69,7 @@ module RusticiSoftwareCloudV2
|
|
69
69
|
return unless attributes.is_a?(Hash)
|
70
70
|
|
71
71
|
# convert string to symbol for hash key
|
72
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
72
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
73
73
|
|
74
74
|
if attributes.has_key?(:'registration')
|
75
75
|
self.registration = attributes[:'registration']
|
@@ -104,24 +104,23 @@ module RusticiSoftwareCloudV2
|
|
104
104
|
end
|
105
105
|
|
106
106
|
if attributes.has_key?(:'extensions')
|
107
|
-
if (value = attributes[:'extensions']).is_a?(
|
107
|
+
if (value = attributes[:'extensions']).is_a?(Hash)
|
108
108
|
self.extensions = value
|
109
109
|
end
|
110
110
|
end
|
111
|
-
|
112
111
|
end
|
113
112
|
|
114
113
|
# Show invalid properties with the reasons. Usually used together with valid?
|
115
|
-
# @return Array for valid
|
114
|
+
# @return Array for valid properties with the reasons
|
116
115
|
def list_invalid_properties
|
117
116
|
invalid_properties = Array.new
|
118
|
-
|
117
|
+
invalid_properties
|
119
118
|
end
|
120
119
|
|
121
120
|
# Check to see if the all the properties in the model are valid
|
122
121
|
# @return true if the model is valid
|
123
122
|
def valid?
|
124
|
-
|
123
|
+
true
|
125
124
|
end
|
126
125
|
|
127
126
|
# Checks equality by comparing each attribute.
|
@@ -162,7 +161,7 @@ module RusticiSoftwareCloudV2
|
|
162
161
|
# check to ensure the input is an array given that the the attribute
|
163
162
|
# is documented as an array but the input is not
|
164
163
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
165
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
164
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
166
165
|
end
|
167
166
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
168
167
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -244,7 +243,7 @@ module RusticiSoftwareCloudV2
|
|
244
243
|
# @return [Hash] Returns the value in the form of hash
|
245
244
|
def _to_hash(value)
|
246
245
|
if value.is_a?(Array)
|
247
|
-
value.compact.map{ |v| _to_hash(v) }
|
246
|
+
value.compact.map { |v| _to_hash(v) }
|
248
247
|
elsif value.is_a?(Hash)
|
249
248
|
{}.tap do |hash|
|
250
249
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -255,7 +254,5 @@ module RusticiSoftwareCloudV2
|
|
255
254
|
value
|
256
255
|
end
|
257
256
|
end
|
258
|
-
|
259
257
|
end
|
260
|
-
|
261
258
|
end
|
@@ -6,6 +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
10
|
|
10
11
|
=end
|
11
12
|
|
@@ -22,7 +23,6 @@ module RusticiSoftwareCloudV2
|
|
22
23
|
|
23
24
|
attr_accessor :other
|
24
25
|
|
25
|
-
|
26
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
27
|
def self.attribute_map
|
28
28
|
{
|
@@ -49,7 +49,7 @@ module RusticiSoftwareCloudV2
|
|
49
49
|
return unless attributes.is_a?(Hash)
|
50
50
|
|
51
51
|
# convert string to symbol for hash key
|
52
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
52
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
53
53
|
|
54
54
|
if attributes.has_key?(:'parent')
|
55
55
|
if (value = attributes[:'parent']).is_a?(Array)
|
@@ -74,20 +74,19 @@ module RusticiSoftwareCloudV2
|
|
74
74
|
self.other = value
|
75
75
|
end
|
76
76
|
end
|
77
|
-
|
78
77
|
end
|
79
78
|
|
80
79
|
# Show invalid properties with the reasons. Usually used together with valid?
|
81
|
-
# @return Array for valid
|
80
|
+
# @return Array for valid properties with the reasons
|
82
81
|
def list_invalid_properties
|
83
82
|
invalid_properties = Array.new
|
84
|
-
|
83
|
+
invalid_properties
|
85
84
|
end
|
86
85
|
|
87
86
|
# Check to see if the all the properties in the model are valid
|
88
87
|
# @return true if the model is valid
|
89
88
|
def valid?
|
90
|
-
|
89
|
+
true
|
91
90
|
end
|
92
91
|
|
93
92
|
# Checks equality by comparing each attribute.
|
@@ -123,7 +122,7 @@ module RusticiSoftwareCloudV2
|
|
123
122
|
# check to ensure the input is an array given that the the attribute
|
124
123
|
# is documented as an array but the input is not
|
125
124
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
126
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
125
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
127
126
|
end
|
128
127
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
129
128
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -205,7 +204,7 @@ module RusticiSoftwareCloudV2
|
|
205
204
|
# @return [Hash] Returns the value in the form of hash
|
206
205
|
def _to_hash(value)
|
207
206
|
if value.is_a?(Array)
|
208
|
-
value.compact.map{ |v| _to_hash(v) }
|
207
|
+
value.compact.map { |v| _to_hash(v) }
|
209
208
|
elsif value.is_a?(Hash)
|
210
209
|
{}.tap do |hash|
|
211
210
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -216,7 +215,5 @@ module RusticiSoftwareCloudV2
|
|
216
215
|
value
|
217
216
|
end
|
218
217
|
end
|
219
|
-
|
220
218
|
end
|
221
|
-
|
222
219
|
end
|
@@ -6,13 +6,13 @@
|
|
6
6
|
OpenAPI spec version: 2.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.12
|
9
10
|
|
10
11
|
=end
|
11
12
|
|
12
13
|
require 'date'
|
13
14
|
|
14
15
|
module RusticiSoftwareCloudV2
|
15
|
-
|
16
16
|
class XapiCredentialAuthTypeSchema
|
17
17
|
attr_accessor :xapi_credential_auth_type
|
18
18
|
|
@@ -58,35 +58,34 @@ module RusticiSoftwareCloudV2
|
|
58
58
|
return unless attributes.is_a?(Hash)
|
59
59
|
|
60
60
|
# convert string to symbol for hash key
|
61
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
61
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
62
62
|
|
63
63
|
if attributes.has_key?(:'xapiCredentialAuthType')
|
64
64
|
self.xapi_credential_auth_type = attributes[:'xapiCredentialAuthType']
|
65
65
|
end
|
66
|
-
|
67
66
|
end
|
68
67
|
|
69
68
|
# Show invalid properties with the reasons. Usually used together with valid?
|
70
|
-
# @return Array for valid
|
69
|
+
# @return Array for valid properties with the reasons
|
71
70
|
def list_invalid_properties
|
72
71
|
invalid_properties = Array.new
|
73
|
-
|
72
|
+
invalid_properties
|
74
73
|
end
|
75
74
|
|
76
75
|
# Check to see if the all the properties in the model are valid
|
77
76
|
# @return true if the model is valid
|
78
77
|
def valid?
|
79
|
-
xapi_credential_auth_type_validator = EnumAttributeValidator.new('String', [
|
78
|
+
xapi_credential_auth_type_validator = EnumAttributeValidator.new('String', ['BASICAUTH', 'OAUTH'])
|
80
79
|
return false unless xapi_credential_auth_type_validator.valid?(@xapi_credential_auth_type)
|
81
|
-
|
80
|
+
true
|
82
81
|
end
|
83
82
|
|
84
83
|
# Custom attribute writer method checking allowed values (enum).
|
85
84
|
# @param [Object] xapi_credential_auth_type Object to be assigned
|
86
85
|
def xapi_credential_auth_type=(xapi_credential_auth_type)
|
87
|
-
validator = EnumAttributeValidator.new('String', [
|
86
|
+
validator = EnumAttributeValidator.new('String', ['BASICAUTH', 'OAUTH'])
|
88
87
|
unless validator.valid?(xapi_credential_auth_type)
|
89
|
-
fail ArgumentError,
|
88
|
+
fail ArgumentError, 'invalid value for "xapi_credential_auth_type", must be one of #{validator.allowable_values}.'
|
90
89
|
end
|
91
90
|
@xapi_credential_auth_type = xapi_credential_auth_type
|
92
91
|
end
|
@@ -121,7 +120,7 @@ module RusticiSoftwareCloudV2
|
|
121
120
|
# check to ensure the input is an array given that the the attribute
|
122
121
|
# is documented as an array but the input is not
|
123
122
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
124
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
123
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
125
124
|
end
|
126
125
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
127
126
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -203,7 +202,7 @@ module RusticiSoftwareCloudV2
|
|
203
202
|
# @return [Hash] Returns the value in the form of hash
|
204
203
|
def _to_hash(value)
|
205
204
|
if value.is_a?(Array)
|
206
|
-
value.compact.map{ |v| _to_hash(v) }
|
205
|
+
value.compact.map { |v| _to_hash(v) }
|
207
206
|
elsif value.is_a?(Hash)
|
208
207
|
{}.tap do |hash|
|
209
208
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -214,7 +213,5 @@ module RusticiSoftwareCloudV2
|
|
214
213
|
value
|
215
214
|
end
|
216
215
|
end
|
217
|
-
|
218
216
|
end
|
219
|
-
|
220
217
|
end
|
@@ -6,13 +6,13 @@
|
|
6
6
|
OpenAPI spec version: 2.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.12
|
9
10
|
|
10
11
|
=end
|
11
12
|
|
12
13
|
require 'date'
|
13
14
|
|
14
15
|
module RusticiSoftwareCloudV2
|
15
|
-
|
16
16
|
class XapiCredentialPermissionsLevelSchema
|
17
17
|
attr_accessor :xapi_credential_permissions_level
|
18
18
|
|
@@ -58,35 +58,34 @@ module RusticiSoftwareCloudV2
|
|
58
58
|
return unless attributes.is_a?(Hash)
|
59
59
|
|
60
60
|
# convert string to symbol for hash key
|
61
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
61
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
62
62
|
|
63
63
|
if attributes.has_key?(:'xapiCredentialPermissionsLevel')
|
64
64
|
self.xapi_credential_permissions_level = attributes[:'xapiCredentialPermissionsLevel']
|
65
65
|
end
|
66
|
-
|
67
66
|
end
|
68
67
|
|
69
68
|
# Show invalid properties with the reasons. Usually used together with valid?
|
70
|
-
# @return Array for valid
|
69
|
+
# @return Array for valid properties with the reasons
|
71
70
|
def list_invalid_properties
|
72
71
|
invalid_properties = Array.new
|
73
|
-
|
72
|
+
invalid_properties
|
74
73
|
end
|
75
74
|
|
76
75
|
# Check to see if the all the properties in the model are valid
|
77
76
|
# @return true if the model is valid
|
78
77
|
def valid?
|
79
|
-
xapi_credential_permissions_level_validator = EnumAttributeValidator.new('String', [
|
78
|
+
xapi_credential_permissions_level_validator = EnumAttributeValidator.new('String', ['DEFAULT', 'USER', 'ROOT', 'READONLY', 'WRITEONLY'])
|
80
79
|
return false unless xapi_credential_permissions_level_validator.valid?(@xapi_credential_permissions_level)
|
81
|
-
|
80
|
+
true
|
82
81
|
end
|
83
82
|
|
84
83
|
# Custom attribute writer method checking allowed values (enum).
|
85
84
|
# @param [Object] xapi_credential_permissions_level Object to be assigned
|
86
85
|
def xapi_credential_permissions_level=(xapi_credential_permissions_level)
|
87
|
-
validator = EnumAttributeValidator.new('String', [
|
86
|
+
validator = EnumAttributeValidator.new('String', ['DEFAULT', 'USER', 'ROOT', 'READONLY', 'WRITEONLY'])
|
88
87
|
unless validator.valid?(xapi_credential_permissions_level)
|
89
|
-
fail ArgumentError,
|
88
|
+
fail ArgumentError, 'invalid value for "xapi_credential_permissions_level", must be one of #{validator.allowable_values}.'
|
90
89
|
end
|
91
90
|
@xapi_credential_permissions_level = xapi_credential_permissions_level
|
92
91
|
end
|
@@ -121,7 +120,7 @@ module RusticiSoftwareCloudV2
|
|
121
120
|
# check to ensure the input is an array given that the the attribute
|
122
121
|
# is documented as an array but the input is not
|
123
122
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
124
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
123
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
125
124
|
end
|
126
125
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
127
126
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -203,7 +202,7 @@ module RusticiSoftwareCloudV2
|
|
203
202
|
# @return [Hash] Returns the value in the form of hash
|
204
203
|
def _to_hash(value)
|
205
204
|
if value.is_a?(Array)
|
206
|
-
value.compact.map{ |v| _to_hash(v) }
|
205
|
+
value.compact.map { |v| _to_hash(v) }
|
207
206
|
elsif value.is_a?(Hash)
|
208
207
|
{}.tap do |hash|
|
209
208
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -214,7 +213,5 @@ module RusticiSoftwareCloudV2
|
|
214
213
|
value
|
215
214
|
end
|
216
215
|
end
|
217
|
-
|
218
216
|
end
|
219
|
-
|
220
217
|
end
|
@@ -6,13 +6,13 @@
|
|
6
6
|
OpenAPI spec version: 2.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.12
|
9
10
|
|
10
11
|
=end
|
11
12
|
|
12
13
|
require 'date'
|
13
14
|
|
14
15
|
module RusticiSoftwareCloudV2
|
15
|
-
|
16
16
|
class XapiCredentialPostSchema
|
17
17
|
attr_accessor :name
|
18
18
|
|
@@ -26,7 +26,6 @@ module RusticiSoftwareCloudV2
|
|
26
26
|
|
27
27
|
attr_accessor :permissions_level
|
28
28
|
|
29
|
-
|
30
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
30
|
def self.attribute_map
|
32
31
|
{
|
@@ -57,7 +56,7 @@ module RusticiSoftwareCloudV2
|
|
57
56
|
return unless attributes.is_a?(Hash)
|
58
57
|
|
59
58
|
# convert string to symbol for hash key
|
60
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
59
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
61
60
|
|
62
61
|
if attributes.has_key?(:'name')
|
63
62
|
self.name = attributes[:'name']
|
@@ -82,34 +81,33 @@ module RusticiSoftwareCloudV2
|
|
82
81
|
if attributes.has_key?(:'permissionsLevel')
|
83
82
|
self.permissions_level = attributes[:'permissionsLevel']
|
84
83
|
end
|
85
|
-
|
86
84
|
end
|
87
85
|
|
88
86
|
# Show invalid properties with the reasons. Usually used together with valid?
|
89
|
-
# @return Array for valid
|
87
|
+
# @return Array for valid properties with the reasons
|
90
88
|
def list_invalid_properties
|
91
89
|
invalid_properties = Array.new
|
92
90
|
if @name.nil?
|
93
|
-
invalid_properties.push(
|
91
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
94
92
|
end
|
95
93
|
|
96
94
|
if @secret.nil?
|
97
|
-
invalid_properties.push(
|
95
|
+
invalid_properties.push('invalid value for "secret", secret cannot be nil.')
|
98
96
|
end
|
99
97
|
|
100
98
|
if @is_enabled.nil?
|
101
|
-
invalid_properties.push(
|
99
|
+
invalid_properties.push('invalid value for "is_enabled", is_enabled cannot be nil.')
|
102
100
|
end
|
103
101
|
|
104
102
|
if @auth.nil?
|
105
|
-
invalid_properties.push(
|
103
|
+
invalid_properties.push('invalid value for "auth", auth cannot be nil.')
|
106
104
|
end
|
107
105
|
|
108
106
|
if @permissions_level.nil?
|
109
|
-
invalid_properties.push(
|
107
|
+
invalid_properties.push('invalid value for "permissions_level", permissions_level cannot be nil.')
|
110
108
|
end
|
111
109
|
|
112
|
-
|
110
|
+
invalid_properties
|
113
111
|
end
|
114
112
|
|
115
113
|
# Check to see if the all the properties in the model are valid
|
@@ -120,7 +118,7 @@ module RusticiSoftwareCloudV2
|
|
120
118
|
return false if @is_enabled.nil?
|
121
119
|
return false if @auth.nil?
|
122
120
|
return false if @permissions_level.nil?
|
123
|
-
|
121
|
+
true
|
124
122
|
end
|
125
123
|
|
126
124
|
# Checks equality by comparing each attribute.
|
@@ -158,7 +156,7 @@ module RusticiSoftwareCloudV2
|
|
158
156
|
# check to ensure the input is an array given that the the attribute
|
159
157
|
# is documented as an array but the input is not
|
160
158
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
161
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
159
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
162
160
|
end
|
163
161
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
164
162
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -240,7 +238,7 @@ module RusticiSoftwareCloudV2
|
|
240
238
|
# @return [Hash] Returns the value in the form of hash
|
241
239
|
def _to_hash(value)
|
242
240
|
if value.is_a?(Array)
|
243
|
-
value.compact.map{ |v| _to_hash(v) }
|
241
|
+
value.compact.map { |v| _to_hash(v) }
|
244
242
|
elsif value.is_a?(Hash)
|
245
243
|
{}.tap do |hash|
|
246
244
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -251,7 +249,5 @@ module RusticiSoftwareCloudV2
|
|
251
249
|
value
|
252
250
|
end
|
253
251
|
end
|
254
|
-
|
255
252
|
end
|
256
|
-
|
257
253
|
end
|
@@ -6,13 +6,13 @@
|
|
6
6
|
OpenAPI spec version: 2.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.12
|
9
10
|
|
10
11
|
=end
|
11
12
|
|
12
13
|
require 'date'
|
13
14
|
|
14
15
|
module RusticiSoftwareCloudV2
|
15
|
-
|
16
16
|
class XapiCredentialPutSchema
|
17
17
|
attr_accessor :id
|
18
18
|
|
@@ -28,7 +28,6 @@ module RusticiSoftwareCloudV2
|
|
28
28
|
|
29
29
|
attr_accessor :permissions_level
|
30
30
|
|
31
|
-
|
32
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
32
|
def self.attribute_map
|
34
33
|
{
|
@@ -61,7 +60,7 @@ module RusticiSoftwareCloudV2
|
|
61
60
|
return unless attributes.is_a?(Hash)
|
62
61
|
|
63
62
|
# convert string to symbol for hash key
|
64
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
63
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
65
64
|
|
66
65
|
if attributes.has_key?(:'id')
|
67
66
|
self.id = attributes[:'id']
|
@@ -90,20 +89,19 @@ module RusticiSoftwareCloudV2
|
|
90
89
|
if attributes.has_key?(:'permissionsLevel')
|
91
90
|
self.permissions_level = attributes[:'permissionsLevel']
|
92
91
|
end
|
93
|
-
|
94
92
|
end
|
95
93
|
|
96
94
|
# Show invalid properties with the reasons. Usually used together with valid?
|
97
|
-
# @return Array for valid
|
95
|
+
# @return Array for valid properties with the reasons
|
98
96
|
def list_invalid_properties
|
99
97
|
invalid_properties = Array.new
|
100
|
-
|
98
|
+
invalid_properties
|
101
99
|
end
|
102
100
|
|
103
101
|
# Check to see if the all the properties in the model are valid
|
104
102
|
# @return true if the model is valid
|
105
103
|
def valid?
|
106
|
-
|
104
|
+
true
|
107
105
|
end
|
108
106
|
|
109
107
|
# Checks equality by comparing each attribute.
|
@@ -142,7 +140,7 @@ module RusticiSoftwareCloudV2
|
|
142
140
|
# check to ensure the input is an array given that the the attribute
|
143
141
|
# is documented as an array but the input is not
|
144
142
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
145
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
143
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
146
144
|
end
|
147
145
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
148
146
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -224,7 +222,7 @@ module RusticiSoftwareCloudV2
|
|
224
222
|
# @return [Hash] Returns the value in the form of hash
|
225
223
|
def _to_hash(value)
|
226
224
|
if value.is_a?(Array)
|
227
|
-
value.compact.map{ |v| _to_hash(v) }
|
225
|
+
value.compact.map { |v| _to_hash(v) }
|
228
226
|
elsif value.is_a?(Hash)
|
229
227
|
{}.tap do |hash|
|
230
228
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -235,7 +233,5 @@ module RusticiSoftwareCloudV2
|
|
235
233
|
value
|
236
234
|
end
|
237
235
|
end
|
238
|
-
|
239
236
|
end
|
240
|
-
|
241
237
|
end
|