-
Notifications
You must be signed in to change notification settings - Fork 0
/
KalturaAssetUserRuleService.js
70 lines (64 loc) · 1.9 KB
/
KalturaAssetUserRuleService.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
61
62
63
64
65
66
67
68
69
70
/**
*Class definition for the Kaltura service: assetUserRule.
**/
var KalturaAssetUserRuleService = {
/**
* Add asset user rule.
* @param assetUserRule KalturaAssetUserRule Asset user rule (optional)
**/
add: function(assetUserRule){
var kparams = new Object();
kparams.assetUserRule = assetUserRule;
return new KalturaRequestBuilder("assetuserrule", "add", kparams);
},
/**
* Attach AssetUserRule To User.
* @param ruleId int AssetUserRule id to add (optional)
**/
attachUser: function(ruleId){
var kparams = new Object();
kparams.ruleId = ruleId;
return new KalturaRequestBuilder("assetuserrule", "attachUser", kparams);
},
/**
* Delete asset user rule.
* @param id int Asset user rule ID (optional)
**/
deleteAction: function(id){
var kparams = new Object();
kparams.id = id;
return new KalturaRequestBuilder("assetuserrule", "delete", kparams);
},
/**
* Detach AssetUserRule from user.
* @param ruleId int AssetUserRule id to remove (optional)
**/
detachUser: function(ruleId){
var kparams = new Object();
kparams.ruleId = ruleId;
return new KalturaRequestBuilder("assetuserrule", "detachUser", kparams);
},
/**
* Get the list of asset user rules for the partner.
* @param filter KalturaAssetUserRuleFilter AssetUserRule Filter (optional, default: null)
**/
listAction: function(filter){
if(!filter)
filter = null;
var kparams = new Object();
if (filter != null)
kparams.filter = filter;
return new KalturaRequestBuilder("assetuserrule", "list", kparams);
},
/**
* Update asset user rule.
* @param id int Asset user rule ID to update (optional)
* @param assetUserRule KalturaAssetUserRule Asset user rule (optional)
**/
update: function(id, assetUserRule){
var kparams = new Object();
kparams.id = id;
kparams.assetUserRule = assetUserRule;
return new KalturaRequestBuilder("assetuserrule", "update", kparams);
}
}