Class: Kaltura::KalturaGenericDistributionProviderActionService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaGenericDistributionProviderActionService
- Defined in:
- lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb
Overview
Generic Distribution Provider Actions service
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#add(generic_distribution_provider_action) ⇒ Object
Add new Generic Distribution Provider Action.
-
#add_mrss_transform(id, xsl_data) ⇒ Object
Add MRSS transform file to generic distribution provider action.
-
#add_mrss_transform_from_file(id, xsl_file) ⇒ Object
Add MRSS transform file to generic distribution provider action.
-
#add_mrss_validate(id, xsd_data) ⇒ Object
Add MRSS validate file to generic distribution provider action.
-
#add_mrss_validate_from_file(id, xsd_file) ⇒ Object
Add MRSS validate file to generic distribution provider action.
-
#add_results_transform(id, transform_data) ⇒ Object
Add results transform file to generic distribution provider action.
-
#add_results_transform_from_file(id, transform_file) ⇒ Object
Add MRSS transform file to generic distribution provider action.
-
#delete(id) ⇒ Object
Delete Generic Distribution Provider Action by id.
-
#delete_by_provider_id(generic_distribution_provider_id, action_type) ⇒ Object
Delete Generic Distribution Provider Action by provider id.
-
#get(id) ⇒ Object
Get Generic Distribution Provider Action by id.
-
#get_by_provider_id(generic_distribution_provider_id, action_type) ⇒ Object
Get Generic Distribution Provider Action by provider id.
-
#initialize(client) ⇒ KalturaGenericDistributionProviderActionService
constructor
A new instance of KalturaGenericDistributionProviderActionService.
-
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ Object
List all distribution providers.
-
#update(id, generic_distribution_provider_action) ⇒ Object
Update Generic Distribution Provider Action by id.
-
#update_by_provider_id(generic_distribution_provider_id, action_type, generic_distribution_provider_action) ⇒ Object
Update Generic Distribution Provider Action by provider id.
Constructor Details
#initialize(client) ⇒ KalturaGenericDistributionProviderActionService
Returns a new instance of KalturaGenericDistributionProviderActionService.
1482 1483 1484 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1482 def initialize(client) super(client) end |
Instance Method Details
#add(generic_distribution_provider_action) ⇒ Object
Add new Generic Distribution Provider Action
1488 1489 1490 1491 1492 1493 1494 1495 1496 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1488 def add(generic_distribution_provider_action) kparams = {} client.add_param(kparams, 'genericDistributionProviderAction', generic_distribution_provider_action); client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'add', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#add_mrss_transform(id, xsl_data) ⇒ Object
Add MRSS transform file to generic distribution provider action
1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1500 def add_mrss_transform(id, xsl_data) kparams = {} # the id of the generic distribution provider action client.add_param(kparams, 'id', id); # XSL MRSS transformation data client.add_param(kparams, 'xslData', xsl_data); client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'addMrssTransform', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#add_mrss_transform_from_file(id, xsl_file) ⇒ Object
Add MRSS transform file to generic distribution provider action
1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1515 def add_mrss_transform_from_file(id, xsl_file) kparams = {} # the id of the generic distribution provider action client.add_param(kparams, 'id', id); # XSL MRSS transformation file client.add_param(kparams, 'xslFile', xsl_file); client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'addMrssTransformFromFile', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#add_mrss_validate(id, xsd_data) ⇒ Object
Add MRSS validate file to generic distribution provider action
1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1530 def add_mrss_validate(id, xsd_data) kparams = {} # the id of the generic distribution provider action client.add_param(kparams, 'id', id); # XSD MRSS validatation data client.add_param(kparams, 'xsdData', xsd_data); client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'addMrssValidate', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#add_mrss_validate_from_file(id, xsd_file) ⇒ Object
Add MRSS validate file to generic distribution provider action
1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1545 def add_mrss_validate_from_file(id, xsd_file) kparams = {} # the id of the generic distribution provider action client.add_param(kparams, 'id', id); # XSD MRSS validatation file client.add_param(kparams, 'xsdFile', xsd_file); client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'addMrssValidateFromFile', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#add_results_transform(id, transform_data) ⇒ Object
Add results transform file to generic distribution provider action
1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1560 def add_results_transform(id, transform_data) kparams = {} # the id of the generic distribution provider action client.add_param(kparams, 'id', id); # transformation data xsl, xPath or regex client.add_param(kparams, 'transformData', transform_data); client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'addResultsTransform', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#add_results_transform_from_file(id, transform_file) ⇒ Object
Add MRSS transform file to generic distribution provider action
1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1575 def add_results_transform_from_file(id, transform_file) kparams = {} # the id of the generic distribution provider action client.add_param(kparams, 'id', id); # transformation file xsl, xPath or regex client.add_param(kparams, 'transformFile', transform_file); client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'addResultsTransformFromFile', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#delete(id) ⇒ Object
Delete Generic Distribution Provider Action by id
1642 1643 1644 1645 1646 1647 1648 1649 1650 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1642 def delete(id) kparams = {} client.add_param(kparams, 'id', id); client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'delete', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#delete_by_provider_id(generic_distribution_provider_id, action_type) ⇒ Object
Delete Generic Distribution Provider Action by provider id
1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1654 def delete_by_provider_id(generic_distribution_provider_id, action_type) kparams = {} client.add_param(kparams, 'genericDistributionProviderId', generic_distribution_provider_id); client.add_param(kparams, 'actionType', action_type); client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'deleteByProviderId', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#get(id) ⇒ Object
Get Generic Distribution Provider Action by id
1590 1591 1592 1593 1594 1595 1596 1597 1598 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1590 def get(id) kparams = {} client.add_param(kparams, 'id', id); client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'get', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#get_by_provider_id(generic_distribution_provider_id, action_type) ⇒ Object
Get Generic Distribution Provider Action by provider id
1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1602 def get_by_provider_id(generic_distribution_provider_id, action_type) kparams = {} client.add_param(kparams, 'genericDistributionProviderId', generic_distribution_provider_id); client.add_param(kparams, 'actionType', action_type); client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'getByProviderId', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ Object
List all distribution providers
1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1667 def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'filter', filter); client.add_param(kparams, 'pager', pager); client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'list', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#update(id, generic_distribution_provider_action) ⇒ Object
Update Generic Distribution Provider Action by id
1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1629 def update(id, generic_distribution_provider_action) kparams = {} client.add_param(kparams, 'id', id); client.add_param(kparams, 'genericDistributionProviderAction', generic_distribution_provider_action); client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'update', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#update_by_provider_id(generic_distribution_provider_id, action_type, generic_distribution_provider_action) ⇒ Object
Update Generic Distribution Provider Action by provider id
1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1615 def update_by_provider_id(generic_distribution_provider_id, action_type, generic_distribution_provider_action) kparams = {} client.add_param(kparams, 'genericDistributionProviderId', generic_distribution_provider_id); client.add_param(kparams, 'actionType', action_type); client.add_param(kparams, 'genericDistributionProviderAction', generic_distribution_provider_action); client.queue_service_action_call('contentdistribution_genericdistributionprovideraction', 'updateByProviderId', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |