Class: Kaltura::KalturaVendorIntegrationService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaVendorIntegrationService
- Defined in:
- lib/kaltura_plugins/kaltura_vendor_client_plugin.rb
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#add(integration, remote_id) ⇒ KalturaIntegrationSetting
Add new integration setting object.
-
#delete(integration_id) ⇒ KalturaIntegrationSetting
Delete integration object by ID.
-
#get(integration_id) ⇒ KalturaIntegrationSetting
Retrieve integration setting object by ID.
-
#initialize(client) ⇒ KalturaVendorIntegrationService
constructor
A new instance of KalturaVendorIntegrationService.
-
#update(id, integration_setting) ⇒ KalturaIntegrationSetting
Update an existing vedor catalog item object.
-
#update_status(id, status) ⇒ KalturaIntegrationSetting
Update vendor catalog item status by id.
Constructor Details
#initialize(client) ⇒ KalturaVendorIntegrationService
Returns a new instance of KalturaVendorIntegrationService.
333 334 335 |
# File 'lib/kaltura_plugins/kaltura_vendor_client_plugin.rb', line 333 def initialize(client) super(client) end |
Instance Method Details
#add(integration, remote_id) ⇒ KalturaIntegrationSetting
Add new integration setting object
339 340 341 342 343 344 345 346 347 348 |
# File 'lib/kaltura_plugins/kaltura_vendor_client_plugin.rb', line 339 def add(integration, remote_id) kparams = {} client.add_param(kparams, 'integration', integration) client.add_param(kparams, 'remoteId', remote_id) client.queue_service_action_call('vendor_vendorintegration', 'add', 'KalturaIntegrationSetting', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#delete(integration_id) ⇒ KalturaIntegrationSetting
Delete integration object by ID
352 353 354 355 356 357 358 359 360 |
# File 'lib/kaltura_plugins/kaltura_vendor_client_plugin.rb', line 352 def delete(integration_id) kparams = {} client.add_param(kparams, 'integrationId', integration_id) client.queue_service_action_call('vendor_vendorintegration', 'delete', 'KalturaIntegrationSetting', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#get(integration_id) ⇒ KalturaIntegrationSetting
Retrieve integration setting object by ID
364 365 366 367 368 369 370 371 372 |
# File 'lib/kaltura_plugins/kaltura_vendor_client_plugin.rb', line 364 def get(integration_id) kparams = {} client.add_param(kparams, 'integrationId', integration_id) client.queue_service_action_call('vendor_vendorintegration', 'get', 'KalturaIntegrationSetting', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#update(id, integration_setting) ⇒ KalturaIntegrationSetting
Update an existing vedor catalog item object
376 377 378 379 380 381 382 383 384 385 |
# File 'lib/kaltura_plugins/kaltura_vendor_client_plugin.rb', line 376 def update(id, integration_setting) kparams = {} client.add_param(kparams, 'id', id) client.add_param(kparams, 'integrationSetting', integration_setting) client.queue_service_action_call('vendor_vendorintegration', 'update', 'KalturaIntegrationSetting', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#update_status(id, status) ⇒ KalturaIntegrationSetting
Update vendor catalog item status by id
389 390 391 392 393 394 395 396 397 398 |
# File 'lib/kaltura_plugins/kaltura_vendor_client_plugin.rb', line 389 def update_status(id, status) kparams = {} client.add_param(kparams, 'id', id) client.add_param(kparams, 'status', status) client.queue_service_action_call('vendor_vendorintegration', 'updateStatus', 'KalturaIntegrationSetting', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |