Class: Kaltura::KalturaVendorCatalogItemService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaVendorCatalogItemService
- Defined in:
- lib/kaltura_plugins/kaltura_reach_client_plugin.rb
Overview
Vendor Catalog Item Service
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#add(vendor_catalog_item) ⇒ KalturaVendorCatalogItem
Allows you to add an service catalog item.
- #add_from_bulk_upload(file_data, bulk_upload_data = KalturaNotImplemented, bulk_upload_vendor_catalog_item_data = KalturaNotImplemented) ⇒ KalturaBulkUpload
-
#delete(id) ⇒ Object
Delete vedor catalog item object.
-
#get(id) ⇒ KalturaVendorCatalogItem
Retrieve specific catalog item by id.
- #get_serve_url(vendor_partner_id = KalturaNotImplemented) ⇒ string
-
#initialize(client) ⇒ KalturaVendorCatalogItemService
constructor
A new instance of KalturaVendorCatalogItemService.
-
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaVendorCatalogItemListResponse
List KalturaVendorCatalogItem objects.
- #serve(vendor_partner_id = KalturaNotImplemented) ⇒ file
-
#update(id, vendor_catalog_item) ⇒ KalturaVendorCatalogItem
Update an existing vedor catalog item object.
-
#update_status(id, status) ⇒ KalturaVendorCatalogItem
Update vendor catalog item status by id.
Constructor Details
#initialize(client) ⇒ KalturaVendorCatalogItemService
Returns a new instance of KalturaVendorCatalogItemService.
1816 1817 1818 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1816 def initialize(client) super(client) end |
Instance Method Details
#add(vendor_catalog_item) ⇒ KalturaVendorCatalogItem
Allows you to add an service catalog item
1822 1823 1824 1825 1826 1827 1828 1829 1830 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1822 def add(vendor_catalog_item) kparams = {} client.add_param(kparams, 'vendorCatalogItem', vendor_catalog_item) client.queue_service_action_call('reach_vendorcatalogitem', 'add', 'KalturaVendorCatalogItem', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#add_from_bulk_upload(file_data, bulk_upload_data = KalturaNotImplemented, bulk_upload_vendor_catalog_item_data = KalturaNotImplemented) ⇒ KalturaBulkUpload
1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1833 def add_from_bulk_upload(file_data, bulk_upload_data=KalturaNotImplemented, bulk_upload_vendor_catalog_item_data=KalturaNotImplemented) kparams = {} kfiles = {} client.add_param(kfiles, 'fileData', file_data) client.add_param(kparams, 'bulkUploadData', bulk_upload_data) client.add_param(kparams, 'bulkUploadVendorCatalogItemData', bulk_upload_vendor_catalog_item_data) client.queue_service_action_call('reach_vendorcatalogitem', 'addFromBulkUpload', 'KalturaBulkUpload', kparams, kfiles) if (client.is_multirequest) return nil end return client.do_queue() end |
#delete(id) ⇒ Object
Delete vedor catalog item object
1848 1849 1850 1851 1852 1853 1854 1855 1856 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1848 def delete(id) kparams = {} client.add_param(kparams, 'id', id) client.queue_service_action_call('reach_vendorcatalogitem', 'delete', '', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#get(id) ⇒ KalturaVendorCatalogItem
Retrieve specific catalog item by id
1860 1861 1862 1863 1864 1865 1866 1867 1868 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1860 def get(id) kparams = {} client.add_param(kparams, 'id', id) client.queue_service_action_call('reach_vendorcatalogitem', 'get', 'KalturaVendorCatalogItem', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#get_serve_url(vendor_partner_id = KalturaNotImplemented) ⇒ string
1871 1872 1873 1874 1875 1876 1877 1878 1879 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1871 def get_serve_url(vendor_partner_id=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'vendorPartnerId', vendor_partner_id) client.queue_service_action_call('reach_vendorcatalogitem', 'getServeUrl', 'string', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaVendorCatalogItemListResponse
List KalturaVendorCatalogItem objects
1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1883 def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'filter', filter) client.add_param(kparams, 'pager', pager) client.queue_service_action_call('reach_vendorcatalogitem', 'list', 'KalturaVendorCatalogItemListResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#serve(vendor_partner_id = KalturaNotImplemented) ⇒ file
1895 1896 1897 1898 1899 1900 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1895 def serve(vendor_partner_id=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'vendorPartnerId', vendor_partner_id) client.queue_service_action_call('reach_vendorcatalogitem', 'serve', 'file', kparams) return client.get_serve_url() end |
#update(id, vendor_catalog_item) ⇒ KalturaVendorCatalogItem
Update an existing vedor catalog item object
1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1904 def update(id, vendor_catalog_item) kparams = {} client.add_param(kparams, 'id', id) client.add_param(kparams, 'vendorCatalogItem', vendor_catalog_item) client.queue_service_action_call('reach_vendorcatalogitem', 'update', 'KalturaVendorCatalogItem', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#update_status(id, status) ⇒ KalturaVendorCatalogItem
Update vendor catalog item status by id
1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1917 def update_status(id, status) kparams = {} client.add_param(kparams, 'id', id) client.add_param(kparams, 'status', status) client.queue_service_action_call('reach_vendorcatalogitem', 'updateStatus', 'KalturaVendorCatalogItem', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |