Class: RusticiSoftwareCloudV2::ZoomiApi
- Inherits:
-
Object
- Object
- RusticiSoftwareCloudV2::ZoomiApi
- 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 keys for an application.
-
#delete_application_zoomi_keys_with_http_info(opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete the keys for an application.
-
#delete_zoomi_course(course_id, version_id, opts = {}) ⇒ nil
Deletes the course in zoomi Deletes the course in zoomi.
-
#delete_zoomi_course_with_http_info(course_id, version_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Deletes the course in zoomi Deletes the course in zoomi.
-
#get_application_zoomi_company_id(opts = {}) ⇒ StringResultSchema
Gets the zoomi company id of an application.
-
#get_application_zoomi_company_id_with_http_info(opts = {}) ⇒ Array<(StringResultSchema, Fixnum, Hash)>
Gets the zoomi company id of an application.
-
#get_application_zoomi_public_key(opts = {}) ⇒ StringResultSchema
Gets the public key for an application.
-
#get_application_zoomi_public_key_with_http_info(opts = {}) ⇒ Array<(StringResultSchema, Fixnum, Hash)>
Gets the public key for an application.
-
#get_course_zoomi_enabled(course_id, version_id, opts = {}) ⇒ EnabledSchema
Gets the zoomi enabled value of a course Gets the zoomi enabled value of a course.
-
#get_course_zoomi_enabled_with_http_info(course_id, version_id, opts = {}) ⇒ Array<(EnabledSchema, Fixnum, Hash)>
Gets the zoomi enabled value of a course Gets the zoomi enabled value of a course.
-
#get_zoomi_course_status(course_id, version_id, opts = {}) ⇒ StringResultSchema
Gets the status for a course and imports to Zoomi Gets the status for a course and imports to Zoomi.
-
#get_zoomi_course_status_with_http_info(course_id, version_id, opts = {}) ⇒ Array<(StringResultSchema, Fixnum, Hash)>
Gets the status for a course and imports to Zoomi Gets the status for a course and imports to 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 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 value of an application.
-
#set_course_zoomi_enabled(course_id, version_id, opts = {}) ⇒ nil
Set the zoomi enabled value of a course.
-
#set_course_zoomi_enabled_with_http_info(course_id, version_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Set the zoomi enabled value of a course.
Constructor Details
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#delete_application_zoomi_keys(opts = {}) ⇒ nil
Delete the keys for an application. Delete the keys for an application.
26 27 28 29 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 26 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 keys for an application. Delete the keys for an application.
35 36 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 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 35 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
Deletes the course in zoomi Deletes the course in zoomi
75 76 77 78 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 75 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)>
Deletes the course in zoomi Deletes the course in zoomi
86 87 88 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 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 86 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 @api_client.config.client_side_validation && 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 @api_client.config.client_side_validation && 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
Gets the zoomi company id of an application. Gets the zoomi company id of an application.
132 133 134 135 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 132 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)>
Gets the zoomi company id of an application. Gets the zoomi company id of an application.
141 142 143 144 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 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 141 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
Gets the public key for an application. Gets the public key for an application.
180 181 182 183 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 180 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)>
Gets the public key for an application. Gets the public key for an application.
189 190 191 192 193 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 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 189 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
Gets the zoomi enabled value of a course Gets the zoomi enabled value of a course
230 231 232 233 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 230 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)>
Gets the zoomi enabled value of a course Gets the zoomi enabled value of a course
241 242 243 244 245 246 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 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 241 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 @api_client.config.client_side_validation && 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 @api_client.config.client_side_validation && 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
Gets the status for a course and imports to Zoomi Gets the status for a course and imports to Zoomi
290 291 292 293 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 290 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)>
Gets the status for a course and imports to Zoomi Gets the status for a course and imports to Zoomi
301 302 303 304 305 306 307 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 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 301 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 @api_client.config.client_side_validation && 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 @api_client.config.client_side_validation && 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 |
#set_application_zoomi_company_id(zoomi_company_id, opts = {}) ⇒ nil
Set the zoomi company id value of an application. Set the zoomi company id value of an application.
349 350 351 352 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 349 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 value of an application. Set the zoomi company id value of an application.
359 360 361 362 363 364 365 366 367 368 369 370 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 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 359 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 @api_client.config.client_side_validation && 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, opts = {}) ⇒ nil
Set the zoomi enabled value of a course. Set the zoomi enabled value of a course.
404 405 406 407 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 404 def set_course_zoomi_enabled(course_id, version_id, opts = {}) set_course_zoomi_enabled_with_http_info(course_id, version_id, opts) nil end |
#set_course_zoomi_enabled_with_http_info(course_id, version_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Set the zoomi enabled value of a course. Set the zoomi enabled value of a course.
416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 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 |
# File 'lib/rustici_software_cloud_v2/api/zoomi_api.rb', line 416 def set_course_zoomi_enabled_with_http_info(course_id, version_id, 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 @api_client.config.client_side_validation && 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 @api_client.config.client_side_validation && version_id.nil? fail ArgumentError, "Missing the required parameter 'version_id' 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(opts[:'zoomi_course_options']) 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 |