-
Notifications
You must be signed in to change notification settings - Fork 0
/
KalturaAssetRuleService.js
50 lines (46 loc) · 1.26 KB
/
KalturaAssetRuleService.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
*Class definition for the Kaltura service: assetRule.
**/
var KalturaAssetRuleService = {
/**
* Add asset rule.
* @param assetRule KalturaAssetRule Asset rule (optional)
**/
add: function(assetRule){
var kparams = new Object();
kparams.assetRule = assetRule;
return new KalturaRequestBuilder("assetrule", "add", kparams);
},
/**
* Delete asset rule.
* @param id int Asset rule ID (optional)
**/
deleteAction: function(id){
var kparams = new Object();
kparams.id = id;
return new KalturaRequestBuilder("assetrule", "delete", kparams);
},
/**
* Get the list of asset rules for the partner.
* @param filter KalturaAssetRuleFilter filter by condition name (optional, default: null)
**/
listAction: function(filter){
if(!filter)
filter = null;
var kparams = new Object();
if (filter != null)
kparams.filter = filter;
return new KalturaRequestBuilder("assetrule", "list", kparams);
},
/**
* Update asset rule.
* @param id int Asset rule ID to update (optional)
* @param assetRule KalturaAssetRule Asset rule (optional)
**/
update: function(id, assetRule){
var kparams = new Object();
kparams.id = id;
kparams.assetRule = assetRule;
return new KalturaRequestBuilder("assetrule", "update", kparams);
}
}