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 PrivateInvitationSchema
|
|
17
17
|
# The invitationId for this invitation.
|
|
18
18
|
attr_accessor :id
|
|
@@ -39,7 +39,6 @@ module RusticiSoftwareCloudV2
|
|
|
39
39
|
# The count of registrations for this invitation
|
|
40
40
|
attr_accessor :registration_count
|
|
41
41
|
|
|
42
|
-
|
|
43
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
44
43
|
def self.attribute_map
|
|
45
44
|
{
|
|
@@ -76,7 +75,7 @@ module RusticiSoftwareCloudV2
|
|
|
76
75
|
return unless attributes.is_a?(Hash)
|
|
77
76
|
|
|
78
77
|
# convert string to symbol for hash key
|
|
79
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
78
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
80
79
|
|
|
81
80
|
if attributes.has_key?(:'id')
|
|
82
81
|
self.id = attributes[:'id']
|
|
@@ -113,20 +112,19 @@ module RusticiSoftwareCloudV2
|
|
|
113
112
|
if attributes.has_key?(:'registrationCount')
|
|
114
113
|
self.registration_count = attributes[:'registrationCount']
|
|
115
114
|
end
|
|
116
|
-
|
|
117
115
|
end
|
|
118
116
|
|
|
119
117
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
120
|
-
# @return Array for valid
|
|
118
|
+
# @return Array for valid properties with the reasons
|
|
121
119
|
def list_invalid_properties
|
|
122
120
|
invalid_properties = Array.new
|
|
123
|
-
|
|
121
|
+
invalid_properties
|
|
124
122
|
end
|
|
125
123
|
|
|
126
124
|
# Check to see if the all the properties in the model are valid
|
|
127
125
|
# @return true if the model is valid
|
|
128
126
|
def valid?
|
|
129
|
-
|
|
127
|
+
true
|
|
130
128
|
end
|
|
131
129
|
|
|
132
130
|
# 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,20 +6,19 @@
|
|
|
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 PublicInvitationList
|
|
17
17
|
# A list of public invitation objects.
|
|
18
18
|
attr_accessor :invitations
|
|
19
19
|
|
|
20
20
|
attr_accessor :more
|
|
21
21
|
|
|
22
|
-
|
|
23
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
24
23
|
def self.attribute_map
|
|
25
24
|
{
|
|
@@ -42,7 +41,7 @@ module RusticiSoftwareCloudV2
|
|
|
42
41
|
return unless attributes.is_a?(Hash)
|
|
43
42
|
|
|
44
43
|
# convert string to symbol for hash key
|
|
45
|
-
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 }
|
|
46
45
|
|
|
47
46
|
if attributes.has_key?(:'invitations')
|
|
48
47
|
if (value = attributes[:'invitations']).is_a?(Array)
|
|
@@ -53,20 +52,19 @@ module RusticiSoftwareCloudV2
|
|
|
53
52
|
if attributes.has_key?(:'more')
|
|
54
53
|
self.more = attributes[:'more']
|
|
55
54
|
end
|
|
56
|
-
|
|
57
55
|
end
|
|
58
56
|
|
|
59
57
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
60
|
-
# @return Array for valid
|
|
58
|
+
# @return Array for valid properties with the reasons
|
|
61
59
|
def list_invalid_properties
|
|
62
60
|
invalid_properties = Array.new
|
|
63
|
-
|
|
61
|
+
invalid_properties
|
|
64
62
|
end
|
|
65
63
|
|
|
66
64
|
# Check to see if the all the properties in the model are valid
|
|
67
65
|
# @return true if the model is valid
|
|
68
66
|
def valid?
|
|
69
|
-
|
|
67
|
+
true
|
|
70
68
|
end
|
|
71
69
|
|
|
72
70
|
# Checks equality by comparing each attribute.
|
|
@@ -100,7 +98,7 @@ module RusticiSoftwareCloudV2
|
|
|
100
98
|
# check to ensure the input is an array given that the the attribute
|
|
101
99
|
# is documented as an array but the input is not
|
|
102
100
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
103
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
101
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
104
102
|
end
|
|
105
103
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
106
104
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -182,7 +180,7 @@ module RusticiSoftwareCloudV2
|
|
|
182
180
|
# @return [Hash] Returns the value in the form of hash
|
|
183
181
|
def _to_hash(value)
|
|
184
182
|
if value.is_a?(Array)
|
|
185
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
183
|
+
value.compact.map { |v| _to_hash(v) }
|
|
186
184
|
elsif value.is_a?(Hash)
|
|
187
185
|
{}.tap do |hash|
|
|
188
186
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -193,7 +191,5 @@ module RusticiSoftwareCloudV2
|
|
|
193
191
|
value
|
|
194
192
|
end
|
|
195
193
|
end
|
|
196
|
-
|
|
197
194
|
end
|
|
198
|
-
|
|
199
195
|
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 PublicInvitationSchema
|
|
17
17
|
# The invitationId for this invitation.
|
|
18
18
|
attr_accessor :id
|
|
@@ -46,7 +46,6 @@ module RusticiSoftwareCloudV2
|
|
|
46
46
|
# The count of registrations for this invitation
|
|
47
47
|
attr_accessor :registration_count
|
|
48
48
|
|
|
49
|
-
|
|
50
49
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
51
50
|
def self.attribute_map
|
|
52
51
|
{
|
|
@@ -87,7 +86,7 @@ module RusticiSoftwareCloudV2
|
|
|
87
86
|
return unless attributes.is_a?(Hash)
|
|
88
87
|
|
|
89
88
|
# convert string to symbol for hash key
|
|
90
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
89
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
91
90
|
|
|
92
91
|
if attributes.has_key?(:'id')
|
|
93
92
|
self.id = attributes[:'id']
|
|
@@ -134,20 +133,19 @@ module RusticiSoftwareCloudV2
|
|
|
134
133
|
if attributes.has_key?(:'registrationCount')
|
|
135
134
|
self.registration_count = attributes[:'registrationCount']
|
|
136
135
|
end
|
|
137
|
-
|
|
138
136
|
end
|
|
139
137
|
|
|
140
138
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
141
|
-
# @return Array for valid
|
|
139
|
+
# @return Array for valid properties with the reasons
|
|
142
140
|
def list_invalid_properties
|
|
143
141
|
invalid_properties = Array.new
|
|
144
|
-
|
|
142
|
+
invalid_properties
|
|
145
143
|
end
|
|
146
144
|
|
|
147
145
|
# Check to see if the all the properties in the model are valid
|
|
148
146
|
# @return true if the model is valid
|
|
149
147
|
def valid?
|
|
150
|
-
|
|
148
|
+
true
|
|
151
149
|
end
|
|
152
150
|
|
|
153
151
|
# Checks equality by comparing each attribute.
|
|
@@ -190,7 +188,7 @@ module RusticiSoftwareCloudV2
|
|
|
190
188
|
# check to ensure the input is an array given that the the attribute
|
|
191
189
|
# is documented as an array but the input is not
|
|
192
190
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
193
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
191
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
194
192
|
end
|
|
195
193
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
196
194
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -272,7 +270,7 @@ module RusticiSoftwareCloudV2
|
|
|
272
270
|
# @return [Hash] Returns the value in the form of hash
|
|
273
271
|
def _to_hash(value)
|
|
274
272
|
if value.is_a?(Array)
|
|
275
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
273
|
+
value.compact.map { |v| _to_hash(v) }
|
|
276
274
|
elsif value.is_a?(Hash)
|
|
277
275
|
{}.tap do |hash|
|
|
278
276
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -283,7 +281,5 @@ module RusticiSoftwareCloudV2
|
|
|
283
281
|
value
|
|
284
282
|
end
|
|
285
283
|
end
|
|
286
|
-
|
|
287
284
|
end
|
|
288
|
-
|
|
289
285
|
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
|
|
|
@@ -14,9 +15,17 @@ require 'date'
|
|
|
14
15
|
module RusticiSoftwareCloudV2
|
|
15
16
|
class RegistrationCompletion
|
|
16
17
|
|
|
17
|
-
UNKNOWN =
|
|
18
|
-
COMPLETED =
|
|
19
|
-
INCOMPLETE =
|
|
20
|
-
end
|
|
18
|
+
UNKNOWN = 'UNKNOWN'.freeze
|
|
19
|
+
COMPLETED = 'COMPLETED'.freeze
|
|
20
|
+
INCOMPLETE = 'INCOMPLETE'.freeze
|
|
21
21
|
|
|
22
|
+
# Builds the enum from string
|
|
23
|
+
# @param [String] The enum value in the form of the string
|
|
24
|
+
# @return [String] The enum value
|
|
25
|
+
def build_from_hash(value)
|
|
26
|
+
constantValues = RegistrationCompletion.constants.select { |c| RegistrationCompletion::const_get(c) == value }
|
|
27
|
+
raise "Invalid ENUM value #{value} for class #RegistrationCompletion" if constantValues.empty?
|
|
28
|
+
value
|
|
29
|
+
end
|
|
30
|
+
end
|
|
22
31
|
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 RegistrationListSchema
|
|
17
17
|
attr_accessor :registrations
|
|
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?(:'registrations')
|
|
47
46
|
if (value = attributes[:'registrations']).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 @registrations.nil?
|
|
63
|
-
invalid_properties.push(
|
|
61
|
+
invalid_properties.push('invalid value for "registrations", registrations 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 @registrations.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 RegistrationSchema
|
|
17
17
|
attr_accessor :id
|
|
18
18
|
|
|
@@ -58,7 +58,6 @@ module RusticiSoftwareCloudV2
|
|
|
58
58
|
|
|
59
59
|
attr_accessor :activity_details
|
|
60
60
|
|
|
61
|
-
|
|
62
61
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
63
62
|
def self.attribute_map
|
|
64
63
|
{
|
|
@@ -119,7 +118,7 @@ module RusticiSoftwareCloudV2
|
|
|
119
118
|
return unless attributes.is_a?(Hash)
|
|
120
119
|
|
|
121
120
|
# convert string to symbol for hash key
|
|
122
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
121
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
123
122
|
|
|
124
123
|
if attributes.has_key?(:'id')
|
|
125
124
|
self.id = attributes[:'id']
|
|
@@ -210,20 +209,19 @@ module RusticiSoftwareCloudV2
|
|
|
210
209
|
if attributes.has_key?(:'activityDetails')
|
|
211
210
|
self.activity_details = attributes[:'activityDetails']
|
|
212
211
|
end
|
|
213
|
-
|
|
214
212
|
end
|
|
215
213
|
|
|
216
214
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
217
|
-
# @return Array for valid
|
|
215
|
+
# @return Array for valid properties with the reasons
|
|
218
216
|
def list_invalid_properties
|
|
219
217
|
invalid_properties = Array.new
|
|
220
|
-
|
|
218
|
+
invalid_properties
|
|
221
219
|
end
|
|
222
220
|
|
|
223
221
|
# Check to see if the all the properties in the model are valid
|
|
224
222
|
# @return true if the model is valid
|
|
225
223
|
def valid?
|
|
226
|
-
|
|
224
|
+
true
|
|
227
225
|
end
|
|
228
226
|
|
|
229
227
|
# Checks equality by comparing each attribute.
|
|
@@ -276,7 +274,7 @@ module RusticiSoftwareCloudV2
|
|
|
276
274
|
# check to ensure the input is an array given that the the attribute
|
|
277
275
|
# is documented as an array but the input is not
|
|
278
276
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
279
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
277
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
280
278
|
end
|
|
281
279
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
282
280
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -358,7 +356,7 @@ module RusticiSoftwareCloudV2
|
|
|
358
356
|
# @return [Hash] Returns the value in the form of hash
|
|
359
357
|
def _to_hash(value)
|
|
360
358
|
if value.is_a?(Array)
|
|
361
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
359
|
+
value.compact.map { |v| _to_hash(v) }
|
|
362
360
|
elsif value.is_a?(Hash)
|
|
363
361
|
{}.tap do |hash|
|
|
364
362
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -369,7 +367,5 @@ module RusticiSoftwareCloudV2
|
|
|
369
367
|
value
|
|
370
368
|
end
|
|
371
369
|
end
|
|
372
|
-
|
|
373
370
|
end
|
|
374
|
-
|
|
375
371
|
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
|
|
|
@@ -14,9 +15,17 @@ require 'date'
|
|
|
14
15
|
module RusticiSoftwareCloudV2
|
|
15
16
|
class RegistrationSuccess
|
|
16
17
|
|
|
17
|
-
UNKNOWN =
|
|
18
|
-
PASSED =
|
|
19
|
-
FAILED =
|
|
20
|
-
end
|
|
18
|
+
UNKNOWN = 'UNKNOWN'.freeze
|
|
19
|
+
PASSED = 'PASSED'.freeze
|
|
20
|
+
FAILED = 'FAILED'.freeze
|
|
21
21
|
|
|
22
|
+
# Builds the enum from string
|
|
23
|
+
# @param [String] The enum value in the form of the string
|
|
24
|
+
# @return [String] The enum value
|
|
25
|
+
def build_from_hash(value)
|
|
26
|
+
constantValues = RegistrationSuccess.constants.select { |c| RegistrationSuccess::const_get(c) == value }
|
|
27
|
+
raise "Invalid ENUM value #{value} for class #RegistrationSuccess" if constantValues.empty?
|
|
28
|
+
value
|
|
29
|
+
end
|
|
30
|
+
end
|
|
22
31
|
end
|