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,17 +6,16 @@
|
|
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 ApplicationListSchema
|
17
17
|
attr_accessor :applications
|
18
18
|
|
19
|
-
|
20
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
20
|
def self.attribute_map
|
22
21
|
{
|
@@ -37,27 +36,26 @@ module RusticiSoftwareCloudV2
|
|
37
36
|
return unless attributes.is_a?(Hash)
|
38
37
|
|
39
38
|
# convert string to symbol for hash key
|
40
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
39
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
41
40
|
|
42
41
|
if attributes.has_key?(:'applications')
|
43
42
|
if (value = attributes[:'applications']).is_a?(Array)
|
44
43
|
self.applications = value
|
45
44
|
end
|
46
45
|
end
|
47
|
-
|
48
46
|
end
|
49
47
|
|
50
48
|
# Show invalid properties with the reasons. Usually used together with valid?
|
51
|
-
# @return Array for valid
|
49
|
+
# @return Array for valid properties with the reasons
|
52
50
|
def list_invalid_properties
|
53
51
|
invalid_properties = Array.new
|
54
|
-
|
52
|
+
invalid_properties
|
55
53
|
end
|
56
54
|
|
57
55
|
# Check to see if the all the properties in the model are valid
|
58
56
|
# @return true if the model is valid
|
59
57
|
def valid?
|
60
|
-
|
58
|
+
true
|
61
59
|
end
|
62
60
|
|
63
61
|
# Checks equality by comparing each attribute.
|
@@ -90,7 +88,7 @@ module RusticiSoftwareCloudV2
|
|
90
88
|
# check to ensure the input is an array given that the the attribute
|
91
89
|
# is documented as an array but the input is not
|
92
90
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
93
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
91
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
94
92
|
end
|
95
93
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
96
94
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -172,7 +170,7 @@ module RusticiSoftwareCloudV2
|
|
172
170
|
# @return [Hash] Returns the value in the form of hash
|
173
171
|
def _to_hash(value)
|
174
172
|
if value.is_a?(Array)
|
175
|
-
value.compact.map{ |v| _to_hash(v) }
|
173
|
+
value.compact.map { |v| _to_hash(v) }
|
176
174
|
elsif value.is_a?(Hash)
|
177
175
|
{}.tap do |hash|
|
178
176
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -183,7 +181,5 @@ module RusticiSoftwareCloudV2
|
|
183
181
|
value
|
184
182
|
end
|
185
183
|
end
|
186
|
-
|
187
184
|
end
|
188
|
-
|
189
185
|
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 ApplicationSchema
|
17
17
|
# The application id for this application.
|
18
18
|
attr_accessor :id
|
@@ -20,7 +20,6 @@ module RusticiSoftwareCloudV2
|
|
20
20
|
# The name of this application.
|
21
21
|
attr_accessor :name
|
22
22
|
|
23
|
-
|
24
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
24
|
def self.attribute_map
|
26
25
|
{
|
@@ -43,7 +42,7 @@ module RusticiSoftwareCloudV2
|
|
43
42
|
return unless attributes.is_a?(Hash)
|
44
43
|
|
45
44
|
# convert string to symbol for hash key
|
46
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
45
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
47
46
|
|
48
47
|
if attributes.has_key?(:'id')
|
49
48
|
self.id = attributes[:'id']
|
@@ -52,20 +51,19 @@ module RusticiSoftwareCloudV2
|
|
52
51
|
if attributes.has_key?(:'name')
|
53
52
|
self.name = attributes[:'name']
|
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
|
+
invalid_properties
|
63
61
|
end
|
64
62
|
|
65
63
|
# Check to see if the all the properties in the model are valid
|
66
64
|
# @return true if the model is valid
|
67
65
|
def valid?
|
68
|
-
|
66
|
+
true
|
69
67
|
end
|
70
68
|
|
71
69
|
# Checks equality by comparing each attribute.
|
@@ -99,7 +97,7 @@ module RusticiSoftwareCloudV2
|
|
99
97
|
# check to ensure the input is an array given that the the attribute
|
100
98
|
# is documented as an array but the input is not
|
101
99
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
102
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
100
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
103
101
|
end
|
104
102
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
105
103
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -181,7 +179,7 @@ module RusticiSoftwareCloudV2
|
|
181
179
|
# @return [Hash] Returns the value in the form of hash
|
182
180
|
def _to_hash(value)
|
183
181
|
if value.is_a?(Array)
|
184
|
-
value.compact.map{ |v| _to_hash(v) }
|
182
|
+
value.compact.map { |v| _to_hash(v) }
|
185
183
|
elsif value.is_a?(Hash)
|
186
184
|
{}.tap do |hash|
|
187
185
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -192,7 +190,5 @@ module RusticiSoftwareCloudV2
|
|
192
190
|
value
|
193
191
|
end
|
194
192
|
end
|
195
|
-
|
196
193
|
end
|
197
|
-
|
198
194
|
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 ApplicationToken
|
17
17
|
attr_accessor :access_token
|
18
18
|
|
@@ -20,7 +20,6 @@ module RusticiSoftwareCloudV2
|
|
20
20
|
|
21
21
|
attr_accessor :token_type
|
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?(:'access_token')
|
51
50
|
self.access_token = attributes[:'access_token']
|
@@ -58,20 +57,19 @@ module RusticiSoftwareCloudV2
|
|
58
57
|
if attributes.has_key?(:'token_type')
|
59
58
|
self.token_type = attributes[:'token_type']
|
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,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 BatchTagsSchema
|
17
17
|
attr_accessor :ids
|
18
18
|
|
19
19
|
attr_accessor :tags
|
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?(:'ids')
|
47
46
|
if (value = attributes[:'ids']).is_a?(Array)
|
@@ -54,22 +53,21 @@ module RusticiSoftwareCloudV2
|
|
54
53
|
self.tags = value
|
55
54
|
end
|
56
55
|
end
|
57
|
-
|
58
56
|
end
|
59
57
|
|
60
58
|
# Show invalid properties with the reasons. Usually used together with valid?
|
61
|
-
# @return Array for valid
|
59
|
+
# @return Array for valid properties with the reasons
|
62
60
|
def list_invalid_properties
|
63
61
|
invalid_properties = Array.new
|
64
62
|
if @ids.nil?
|
65
|
-
invalid_properties.push(
|
63
|
+
invalid_properties.push('invalid value for "ids", ids cannot be nil.')
|
66
64
|
end
|
67
65
|
|
68
66
|
if @tags.nil?
|
69
|
-
invalid_properties.push(
|
67
|
+
invalid_properties.push('invalid value for "tags", tags cannot be nil.')
|
70
68
|
end
|
71
69
|
|
72
|
-
|
70
|
+
invalid_properties
|
73
71
|
end
|
74
72
|
|
75
73
|
# Check to see if the all the properties in the model are valid
|
@@ -77,7 +75,7 @@ module RusticiSoftwareCloudV2
|
|
77
75
|
def valid?
|
78
76
|
return false if @ids.nil?
|
79
77
|
return false if @tags.nil?
|
80
|
-
|
78
|
+
true
|
81
79
|
end
|
82
80
|
|
83
81
|
# Checks equality by comparing each attribute.
|
@@ -111,7 +109,7 @@ module RusticiSoftwareCloudV2
|
|
111
109
|
# check to ensure the input is an array given that the the attribute
|
112
110
|
# is documented as an array but the input is not
|
113
111
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
114
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
112
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
115
113
|
end
|
116
114
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
117
115
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -193,7 +191,7 @@ module RusticiSoftwareCloudV2
|
|
193
191
|
# @return [Hash] Returns the value in the form of hash
|
194
192
|
def _to_hash(value)
|
195
193
|
if value.is_a?(Array)
|
196
|
-
value.compact.map{ |v| _to_hash(v) }
|
194
|
+
value.compact.map { |v| _to_hash(v) }
|
197
195
|
elsif value.is_a?(Hash)
|
198
196
|
{}.tap do |hash|
|
199
197
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -204,7 +202,5 @@ module RusticiSoftwareCloudV2
|
|
204
202
|
value
|
205
203
|
end
|
206
204
|
end
|
207
|
-
|
208
205
|
end
|
209
|
-
|
210
206
|
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 CommentSchema
|
17
17
|
attr_accessor :value
|
18
18
|
|
@@ -20,7 +20,6 @@ module RusticiSoftwareCloudV2
|
|
20
20
|
|
21
21
|
attr_accessor :date_time
|
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?(:'value')
|
51
50
|
self.value = attributes[:'value']
|
@@ -58,20 +57,19 @@ module RusticiSoftwareCloudV2
|
|
58
57
|
if attributes.has_key?(:'dateTime')
|
59
58
|
self.date_time = attributes[:'dateTime']
|
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,18 +6,17 @@
|
|
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 CompletionAmountSchema
|
17
17
|
# Scaled completion amount between 0 and 100
|
18
18
|
attr_accessor :scaled
|
19
19
|
|
20
|
-
|
21
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
21
|
def self.attribute_map
|
23
22
|
{
|
@@ -38,25 +37,24 @@ module RusticiSoftwareCloudV2
|
|
38
37
|
return unless attributes.is_a?(Hash)
|
39
38
|
|
40
39
|
# convert string to symbol for hash key
|
41
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
40
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
42
41
|
|
43
42
|
if attributes.has_key?(:'scaled')
|
44
43
|
self.scaled = attributes[:'scaled']
|
45
44
|
end
|
46
|
-
|
47
45
|
end
|
48
46
|
|
49
47
|
# Show invalid properties with the reasons. Usually used together with valid?
|
50
|
-
# @return Array for valid
|
48
|
+
# @return Array for valid properties with the reasons
|
51
49
|
def list_invalid_properties
|
52
50
|
invalid_properties = Array.new
|
53
|
-
|
51
|
+
invalid_properties
|
54
52
|
end
|
55
53
|
|
56
54
|
# Check to see if the all the properties in the model are valid
|
57
55
|
# @return true if the model is valid
|
58
56
|
def valid?
|
59
|
-
|
57
|
+
true
|
60
58
|
end
|
61
59
|
|
62
60
|
# Checks equality by comparing each attribute.
|
@@ -89,7 +87,7 @@ module RusticiSoftwareCloudV2
|
|
89
87
|
# check to ensure the input is an array given that the the attribute
|
90
88
|
# is documented as an array but the input is not
|
91
89
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
92
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
90
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
93
91
|
end
|
94
92
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
95
93
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -171,7 +169,7 @@ module RusticiSoftwareCloudV2
|
|
171
169
|
# @return [Hash] Returns the value in the form of hash
|
172
170
|
def _to_hash(value)
|
173
171
|
if value.is_a?(Array)
|
174
|
-
value.compact.map{ |v| _to_hash(v) }
|
172
|
+
value.compact.map { |v| _to_hash(v) }
|
175
173
|
elsif value.is_a?(Hash)
|
176
174
|
{}.tap do |hash|
|
177
175
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -182,7 +180,5 @@ module RusticiSoftwareCloudV2
|
|
182
180
|
value
|
183
181
|
end
|
184
182
|
end
|
185
|
-
|
186
183
|
end
|
187
|
-
|
188
184
|
end
|