-
Notifications
You must be signed in to change notification settings - Fork 0
/
KalturaCdnAdapterProfileService.js
55 lines (50 loc) · 1.55 KB
/
KalturaCdnAdapterProfileService.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
/**
*Class definition for the Kaltura service: cdnAdapterProfile.
**/
var KalturaCdnAdapterProfileService = {
/**
* Insert new CDN adapter for partner.
* @param adapter KalturaCDNAdapterProfile CDN adapter object (optional)
**/
add: function(adapter){
var kparams = new Object();
kparams.adapter = adapter;
return new KalturaRequestBuilder("cdnadapterprofile", "add", kparams);
},
/**
* Delete CDN adapter by CDN adapter id.
* @param adapterId int CDN adapter identifier (optional)
**/
deleteAction: function(adapterId){
var kparams = new Object();
kparams.adapterId = adapterId;
return new KalturaRequestBuilder("cdnadapterprofile", "delete", kparams);
},
/**
* Generate CDN adapter shared secret.
* @param adapterId int CDN adapter identifier (optional)
**/
generateSharedSecret: function(adapterId){
var kparams = new Object();
kparams.adapterId = adapterId;
return new KalturaRequestBuilder("cdnadapterprofile", "generateSharedSecret", kparams);
},
/**
* Returns all CDN adapters for partner.
**/
listAction: function(){
var kparams = new Object();
return new KalturaRequestBuilder("cdnadapterprofile", "list", kparams);
},
/**
* Update CDN adapter details.
* @param adapterId int CDN adapter id to update (optional)
* @param adapter KalturaCDNAdapterProfile CDN adapter Object (optional)
**/
update: function(adapterId, adapter){
var kparams = new Object();
kparams.adapterId = adapterId;
kparams.adapter = adapter;
return new KalturaRequestBuilder("cdnadapterprofile", "update", kparams);
}
}