rustici_software_cloud_v2 1.0.2 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,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 XapiCredentialSchema
|
|
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,34 +89,33 @@ 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
|
if @name.nil?
|
|
101
|
-
invalid_properties.push(
|
|
99
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
102
100
|
end
|
|
103
101
|
|
|
104
102
|
if @secret.nil?
|
|
105
|
-
invalid_properties.push(
|
|
103
|
+
invalid_properties.push('invalid value for "secret", secret cannot be nil.')
|
|
106
104
|
end
|
|
107
105
|
|
|
108
106
|
if @is_enabled.nil?
|
|
109
|
-
invalid_properties.push(
|
|
107
|
+
invalid_properties.push('invalid value for "is_enabled", is_enabled cannot be nil.')
|
|
110
108
|
end
|
|
111
109
|
|
|
112
110
|
if @auth.nil?
|
|
113
|
-
invalid_properties.push(
|
|
111
|
+
invalid_properties.push('invalid value for "auth", auth cannot be nil.')
|
|
114
112
|
end
|
|
115
113
|
|
|
116
114
|
if @permissions_level.nil?
|
|
117
|
-
invalid_properties.push(
|
|
115
|
+
invalid_properties.push('invalid value for "permissions_level", permissions_level cannot be nil.')
|
|
118
116
|
end
|
|
119
117
|
|
|
120
|
-
|
|
118
|
+
invalid_properties
|
|
121
119
|
end
|
|
122
120
|
|
|
123
121
|
# Check to see if the all the properties in the model are valid
|
|
@@ -128,7 +126,7 @@ module RusticiSoftwareCloudV2
|
|
|
128
126
|
return false if @is_enabled.nil?
|
|
129
127
|
return false if @auth.nil?
|
|
130
128
|
return false if @permissions_level.nil?
|
|
131
|
-
|
|
129
|
+
true
|
|
132
130
|
end
|
|
133
131
|
|
|
134
132
|
# Checks equality by comparing each attribute.
|
|
@@ -167,7 +165,7 @@ module RusticiSoftwareCloudV2
|
|
|
167
165
|
# check to ensure the input is an array given that the the attribute
|
|
168
166
|
# is documented as an array but the input is not
|
|
169
167
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
170
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
168
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
171
169
|
end
|
|
172
170
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
173
171
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -249,7 +247,7 @@ module RusticiSoftwareCloudV2
|
|
|
249
247
|
# @return [Hash] Returns the value in the form of hash
|
|
250
248
|
def _to_hash(value)
|
|
251
249
|
if value.is_a?(Array)
|
|
252
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
250
|
+
value.compact.map { |v| _to_hash(v) }
|
|
253
251
|
elsif value.is_a?(Hash)
|
|
254
252
|
{}.tap do |hash|
|
|
255
253
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -260,7 +258,5 @@ module RusticiSoftwareCloudV2
|
|
|
260
258
|
value
|
|
261
259
|
end
|
|
262
260
|
end
|
|
263
|
-
|
|
264
261
|
end
|
|
265
|
-
|
|
266
262
|
end
|
|
@@ -6,19 +6,18 @@
|
|
|
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 XapiCredentialsListSchema
|
|
17
17
|
attr_accessor :xapi_credentials
|
|
18
18
|
|
|
19
19
|
attr_accessor :more
|
|
20
20
|
|
|
21
|
-
|
|
22
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
22
|
def self.attribute_map
|
|
24
23
|
{
|
|
@@ -41,7 +40,7 @@ module RusticiSoftwareCloudV2
|
|
|
41
40
|
return unless attributes.is_a?(Hash)
|
|
42
41
|
|
|
43
42
|
# convert string to symbol for hash key
|
|
44
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
43
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
45
44
|
|
|
46
45
|
if attributes.has_key?(:'xapiCredentials')
|
|
47
46
|
if (value = attributes[:'xapiCredentials']).is_a?(Array)
|
|
@@ -52,25 +51,24 @@ module RusticiSoftwareCloudV2
|
|
|
52
51
|
if attributes.has_key?(:'more')
|
|
53
52
|
self.more = attributes[:'more']
|
|
54
53
|
end
|
|
55
|
-
|
|
56
54
|
end
|
|
57
55
|
|
|
58
56
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
59
|
-
# @return Array for valid
|
|
57
|
+
# @return Array for valid properties with the reasons
|
|
60
58
|
def list_invalid_properties
|
|
61
59
|
invalid_properties = Array.new
|
|
62
60
|
if @xapi_credentials.nil?
|
|
63
|
-
invalid_properties.push(
|
|
61
|
+
invalid_properties.push('invalid value for "xapi_credentials", xapi_credentials cannot be nil.')
|
|
64
62
|
end
|
|
65
63
|
|
|
66
|
-
|
|
64
|
+
invalid_properties
|
|
67
65
|
end
|
|
68
66
|
|
|
69
67
|
# Check to see if the all the properties in the model are valid
|
|
70
68
|
# @return true if the model is valid
|
|
71
69
|
def valid?
|
|
72
70
|
return false if @xapi_credentials.nil?
|
|
73
|
-
|
|
71
|
+
true
|
|
74
72
|
end
|
|
75
73
|
|
|
76
74
|
# Checks equality by comparing each attribute.
|
|
@@ -104,7 +102,7 @@ module RusticiSoftwareCloudV2
|
|
|
104
102
|
# check to ensure the input is an array given that the the attribute
|
|
105
103
|
# is documented as an array but the input is not
|
|
106
104
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
107
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
105
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
108
106
|
end
|
|
109
107
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
110
108
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -186,7 +184,7 @@ module RusticiSoftwareCloudV2
|
|
|
186
184
|
# @return [Hash] Returns the value in the form of hash
|
|
187
185
|
def _to_hash(value)
|
|
188
186
|
if value.is_a?(Array)
|
|
189
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
187
|
+
value.compact.map { |v| _to_hash(v) }
|
|
190
188
|
elsif value.is_a?(Hash)
|
|
191
189
|
{}.tap do |hash|
|
|
192
190
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -197,7 +195,5 @@ module RusticiSoftwareCloudV2
|
|
|
197
195
|
value
|
|
198
196
|
end
|
|
199
197
|
end
|
|
200
|
-
|
|
201
198
|
end
|
|
202
|
-
|
|
203
199
|
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 XapiEndpointSchema
|
|
17
17
|
attr_accessor :url
|
|
18
18
|
|
|
@@ -20,7 +20,6 @@ module RusticiSoftwareCloudV2
|
|
|
20
20
|
|
|
21
21
|
attr_accessor :password
|
|
22
22
|
|
|
23
|
-
|
|
24
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
24
|
def self.attribute_map
|
|
26
25
|
{
|
|
@@ -45,7 +44,7 @@ module RusticiSoftwareCloudV2
|
|
|
45
44
|
return unless attributes.is_a?(Hash)
|
|
46
45
|
|
|
47
46
|
# convert string to symbol for hash key
|
|
48
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
47
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
49
48
|
|
|
50
49
|
if attributes.has_key?(:'url')
|
|
51
50
|
self.url = attributes[:'url']
|
|
@@ -58,20 +57,19 @@ module RusticiSoftwareCloudV2
|
|
|
58
57
|
if attributes.has_key?(:'password')
|
|
59
58
|
self.password = attributes[:'password']
|
|
60
59
|
end
|
|
61
|
-
|
|
62
60
|
end
|
|
63
61
|
|
|
64
62
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
65
|
-
# @return Array for valid
|
|
63
|
+
# @return Array for valid properties with the reasons
|
|
66
64
|
def list_invalid_properties
|
|
67
65
|
invalid_properties = Array.new
|
|
68
|
-
|
|
66
|
+
invalid_properties
|
|
69
67
|
end
|
|
70
68
|
|
|
71
69
|
# Check to see if the all the properties in the model are valid
|
|
72
70
|
# @return true if the model is valid
|
|
73
71
|
def valid?
|
|
74
|
-
|
|
72
|
+
true
|
|
75
73
|
end
|
|
76
74
|
|
|
77
75
|
# Checks equality by comparing each attribute.
|
|
@@ -106,7 +104,7 @@ module RusticiSoftwareCloudV2
|
|
|
106
104
|
# check to ensure the input is an array given that the the attribute
|
|
107
105
|
# is documented as an array but the input is not
|
|
108
106
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
109
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
107
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
110
108
|
end
|
|
111
109
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
112
110
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -188,7 +186,7 @@ module RusticiSoftwareCloudV2
|
|
|
188
186
|
# @return [Hash] Returns the value in the form of hash
|
|
189
187
|
def _to_hash(value)
|
|
190
188
|
if value.is_a?(Array)
|
|
191
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
189
|
+
value.compact.map { |v| _to_hash(v) }
|
|
192
190
|
elsif value.is_a?(Hash)
|
|
193
191
|
{}.tap do |hash|
|
|
194
192
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -199,7 +197,5 @@ module RusticiSoftwareCloudV2
|
|
|
199
197
|
value
|
|
200
198
|
end
|
|
201
199
|
end
|
|
202
|
-
|
|
203
200
|
end
|
|
204
|
-
|
|
205
201
|
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
|
|
|
@@ -18,7 +19,6 @@ module RusticiSoftwareCloudV2
|
|
|
18
19
|
|
|
19
20
|
attr_accessor :description
|
|
20
21
|
|
|
21
|
-
|
|
22
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
23
|
def self.attribute_map
|
|
24
24
|
{
|
|
@@ -41,36 +41,35 @@ module RusticiSoftwareCloudV2
|
|
|
41
41
|
return unless attributes.is_a?(Hash)
|
|
42
42
|
|
|
43
43
|
# convert string to symbol for hash key
|
|
44
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
44
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
45
45
|
|
|
46
46
|
if attributes.has_key?(:'id')
|
|
47
47
|
self.id = attributes[:'id']
|
|
48
48
|
end
|
|
49
49
|
|
|
50
50
|
if attributes.has_key?(:'description')
|
|
51
|
-
if (value = attributes[:'description']).is_a?(
|
|
51
|
+
if (value = attributes[:'description']).is_a?(Hash)
|
|
52
52
|
self.description = value
|
|
53
53
|
end
|
|
54
54
|
end
|
|
55
|
-
|
|
56
55
|
end
|
|
57
56
|
|
|
58
57
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
59
|
-
# @return Array for valid
|
|
58
|
+
# @return Array for valid properties with the reasons
|
|
60
59
|
def list_invalid_properties
|
|
61
60
|
invalid_properties = Array.new
|
|
62
61
|
if @id.nil?
|
|
63
|
-
invalid_properties.push(
|
|
62
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
64
63
|
end
|
|
65
64
|
|
|
66
|
-
|
|
65
|
+
invalid_properties
|
|
67
66
|
end
|
|
68
67
|
|
|
69
68
|
# Check to see if the all the properties in the model are valid
|
|
70
69
|
# @return true if the model is valid
|
|
71
70
|
def valid?
|
|
72
71
|
return false if @id.nil?
|
|
73
|
-
|
|
72
|
+
true
|
|
74
73
|
end
|
|
75
74
|
|
|
76
75
|
# Checks equality by comparing each attribute.
|
|
@@ -104,7 +103,7 @@ module RusticiSoftwareCloudV2
|
|
|
104
103
|
# check to ensure the input is an array given that the the attribute
|
|
105
104
|
# is documented as an array but the input is not
|
|
106
105
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
107
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
106
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
108
107
|
end
|
|
109
108
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
110
109
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -186,7 +185,7 @@ module RusticiSoftwareCloudV2
|
|
|
186
185
|
# @return [Hash] Returns the value in the form of hash
|
|
187
186
|
def _to_hash(value)
|
|
188
187
|
if value.is_a?(Array)
|
|
189
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
188
|
+
value.compact.map { |v| _to_hash(v) }
|
|
190
189
|
elsif value.is_a?(Hash)
|
|
191
190
|
{}.tap do |hash|
|
|
192
191
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -197,7 +196,5 @@ module RusticiSoftwareCloudV2
|
|
|
197
196
|
value
|
|
198
197
|
end
|
|
199
198
|
end
|
|
200
|
-
|
|
201
199
|
end
|
|
202
|
-
|
|
203
200
|
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
|
|
|
@@ -26,7 +27,6 @@ module RusticiSoftwareCloudV2
|
|
|
26
27
|
|
|
27
28
|
attr_accessor :extensions
|
|
28
29
|
|
|
29
|
-
|
|
30
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
31
|
def self.attribute_map
|
|
32
32
|
{
|
|
@@ -57,7 +57,7 @@ module RusticiSoftwareCloudV2
|
|
|
57
57
|
return unless attributes.is_a?(Hash)
|
|
58
58
|
|
|
59
59
|
# convert string to symbol for hash key
|
|
60
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
61
61
|
|
|
62
62
|
if attributes.has_key?(:'score')
|
|
63
63
|
self.score = attributes[:'score']
|
|
@@ -80,24 +80,23 @@ module RusticiSoftwareCloudV2
|
|
|
80
80
|
end
|
|
81
81
|
|
|
82
82
|
if attributes.has_key?(:'extensions')
|
|
83
|
-
if (value = attributes[:'extensions']).is_a?(
|
|
83
|
+
if (value = attributes[:'extensions']).is_a?(Hash)
|
|
84
84
|
self.extensions = value
|
|
85
85
|
end
|
|
86
86
|
end
|
|
87
|
-
|
|
88
87
|
end
|
|
89
88
|
|
|
90
89
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
91
|
-
# @return Array for valid
|
|
90
|
+
# @return Array for valid properties with the reasons
|
|
92
91
|
def list_invalid_properties
|
|
93
92
|
invalid_properties = Array.new
|
|
94
|
-
|
|
93
|
+
invalid_properties
|
|
95
94
|
end
|
|
96
95
|
|
|
97
96
|
# Check to see if the all the properties in the model are valid
|
|
98
97
|
# @return true if the model is valid
|
|
99
98
|
def valid?
|
|
100
|
-
|
|
99
|
+
true
|
|
101
100
|
end
|
|
102
101
|
|
|
103
102
|
# Checks equality by comparing each attribute.
|
|
@@ -135,7 +134,7 @@ module RusticiSoftwareCloudV2
|
|
|
135
134
|
# check to ensure the input is an array given that the the attribute
|
|
136
135
|
# is documented as an array but the input is not
|
|
137
136
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
138
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
137
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
139
138
|
end
|
|
140
139
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
141
140
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -217,7 +216,7 @@ module RusticiSoftwareCloudV2
|
|
|
217
216
|
# @return [Hash] Returns the value in the form of hash
|
|
218
217
|
def _to_hash(value)
|
|
219
218
|
if value.is_a?(Array)
|
|
220
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
219
|
+
value.compact.map { |v| _to_hash(v) }
|
|
221
220
|
elsif value.is_a?(Hash)
|
|
222
221
|
{}.tap do |hash|
|
|
223
222
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -228,7 +227,5 @@ module RusticiSoftwareCloudV2
|
|
|
228
227
|
value
|
|
229
228
|
end
|
|
230
229
|
end
|
|
231
|
-
|
|
232
230
|
end
|
|
233
|
-
|
|
234
231
|
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 :max
|
|
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?(:'scaled')
|
|
55
55
|
self.scaled = attributes[:'scaled']
|
|
@@ -66,20 +66,19 @@ module RusticiSoftwareCloudV2
|
|
|
66
66
|
if attributes.has_key?(:'max')
|
|
67
67
|
self.max = attributes[:'max']
|
|
68
68
|
end
|
|
69
|
-
|
|
70
69
|
end
|
|
71
70
|
|
|
72
71
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
73
|
-
# @return Array for valid
|
|
72
|
+
# @return Array for valid properties with the reasons
|
|
74
73
|
def list_invalid_properties
|
|
75
74
|
invalid_properties = Array.new
|
|
76
|
-
|
|
75
|
+
invalid_properties
|
|
77
76
|
end
|
|
78
77
|
|
|
79
78
|
# Check to see if the all the properties in the model are valid
|
|
80
79
|
# @return true if the model is valid
|
|
81
80
|
def valid?
|
|
82
|
-
|
|
81
|
+
true
|
|
83
82
|
end
|
|
84
83
|
|
|
85
84
|
# Checks equality by comparing each attribute.
|
|
@@ -115,7 +114,7 @@ module RusticiSoftwareCloudV2
|
|
|
115
114
|
# check to ensure the input is an array given that the the attribute
|
|
116
115
|
# is documented as an array but the input is not
|
|
117
116
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
118
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
117
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
119
118
|
end
|
|
120
119
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
121
120
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -197,7 +196,7 @@ module RusticiSoftwareCloudV2
|
|
|
197
196
|
# @return [Hash] Returns the value in the form of hash
|
|
198
197
|
def _to_hash(value)
|
|
199
198
|
if value.is_a?(Array)
|
|
200
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
199
|
+
value.compact.map { |v| _to_hash(v) }
|
|
201
200
|
elsif value.is_a?(Hash)
|
|
202
201
|
{}.tap do |hash|
|
|
203
202
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -208,7 +207,5 @@ module RusticiSoftwareCloudV2
|
|
|
208
207
|
value
|
|
209
208
|
end
|
|
210
209
|
end
|
|
211
|
-
|
|
212
210
|
end
|
|
213
|
-
|
|
214
211
|
end
|