-
Notifications
You must be signed in to change notification settings - Fork 0
/
KalturaAssetStructService.js
60 lines (55 loc) · 1.7 KB
/
KalturaAssetStructService.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: assetStruct.
**/
var KalturaAssetStructService = {
/**
* Add a new assetStruct.
* @param assetStruct KalturaAssetStruct AssetStruct Object (optional)
**/
add: function(assetStruct){
var kparams = new Object();
kparams.assetStruct = assetStruct;
return new KalturaRequestBuilder("assetstruct", "add", kparams);
},
/**
* Delete an existing assetStruct.
* @param id int AssetStruct Identifier, id = 0 is identified as program AssetStruct (optional)
**/
deleteAction: function(id){
var kparams = new Object();
kparams.id = id;
return new KalturaRequestBuilder("assetstruct", "delete", kparams);
},
/**
* Get AssetStruct by ID.
* @param id int ID to get (optional)
**/
get: function(id){
var kparams = new Object();
kparams.id = id;
return new KalturaRequestBuilder("assetstruct", "get", kparams);
},
/**
* Return a list of asset structs for the account with optional filter.
* @param filter KalturaBaseAssetStructFilter Filter parameters for filtering out the result (optional, default: null)
**/
listAction: function(filter){
if(!filter)
filter = null;
var kparams = new Object();
if (filter != null)
kparams.filter = filter;
return new KalturaRequestBuilder("assetstruct", "list", kparams);
},
/**
* Update an existing assetStruct.
* @param id int AssetStruct Identifier, id = 0 is identified as program AssetStruct (optional)
* @param assetStruct KalturaAssetStruct AssetStruct Object (optional)
**/
update: function(id, assetStruct){
var kparams = new Object();
kparams.id = id;
kparams.assetStruct = assetStruct;
return new KalturaRequestBuilder("assetstruct", "update", kparams);
}
}