-
Notifications
You must be signed in to change notification settings - Fork 0
/
KalturaBusinessModuleRuleService.js
60 lines (55 loc) · 1.71 KB
/
KalturaBusinessModuleRuleService.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
51
52
53
54
55
56
57
58
59
60
/**
*Class definition for the Kaltura service: businessModuleRule.
**/
var KalturaBusinessModuleRuleService = {
/**
* Add business module rule.
* @param businessModuleRule KalturaBusinessModuleRule Business module rule (optional)
**/
add: function(businessModuleRule){
var kparams = new Object();
kparams.businessModuleRule = businessModuleRule;
return new KalturaRequestBuilder("businessmodulerule", "add", kparams);
},
/**
* Delete business module rule.
* @param id int Business module rule ID (optional)
**/
deleteAction: function(id){
var kparams = new Object();
kparams.id = id;
return new KalturaRequestBuilder("businessmodulerule", "delete", kparams);
},
/**
* Get business module rule by ID.
* @param id int ID to get (optional)
**/
get: function(id){
var kparams = new Object();
kparams.id = id;
return new KalturaRequestBuilder("businessmodulerule", "get", kparams);
},
/**
* Get the list of business module rules for the partner.
* @param filter KalturaBusinessModuleRuleFilter 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("businessmodulerule", "list", kparams);
},
/**
* Update business module rule.
* @param id int Business module rule ID to update (optional)
* @param businessModuleRule KalturaBusinessModuleRule Business module rule (optional)
**/
update: function(id, businessModuleRule){
var kparams = new Object();
kparams.id = id;
kparams.businessModuleRule = businessModuleRule;
return new KalturaRequestBuilder("businessmodulerule", "update", kparams);
}
}