rustici_software_cloud_v2 1.1.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +355 -356
- data/lib/rustici_software_cloud_v2/api/about_api.rb +5 -5
- data/lib/rustici_software_cloud_v2/api/application_management_api.rb +191 -63
- data/lib/rustici_software_cloud_v2/api/authentication_api.rb +10 -18
- data/lib/rustici_software_cloud_v2/api/content_connectors_api.rb +236 -0
- data/lib/rustici_software_cloud_v2/api/course_api.rb +1046 -225
- data/lib/rustici_software_cloud_v2/api/dispatch_api.rb +634 -269
- data/lib/rustici_software_cloud_v2/api/invitations_api.rb +213 -171
- data/lib/rustici_software_cloud_v2/api/learner_api.rb +49 -49
- data/lib/rustici_software_cloud_v2/api/ping_api.rb +3 -1
- data/lib/rustici_software_cloud_v2/api/registration_api.rb +256 -270
- data/lib/rustici_software_cloud_v2/api/reporting_api.rb +20 -24
- data/lib/rustici_software_cloud_v2/api/xapi_api.rb +82 -67
- data/lib/rustici_software_cloud_v2/api/zoomi_api.rb +125 -56
- data/lib/rustici_software_cloud_v2/api_client.rb +3 -3
- data/lib/rustici_software_cloud_v2/api_error.rb +1 -1
- data/lib/rustici_software_cloud_v2/configuration.rb +11 -4
- data/lib/rustici_software_cloud_v2/models/about_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/activity_result_schema.rb +9 -37
- data/lib/rustici_software_cloud_v2/models/application_info_schema.rb +234 -0
- data/lib/rustici_software_cloud_v2/models/application_list_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/application_request_schema.rb +186 -0
- data/lib/rustici_software_cloud_v2/models/application_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/application_token.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/asset_file_schema.rb +194 -0
- data/lib/rustici_software_cloud_v2/models/batch_tags_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/comment_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/completion_amount_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/connector_list_schema.rb +188 -0
- data/lib/rustici_software_cloud_v2/models/connector_schema.rb +226 -0
- data/lib/rustici_software_cloud_v2/models/course_activity_schema.rb +7 -31
- data/lib/rustici_software_cloud_v2/models/course_list_non_paged_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/course_list_schema.rb +5 -2
- data/lib/rustici_software_cloud_v2/models/course_reference_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/course_schema.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/create_connector_schema.rb +218 -0
- data/lib/rustici_software_cloud_v2/models/create_dispatch_id_schema.rb +3 -20
- data/lib/rustici_software_cloud_v2/models/create_dispatch_list_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/create_dispatch_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/create_private_invitation_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/create_public_invitation_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/create_registration_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/credential_created_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/credential_list_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/credential_request_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/credential_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/destination_id_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/destination_list_schema.rb +5 -3
- data/lib/rustici_software_cloud_v2/models/destination_schema.rb +35 -6
- data/lib/rustici_software_cloud_v2/models/dispatch_id_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/dispatch_list_schema.rb +5 -2
- data/lib/rustici_software_cloud_v2/models/dispatch_lti13_info_schema.rb +186 -0
- data/lib/rustici_software_cloud_v2/models/dispatch_lti_info_schema.rb +221 -0
- data/lib/rustici_software_cloud_v2/models/dispatch_registration_count_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/dispatch_schema.rb +44 -4
- data/lib/rustici_software_cloud_v2/models/enabled_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/file_list_item_schema.rb +205 -0
- data/lib/rustici_software_cloud_v2/models/file_list_schema.rb +187 -0
- data/lib/rustici_software_cloud_v2/models/import_asset_request_schema.rb +207 -0
- data/lib/rustici_software_cloud_v2/models/import_connector_request_schema.rb +207 -0
- data/lib/rustici_software_cloud_v2/models/import_fetch_request_schema.rb +30 -7
- data/lib/rustici_software_cloud_v2/models/import_job_result_schema.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/import_media_file_reference_request_schema.rb +216 -0
- data/lib/rustici_software_cloud_v2/models/import_request_schema.rb +204 -0
- data/lib/rustici_software_cloud_v2/models/import_result_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/integer_result_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/invitation_email_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/invitation_job_status_schema.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/invitation_summary_list.rb +5 -2
- data/lib/rustici_software_cloud_v2/models/invitation_summary_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/item_value_pair_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/launch_auth_options_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/launch_auth_schema.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/launch_history_list_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/launch_history_schema.rb +9 -37
- data/lib/rustici_software_cloud_v2/models/launch_link_request_schema.rb +6 -4
- data/lib/rustici_software_cloud_v2/models/launch_link_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/learner_preference_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/learner_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/lti13_platform_configuration_schema.rb +261 -0
- data/lib/rustici_software_cloud_v2/models/lti13_tool_configuration_schema.rb +236 -0
- data/lib/rustici_software_cloud_v2/models/media_file_metadata_schema.rb +213 -0
- data/lib/rustici_software_cloud_v2/models/message_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/metadata_schema.rb +11 -9
- data/lib/rustici_software_cloud_v2/models/objective_schema.rb +12 -44
- data/lib/rustici_software_cloud_v2/models/permissions_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/ping_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/post_back_schema.rb +9 -37
- data/lib/rustici_software_cloud_v2/models/private_invitation_list.rb +5 -2
- data/lib/rustici_software_cloud_v2/models/private_invitation_schema.rb +6 -4
- data/lib/rustici_software_cloud_v2/models/private_invitation_update_schema.rb +215 -0
- data/lib/rustici_software_cloud_v2/models/public_invitation_list.rb +5 -2
- data/lib/rustici_software_cloud_v2/models/public_invitation_schema.rb +17 -6
- data/lib/rustici_software_cloud_v2/models/public_invitation_update_schema.rb +228 -0
- data/lib/rustici_software_cloud_v2/models/registration_completion.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/registration_list_schema.rb +5 -2
- data/lib/rustici_software_cloud_v2/models/registration_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/registration_success.rb +1 -1
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/reportage_account_info_usage_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/reportage_auth_token_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/reportage_link_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/response_error.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/runtime_interaction_schema.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/runtime_objective_schema.rb +9 -37
- data/lib/rustici_software_cloud_v2/models/runtime_schema.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/score_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/setting_item.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/setting_list_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/setting_metadata.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/setting_valid_value.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/settings_individual_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/settings_post_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/shared_data_entry_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/static_properties_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/string_result_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/tag_list_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/title_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/token_request_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/update_application_schema.rb +196 -0
- data/lib/rustici_software_cloud_v2/models/update_connector_schema.rb +196 -0
- data/lib/rustici_software_cloud_v2/models/update_dispatch_schema.rb +16 -4
- data/lib/rustici_software_cloud_v2/models/user_invitation_list.rb +5 -2
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/user_invitation_schema_registration_report.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_account.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_activity.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_activity_definition.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_agent_group.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/xapi_attachment.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_context.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_context_activity.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_credential_auth_type_schema.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/xapi_credential_permissions_level_schema.rb +6 -30
- data/lib/rustici_software_cloud_v2/models/xapi_credential_post_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_credential_put_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_credential_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_credentials_list_schema.rb +5 -2
- data/lib/rustici_software_cloud_v2/models/xapi_endpoint_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_interaction_component.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_result.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_score.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_statement.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_list_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_post_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_put_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_statement_pipe_schema.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_statement_reference.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_statement_result.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/xapi_verb.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/zoomi_company_id.rb +4 -2
- data/lib/rustici_software_cloud_v2/models/zoomi_course_options_schema.rb +14 -2
- data/lib/rustici_software_cloud_v2/version.rb +2 -2
- data/lib/rustici_software_cloud_v2.rb +23 -1
- data/rustici_software_cloud_v2.gemspec +3 -2
- data/spec/api_client_spec.rb +18 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +45 -3
@@ -6,7 +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.
|
9
|
+
Swagger Codegen version: 2.4.27
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -80,6 +80,7 @@ module RusticiSoftwareCloudV2
|
|
80
80
|
true
|
81
81
|
end
|
82
82
|
|
83
|
+
|
83
84
|
# Checks equality by comparing each attribute.
|
84
85
|
# @param [Object] Object to be compared
|
85
86
|
def ==(o)
|
@@ -110,7 +111,7 @@ module RusticiSoftwareCloudV2
|
|
110
111
|
return nil unless attributes.is_a?(Hash)
|
111
112
|
self.class.swagger_types.each_pair do |key, type|
|
112
113
|
if type =~ /\AArray<(.*)>/i
|
113
|
-
# check to ensure the input is an array given that the
|
114
|
+
# check to ensure the input is an array given that the attribute
|
114
115
|
# is documented as an array but the input is not
|
115
116
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
116
117
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -206,5 +207,6 @@ module RusticiSoftwareCloudV2
|
|
206
207
|
value
|
207
208
|
end
|
208
209
|
end
|
210
|
+
|
209
211
|
end
|
210
212
|
end
|
@@ -6,7 +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.
|
9
|
+
Swagger Codegen version: 2.4.27
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -18,28 +18,6 @@ module RusticiSoftwareCloudV2
|
|
18
18
|
|
19
19
|
attr_accessor :options
|
20
20
|
|
21
|
-
class EnumAttributeValidator
|
22
|
-
attr_reader :datatype
|
23
|
-
attr_reader :allowable_values
|
24
|
-
|
25
|
-
def initialize(datatype, allowable_values)
|
26
|
-
@allowable_values = allowable_values.map do |value|
|
27
|
-
case datatype.to_s
|
28
|
-
when /Integer/i
|
29
|
-
value.to_i
|
30
|
-
when /Float/i
|
31
|
-
value.to_f
|
32
|
-
else
|
33
|
-
value
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
|
-
def valid?(value)
|
39
|
-
!value || allowable_values.include?(value)
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
44
22
|
def self.attribute_map
|
45
23
|
{
|
@@ -85,18 +63,15 @@ module RusticiSoftwareCloudV2
|
|
85
63
|
# Check to see if the all the properties in the model are valid
|
86
64
|
# @return true if the model is valid
|
87
65
|
def valid?
|
88
|
-
type_validator = EnumAttributeValidator.new('String', ['cookies', 'vault'])
|
89
|
-
return false unless type_validator.valid?(@type)
|
90
66
|
true
|
91
67
|
end
|
92
68
|
|
93
69
|
# Custom attribute writer method checking allowed values (enum).
|
70
|
+
#
|
71
|
+
# allowable_values = ['cookies', 'vault']
|
72
|
+
#
|
94
73
|
# @param [Object] type Object to be assigned
|
95
74
|
def type=(type)
|
96
|
-
validator = EnumAttributeValidator.new('String', ['cookies', 'vault'])
|
97
|
-
unless validator.valid?(type)
|
98
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
99
|
-
end
|
100
75
|
@type = type
|
101
76
|
end
|
102
77
|
|
@@ -128,7 +103,7 @@ module RusticiSoftwareCloudV2
|
|
128
103
|
return nil unless attributes.is_a?(Hash)
|
129
104
|
self.class.swagger_types.each_pair do |key, type|
|
130
105
|
if type =~ /\AArray<(.*)>/i
|
131
|
-
# check to ensure the input is an array given that the
|
106
|
+
# check to ensure the input is an array given that the attribute
|
132
107
|
# is documented as an array but the input is not
|
133
108
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
134
109
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -224,5 +199,6 @@ module RusticiSoftwareCloudV2
|
|
224
199
|
value
|
225
200
|
end
|
226
201
|
end
|
202
|
+
|
227
203
|
end
|
228
204
|
end
|
@@ -6,7 +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.
|
9
|
+
Swagger Codegen version: 2.4.27
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -58,6 +58,7 @@ module RusticiSoftwareCloudV2
|
|
58
58
|
true
|
59
59
|
end
|
60
60
|
|
61
|
+
|
61
62
|
# Checks equality by comparing each attribute.
|
62
63
|
# @param [Object] Object to be compared
|
63
64
|
def ==(o)
|
@@ -85,7 +86,7 @@ module RusticiSoftwareCloudV2
|
|
85
86
|
return nil unless attributes.is_a?(Hash)
|
86
87
|
self.class.swagger_types.each_pair do |key, type|
|
87
88
|
if type =~ /\AArray<(.*)>/i
|
88
|
-
# check to ensure the input is an array given that the
|
89
|
+
# check to ensure the input is an array given that the attribute
|
89
90
|
# is documented as an array but the input is not
|
90
91
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
91
92
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -181,5 +182,6 @@ module RusticiSoftwareCloudV2
|
|
181
182
|
value
|
182
183
|
end
|
183
184
|
end
|
185
|
+
|
184
186
|
end
|
185
187
|
end
|
@@ -6,7 +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.
|
9
|
+
Swagger Codegen version: 2.4.27
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -37,28 +37,6 @@ module RusticiSoftwareCloudV2
|
|
37
37
|
# The time of the last runtime update in UTC
|
38
38
|
attr_accessor :last_runtime_update
|
39
39
|
|
40
|
-
class EnumAttributeValidator
|
41
|
-
attr_reader :datatype
|
42
|
-
attr_reader :allowable_values
|
43
|
-
|
44
|
-
def initialize(datatype, allowable_values)
|
45
|
-
@allowable_values = allowable_values.map do |value|
|
46
|
-
case datatype.to_s
|
47
|
-
when /Integer/i
|
48
|
-
value.to_i
|
49
|
-
when /Float/i
|
50
|
-
value.to_f
|
51
|
-
else
|
52
|
-
value
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
|
-
def valid?(value)
|
58
|
-
!value || allowable_values.include?(value)
|
59
|
-
end
|
60
|
-
end
|
61
|
-
|
62
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
63
41
|
def self.attribute_map
|
64
42
|
{
|
@@ -154,30 +132,23 @@ module RusticiSoftwareCloudV2
|
|
154
132
|
# Check to see if the all the properties in the model are valid
|
155
133
|
# @return true if the model is valid
|
156
134
|
def valid?
|
157
|
-
completion_status_validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'COMPLETED', 'INCOMPLETE'])
|
158
|
-
return false unless completion_status_validator.valid?(@completion_status)
|
159
|
-
success_status_validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
|
160
|
-
return false unless success_status_validator.valid?(@success_status)
|
161
135
|
true
|
162
136
|
end
|
163
137
|
|
164
138
|
# Custom attribute writer method checking allowed values (enum).
|
139
|
+
#
|
140
|
+
# allowable_values = ['UNKNOWN', 'COMPLETED', 'INCOMPLETE']
|
141
|
+
#
|
165
142
|
# @param [Object] completion_status Object to be assigned
|
166
143
|
def completion_status=(completion_status)
|
167
|
-
validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'COMPLETED', 'INCOMPLETE'])
|
168
|
-
unless validator.valid?(completion_status)
|
169
|
-
fail ArgumentError, 'invalid value for "completion_status", must be one of #{validator.allowable_values}.'
|
170
|
-
end
|
171
144
|
@completion_status = completion_status
|
172
145
|
end
|
173
|
-
|
174
146
|
# Custom attribute writer method checking allowed values (enum).
|
147
|
+
#
|
148
|
+
# allowable_values = ['UNKNOWN', 'PASSED', 'FAILED']
|
149
|
+
#
|
175
150
|
# @param [Object] success_status Object to be assigned
|
176
151
|
def success_status=(success_status)
|
177
|
-
validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
|
178
|
-
unless validator.valid?(success_status)
|
179
|
-
fail ArgumentError, 'invalid value for "success_status", must be one of #{validator.allowable_values}.'
|
180
|
-
end
|
181
152
|
@success_status = success_status
|
182
153
|
end
|
183
154
|
|
@@ -217,7 +188,7 @@ module RusticiSoftwareCloudV2
|
|
217
188
|
return nil unless attributes.is_a?(Hash)
|
218
189
|
self.class.swagger_types.each_pair do |key, type|
|
219
190
|
if type =~ /\AArray<(.*)>/i
|
220
|
-
# check to ensure the input is an array given that the
|
191
|
+
# check to ensure the input is an array given that the attribute
|
221
192
|
# is documented as an array but the input is not
|
222
193
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
223
194
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -313,5 +284,6 @@ module RusticiSoftwareCloudV2
|
|
313
284
|
value
|
314
285
|
end
|
315
286
|
end
|
287
|
+
|
316
288
|
end
|
317
289
|
end
|
@@ -6,7 +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.
|
9
|
+
Swagger Codegen version: 2.4.27
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,10 +17,10 @@ module RusticiSoftwareCloudV2
|
|
17
17
|
# Number of seconds from now this link will expire in. Defaults to 120s. Range 10s:300s
|
18
18
|
attr_accessor :expiry
|
19
19
|
|
20
|
-
# The URL the application should redirect to when the learner exits a course. If
|
20
|
+
# The URL the application should redirect to when the learner exits a course. Alternatively one of the following keywords can be used to redirect to: - `closer` - A page that automatically tries to close the browser tab/window - `blank` - A blank page - `message` - A page with a message about the course being complete If an empty string is specified, the configured setting will be used (default www.scorm.com). If an invalid url is specified, the Message.html page will be loaded.
|
21
21
|
attr_accessor :redirect_on_exit_url
|
22
22
|
|
23
|
-
# Should this launch be tracked? If false,
|
23
|
+
# Should this launch be tracked? If false, SCORM Cloud will avoid tracking to the extent possible for the standard being used.
|
24
24
|
attr_accessor :tracking
|
25
25
|
|
26
26
|
# For SCORM, SCO identifier to override launch, overriding the normal sequencing.
|
@@ -159,6 +159,7 @@ module RusticiSoftwareCloudV2
|
|
159
159
|
true
|
160
160
|
end
|
161
161
|
|
162
|
+
|
162
163
|
# Checks equality by comparing each attribute.
|
163
164
|
# @param [Object] Object to be compared
|
164
165
|
def ==(o)
|
@@ -196,7 +197,7 @@ module RusticiSoftwareCloudV2
|
|
196
197
|
return nil unless attributes.is_a?(Hash)
|
197
198
|
self.class.swagger_types.each_pair do |key, type|
|
198
199
|
if type =~ /\AArray<(.*)>/i
|
199
|
-
# check to ensure the input is an array given that the
|
200
|
+
# check to ensure the input is an array given that the attribute
|
200
201
|
# is documented as an array but the input is not
|
201
202
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
202
203
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -292,5 +293,6 @@ module RusticiSoftwareCloudV2
|
|
292
293
|
value
|
293
294
|
end
|
294
295
|
end
|
296
|
+
|
295
297
|
end
|
296
298
|
end
|
@@ -6,7 +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.
|
9
|
+
Swagger Codegen version: 2.4.27
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -61,6 +61,7 @@ module RusticiSoftwareCloudV2
|
|
61
61
|
true
|
62
62
|
end
|
63
63
|
|
64
|
+
|
64
65
|
# Checks equality by comparing each attribute.
|
65
66
|
# @param [Object] Object to be compared
|
66
67
|
def ==(o)
|
@@ -88,7 +89,7 @@ module RusticiSoftwareCloudV2
|
|
88
89
|
return nil unless attributes.is_a?(Hash)
|
89
90
|
self.class.swagger_types.each_pair do |key, type|
|
90
91
|
if type =~ /\AArray<(.*)>/i
|
91
|
-
# check to ensure the input is an array given that the
|
92
|
+
# check to ensure the input is an array given that the attribute
|
92
93
|
# is documented as an array but the input is not
|
93
94
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
94
95
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -184,5 +185,6 @@ module RusticiSoftwareCloudV2
|
|
184
185
|
value
|
185
186
|
end
|
186
187
|
end
|
188
|
+
|
187
189
|
end
|
188
190
|
end
|
@@ -6,7 +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.
|
9
|
+
Swagger Codegen version: 2.4.27
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -80,6 +80,7 @@ module RusticiSoftwareCloudV2
|
|
80
80
|
true
|
81
81
|
end
|
82
82
|
|
83
|
+
|
83
84
|
# Checks equality by comparing each attribute.
|
84
85
|
# @param [Object] Object to be compared
|
85
86
|
def ==(o)
|
@@ -110,7 +111,7 @@ module RusticiSoftwareCloudV2
|
|
110
111
|
return nil unless attributes.is_a?(Hash)
|
111
112
|
self.class.swagger_types.each_pair do |key, type|
|
112
113
|
if type =~ /\AArray<(.*)>/i
|
113
|
-
# check to ensure the input is an array given that the
|
114
|
+
# check to ensure the input is an array given that the attribute
|
114
115
|
# is documented as an array but the input is not
|
115
116
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
116
117
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -206,5 +207,6 @@ module RusticiSoftwareCloudV2
|
|
206
207
|
value
|
207
208
|
end
|
208
209
|
end
|
210
|
+
|
209
211
|
end
|
210
212
|
end
|
@@ -6,7 +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.
|
9
|
+
Swagger Codegen version: 2.4.27
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -86,6 +86,7 @@ module RusticiSoftwareCloudV2
|
|
86
86
|
true
|
87
87
|
end
|
88
88
|
|
89
|
+
|
89
90
|
# Checks equality by comparing each attribute.
|
90
91
|
# @param [Object] Object to be compared
|
91
92
|
def ==(o)
|
@@ -116,7 +117,7 @@ module RusticiSoftwareCloudV2
|
|
116
117
|
return nil unless attributes.is_a?(Hash)
|
117
118
|
self.class.swagger_types.each_pair do |key, type|
|
118
119
|
if type =~ /\AArray<(.*)>/i
|
119
|
-
# check to ensure the input is an array given that the
|
120
|
+
# check to ensure the input is an array given that the attribute
|
120
121
|
# is documented as an array but the input is not
|
121
122
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
122
123
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -212,5 +213,6 @@ module RusticiSoftwareCloudV2
|
|
212
213
|
value
|
213
214
|
end
|
214
215
|
end
|
216
|
+
|
215
217
|
end
|
216
218
|
end
|
@@ -0,0 +1,261 @@
|
|
1
|
+
=begin
|
2
|
+
#SCORM Cloud Rest API
|
3
|
+
|
4
|
+
#REST API used for SCORM Cloud integrations.
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.27
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module RusticiSoftwareCloudV2
|
16
|
+
class Lti13PlatformConfigurationSchema
|
17
|
+
# OAuth2 client Id for this tool
|
18
|
+
attr_accessor :client_id
|
19
|
+
|
20
|
+
# Issuer identifier identifying the learning platform
|
21
|
+
attr_accessor :platform_issuer_identifier
|
22
|
+
|
23
|
+
# An unchanging identifier (locally unique within the platformIssuerIdentifier) for the platform-tool integration
|
24
|
+
attr_accessor :deployment_id
|
25
|
+
|
26
|
+
# Endpoint that will initiate the OIDC Authentication Request
|
27
|
+
attr_accessor :oidc_authorization_endpoint
|
28
|
+
|
29
|
+
# Path to the platform's JSON Web Key Set
|
30
|
+
attr_accessor :json_web_key_set_url
|
31
|
+
|
32
|
+
# Endpoint that will return OAuth 2 access tokens for the platform
|
33
|
+
attr_accessor :access_token_url
|
34
|
+
|
35
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
36
|
+
def self.attribute_map
|
37
|
+
{
|
38
|
+
:'client_id' => :'clientId',
|
39
|
+
:'platform_issuer_identifier' => :'platformIssuerIdentifier',
|
40
|
+
:'deployment_id' => :'deploymentId',
|
41
|
+
:'oidc_authorization_endpoint' => :'oidcAuthorizationEndpoint',
|
42
|
+
:'json_web_key_set_url' => :'jsonWebKeySetUrl',
|
43
|
+
:'access_token_url' => :'accessTokenUrl'
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
# Attribute type mapping.
|
48
|
+
def self.swagger_types
|
49
|
+
{
|
50
|
+
:'client_id' => :'String',
|
51
|
+
:'platform_issuer_identifier' => :'String',
|
52
|
+
:'deployment_id' => :'String',
|
53
|
+
:'oidc_authorization_endpoint' => :'String',
|
54
|
+
:'json_web_key_set_url' => :'String',
|
55
|
+
:'access_token_url' => :'String'
|
56
|
+
}
|
57
|
+
end
|
58
|
+
|
59
|
+
# Initializes the object
|
60
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
61
|
+
def initialize(attributes = {})
|
62
|
+
return unless attributes.is_a?(Hash)
|
63
|
+
|
64
|
+
# convert string to symbol for hash key
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
66
|
+
|
67
|
+
if attributes.has_key?(:'clientId')
|
68
|
+
self.client_id = attributes[:'clientId']
|
69
|
+
end
|
70
|
+
|
71
|
+
if attributes.has_key?(:'platformIssuerIdentifier')
|
72
|
+
self.platform_issuer_identifier = attributes[:'platformIssuerIdentifier']
|
73
|
+
end
|
74
|
+
|
75
|
+
if attributes.has_key?(:'deploymentId')
|
76
|
+
self.deployment_id = attributes[:'deploymentId']
|
77
|
+
end
|
78
|
+
|
79
|
+
if attributes.has_key?(:'oidcAuthorizationEndpoint')
|
80
|
+
self.oidc_authorization_endpoint = attributes[:'oidcAuthorizationEndpoint']
|
81
|
+
end
|
82
|
+
|
83
|
+
if attributes.has_key?(:'jsonWebKeySetUrl')
|
84
|
+
self.json_web_key_set_url = attributes[:'jsonWebKeySetUrl']
|
85
|
+
end
|
86
|
+
|
87
|
+
if attributes.has_key?(:'accessTokenUrl')
|
88
|
+
self.access_token_url = attributes[:'accessTokenUrl']
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
93
|
+
# @return Array for valid properties with the reasons
|
94
|
+
def list_invalid_properties
|
95
|
+
invalid_properties = Array.new
|
96
|
+
if @client_id.nil?
|
97
|
+
invalid_properties.push('invalid value for "client_id", client_id cannot be nil.')
|
98
|
+
end
|
99
|
+
|
100
|
+
if @platform_issuer_identifier.nil?
|
101
|
+
invalid_properties.push('invalid value for "platform_issuer_identifier", platform_issuer_identifier cannot be nil.')
|
102
|
+
end
|
103
|
+
|
104
|
+
if @deployment_id.nil?
|
105
|
+
invalid_properties.push('invalid value for "deployment_id", deployment_id cannot be nil.')
|
106
|
+
end
|
107
|
+
|
108
|
+
if @oidc_authorization_endpoint.nil?
|
109
|
+
invalid_properties.push('invalid value for "oidc_authorization_endpoint", oidc_authorization_endpoint cannot be nil.')
|
110
|
+
end
|
111
|
+
|
112
|
+
if @json_web_key_set_url.nil?
|
113
|
+
invalid_properties.push('invalid value for "json_web_key_set_url", json_web_key_set_url cannot be nil.')
|
114
|
+
end
|
115
|
+
|
116
|
+
invalid_properties
|
117
|
+
end
|
118
|
+
|
119
|
+
# Check to see if the all the properties in the model are valid
|
120
|
+
# @return true if the model is valid
|
121
|
+
def valid?
|
122
|
+
return false if @client_id.nil?
|
123
|
+
return false if @platform_issuer_identifier.nil?
|
124
|
+
return false if @deployment_id.nil?
|
125
|
+
return false if @oidc_authorization_endpoint.nil?
|
126
|
+
return false if @json_web_key_set_url.nil?
|
127
|
+
true
|
128
|
+
end
|
129
|
+
|
130
|
+
|
131
|
+
# Checks equality by comparing each attribute.
|
132
|
+
# @param [Object] Object to be compared
|
133
|
+
def ==(o)
|
134
|
+
return true if self.equal?(o)
|
135
|
+
self.class == o.class &&
|
136
|
+
client_id == o.client_id &&
|
137
|
+
platform_issuer_identifier == o.platform_issuer_identifier &&
|
138
|
+
deployment_id == o.deployment_id &&
|
139
|
+
oidc_authorization_endpoint == o.oidc_authorization_endpoint &&
|
140
|
+
json_web_key_set_url == o.json_web_key_set_url &&
|
141
|
+
access_token_url == o.access_token_url
|
142
|
+
end
|
143
|
+
|
144
|
+
# @see the `==` method
|
145
|
+
# @param [Object] Object to be compared
|
146
|
+
def eql?(o)
|
147
|
+
self == o
|
148
|
+
end
|
149
|
+
|
150
|
+
# Calculates hash code according to all attributes.
|
151
|
+
# @return [Fixnum] Hash code
|
152
|
+
def hash
|
153
|
+
[client_id, platform_issuer_identifier, deployment_id, oidc_authorization_endpoint, json_web_key_set_url, access_token_url].hash
|
154
|
+
end
|
155
|
+
|
156
|
+
# Builds the object from hash
|
157
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
158
|
+
# @return [Object] Returns the model itself
|
159
|
+
def build_from_hash(attributes)
|
160
|
+
return nil unless attributes.is_a?(Hash)
|
161
|
+
self.class.swagger_types.each_pair do |key, type|
|
162
|
+
if type =~ /\AArray<(.*)>/i
|
163
|
+
# check to ensure the input is an array given that the attribute
|
164
|
+
# is documented as an array but the input is not
|
165
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
166
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
167
|
+
end
|
168
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
169
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
170
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
171
|
+
end
|
172
|
+
|
173
|
+
self
|
174
|
+
end
|
175
|
+
|
176
|
+
# Deserializes the data based on type
|
177
|
+
# @param string type Data type
|
178
|
+
# @param string value Value to be deserialized
|
179
|
+
# @return [Object] Deserialized data
|
180
|
+
def _deserialize(type, value)
|
181
|
+
case type.to_sym
|
182
|
+
when :DateTime
|
183
|
+
DateTime.parse(value)
|
184
|
+
when :Date
|
185
|
+
Date.parse(value)
|
186
|
+
when :String
|
187
|
+
value.to_s
|
188
|
+
when :Integer
|
189
|
+
value.to_i
|
190
|
+
when :Float
|
191
|
+
value.to_f
|
192
|
+
when :BOOLEAN
|
193
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
194
|
+
true
|
195
|
+
else
|
196
|
+
false
|
197
|
+
end
|
198
|
+
when :Object
|
199
|
+
# generic object (usually a Hash), return directly
|
200
|
+
value
|
201
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
202
|
+
inner_type = Regexp.last_match[:inner_type]
|
203
|
+
value.map { |v| _deserialize(inner_type, v) }
|
204
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
205
|
+
k_type = Regexp.last_match[:k_type]
|
206
|
+
v_type = Regexp.last_match[:v_type]
|
207
|
+
{}.tap do |hash|
|
208
|
+
value.each do |k, v|
|
209
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
210
|
+
end
|
211
|
+
end
|
212
|
+
else # model
|
213
|
+
temp_model = RusticiSoftwareCloudV2.const_get(type).new
|
214
|
+
temp_model.build_from_hash(value)
|
215
|
+
end
|
216
|
+
end
|
217
|
+
|
218
|
+
# Returns the string representation of the object
|
219
|
+
# @return [String] String presentation of the object
|
220
|
+
def to_s
|
221
|
+
to_hash.to_s
|
222
|
+
end
|
223
|
+
|
224
|
+
# to_body is an alias to to_hash (backward compatibility)
|
225
|
+
# @return [Hash] Returns the object in the form of hash
|
226
|
+
def to_body
|
227
|
+
to_hash
|
228
|
+
end
|
229
|
+
|
230
|
+
# Returns the object in the form of hash
|
231
|
+
# @return [Hash] Returns the object in the form of hash
|
232
|
+
def to_hash
|
233
|
+
hash = {}
|
234
|
+
self.class.attribute_map.each_pair do |attr, param|
|
235
|
+
value = self.send(attr)
|
236
|
+
next if value.nil?
|
237
|
+
hash[param] = _to_hash(value)
|
238
|
+
end
|
239
|
+
hash
|
240
|
+
end
|
241
|
+
|
242
|
+
# Outputs non-array value in the form of hash
|
243
|
+
# For object, use to_hash. Otherwise, just return the value
|
244
|
+
# @param [Object] value Any valid value
|
245
|
+
# @return [Hash] Returns the value in the form of hash
|
246
|
+
def _to_hash(value)
|
247
|
+
if value.is_a?(Array)
|
248
|
+
value.compact.map { |v| _to_hash(v) }
|
249
|
+
elsif value.is_a?(Hash)
|
250
|
+
{}.tap do |hash|
|
251
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
252
|
+
end
|
253
|
+
elsif value.respond_to? :to_hash
|
254
|
+
value.to_hash
|
255
|
+
else
|
256
|
+
value
|
257
|
+
end
|
258
|
+
end
|
259
|
+
|
260
|
+
end
|
261
|
+
end
|