@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
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BaseAPI } from '../../../../common/BaseAPI';
|
|
2
|
+
import Configuration from '../../../../common/Configuration';
|
|
3
|
+
import LiveStandbyPoolEncoding from '../../../../models/LiveStandbyPoolEncoding';
|
|
4
|
+
/**
|
|
5
|
+
* ActionsApi - object-oriented interface
|
|
6
|
+
* @export
|
|
7
|
+
* @class ActionsApi
|
|
8
|
+
* @extends {BaseAPI}
|
|
9
|
+
*/
|
|
10
|
+
export default class ActionsApi extends BaseAPI {
|
|
11
|
+
constructor(configuration: Configuration);
|
|
12
|
+
/**
|
|
13
|
+
* @summary Acquire an encoding from a standby pool
|
|
14
|
+
* @param {string} poolId Id of the standby pool
|
|
15
|
+
* @throws {BitmovinError}
|
|
16
|
+
* @memberof ActionsApi
|
|
17
|
+
*/
|
|
18
|
+
acquireEncoding(poolId: string): Promise<LiveStandbyPoolEncoding>;
|
|
19
|
+
/**
|
|
20
|
+
* @summary Delete error encodings from the standby pool
|
|
21
|
+
* @param {string} poolId Id of the standby pool
|
|
22
|
+
* @throws {BitmovinError}
|
|
23
|
+
* @memberof ActionsApi
|
|
24
|
+
*/
|
|
25
|
+
deleteErrorEncodings(poolId: string): Promise<LiveStandbyPoolEncoding>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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 LiveStandbyPoolEncoding_1 = require("../../../../models/LiveStandbyPoolEncoding");
|
|
21
|
+
/**
|
|
22
|
+
* ActionsApi - object-oriented interface
|
|
23
|
+
* @export
|
|
24
|
+
* @class ActionsApi
|
|
25
|
+
* @extends {BaseAPI}
|
|
26
|
+
*/
|
|
27
|
+
var ActionsApi = /** @class */ (function (_super) {
|
|
28
|
+
__extends(ActionsApi, _super);
|
|
29
|
+
function ActionsApi(configuration) {
|
|
30
|
+
return _super.call(this, configuration) || this;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @summary Acquire an encoding from a standby pool
|
|
34
|
+
* @param {string} poolId Id of the standby pool
|
|
35
|
+
* @throws {BitmovinError}
|
|
36
|
+
* @memberof ActionsApi
|
|
37
|
+
*/
|
|
38
|
+
ActionsApi.prototype.acquireEncoding = function (poolId) {
|
|
39
|
+
var pathParamMap = {
|
|
40
|
+
pool_id: poolId
|
|
41
|
+
};
|
|
42
|
+
return this.restClient.post('/encoding/live/standby-pools/{pool_id}/actions/acquire-encoding', pathParamMap).then(function (response) {
|
|
43
|
+
return (0, Mapper_1.map)(response, LiveStandbyPoolEncoding_1.default);
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* @summary Delete error encodings from the standby pool
|
|
48
|
+
* @param {string} poolId Id of the standby pool
|
|
49
|
+
* @throws {BitmovinError}
|
|
50
|
+
* @memberof ActionsApi
|
|
51
|
+
*/
|
|
52
|
+
ActionsApi.prototype.deleteErrorEncodings = function (poolId) {
|
|
53
|
+
var pathParamMap = {
|
|
54
|
+
pool_id: poolId
|
|
55
|
+
};
|
|
56
|
+
return this.restClient.post('/encoding/live/standby-pools/{pool_id}/actions/delete-error-encodings', pathParamMap).then(function (response) {
|
|
57
|
+
return (0, Mapper_1.map)(response, LiveStandbyPoolEncoding_1.default);
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
return ActionsApi;
|
|
61
|
+
}(BaseAPI_1.BaseAPI));
|
|
62
|
+
exports.default = ActionsApi;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { BaseAPI } from '../../../../common/BaseAPI';
|
|
2
|
+
import Configuration from '../../../../common/Configuration';
|
|
3
|
+
import BitmovinResponse from '../../../../models/BitmovinResponse';
|
|
4
|
+
import LiveStandbyPoolEncoding from '../../../../models/LiveStandbyPoolEncoding';
|
|
5
|
+
import PaginationResponse from '../../../../models/PaginationResponse';
|
|
6
|
+
import { LiveStandbyPoolEncodingListQueryParams, LiveStandbyPoolEncodingListQueryParamsBuilder } from './LiveStandbyPoolEncodingListQueryParams';
|
|
7
|
+
/**
|
|
8
|
+
* EncodingsApi - object-oriented interface
|
|
9
|
+
* @export
|
|
10
|
+
* @class EncodingsApi
|
|
11
|
+
* @extends {BaseAPI}
|
|
12
|
+
*/
|
|
13
|
+
export default class EncodingsApi extends BaseAPI {
|
|
14
|
+
constructor(configuration: Configuration);
|
|
15
|
+
/**
|
|
16
|
+
* @summary Delete encoding from pool by id
|
|
17
|
+
* @param {string} poolId Id of the standby pool
|
|
18
|
+
* @param {string} id Id of the standby pool encoding
|
|
19
|
+
* @throws {BitmovinError}
|
|
20
|
+
* @memberof EncodingsApi
|
|
21
|
+
*/
|
|
22
|
+
delete(poolId: string, id: string): Promise<BitmovinResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* @summary List encodings from a standby pool
|
|
25
|
+
* @param {string} poolId Id of the standby pool
|
|
26
|
+
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
27
|
+
* @throws {BitmovinError}
|
|
28
|
+
* @memberof EncodingsApi
|
|
29
|
+
*/
|
|
30
|
+
list(poolId: string, queryParameters?: LiveStandbyPoolEncodingListQueryParams | ((q: LiveStandbyPoolEncodingListQueryParamsBuilder) => LiveStandbyPoolEncodingListQueryParamsBuilder)): Promise<PaginationResponse<LiveStandbyPoolEncoding>>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
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 BitmovinResponse_1 = require("../../../../models/BitmovinResponse");
|
|
21
|
+
var LiveStandbyPoolEncoding_1 = require("../../../../models/LiveStandbyPoolEncoding");
|
|
22
|
+
var PaginationResponse_1 = require("../../../../models/PaginationResponse");
|
|
23
|
+
var LiveStandbyPoolEncodingListQueryParams_1 = require("./LiveStandbyPoolEncodingListQueryParams");
|
|
24
|
+
/**
|
|
25
|
+
* EncodingsApi - object-oriented interface
|
|
26
|
+
* @export
|
|
27
|
+
* @class EncodingsApi
|
|
28
|
+
* @extends {BaseAPI}
|
|
29
|
+
*/
|
|
30
|
+
var EncodingsApi = /** @class */ (function (_super) {
|
|
31
|
+
__extends(EncodingsApi, _super);
|
|
32
|
+
function EncodingsApi(configuration) {
|
|
33
|
+
return _super.call(this, configuration) || this;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* @summary Delete encoding from pool by id
|
|
37
|
+
* @param {string} poolId Id of the standby pool
|
|
38
|
+
* @param {string} id Id of the standby pool encoding
|
|
39
|
+
* @throws {BitmovinError}
|
|
40
|
+
* @memberof EncodingsApi
|
|
41
|
+
*/
|
|
42
|
+
EncodingsApi.prototype.delete = function (poolId, id) {
|
|
43
|
+
var pathParamMap = {
|
|
44
|
+
pool_id: poolId,
|
|
45
|
+
id: id
|
|
46
|
+
};
|
|
47
|
+
return this.restClient.delete('/encoding/live/standby-pools/{pool_id}/encodings/{id}', pathParamMap).then(function (response) {
|
|
48
|
+
return (0, Mapper_1.map)(response, BitmovinResponse_1.default);
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* @summary List encodings from a standby pool
|
|
53
|
+
* @param {string} poolId Id of the standby pool
|
|
54
|
+
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
55
|
+
* @throws {BitmovinError}
|
|
56
|
+
* @memberof EncodingsApi
|
|
57
|
+
*/
|
|
58
|
+
EncodingsApi.prototype.list = function (poolId, queryParameters) {
|
|
59
|
+
var pathParamMap = {
|
|
60
|
+
pool_id: poolId
|
|
61
|
+
};
|
|
62
|
+
var queryParams = {};
|
|
63
|
+
if (typeof queryParameters === 'function') {
|
|
64
|
+
queryParams = queryParameters(new LiveStandbyPoolEncodingListQueryParams_1.LiveStandbyPoolEncodingListQueryParamsBuilder()).buildQueryParams();
|
|
65
|
+
}
|
|
66
|
+
else if (queryParameters) {
|
|
67
|
+
queryParams = queryParameters;
|
|
68
|
+
}
|
|
69
|
+
return this.restClient.get('/encoding/live/standby-pools/{pool_id}/encodings', pathParamMap, queryParams).then(function (response) {
|
|
70
|
+
return new PaginationResponse_1.default(response, LiveStandbyPoolEncoding_1.default);
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
return EncodingsApi;
|
|
74
|
+
}(BaseAPI_1.BaseAPI));
|
|
75
|
+
exports.default = EncodingsApi;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export interface LiveStandbyPoolEncodingListQueryParams {
|
|
2
|
+
/**
|
|
3
|
+
* Index of the first item to return, starting at 0. Default is 0
|
|
4
|
+
* @type {number}
|
|
5
|
+
* @memberof LiveStandbyPoolEncodingListQueryParams
|
|
6
|
+
*/
|
|
7
|
+
offset?: number | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Maximum number of items to return. Default is 25, maximum is 100
|
|
10
|
+
* @type {number}
|
|
11
|
+
* @memberof LiveStandbyPoolEncodingListQueryParams
|
|
12
|
+
*/
|
|
13
|
+
limit?: number | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Order list result according a stream key attribute. The fields that can be used for sorting are: + `createdAt` + `name` + `status`
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof LiveStandbyPoolEncodingListQueryParams
|
|
18
|
+
*/
|
|
19
|
+
sort?: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Filter standby encodings by status
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof LiveStandbyPoolEncodingListQueryParams
|
|
24
|
+
*/
|
|
25
|
+
status?: string | undefined;
|
|
26
|
+
}
|
|
27
|
+
export declare class LiveStandbyPoolEncodingListQueryParamsBuilder {
|
|
28
|
+
private internalParams;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @param offset Index of the first item to return, starting at 0. Default is 0
|
|
32
|
+
*/
|
|
33
|
+
offset(offset: number): this;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @param limit Maximum number of items to return. Default is 25, maximum is 100
|
|
37
|
+
*/
|
|
38
|
+
limit(limit: number): this;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @param sort Order list result according a stream key attribute. The fields that can be used for sorting are: + `createdAt` + `name` + `status`
|
|
42
|
+
*/
|
|
43
|
+
sort(sort: string): this;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @param status Filter standby encodings by status
|
|
47
|
+
*/
|
|
48
|
+
status(status: string): this;
|
|
49
|
+
buildQueryParams(): LiveStandbyPoolEncodingListQueryParams;
|
|
50
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LiveStandbyPoolEncodingListQueryParamsBuilder = void 0;
|
|
4
|
+
var LiveStandbyPoolEncodingListQueryParamsBuilder = /** @class */ (function () {
|
|
5
|
+
function LiveStandbyPoolEncodingListQueryParamsBuilder() {
|
|
6
|
+
this.internalParams = {};
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @param offset Index of the first item to return, starting at 0. Default is 0
|
|
11
|
+
*/
|
|
12
|
+
LiveStandbyPoolEncodingListQueryParamsBuilder.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
|
+
LiveStandbyPoolEncodingListQueryParamsBuilder.prototype.limit = function (limit) {
|
|
21
|
+
this.internalParams.limit = limit;
|
|
22
|
+
return this;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @param sort Order list result according a stream key attribute. The fields that can be used for sorting are: + `createdAt` + `name` + `status`
|
|
27
|
+
*/
|
|
28
|
+
LiveStandbyPoolEncodingListQueryParamsBuilder.prototype.sort = function (sort) {
|
|
29
|
+
this.internalParams.sort = sort;
|
|
30
|
+
return this;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @param status Filter standby encodings by status
|
|
35
|
+
*/
|
|
36
|
+
LiveStandbyPoolEncodingListQueryParamsBuilder.prototype.status = function (status) {
|
|
37
|
+
this.internalParams.status = status;
|
|
38
|
+
return this;
|
|
39
|
+
};
|
|
40
|
+
LiveStandbyPoolEncodingListQueryParamsBuilder.prototype.buildQueryParams = function () {
|
|
41
|
+
return this.internalParams;
|
|
42
|
+
};
|
|
43
|
+
return LiveStandbyPoolEncodingListQueryParamsBuilder;
|
|
44
|
+
}());
|
|
45
|
+
exports.LiveStandbyPoolEncodingListQueryParamsBuilder = LiveStandbyPoolEncodingListQueryParamsBuilder;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export interface LiveStandbyPoolEventLogListQueryParams {
|
|
2
|
+
/**
|
|
3
|
+
* Index of the first item to return, starting at 0. Default is 0
|
|
4
|
+
* @type {number}
|
|
5
|
+
* @memberof LiveStandbyPoolEventLogListQueryParams
|
|
6
|
+
*/
|
|
7
|
+
offset?: number | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Maximum number of items to return. Default is 25, maximum is 100
|
|
10
|
+
* @type {number}
|
|
11
|
+
* @memberof LiveStandbyPoolEventLogListQueryParams
|
|
12
|
+
*/
|
|
13
|
+
limit?: number | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Order list result according a event log attribute. The fields that can be used for sorting are: + `createdAt` + `eventType` + `standByPoolId`
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof LiveStandbyPoolEventLogListQueryParams
|
|
18
|
+
*/
|
|
19
|
+
sort?: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Filter event logs by log type. Allowed values are: + `INFO` + `WARN` + `ERROR`
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof LiveStandbyPoolEventLogListQueryParams
|
|
24
|
+
*/
|
|
25
|
+
eventType?: string | undefined;
|
|
26
|
+
}
|
|
27
|
+
export declare class LiveStandbyPoolEventLogListQueryParamsBuilder {
|
|
28
|
+
private internalParams;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @param offset Index of the first item to return, starting at 0. Default is 0
|
|
32
|
+
*/
|
|
33
|
+
offset(offset: number): this;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @param limit Maximum number of items to return. Default is 25, maximum is 100
|
|
37
|
+
*/
|
|
38
|
+
limit(limit: number): this;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @param sort Order list result according a event log attribute. The fields that can be used for sorting are: + `createdAt` + `eventType` + `standByPoolId`
|
|
42
|
+
*/
|
|
43
|
+
sort(sort: string): this;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @param eventType Filter event logs by log type. Allowed values are: + `INFO` + `WARN` + `ERROR`
|
|
47
|
+
*/
|
|
48
|
+
eventType(eventType: string): this;
|
|
49
|
+
buildQueryParams(): LiveStandbyPoolEventLogListQueryParams;
|
|
50
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LiveStandbyPoolEventLogListQueryParamsBuilder = void 0;
|
|
4
|
+
var LiveStandbyPoolEventLogListQueryParamsBuilder = /** @class */ (function () {
|
|
5
|
+
function LiveStandbyPoolEventLogListQueryParamsBuilder() {
|
|
6
|
+
this.internalParams = {};
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @param offset Index of the first item to return, starting at 0. Default is 0
|
|
11
|
+
*/
|
|
12
|
+
LiveStandbyPoolEventLogListQueryParamsBuilder.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
|
+
LiveStandbyPoolEventLogListQueryParamsBuilder.prototype.limit = function (limit) {
|
|
21
|
+
this.internalParams.limit = limit;
|
|
22
|
+
return this;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @param sort Order list result according a event log attribute. The fields that can be used for sorting are: + `createdAt` + `eventType` + `standByPoolId`
|
|
27
|
+
*/
|
|
28
|
+
LiveStandbyPoolEventLogListQueryParamsBuilder.prototype.sort = function (sort) {
|
|
29
|
+
this.internalParams.sort = sort;
|
|
30
|
+
return this;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @param eventType Filter event logs by log type. Allowed values are: + `INFO` + `WARN` + `ERROR`
|
|
35
|
+
*/
|
|
36
|
+
LiveStandbyPoolEventLogListQueryParamsBuilder.prototype.eventType = function (eventType) {
|
|
37
|
+
this.internalParams.eventType = eventType;
|
|
38
|
+
return this;
|
|
39
|
+
};
|
|
40
|
+
LiveStandbyPoolEventLogListQueryParamsBuilder.prototype.buildQueryParams = function () {
|
|
41
|
+
return this.internalParams;
|
|
42
|
+
};
|
|
43
|
+
return LiveStandbyPoolEventLogListQueryParamsBuilder;
|
|
44
|
+
}());
|
|
45
|
+
exports.LiveStandbyPoolEventLogListQueryParamsBuilder = LiveStandbyPoolEventLogListQueryParamsBuilder;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseAPI } from '../../../../common/BaseAPI';
|
|
2
|
+
import Configuration from '../../../../common/Configuration';
|
|
3
|
+
import LiveStandbyPoolEventLog from '../../../../models/LiveStandbyPoolEventLog';
|
|
4
|
+
import PaginationResponse from '../../../../models/PaginationResponse';
|
|
5
|
+
import { LiveStandbyPoolEventLogListQueryParams, LiveStandbyPoolEventLogListQueryParamsBuilder } from './LiveStandbyPoolEventLogListQueryParams';
|
|
6
|
+
/**
|
|
7
|
+
* LogsApi - object-oriented interface
|
|
8
|
+
* @export
|
|
9
|
+
* @class LogsApi
|
|
10
|
+
* @extends {BaseAPI}
|
|
11
|
+
*/
|
|
12
|
+
export default class LogsApi extends BaseAPI {
|
|
13
|
+
constructor(configuration: Configuration);
|
|
14
|
+
/**
|
|
15
|
+
* @summary List event logs for a standby pool
|
|
16
|
+
* @param {string} poolId Id of the standby pool
|
|
17
|
+
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
18
|
+
* @throws {BitmovinError}
|
|
19
|
+
* @memberof LogsApi
|
|
20
|
+
*/
|
|
21
|
+
list(poolId: string, queryParameters?: LiveStandbyPoolEventLogListQueryParams | ((q: LiveStandbyPoolEventLogListQueryParamsBuilder) => LiveStandbyPoolEventLogListQueryParamsBuilder)): Promise<PaginationResponse<LiveStandbyPoolEventLog>>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 LiveStandbyPoolEventLog_1 = require("../../../../models/LiveStandbyPoolEventLog");
|
|
20
|
+
var PaginationResponse_1 = require("../../../../models/PaginationResponse");
|
|
21
|
+
var LiveStandbyPoolEventLogListQueryParams_1 = require("./LiveStandbyPoolEventLogListQueryParams");
|
|
22
|
+
/**
|
|
23
|
+
* LogsApi - object-oriented interface
|
|
24
|
+
* @export
|
|
25
|
+
* @class LogsApi
|
|
26
|
+
* @extends {BaseAPI}
|
|
27
|
+
*/
|
|
28
|
+
var LogsApi = /** @class */ (function (_super) {
|
|
29
|
+
__extends(LogsApi, _super);
|
|
30
|
+
function LogsApi(configuration) {
|
|
31
|
+
return _super.call(this, configuration) || this;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @summary List event logs for a standby pool
|
|
35
|
+
* @param {string} poolId Id of the standby pool
|
|
36
|
+
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
37
|
+
* @throws {BitmovinError}
|
|
38
|
+
* @memberof LogsApi
|
|
39
|
+
*/
|
|
40
|
+
LogsApi.prototype.list = function (poolId, queryParameters) {
|
|
41
|
+
var pathParamMap = {
|
|
42
|
+
pool_id: poolId
|
|
43
|
+
};
|
|
44
|
+
var queryParams = {};
|
|
45
|
+
if (typeof queryParameters === 'function') {
|
|
46
|
+
queryParams = queryParameters(new LiveStandbyPoolEventLogListQueryParams_1.LiveStandbyPoolEventLogListQueryParamsBuilder()).buildQueryParams();
|
|
47
|
+
}
|
|
48
|
+
else if (queryParameters) {
|
|
49
|
+
queryParams = queryParameters;
|
|
50
|
+
}
|
|
51
|
+
return this.restClient.get('/encoding/live/standby-pools/{pool_id}/logs', pathParamMap, queryParams).then(function (response) {
|
|
52
|
+
return new PaginationResponse_1.default(response, LiveStandbyPoolEventLog_1.default);
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
return LogsApi;
|
|
56
|
+
}(BaseAPI_1.BaseAPI));
|
|
57
|
+
exports.default = LogsApi;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import EncodingTemplateType from '../../models/EncodingTemplateType';
|
|
2
|
+
export interface EncodingTemplateResponseListQueryParams {
|
|
3
|
+
/**
|
|
4
|
+
* Index of the first item to return, starting at 0. Default is 0
|
|
5
|
+
* @type {number}
|
|
6
|
+
* @memberof EncodingTemplateResponseListQueryParams
|
|
7
|
+
*/
|
|
8
|
+
offset?: number | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Maximum number of items to return. Default is 25, maximum is 100
|
|
11
|
+
* @type {number}
|
|
12
|
+
* @memberof EncodingTemplateResponseListQueryParams
|
|
13
|
+
*/
|
|
14
|
+
limit?: number | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Filter the stored templates by type
|
|
17
|
+
* @type {EncodingTemplateType}
|
|
18
|
+
* @memberof EncodingTemplateResponseListQueryParams
|
|
19
|
+
*/
|
|
20
|
+
type?: EncodingTemplateType | undefined;
|
|
21
|
+
}
|
|
22
|
+
export declare class EncodingTemplateResponseListQueryParamsBuilder {
|
|
23
|
+
private internalParams;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @param offset Index of the first item to return, starting at 0. Default is 0
|
|
27
|
+
*/
|
|
28
|
+
offset(offset: number): this;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @param limit Maximum number of items to return. Default is 25, maximum is 100
|
|
32
|
+
*/
|
|
33
|
+
limit(limit: number): this;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @param type Filter the stored templates by type
|
|
37
|
+
*/
|
|
38
|
+
type(type: EncodingTemplateType): this;
|
|
39
|
+
buildQueryParams(): EncodingTemplateResponseListQueryParams;
|
|
40
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EncodingTemplateResponseListQueryParamsBuilder = void 0;
|
|
4
|
+
var EncodingTemplateResponseListQueryParamsBuilder = /** @class */ (function () {
|
|
5
|
+
function EncodingTemplateResponseListQueryParamsBuilder() {
|
|
6
|
+
this.internalParams = {};
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @param offset Index of the first item to return, starting at 0. Default is 0
|
|
11
|
+
*/
|
|
12
|
+
EncodingTemplateResponseListQueryParamsBuilder.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
|
+
EncodingTemplateResponseListQueryParamsBuilder.prototype.limit = function (limit) {
|
|
21
|
+
this.internalParams.limit = limit;
|
|
22
|
+
return this;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @param type Filter the stored templates by type
|
|
27
|
+
*/
|
|
28
|
+
EncodingTemplateResponseListQueryParamsBuilder.prototype.type = function (type) {
|
|
29
|
+
this.internalParams.type = type;
|
|
30
|
+
return this;
|
|
31
|
+
};
|
|
32
|
+
EncodingTemplateResponseListQueryParamsBuilder.prototype.buildQueryParams = function () {
|
|
33
|
+
return this.internalParams;
|
|
34
|
+
};
|
|
35
|
+
return EncodingTemplateResponseListQueryParamsBuilder;
|
|
36
|
+
}());
|
|
37
|
+
exports.EncodingTemplateResponseListQueryParamsBuilder = EncodingTemplateResponseListQueryParamsBuilder;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { BaseAPI } from '../../common/BaseAPI';
|
|
2
2
|
import Configuration from '../../common/Configuration';
|
|
3
|
+
import BitmovinResponse from '../../models/BitmovinResponse';
|
|
4
|
+
import EncodingTemplateDetails from '../../models/EncodingTemplateDetails';
|
|
5
|
+
import EncodingTemplateResponse from '../../models/EncodingTemplateResponse';
|
|
3
6
|
import EncodingTemplateStartResponse from '../../models/EncodingTemplateStartResponse';
|
|
7
|
+
import PaginationResponse from '../../models/PaginationResponse';
|
|
8
|
+
import { EncodingTemplateResponseListQueryParams, EncodingTemplateResponseListQueryParamsBuilder } from './EncodingTemplateResponseListQueryParams';
|
|
4
9
|
/**
|
|
5
10
|
* TemplatesApi - object-oriented interface
|
|
6
11
|
* @export
|
|
@@ -9,6 +14,34 @@ import EncodingTemplateStartResponse from '../../models/EncodingTemplateStartRes
|
|
|
9
14
|
*/
|
|
10
15
|
export default class TemplatesApi extends BaseAPI {
|
|
11
16
|
constructor(configuration: Configuration);
|
|
17
|
+
/**
|
|
18
|
+
* @summary Store an Encoding Template
|
|
19
|
+
* @param {any} encodingTemplateRequest The Encoding Template to be stored
|
|
20
|
+
* @throws {BitmovinError}
|
|
21
|
+
* @memberof TemplatesApi
|
|
22
|
+
*/
|
|
23
|
+
create(encodingTemplateRequest?: any): Promise<EncodingTemplateDetails>;
|
|
24
|
+
/**
|
|
25
|
+
* @summary Delete Encoding Template
|
|
26
|
+
* @param {string} encodingTemplateId Id of the encoding template to delete
|
|
27
|
+
* @throws {BitmovinError}
|
|
28
|
+
* @memberof TemplatesApi
|
|
29
|
+
*/
|
|
30
|
+
delete(encodingTemplateId: string): Promise<BitmovinResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* @summary Encoding Template details
|
|
33
|
+
* @param {string} encodingTemplateId Id of the Encoding Template
|
|
34
|
+
* @throws {BitmovinError}
|
|
35
|
+
* @memberof TemplatesApi
|
|
36
|
+
*/
|
|
37
|
+
get(encodingTemplateId: string): Promise<EncodingTemplateDetails>;
|
|
38
|
+
/**
|
|
39
|
+
* @summary List stored Encoding Templates
|
|
40
|
+
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
41
|
+
* @throws {BitmovinError}
|
|
42
|
+
* @memberof TemplatesApi
|
|
43
|
+
*/
|
|
44
|
+
list(queryParameters?: EncodingTemplateResponseListQueryParams | ((q: EncodingTemplateResponseListQueryParamsBuilder) => EncodingTemplateResponseListQueryParamsBuilder)): Promise<PaginationResponse<EncodingTemplateResponse>>;
|
|
12
45
|
/**
|
|
13
46
|
* @summary BETA: Start an Encoding defined with an Encoding Template
|
|
14
47
|
* @param {any} encodingTemplateRequest The Encoding Template to start an Encoding from
|