yellowgrid-api-ts 3.2.88 → 3.2.89
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/.openapi-generator/FILES +1 -0
- package/README.md +2 -0
- package/api.ts +85 -0
- package/dist/api.d.ts +49 -0
- package/dist/api.js +82 -0
- package/docs/Class3CXInstallationsApi.md +55 -0
- package/docs/TcxSbcDTO.md +2 -0
- package/docs/TcxSbcResponseDTO.md +23 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
package/README.md
CHANGED
|
@@ -116,6 +116,7 @@ Class | Method | HTTP request | Description
|
|
|
116
116
|
*Class3CXInstallationsApi* | [**postDeleteInstance**](docs/Class3CXInstallationsApi.md#postdeleteinstance) | **POST** /tcx/installations/{instance_id}/delete | Delete 3CX Instance
|
|
117
117
|
*Class3CXInstallationsApi* | [**postExtendDisk**](docs/Class3CXInstallationsApi.md#postextenddisk) | **POST** /tcx/installations/{instance_id}/disk/extend | Extend additional disk on 3CX Instance
|
|
118
118
|
*Class3CXInstallationsApi* | [**postFailoverInstance**](docs/Class3CXInstallationsApi.md#postfailoverinstance) | **POST** /tcx/installations/{instance_id}/failover | Failover 3CX Instance
|
|
119
|
+
*Class3CXInstallationsApi* | [**postInstallTcxSbc**](docs/Class3CXInstallationsApi.md#postinstalltcxsbc) | **POST** /tcx/installations/sbcs/{sbc_id}/install | Install 3CX SBC
|
|
119
120
|
*Class3CXInstallationsApi* | [**postRebootInstance**](docs/Class3CXInstallationsApi.md#postrebootinstance) | **POST** /tcx/installations/{instance_id}/reboot | Reboot 3CX Instance
|
|
120
121
|
*Class3CXInstallationsApi* | [**postResizeInstance**](docs/Class3CXInstallationsApi.md#postresizeinstance) | **POST** /tcx/installations/{instance_id}/resize | Resize 3CX Instance
|
|
121
122
|
*Class3CXInstallationsApi* | [**postSuspendInstance**](docs/Class3CXInstallationsApi.md#postsuspendinstance) | **POST** /tcx/installations/{instance_id}/suspend | Suspend 3CX Instance
|
|
@@ -486,6 +487,7 @@ Class | Method | HTTP request | Description
|
|
|
486
487
|
- [TcxSbcDTO](docs/TcxSbcDTO.md)
|
|
487
488
|
- [TcxSbcEntity](docs/TcxSbcEntity.md)
|
|
488
489
|
- [TcxSbcModel](docs/TcxSbcModel.md)
|
|
490
|
+
- [TcxSbcResponseDTO](docs/TcxSbcResponseDTO.md)
|
|
489
491
|
- [TcxSetupEntity](docs/TcxSetupEntity.md)
|
|
490
492
|
- [TcxSetupsModel](docs/TcxSetupsModel.md)
|
|
491
493
|
- [TcxSipTrunksEntity](docs/TcxSipTrunksEntity.md)
|
package/api.ts
CHANGED
|
@@ -7107,6 +7107,10 @@ export interface TcxSbcDTO {
|
|
|
7107
7107
|
* 3CX SBC Key
|
|
7108
7108
|
*/
|
|
7109
7109
|
'tcxKey'?: string;
|
|
7110
|
+
/**
|
|
7111
|
+
* 3CX SBC Configured
|
|
7112
|
+
*/
|
|
7113
|
+
'configured'?: boolean;
|
|
7110
7114
|
}
|
|
7111
7115
|
/**
|
|
7112
7116
|
* 3CX Wizard SBC
|
|
@@ -7246,6 +7250,19 @@ export interface TcxSbcModel {
|
|
|
7246
7250
|
*/
|
|
7247
7251
|
'technicalContact'?: string;
|
|
7248
7252
|
}
|
|
7253
|
+
/**
|
|
7254
|
+
* 3CX SBC Response
|
|
7255
|
+
*/
|
|
7256
|
+
export interface TcxSbcResponseDTO {
|
|
7257
|
+
/**
|
|
7258
|
+
* Status
|
|
7259
|
+
*/
|
|
7260
|
+
'status'?: string;
|
|
7261
|
+
/**
|
|
7262
|
+
* Message
|
|
7263
|
+
*/
|
|
7264
|
+
'message'?: string;
|
|
7265
|
+
}
|
|
7249
7266
|
/**
|
|
7250
7267
|
* 3CX Wizard Setup Config
|
|
7251
7268
|
*/
|
|
@@ -12202,6 +12219,40 @@ export const Class3CXInstallationsApiAxiosParamCreator = function (configuration
|
|
|
12202
12219
|
}
|
|
12203
12220
|
|
|
12204
12221
|
|
|
12222
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12223
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12224
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12225
|
+
|
|
12226
|
+
return {
|
|
12227
|
+
url: toPathString(localVarUrlObj),
|
|
12228
|
+
options: localVarRequestOptions,
|
|
12229
|
+
};
|
|
12230
|
+
},
|
|
12231
|
+
/**
|
|
12232
|
+
* Install 3CX SBC
|
|
12233
|
+
* @summary Install 3CX SBC
|
|
12234
|
+
* @param {number} sbcId SBC ID
|
|
12235
|
+
* @param {*} [options] Override http request option.
|
|
12236
|
+
* @throws {RequiredError}
|
|
12237
|
+
*/
|
|
12238
|
+
postInstallTcxSbc: async (sbcId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12239
|
+
// verify required parameter 'sbcId' is not null or undefined
|
|
12240
|
+
assertParamExists('postInstallTcxSbc', 'sbcId', sbcId)
|
|
12241
|
+
const localVarPath = `/tcx/installations/sbcs/{sbc_id}/install`
|
|
12242
|
+
.replace(`{${"sbc_id"}}`, encodeURIComponent(String(sbcId)));
|
|
12243
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12244
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12245
|
+
let baseOptions;
|
|
12246
|
+
if (configuration) {
|
|
12247
|
+
baseOptions = configuration.baseOptions;
|
|
12248
|
+
}
|
|
12249
|
+
|
|
12250
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
12251
|
+
const localVarHeaderParameter = {} as any;
|
|
12252
|
+
const localVarQueryParameter = {} as any;
|
|
12253
|
+
|
|
12254
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
12255
|
+
|
|
12205
12256
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12206
12257
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12207
12258
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -12540,6 +12591,19 @@ export const Class3CXInstallationsApiFp = function(configuration?: Configuration
|
|
|
12540
12591
|
const localVarOperationServerBasePath = operationServerMap['Class3CXInstallationsApi.postFailoverInstance']?.[localVarOperationServerIndex]?.url;
|
|
12541
12592
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12542
12593
|
},
|
|
12594
|
+
/**
|
|
12595
|
+
* Install 3CX SBC
|
|
12596
|
+
* @summary Install 3CX SBC
|
|
12597
|
+
* @param {number} sbcId SBC ID
|
|
12598
|
+
* @param {*} [options] Override http request option.
|
|
12599
|
+
* @throws {RequiredError}
|
|
12600
|
+
*/
|
|
12601
|
+
async postInstallTcxSbc(sbcId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TcxSbcResponseDTO>> {
|
|
12602
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postInstallTcxSbc(sbcId, options);
|
|
12603
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12604
|
+
const localVarOperationServerBasePath = operationServerMap['Class3CXInstallationsApi.postInstallTcxSbc']?.[localVarOperationServerIndex]?.url;
|
|
12605
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12606
|
+
},
|
|
12543
12607
|
/**
|
|
12544
12608
|
* Reboot 3CX Instance
|
|
12545
12609
|
* @summary Reboot 3CX Instance
|
|
@@ -12722,6 +12786,16 @@ export const Class3CXInstallationsApiFactory = function (configuration?: Configu
|
|
|
12722
12786
|
postFailoverInstance(instanceId: string, type: PostFailoverInstanceTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
12723
12787
|
return localVarFp.postFailoverInstance(instanceId, type, options).then((request) => request(axios, basePath));
|
|
12724
12788
|
},
|
|
12789
|
+
/**
|
|
12790
|
+
* Install 3CX SBC
|
|
12791
|
+
* @summary Install 3CX SBC
|
|
12792
|
+
* @param {number} sbcId SBC ID
|
|
12793
|
+
* @param {*} [options] Override http request option.
|
|
12794
|
+
* @throws {RequiredError}
|
|
12795
|
+
*/
|
|
12796
|
+
postInstallTcxSbc(sbcId: number, options?: RawAxiosRequestConfig): AxiosPromise<TcxSbcResponseDTO> {
|
|
12797
|
+
return localVarFp.postInstallTcxSbc(sbcId, options).then((request) => request(axios, basePath));
|
|
12798
|
+
},
|
|
12725
12799
|
/**
|
|
12726
12800
|
* Reboot 3CX Instance
|
|
12727
12801
|
* @summary Reboot 3CX Instance
|
|
@@ -12896,6 +12970,17 @@ export class Class3CXInstallationsApi extends BaseAPI {
|
|
|
12896
12970
|
return Class3CXInstallationsApiFp(this.configuration).postFailoverInstance(instanceId, type, options).then((request) => request(this.axios, this.basePath));
|
|
12897
12971
|
}
|
|
12898
12972
|
|
|
12973
|
+
/**
|
|
12974
|
+
* Install 3CX SBC
|
|
12975
|
+
* @summary Install 3CX SBC
|
|
12976
|
+
* @param {number} sbcId SBC ID
|
|
12977
|
+
* @param {*} [options] Override http request option.
|
|
12978
|
+
* @throws {RequiredError}
|
|
12979
|
+
*/
|
|
12980
|
+
public postInstallTcxSbc(sbcId: number, options?: RawAxiosRequestConfig) {
|
|
12981
|
+
return Class3CXInstallationsApiFp(this.configuration).postInstallTcxSbc(sbcId, options).then((request) => request(this.axios, this.basePath));
|
|
12982
|
+
}
|
|
12983
|
+
|
|
12899
12984
|
/**
|
|
12900
12985
|
* Reboot 3CX Instance
|
|
12901
12986
|
* @summary Reboot 3CX Instance
|
package/dist/api.d.ts
CHANGED
|
@@ -7019,6 +7019,10 @@ export interface TcxSbcDTO {
|
|
|
7019
7019
|
* 3CX SBC Key
|
|
7020
7020
|
*/
|
|
7021
7021
|
'tcxKey'?: string;
|
|
7022
|
+
/**
|
|
7023
|
+
* 3CX SBC Configured
|
|
7024
|
+
*/
|
|
7025
|
+
'configured'?: boolean;
|
|
7022
7026
|
}
|
|
7023
7027
|
/**
|
|
7024
7028
|
* 3CX Wizard SBC
|
|
@@ -7158,6 +7162,19 @@ export interface TcxSbcModel {
|
|
|
7158
7162
|
*/
|
|
7159
7163
|
'technicalContact'?: string;
|
|
7160
7164
|
}
|
|
7165
|
+
/**
|
|
7166
|
+
* 3CX SBC Response
|
|
7167
|
+
*/
|
|
7168
|
+
export interface TcxSbcResponseDTO {
|
|
7169
|
+
/**
|
|
7170
|
+
* Status
|
|
7171
|
+
*/
|
|
7172
|
+
'status'?: string;
|
|
7173
|
+
/**
|
|
7174
|
+
* Message
|
|
7175
|
+
*/
|
|
7176
|
+
'message'?: string;
|
|
7177
|
+
}
|
|
7161
7178
|
/**
|
|
7162
7179
|
* 3CX Wizard Setup Config
|
|
7163
7180
|
*/
|
|
@@ -9706,6 +9723,14 @@ export declare const Class3CXInstallationsApiAxiosParamCreator: (configuration?:
|
|
|
9706
9723
|
* @throws {RequiredError}
|
|
9707
9724
|
*/
|
|
9708
9725
|
postFailoverInstance: (instanceId: string, type: PostFailoverInstanceTypeEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9726
|
+
/**
|
|
9727
|
+
* Install 3CX SBC
|
|
9728
|
+
* @summary Install 3CX SBC
|
|
9729
|
+
* @param {number} sbcId SBC ID
|
|
9730
|
+
* @param {*} [options] Override http request option.
|
|
9731
|
+
* @throws {RequiredError}
|
|
9732
|
+
*/
|
|
9733
|
+
postInstallTcxSbc: (sbcId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9709
9734
|
/**
|
|
9710
9735
|
* Reboot 3CX Instance
|
|
9711
9736
|
* @summary Reboot 3CX Instance
|
|
@@ -9841,6 +9866,14 @@ export declare const Class3CXInstallationsApiFp: (configuration?: Configuration)
|
|
|
9841
9866
|
* @throws {RequiredError}
|
|
9842
9867
|
*/
|
|
9843
9868
|
postFailoverInstance(instanceId: string, type: PostFailoverInstanceTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
9869
|
+
/**
|
|
9870
|
+
* Install 3CX SBC
|
|
9871
|
+
* @summary Install 3CX SBC
|
|
9872
|
+
* @param {number} sbcId SBC ID
|
|
9873
|
+
* @param {*} [options] Override http request option.
|
|
9874
|
+
* @throws {RequiredError}
|
|
9875
|
+
*/
|
|
9876
|
+
postInstallTcxSbc(sbcId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TcxSbcResponseDTO>>;
|
|
9844
9877
|
/**
|
|
9845
9878
|
* Reboot 3CX Instance
|
|
9846
9879
|
* @summary Reboot 3CX Instance
|
|
@@ -9976,6 +10009,14 @@ export declare const Class3CXInstallationsApiFactory: (configuration?: Configura
|
|
|
9976
10009
|
* @throws {RequiredError}
|
|
9977
10010
|
*/
|
|
9978
10011
|
postFailoverInstance(instanceId: string, type: PostFailoverInstanceTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
10012
|
+
/**
|
|
10013
|
+
* Install 3CX SBC
|
|
10014
|
+
* @summary Install 3CX SBC
|
|
10015
|
+
* @param {number} sbcId SBC ID
|
|
10016
|
+
* @param {*} [options] Override http request option.
|
|
10017
|
+
* @throws {RequiredError}
|
|
10018
|
+
*/
|
|
10019
|
+
postInstallTcxSbc(sbcId: number, options?: RawAxiosRequestConfig): AxiosPromise<TcxSbcResponseDTO>;
|
|
9979
10020
|
/**
|
|
9980
10021
|
* Reboot 3CX Instance
|
|
9981
10022
|
* @summary Reboot 3CX Instance
|
|
@@ -10111,6 +10152,14 @@ export declare class Class3CXInstallationsApi extends BaseAPI {
|
|
|
10111
10152
|
* @throws {RequiredError}
|
|
10112
10153
|
*/
|
|
10113
10154
|
postFailoverInstance(instanceId: string, type: PostFailoverInstanceTypeEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
10155
|
+
/**
|
|
10156
|
+
* Install 3CX SBC
|
|
10157
|
+
* @summary Install 3CX SBC
|
|
10158
|
+
* @param {number} sbcId SBC ID
|
|
10159
|
+
* @param {*} [options] Override http request option.
|
|
10160
|
+
* @throws {RequiredError}
|
|
10161
|
+
*/
|
|
10162
|
+
postInstallTcxSbc(sbcId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TcxSbcResponseDTO, any, {}>>;
|
|
10114
10163
|
/**
|
|
10115
10164
|
* Reboot 3CX Instance
|
|
10116
10165
|
* @summary Reboot 3CX Instance
|
package/dist/api.js
CHANGED
|
@@ -5593,6 +5593,44 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
5593
5593
|
});
|
|
5594
5594
|
});
|
|
5595
5595
|
},
|
|
5596
|
+
/**
|
|
5597
|
+
* Install 3CX SBC
|
|
5598
|
+
* @summary Install 3CX SBC
|
|
5599
|
+
* @param {number} sbcId SBC ID
|
|
5600
|
+
* @param {*} [options] Override http request option.
|
|
5601
|
+
* @throws {RequiredError}
|
|
5602
|
+
*/
|
|
5603
|
+
postInstallTcxSbc: function (sbcId_1) {
|
|
5604
|
+
var args_1 = [];
|
|
5605
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
5606
|
+
args_1[_i - 1] = arguments[_i];
|
|
5607
|
+
}
|
|
5608
|
+
return __awaiter(_this, __spreadArray([sbcId_1], args_1, true), void 0, function (sbcId, options) {
|
|
5609
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
5610
|
+
if (options === void 0) { options = {}; }
|
|
5611
|
+
return __generator(this, function (_a) {
|
|
5612
|
+
// verify required parameter 'sbcId' is not null or undefined
|
|
5613
|
+
(0, common_1.assertParamExists)('postInstallTcxSbc', 'sbcId', sbcId);
|
|
5614
|
+
localVarPath = "/tcx/installations/sbcs/{sbc_id}/install"
|
|
5615
|
+
.replace("{".concat("sbc_id", "}"), encodeURIComponent(String(sbcId)));
|
|
5616
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5617
|
+
if (configuration) {
|
|
5618
|
+
baseOptions = configuration.baseOptions;
|
|
5619
|
+
}
|
|
5620
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
5621
|
+
localVarHeaderParameter = {};
|
|
5622
|
+
localVarQueryParameter = {};
|
|
5623
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
5624
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5625
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5626
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5627
|
+
return [2 /*return*/, {
|
|
5628
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5629
|
+
options: localVarRequestOptions,
|
|
5630
|
+
}];
|
|
5631
|
+
});
|
|
5632
|
+
});
|
|
5633
|
+
},
|
|
5596
5634
|
/**
|
|
5597
5635
|
* Reboot 3CX Instance
|
|
5598
5636
|
* @summary Reboot 3CX Instance
|
|
@@ -6028,6 +6066,29 @@ var Class3CXInstallationsApiFp = function (configuration) {
|
|
|
6028
6066
|
});
|
|
6029
6067
|
});
|
|
6030
6068
|
},
|
|
6069
|
+
/**
|
|
6070
|
+
* Install 3CX SBC
|
|
6071
|
+
* @summary Install 3CX SBC
|
|
6072
|
+
* @param {number} sbcId SBC ID
|
|
6073
|
+
* @param {*} [options] Override http request option.
|
|
6074
|
+
* @throws {RequiredError}
|
|
6075
|
+
*/
|
|
6076
|
+
postInstallTcxSbc: function (sbcId, options) {
|
|
6077
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6078
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
6079
|
+
var _a, _b, _c;
|
|
6080
|
+
return __generator(this, function (_d) {
|
|
6081
|
+
switch (_d.label) {
|
|
6082
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postInstallTcxSbc(sbcId, options)];
|
|
6083
|
+
case 1:
|
|
6084
|
+
localVarAxiosArgs = _d.sent();
|
|
6085
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6086
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXInstallationsApi.postInstallTcxSbc']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6087
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
6088
|
+
}
|
|
6089
|
+
});
|
|
6090
|
+
});
|
|
6091
|
+
},
|
|
6031
6092
|
/**
|
|
6032
6093
|
* Reboot 3CX Instance
|
|
6033
6094
|
* @summary Reboot 3CX Instance
|
|
@@ -6260,6 +6321,16 @@ var Class3CXInstallationsApiFactory = function (configuration, basePath, axios)
|
|
|
6260
6321
|
postFailoverInstance: function (instanceId, type, options) {
|
|
6261
6322
|
return localVarFp.postFailoverInstance(instanceId, type, options).then(function (request) { return request(axios, basePath); });
|
|
6262
6323
|
},
|
|
6324
|
+
/**
|
|
6325
|
+
* Install 3CX SBC
|
|
6326
|
+
* @summary Install 3CX SBC
|
|
6327
|
+
* @param {number} sbcId SBC ID
|
|
6328
|
+
* @param {*} [options] Override http request option.
|
|
6329
|
+
* @throws {RequiredError}
|
|
6330
|
+
*/
|
|
6331
|
+
postInstallTcxSbc: function (sbcId, options) {
|
|
6332
|
+
return localVarFp.postInstallTcxSbc(sbcId, options).then(function (request) { return request(axios, basePath); });
|
|
6333
|
+
},
|
|
6263
6334
|
/**
|
|
6264
6335
|
* Reboot 3CX Instance
|
|
6265
6336
|
* @summary Reboot 3CX Instance
|
|
@@ -6438,6 +6509,17 @@ var Class3CXInstallationsApi = /** @class */ (function (_super) {
|
|
|
6438
6509
|
var _this = this;
|
|
6439
6510
|
return (0, exports.Class3CXInstallationsApiFp)(this.configuration).postFailoverInstance(instanceId, type, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
6440
6511
|
};
|
|
6512
|
+
/**
|
|
6513
|
+
* Install 3CX SBC
|
|
6514
|
+
* @summary Install 3CX SBC
|
|
6515
|
+
* @param {number} sbcId SBC ID
|
|
6516
|
+
* @param {*} [options] Override http request option.
|
|
6517
|
+
* @throws {RequiredError}
|
|
6518
|
+
*/
|
|
6519
|
+
Class3CXInstallationsApi.prototype.postInstallTcxSbc = function (sbcId, options) {
|
|
6520
|
+
var _this = this;
|
|
6521
|
+
return (0, exports.Class3CXInstallationsApiFp)(this.configuration).postInstallTcxSbc(sbcId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
6522
|
+
};
|
|
6441
6523
|
/**
|
|
6442
6524
|
* Reboot 3CX Instance
|
|
6443
6525
|
* @summary Reboot 3CX Instance
|
|
@@ -13,6 +13,7 @@ All URIs are relative to *https://bitbucket.org*
|
|
|
13
13
|
|[**postDeleteInstance**](#postdeleteinstance) | **POST** /tcx/installations/{instance_id}/delete | Delete 3CX Instance|
|
|
14
14
|
|[**postExtendDisk**](#postextenddisk) | **POST** /tcx/installations/{instance_id}/disk/extend | Extend additional disk on 3CX Instance|
|
|
15
15
|
|[**postFailoverInstance**](#postfailoverinstance) | **POST** /tcx/installations/{instance_id}/failover | Failover 3CX Instance|
|
|
16
|
+
|[**postInstallTcxSbc**](#postinstalltcxsbc) | **POST** /tcx/installations/sbcs/{sbc_id}/install | Install 3CX SBC|
|
|
16
17
|
|[**postRebootInstance**](#postrebootinstance) | **POST** /tcx/installations/{instance_id}/reboot | Reboot 3CX Instance|
|
|
17
18
|
|[**postResizeInstance**](#postresizeinstance) | **POST** /tcx/installations/{instance_id}/resize | Resize 3CX Instance|
|
|
18
19
|
|[**postSuspendInstance**](#postsuspendinstance) | **POST** /tcx/installations/{instance_id}/suspend | Suspend 3CX Instance|
|
|
@@ -544,6 +545,60 @@ No authorization required
|
|
|
544
545
|
|
|
545
546
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
546
547
|
|
|
548
|
+
# **postInstallTcxSbc**
|
|
549
|
+
> TcxSbcResponseDTO postInstallTcxSbc()
|
|
550
|
+
|
|
551
|
+
Install 3CX SBC
|
|
552
|
+
|
|
553
|
+
### Example
|
|
554
|
+
|
|
555
|
+
```typescript
|
|
556
|
+
import {
|
|
557
|
+
Class3CXInstallationsApi,
|
|
558
|
+
Configuration
|
|
559
|
+
} from 'yellowgrid-api-ts';
|
|
560
|
+
|
|
561
|
+
const configuration = new Configuration();
|
|
562
|
+
const apiInstance = new Class3CXInstallationsApi(configuration);
|
|
563
|
+
|
|
564
|
+
let sbcId: number; //SBC ID (default to undefined)
|
|
565
|
+
|
|
566
|
+
const { status, data } = await apiInstance.postInstallTcxSbc(
|
|
567
|
+
sbcId
|
|
568
|
+
);
|
|
569
|
+
```
|
|
570
|
+
|
|
571
|
+
### Parameters
|
|
572
|
+
|
|
573
|
+
|Name | Type | Description | Notes|
|
|
574
|
+
|------------- | ------------- | ------------- | -------------|
|
|
575
|
+
| **sbcId** | [**number**] | SBC ID | defaults to undefined|
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
### Return type
|
|
579
|
+
|
|
580
|
+
**TcxSbcResponseDTO**
|
|
581
|
+
|
|
582
|
+
### Authorization
|
|
583
|
+
|
|
584
|
+
No authorization required
|
|
585
|
+
|
|
586
|
+
### HTTP request headers
|
|
587
|
+
|
|
588
|
+
- **Content-Type**: Not defined
|
|
589
|
+
- **Accept**: application/json
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
### HTTP response details
|
|
593
|
+
| Status code | Description | Response headers |
|
|
594
|
+
|-------------|-------------|------------------|
|
|
595
|
+
|**200** | 3CX SBC Install Response | - |
|
|
596
|
+
|**400** | Bad Request | - |
|
|
597
|
+
|**401** | Unauthorised | - |
|
|
598
|
+
|**403** | Access Denied | - |
|
|
599
|
+
|
|
600
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
601
|
+
|
|
547
602
|
# **postRebootInstance**
|
|
548
603
|
> postRebootInstance()
|
|
549
604
|
|
package/docs/TcxSbcDTO.md
CHANGED
|
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**dns** | **string** | DNS | [optional] [default to undefined]
|
|
14
14
|
**tcxUrl** | **string** | 3CX URL | [optional] [default to undefined]
|
|
15
15
|
**tcxKey** | **string** | 3CX SBC Key | [optional] [default to undefined]
|
|
16
|
+
**configured** | **boolean** | 3CX SBC Configured | [optional] [default to undefined]
|
|
16
17
|
|
|
17
18
|
## Example
|
|
18
19
|
|
|
@@ -27,6 +28,7 @@ const instance: TcxSbcDTO = {
|
|
|
27
28
|
dns,
|
|
28
29
|
tcxUrl,
|
|
29
30
|
tcxKey,
|
|
31
|
+
configured,
|
|
30
32
|
};
|
|
31
33
|
```
|
|
32
34
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# TcxSbcResponseDTO
|
|
2
|
+
|
|
3
|
+
3CX SBC Response
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**status** | **string** | Status | [optional] [default to undefined]
|
|
10
|
+
**message** | **string** | Message | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { TcxSbcResponseDTO } from 'yellowgrid-api-ts';
|
|
16
|
+
|
|
17
|
+
const instance: TcxSbcResponseDTO = {
|
|
18
|
+
status,
|
|
19
|
+
message,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|