rustici_software_cloud_v2 1.1.0 → 2.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/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
|
|
|
@@ -65,6 +65,7 @@ module RusticiSoftwareCloudV2
|
|
|
65
65
|
true
|
|
66
66
|
end
|
|
67
67
|
|
|
68
|
+
|
|
68
69
|
# Checks equality by comparing each attribute.
|
|
69
70
|
# @param [Object] Object to be compared
|
|
70
71
|
def ==(o)
|
|
@@ -93,7 +94,7 @@ module RusticiSoftwareCloudV2
|
|
|
93
94
|
return nil unless attributes.is_a?(Hash)
|
|
94
95
|
self.class.swagger_types.each_pair do |key, type|
|
|
95
96
|
if type =~ /\AArray<(.*)>/i
|
|
96
|
-
# check to ensure the input is an array given that the
|
|
97
|
+
# check to ensure the input is an array given that the attribute
|
|
97
98
|
# is documented as an array but the input is not
|
|
98
99
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
99
100
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
@@ -189,5 +190,6 @@ module RusticiSoftwareCloudV2
|
|
|
189
190
|
value
|
|
190
191
|
end
|
|
191
192
|
end
|
|
193
|
+
|
|
192
194
|
end
|
|
193
195
|
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,7 +17,7 @@ module RusticiSoftwareCloudV2
|
|
|
17
17
|
#
|
|
18
18
|
attr_accessor :destinations
|
|
19
19
|
|
|
20
|
-
#
|
|
20
|
+
# Token for getting the next set of results, from the prior set of results.
|
|
21
21
|
attr_accessor :more
|
|
22
22
|
|
|
23
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -68,6 +68,7 @@ module RusticiSoftwareCloudV2
|
|
|
68
68
|
true
|
|
69
69
|
end
|
|
70
70
|
|
|
71
|
+
|
|
71
72
|
# Checks equality by comparing each attribute.
|
|
72
73
|
# @param [Object] Object to be compared
|
|
73
74
|
def ==(o)
|
|
@@ -96,7 +97,7 @@ module RusticiSoftwareCloudV2
|
|
|
96
97
|
return nil unless attributes.is_a?(Hash)
|
|
97
98
|
self.class.swagger_types.each_pair do |key, type|
|
|
98
99
|
if type =~ /\AArray<(.*)>/i
|
|
99
|
-
# check to ensure the input is an array given that the
|
|
100
|
+
# check to ensure the input is an array given that the attribute
|
|
100
101
|
# is documented as an array but the input is not
|
|
101
102
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
102
103
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
@@ -192,5 +193,6 @@ module RusticiSoftwareCloudV2
|
|
|
192
193
|
value
|
|
193
194
|
end
|
|
194
195
|
end
|
|
196
|
+
|
|
195
197
|
end
|
|
196
198
|
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,6 +17,10 @@ module RusticiSoftwareCloudV2
|
|
|
17
17
|
# The destination's name.
|
|
18
18
|
attr_accessor :name
|
|
19
19
|
|
|
20
|
+
attr_accessor :updated
|
|
21
|
+
|
|
22
|
+
attr_accessor :created
|
|
23
|
+
|
|
20
24
|
# Optional array of tags.
|
|
21
25
|
attr_accessor :tags
|
|
22
26
|
|
|
@@ -28,14 +32,19 @@ module RusticiSoftwareCloudV2
|
|
|
28
32
|
|
|
29
33
|
attr_accessor :launch_auth
|
|
30
34
|
|
|
35
|
+
attr_accessor :lti13_data
|
|
36
|
+
|
|
31
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
32
38
|
def self.attribute_map
|
|
33
39
|
{
|
|
34
40
|
:'name' => :'name',
|
|
41
|
+
:'updated' => :'updated',
|
|
42
|
+
:'created' => :'created',
|
|
35
43
|
:'tags' => :'tags',
|
|
36
44
|
:'email' => :'email',
|
|
37
45
|
:'notes' => :'notes',
|
|
38
|
-
:'launch_auth' => :'launchAuth'
|
|
46
|
+
:'launch_auth' => :'launchAuth',
|
|
47
|
+
:'lti13_data' => :'lti13Data'
|
|
39
48
|
}
|
|
40
49
|
end
|
|
41
50
|
|
|
@@ -43,10 +52,13 @@ module RusticiSoftwareCloudV2
|
|
|
43
52
|
def self.swagger_types
|
|
44
53
|
{
|
|
45
54
|
:'name' => :'String',
|
|
55
|
+
:'updated' => :'DateTime',
|
|
56
|
+
:'created' => :'DateTime',
|
|
46
57
|
:'tags' => :'Array<String>',
|
|
47
58
|
:'email' => :'String',
|
|
48
59
|
:'notes' => :'String',
|
|
49
|
-
:'launch_auth' => :'LaunchAuthSchema'
|
|
60
|
+
:'launch_auth' => :'LaunchAuthSchema',
|
|
61
|
+
:'lti13_data' => :'Lti13PlatformConfigurationSchema'
|
|
50
62
|
}
|
|
51
63
|
end
|
|
52
64
|
|
|
@@ -62,6 +74,14 @@ module RusticiSoftwareCloudV2
|
|
|
62
74
|
self.name = attributes[:'name']
|
|
63
75
|
end
|
|
64
76
|
|
|
77
|
+
if attributes.has_key?(:'updated')
|
|
78
|
+
self.updated = attributes[:'updated']
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.has_key?(:'created')
|
|
82
|
+
self.created = attributes[:'created']
|
|
83
|
+
end
|
|
84
|
+
|
|
65
85
|
if attributes.has_key?(:'tags')
|
|
66
86
|
if (value = attributes[:'tags']).is_a?(Array)
|
|
67
87
|
self.tags = value
|
|
@@ -79,6 +99,10 @@ module RusticiSoftwareCloudV2
|
|
|
79
99
|
if attributes.has_key?(:'launchAuth')
|
|
80
100
|
self.launch_auth = attributes[:'launchAuth']
|
|
81
101
|
end
|
|
102
|
+
|
|
103
|
+
if attributes.has_key?(:'lti13Data')
|
|
104
|
+
self.lti13_data = attributes[:'lti13Data']
|
|
105
|
+
end
|
|
82
106
|
end
|
|
83
107
|
|
|
84
108
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -94,16 +118,20 @@ module RusticiSoftwareCloudV2
|
|
|
94
118
|
true
|
|
95
119
|
end
|
|
96
120
|
|
|
121
|
+
|
|
97
122
|
# Checks equality by comparing each attribute.
|
|
98
123
|
# @param [Object] Object to be compared
|
|
99
124
|
def ==(o)
|
|
100
125
|
return true if self.equal?(o)
|
|
101
126
|
self.class == o.class &&
|
|
102
127
|
name == o.name &&
|
|
128
|
+
updated == o.updated &&
|
|
129
|
+
created == o.created &&
|
|
103
130
|
tags == o.tags &&
|
|
104
131
|
email == o.email &&
|
|
105
132
|
notes == o.notes &&
|
|
106
|
-
launch_auth == o.launch_auth
|
|
133
|
+
launch_auth == o.launch_auth &&
|
|
134
|
+
lti13_data == o.lti13_data
|
|
107
135
|
end
|
|
108
136
|
|
|
109
137
|
# @see the `==` method
|
|
@@ -115,7 +143,7 @@ module RusticiSoftwareCloudV2
|
|
|
115
143
|
# Calculates hash code according to all attributes.
|
|
116
144
|
# @return [Fixnum] Hash code
|
|
117
145
|
def hash
|
|
118
|
-
[name, tags, email, notes, launch_auth].hash
|
|
146
|
+
[name, updated, created, tags, email, notes, launch_auth, lti13_data].hash
|
|
119
147
|
end
|
|
120
148
|
|
|
121
149
|
# Builds the object from hash
|
|
@@ -125,7 +153,7 @@ module RusticiSoftwareCloudV2
|
|
|
125
153
|
return nil unless attributes.is_a?(Hash)
|
|
126
154
|
self.class.swagger_types.each_pair do |key, type|
|
|
127
155
|
if type =~ /\AArray<(.*)>/i
|
|
128
|
-
# check to ensure the input is an array given that the
|
|
156
|
+
# check to ensure the input is an array given that the attribute
|
|
129
157
|
# is documented as an array but the input is not
|
|
130
158
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
131
159
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
@@ -221,5 +249,6 @@ module RusticiSoftwareCloudV2
|
|
|
221
249
|
value
|
|
222
250
|
end
|
|
223
251
|
end
|
|
252
|
+
|
|
224
253
|
end
|
|
225
254
|
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
|
|
|
@@ -64,6 +64,7 @@ module RusticiSoftwareCloudV2
|
|
|
64
64
|
true
|
|
65
65
|
end
|
|
66
66
|
|
|
67
|
+
|
|
67
68
|
# Checks equality by comparing each attribute.
|
|
68
69
|
# @param [Object] Object to be compared
|
|
69
70
|
def ==(o)
|
|
@@ -92,7 +93,7 @@ module RusticiSoftwareCloudV2
|
|
|
92
93
|
return nil unless attributes.is_a?(Hash)
|
|
93
94
|
self.class.swagger_types.each_pair do |key, type|
|
|
94
95
|
if type =~ /\AArray<(.*)>/i
|
|
95
|
-
# check to ensure the input is an array given that the
|
|
96
|
+
# check to ensure the input is an array given that the attribute
|
|
96
97
|
# is documented as an array but the input is not
|
|
97
98
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
98
99
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
@@ -188,5 +189,6 @@ module RusticiSoftwareCloudV2
|
|
|
188
189
|
value
|
|
189
190
|
end
|
|
190
191
|
end
|
|
192
|
+
|
|
191
193
|
end
|
|
192
194
|
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
|
|
|
@@ -16,6 +16,7 @@ module RusticiSoftwareCloudV2
|
|
|
16
16
|
class DispatchListSchema
|
|
17
17
|
attr_accessor :dispatches
|
|
18
18
|
|
|
19
|
+
# Token for getting the next set of results, from the prior set of results.
|
|
19
20
|
attr_accessor :more
|
|
20
21
|
|
|
21
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -66,6 +67,7 @@ module RusticiSoftwareCloudV2
|
|
|
66
67
|
true
|
|
67
68
|
end
|
|
68
69
|
|
|
70
|
+
|
|
69
71
|
# Checks equality by comparing each attribute.
|
|
70
72
|
# @param [Object] Object to be compared
|
|
71
73
|
def ==(o)
|
|
@@ -94,7 +96,7 @@ module RusticiSoftwareCloudV2
|
|
|
94
96
|
return nil unless attributes.is_a?(Hash)
|
|
95
97
|
self.class.swagger_types.each_pair do |key, type|
|
|
96
98
|
if type =~ /\AArray<(.*)>/i
|
|
97
|
-
# check to ensure the input is an array given that the
|
|
99
|
+
# check to ensure the input is an array given that the attribute
|
|
98
100
|
# is documented as an array but the input is not
|
|
99
101
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
100
102
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
@@ -190,5 +192,6 @@ module RusticiSoftwareCloudV2
|
|
|
190
192
|
value
|
|
191
193
|
end
|
|
192
194
|
end
|
|
195
|
+
|
|
193
196
|
end
|
|
194
197
|
end
|
|
@@ -0,0 +1,186 @@
|
|
|
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 DispatchLti13InfoSchema
|
|
17
|
+
# Endpoint executed at the end of the OIDC authentication flow.
|
|
18
|
+
attr_accessor :target_link_uri
|
|
19
|
+
|
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
|
+
def self.attribute_map
|
|
22
|
+
{
|
|
23
|
+
:'target_link_uri' => :'targetLinkUri'
|
|
24
|
+
}
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# Attribute type mapping.
|
|
28
|
+
def self.swagger_types
|
|
29
|
+
{
|
|
30
|
+
:'target_link_uri' => :'String'
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Initializes the object
|
|
35
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
36
|
+
def initialize(attributes = {})
|
|
37
|
+
return unless attributes.is_a?(Hash)
|
|
38
|
+
|
|
39
|
+
# convert string to symbol for hash key
|
|
40
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
41
|
+
|
|
42
|
+
if attributes.has_key?(:'targetLinkUri')
|
|
43
|
+
self.target_link_uri = attributes[:'targetLinkUri']
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
48
|
+
# @return Array for valid properties with the reasons
|
|
49
|
+
def list_invalid_properties
|
|
50
|
+
invalid_properties = Array.new
|
|
51
|
+
invalid_properties
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Check to see if the all the properties in the model are valid
|
|
55
|
+
# @return true if the model is valid
|
|
56
|
+
def valid?
|
|
57
|
+
true
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
# Checks equality by comparing each attribute.
|
|
62
|
+
# @param [Object] Object to be compared
|
|
63
|
+
def ==(o)
|
|
64
|
+
return true if self.equal?(o)
|
|
65
|
+
self.class == o.class &&
|
|
66
|
+
target_link_uri == o.target_link_uri
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# @see the `==` method
|
|
70
|
+
# @param [Object] Object to be compared
|
|
71
|
+
def eql?(o)
|
|
72
|
+
self == o
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Calculates hash code according to all attributes.
|
|
76
|
+
# @return [Fixnum] Hash code
|
|
77
|
+
def hash
|
|
78
|
+
[target_link_uri].hash
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Builds the object from hash
|
|
82
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
83
|
+
# @return [Object] Returns the model itself
|
|
84
|
+
def build_from_hash(attributes)
|
|
85
|
+
return nil unless attributes.is_a?(Hash)
|
|
86
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
87
|
+
if type =~ /\AArray<(.*)>/i
|
|
88
|
+
# check to ensure the input is an array given that the attribute
|
|
89
|
+
# is documented as an array but the input is not
|
|
90
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
91
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
92
|
+
end
|
|
93
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
94
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
95
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
self
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Deserializes the data based on type
|
|
102
|
+
# @param string type Data type
|
|
103
|
+
# @param string value Value to be deserialized
|
|
104
|
+
# @return [Object] Deserialized data
|
|
105
|
+
def _deserialize(type, value)
|
|
106
|
+
case type.to_sym
|
|
107
|
+
when :DateTime
|
|
108
|
+
DateTime.parse(value)
|
|
109
|
+
when :Date
|
|
110
|
+
Date.parse(value)
|
|
111
|
+
when :String
|
|
112
|
+
value.to_s
|
|
113
|
+
when :Integer
|
|
114
|
+
value.to_i
|
|
115
|
+
when :Float
|
|
116
|
+
value.to_f
|
|
117
|
+
when :BOOLEAN
|
|
118
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
119
|
+
true
|
|
120
|
+
else
|
|
121
|
+
false
|
|
122
|
+
end
|
|
123
|
+
when :Object
|
|
124
|
+
# generic object (usually a Hash), return directly
|
|
125
|
+
value
|
|
126
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
127
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
128
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
129
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
130
|
+
k_type = Regexp.last_match[:k_type]
|
|
131
|
+
v_type = Regexp.last_match[:v_type]
|
|
132
|
+
{}.tap do |hash|
|
|
133
|
+
value.each do |k, v|
|
|
134
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
else # model
|
|
138
|
+
temp_model = RusticiSoftwareCloudV2.const_get(type).new
|
|
139
|
+
temp_model.build_from_hash(value)
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Returns the string representation of the object
|
|
144
|
+
# @return [String] String presentation of the object
|
|
145
|
+
def to_s
|
|
146
|
+
to_hash.to_s
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
150
|
+
# @return [Hash] Returns the object in the form of hash
|
|
151
|
+
def to_body
|
|
152
|
+
to_hash
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Returns the object in the form of hash
|
|
156
|
+
# @return [Hash] Returns the object in the form of hash
|
|
157
|
+
def to_hash
|
|
158
|
+
hash = {}
|
|
159
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
160
|
+
value = self.send(attr)
|
|
161
|
+
next if value.nil?
|
|
162
|
+
hash[param] = _to_hash(value)
|
|
163
|
+
end
|
|
164
|
+
hash
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
# Outputs non-array value in the form of hash
|
|
168
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
169
|
+
# @param [Object] value Any valid value
|
|
170
|
+
# @return [Hash] Returns the value in the form of hash
|
|
171
|
+
def _to_hash(value)
|
|
172
|
+
if value.is_a?(Array)
|
|
173
|
+
value.compact.map { |v| _to_hash(v) }
|
|
174
|
+
elsif value.is_a?(Hash)
|
|
175
|
+
{}.tap do |hash|
|
|
176
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
177
|
+
end
|
|
178
|
+
elsif value.respond_to? :to_hash
|
|
179
|
+
value.to_hash
|
|
180
|
+
else
|
|
181
|
+
value
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
end
|
|
186
|
+
end
|
|
@@ -0,0 +1,221 @@
|
|
|
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 DispatchLtiInfoSchema
|
|
17
|
+
# The LTI launch URL for this dispatch
|
|
18
|
+
attr_accessor :url
|
|
19
|
+
|
|
20
|
+
# The OAuth consumer key that identifies the tool consumer for this dispatch.
|
|
21
|
+
attr_accessor :consumer_key
|
|
22
|
+
|
|
23
|
+
# The OAuth secret to be used for LTI authentication for this dispatch.
|
|
24
|
+
attr_accessor :shared_secret
|
|
25
|
+
|
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
|
+
def self.attribute_map
|
|
28
|
+
{
|
|
29
|
+
:'url' => :'url',
|
|
30
|
+
:'consumer_key' => :'consumerKey',
|
|
31
|
+
:'shared_secret' => :'sharedSecret'
|
|
32
|
+
}
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Attribute type mapping.
|
|
36
|
+
def self.swagger_types
|
|
37
|
+
{
|
|
38
|
+
:'url' => :'String',
|
|
39
|
+
:'consumer_key' => :'String',
|
|
40
|
+
:'shared_secret' => :'String'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Initializes the object
|
|
45
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
46
|
+
def initialize(attributes = {})
|
|
47
|
+
return unless attributes.is_a?(Hash)
|
|
48
|
+
|
|
49
|
+
# convert string to symbol for hash key
|
|
50
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
51
|
+
|
|
52
|
+
if attributes.has_key?(:'url')
|
|
53
|
+
self.url = attributes[:'url']
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
if attributes.has_key?(:'consumerKey')
|
|
57
|
+
self.consumer_key = attributes[:'consumerKey']
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
if attributes.has_key?(:'sharedSecret')
|
|
61
|
+
self.shared_secret = attributes[:'sharedSecret']
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
66
|
+
# @return Array for valid properties with the reasons
|
|
67
|
+
def list_invalid_properties
|
|
68
|
+
invalid_properties = Array.new
|
|
69
|
+
if @url.nil?
|
|
70
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
if @consumer_key.nil?
|
|
74
|
+
invalid_properties.push('invalid value for "consumer_key", consumer_key cannot be nil.')
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if @shared_secret.nil?
|
|
78
|
+
invalid_properties.push('invalid value for "shared_secret", shared_secret cannot be nil.')
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
invalid_properties
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Check to see if the all the properties in the model are valid
|
|
85
|
+
# @return true if the model is valid
|
|
86
|
+
def valid?
|
|
87
|
+
return false if @url.nil?
|
|
88
|
+
return false if @consumer_key.nil?
|
|
89
|
+
return false if @shared_secret.nil?
|
|
90
|
+
true
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
# Checks equality by comparing each attribute.
|
|
95
|
+
# @param [Object] Object to be compared
|
|
96
|
+
def ==(o)
|
|
97
|
+
return true if self.equal?(o)
|
|
98
|
+
self.class == o.class &&
|
|
99
|
+
url == o.url &&
|
|
100
|
+
consumer_key == o.consumer_key &&
|
|
101
|
+
shared_secret == o.shared_secret
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# @see the `==` method
|
|
105
|
+
# @param [Object] Object to be compared
|
|
106
|
+
def eql?(o)
|
|
107
|
+
self == o
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Calculates hash code according to all attributes.
|
|
111
|
+
# @return [Fixnum] Hash code
|
|
112
|
+
def hash
|
|
113
|
+
[url, consumer_key, shared_secret].hash
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Builds the object from hash
|
|
117
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
118
|
+
# @return [Object] Returns the model itself
|
|
119
|
+
def build_from_hash(attributes)
|
|
120
|
+
return nil unless attributes.is_a?(Hash)
|
|
121
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
122
|
+
if type =~ /\AArray<(.*)>/i
|
|
123
|
+
# check to ensure the input is an array given that the attribute
|
|
124
|
+
# is documented as an array but the input is not
|
|
125
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
126
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
127
|
+
end
|
|
128
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
129
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
130
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
self
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Deserializes the data based on type
|
|
137
|
+
# @param string type Data type
|
|
138
|
+
# @param string value Value to be deserialized
|
|
139
|
+
# @return [Object] Deserialized data
|
|
140
|
+
def _deserialize(type, value)
|
|
141
|
+
case type.to_sym
|
|
142
|
+
when :DateTime
|
|
143
|
+
DateTime.parse(value)
|
|
144
|
+
when :Date
|
|
145
|
+
Date.parse(value)
|
|
146
|
+
when :String
|
|
147
|
+
value.to_s
|
|
148
|
+
when :Integer
|
|
149
|
+
value.to_i
|
|
150
|
+
when :Float
|
|
151
|
+
value.to_f
|
|
152
|
+
when :BOOLEAN
|
|
153
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
154
|
+
true
|
|
155
|
+
else
|
|
156
|
+
false
|
|
157
|
+
end
|
|
158
|
+
when :Object
|
|
159
|
+
# generic object (usually a Hash), return directly
|
|
160
|
+
value
|
|
161
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
162
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
163
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
164
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
165
|
+
k_type = Regexp.last_match[:k_type]
|
|
166
|
+
v_type = Regexp.last_match[:v_type]
|
|
167
|
+
{}.tap do |hash|
|
|
168
|
+
value.each do |k, v|
|
|
169
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
else # model
|
|
173
|
+
temp_model = RusticiSoftwareCloudV2.const_get(type).new
|
|
174
|
+
temp_model.build_from_hash(value)
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Returns the string representation of the object
|
|
179
|
+
# @return [String] String presentation of the object
|
|
180
|
+
def to_s
|
|
181
|
+
to_hash.to_s
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
|
186
|
+
def to_body
|
|
187
|
+
to_hash
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Returns the object in the form of hash
|
|
191
|
+
# @return [Hash] Returns the object in the form of hash
|
|
192
|
+
def to_hash
|
|
193
|
+
hash = {}
|
|
194
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
195
|
+
value = self.send(attr)
|
|
196
|
+
next if value.nil?
|
|
197
|
+
hash[param] = _to_hash(value)
|
|
198
|
+
end
|
|
199
|
+
hash
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Outputs non-array value in the form of hash
|
|
203
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
204
|
+
# @param [Object] value Any valid value
|
|
205
|
+
# @return [Hash] Returns the value in the form of hash
|
|
206
|
+
def _to_hash(value)
|
|
207
|
+
if value.is_a?(Array)
|
|
208
|
+
value.compact.map { |v| _to_hash(v) }
|
|
209
|
+
elsif value.is_a?(Hash)
|
|
210
|
+
{}.tap do |hash|
|
|
211
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
212
|
+
end
|
|
213
|
+
elsif value.respond_to? :to_hash
|
|
214
|
+
value.to_hash
|
|
215
|
+
else
|
|
216
|
+
value
|
|
217
|
+
end
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
end
|
|
221
|
+
end
|