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,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 InvitationSummarySchema
|
17
17
|
# The invitationId for this invitation.
|
18
18
|
attr_accessor :id
|
@@ -28,7 +28,6 @@ module RusticiSoftwareCloudV2
|
|
28
28
|
|
29
29
|
attr_accessor :updated
|
30
30
|
|
31
|
-
|
32
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
32
|
def self.attribute_map
|
34
33
|
{
|
@@ -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?(:'id')
|
63
62
|
self.id = attributes[:'id']
|
@@ -78,20 +77,19 @@ module RusticiSoftwareCloudV2
|
|
78
77
|
if attributes.has_key?(:'updated')
|
79
78
|
self.updated = attributes[:'updated']
|
80
79
|
end
|
81
|
-
|
82
80
|
end
|
83
81
|
|
84
82
|
# Show invalid properties with the reasons. Usually used together with valid?
|
85
|
-
# @return Array for valid
|
83
|
+
# @return Array for valid properties with the reasons
|
86
84
|
def list_invalid_properties
|
87
85
|
invalid_properties = Array.new
|
88
|
-
|
86
|
+
invalid_properties
|
89
87
|
end
|
90
88
|
|
91
89
|
# Check to see if the all the properties in the model are valid
|
92
90
|
# @return true if the model is valid
|
93
91
|
def valid?
|
94
|
-
|
92
|
+
true
|
95
93
|
end
|
96
94
|
|
97
95
|
# Checks equality by comparing each attribute.
|
@@ -128,7 +126,7 @@ module RusticiSoftwareCloudV2
|
|
128
126
|
# check to ensure the input is an array given that the the attribute
|
129
127
|
# is documented as an array but the input is not
|
130
128
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
131
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
129
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
132
130
|
end
|
133
131
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
134
132
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -210,7 +208,7 @@ module RusticiSoftwareCloudV2
|
|
210
208
|
# @return [Hash] Returns the value in the form of hash
|
211
209
|
def _to_hash(value)
|
212
210
|
if value.is_a?(Array)
|
213
|
-
value.compact.map{ |v| _to_hash(v) }
|
211
|
+
value.compact.map { |v| _to_hash(v) }
|
214
212
|
elsif value.is_a?(Hash)
|
215
213
|
{}.tap do |hash|
|
216
214
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -221,7 +219,5 @@ module RusticiSoftwareCloudV2
|
|
221
219
|
value
|
222
220
|
end
|
223
221
|
end
|
224
|
-
|
225
222
|
end
|
226
|
-
|
227
223
|
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 ItemValuePairSchema
|
17
17
|
attr_accessor :item
|
18
18
|
|
19
19
|
attr_accessor :value
|
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?(:'item')
|
47
46
|
self.item = attributes[:'item']
|
@@ -50,20 +49,19 @@ module RusticiSoftwareCloudV2
|
|
50
49
|
if attributes.has_key?(:'value')
|
51
50
|
self.value = attributes[:'value']
|
52
51
|
end
|
53
|
-
|
54
52
|
end
|
55
53
|
|
56
54
|
# Show invalid properties with the reasons. Usually used together with valid?
|
57
|
-
# @return Array for valid
|
55
|
+
# @return Array for valid properties with the reasons
|
58
56
|
def list_invalid_properties
|
59
57
|
invalid_properties = Array.new
|
60
|
-
|
58
|
+
invalid_properties
|
61
59
|
end
|
62
60
|
|
63
61
|
# Check to see if the all the properties in the model are valid
|
64
62
|
# @return true if the model is valid
|
65
63
|
def valid?
|
66
|
-
|
64
|
+
true
|
67
65
|
end
|
68
66
|
|
69
67
|
# Checks equality by comparing each attribute.
|
@@ -97,7 +95,7 @@ module RusticiSoftwareCloudV2
|
|
97
95
|
# check to ensure the input is an array given that the the attribute
|
98
96
|
# is documented as an array but the input is not
|
99
97
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
100
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
98
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
101
99
|
end
|
102
100
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
103
101
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -179,7 +177,7 @@ module RusticiSoftwareCloudV2
|
|
179
177
|
# @return [Hash] Returns the value in the form of hash
|
180
178
|
def _to_hash(value)
|
181
179
|
if value.is_a?(Array)
|
182
|
-
value.compact.map{ |v| _to_hash(v) }
|
180
|
+
value.compact.map { |v| _to_hash(v) }
|
183
181
|
elsif value.is_a?(Hash)
|
184
182
|
{}.tap do |hash|
|
185
183
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -190,7 +188,5 @@ module RusticiSoftwareCloudV2
|
|
190
188
|
value
|
191
189
|
end
|
192
190
|
end
|
193
|
-
|
194
191
|
end
|
195
|
-
|
196
192
|
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 LaunchAuthOptionsSchema
|
17
17
|
attr_accessor :ip_address
|
18
18
|
|
@@ -22,7 +22,6 @@ module RusticiSoftwareCloudV2
|
|
22
22
|
|
23
23
|
attr_accessor :sliding_expiry
|
24
24
|
|
25
|
-
|
26
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
26
|
def self.attribute_map
|
28
27
|
{
|
@@ -49,7 +48,7 @@ module RusticiSoftwareCloudV2
|
|
49
48
|
return unless attributes.is_a?(Hash)
|
50
49
|
|
51
50
|
# convert string to symbol for hash key
|
52
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
51
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
53
52
|
|
54
53
|
if attributes.has_key?(:'ipAddress')
|
55
54
|
self.ip_address = attributes[:'ipAddress']
|
@@ -66,20 +65,19 @@ module RusticiSoftwareCloudV2
|
|
66
65
|
if attributes.has_key?(:'slidingExpiry')
|
67
66
|
self.sliding_expiry = attributes[:'slidingExpiry']
|
68
67
|
end
|
69
|
-
|
70
68
|
end
|
71
69
|
|
72
70
|
# Show invalid properties with the reasons. Usually used together with valid?
|
73
|
-
# @return Array for valid
|
71
|
+
# @return Array for valid properties with the reasons
|
74
72
|
def list_invalid_properties
|
75
73
|
invalid_properties = Array.new
|
76
|
-
|
74
|
+
invalid_properties
|
77
75
|
end
|
78
76
|
|
79
77
|
# Check to see if the all the properties in the model are valid
|
80
78
|
# @return true if the model is valid
|
81
79
|
def valid?
|
82
|
-
|
80
|
+
true
|
83
81
|
end
|
84
82
|
|
85
83
|
# Checks equality by comparing each attribute.
|
@@ -115,7 +113,7 @@ module RusticiSoftwareCloudV2
|
|
115
113
|
# check to ensure the input is an array given that the the attribute
|
116
114
|
# is documented as an array but the input is not
|
117
115
|
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) }
|
116
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
119
117
|
end
|
120
118
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
121
119
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -197,7 +195,7 @@ module RusticiSoftwareCloudV2
|
|
197
195
|
# @return [Hash] Returns the value in the form of hash
|
198
196
|
def _to_hash(value)
|
199
197
|
if value.is_a?(Array)
|
200
|
-
value.compact.map{ |v| _to_hash(v) }
|
198
|
+
value.compact.map { |v| _to_hash(v) }
|
201
199
|
elsif value.is_a?(Hash)
|
202
200
|
{}.tap do |hash|
|
203
201
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -208,7 +206,5 @@ module RusticiSoftwareCloudV2
|
|
208
206
|
value
|
209
207
|
end
|
210
208
|
end
|
211
|
-
|
212
209
|
end
|
213
|
-
|
214
210
|
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 LaunchAuthSchema
|
17
17
|
attr_accessor :type
|
18
18
|
|
@@ -62,41 +62,40 @@ module RusticiSoftwareCloudV2
|
|
62
62
|
return unless attributes.is_a?(Hash)
|
63
63
|
|
64
64
|
# convert string to symbol for hash key
|
65
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
66
66
|
|
67
67
|
if attributes.has_key?(:'type')
|
68
68
|
self.type = attributes[:'type']
|
69
69
|
else
|
70
|
-
self.type =
|
70
|
+
self.type = 'cookies'
|
71
71
|
end
|
72
72
|
|
73
73
|
if attributes.has_key?(:'options')
|
74
74
|
self.options = attributes[:'options']
|
75
75
|
end
|
76
|
-
|
77
76
|
end
|
78
77
|
|
79
78
|
# Show invalid properties with the reasons. Usually used together with valid?
|
80
|
-
# @return Array for valid
|
79
|
+
# @return Array for valid properties with the reasons
|
81
80
|
def list_invalid_properties
|
82
81
|
invalid_properties = Array.new
|
83
|
-
|
82
|
+
invalid_properties
|
84
83
|
end
|
85
84
|
|
86
85
|
# Check to see if the all the properties in the model are valid
|
87
86
|
# @return true if the model is valid
|
88
87
|
def valid?
|
89
|
-
type_validator = EnumAttributeValidator.new('String', [
|
88
|
+
type_validator = EnumAttributeValidator.new('String', ['cookies', 'vault'])
|
90
89
|
return false unless type_validator.valid?(@type)
|
91
|
-
|
90
|
+
true
|
92
91
|
end
|
93
92
|
|
94
93
|
# Custom attribute writer method checking allowed values (enum).
|
95
94
|
# @param [Object] type Object to be assigned
|
96
95
|
def type=(type)
|
97
|
-
validator = EnumAttributeValidator.new('String', [
|
96
|
+
validator = EnumAttributeValidator.new('String', ['cookies', 'vault'])
|
98
97
|
unless validator.valid?(type)
|
99
|
-
fail ArgumentError,
|
98
|
+
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
100
99
|
end
|
101
100
|
@type = type
|
102
101
|
end
|
@@ -132,7 +131,7 @@ module RusticiSoftwareCloudV2
|
|
132
131
|
# check to ensure the input is an array given that the the attribute
|
133
132
|
# is documented as an array but the input is not
|
134
133
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
135
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
134
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
136
135
|
end
|
137
136
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
138
137
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -214,7 +213,7 @@ module RusticiSoftwareCloudV2
|
|
214
213
|
# @return [Hash] Returns the value in the form of hash
|
215
214
|
def _to_hash(value)
|
216
215
|
if value.is_a?(Array)
|
217
|
-
value.compact.map{ |v| _to_hash(v) }
|
216
|
+
value.compact.map { |v| _to_hash(v) }
|
218
217
|
elsif value.is_a?(Hash)
|
219
218
|
{}.tap do |hash|
|
220
219
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -225,7 +224,5 @@ module RusticiSoftwareCloudV2
|
|
225
224
|
value
|
226
225
|
end
|
227
226
|
end
|
228
|
-
|
229
227
|
end
|
230
|
-
|
231
228
|
end
|
@@ -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 LaunchHistoryListSchema
|
17
17
|
attr_accessor :launch_history
|
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?(:'launchHistory')
|
43
42
|
if (value = attributes[:'launchHistory']).is_a?(Array)
|
44
43
|
self.launch_history = 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 LaunchHistorySchema
|
17
17
|
attr_accessor :id
|
18
18
|
|
@@ -97,7 +97,7 @@ module RusticiSoftwareCloudV2
|
|
97
97
|
return unless attributes.is_a?(Hash)
|
98
98
|
|
99
99
|
# convert string to symbol for hash key
|
100
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
100
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
101
101
|
|
102
102
|
if attributes.has_key?(:'id')
|
103
103
|
self.id = attributes[:'id']
|
@@ -114,13 +114,13 @@ module RusticiSoftwareCloudV2
|
|
114
114
|
if attributes.has_key?(:'completionStatus')
|
115
115
|
self.completion_status = attributes[:'completionStatus']
|
116
116
|
else
|
117
|
-
self.completion_status =
|
117
|
+
self.completion_status = 'UNKNOWN'
|
118
118
|
end
|
119
119
|
|
120
120
|
if attributes.has_key?(:'successStatus')
|
121
121
|
self.success_status = attributes[:'successStatus']
|
122
122
|
else
|
123
|
-
self.success_status =
|
123
|
+
self.success_status = 'UNKNOWN'
|
124
124
|
end
|
125
125
|
|
126
126
|
if attributes.has_key?(:'historyLog')
|
@@ -142,32 +142,31 @@ module RusticiSoftwareCloudV2
|
|
142
142
|
if attributes.has_key?(:'lastRuntimeUpdate')
|
143
143
|
self.last_runtime_update = attributes[:'lastRuntimeUpdate']
|
144
144
|
end
|
145
|
-
|
146
145
|
end
|
147
146
|
|
148
147
|
# Show invalid properties with the reasons. Usually used together with valid?
|
149
|
-
# @return Array for valid
|
148
|
+
# @return Array for valid properties with the reasons
|
150
149
|
def list_invalid_properties
|
151
150
|
invalid_properties = Array.new
|
152
|
-
|
151
|
+
invalid_properties
|
153
152
|
end
|
154
153
|
|
155
154
|
# Check to see if the all the properties in the model are valid
|
156
155
|
# @return true if the model is valid
|
157
156
|
def valid?
|
158
|
-
completion_status_validator = EnumAttributeValidator.new('String', [
|
157
|
+
completion_status_validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'COMPLETED', 'INCOMPLETE'])
|
159
158
|
return false unless completion_status_validator.valid?(@completion_status)
|
160
|
-
success_status_validator = EnumAttributeValidator.new('String', [
|
159
|
+
success_status_validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
|
161
160
|
return false unless success_status_validator.valid?(@success_status)
|
162
|
-
|
161
|
+
true
|
163
162
|
end
|
164
163
|
|
165
164
|
# Custom attribute writer method checking allowed values (enum).
|
166
165
|
# @param [Object] completion_status Object to be assigned
|
167
166
|
def completion_status=(completion_status)
|
168
|
-
validator = EnumAttributeValidator.new('String', [
|
167
|
+
validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'COMPLETED', 'INCOMPLETE'])
|
169
168
|
unless validator.valid?(completion_status)
|
170
|
-
fail ArgumentError,
|
169
|
+
fail ArgumentError, 'invalid value for "completion_status", must be one of #{validator.allowable_values}.'
|
171
170
|
end
|
172
171
|
@completion_status = completion_status
|
173
172
|
end
|
@@ -175,9 +174,9 @@ module RusticiSoftwareCloudV2
|
|
175
174
|
# Custom attribute writer method checking allowed values (enum).
|
176
175
|
# @param [Object] success_status Object to be assigned
|
177
176
|
def success_status=(success_status)
|
178
|
-
validator = EnumAttributeValidator.new('String', [
|
177
|
+
validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
|
179
178
|
unless validator.valid?(success_status)
|
180
|
-
fail ArgumentError,
|
179
|
+
fail ArgumentError, 'invalid value for "success_status", must be one of #{validator.allowable_values}.'
|
181
180
|
end
|
182
181
|
@success_status = success_status
|
183
182
|
end
|
@@ -221,7 +220,7 @@ module RusticiSoftwareCloudV2
|
|
221
220
|
# check to ensure the input is an array given that the the attribute
|
222
221
|
# is documented as an array but the input is not
|
223
222
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
224
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
223
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
225
224
|
end
|
226
225
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
227
226
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -303,7 +302,7 @@ module RusticiSoftwareCloudV2
|
|
303
302
|
# @return [Hash] Returns the value in the form of hash
|
304
303
|
def _to_hash(value)
|
305
304
|
if value.is_a?(Array)
|
306
|
-
value.compact.map{ |v| _to_hash(v) }
|
305
|
+
value.compact.map { |v| _to_hash(v) }
|
307
306
|
elsif value.is_a?(Hash)
|
308
307
|
{}.tap do |hash|
|
309
308
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -314,7 +313,5 @@ module RusticiSoftwareCloudV2
|
|
314
313
|
value
|
315
314
|
end
|
316
315
|
end
|
317
|
-
|
318
316
|
end
|
319
|
-
|
320
317
|
end
|