@bitmovin/api-sdk 1.210.0 → 1.211.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 +682 -1
- 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/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/index.d.ts +6 -0
- package/dist/models/index.js +6 -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.211.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;
|
|
@@ -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
|
|
@@ -17,7 +17,12 @@ 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 Mapper_1 = require("../../common/Mapper");
|
|
20
|
+
var BitmovinResponse_1 = require("../../models/BitmovinResponse");
|
|
21
|
+
var EncodingTemplateDetails_1 = require("../../models/EncodingTemplateDetails");
|
|
22
|
+
var EncodingTemplateResponse_1 = require("../../models/EncodingTemplateResponse");
|
|
20
23
|
var EncodingTemplateStartResponse_1 = require("../../models/EncodingTemplateStartResponse");
|
|
24
|
+
var PaginationResponse_1 = require("../../models/PaginationResponse");
|
|
25
|
+
var EncodingTemplateResponseListQueryParams_1 = require("./EncodingTemplateResponseListQueryParams");
|
|
21
26
|
/**
|
|
22
27
|
* TemplatesApi - object-oriented interface
|
|
23
28
|
* @export
|
|
@@ -29,6 +34,63 @@ var TemplatesApi = /** @class */ (function (_super) {
|
|
|
29
34
|
function TemplatesApi(configuration) {
|
|
30
35
|
return _super.call(this, configuration) || this;
|
|
31
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* @summary Store an Encoding Template
|
|
39
|
+
* @param {any} encodingTemplateRequest The Encoding Template to be stored
|
|
40
|
+
* @throws {BitmovinError}
|
|
41
|
+
* @memberof TemplatesApi
|
|
42
|
+
*/
|
|
43
|
+
TemplatesApi.prototype.create = function (encodingTemplateRequest) {
|
|
44
|
+
return this.restClient.post('/encoding/templates', {}, encodingTemplateRequest).then(function (response) {
|
|
45
|
+
return (0, Mapper_1.map)(response, EncodingTemplateDetails_1.default);
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* @summary Delete Encoding Template
|
|
50
|
+
* @param {string} encodingTemplateId Id of the encoding template to delete
|
|
51
|
+
* @throws {BitmovinError}
|
|
52
|
+
* @memberof TemplatesApi
|
|
53
|
+
*/
|
|
54
|
+
TemplatesApi.prototype.delete = function (encodingTemplateId) {
|
|
55
|
+
var pathParamMap = {
|
|
56
|
+
encoding_template_id: encodingTemplateId
|
|
57
|
+
};
|
|
58
|
+
return this.restClient.delete('/encoding/templates/{encoding_template_id}', pathParamMap).then(function (response) {
|
|
59
|
+
return (0, Mapper_1.map)(response, BitmovinResponse_1.default);
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* @summary Encoding Template details
|
|
64
|
+
* @param {string} encodingTemplateId Id of the Encoding Template
|
|
65
|
+
* @throws {BitmovinError}
|
|
66
|
+
* @memberof TemplatesApi
|
|
67
|
+
*/
|
|
68
|
+
TemplatesApi.prototype.get = function (encodingTemplateId) {
|
|
69
|
+
var pathParamMap = {
|
|
70
|
+
encoding_template_id: encodingTemplateId
|
|
71
|
+
};
|
|
72
|
+
return this.restClient.get('/encoding/templates/{encoding_template_id}', pathParamMap).then(function (response) {
|
|
73
|
+
return (0, Mapper_1.map)(response, EncodingTemplateDetails_1.default);
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* @summary List stored Encoding Templates
|
|
78
|
+
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
79
|
+
* @throws {BitmovinError}
|
|
80
|
+
* @memberof TemplatesApi
|
|
81
|
+
*/
|
|
82
|
+
TemplatesApi.prototype.list = function (queryParameters) {
|
|
83
|
+
var queryParams = {};
|
|
84
|
+
if (typeof queryParameters === 'function') {
|
|
85
|
+
queryParams = queryParameters(new EncodingTemplateResponseListQueryParams_1.EncodingTemplateResponseListQueryParamsBuilder()).buildQueryParams();
|
|
86
|
+
}
|
|
87
|
+
else if (queryParameters) {
|
|
88
|
+
queryParams = queryParameters;
|
|
89
|
+
}
|
|
90
|
+
return this.restClient.get('/encoding/templates', {}, queryParams).then(function (response) {
|
|
91
|
+
return new PaginationResponse_1.default(response, EncodingTemplateResponse_1.default);
|
|
92
|
+
});
|
|
93
|
+
};
|
|
32
94
|
/**
|
|
33
95
|
* @summary BETA: Start an Encoding defined with an Encoding Template
|
|
34
96
|
* @param {any} encodingTemplateRequest The Encoding Template to start an Encoding from
|