@bitmovin/api-sdk 1.255.2 → 1.256.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 +536 -1
- package/dist/bitmovin-api-sdk.browser.min.js +1 -1
- package/dist/common/RestClient.js +1 -1
- package/dist/encoding/live/LiveApi.d.ts +4 -0
- package/dist/encoding/live/LiveApi.js +4 -0
- package/dist/encoding/live/dnsMappings/DnsMappingResponseListQueryParams.d.ts +28 -0
- package/dist/encoding/live/dnsMappings/DnsMappingResponseListQueryParams.js +29 -0
- package/dist/encoding/live/dnsMappings/DnsMappingsApi.d.ts +21 -0
- package/dist/encoding/live/dnsMappings/DnsMappingsApi.js +53 -0
- package/dist/encoding/live/encodings/EncodingsApi.d.ts +15 -0
- package/dist/encoding/live/encodings/EncodingsApi.js +37 -0
- package/dist/encoding/live/encodings/actions/ActionsApi.d.ts +21 -0
- package/dist/encoding/live/encodings/actions/ActionsApi.js +49 -0
- package/dist/encoding/live/encodings/dnsMappings/DnsMappingResponseListQueryParams.d.ts +28 -0
- package/dist/encoding/live/encodings/dnsMappings/DnsMappingResponseListQueryParams.js +29 -0
- package/dist/encoding/live/encodings/dnsMappings/DnsMappingsApi.d.ts +56 -0
- package/dist/encoding/live/encodings/dnsMappings/DnsMappingsApi.js +121 -0
- package/dist/models/DnsMappingRequest.d.ts +26 -0
- package/dist/models/DnsMappingRequest.js +21 -0
- package/dist/models/DnsMappingResponse.d.ts +33 -0
- package/dist/models/DnsMappingResponse.js +41 -0
- package/dist/models/UpdateEncodingRtmpIngestPointRequest.d.ts +15 -0
- package/dist/models/UpdateEncodingRtmpIngestPointRequest.js +20 -0
- package/dist/models/UpdateEncodingRtmpIngestPointResponse.d.ts +8 -0
- package/dist/models/UpdateEncodingRtmpIngestPointResponse.js +17 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
|
@@ -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.256.0',
|
|
244
244
|
'Content-Type': 'application/json'
|
|
245
245
|
};
|
|
246
246
|
if (tenantOrgId) {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { BaseAPI } from '../../common/BaseAPI';
|
|
2
2
|
import Configuration from '../../common/Configuration';
|
|
3
|
+
import EncodingsApi from './encodings/EncodingsApi';
|
|
4
|
+
import DnsMappingsApi from './dnsMappings/DnsMappingsApi';
|
|
3
5
|
import StreamKeysApi from './streamKeys/StreamKeysApi';
|
|
4
6
|
import StandbyPoolsApi from './standbyPools/StandbyPoolsApi';
|
|
5
7
|
/**
|
|
@@ -9,6 +11,8 @@ import StandbyPoolsApi from './standbyPools/StandbyPoolsApi';
|
|
|
9
11
|
* @extends {BaseAPI}
|
|
10
12
|
*/
|
|
11
13
|
export default class LiveApi extends BaseAPI {
|
|
14
|
+
encodings: EncodingsApi;
|
|
15
|
+
dnsMappings: DnsMappingsApi;
|
|
12
16
|
streamKeys: StreamKeysApi;
|
|
13
17
|
standbyPools: StandbyPoolsApi;
|
|
14
18
|
constructor(configuration: Configuration);
|
|
@@ -16,6 +16,8 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
var BaseAPI_1 = require("../../common/BaseAPI");
|
|
19
|
+
var EncodingsApi_1 = require("./encodings/EncodingsApi");
|
|
20
|
+
var DnsMappingsApi_1 = require("./dnsMappings/DnsMappingsApi");
|
|
19
21
|
var StreamKeysApi_1 = require("./streamKeys/StreamKeysApi");
|
|
20
22
|
var StandbyPoolsApi_1 = require("./standbyPools/StandbyPoolsApi");
|
|
21
23
|
/**
|
|
@@ -28,6 +30,8 @@ var LiveApi = /** @class */ (function (_super) {
|
|
|
28
30
|
__extends(LiveApi, _super);
|
|
29
31
|
function LiveApi(configuration) {
|
|
30
32
|
var _this = _super.call(this, configuration) || this;
|
|
33
|
+
_this.encodings = new EncodingsApi_1.default(configuration);
|
|
34
|
+
_this.dnsMappings = new DnsMappingsApi_1.default(configuration);
|
|
31
35
|
_this.streamKeys = new StreamKeysApi_1.default(configuration);
|
|
32
36
|
_this.standbyPools = new StandbyPoolsApi_1.default(configuration);
|
|
33
37
|
return _this;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface DnsMappingResponseListQueryParams {
|
|
2
|
+
/**
|
|
3
|
+
* Index of the first item to return, starting at 0. Default is 0
|
|
4
|
+
* @type {number}
|
|
5
|
+
* @memberof DnsMappingResponseListQueryParams
|
|
6
|
+
*/
|
|
7
|
+
offset?: number | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Maximum number of items to return. Default is 25, maximum is 100
|
|
10
|
+
* @type {number}
|
|
11
|
+
* @memberof DnsMappingResponseListQueryParams
|
|
12
|
+
*/
|
|
13
|
+
limit?: number | undefined;
|
|
14
|
+
}
|
|
15
|
+
export declare class DnsMappingResponseListQueryParamsBuilder {
|
|
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(): DnsMappingResponseListQueryParams;
|
|
28
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DnsMappingResponseListQueryParamsBuilder = void 0;
|
|
4
|
+
var DnsMappingResponseListQueryParamsBuilder = /** @class */ (function () {
|
|
5
|
+
function DnsMappingResponseListQueryParamsBuilder() {
|
|
6
|
+
this.internalParams = {};
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @param offset Index of the first item to return, starting at 0. Default is 0
|
|
11
|
+
*/
|
|
12
|
+
DnsMappingResponseListQueryParamsBuilder.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
|
+
DnsMappingResponseListQueryParamsBuilder.prototype.limit = function (limit) {
|
|
21
|
+
this.internalParams.limit = limit;
|
|
22
|
+
return this;
|
|
23
|
+
};
|
|
24
|
+
DnsMappingResponseListQueryParamsBuilder.prototype.buildQueryParams = function () {
|
|
25
|
+
return this.internalParams;
|
|
26
|
+
};
|
|
27
|
+
return DnsMappingResponseListQueryParamsBuilder;
|
|
28
|
+
}());
|
|
29
|
+
exports.DnsMappingResponseListQueryParamsBuilder = DnsMappingResponseListQueryParamsBuilder;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BaseAPI } from '../../../common/BaseAPI';
|
|
2
|
+
import Configuration from '../../../common/Configuration';
|
|
3
|
+
import DnsMappingResponse from '../../../models/DnsMappingResponse';
|
|
4
|
+
import PaginationResponse from '../../../models/PaginationResponse';
|
|
5
|
+
import { DnsMappingResponseListQueryParams, DnsMappingResponseListQueryParamsBuilder } from './DnsMappingResponseListQueryParams';
|
|
6
|
+
/**
|
|
7
|
+
* DnsMappingsApi - object-oriented interface
|
|
8
|
+
* @export
|
|
9
|
+
* @class DnsMappingsApi
|
|
10
|
+
* @extends {BaseAPI}
|
|
11
|
+
*/
|
|
12
|
+
export default class DnsMappingsApi extends BaseAPI {
|
|
13
|
+
constructor(configuration: Configuration);
|
|
14
|
+
/**
|
|
15
|
+
* @summary List DNS Mappings
|
|
16
|
+
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
17
|
+
* @throws {BitmovinError}
|
|
18
|
+
* @memberof DnsMappingsApi
|
|
19
|
+
*/
|
|
20
|
+
list(queryParameters?: DnsMappingResponseListQueryParams | ((q: DnsMappingResponseListQueryParamsBuilder) => DnsMappingResponseListQueryParamsBuilder)): Promise<PaginationResponse<DnsMappingResponse>>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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 DnsMappingResponse_1 = require("../../../models/DnsMappingResponse");
|
|
20
|
+
var PaginationResponse_1 = require("../../../models/PaginationResponse");
|
|
21
|
+
var DnsMappingResponseListQueryParams_1 = require("./DnsMappingResponseListQueryParams");
|
|
22
|
+
/**
|
|
23
|
+
* DnsMappingsApi - object-oriented interface
|
|
24
|
+
* @export
|
|
25
|
+
* @class DnsMappingsApi
|
|
26
|
+
* @extends {BaseAPI}
|
|
27
|
+
*/
|
|
28
|
+
var DnsMappingsApi = /** @class */ (function (_super) {
|
|
29
|
+
__extends(DnsMappingsApi, _super);
|
|
30
|
+
function DnsMappingsApi(configuration) {
|
|
31
|
+
return _super.call(this, configuration) || this;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @summary List DNS Mappings
|
|
35
|
+
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
36
|
+
* @throws {BitmovinError}
|
|
37
|
+
* @memberof DnsMappingsApi
|
|
38
|
+
*/
|
|
39
|
+
DnsMappingsApi.prototype.list = function (queryParameters) {
|
|
40
|
+
var queryParams = {};
|
|
41
|
+
if (typeof queryParameters === 'function') {
|
|
42
|
+
queryParams = queryParameters(new DnsMappingResponseListQueryParams_1.DnsMappingResponseListQueryParamsBuilder()).buildQueryParams();
|
|
43
|
+
}
|
|
44
|
+
else if (queryParameters) {
|
|
45
|
+
queryParams = queryParameters;
|
|
46
|
+
}
|
|
47
|
+
return this.restClient.get('/encoding/live/dns-mappings', {}, queryParams).then(function (response) {
|
|
48
|
+
return new PaginationResponse_1.default(response, DnsMappingResponse_1.default);
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
return DnsMappingsApi;
|
|
52
|
+
}(BaseAPI_1.BaseAPI));
|
|
53
|
+
exports.default = DnsMappingsApi;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseAPI } from '../../../common/BaseAPI';
|
|
2
|
+
import Configuration from '../../../common/Configuration';
|
|
3
|
+
import ActionsApi from './actions/ActionsApi';
|
|
4
|
+
import DnsMappingsApi from './dnsMappings/DnsMappingsApi';
|
|
5
|
+
/**
|
|
6
|
+
* EncodingsApi - object-oriented interface
|
|
7
|
+
* @export
|
|
8
|
+
* @class EncodingsApi
|
|
9
|
+
* @extends {BaseAPI}
|
|
10
|
+
*/
|
|
11
|
+
export default class EncodingsApi extends BaseAPI {
|
|
12
|
+
actions: ActionsApi;
|
|
13
|
+
dnsMappings: DnsMappingsApi;
|
|
14
|
+
constructor(configuration: Configuration);
|
|
15
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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 ActionsApi_1 = require("./actions/ActionsApi");
|
|
20
|
+
var DnsMappingsApi_1 = require("./dnsMappings/DnsMappingsApi");
|
|
21
|
+
/**
|
|
22
|
+
* EncodingsApi - object-oriented interface
|
|
23
|
+
* @export
|
|
24
|
+
* @class EncodingsApi
|
|
25
|
+
* @extends {BaseAPI}
|
|
26
|
+
*/
|
|
27
|
+
var EncodingsApi = /** @class */ (function (_super) {
|
|
28
|
+
__extends(EncodingsApi, _super);
|
|
29
|
+
function EncodingsApi(configuration) {
|
|
30
|
+
var _this = _super.call(this, configuration) || this;
|
|
31
|
+
_this.actions = new ActionsApi_1.default(configuration);
|
|
32
|
+
_this.dnsMappings = new DnsMappingsApi_1.default(configuration);
|
|
33
|
+
return _this;
|
|
34
|
+
}
|
|
35
|
+
return EncodingsApi;
|
|
36
|
+
}(BaseAPI_1.BaseAPI));
|
|
37
|
+
exports.default = EncodingsApi;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BaseAPI } from '../../../../common/BaseAPI';
|
|
2
|
+
import Configuration from '../../../../common/Configuration';
|
|
3
|
+
import UpdateEncodingRtmpIngestPointRequest from '../../../../models/UpdateEncodingRtmpIngestPointRequest';
|
|
4
|
+
import UpdateEncodingRtmpIngestPointResponse from '../../../../models/UpdateEncodingRtmpIngestPointResponse';
|
|
5
|
+
/**
|
|
6
|
+
* ActionsApi - object-oriented interface
|
|
7
|
+
* @export
|
|
8
|
+
* @class ActionsApi
|
|
9
|
+
* @extends {BaseAPI}
|
|
10
|
+
*/
|
|
11
|
+
export default class ActionsApi extends BaseAPI {
|
|
12
|
+
constructor(configuration: Configuration);
|
|
13
|
+
/**
|
|
14
|
+
* @summary Update the ingest points of a Redundant RTMP Input
|
|
15
|
+
* @param {string} encodingId Id of the encoding.
|
|
16
|
+
* @param {UpdateEncodingRtmpIngestPointRequest} updateEncodingRtmpIngestPointRequest The list of the RTMP ingest points to update.
|
|
17
|
+
* @throws {BitmovinError}
|
|
18
|
+
* @memberof ActionsApi
|
|
19
|
+
*/
|
|
20
|
+
patch(encodingId: string, updateEncodingRtmpIngestPointRequest?: UpdateEncodingRtmpIngestPointRequest): Promise<UpdateEncodingRtmpIngestPointResponse>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 UpdateEncodingRtmpIngestPointResponse_1 = require("../../../../models/UpdateEncodingRtmpIngestPointResponse");
|
|
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 Update the ingest points of a Redundant RTMP Input
|
|
34
|
+
* @param {string} encodingId Id of the encoding.
|
|
35
|
+
* @param {UpdateEncodingRtmpIngestPointRequest} updateEncodingRtmpIngestPointRequest The list of the RTMP ingest points to update.
|
|
36
|
+
* @throws {BitmovinError}
|
|
37
|
+
* @memberof ActionsApi
|
|
38
|
+
*/
|
|
39
|
+
ActionsApi.prototype.patch = function (encodingId, updateEncodingRtmpIngestPointRequest) {
|
|
40
|
+
var pathParamMap = {
|
|
41
|
+
encoding_id: encodingId
|
|
42
|
+
};
|
|
43
|
+
return this.restClient.patch('/encoding/live/encodings/{encoding_id}/actions/update-rtmp-ingest-points', pathParamMap, updateEncodingRtmpIngestPointRequest).then(function (response) {
|
|
44
|
+
return (0, Mapper_1.map)(response, UpdateEncodingRtmpIngestPointResponse_1.default);
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
return ActionsApi;
|
|
48
|
+
}(BaseAPI_1.BaseAPI));
|
|
49
|
+
exports.default = ActionsApi;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface DnsMappingResponseListQueryParams {
|
|
2
|
+
/**
|
|
3
|
+
* Index of the first item to return, starting at 0. Default is 0
|
|
4
|
+
* @type {number}
|
|
5
|
+
* @memberof DnsMappingResponseListQueryParams
|
|
6
|
+
*/
|
|
7
|
+
offset?: number | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Maximum number of items to return. Default is 25, maximum is 100
|
|
10
|
+
* @type {number}
|
|
11
|
+
* @memberof DnsMappingResponseListQueryParams
|
|
12
|
+
*/
|
|
13
|
+
limit?: number | undefined;
|
|
14
|
+
}
|
|
15
|
+
export declare class DnsMappingResponseListQueryParamsBuilder {
|
|
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(): DnsMappingResponseListQueryParams;
|
|
28
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DnsMappingResponseListQueryParamsBuilder = void 0;
|
|
4
|
+
var DnsMappingResponseListQueryParamsBuilder = /** @class */ (function () {
|
|
5
|
+
function DnsMappingResponseListQueryParamsBuilder() {
|
|
6
|
+
this.internalParams = {};
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @param offset Index of the first item to return, starting at 0. Default is 0
|
|
11
|
+
*/
|
|
12
|
+
DnsMappingResponseListQueryParamsBuilder.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
|
+
DnsMappingResponseListQueryParamsBuilder.prototype.limit = function (limit) {
|
|
21
|
+
this.internalParams.limit = limit;
|
|
22
|
+
return this;
|
|
23
|
+
};
|
|
24
|
+
DnsMappingResponseListQueryParamsBuilder.prototype.buildQueryParams = function () {
|
|
25
|
+
return this.internalParams;
|
|
26
|
+
};
|
|
27
|
+
return DnsMappingResponseListQueryParamsBuilder;
|
|
28
|
+
}());
|
|
29
|
+
exports.DnsMappingResponseListQueryParamsBuilder = DnsMappingResponseListQueryParamsBuilder;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { BaseAPI } from '../../../../common/BaseAPI';
|
|
2
|
+
import Configuration from '../../../../common/Configuration';
|
|
3
|
+
import BitmovinResponse from '../../../../models/BitmovinResponse';
|
|
4
|
+
import BitmovinResponseList from '../../../../models/BitmovinResponseList';
|
|
5
|
+
import DnsMappingRequest from '../../../../models/DnsMappingRequest';
|
|
6
|
+
import DnsMappingResponse from '../../../../models/DnsMappingResponse';
|
|
7
|
+
import PaginationResponse from '../../../../models/PaginationResponse';
|
|
8
|
+
import { DnsMappingResponseListQueryParams, DnsMappingResponseListQueryParamsBuilder } from './DnsMappingResponseListQueryParams';
|
|
9
|
+
/**
|
|
10
|
+
* DnsMappingsApi - object-oriented interface
|
|
11
|
+
* @export
|
|
12
|
+
* @class DnsMappingsApi
|
|
13
|
+
* @extends {BaseAPI}
|
|
14
|
+
*/
|
|
15
|
+
export default class DnsMappingsApi extends BaseAPI {
|
|
16
|
+
constructor(configuration: Configuration);
|
|
17
|
+
/**
|
|
18
|
+
* @summary Create new DNS mapping for encoding
|
|
19
|
+
* @param {string} encodingId Id of the encoding.
|
|
20
|
+
* @param {DnsMappingRequest} dnsMappingRequest The DNS mapping to be created
|
|
21
|
+
* @throws {BitmovinError}
|
|
22
|
+
* @memberof DnsMappingsApi
|
|
23
|
+
*/
|
|
24
|
+
create(encodingId: string, dnsMappingRequest?: DnsMappingRequest): Promise<DnsMappingResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* @summary Delete DNS mapping
|
|
27
|
+
* @param {string} encodingId Id of the encoding.
|
|
28
|
+
* @param {string} id Id of the DNS mapping
|
|
29
|
+
* @throws {BitmovinError}
|
|
30
|
+
* @memberof DnsMappingsApi
|
|
31
|
+
*/
|
|
32
|
+
delete(encodingId: string, id: string): Promise<BitmovinResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* @summary Delete all DNS mappings for encoding
|
|
35
|
+
* @param {string} encodingId Id of the encoding.
|
|
36
|
+
* @throws {BitmovinError}
|
|
37
|
+
* @memberof DnsMappingsApi
|
|
38
|
+
*/
|
|
39
|
+
deleteAll(encodingId: string): Promise<BitmovinResponseList>;
|
|
40
|
+
/**
|
|
41
|
+
* @summary DNS mapping details
|
|
42
|
+
* @param {string} encodingId Id of the encoding.
|
|
43
|
+
* @param {string} id Id of the DNS mapping
|
|
44
|
+
* @throws {BitmovinError}
|
|
45
|
+
* @memberof DnsMappingsApi
|
|
46
|
+
*/
|
|
47
|
+
get(encodingId: string, id: string): Promise<DnsMappingResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* @summary List DNS mappings for encoding
|
|
50
|
+
* @param {string} encodingId Id of the encoding.
|
|
51
|
+
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
52
|
+
* @throws {BitmovinError}
|
|
53
|
+
* @memberof DnsMappingsApi
|
|
54
|
+
*/
|
|
55
|
+
list(encodingId: string, queryParameters?: DnsMappingResponseListQueryParams | ((q: DnsMappingResponseListQueryParamsBuilder) => DnsMappingResponseListQueryParamsBuilder)): Promise<PaginationResponse<DnsMappingResponse>>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
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 BitmovinResponseList_1 = require("../../../../models/BitmovinResponseList");
|
|
22
|
+
var DnsMappingResponse_1 = require("../../../../models/DnsMappingResponse");
|
|
23
|
+
var PaginationResponse_1 = require("../../../../models/PaginationResponse");
|
|
24
|
+
var DnsMappingResponseListQueryParams_1 = require("./DnsMappingResponseListQueryParams");
|
|
25
|
+
/**
|
|
26
|
+
* DnsMappingsApi - object-oriented interface
|
|
27
|
+
* @export
|
|
28
|
+
* @class DnsMappingsApi
|
|
29
|
+
* @extends {BaseAPI}
|
|
30
|
+
*/
|
|
31
|
+
var DnsMappingsApi = /** @class */ (function (_super) {
|
|
32
|
+
__extends(DnsMappingsApi, _super);
|
|
33
|
+
function DnsMappingsApi(configuration) {
|
|
34
|
+
return _super.call(this, configuration) || this;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @summary Create new DNS mapping for encoding
|
|
38
|
+
* @param {string} encodingId Id of the encoding.
|
|
39
|
+
* @param {DnsMappingRequest} dnsMappingRequest The DNS mapping to be created
|
|
40
|
+
* @throws {BitmovinError}
|
|
41
|
+
* @memberof DnsMappingsApi
|
|
42
|
+
*/
|
|
43
|
+
DnsMappingsApi.prototype.create = function (encodingId, dnsMappingRequest) {
|
|
44
|
+
var pathParamMap = {
|
|
45
|
+
encoding_id: encodingId
|
|
46
|
+
};
|
|
47
|
+
return this.restClient.post('/encoding/live/encodings/{encoding_id}/dns-mappings', pathParamMap, dnsMappingRequest).then(function (response) {
|
|
48
|
+
return (0, Mapper_1.map)(response, DnsMappingResponse_1.default);
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* @summary Delete DNS mapping
|
|
53
|
+
* @param {string} encodingId Id of the encoding.
|
|
54
|
+
* @param {string} id Id of the DNS mapping
|
|
55
|
+
* @throws {BitmovinError}
|
|
56
|
+
* @memberof DnsMappingsApi
|
|
57
|
+
*/
|
|
58
|
+
DnsMappingsApi.prototype.delete = function (encodingId, id) {
|
|
59
|
+
var pathParamMap = {
|
|
60
|
+
encoding_id: encodingId,
|
|
61
|
+
id: id
|
|
62
|
+
};
|
|
63
|
+
return this.restClient.delete('/encoding/live/encodings/{encoding_id}/dns-mappings/{id}', pathParamMap).then(function (response) {
|
|
64
|
+
return (0, Mapper_1.map)(response, BitmovinResponse_1.default);
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* @summary Delete all DNS mappings for encoding
|
|
69
|
+
* @param {string} encodingId Id of the encoding.
|
|
70
|
+
* @throws {BitmovinError}
|
|
71
|
+
* @memberof DnsMappingsApi
|
|
72
|
+
*/
|
|
73
|
+
DnsMappingsApi.prototype.deleteAll = function (encodingId) {
|
|
74
|
+
var pathParamMap = {
|
|
75
|
+
encoding_id: encodingId
|
|
76
|
+
};
|
|
77
|
+
return this.restClient.delete('/encoding/live/encodings/{encoding_id}/dns-mappings', pathParamMap).then(function (response) {
|
|
78
|
+
return (0, Mapper_1.map)(response, BitmovinResponseList_1.default);
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* @summary DNS mapping details
|
|
83
|
+
* @param {string} encodingId Id of the encoding.
|
|
84
|
+
* @param {string} id Id of the DNS mapping
|
|
85
|
+
* @throws {BitmovinError}
|
|
86
|
+
* @memberof DnsMappingsApi
|
|
87
|
+
*/
|
|
88
|
+
DnsMappingsApi.prototype.get = function (encodingId, id) {
|
|
89
|
+
var pathParamMap = {
|
|
90
|
+
encoding_id: encodingId,
|
|
91
|
+
id: id
|
|
92
|
+
};
|
|
93
|
+
return this.restClient.get('/encoding/live/encodings/{encoding_id}/dns-mappings/{id}', pathParamMap).then(function (response) {
|
|
94
|
+
return (0, Mapper_1.map)(response, DnsMappingResponse_1.default);
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* @summary List DNS mappings for encoding
|
|
99
|
+
* @param {string} encodingId Id of the encoding.
|
|
100
|
+
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
101
|
+
* @throws {BitmovinError}
|
|
102
|
+
* @memberof DnsMappingsApi
|
|
103
|
+
*/
|
|
104
|
+
DnsMappingsApi.prototype.list = function (encodingId, queryParameters) {
|
|
105
|
+
var pathParamMap = {
|
|
106
|
+
encoding_id: encodingId
|
|
107
|
+
};
|
|
108
|
+
var queryParams = {};
|
|
109
|
+
if (typeof queryParameters === 'function') {
|
|
110
|
+
queryParams = queryParameters(new DnsMappingResponseListQueryParams_1.DnsMappingResponseListQueryParamsBuilder()).buildQueryParams();
|
|
111
|
+
}
|
|
112
|
+
else if (queryParameters) {
|
|
113
|
+
queryParams = queryParameters;
|
|
114
|
+
}
|
|
115
|
+
return this.restClient.get('/encoding/live/encodings/{encoding_id}/dns-mappings', pathParamMap, queryParams).then(function (response) {
|
|
116
|
+
return new PaginationResponse_1.default(response, DnsMappingResponse_1.default);
|
|
117
|
+
});
|
|
118
|
+
};
|
|
119
|
+
return DnsMappingsApi;
|
|
120
|
+
}(BaseAPI_1.BaseAPI));
|
|
121
|
+
exports.default = DnsMappingsApi;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @export
|
|
3
|
+
* @class DnsMappingRequest
|
|
4
|
+
*/
|
|
5
|
+
export declare class DnsMappingRequest {
|
|
6
|
+
/**
|
|
7
|
+
* Subdomain used for the DNS mapping. It can only contain lowercase letters, numbers and dashes (-). It can be at most 63 characters long (required)
|
|
8
|
+
* @type {string}
|
|
9
|
+
* @memberof DnsMappingRequest
|
|
10
|
+
*/
|
|
11
|
+
subdomain?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Optional name for the DNS mapping
|
|
14
|
+
* @type {string}
|
|
15
|
+
* @memberof DnsMappingRequest
|
|
16
|
+
*/
|
|
17
|
+
name?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Optional description for the DNS mapping
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DnsMappingRequest
|
|
22
|
+
*/
|
|
23
|
+
description?: string;
|
|
24
|
+
constructor(obj?: Partial<DnsMappingRequest>);
|
|
25
|
+
}
|
|
26
|
+
export default DnsMappingRequest;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DnsMappingRequest = void 0;
|
|
4
|
+
var Mapper_1 = require("../common/Mapper");
|
|
5
|
+
/**
|
|
6
|
+
* @export
|
|
7
|
+
* @class DnsMappingRequest
|
|
8
|
+
*/
|
|
9
|
+
var DnsMappingRequest = /** @class */ (function () {
|
|
10
|
+
function DnsMappingRequest(obj) {
|
|
11
|
+
if (!obj) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
this.subdomain = (0, Mapper_1.map)(obj.subdomain);
|
|
15
|
+
this.name = (0, Mapper_1.map)(obj.name);
|
|
16
|
+
this.description = (0, Mapper_1.map)(obj.description);
|
|
17
|
+
}
|
|
18
|
+
return DnsMappingRequest;
|
|
19
|
+
}());
|
|
20
|
+
exports.DnsMappingRequest = DnsMappingRequest;
|
|
21
|
+
exports.default = DnsMappingRequest;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import BitmovinResource from './BitmovinResource';
|
|
2
|
+
/**
|
|
3
|
+
* @export
|
|
4
|
+
* @class DnsMappingResponse
|
|
5
|
+
*/
|
|
6
|
+
export declare class DnsMappingResponse extends BitmovinResource {
|
|
7
|
+
/**
|
|
8
|
+
* Subdomain used for the DNS mapping
|
|
9
|
+
* @type {string}
|
|
10
|
+
* @memberof DnsMappingResponse
|
|
11
|
+
*/
|
|
12
|
+
subdomain?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Resolved hostname for the DNS mapping
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof DnsMappingResponse
|
|
17
|
+
*/
|
|
18
|
+
hostname?: string;
|
|
19
|
+
/**
|
|
20
|
+
* ID of the encoding this DNS mapping belongs to
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof DnsMappingResponse
|
|
23
|
+
*/
|
|
24
|
+
encodingId?: string;
|
|
25
|
+
/**
|
|
26
|
+
* IP address that the hostname resolves to
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof DnsMappingResponse
|
|
29
|
+
*/
|
|
30
|
+
ip?: string;
|
|
31
|
+
constructor(obj?: Partial<DnsMappingResponse>);
|
|
32
|
+
}
|
|
33
|
+
export default DnsMappingResponse;
|