Class: RusticiSoftwareCloudV2::ZoomiApi
- Inherits:
-
Object
- Object
- RusticiSoftwareCloudV2::ZoomiApi
- Extended by:
- Gem::Deprecate
- Defined in:
- lib/rustici_software_cloud_v2/api/zoomi_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#delete_application_zoomi_keys(opts = {}) ⇒ nil
Delete the Zoomi keys for an Application Deletes the Zoomi keys for an application.
-
#delete_application_zoomi_keys_with_http_info(opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete the Zoomi keys for an Application Deletes the Zoomi keys for an application.
-
#delete_zoomi_course(course_id, version_id, opts = {}) ⇒ nil
Delete the Course from Zoomi Deletes the course from Zoomi, but the course will remain in SCORM Cloud.
-
#delete_zoomi_course_with_http_info(course_id, version_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete the Course from Zoomi Deletes the course from Zoomi, but the course will remain in SCORM Cloud.
-
#get_application_zoomi_company_id(opts = {}) ⇒ StringResultSchema
Get the Zoomi company ID of an Application Returns the Zoomi company ID of an application.
-
#get_application_zoomi_company_id_with_http_info(opts = {}) ⇒ Array<(StringResultSchema, Fixnum, Hash)>
Get the Zoomi company ID of an Application Returns the Zoomi company ID of an application.
-
#get_application_zoomi_public_key(opts = {}) ⇒ StringResultSchema
Get the Zoomi public key for an Application Returns the Zoomi public key for an application.
-
#get_application_zoomi_public_key_with_http_info(opts = {}) ⇒ Array<(StringResultSchema, Fixnum, Hash)>
Get the Zoomi public key for an Application Returns the Zoomi public key for an application.
-
#get_course_zoomi_enabled(course_id, version_id, opts = {}) ⇒ EnabledSchema
Get the Zoomi enabled value of a Course Version Returns the Zoomi enabled value of a course version.
-
#get_course_zoomi_enabled_with_http_info(course_id, version_id, opts = {}) ⇒ Array<(EnabledSchema, Fixnum, Hash)>
Get the Zoomi enabled value of a Course Version Returns the Zoomi enabled value of a course version.
-
#get_zoomi_course_status(course_id, version_id, opts = {}) ⇒ StringResultSchema
Get the status for a Course from Zoomi Returns the status for a course and starts the upload process to Zoomi if not started.
-
#get_zoomi_course_status_with_http_info(course_id, version_id, opts = {}) ⇒ Array<(StringResultSchema, Fixnum, Hash)>
Get the status for a Course from Zoomi Returns the status for a course and starts the upload process to Zoomi if not started.
-
#import_course_version_to_zoomi(course_id, version_id, zoomi_course_options, opts = {}) ⇒ nil
Begin the import process with Zoomi Begins the import process with Zoomi.
-
#import_course_version_to_zoomi_with_http_info(course_id, version_id, zoomi_course_options, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Begin the import process with Zoomi Begins the import process with Zoomi.
-
#initialize(api_client = ApiClient.default) ⇒ ZoomiApi
constructor
A new instance of ZoomiApi.
-
#set_application_zoomi_company_id(zoomi_company_id, opts = {}) ⇒ nil
Set the Zoomi company ID of an Application Sets the Zoomi company ID value of an application.
-
#set_application_zoomi_company_id_with_http_info(zoomi_company_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Set the Zoomi company ID of an Application Sets the Zoomi company ID value of an application.
-
#set_course_zoomi_enabled(course_id, version_id, enabled, opts = {}) ⇒ nil
Set the Zoomi enabled value of a Course Version Sets the Zoomi enabled value of a course version.
-
#set_course_zoomi_enabled_with_http_info(course_id, version_id, enabled, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Set the Zoomi enabled value of a Course Version Sets the Zoomi enabled value of a course version.
Constructor Details
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
16 17 18 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 16 def api_client @api_client end |
Instance Method Details
#delete_application_zoomi_keys(opts = {}) ⇒ nil
Delete the Zoomi keys for an Application Deletes the Zoomi keys for an application.
28 29 30 31 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 28 def delete_application_zoomi_keys(opts = {}) delete_application_zoomi_keys_with_http_info(opts) nil end |
#delete_application_zoomi_keys_with_http_info(opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete the Zoomi keys for an Application Deletes the Zoomi keys for an application.
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 37 def delete_application_zoomi_keys_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ZoomiApi.delete_application_zoomi_keys ...' end # resource path local_var_path = '/zoomi/key' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ZoomiApi#delete_application_zoomi_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_zoomi_course(course_id, version_id, opts = {}) ⇒ nil
Delete the Course from Zoomi Deletes the course from Zoomi, but the course will remain in SCORM Cloud.
78 79 80 81 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 78 def delete_zoomi_course(course_id, version_id, opts = {}) delete_zoomi_course_with_http_info(course_id, version_id, opts) nil end |
#delete_zoomi_course_with_http_info(course_id, version_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete the Course from Zoomi Deletes the course from Zoomi, but the course will remain in SCORM Cloud.
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 89 def delete_zoomi_course_with_http_info(course_id, version_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ZoomiApi.delete_zoomi_course ...' end # verify the required parameter 'course_id' is set if course_id.nil? fail ArgumentError, "Missing the required parameter 'course_id' when calling ZoomiApi.delete_zoomi_course" end # verify the required parameter 'version_id' is set if version_id.nil? fail ArgumentError, "Missing the required parameter 'version_id' when calling ZoomiApi.delete_zoomi_course" end # resource path local_var_path = '/zoomi/course/{courseId}/version/{versionId}'.sub('{' + 'courseId' + '}', course_id.to_s).sub('{' + 'versionId' + '}', version_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ZoomiApi#delete_zoomi_course\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_application_zoomi_company_id(opts = {}) ⇒ StringResultSchema
Get the Zoomi company ID of an Application Returns the Zoomi company ID of an application.
136 137 138 139 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 136 def get_application_zoomi_company_id(opts = {}) data, _status_code, _headers = get_application_zoomi_company_id_with_http_info(opts) data end |
#get_application_zoomi_company_id_with_http_info(opts = {}) ⇒ Array<(StringResultSchema, Fixnum, Hash)>
Get the Zoomi company ID of an Application Returns the Zoomi company ID of an application.
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 145 def get_application_zoomi_company_id_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ZoomiApi.get_application_zoomi_company_id ...' end # resource path local_var_path = '/zoomi' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'StringResultSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: ZoomiApi#get_application_zoomi_company_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_application_zoomi_public_key(opts = {}) ⇒ StringResultSchema
Get the Zoomi public key for an Application Returns the Zoomi public key for an application.
185 186 187 188 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 185 def get_application_zoomi_public_key(opts = {}) data, _status_code, _headers = get_application_zoomi_public_key_with_http_info(opts) data end |
#get_application_zoomi_public_key_with_http_info(opts = {}) ⇒ Array<(StringResultSchema, Fixnum, Hash)>
Get the Zoomi public key for an Application Returns the Zoomi public key for an application.
194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 194 def get_application_zoomi_public_key_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ZoomiApi.get_application_zoomi_public_key ...' end # resource path local_var_path = '/zoomi/key' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'StringResultSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: ZoomiApi#get_application_zoomi_public_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_course_zoomi_enabled(course_id, version_id, opts = {}) ⇒ EnabledSchema
Get the Zoomi enabled value of a Course Version Returns the Zoomi enabled value of a course version.
236 237 238 239 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 236 def get_course_zoomi_enabled(course_id, version_id, opts = {}) data, _status_code, _headers = get_course_zoomi_enabled_with_http_info(course_id, version_id, opts) data end |
#get_course_zoomi_enabled_with_http_info(course_id, version_id, opts = {}) ⇒ Array<(EnabledSchema, Fixnum, Hash)>
Get the Zoomi enabled value of a Course Version Returns the Zoomi enabled value of a course version.
247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 247 def get_course_zoomi_enabled_with_http_info(course_id, version_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ZoomiApi.get_course_zoomi_enabled ...' end # verify the required parameter 'course_id' is set if course_id.nil? fail ArgumentError, "Missing the required parameter 'course_id' when calling ZoomiApi.get_course_zoomi_enabled" end # verify the required parameter 'version_id' is set if version_id.nil? fail ArgumentError, "Missing the required parameter 'version_id' when calling ZoomiApi.get_course_zoomi_enabled" end # resource path local_var_path = '/zoomi/course/{courseId}/version/{versionId}/enabled'.sub('{' + 'courseId' + '}', course_id.to_s).sub('{' + 'versionId' + '}', version_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'EnabledSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: ZoomiApi#get_course_zoomi_enabled\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_zoomi_course_status(course_id, version_id, opts = {}) ⇒ StringResultSchema
Get the status for a Course from Zoomi Returns the status for a course and starts the upload process to Zoomi if not started.
297 298 299 300 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 297 def get_zoomi_course_status(course_id, version_id, opts = {}) data, _status_code, _headers = get_zoomi_course_status_with_http_info(course_id, version_id, opts) data end |
#get_zoomi_course_status_with_http_info(course_id, version_id, opts = {}) ⇒ Array<(StringResultSchema, Fixnum, Hash)>
Get the status for a Course from Zoomi Returns the status for a course and starts the upload process to Zoomi if not started.
308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 308 def get_zoomi_course_status_with_http_info(course_id, version_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ZoomiApi.get_zoomi_course_status ...' end # verify the required parameter 'course_id' is set if course_id.nil? fail ArgumentError, "Missing the required parameter 'course_id' when calling ZoomiApi.get_zoomi_course_status" end # verify the required parameter 'version_id' is set if version_id.nil? fail ArgumentError, "Missing the required parameter 'version_id' when calling ZoomiApi.get_zoomi_course_status" end # resource path local_var_path = '/zoomi/course/{courseId}/version/{versionId}'.sub('{' + 'courseId' + '}', course_id.to_s).sub('{' + 'versionId' + '}', version_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'StringResultSchema') if @api_client.config.debugging @api_client.config.logger.debug "API called: ZoomiApi#get_zoomi_course_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#import_course_version_to_zoomi(course_id, version_id, zoomi_course_options, opts = {}) ⇒ nil
Begin the import process with Zoomi Begins the import process with Zoomi. Must be followed up by a status call.
359 360 361 362 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 359 def import_course_version_to_zoomi(course_id, version_id, , opts = {}) import_course_version_to_zoomi_with_http_info(course_id, version_id, , opts) nil end |
#import_course_version_to_zoomi_with_http_info(course_id, version_id, zoomi_course_options, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Begin the import process with Zoomi Begins the import process with Zoomi. Must be followed up by a status call.
371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 371 def import_course_version_to_zoomi_with_http_info(course_id, version_id, , opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ZoomiApi.import_course_version_to_zoomi ...' end # verify the required parameter 'course_id' is set if course_id.nil? fail ArgumentError, "Missing the required parameter 'course_id' when calling ZoomiApi.import_course_version_to_zoomi" end # verify the required parameter 'version_id' is set if version_id.nil? fail ArgumentError, "Missing the required parameter 'version_id' when calling ZoomiApi.import_course_version_to_zoomi" end # verify the required parameter 'zoomi_course_options' is set if .nil? fail ArgumentError, "Missing the required parameter 'zoomi_course_options' when calling ZoomiApi.import_course_version_to_zoomi" end # resource path local_var_path = '/zoomi/course/{courseId}/version/{versionId}/import'.sub('{' + 'courseId' + '}', course_id.to_s).sub('{' + 'versionId' + '}', version_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body() auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ZoomiApi#import_course_version_to_zoomi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#set_application_zoomi_company_id(zoomi_company_id, opts = {}) ⇒ nil
Set the Zoomi company ID of an Application Sets the Zoomi company ID value of an application.
423 424 425 426 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 423 def set_application_zoomi_company_id(zoomi_company_id, opts = {}) set_application_zoomi_company_id_with_http_info(zoomi_company_id, opts) nil end |
#set_application_zoomi_company_id_with_http_info(zoomi_company_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Set the Zoomi company ID of an Application Sets the Zoomi company ID value of an application.
433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 433 def set_application_zoomi_company_id_with_http_info(zoomi_company_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ZoomiApi.set_application_zoomi_company_id ...' end # verify the required parameter 'zoomi_company_id' is set if zoomi_company_id.nil? fail ArgumentError, "Missing the required parameter 'zoomi_company_id' when calling ZoomiApi.set_application_zoomi_company_id" end # resource path local_var_path = '/zoomi' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(zoomi_company_id) auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ZoomiApi#set_application_zoomi_company_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#set_course_zoomi_enabled(course_id, version_id, enabled, opts = {}) ⇒ nil
Set the Zoomi enabled value of a Course Version Sets the Zoomi enabled value of a course version.
479 480 481 482 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 479 def set_course_zoomi_enabled(course_id, version_id, enabled, opts = {}) set_course_zoomi_enabled_with_http_info(course_id, version_id, enabled, opts) nil end |
#set_course_zoomi_enabled_with_http_info(course_id, version_id, enabled, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Set the Zoomi enabled value of a Course Version Sets the Zoomi enabled value of a course version.
491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 491 def set_course_zoomi_enabled_with_http_info(course_id, version_id, enabled, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ZoomiApi.set_course_zoomi_enabled ...' end # verify the required parameter 'course_id' is set if course_id.nil? fail ArgumentError, "Missing the required parameter 'course_id' when calling ZoomiApi.set_course_zoomi_enabled" end # verify the required parameter 'version_id' is set if version_id.nil? fail ArgumentError, "Missing the required parameter 'version_id' when calling ZoomiApi.set_course_zoomi_enabled" end # verify the required parameter 'enabled' is set if enabled.nil? fail ArgumentError, "Missing the required parameter 'enabled' when calling ZoomiApi.set_course_zoomi_enabled" end # resource path local_var_path = '/zoomi/course/{courseId}/version/{versionId}/enabled'.sub('{' + 'courseId' + '}', course_id.to_s).sub('{' + 'versionId' + '}', version_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(enabled) auth_names = ['APP_NORMAL', 'OAUTH'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ZoomiApi#set_course_zoomi_enabled\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |