@bitmovin/api-sdk 1.210.0 → 1.212.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/bitmovin-api-sdk.browser.js +1582 -34
- package/dist/bitmovin-api-sdk.browser.min.js +1 -1
- package/dist/common/RestClient.js +1 -1
- package/dist/encoding/infrastructure/InfrastructureApi.d.ts +2 -0
- package/dist/encoding/infrastructure/InfrastructureApi.js +2 -0
- package/dist/encoding/infrastructure/akamai/AkamaiAccountListQueryParams.d.ts +28 -0
- package/dist/encoding/infrastructure/akamai/AkamaiAccountListQueryParams.js +29 -0
- package/dist/encoding/infrastructure/akamai/AkamaiApi.d.ts +44 -0
- package/dist/encoding/infrastructure/akamai/AkamaiApi.js +96 -0
- package/dist/encoding/infrastructure/akamai/regions/AkamaiAccountRegionSettingsListQueryParams.d.ts +28 -0
- package/dist/encoding/infrastructure/akamai/regions/AkamaiAccountRegionSettingsListQueryParams.js +29 -0
- package/dist/encoding/infrastructure/akamai/regions/RegionsApi.d.ts +48 -0
- package/dist/encoding/infrastructure/akamai/regions/RegionsApi.js +107 -0
- package/dist/encoding/live/LiveApi.d.ts +2 -0
- package/dist/encoding/live/LiveApi.js +2 -0
- package/dist/encoding/live/standbyPools/StandbyPoolsApi.d.ts +58 -0
- package/dist/encoding/live/standbyPools/StandbyPoolsApi.js +108 -0
- package/dist/encoding/live/standbyPools/actions/ActionsApi.d.ts +26 -0
- package/dist/encoding/live/standbyPools/actions/ActionsApi.js +62 -0
- package/dist/encoding/live/standbyPools/encodings/EncodingsApi.d.ts +31 -0
- package/dist/encoding/live/standbyPools/encodings/EncodingsApi.js +75 -0
- package/dist/encoding/live/standbyPools/encodings/LiveStandbyPoolEncodingListQueryParams.d.ts +50 -0
- package/dist/encoding/live/standbyPools/encodings/LiveStandbyPoolEncodingListQueryParams.js +45 -0
- package/dist/encoding/live/standbyPools/logs/LiveStandbyPoolEventLogListQueryParams.d.ts +50 -0
- package/dist/encoding/live/standbyPools/logs/LiveStandbyPoolEventLogListQueryParams.js +45 -0
- package/dist/encoding/live/standbyPools/logs/LogsApi.d.ts +22 -0
- package/dist/encoding/live/standbyPools/logs/LogsApi.js +57 -0
- package/dist/encoding/templates/EncodingTemplateResponseListQueryParams.d.ts +40 -0
- package/dist/encoding/templates/EncodingTemplateResponseListQueryParams.js +37 -0
- package/dist/encoding/templates/TemplatesApi.d.ts +33 -0
- package/dist/encoding/templates/TemplatesApi.js +62 -0
- package/dist/models/AkamaiAccount.d.ts +15 -0
- package/dist/models/AkamaiAccount.js +38 -0
- package/dist/models/AkamaiAccountRegionSettings.d.ts +27 -0
- package/dist/models/AkamaiAccountRegionSettings.js +40 -0
- package/dist/models/AkamaiCloudRegion.d.ts +20 -0
- package/dist/models/AkamaiCloudRegion.js +24 -0
- package/dist/models/EncodingTemplateDetails.d.ts +15 -0
- package/dist/models/EncodingTemplateDetails.js +38 -0
- package/dist/models/EncodingTemplateResponse.d.ts +15 -0
- package/dist/models/EncodingTemplateResponse.js +38 -0
- package/dist/models/EncodingTemplateType.d.ts +10 -0
- package/dist/models/EncodingTemplateType.js +14 -0
- package/dist/models/LiveStandbyPoolDetails.d.ts +15 -0
- package/dist/models/LiveStandbyPoolDetails.js +38 -0
- package/dist/models/LiveStandbyPoolEncoding.d.ts +47 -0
- package/dist/models/LiveStandbyPoolEncoding.js +27 -0
- package/dist/models/LiveStandbyPoolEncodingIngestPoint.d.ts +20 -0
- package/dist/models/LiveStandbyPoolEncodingIngestPoint.js +20 -0
- package/dist/models/LiveStandbyPoolEncodingManifest.d.ts +26 -0
- package/dist/models/LiveStandbyPoolEncodingManifest.js +21 -0
- package/dist/models/LiveStandbyPoolEncodingManifestType.d.ts +10 -0
- package/dist/models/LiveStandbyPoolEncodingManifestType.js +14 -0
- package/dist/models/LiveStandbyPoolEncodingStatus.d.ts +16 -0
- package/dist/models/LiveStandbyPoolEncodingStatus.js +20 -0
- package/dist/models/LiveStandbyPoolEventLog.d.ts +50 -0
- package/dist/models/LiveStandbyPoolEventLog.js +25 -0
- package/dist/models/LiveStandbyPoolEventLogType.d.ts +11 -0
- package/dist/models/LiveStandbyPoolEventLogType.js +15 -0
- package/dist/models/LiveStandbyPoolRequest.d.ts +21 -0
- package/dist/models/LiveStandbyPoolRequest.js +39 -0
- package/dist/models/LiveStandbyPoolResponse.d.ts +45 -0
- package/dist/models/LiveStandbyPoolResponse.js +43 -0
- package/dist/models/LiveStandbyPoolStatus.d.ts +10 -0
- package/dist/models/LiveStandbyPoolStatus.js +14 -0
- package/dist/models/LiveStandbyPoolUpdate.d.ts +20 -0
- package/dist/models/LiveStandbyPoolUpdate.js +20 -0
- package/dist/models/Mp4Muxing.d.ts +0 -6
- package/dist/models/Mp4Muxing.js +0 -2
- package/dist/models/index.d.ts +18 -1
- package/dist/models/index.js +18 -1
- package/package.json +1 -1
- package/dist/models/TimeCode.d.ts +0 -14
- package/dist/models/TimeCode.js +0 -19
|
@@ -240,7 +240,7 @@ var HeaderHandler = /** @class */ (function (_super) {
|
|
|
240
240
|
var headers = {
|
|
241
241
|
'X-Api-Key': apiKey,
|
|
242
242
|
'X-Api-Client': 'bitmovin-api-sdk-javascript',
|
|
243
|
-
'X-Api-Client-Version': '1.
|
|
243
|
+
'X-Api-Client-Version': '1.212.0',
|
|
244
244
|
'Content-Type': 'application/json'
|
|
245
245
|
};
|
|
246
246
|
if (tenantOrgId) {
|
|
@@ -4,6 +4,7 @@ import AwsApi from './aws/AwsApi';
|
|
|
4
4
|
import StaticIpsApi from './staticIps/StaticIpsApi';
|
|
5
5
|
import AzureApi from './azure/AzureApi';
|
|
6
6
|
import GceApi from './gce/GceApi';
|
|
7
|
+
import AkamaiApi from './akamai/AkamaiApi';
|
|
7
8
|
import PrewarmedEncoderPoolsApi from './prewarmedEncoderPools/PrewarmedEncoderPoolsApi';
|
|
8
9
|
/**
|
|
9
10
|
* InfrastructureApi - object-oriented interface
|
|
@@ -16,6 +17,7 @@ export default class InfrastructureApi extends BaseAPI {
|
|
|
16
17
|
staticIps: StaticIpsApi;
|
|
17
18
|
azure: AzureApi;
|
|
18
19
|
gce: GceApi;
|
|
20
|
+
akamai: AkamaiApi;
|
|
19
21
|
prewarmedEncoderPools: PrewarmedEncoderPoolsApi;
|
|
20
22
|
constructor(configuration: Configuration);
|
|
21
23
|
}
|
|
@@ -20,6 +20,7 @@ var AwsApi_1 = require("./aws/AwsApi");
|
|
|
20
20
|
var StaticIpsApi_1 = require("./staticIps/StaticIpsApi");
|
|
21
21
|
var AzureApi_1 = require("./azure/AzureApi");
|
|
22
22
|
var GceApi_1 = require("./gce/GceApi");
|
|
23
|
+
var AkamaiApi_1 = require("./akamai/AkamaiApi");
|
|
23
24
|
var PrewarmedEncoderPoolsApi_1 = require("./prewarmedEncoderPools/PrewarmedEncoderPoolsApi");
|
|
24
25
|
/**
|
|
25
26
|
* InfrastructureApi - object-oriented interface
|
|
@@ -35,6 +36,7 @@ var InfrastructureApi = /** @class */ (function (_super) {
|
|
|
35
36
|
_this.staticIps = new StaticIpsApi_1.default(configuration);
|
|
36
37
|
_this.azure = new AzureApi_1.default(configuration);
|
|
37
38
|
_this.gce = new GceApi_1.default(configuration);
|
|
39
|
+
_this.akamai = new AkamaiApi_1.default(configuration);
|
|
38
40
|
_this.prewarmedEncoderPools = new PrewarmedEncoderPoolsApi_1.default(configuration);
|
|
39
41
|
return _this;
|
|
40
42
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface AkamaiAccountListQueryParams {
|
|
2
|
+
/**
|
|
3
|
+
* Index of the first item to return, starting at 0. Default is 0
|
|
4
|
+
* @type {number}
|
|
5
|
+
* @memberof AkamaiAccountListQueryParams
|
|
6
|
+
*/
|
|
7
|
+
offset?: number | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Maximum number of items to return. Default is 25, maximum is 100
|
|
10
|
+
* @type {number}
|
|
11
|
+
* @memberof AkamaiAccountListQueryParams
|
|
12
|
+
*/
|
|
13
|
+
limit?: number | undefined;
|
|
14
|
+
}
|
|
15
|
+
export declare class AkamaiAccountListQueryParamsBuilder {
|
|
16
|
+
private internalParams;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @param offset Index of the first item to return, starting at 0. Default is 0
|
|
20
|
+
*/
|
|
21
|
+
offset(offset: number): this;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @param limit Maximum number of items to return. Default is 25, maximum is 100
|
|
25
|
+
*/
|
|
26
|
+
limit(limit: number): this;
|
|
27
|
+
buildQueryParams(): AkamaiAccountListQueryParams;
|
|
28
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AkamaiAccountListQueryParamsBuilder = void 0;
|
|
4
|
+
var AkamaiAccountListQueryParamsBuilder = /** @class */ (function () {
|
|
5
|
+
function AkamaiAccountListQueryParamsBuilder() {
|
|
6
|
+
this.internalParams = {};
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @param offset Index of the first item to return, starting at 0. Default is 0
|
|
11
|
+
*/
|
|
12
|
+
AkamaiAccountListQueryParamsBuilder.prototype.offset = function (offset) {
|
|
13
|
+
this.internalParams.offset = offset;
|
|
14
|
+
return this;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @param limit Maximum number of items to return. Default is 25, maximum is 100
|
|
19
|
+
*/
|
|
20
|
+
AkamaiAccountListQueryParamsBuilder.prototype.limit = function (limit) {
|
|
21
|
+
this.internalParams.limit = limit;
|
|
22
|
+
return this;
|
|
23
|
+
};
|
|
24
|
+
AkamaiAccountListQueryParamsBuilder.prototype.buildQueryParams = function () {
|
|
25
|
+
return this.internalParams;
|
|
26
|
+
};
|
|
27
|
+
return AkamaiAccountListQueryParamsBuilder;
|
|
28
|
+
}());
|
|
29
|
+
exports.AkamaiAccountListQueryParamsBuilder = AkamaiAccountListQueryParamsBuilder;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { BaseAPI } from '../../../common/BaseAPI';
|
|
2
|
+
import Configuration from '../../../common/Configuration';
|
|
3
|
+
import RegionsApi from './regions/RegionsApi';
|
|
4
|
+
import AkamaiAccount from '../../../models/AkamaiAccount';
|
|
5
|
+
import PaginationResponse from '../../../models/PaginationResponse';
|
|
6
|
+
import { AkamaiAccountListQueryParams, AkamaiAccountListQueryParamsBuilder } from './AkamaiAccountListQueryParams';
|
|
7
|
+
/**
|
|
8
|
+
* AkamaiApi - object-oriented interface
|
|
9
|
+
* @export
|
|
10
|
+
* @class AkamaiApi
|
|
11
|
+
* @extends {BaseAPI}
|
|
12
|
+
*/
|
|
13
|
+
export default class AkamaiApi extends BaseAPI {
|
|
14
|
+
regions: RegionsApi;
|
|
15
|
+
constructor(configuration: Configuration);
|
|
16
|
+
/**
|
|
17
|
+
* @summary Add Akamai account
|
|
18
|
+
* @param {AkamaiAccount} akamaiAccount The Akamai account to be added
|
|
19
|
+
* @throws {BitmovinError}
|
|
20
|
+
* @memberof AkamaiApi
|
|
21
|
+
*/
|
|
22
|
+
create(akamaiAccount?: AkamaiAccount): Promise<AkamaiAccount>;
|
|
23
|
+
/**
|
|
24
|
+
* @summary Delete Akamai account
|
|
25
|
+
* @param {string} infrastructureId Id of the Akamai account
|
|
26
|
+
* @throws {BitmovinError}
|
|
27
|
+
* @memberof AkamaiApi
|
|
28
|
+
*/
|
|
29
|
+
delete(infrastructureId: string): Promise<AkamaiAccount>;
|
|
30
|
+
/**
|
|
31
|
+
* @summary Akamai account details
|
|
32
|
+
* @param {string} infrastructureId Id of the Akamai account
|
|
33
|
+
* @throws {BitmovinError}
|
|
34
|
+
* @memberof AkamaiApi
|
|
35
|
+
*/
|
|
36
|
+
get(infrastructureId: string): Promise<AkamaiAccount>;
|
|
37
|
+
/**
|
|
38
|
+
* @summary List Akamai accounts
|
|
39
|
+
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
40
|
+
* @throws {BitmovinError}
|
|
41
|
+
* @memberof AkamaiApi
|
|
42
|
+
*/
|
|
43
|
+
list(queryParameters?: AkamaiAccountListQueryParams | ((q: AkamaiAccountListQueryParamsBuilder) => AkamaiAccountListQueryParamsBuilder)): Promise<PaginationResponse<AkamaiAccount>>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var BaseAPI_1 = require("../../../common/BaseAPI");
|
|
19
|
+
var Mapper_1 = require("../../../common/Mapper");
|
|
20
|
+
var RegionsApi_1 = require("./regions/RegionsApi");
|
|
21
|
+
var AkamaiAccount_1 = require("../../../models/AkamaiAccount");
|
|
22
|
+
var PaginationResponse_1 = require("../../../models/PaginationResponse");
|
|
23
|
+
var AkamaiAccountListQueryParams_1 = require("./AkamaiAccountListQueryParams");
|
|
24
|
+
/**
|
|
25
|
+
* AkamaiApi - object-oriented interface
|
|
26
|
+
* @export
|
|
27
|
+
* @class AkamaiApi
|
|
28
|
+
* @extends {BaseAPI}
|
|
29
|
+
*/
|
|
30
|
+
var AkamaiApi = /** @class */ (function (_super) {
|
|
31
|
+
__extends(AkamaiApi, _super);
|
|
32
|
+
function AkamaiApi(configuration) {
|
|
33
|
+
var _this = _super.call(this, configuration) || this;
|
|
34
|
+
_this.regions = new RegionsApi_1.default(configuration);
|
|
35
|
+
return _this;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @summary Add Akamai account
|
|
39
|
+
* @param {AkamaiAccount} akamaiAccount The Akamai account to be added
|
|
40
|
+
* @throws {BitmovinError}
|
|
41
|
+
* @memberof AkamaiApi
|
|
42
|
+
*/
|
|
43
|
+
AkamaiApi.prototype.create = function (akamaiAccount) {
|
|
44
|
+
return this.restClient.post('/encoding/infrastructure/akamai', {}, akamaiAccount).then(function (response) {
|
|
45
|
+
return (0, Mapper_1.map)(response, AkamaiAccount_1.default);
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* @summary Delete Akamai account
|
|
50
|
+
* @param {string} infrastructureId Id of the Akamai account
|
|
51
|
+
* @throws {BitmovinError}
|
|
52
|
+
* @memberof AkamaiApi
|
|
53
|
+
*/
|
|
54
|
+
AkamaiApi.prototype.delete = function (infrastructureId) {
|
|
55
|
+
var pathParamMap = {
|
|
56
|
+
infrastructure_id: infrastructureId
|
|
57
|
+
};
|
|
58
|
+
return this.restClient.delete('/encoding/infrastructure/akamai/{infrastructure_id}', pathParamMap).then(function (response) {
|
|
59
|
+
return (0, Mapper_1.map)(response, AkamaiAccount_1.default);
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* @summary Akamai account details
|
|
64
|
+
* @param {string} infrastructureId Id of the Akamai account
|
|
65
|
+
* @throws {BitmovinError}
|
|
66
|
+
* @memberof AkamaiApi
|
|
67
|
+
*/
|
|
68
|
+
AkamaiApi.prototype.get = function (infrastructureId) {
|
|
69
|
+
var pathParamMap = {
|
|
70
|
+
infrastructure_id: infrastructureId
|
|
71
|
+
};
|
|
72
|
+
return this.restClient.get('/encoding/infrastructure/akamai/{infrastructure_id}', pathParamMap).then(function (response) {
|
|
73
|
+
return (0, Mapper_1.map)(response, AkamaiAccount_1.default);
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* @summary List Akamai accounts
|
|
78
|
+
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
79
|
+
* @throws {BitmovinError}
|
|
80
|
+
* @memberof AkamaiApi
|
|
81
|
+
*/
|
|
82
|
+
AkamaiApi.prototype.list = function (queryParameters) {
|
|
83
|
+
var queryParams = {};
|
|
84
|
+
if (typeof queryParameters === 'function') {
|
|
85
|
+
queryParams = queryParameters(new AkamaiAccountListQueryParams_1.AkamaiAccountListQueryParamsBuilder()).buildQueryParams();
|
|
86
|
+
}
|
|
87
|
+
else if (queryParameters) {
|
|
88
|
+
queryParams = queryParameters;
|
|
89
|
+
}
|
|
90
|
+
return this.restClient.get('/encoding/infrastructure/akamai', {}, queryParams).then(function (response) {
|
|
91
|
+
return new PaginationResponse_1.default(response, AkamaiAccount_1.default);
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
return AkamaiApi;
|
|
95
|
+
}(BaseAPI_1.BaseAPI));
|
|
96
|
+
exports.default = AkamaiApi;
|
package/dist/encoding/infrastructure/akamai/regions/AkamaiAccountRegionSettingsListQueryParams.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface AkamaiAccountRegionSettingsListQueryParams {
|
|
2
|
+
/**
|
|
3
|
+
* Index of the first item to return, starting at 0. Default is 0
|
|
4
|
+
* @type {number}
|
|
5
|
+
* @memberof AkamaiAccountRegionSettingsListQueryParams
|
|
6
|
+
*/
|
|
7
|
+
offset?: number | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Maximum number of items to return. Default is 25, maximum is 100
|
|
10
|
+
* @type {number}
|
|
11
|
+
* @memberof AkamaiAccountRegionSettingsListQueryParams
|
|
12
|
+
*/
|
|
13
|
+
limit?: number | undefined;
|
|
14
|
+
}
|
|
15
|
+
export declare class AkamaiAccountRegionSettingsListQueryParamsBuilder {
|
|
16
|
+
private internalParams;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @param offset Index of the first item to return, starting at 0. Default is 0
|
|
20
|
+
*/
|
|
21
|
+
offset(offset: number): this;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @param limit Maximum number of items to return. Default is 25, maximum is 100
|
|
25
|
+
*/
|
|
26
|
+
limit(limit: number): this;
|
|
27
|
+
buildQueryParams(): AkamaiAccountRegionSettingsListQueryParams;
|
|
28
|
+
}
|
package/dist/encoding/infrastructure/akamai/regions/AkamaiAccountRegionSettingsListQueryParams.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AkamaiAccountRegionSettingsListQueryParamsBuilder = void 0;
|
|
4
|
+
var AkamaiAccountRegionSettingsListQueryParamsBuilder = /** @class */ (function () {
|
|
5
|
+
function AkamaiAccountRegionSettingsListQueryParamsBuilder() {
|
|
6
|
+
this.internalParams = {};
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @param offset Index of the first item to return, starting at 0. Default is 0
|
|
11
|
+
*/
|
|
12
|
+
AkamaiAccountRegionSettingsListQueryParamsBuilder.prototype.offset = function (offset) {
|
|
13
|
+
this.internalParams.offset = offset;
|
|
14
|
+
return this;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @param limit Maximum number of items to return. Default is 25, maximum is 100
|
|
19
|
+
*/
|
|
20
|
+
AkamaiAccountRegionSettingsListQueryParamsBuilder.prototype.limit = function (limit) {
|
|
21
|
+
this.internalParams.limit = limit;
|
|
22
|
+
return this;
|
|
23
|
+
};
|
|
24
|
+
AkamaiAccountRegionSettingsListQueryParamsBuilder.prototype.buildQueryParams = function () {
|
|
25
|
+
return this.internalParams;
|
|
26
|
+
};
|
|
27
|
+
return AkamaiAccountRegionSettingsListQueryParamsBuilder;
|
|
28
|
+
}());
|
|
29
|
+
exports.AkamaiAccountRegionSettingsListQueryParamsBuilder = AkamaiAccountRegionSettingsListQueryParamsBuilder;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { BaseAPI } from '../../../../common/BaseAPI';
|
|
2
|
+
import Configuration from '../../../../common/Configuration';
|
|
3
|
+
import AkamaiAccountRegionSettings from '../../../../models/AkamaiAccountRegionSettings';
|
|
4
|
+
import AkamaiCloudRegion from '../../../../models/AkamaiCloudRegion';
|
|
5
|
+
import PaginationResponse from '../../../../models/PaginationResponse';
|
|
6
|
+
import { AkamaiAccountRegionSettingsListQueryParams, AkamaiAccountRegionSettingsListQueryParamsBuilder } from './AkamaiAccountRegionSettingsListQueryParams';
|
|
7
|
+
/**
|
|
8
|
+
* RegionsApi - object-oriented interface
|
|
9
|
+
* @export
|
|
10
|
+
* @class RegionsApi
|
|
11
|
+
* @extends {BaseAPI}
|
|
12
|
+
*/
|
|
13
|
+
export default class RegionsApi extends BaseAPI {
|
|
14
|
+
constructor(configuration: Configuration);
|
|
15
|
+
/**
|
|
16
|
+
* @summary Add Akamai account region settings
|
|
17
|
+
* @param {string} infrastructureId Id of the Akamai account
|
|
18
|
+
* @param {AkamaiCloudRegion} region Akamai region
|
|
19
|
+
* @param {AkamaiAccountRegionSettings} akamaiAccountRegionSettings The Akamai account region settings to be added
|
|
20
|
+
* @throws {BitmovinError}
|
|
21
|
+
* @memberof RegionsApi
|
|
22
|
+
*/
|
|
23
|
+
create(infrastructureId: string, region: AkamaiCloudRegion, akamaiAccountRegionSettings?: AkamaiAccountRegionSettings): Promise<AkamaiAccountRegionSettings>;
|
|
24
|
+
/**
|
|
25
|
+
* @summary Delete Akamai account region settings
|
|
26
|
+
* @param {string} infrastructureId Id of the Akamai account
|
|
27
|
+
* @param {AkamaiCloudRegion} region Akamai region
|
|
28
|
+
* @throws {BitmovinError}
|
|
29
|
+
* @memberof RegionsApi
|
|
30
|
+
*/
|
|
31
|
+
delete(infrastructureId: string, region: AkamaiCloudRegion): Promise<AkamaiAccountRegionSettings>;
|
|
32
|
+
/**
|
|
33
|
+
* @summary Akamai account region settings details
|
|
34
|
+
* @param {string} infrastructureId Id of the Akamai account
|
|
35
|
+
* @param {AkamaiCloudRegion} region Akamai region
|
|
36
|
+
* @throws {BitmovinError}
|
|
37
|
+
* @memberof RegionsApi
|
|
38
|
+
*/
|
|
39
|
+
get(infrastructureId: string, region: AkamaiCloudRegion): Promise<AkamaiAccountRegionSettings>;
|
|
40
|
+
/**
|
|
41
|
+
* @summary List Akamai account region settings
|
|
42
|
+
* @param {string} infrastructureId Id of the Akamai account
|
|
43
|
+
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
44
|
+
* @throws {BitmovinError}
|
|
45
|
+
* @memberof RegionsApi
|
|
46
|
+
*/
|
|
47
|
+
list(infrastructureId: string, queryParameters?: AkamaiAccountRegionSettingsListQueryParams | ((q: AkamaiAccountRegionSettingsListQueryParamsBuilder) => AkamaiAccountRegionSettingsListQueryParamsBuilder)): Promise<PaginationResponse<AkamaiAccountRegionSettings>>;
|
|
48
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var BaseAPI_1 = require("../../../../common/BaseAPI");
|
|
19
|
+
var Mapper_1 = require("../../../../common/Mapper");
|
|
20
|
+
var AkamaiAccountRegionSettings_1 = require("../../../../models/AkamaiAccountRegionSettings");
|
|
21
|
+
var PaginationResponse_1 = require("../../../../models/PaginationResponse");
|
|
22
|
+
var AkamaiAccountRegionSettingsListQueryParams_1 = require("./AkamaiAccountRegionSettingsListQueryParams");
|
|
23
|
+
/**
|
|
24
|
+
* RegionsApi - object-oriented interface
|
|
25
|
+
* @export
|
|
26
|
+
* @class RegionsApi
|
|
27
|
+
* @extends {BaseAPI}
|
|
28
|
+
*/
|
|
29
|
+
var RegionsApi = /** @class */ (function (_super) {
|
|
30
|
+
__extends(RegionsApi, _super);
|
|
31
|
+
function RegionsApi(configuration) {
|
|
32
|
+
return _super.call(this, configuration) || this;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* @summary Add Akamai account region settings
|
|
36
|
+
* @param {string} infrastructureId Id of the Akamai account
|
|
37
|
+
* @param {AkamaiCloudRegion} region Akamai region
|
|
38
|
+
* @param {AkamaiAccountRegionSettings} akamaiAccountRegionSettings The Akamai account region settings to be added
|
|
39
|
+
* @throws {BitmovinError}
|
|
40
|
+
* @memberof RegionsApi
|
|
41
|
+
*/
|
|
42
|
+
RegionsApi.prototype.create = function (infrastructureId, region, akamaiAccountRegionSettings) {
|
|
43
|
+
var pathParamMap = {
|
|
44
|
+
infrastructure_id: infrastructureId,
|
|
45
|
+
region: region
|
|
46
|
+
};
|
|
47
|
+
return this.restClient.post('/encoding/infrastructure/akamai/{infrastructure_id}/regions/{region}', pathParamMap, akamaiAccountRegionSettings).then(function (response) {
|
|
48
|
+
return (0, Mapper_1.map)(response, AkamaiAccountRegionSettings_1.default);
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* @summary Delete Akamai account region settings
|
|
53
|
+
* @param {string} infrastructureId Id of the Akamai account
|
|
54
|
+
* @param {AkamaiCloudRegion} region Akamai region
|
|
55
|
+
* @throws {BitmovinError}
|
|
56
|
+
* @memberof RegionsApi
|
|
57
|
+
*/
|
|
58
|
+
RegionsApi.prototype.delete = function (infrastructureId, region) {
|
|
59
|
+
var pathParamMap = {
|
|
60
|
+
infrastructure_id: infrastructureId,
|
|
61
|
+
region: region
|
|
62
|
+
};
|
|
63
|
+
return this.restClient.delete('/encoding/infrastructure/akamai/{infrastructure_id}/regions/{region}', pathParamMap).then(function (response) {
|
|
64
|
+
return (0, Mapper_1.map)(response, AkamaiAccountRegionSettings_1.default);
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* @summary Akamai account region settings details
|
|
69
|
+
* @param {string} infrastructureId Id of the Akamai account
|
|
70
|
+
* @param {AkamaiCloudRegion} region Akamai region
|
|
71
|
+
* @throws {BitmovinError}
|
|
72
|
+
* @memberof RegionsApi
|
|
73
|
+
*/
|
|
74
|
+
RegionsApi.prototype.get = function (infrastructureId, region) {
|
|
75
|
+
var pathParamMap = {
|
|
76
|
+
infrastructure_id: infrastructureId,
|
|
77
|
+
region: region
|
|
78
|
+
};
|
|
79
|
+
return this.restClient.get('/encoding/infrastructure/akamai/{infrastructure_id}/regions/{region}', pathParamMap).then(function (response) {
|
|
80
|
+
return (0, Mapper_1.map)(response, AkamaiAccountRegionSettings_1.default);
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* @summary List Akamai account region settings
|
|
85
|
+
* @param {string} infrastructureId Id of the Akamai account
|
|
86
|
+
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
87
|
+
* @throws {BitmovinError}
|
|
88
|
+
* @memberof RegionsApi
|
|
89
|
+
*/
|
|
90
|
+
RegionsApi.prototype.list = function (infrastructureId, queryParameters) {
|
|
91
|
+
var pathParamMap = {
|
|
92
|
+
infrastructure_id: infrastructureId
|
|
93
|
+
};
|
|
94
|
+
var queryParams = {};
|
|
95
|
+
if (typeof queryParameters === 'function') {
|
|
96
|
+
queryParams = queryParameters(new AkamaiAccountRegionSettingsListQueryParams_1.AkamaiAccountRegionSettingsListQueryParamsBuilder()).buildQueryParams();
|
|
97
|
+
}
|
|
98
|
+
else if (queryParameters) {
|
|
99
|
+
queryParams = queryParameters;
|
|
100
|
+
}
|
|
101
|
+
return this.restClient.get('/encoding/infrastructure/akamai/{infrastructure_id}/regions', pathParamMap, queryParams).then(function (response) {
|
|
102
|
+
return new PaginationResponse_1.default(response, AkamaiAccountRegionSettings_1.default);
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
return RegionsApi;
|
|
106
|
+
}(BaseAPI_1.BaseAPI));
|
|
107
|
+
exports.default = RegionsApi;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseAPI } from '../../common/BaseAPI';
|
|
2
2
|
import Configuration from '../../common/Configuration';
|
|
3
3
|
import StreamKeysApi from './streamKeys/StreamKeysApi';
|
|
4
|
+
import StandbyPoolsApi from './standbyPools/StandbyPoolsApi';
|
|
4
5
|
/**
|
|
5
6
|
* LiveApi - object-oriented interface
|
|
6
7
|
* @export
|
|
@@ -9,5 +10,6 @@ import StreamKeysApi from './streamKeys/StreamKeysApi';
|
|
|
9
10
|
*/
|
|
10
11
|
export default class LiveApi extends BaseAPI {
|
|
11
12
|
streamKeys: StreamKeysApi;
|
|
13
|
+
standbyPools: StandbyPoolsApi;
|
|
12
14
|
constructor(configuration: Configuration);
|
|
13
15
|
}
|
|
@@ -17,6 +17,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
var BaseAPI_1 = require("../../common/BaseAPI");
|
|
19
19
|
var StreamKeysApi_1 = require("./streamKeys/StreamKeysApi");
|
|
20
|
+
var StandbyPoolsApi_1 = require("./standbyPools/StandbyPoolsApi");
|
|
20
21
|
/**
|
|
21
22
|
* LiveApi - object-oriented interface
|
|
22
23
|
* @export
|
|
@@ -28,6 +29,7 @@ var LiveApi = /** @class */ (function (_super) {
|
|
|
28
29
|
function LiveApi(configuration) {
|
|
29
30
|
var _this = _super.call(this, configuration) || this;
|
|
30
31
|
_this.streamKeys = new StreamKeysApi_1.default(configuration);
|
|
32
|
+
_this.standbyPools = new StandbyPoolsApi_1.default(configuration);
|
|
31
33
|
return _this;
|
|
32
34
|
}
|
|
33
35
|
return LiveApi;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { BaseAPI } from '../../../common/BaseAPI';
|
|
2
|
+
import Configuration from '../../../common/Configuration';
|
|
3
|
+
import ActionsApi from './actions/ActionsApi';
|
|
4
|
+
import EncodingsApi from './encodings/EncodingsApi';
|
|
5
|
+
import LogsApi from './logs/LogsApi';
|
|
6
|
+
import BitmovinResponse from '../../../models/BitmovinResponse';
|
|
7
|
+
import LiveStandbyPoolDetails from '../../../models/LiveStandbyPoolDetails';
|
|
8
|
+
import LiveStandbyPoolRequest from '../../../models/LiveStandbyPoolRequest';
|
|
9
|
+
import LiveStandbyPoolResponse from '../../../models/LiveStandbyPoolResponse';
|
|
10
|
+
import LiveStandbyPoolUpdate from '../../../models/LiveStandbyPoolUpdate';
|
|
11
|
+
import PaginationResponse from '../../../models/PaginationResponse';
|
|
12
|
+
/**
|
|
13
|
+
* StandbyPoolsApi - object-oriented interface
|
|
14
|
+
* @export
|
|
15
|
+
* @class StandbyPoolsApi
|
|
16
|
+
* @extends {BaseAPI}
|
|
17
|
+
*/
|
|
18
|
+
export default class StandbyPoolsApi extends BaseAPI {
|
|
19
|
+
actions: ActionsApi;
|
|
20
|
+
encodings: EncodingsApi;
|
|
21
|
+
logs: LogsApi;
|
|
22
|
+
constructor(configuration: Configuration);
|
|
23
|
+
/**
|
|
24
|
+
* @summary Create new standby pool
|
|
25
|
+
* @param {LiveStandbyPoolRequest} liveStandbyPoolRequest The pool to be created
|
|
26
|
+
* @throws {BitmovinError}
|
|
27
|
+
* @memberof StandbyPoolsApi
|
|
28
|
+
*/
|
|
29
|
+
create(liveStandbyPoolRequest?: LiveStandbyPoolRequest): Promise<LiveStandbyPoolDetails>;
|
|
30
|
+
/**
|
|
31
|
+
* @summary Delete standby pool by id
|
|
32
|
+
* @param {string} poolId Id of the standby pool
|
|
33
|
+
* @throws {BitmovinError}
|
|
34
|
+
* @memberof StandbyPoolsApi
|
|
35
|
+
*/
|
|
36
|
+
delete(poolId: string): Promise<BitmovinResponse>;
|
|
37
|
+
/**
|
|
38
|
+
* @summary Get details of a standby pool by id
|
|
39
|
+
* @param {string} poolId Id of the standby pool
|
|
40
|
+
* @throws {BitmovinError}
|
|
41
|
+
* @memberof StandbyPoolsApi
|
|
42
|
+
*/
|
|
43
|
+
get(poolId: string): Promise<LiveStandbyPoolDetails>;
|
|
44
|
+
/**
|
|
45
|
+
* @summary List Standby pools
|
|
46
|
+
* @throws {BitmovinError}
|
|
47
|
+
* @memberof StandbyPoolsApi
|
|
48
|
+
*/
|
|
49
|
+
list(): Promise<PaginationResponse<LiveStandbyPoolResponse>>;
|
|
50
|
+
/**
|
|
51
|
+
* @summary Partially update standby pool by id
|
|
52
|
+
* @param {string} poolId Id of the standby pool
|
|
53
|
+
* @param {LiveStandbyPoolUpdate} liveStandbyPoolUpdate The updated standby pool object.
|
|
54
|
+
* @throws {BitmovinError}
|
|
55
|
+
* @memberof StandbyPoolsApi
|
|
56
|
+
*/
|
|
57
|
+
patch(poolId: string, liveStandbyPoolUpdate?: LiveStandbyPoolUpdate): Promise<LiveStandbyPoolDetails>;
|
|
58
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var BaseAPI_1 = require("../../../common/BaseAPI");
|
|
19
|
+
var Mapper_1 = require("../../../common/Mapper");
|
|
20
|
+
var ActionsApi_1 = require("./actions/ActionsApi");
|
|
21
|
+
var EncodingsApi_1 = require("./encodings/EncodingsApi");
|
|
22
|
+
var LogsApi_1 = require("./logs/LogsApi");
|
|
23
|
+
var BitmovinResponse_1 = require("../../../models/BitmovinResponse");
|
|
24
|
+
var LiveStandbyPoolDetails_1 = require("../../../models/LiveStandbyPoolDetails");
|
|
25
|
+
var LiveStandbyPoolResponse_1 = require("../../../models/LiveStandbyPoolResponse");
|
|
26
|
+
var PaginationResponse_1 = require("../../../models/PaginationResponse");
|
|
27
|
+
/**
|
|
28
|
+
* StandbyPoolsApi - object-oriented interface
|
|
29
|
+
* @export
|
|
30
|
+
* @class StandbyPoolsApi
|
|
31
|
+
* @extends {BaseAPI}
|
|
32
|
+
*/
|
|
33
|
+
var StandbyPoolsApi = /** @class */ (function (_super) {
|
|
34
|
+
__extends(StandbyPoolsApi, _super);
|
|
35
|
+
function StandbyPoolsApi(configuration) {
|
|
36
|
+
var _this = _super.call(this, configuration) || this;
|
|
37
|
+
_this.actions = new ActionsApi_1.default(configuration);
|
|
38
|
+
_this.encodings = new EncodingsApi_1.default(configuration);
|
|
39
|
+
_this.logs = new LogsApi_1.default(configuration);
|
|
40
|
+
return _this;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @summary Create new standby pool
|
|
44
|
+
* @param {LiveStandbyPoolRequest} liveStandbyPoolRequest The pool to be created
|
|
45
|
+
* @throws {BitmovinError}
|
|
46
|
+
* @memberof StandbyPoolsApi
|
|
47
|
+
*/
|
|
48
|
+
StandbyPoolsApi.prototype.create = function (liveStandbyPoolRequest) {
|
|
49
|
+
return this.restClient.post('/encoding/live/standby-pools', {}, liveStandbyPoolRequest).then(function (response) {
|
|
50
|
+
return (0, Mapper_1.map)(response, LiveStandbyPoolDetails_1.default);
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* @summary Delete standby pool by id
|
|
55
|
+
* @param {string} poolId Id of the standby pool
|
|
56
|
+
* @throws {BitmovinError}
|
|
57
|
+
* @memberof StandbyPoolsApi
|
|
58
|
+
*/
|
|
59
|
+
StandbyPoolsApi.prototype.delete = function (poolId) {
|
|
60
|
+
var pathParamMap = {
|
|
61
|
+
pool_id: poolId
|
|
62
|
+
};
|
|
63
|
+
return this.restClient.delete('/encoding/live/standby-pools/{pool_id}', pathParamMap).then(function (response) {
|
|
64
|
+
return (0, Mapper_1.map)(response, BitmovinResponse_1.default);
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* @summary Get details of a standby pool by id
|
|
69
|
+
* @param {string} poolId Id of the standby pool
|
|
70
|
+
* @throws {BitmovinError}
|
|
71
|
+
* @memberof StandbyPoolsApi
|
|
72
|
+
*/
|
|
73
|
+
StandbyPoolsApi.prototype.get = function (poolId) {
|
|
74
|
+
var pathParamMap = {
|
|
75
|
+
pool_id: poolId
|
|
76
|
+
};
|
|
77
|
+
return this.restClient.get('/encoding/live/standby-pools/{pool_id}', pathParamMap).then(function (response) {
|
|
78
|
+
return (0, Mapper_1.map)(response, LiveStandbyPoolDetails_1.default);
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* @summary List Standby pools
|
|
83
|
+
* @throws {BitmovinError}
|
|
84
|
+
* @memberof StandbyPoolsApi
|
|
85
|
+
*/
|
|
86
|
+
StandbyPoolsApi.prototype.list = function () {
|
|
87
|
+
return this.restClient.get('/encoding/live/standby-pools', {}).then(function (response) {
|
|
88
|
+
return new PaginationResponse_1.default(response, LiveStandbyPoolResponse_1.default);
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* @summary Partially update standby pool by id
|
|
93
|
+
* @param {string} poolId Id of the standby pool
|
|
94
|
+
* @param {LiveStandbyPoolUpdate} liveStandbyPoolUpdate The updated standby pool object.
|
|
95
|
+
* @throws {BitmovinError}
|
|
96
|
+
* @memberof StandbyPoolsApi
|
|
97
|
+
*/
|
|
98
|
+
StandbyPoolsApi.prototype.patch = function (poolId, liveStandbyPoolUpdate) {
|
|
99
|
+
var pathParamMap = {
|
|
100
|
+
pool_id: poolId
|
|
101
|
+
};
|
|
102
|
+
return this.restClient.patch('/encoding/live/standby-pools/{pool_id}', pathParamMap, liveStandbyPoolUpdate).then(function (response) {
|
|
103
|
+
return (0, Mapper_1.map)(response, LiveStandbyPoolDetails_1.default);
|
|
104
|
+
});
|
|
105
|
+
};
|
|
106
|
+
return StandbyPoolsApi;
|
|
107
|
+
}(BaseAPI_1.BaseAPI));
|
|
108
|
+
exports.default = StandbyPoolsApi;
|