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 CreateDispatchListSchema
|
17
17
|
attr_accessor :dispatches
|
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?(:'dispatches')
|
43
42
|
if (value = attributes[:'dispatches']).is_a?(Array)
|
44
43
|
self.dispatches = 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 CreateDispatchSchema
|
17
17
|
# Id of the destination this dispatch will belong to.
|
18
18
|
attr_accessor :destination_id
|
@@ -47,7 +47,6 @@ module RusticiSoftwareCloudV2
|
|
47
47
|
# The postback information for this Dispatch.
|
48
48
|
attr_accessor :post_back
|
49
49
|
|
50
|
-
|
51
50
|
# Attribute mapping from ruby-style variable name to JSON key.
|
52
51
|
def self.attribute_map
|
53
52
|
{
|
@@ -88,7 +87,7 @@ module RusticiSoftwareCloudV2
|
|
88
87
|
return unless attributes.is_a?(Hash)
|
89
88
|
|
90
89
|
# convert string to symbol for hash key
|
91
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
90
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
92
91
|
|
93
92
|
if attributes.has_key?(:'destinationId')
|
94
93
|
self.destination_id = attributes[:'destinationId']
|
@@ -143,22 +142,21 @@ module RusticiSoftwareCloudV2
|
|
143
142
|
if attributes.has_key?(:'postBack')
|
144
143
|
self.post_back = attributes[:'postBack']
|
145
144
|
end
|
146
|
-
|
147
145
|
end
|
148
146
|
|
149
147
|
# Show invalid properties with the reasons. Usually used together with valid?
|
150
|
-
# @return Array for valid
|
148
|
+
# @return Array for valid properties with the reasons
|
151
149
|
def list_invalid_properties
|
152
150
|
invalid_properties = Array.new
|
153
151
|
if @destination_id.nil?
|
154
|
-
invalid_properties.push(
|
152
|
+
invalid_properties.push('invalid value for "destination_id", destination_id cannot be nil.')
|
155
153
|
end
|
156
154
|
|
157
155
|
if @course_id.nil?
|
158
|
-
invalid_properties.push(
|
156
|
+
invalid_properties.push('invalid value for "course_id", course_id cannot be nil.')
|
159
157
|
end
|
160
158
|
|
161
|
-
|
159
|
+
invalid_properties
|
162
160
|
end
|
163
161
|
|
164
162
|
# Check to see if the all the properties in the model are valid
|
@@ -166,7 +164,7 @@ module RusticiSoftwareCloudV2
|
|
166
164
|
def valid?
|
167
165
|
return false if @destination_id.nil?
|
168
166
|
return false if @course_id.nil?
|
169
|
-
|
167
|
+
true
|
170
168
|
end
|
171
169
|
|
172
170
|
# Checks equality by comparing each attribute.
|
@@ -209,7 +207,7 @@ module RusticiSoftwareCloudV2
|
|
209
207
|
# check to ensure the input is an array given that the the attribute
|
210
208
|
# is documented as an array but the input is not
|
211
209
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
212
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
210
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
213
211
|
end
|
214
212
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
215
213
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -291,7 +289,7 @@ module RusticiSoftwareCloudV2
|
|
291
289
|
# @return [Hash] Returns the value in the form of hash
|
292
290
|
def _to_hash(value)
|
293
291
|
if value.is_a?(Array)
|
294
|
-
value.compact.map{ |v| _to_hash(v) }
|
292
|
+
value.compact.map { |v| _to_hash(v) }
|
295
293
|
elsif value.is_a?(Hash)
|
296
294
|
{}.tap do |hash|
|
297
295
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -302,7 +300,5 @@ module RusticiSoftwareCloudV2
|
|
302
300
|
value
|
303
301
|
end
|
304
302
|
end
|
305
|
-
|
306
303
|
end
|
307
|
-
|
308
304
|
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 CreatePrivateInvitationSchema
|
17
17
|
# The id of the course for which to create an invitation.
|
18
18
|
attr_accessor :course_id
|
@@ -31,7 +31,6 @@ module RusticiSoftwareCloudV2
|
|
31
31
|
# Optional tags to be applied to this invitation.
|
32
32
|
attr_accessor :tags
|
33
33
|
|
34
|
-
|
35
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
36
35
|
def self.attribute_map
|
37
36
|
{
|
@@ -62,7 +61,7 @@ module RusticiSoftwareCloudV2
|
|
62
61
|
return unless attributes.is_a?(Hash)
|
63
62
|
|
64
63
|
# convert string to symbol for hash key
|
65
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
64
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
66
65
|
|
67
66
|
if attributes.has_key?(:'courseId')
|
68
67
|
self.course_id = attributes[:'courseId']
|
@@ -89,26 +88,25 @@ module RusticiSoftwareCloudV2
|
|
89
88
|
self.tags = value
|
90
89
|
end
|
91
90
|
end
|
92
|
-
|
93
91
|
end
|
94
92
|
|
95
93
|
# Show invalid properties with the reasons. Usually used together with valid?
|
96
|
-
# @return Array for valid
|
94
|
+
# @return Array for valid properties with the reasons
|
97
95
|
def list_invalid_properties
|
98
96
|
invalid_properties = Array.new
|
99
97
|
if @course_id.nil?
|
100
|
-
invalid_properties.push(
|
98
|
+
invalid_properties.push('invalid value for "course_id", course_id cannot be nil.')
|
101
99
|
end
|
102
100
|
|
103
101
|
if @creating_user_email.nil?
|
104
|
-
invalid_properties.push(
|
102
|
+
invalid_properties.push('invalid value for "creating_user_email", creating_user_email cannot be nil.')
|
105
103
|
end
|
106
104
|
|
107
105
|
if @invitation_email.nil?
|
108
|
-
invalid_properties.push(
|
106
|
+
invalid_properties.push('invalid value for "invitation_email", invitation_email cannot be nil.')
|
109
107
|
end
|
110
108
|
|
111
|
-
|
109
|
+
invalid_properties
|
112
110
|
end
|
113
111
|
|
114
112
|
# Check to see if the all the properties in the model are valid
|
@@ -117,7 +115,7 @@ module RusticiSoftwareCloudV2
|
|
117
115
|
return false if @course_id.nil?
|
118
116
|
return false if @creating_user_email.nil?
|
119
117
|
return false if @invitation_email.nil?
|
120
|
-
|
118
|
+
true
|
121
119
|
end
|
122
120
|
|
123
121
|
# Checks equality by comparing each attribute.
|
@@ -155,7 +153,7 @@ module RusticiSoftwareCloudV2
|
|
155
153
|
# check to ensure the input is an array given that the the attribute
|
156
154
|
# is documented as an array but the input is not
|
157
155
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
158
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
156
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
159
157
|
end
|
160
158
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
161
159
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -237,7 +235,7 @@ module RusticiSoftwareCloudV2
|
|
237
235
|
# @return [Hash] Returns the value in the form of hash
|
238
236
|
def _to_hash(value)
|
239
237
|
if value.is_a?(Array)
|
240
|
-
value.compact.map{ |v| _to_hash(v) }
|
238
|
+
value.compact.map { |v| _to_hash(v) }
|
241
239
|
elsif value.is_a?(Hash)
|
242
240
|
{}.tap do |hash|
|
243
241
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -248,7 +246,5 @@ module RusticiSoftwareCloudV2
|
|
248
246
|
value
|
249
247
|
end
|
250
248
|
end
|
251
|
-
|
252
249
|
end
|
253
|
-
|
254
250
|
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 CreatePublicInvitationSchema
|
17
17
|
# The id of the course for which to create an invitation.
|
18
18
|
attr_accessor :course_id
|
@@ -32,7 +32,6 @@ module RusticiSoftwareCloudV2
|
|
32
32
|
# Optional tags to be applied to this invitation.
|
33
33
|
attr_accessor :tags
|
34
34
|
|
35
|
-
|
36
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
36
|
def self.attribute_map
|
38
37
|
{
|
@@ -63,7 +62,7 @@ module RusticiSoftwareCloudV2
|
|
63
62
|
return unless attributes.is_a?(Hash)
|
64
63
|
|
65
64
|
# convert string to symbol for hash key
|
66
|
-
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 }
|
67
66
|
|
68
67
|
if attributes.has_key?(:'courseId')
|
69
68
|
self.course_id = attributes[:'courseId']
|
@@ -92,22 +91,21 @@ module RusticiSoftwareCloudV2
|
|
92
91
|
self.tags = value
|
93
92
|
end
|
94
93
|
end
|
95
|
-
|
96
94
|
end
|
97
95
|
|
98
96
|
# Show invalid properties with the reasons. Usually used together with valid?
|
99
|
-
# @return Array for valid
|
97
|
+
# @return Array for valid properties with the reasons
|
100
98
|
def list_invalid_properties
|
101
99
|
invalid_properties = Array.new
|
102
100
|
if @course_id.nil?
|
103
|
-
invalid_properties.push(
|
101
|
+
invalid_properties.push('invalid value for "course_id", course_id cannot be nil.')
|
104
102
|
end
|
105
103
|
|
106
104
|
if @creating_user_email.nil?
|
107
|
-
invalid_properties.push(
|
105
|
+
invalid_properties.push('invalid value for "creating_user_email", creating_user_email cannot be nil.')
|
108
106
|
end
|
109
107
|
|
110
|
-
|
108
|
+
invalid_properties
|
111
109
|
end
|
112
110
|
|
113
111
|
# Check to see if the all the properties in the model are valid
|
@@ -115,7 +113,7 @@ module RusticiSoftwareCloudV2
|
|
115
113
|
def valid?
|
116
114
|
return false if @course_id.nil?
|
117
115
|
return false if @creating_user_email.nil?
|
118
|
-
|
116
|
+
true
|
119
117
|
end
|
120
118
|
|
121
119
|
# Checks equality by comparing each attribute.
|
@@ -153,7 +151,7 @@ module RusticiSoftwareCloudV2
|
|
153
151
|
# check to ensure the input is an array given that the the attribute
|
154
152
|
# is documented as an array but the input is not
|
155
153
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
156
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
154
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
157
155
|
end
|
158
156
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
159
157
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -235,7 +233,7 @@ module RusticiSoftwareCloudV2
|
|
235
233
|
# @return [Hash] Returns the value in the form of hash
|
236
234
|
def _to_hash(value)
|
237
235
|
if value.is_a?(Array)
|
238
|
-
value.compact.map{ |v| _to_hash(v) }
|
236
|
+
value.compact.map { |v| _to_hash(v) }
|
239
237
|
elsif value.is_a?(Hash)
|
240
238
|
{}.tap do |hash|
|
241
239
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -246,7 +244,5 @@ module RusticiSoftwareCloudV2
|
|
246
244
|
value
|
247
245
|
end
|
248
246
|
end
|
249
|
-
|
250
247
|
end
|
251
|
-
|
252
248
|
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 CreateRegistrationSchema
|
17
17
|
attr_accessor :course_id
|
18
18
|
|
@@ -36,7 +36,6 @@ module RusticiSoftwareCloudV2
|
|
36
36
|
|
37
37
|
attr_accessor :initial_settings
|
38
38
|
|
39
|
-
|
40
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
40
|
def self.attribute_map
|
42
41
|
{
|
@@ -75,7 +74,7 @@ module RusticiSoftwareCloudV2
|
|
75
74
|
return unless attributes.is_a?(Hash)
|
76
75
|
|
77
76
|
# convert string to symbol for hash key
|
78
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
77
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
79
78
|
|
80
79
|
if attributes.has_key?(:'courseId')
|
81
80
|
self.course_id = attributes[:'courseId']
|
@@ -122,26 +121,25 @@ module RusticiSoftwareCloudV2
|
|
122
121
|
if attributes.has_key?(:'initialSettings')
|
123
122
|
self.initial_settings = attributes[:'initialSettings']
|
124
123
|
end
|
125
|
-
|
126
124
|
end
|
127
125
|
|
128
126
|
# Show invalid properties with the reasons. Usually used together with valid?
|
129
|
-
# @return Array for valid
|
127
|
+
# @return Array for valid properties with the reasons
|
130
128
|
def list_invalid_properties
|
131
129
|
invalid_properties = Array.new
|
132
130
|
if @course_id.nil?
|
133
|
-
invalid_properties.push(
|
131
|
+
invalid_properties.push('invalid value for "course_id", course_id cannot be nil.')
|
134
132
|
end
|
135
133
|
|
136
134
|
if @learner.nil?
|
137
|
-
invalid_properties.push(
|
135
|
+
invalid_properties.push('invalid value for "learner", learner cannot be nil.')
|
138
136
|
end
|
139
137
|
|
140
138
|
if @registration_id.nil?
|
141
|
-
invalid_properties.push(
|
139
|
+
invalid_properties.push('invalid value for "registration_id", registration_id cannot be nil.')
|
142
140
|
end
|
143
141
|
|
144
|
-
|
142
|
+
invalid_properties
|
145
143
|
end
|
146
144
|
|
147
145
|
# Check to see if the all the properties in the model are valid
|
@@ -150,7 +148,7 @@ module RusticiSoftwareCloudV2
|
|
150
148
|
return false if @course_id.nil?
|
151
149
|
return false if @learner.nil?
|
152
150
|
return false if @registration_id.nil?
|
153
|
-
|
151
|
+
true
|
154
152
|
end
|
155
153
|
|
156
154
|
# Checks equality by comparing each attribute.
|
@@ -192,7 +190,7 @@ module RusticiSoftwareCloudV2
|
|
192
190
|
# check to ensure the input is an array given that the the attribute
|
193
191
|
# is documented as an array but the input is not
|
194
192
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
195
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
193
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
196
194
|
end
|
197
195
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
198
196
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -274,7 +272,7 @@ module RusticiSoftwareCloudV2
|
|
274
272
|
# @return [Hash] Returns the value in the form of hash
|
275
273
|
def _to_hash(value)
|
276
274
|
if value.is_a?(Array)
|
277
|
-
value.compact.map{ |v| _to_hash(v) }
|
275
|
+
value.compact.map { |v| _to_hash(v) }
|
278
276
|
elsif value.is_a?(Hash)
|
279
277
|
{}.tap do |hash|
|
280
278
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -285,7 +283,5 @@ module RusticiSoftwareCloudV2
|
|
285
283
|
value
|
286
284
|
end
|
287
285
|
end
|
288
|
-
|
289
286
|
end
|
290
|
-
|
291
287
|
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 CredentialCreatedSchema
|
17
17
|
# id for this credential
|
18
18
|
attr_accessor :id
|
@@ -28,7 +28,6 @@ module RusticiSoftwareCloudV2
|
|
28
28
|
|
29
29
|
attr_accessor :status
|
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?(:'status')
|
79
78
|
self.status = attributes[:'status']
|
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
|