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 ObjectiveSchema
|
|
17
17
|
attr_accessor :id
|
|
18
18
|
|
|
@@ -106,7 +106,7 @@ module RusticiSoftwareCloudV2
|
|
|
106
106
|
return unless attributes.is_a?(Hash)
|
|
107
107
|
|
|
108
108
|
# convert string to symbol for hash key
|
|
109
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
109
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
110
110
|
|
|
111
111
|
if attributes.has_key?(:'id')
|
|
112
112
|
self.id = attributes[:'id']
|
|
@@ -151,48 +151,47 @@ module RusticiSoftwareCloudV2
|
|
|
151
151
|
if attributes.has_key?(:'objectiveCompletion')
|
|
152
152
|
self.objective_completion = attributes[:'objectiveCompletion']
|
|
153
153
|
else
|
|
154
|
-
self.objective_completion =
|
|
154
|
+
self.objective_completion = 'UNKNOWN'
|
|
155
155
|
end
|
|
156
156
|
|
|
157
157
|
if attributes.has_key?(:'objectiveSuccess')
|
|
158
158
|
self.objective_success = attributes[:'objectiveSuccess']
|
|
159
159
|
else
|
|
160
|
-
self.objective_success =
|
|
160
|
+
self.objective_success = 'UNKNOWN'
|
|
161
161
|
end
|
|
162
162
|
|
|
163
163
|
if attributes.has_key?(:'previousObjectiveSuccess')
|
|
164
164
|
self.previous_objective_success = attributes[:'previousObjectiveSuccess']
|
|
165
165
|
else
|
|
166
|
-
self.previous_objective_success =
|
|
166
|
+
self.previous_objective_success = 'UNKNOWN'
|
|
167
167
|
end
|
|
168
|
-
|
|
169
168
|
end
|
|
170
169
|
|
|
171
170
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
172
|
-
# @return Array for valid
|
|
171
|
+
# @return Array for valid properties with the reasons
|
|
173
172
|
def list_invalid_properties
|
|
174
173
|
invalid_properties = Array.new
|
|
175
|
-
|
|
174
|
+
invalid_properties
|
|
176
175
|
end
|
|
177
176
|
|
|
178
177
|
# Check to see if the all the properties in the model are valid
|
|
179
178
|
# @return true if the model is valid
|
|
180
179
|
def valid?
|
|
181
|
-
objective_completion_validator = EnumAttributeValidator.new('String', [
|
|
180
|
+
objective_completion_validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'COMPLETED', 'INCOMPLETE'])
|
|
182
181
|
return false unless objective_completion_validator.valid?(@objective_completion)
|
|
183
|
-
objective_success_validator = EnumAttributeValidator.new('String', [
|
|
182
|
+
objective_success_validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
|
|
184
183
|
return false unless objective_success_validator.valid?(@objective_success)
|
|
185
|
-
previous_objective_success_validator = EnumAttributeValidator.new('String', [
|
|
184
|
+
previous_objective_success_validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
|
|
186
185
|
return false unless previous_objective_success_validator.valid?(@previous_objective_success)
|
|
187
|
-
|
|
186
|
+
true
|
|
188
187
|
end
|
|
189
188
|
|
|
190
189
|
# Custom attribute writer method checking allowed values (enum).
|
|
191
190
|
# @param [Object] objective_completion Object to be assigned
|
|
192
191
|
def objective_completion=(objective_completion)
|
|
193
|
-
validator = EnumAttributeValidator.new('String', [
|
|
192
|
+
validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'COMPLETED', 'INCOMPLETE'])
|
|
194
193
|
unless validator.valid?(objective_completion)
|
|
195
|
-
fail ArgumentError,
|
|
194
|
+
fail ArgumentError, 'invalid value for "objective_completion", must be one of #{validator.allowable_values}.'
|
|
196
195
|
end
|
|
197
196
|
@objective_completion = objective_completion
|
|
198
197
|
end
|
|
@@ -200,9 +199,9 @@ module RusticiSoftwareCloudV2
|
|
|
200
199
|
# Custom attribute writer method checking allowed values (enum).
|
|
201
200
|
# @param [Object] objective_success Object to be assigned
|
|
202
201
|
def objective_success=(objective_success)
|
|
203
|
-
validator = EnumAttributeValidator.new('String', [
|
|
202
|
+
validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
|
|
204
203
|
unless validator.valid?(objective_success)
|
|
205
|
-
fail ArgumentError,
|
|
204
|
+
fail ArgumentError, 'invalid value for "objective_success", must be one of #{validator.allowable_values}.'
|
|
206
205
|
end
|
|
207
206
|
@objective_success = objective_success
|
|
208
207
|
end
|
|
@@ -210,9 +209,9 @@ module RusticiSoftwareCloudV2
|
|
|
210
209
|
# Custom attribute writer method checking allowed values (enum).
|
|
211
210
|
# @param [Object] previous_objective_success Object to be assigned
|
|
212
211
|
def previous_objective_success=(previous_objective_success)
|
|
213
|
-
validator = EnumAttributeValidator.new('String', [
|
|
212
|
+
validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
|
|
214
213
|
unless validator.valid?(previous_objective_success)
|
|
215
|
-
fail ArgumentError,
|
|
214
|
+
fail ArgumentError, 'invalid value for "previous_objective_success", must be one of #{validator.allowable_values}.'
|
|
216
215
|
end
|
|
217
216
|
@previous_objective_success = previous_objective_success
|
|
218
217
|
end
|
|
@@ -259,7 +258,7 @@ module RusticiSoftwareCloudV2
|
|
|
259
258
|
# check to ensure the input is an array given that the the attribute
|
|
260
259
|
# is documented as an array but the input is not
|
|
261
260
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
262
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
261
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
263
262
|
end
|
|
264
263
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
265
264
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -341,7 +340,7 @@ module RusticiSoftwareCloudV2
|
|
|
341
340
|
# @return [Hash] Returns the value in the form of hash
|
|
342
341
|
def _to_hash(value)
|
|
343
342
|
if value.is_a?(Array)
|
|
344
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
343
|
+
value.compact.map { |v| _to_hash(v) }
|
|
345
344
|
elsif value.is_a?(Hash)
|
|
346
345
|
{}.tap do |hash|
|
|
347
346
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -352,7 +351,5 @@ module RusticiSoftwareCloudV2
|
|
|
352
351
|
value
|
|
353
352
|
end
|
|
354
353
|
end
|
|
355
|
-
|
|
356
354
|
end
|
|
357
|
-
|
|
358
355
|
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 PermissionsSchema
|
|
17
17
|
attr_accessor :scopes
|
|
18
18
|
|
|
19
19
|
# application these permissions apply to
|
|
20
20
|
attr_accessor :application_name
|
|
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?(:'scopes')
|
|
48
47
|
if (value = attributes[:'scopes']).is_a?(Array)
|
|
@@ -53,20 +52,19 @@ module RusticiSoftwareCloudV2
|
|
|
53
52
|
if attributes.has_key?(:'applicationName')
|
|
54
53
|
self.application_name = attributes[:'applicationName']
|
|
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,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 PingSchema
|
|
17
17
|
attr_accessor :api_message
|
|
18
18
|
|
|
19
19
|
attr_accessor :current_time
|
|
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?(:'apiMessage')
|
|
47
46
|
self.api_message = attributes[:'apiMessage']
|
|
@@ -50,20 +49,19 @@ module RusticiSoftwareCloudV2
|
|
|
50
49
|
if attributes.has_key?(:'currentTime')
|
|
51
50
|
self.current_time = attributes[:'currentTime']
|
|
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 PostBackSchema
|
|
17
17
|
attr_accessor :url
|
|
18
18
|
|
|
@@ -83,7 +83,7 @@ module RusticiSoftwareCloudV2
|
|
|
83
83
|
return unless attributes.is_a?(Hash)
|
|
84
84
|
|
|
85
85
|
# convert string to symbol for hash key
|
|
86
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
86
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
87
87
|
|
|
88
88
|
if attributes.has_key?(:'url')
|
|
89
89
|
self.url = attributes[:'url']
|
|
@@ -92,7 +92,7 @@ module RusticiSoftwareCloudV2
|
|
|
92
92
|
if attributes.has_key?(:'authType')
|
|
93
93
|
self.auth_type = attributes[:'authType']
|
|
94
94
|
else
|
|
95
|
-
self.auth_type =
|
|
95
|
+
self.auth_type = 'UNDEFINED'
|
|
96
96
|
end
|
|
97
97
|
|
|
98
98
|
if attributes.has_key?(:'userName')
|
|
@@ -106,38 +106,37 @@ module RusticiSoftwareCloudV2
|
|
|
106
106
|
if attributes.has_key?(:'resultsFormat')
|
|
107
107
|
self.results_format = attributes[:'resultsFormat']
|
|
108
108
|
else
|
|
109
|
-
self.results_format =
|
|
109
|
+
self.results_format = 'UNDEFINED'
|
|
110
110
|
end
|
|
111
111
|
|
|
112
112
|
if attributes.has_key?(:'legacy')
|
|
113
113
|
self.legacy = attributes[:'legacy']
|
|
114
114
|
end
|
|
115
|
-
|
|
116
115
|
end
|
|
117
116
|
|
|
118
117
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
119
|
-
# @return Array for valid
|
|
118
|
+
# @return Array for valid properties with the reasons
|
|
120
119
|
def list_invalid_properties
|
|
121
120
|
invalid_properties = Array.new
|
|
122
|
-
|
|
121
|
+
invalid_properties
|
|
123
122
|
end
|
|
124
123
|
|
|
125
124
|
# Check to see if the all the properties in the model are valid
|
|
126
125
|
# @return true if the model is valid
|
|
127
126
|
def valid?
|
|
128
|
-
auth_type_validator = EnumAttributeValidator.new('String', [
|
|
127
|
+
auth_type_validator = EnumAttributeValidator.new('String', ['UNDEFINED', 'FORM', 'HTTPBASIC'])
|
|
129
128
|
return false unless auth_type_validator.valid?(@auth_type)
|
|
130
|
-
results_format_validator = EnumAttributeValidator.new('String', [
|
|
129
|
+
results_format_validator = EnumAttributeValidator.new('String', ['UNDEFINED', 'COURSE', 'ACTIVITY', 'FULL'])
|
|
131
130
|
return false unless results_format_validator.valid?(@results_format)
|
|
132
|
-
|
|
131
|
+
true
|
|
133
132
|
end
|
|
134
133
|
|
|
135
134
|
# Custom attribute writer method checking allowed values (enum).
|
|
136
135
|
# @param [Object] auth_type Object to be assigned
|
|
137
136
|
def auth_type=(auth_type)
|
|
138
|
-
validator = EnumAttributeValidator.new('String', [
|
|
137
|
+
validator = EnumAttributeValidator.new('String', ['UNDEFINED', 'FORM', 'HTTPBASIC'])
|
|
139
138
|
unless validator.valid?(auth_type)
|
|
140
|
-
fail ArgumentError,
|
|
139
|
+
fail ArgumentError, 'invalid value for "auth_type", must be one of #{validator.allowable_values}.'
|
|
141
140
|
end
|
|
142
141
|
@auth_type = auth_type
|
|
143
142
|
end
|
|
@@ -145,9 +144,9 @@ module RusticiSoftwareCloudV2
|
|
|
145
144
|
# Custom attribute writer method checking allowed values (enum).
|
|
146
145
|
# @param [Object] results_format Object to be assigned
|
|
147
146
|
def results_format=(results_format)
|
|
148
|
-
validator = EnumAttributeValidator.new('String', [
|
|
147
|
+
validator = EnumAttributeValidator.new('String', ['UNDEFINED', 'COURSE', 'ACTIVITY', 'FULL'])
|
|
149
148
|
unless validator.valid?(results_format)
|
|
150
|
-
fail ArgumentError,
|
|
149
|
+
fail ArgumentError, 'invalid value for "results_format", must be one of #{validator.allowable_values}.'
|
|
151
150
|
end
|
|
152
151
|
@results_format = results_format
|
|
153
152
|
end
|
|
@@ -187,7 +186,7 @@ module RusticiSoftwareCloudV2
|
|
|
187
186
|
# check to ensure the input is an array given that the the attribute
|
|
188
187
|
# is documented as an array but the input is not
|
|
189
188
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
190
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
189
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
191
190
|
end
|
|
192
191
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
193
192
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -269,7 +268,7 @@ module RusticiSoftwareCloudV2
|
|
|
269
268
|
# @return [Hash] Returns the value in the form of hash
|
|
270
269
|
def _to_hash(value)
|
|
271
270
|
if value.is_a?(Array)
|
|
272
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
271
|
+
value.compact.map { |v| _to_hash(v) }
|
|
273
272
|
elsif value.is_a?(Hash)
|
|
274
273
|
{}.tap do |hash|
|
|
275
274
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -280,7 +279,5 @@ module RusticiSoftwareCloudV2
|
|
|
280
279
|
value
|
|
281
280
|
end
|
|
282
281
|
end
|
|
283
|
-
|
|
284
282
|
end
|
|
285
|
-
|
|
286
283
|
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 PrivateInvitationList
|
|
17
17
|
# A list of private 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
|