Class: Kaltura::KalturaScheduledTaskProfileService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaScheduledTaskProfileService
- Defined in:
- lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb
Overview
Schedule task service lets you create and manage scheduled task profiles
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#add(scheduled_task_profile) ⇒ KalturaScheduledTaskProfile
Add a new scheduled task profile.
-
#delete(id) ⇒ Object
Delete a scheduled task profile.
-
#get(id) ⇒ KalturaScheduledTaskProfile
Retrieve a scheduled task profile by id.
- #get_dry_run_results(request_id) ⇒ KalturaObjectListResponse
-
#initialize(client) ⇒ KalturaScheduledTaskProfileService
constructor
A new instance of KalturaScheduledTaskProfileService.
-
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaScheduledTaskProfileListResponse
List scheduled task profiles.
- #request_dry_run(scheduled_task_profile_id, max_results = 500) ⇒ int
-
#serve_dry_run_results(request_id) ⇒ file
Serves dry run results by its request id.
-
#update(id, scheduled_task_profile) ⇒ KalturaScheduledTaskProfile
Update an existing scheduled task profile.
Constructor Details
#initialize(client) ⇒ KalturaScheduledTaskProfileService
Returns a new instance of KalturaScheduledTaskProfileService.
566 567 568 |
# File 'lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb', line 566 def initialize(client) super(client) end |
Instance Method Details
#add(scheduled_task_profile) ⇒ KalturaScheduledTaskProfile
Add a new scheduled task profile
572 573 574 575 576 577 578 579 580 |
# File 'lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb', line 572 def add(scheduled_task_profile) kparams = {} client.add_param(kparams, 'scheduledTaskProfile', scheduled_task_profile) client.queue_service_action_call('scheduledtask_scheduledtaskprofile', 'add', 'KalturaScheduledTaskProfile', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#delete(id) ⇒ Object
Delete a scheduled task profile
584 585 586 587 588 589 590 591 592 |
# File 'lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb', line 584 def delete(id) kparams = {} client.add_param(kparams, 'id', id) client.queue_service_action_call('scheduledtask_scheduledtaskprofile', 'delete', '', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#get(id) ⇒ KalturaScheduledTaskProfile
Retrieve a scheduled task profile by id
596 597 598 599 600 601 602 603 604 |
# File 'lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb', line 596 def get(id) kparams = {} client.add_param(kparams, 'id', id) client.queue_service_action_call('scheduledtask_scheduledtaskprofile', 'get', 'KalturaScheduledTaskProfile', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#get_dry_run_results(request_id) ⇒ KalturaObjectListResponse
607 608 609 610 611 612 613 614 615 |
# File 'lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb', line 607 def get_dry_run_results(request_id) kparams = {} client.add_param(kparams, 'requestId', request_id) client.queue_service_action_call('scheduledtask_scheduledtaskprofile', 'getDryRunResults', 'KalturaObjectListResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaScheduledTaskProfileListResponse
List scheduled task profiles
619 620 621 622 623 624 625 626 627 628 |
# File 'lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb', line 619 def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'filter', filter) client.add_param(kparams, 'pager', pager) client.queue_service_action_call('scheduledtask_scheduledtaskprofile', 'list', 'KalturaScheduledTaskProfileListResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#request_dry_run(scheduled_task_profile_id, max_results = 500) ⇒ int
631 632 633 634 635 636 637 638 639 640 |
# File 'lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb', line 631 def request_dry_run(scheduled_task_profile_id, max_results=500) kparams = {} client.add_param(kparams, 'scheduledTaskProfileId', scheduled_task_profile_id) client.add_param(kparams, 'maxResults', max_results) client.queue_service_action_call('scheduledtask_scheduledtaskprofile', 'requestDryRun', 'int', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#serve_dry_run_results(request_id) ⇒ file
Serves dry run results by its request id
644 645 646 647 648 649 |
# File 'lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb', line 644 def serve_dry_run_results(request_id) kparams = {} client.add_param(kparams, 'requestId', request_id) client.queue_service_action_call('scheduledtask_scheduledtaskprofile', 'serveDryRunResults', 'file', kparams) return client.get_serve_url() end |
#update(id, scheduled_task_profile) ⇒ KalturaScheduledTaskProfile
Update an existing scheduled task profile
653 654 655 656 657 658 659 660 661 662 |
# File 'lib/kaltura_plugins/kaltura_scheduled_task_client_plugin.rb', line 653 def update(id, scheduled_task_profile) kparams = {} client.add_param(kparams, 'id', id) client.add_param(kparams, 'scheduledTaskProfile', scheduled_task_profile) client.queue_service_action_call('scheduledtask_scheduledtaskprofile', 'update', 'KalturaScheduledTaskProfile', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |