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
|
|
@@ -19,8 +19,8 @@ module RusticiSoftwareCloudV2
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
-
# Delete the keys for an
|
23
|
-
#
|
22
|
+
# Delete the Zoomi keys for an Application
|
23
|
+
# Deletes the Zoomi keys for an application.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @return [nil]
|
26
26
|
def delete_application_zoomi_keys(opts = {})
|
@@ -28,8 +28,8 @@ module RusticiSoftwareCloudV2
|
|
28
28
|
nil
|
29
29
|
end
|
30
30
|
|
31
|
-
# Delete the keys for an
|
32
|
-
#
|
31
|
+
# Delete the Zoomi keys for an Application
|
32
|
+
# Deletes the Zoomi keys for an application.
|
33
33
|
# @param [Hash] opts the optional parameters
|
34
34
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
35
35
|
def delete_application_zoomi_keys_with_http_info(opts = {})
|
@@ -66,10 +66,10 @@ module RusticiSoftwareCloudV2
|
|
66
66
|
end
|
67
67
|
return data, status_code, headers
|
68
68
|
end
|
69
|
-
#
|
70
|
-
# Deletes the course in
|
69
|
+
# Delete the Course from Zoomi
|
70
|
+
# Deletes the course from Zoomi, but the course will remain in SCORM Cloud.
|
71
71
|
# @param course_id
|
72
|
-
# @param version_id
|
72
|
+
# @param version_id
|
73
73
|
# @param [Hash] opts the optional parameters
|
74
74
|
# @return [nil]
|
75
75
|
def delete_zoomi_course(course_id, version_id, opts = {})
|
@@ -77,10 +77,10 @@ module RusticiSoftwareCloudV2
|
|
77
77
|
nil
|
78
78
|
end
|
79
79
|
|
80
|
-
#
|
81
|
-
# Deletes the course in
|
80
|
+
# Delete the Course from Zoomi
|
81
|
+
# Deletes the course from Zoomi, but the course will remain in SCORM Cloud.
|
82
82
|
# @param course_id
|
83
|
-
# @param version_id
|
83
|
+
# @param version_id
|
84
84
|
# @param [Hash] opts the optional parameters
|
85
85
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
86
86
|
def delete_zoomi_course_with_http_info(course_id, version_id, opts = {})
|
@@ -88,11 +88,11 @@ module RusticiSoftwareCloudV2
|
|
88
88
|
@api_client.config.logger.debug 'Calling API: ZoomiApi.delete_zoomi_course ...'
|
89
89
|
end
|
90
90
|
# verify the required parameter 'course_id' is set
|
91
|
-
if
|
91
|
+
if course_id.nil?
|
92
92
|
fail ArgumentError, "Missing the required parameter 'course_id' when calling ZoomiApi.delete_zoomi_course"
|
93
93
|
end
|
94
94
|
# verify the required parameter 'version_id' is set
|
95
|
-
if
|
95
|
+
if version_id.nil?
|
96
96
|
fail ArgumentError, "Missing the required parameter 'version_id' when calling ZoomiApi.delete_zoomi_course"
|
97
97
|
end
|
98
98
|
# resource path
|
@@ -125,8 +125,8 @@ module RusticiSoftwareCloudV2
|
|
125
125
|
end
|
126
126
|
return data, status_code, headers
|
127
127
|
end
|
128
|
-
#
|
129
|
-
#
|
128
|
+
# Get the Zoomi company ID of an Application
|
129
|
+
# Returns the Zoomi company ID of an application.
|
130
130
|
# @param [Hash] opts the optional parameters
|
131
131
|
# @return [StringResultSchema]
|
132
132
|
def get_application_zoomi_company_id(opts = {})
|
@@ -134,8 +134,8 @@ module RusticiSoftwareCloudV2
|
|
134
134
|
data
|
135
135
|
end
|
136
136
|
|
137
|
-
#
|
138
|
-
#
|
137
|
+
# Get the Zoomi company ID of an Application
|
138
|
+
# Returns the Zoomi company ID of an application.
|
139
139
|
# @param [Hash] opts the optional parameters
|
140
140
|
# @return [Array<(StringResultSchema, Fixnum, Hash)>] StringResultSchema data, response status code and response headers
|
141
141
|
def get_application_zoomi_company_id_with_http_info(opts = {})
|
@@ -173,8 +173,8 @@ module RusticiSoftwareCloudV2
|
|
173
173
|
end
|
174
174
|
return data, status_code, headers
|
175
175
|
end
|
176
|
-
#
|
177
|
-
#
|
176
|
+
# Get the Zoomi public key for an Application
|
177
|
+
# Returns the Zoomi public key for an application.
|
178
178
|
# @param [Hash] opts the optional parameters
|
179
179
|
# @return [StringResultSchema]
|
180
180
|
def get_application_zoomi_public_key(opts = {})
|
@@ -182,8 +182,8 @@ module RusticiSoftwareCloudV2
|
|
182
182
|
data
|
183
183
|
end
|
184
184
|
|
185
|
-
#
|
186
|
-
#
|
185
|
+
# Get the Zoomi public key for an Application
|
186
|
+
# Returns the Zoomi public key for an application.
|
187
187
|
# @param [Hash] opts the optional parameters
|
188
188
|
# @return [Array<(StringResultSchema, Fixnum, Hash)>] StringResultSchema data, response status code and response headers
|
189
189
|
def get_application_zoomi_public_key_with_http_info(opts = {})
|
@@ -221,10 +221,10 @@ module RusticiSoftwareCloudV2
|
|
221
221
|
end
|
222
222
|
return data, status_code, headers
|
223
223
|
end
|
224
|
-
#
|
225
|
-
#
|
224
|
+
# Get the Zoomi enabled value of a Course Version
|
225
|
+
# Returns the Zoomi enabled value of a course version.
|
226
226
|
# @param course_id
|
227
|
-
# @param version_id
|
227
|
+
# @param version_id
|
228
228
|
# @param [Hash] opts the optional parameters
|
229
229
|
# @return [EnabledSchema]
|
230
230
|
def get_course_zoomi_enabled(course_id, version_id, opts = {})
|
@@ -232,10 +232,10 @@ module RusticiSoftwareCloudV2
|
|
232
232
|
data
|
233
233
|
end
|
234
234
|
|
235
|
-
#
|
236
|
-
#
|
235
|
+
# Get the Zoomi enabled value of a Course Version
|
236
|
+
# Returns the Zoomi enabled value of a course version.
|
237
237
|
# @param course_id
|
238
|
-
# @param version_id
|
238
|
+
# @param version_id
|
239
239
|
# @param [Hash] opts the optional parameters
|
240
240
|
# @return [Array<(EnabledSchema, Fixnum, Hash)>] EnabledSchema data, response status code and response headers
|
241
241
|
def get_course_zoomi_enabled_with_http_info(course_id, version_id, opts = {})
|
@@ -243,11 +243,11 @@ module RusticiSoftwareCloudV2
|
|
243
243
|
@api_client.config.logger.debug 'Calling API: ZoomiApi.get_course_zoomi_enabled ...'
|
244
244
|
end
|
245
245
|
# verify the required parameter 'course_id' is set
|
246
|
-
if
|
246
|
+
if course_id.nil?
|
247
247
|
fail ArgumentError, "Missing the required parameter 'course_id' when calling ZoomiApi.get_course_zoomi_enabled"
|
248
248
|
end
|
249
249
|
# verify the required parameter 'version_id' is set
|
250
|
-
if
|
250
|
+
if version_id.nil?
|
251
251
|
fail ArgumentError, "Missing the required parameter 'version_id' when calling ZoomiApi.get_course_zoomi_enabled"
|
252
252
|
end
|
253
253
|
# resource path
|
@@ -281,10 +281,10 @@ module RusticiSoftwareCloudV2
|
|
281
281
|
end
|
282
282
|
return data, status_code, headers
|
283
283
|
end
|
284
|
-
#
|
285
|
-
#
|
284
|
+
# Get the status for a Course from Zoomi
|
285
|
+
# Returns the status for a course and starts the upload process to Zoomi if not started.
|
286
286
|
# @param course_id
|
287
|
-
# @param version_id
|
287
|
+
# @param version_id
|
288
288
|
# @param [Hash] opts the optional parameters
|
289
289
|
# @return [StringResultSchema]
|
290
290
|
def get_zoomi_course_status(course_id, version_id, opts = {})
|
@@ -292,10 +292,10 @@ module RusticiSoftwareCloudV2
|
|
292
292
|
data
|
293
293
|
end
|
294
294
|
|
295
|
-
#
|
296
|
-
#
|
295
|
+
# Get the status for a Course from Zoomi
|
296
|
+
# Returns the status for a course and starts the upload process to Zoomi if not started.
|
297
297
|
# @param course_id
|
298
|
-
# @param version_id
|
298
|
+
# @param version_id
|
299
299
|
# @param [Hash] opts the optional parameters
|
300
300
|
# @return [Array<(StringResultSchema, Fixnum, Hash)>] StringResultSchema data, response status code and response headers
|
301
301
|
def get_zoomi_course_status_with_http_info(course_id, version_id, opts = {})
|
@@ -303,11 +303,11 @@ module RusticiSoftwareCloudV2
|
|
303
303
|
@api_client.config.logger.debug 'Calling API: ZoomiApi.get_zoomi_course_status ...'
|
304
304
|
end
|
305
305
|
# verify the required parameter 'course_id' is set
|
306
|
-
if
|
306
|
+
if course_id.nil?
|
307
307
|
fail ArgumentError, "Missing the required parameter 'course_id' when calling ZoomiApi.get_zoomi_course_status"
|
308
308
|
end
|
309
309
|
# verify the required parameter 'version_id' is set
|
310
|
-
if
|
310
|
+
if version_id.nil?
|
311
311
|
fail ArgumentError, "Missing the required parameter 'version_id' when calling ZoomiApi.get_zoomi_course_status"
|
312
312
|
end
|
313
313
|
# resource path
|
@@ -341,8 +341,73 @@ module RusticiSoftwareCloudV2
|
|
341
341
|
end
|
342
342
|
return data, status_code, headers
|
343
343
|
end
|
344
|
-
#
|
345
|
-
#
|
344
|
+
# Begin the import process with Zoomi
|
345
|
+
# Begins the import process with Zoomi. Must be followed up by a status call.
|
346
|
+
# @param course_id
|
347
|
+
# @param version_id
|
348
|
+
# @param zoomi_course_options
|
349
|
+
# @param [Hash] opts the optional parameters
|
350
|
+
# @return [nil]
|
351
|
+
def import_course_version_to_zoomi(course_id, version_id, zoomi_course_options, opts = {})
|
352
|
+
import_course_version_to_zoomi_with_http_info(course_id, version_id, zoomi_course_options, opts)
|
353
|
+
nil
|
354
|
+
end
|
355
|
+
|
356
|
+
# Begin the import process with Zoomi
|
357
|
+
# Begins the import process with Zoomi. Must be followed up by a status call.
|
358
|
+
# @param course_id
|
359
|
+
# @param version_id
|
360
|
+
# @param zoomi_course_options
|
361
|
+
# @param [Hash] opts the optional parameters
|
362
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
363
|
+
def import_course_version_to_zoomi_with_http_info(course_id, version_id, zoomi_course_options, opts = {})
|
364
|
+
if @api_client.config.debugging
|
365
|
+
@api_client.config.logger.debug 'Calling API: ZoomiApi.import_course_version_to_zoomi ...'
|
366
|
+
end
|
367
|
+
# verify the required parameter 'course_id' is set
|
368
|
+
if course_id.nil?
|
369
|
+
fail ArgumentError, "Missing the required parameter 'course_id' when calling ZoomiApi.import_course_version_to_zoomi"
|
370
|
+
end
|
371
|
+
# verify the required parameter 'version_id' is set
|
372
|
+
if version_id.nil?
|
373
|
+
fail ArgumentError, "Missing the required parameter 'version_id' when calling ZoomiApi.import_course_version_to_zoomi"
|
374
|
+
end
|
375
|
+
# verify the required parameter 'zoomi_course_options' is set
|
376
|
+
if zoomi_course_options.nil?
|
377
|
+
fail ArgumentError, "Missing the required parameter 'zoomi_course_options' when calling ZoomiApi.import_course_version_to_zoomi"
|
378
|
+
end
|
379
|
+
# resource path
|
380
|
+
local_var_path = '/zoomi/course/{courseId}/version/{versionId}/import'.sub('{' + 'courseId' + '}', course_id.to_s).sub('{' + 'versionId' + '}', version_id.to_s)
|
381
|
+
|
382
|
+
# query parameters
|
383
|
+
query_params = {}
|
384
|
+
|
385
|
+
# header parameters
|
386
|
+
header_params = {}
|
387
|
+
# HTTP header 'Accept' (if needed)
|
388
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
389
|
+
# HTTP header 'Content-Type'
|
390
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
391
|
+
|
392
|
+
# form parameters
|
393
|
+
form_params = {}
|
394
|
+
|
395
|
+
# http body (model)
|
396
|
+
post_body = @api_client.object_to_http_body(zoomi_course_options)
|
397
|
+
auth_names = ['APP_NORMAL', 'OAUTH']
|
398
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
399
|
+
:header_params => header_params,
|
400
|
+
:query_params => query_params,
|
401
|
+
:form_params => form_params,
|
402
|
+
:body => post_body,
|
403
|
+
:auth_names => auth_names)
|
404
|
+
if @api_client.config.debugging
|
405
|
+
@api_client.config.logger.debug "API called: ZoomiApi#import_course_version_to_zoomi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
406
|
+
end
|
407
|
+
return data, status_code, headers
|
408
|
+
end
|
409
|
+
# Set the Zoomi company ID of an Application
|
410
|
+
# Sets the Zoomi company ID value of an application.
|
346
411
|
# @param zoomi_company_id
|
347
412
|
# @param [Hash] opts the optional parameters
|
348
413
|
# @return [nil]
|
@@ -351,8 +416,8 @@ module RusticiSoftwareCloudV2
|
|
351
416
|
nil
|
352
417
|
end
|
353
418
|
|
354
|
-
# Set the
|
355
|
-
#
|
419
|
+
# Set the Zoomi company ID of an Application
|
420
|
+
# Sets the Zoomi company ID value of an application.
|
356
421
|
# @param zoomi_company_id
|
357
422
|
# @param [Hash] opts the optional parameters
|
358
423
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
@@ -361,7 +426,7 @@ module RusticiSoftwareCloudV2
|
|
361
426
|
@api_client.config.logger.debug 'Calling API: ZoomiApi.set_application_zoomi_company_id ...'
|
362
427
|
end
|
363
428
|
# verify the required parameter 'zoomi_company_id' is set
|
364
|
-
if
|
429
|
+
if zoomi_company_id.nil?
|
365
430
|
fail ArgumentError, "Missing the required parameter 'zoomi_company_id' when calling ZoomiApi.set_application_zoomi_company_id"
|
366
431
|
end
|
367
432
|
# resource path
|
@@ -394,37 +459,41 @@ module RusticiSoftwareCloudV2
|
|
394
459
|
end
|
395
460
|
return data, status_code, headers
|
396
461
|
end
|
397
|
-
# Set the
|
398
|
-
#
|
462
|
+
# Set the Zoomi enabled value of a Course Version
|
463
|
+
# Sets the Zoomi enabled value of a course version.
|
399
464
|
# @param course_id
|
400
|
-
# @param version_id
|
465
|
+
# @param version_id
|
466
|
+
# @param enabled
|
401
467
|
# @param [Hash] opts the optional parameters
|
402
|
-
# @option opts [ZoomiCourseOptionsSchema] :zoomi_course_options
|
403
468
|
# @return [nil]
|
404
|
-
def set_course_zoomi_enabled(course_id, version_id, opts = {})
|
405
|
-
set_course_zoomi_enabled_with_http_info(course_id, version_id, opts)
|
469
|
+
def set_course_zoomi_enabled(course_id, version_id, enabled, opts = {})
|
470
|
+
set_course_zoomi_enabled_with_http_info(course_id, version_id, enabled, opts)
|
406
471
|
nil
|
407
472
|
end
|
408
473
|
|
409
|
-
# Set the
|
410
|
-
#
|
474
|
+
# Set the Zoomi enabled value of a Course Version
|
475
|
+
# Sets the Zoomi enabled value of a course version.
|
411
476
|
# @param course_id
|
412
|
-
# @param version_id
|
477
|
+
# @param version_id
|
478
|
+
# @param enabled
|
413
479
|
# @param [Hash] opts the optional parameters
|
414
|
-
# @option opts [ZoomiCourseOptionsSchema] :zoomi_course_options
|
415
480
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
416
|
-
def set_course_zoomi_enabled_with_http_info(course_id, version_id, opts = {})
|
481
|
+
def set_course_zoomi_enabled_with_http_info(course_id, version_id, enabled, opts = {})
|
417
482
|
if @api_client.config.debugging
|
418
483
|
@api_client.config.logger.debug 'Calling API: ZoomiApi.set_course_zoomi_enabled ...'
|
419
484
|
end
|
420
485
|
# verify the required parameter 'course_id' is set
|
421
|
-
if
|
486
|
+
if course_id.nil?
|
422
487
|
fail ArgumentError, "Missing the required parameter 'course_id' when calling ZoomiApi.set_course_zoomi_enabled"
|
423
488
|
end
|
424
489
|
# verify the required parameter 'version_id' is set
|
425
|
-
if
|
490
|
+
if version_id.nil?
|
426
491
|
fail ArgumentError, "Missing the required parameter 'version_id' when calling ZoomiApi.set_course_zoomi_enabled"
|
427
492
|
end
|
493
|
+
# verify the required parameter 'enabled' is set
|
494
|
+
if enabled.nil?
|
495
|
+
fail ArgumentError, "Missing the required parameter 'enabled' when calling ZoomiApi.set_course_zoomi_enabled"
|
496
|
+
end
|
428
497
|
# resource path
|
429
498
|
local_var_path = '/zoomi/course/{courseId}/version/{versionId}/enabled'.sub('{' + 'courseId' + '}', course_id.to_s).sub('{' + 'versionId' + '}', version_id.to_s)
|
430
499
|
|
@@ -442,7 +511,7 @@ module RusticiSoftwareCloudV2
|
|
442
511
|
form_params = {}
|
443
512
|
|
444
513
|
# http body (model)
|
445
|
-
post_body = @api_client.object_to_http_body(
|
514
|
+
post_body = @api_client.object_to_http_body(enabled)
|
446
515
|
auth_names = ['APP_NORMAL', 'OAUTH']
|
447
516
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
448
517
|
:header_params => header_params,
|
@@ -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
|
|
@@ -15,7 +15,7 @@ require 'json'
|
|
15
15
|
require 'logger'
|
16
16
|
require 'tempfile'
|
17
17
|
require 'typhoeus'
|
18
|
-
require 'uri'
|
18
|
+
require 'addressable/uri'
|
19
19
|
|
20
20
|
module RusticiSoftwareCloudV2
|
21
21
|
class ApiClient
|
@@ -264,7 +264,7 @@ module RusticiSoftwareCloudV2
|
|
264
264
|
def build_request_url(path)
|
265
265
|
# Add leading and trailing slashes to path
|
266
266
|
path = "/#{path}".gsub(/\/+/, '/')
|
267
|
-
URI.encode(@config.base_url + path)
|
267
|
+
Addressable::URI.encode(@config.base_url + path)
|
268
268
|
end
|
269
269
|
|
270
270
|
# Builds the HTTP request body
|
@@ -6,11 +6,11 @@
|
|
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
|
|
13
|
-
require 'uri'
|
13
|
+
require 'addressable/uri'
|
14
14
|
|
15
15
|
module RusticiSoftwareCloudV2
|
16
16
|
class Configuration
|
@@ -175,7 +175,7 @@ module RusticiSoftwareCloudV2
|
|
175
175
|
|
176
176
|
def base_url
|
177
177
|
url = "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
|
178
|
-
URI.encode(url)
|
178
|
+
Addressable::URI.encode(url)
|
179
179
|
end
|
180
180
|
|
181
181
|
# Gets API key (with prefix if set).
|
@@ -222,7 +222,14 @@ module RusticiSoftwareCloudV2
|
|
222
222
|
key: 'Authorization',
|
223
223
|
value: oauth2_token
|
224
224
|
},
|
225
|
+
'UNSECURED' =>
|
226
|
+
{
|
227
|
+
type: 'basic',
|
228
|
+
in: 'header',
|
229
|
+
key: 'Authorization',
|
230
|
+
value: basic_auth_token
|
231
|
+
},
|
225
232
|
}
|
226
233
|
end
|
227
234
|
end
|
228
|
-
end
|
235
|
+
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
|
|
@@ -40,28 +40,6 @@ module RusticiSoftwareCloudV2
|
|
40
40
|
|
41
41
|
attr_accessor :runtime
|
42
42
|
|
43
|
-
class EnumAttributeValidator
|
44
|
-
attr_reader :datatype
|
45
|
-
attr_reader :allowable_values
|
46
|
-
|
47
|
-
def initialize(datatype, allowable_values)
|
48
|
-
@allowable_values = allowable_values.map do |value|
|
49
|
-
case datatype.to_s
|
50
|
-
when /Integer/i
|
51
|
-
value.to_i
|
52
|
-
when /Float/i
|
53
|
-
value.to_f
|
54
|
-
else
|
55
|
-
value
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
|
-
def valid?(value)
|
61
|
-
!value || allowable_values.include?(value)
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
66
44
|
def self.attribute_map
|
67
45
|
{
|
@@ -175,30 +153,23 @@ module RusticiSoftwareCloudV2
|
|
175
153
|
# Check to see if the all the properties in the model are valid
|
176
154
|
# @return true if the model is valid
|
177
155
|
def valid?
|
178
|
-
activity_completion_validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'COMPLETED', 'INCOMPLETE'])
|
179
|
-
return false unless activity_completion_validator.valid?(@activity_completion)
|
180
|
-
activity_success_validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
|
181
|
-
return false unless activity_success_validator.valid?(@activity_success)
|
182
156
|
true
|
183
157
|
end
|
184
158
|
|
185
159
|
# Custom attribute writer method checking allowed values (enum).
|
160
|
+
#
|
161
|
+
# allowable_values = ['UNKNOWN', 'COMPLETED', 'INCOMPLETE']
|
162
|
+
#
|
186
163
|
# @param [Object] activity_completion Object to be assigned
|
187
164
|
def activity_completion=(activity_completion)
|
188
|
-
validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'COMPLETED', 'INCOMPLETE'])
|
189
|
-
unless validator.valid?(activity_completion)
|
190
|
-
fail ArgumentError, 'invalid value for "activity_completion", must be one of #{validator.allowable_values}.'
|
191
|
-
end
|
192
165
|
@activity_completion = activity_completion
|
193
166
|
end
|
194
|
-
|
195
167
|
# Custom attribute writer method checking allowed values (enum).
|
168
|
+
#
|
169
|
+
# allowable_values = ['UNKNOWN', 'PASSED', 'FAILED']
|
170
|
+
#
|
196
171
|
# @param [Object] activity_success Object to be assigned
|
197
172
|
def activity_success=(activity_success)
|
198
|
-
validator = EnumAttributeValidator.new('String', ['UNKNOWN', 'PASSED', 'FAILED'])
|
199
|
-
unless validator.valid?(activity_success)
|
200
|
-
fail ArgumentError, 'invalid value for "activity_success", must be one of #{validator.allowable_values}.'
|
201
|
-
end
|
202
173
|
@activity_success = activity_success
|
203
174
|
end
|
204
175
|
|
@@ -241,7 +212,7 @@ module RusticiSoftwareCloudV2
|
|
241
212
|
return nil unless attributes.is_a?(Hash)
|
242
213
|
self.class.swagger_types.each_pair do |key, type|
|
243
214
|
if type =~ /\AArray<(.*)>/i
|
244
|
-
# check to ensure the input is an array given that the
|
215
|
+
# check to ensure the input is an array given that the attribute
|
245
216
|
# is documented as an array but the input is not
|
246
217
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
247
218
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
@@ -337,5 +308,6 @@ module RusticiSoftwareCloudV2
|
|
337
308
|
value
|
338
309
|
end
|
339
310
|
end
|
311
|
+
|
340
312
|
end
|
341
313
|
end
|