yellowgrid-api-ts 3.2.27 → 3.2.28
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 -0
- package/api.ts +91 -0
- package/dist/api.d.ts +49 -0
- package/dist/api.js +91 -0
- package/docs/Class3CXInstallationsApi.md +58 -0
- package/docs/InstanceEntity.md +2 -0
- package/docs/TcxInstallationModel.md +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -109,6 +109,7 @@ Class | Method | HTTP request | Description
|
|
|
109
109
|
*Class3CXInstallationWizardApi* | [**postUploadBackup**](docs/Class3CXInstallationWizardApi.md#postuploadbackup) | **POST** /tcx/wizards/backup |
|
|
110
110
|
*Class3CXInstallationsApi* | [**getGetDetails**](docs/Class3CXInstallationsApi.md#getgetdetails) | **GET** /tcx/installations/{wizard_id}/details | Get 3CX Installation Details
|
|
111
111
|
*Class3CXInstallationsApi* | [**getGetInstallations**](docs/Class3CXInstallationsApi.md#getgetinstallations) | **GET** /tcx/installations | Get 3CX Installations
|
|
112
|
+
*Class3CXInstallationsApi* | [**patchUpdateAutoFailover**](docs/Class3CXInstallationsApi.md#patchupdateautofailover) | **PATCH** /tcx/installations/{instance_id}/failover/auto | Update 3CX Instance Auto Failover
|
|
112
113
|
*Class3CXInstallationsApi* | [**postCreateSshUser**](docs/Class3CXInstallationsApi.md#postcreatesshuser) | **POST** /tcx/installations/{instance_id}/create/user/root | Create a root user
|
|
113
114
|
*Class3CXInstallationsApi* | [**postDeleteInstance**](docs/Class3CXInstallationsApi.md#postdeleteinstance) | **POST** /tcx/installations/{instance_id}/delete | Delete 3CX Instance
|
|
114
115
|
*Class3CXInstallationsApi* | [**postExtendDisk**](docs/Class3CXInstallationsApi.md#postextenddisk) | **POST** /tcx/installations/{instance_id}/disk/extend | Extend additional disk on 3CX Instance
|
package/api.ts
CHANGED
|
@@ -2841,6 +2841,12 @@ export interface InstanceEntity {
|
|
|
2841
2841
|
* @memberof InstanceEntity
|
|
2842
2842
|
*/
|
|
2843
2843
|
'status'?: string;
|
|
2844
|
+
/**
|
|
2845
|
+
* autoFailover
|
|
2846
|
+
* @type {number}
|
|
2847
|
+
* @memberof InstanceEntity
|
|
2848
|
+
*/
|
|
2849
|
+
'autoFailover'?: number;
|
|
2844
2850
|
}
|
|
2845
2851
|
/**
|
|
2846
2852
|
* InstanceFailoverEntity
|
|
@@ -7821,6 +7827,12 @@ export interface TcxInstallationModel {
|
|
|
7821
7827
|
* @memberof TcxInstallationModel
|
|
7822
7828
|
*/
|
|
7823
7829
|
'flavour'?: string | null;
|
|
7830
|
+
/**
|
|
7831
|
+
* Auto Failover
|
|
7832
|
+
* @type {boolean}
|
|
7833
|
+
* @memberof TcxInstallationModel
|
|
7834
|
+
*/
|
|
7835
|
+
'autoFailover'?: boolean;
|
|
7824
7836
|
}
|
|
7825
7837
|
/**
|
|
7826
7838
|
* 3CX Installations
|
|
@@ -13881,6 +13893,47 @@ export const Class3CXInstallationsApiAxiosParamCreator = function (configuration
|
|
|
13881
13893
|
|
|
13882
13894
|
|
|
13883
13895
|
|
|
13896
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13897
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13898
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13899
|
+
|
|
13900
|
+
return {
|
|
13901
|
+
url: toPathString(localVarUrlObj),
|
|
13902
|
+
options: localVarRequestOptions,
|
|
13903
|
+
};
|
|
13904
|
+
},
|
|
13905
|
+
/**
|
|
13906
|
+
* Update 3CX Instance Auto Failover
|
|
13907
|
+
* @summary Update 3CX Instance Auto Failover
|
|
13908
|
+
* @param {string} instanceId Instance ID
|
|
13909
|
+
* @param {boolean} enable Enable
|
|
13910
|
+
* @param {*} [options] Override http request option.
|
|
13911
|
+
* @throws {RequiredError}
|
|
13912
|
+
*/
|
|
13913
|
+
patchUpdateAutoFailover: async (instanceId: string, enable: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13914
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
13915
|
+
assertParamExists('patchUpdateAutoFailover', 'instanceId', instanceId)
|
|
13916
|
+
// verify required parameter 'enable' is not null or undefined
|
|
13917
|
+
assertParamExists('patchUpdateAutoFailover', 'enable', enable)
|
|
13918
|
+
const localVarPath = `/tcx/installations/{instance_id}/failover/auto`
|
|
13919
|
+
.replace(`{${"instance_id"}}`, encodeURIComponent(String(instanceId)));
|
|
13920
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13921
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13922
|
+
let baseOptions;
|
|
13923
|
+
if (configuration) {
|
|
13924
|
+
baseOptions = configuration.baseOptions;
|
|
13925
|
+
}
|
|
13926
|
+
|
|
13927
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
13928
|
+
const localVarHeaderParameter = {} as any;
|
|
13929
|
+
const localVarQueryParameter = {} as any;
|
|
13930
|
+
|
|
13931
|
+
if (enable !== undefined) {
|
|
13932
|
+
localVarQueryParameter['enable'] = enable;
|
|
13933
|
+
}
|
|
13934
|
+
|
|
13935
|
+
|
|
13936
|
+
|
|
13884
13937
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13885
13938
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13886
13939
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -14297,6 +14350,20 @@ export const Class3CXInstallationsApiFp = function(configuration?: Configuration
|
|
|
14297
14350
|
const localVarOperationServerBasePath = operationServerMap['Class3CXInstallationsApi.getGetInstallations']?.[localVarOperationServerIndex]?.url;
|
|
14298
14351
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14299
14352
|
},
|
|
14353
|
+
/**
|
|
14354
|
+
* Update 3CX Instance Auto Failover
|
|
14355
|
+
* @summary Update 3CX Instance Auto Failover
|
|
14356
|
+
* @param {string} instanceId Instance ID
|
|
14357
|
+
* @param {boolean} enable Enable
|
|
14358
|
+
* @param {*} [options] Override http request option.
|
|
14359
|
+
* @throws {RequiredError}
|
|
14360
|
+
*/
|
|
14361
|
+
async patchUpdateAutoFailover(instanceId: string, enable: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
14362
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchUpdateAutoFailover(instanceId, enable, options);
|
|
14363
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14364
|
+
const localVarOperationServerBasePath = operationServerMap['Class3CXInstallationsApi.patchUpdateAutoFailover']?.[localVarOperationServerIndex]?.url;
|
|
14365
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14366
|
+
},
|
|
14300
14367
|
/**
|
|
14301
14368
|
* Create a root user
|
|
14302
14369
|
* @summary Create a root user
|
|
@@ -14459,6 +14526,17 @@ export const Class3CXInstallationsApiFactory = function (configuration?: Configu
|
|
|
14459
14526
|
getGetInstallations(pageSize?: number, page?: number, customerId?: string, search?: string, status?: GetGetInstallationsStatusEnum, hosting?: GetGetInstallationsHostingEnum, installType?: GetGetInstallationsInstallTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<TcxInstallationsModel> {
|
|
14460
14527
|
return localVarFp.getGetInstallations(pageSize, page, customerId, search, status, hosting, installType, options).then((request) => request(axios, basePath));
|
|
14461
14528
|
},
|
|
14529
|
+
/**
|
|
14530
|
+
* Update 3CX Instance Auto Failover
|
|
14531
|
+
* @summary Update 3CX Instance Auto Failover
|
|
14532
|
+
* @param {string} instanceId Instance ID
|
|
14533
|
+
* @param {boolean} enable Enable
|
|
14534
|
+
* @param {*} [options] Override http request option.
|
|
14535
|
+
* @throws {RequiredError}
|
|
14536
|
+
*/
|
|
14537
|
+
patchUpdateAutoFailover(instanceId: string, enable: boolean, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
14538
|
+
return localVarFp.patchUpdateAutoFailover(instanceId, enable, options).then((request) => request(axios, basePath));
|
|
14539
|
+
},
|
|
14462
14540
|
/**
|
|
14463
14541
|
* Create a root user
|
|
14464
14542
|
* @summary Create a root user
|
|
@@ -14598,6 +14676,19 @@ export class Class3CXInstallationsApi extends BaseAPI {
|
|
|
14598
14676
|
return Class3CXInstallationsApiFp(this.configuration).getGetInstallations(pageSize, page, customerId, search, status, hosting, installType, options).then((request) => request(this.axios, this.basePath));
|
|
14599
14677
|
}
|
|
14600
14678
|
|
|
14679
|
+
/**
|
|
14680
|
+
* Update 3CX Instance Auto Failover
|
|
14681
|
+
* @summary Update 3CX Instance Auto Failover
|
|
14682
|
+
* @param {string} instanceId Instance ID
|
|
14683
|
+
* @param {boolean} enable Enable
|
|
14684
|
+
* @param {*} [options] Override http request option.
|
|
14685
|
+
* @throws {RequiredError}
|
|
14686
|
+
* @memberof Class3CXInstallationsApi
|
|
14687
|
+
*/
|
|
14688
|
+
public patchUpdateAutoFailover(instanceId: string, enable: boolean, options?: RawAxiosRequestConfig) {
|
|
14689
|
+
return Class3CXInstallationsApiFp(this.configuration).patchUpdateAutoFailover(instanceId, enable, options).then((request) => request(this.axios, this.basePath));
|
|
14690
|
+
}
|
|
14691
|
+
|
|
14601
14692
|
/**
|
|
14602
14693
|
* Create a root user
|
|
14603
14694
|
* @summary Create a root user
|
package/dist/api.d.ts
CHANGED
|
@@ -2819,6 +2819,12 @@ export interface InstanceEntity {
|
|
|
2819
2819
|
* @memberof InstanceEntity
|
|
2820
2820
|
*/
|
|
2821
2821
|
'status'?: string;
|
|
2822
|
+
/**
|
|
2823
|
+
* autoFailover
|
|
2824
|
+
* @type {number}
|
|
2825
|
+
* @memberof InstanceEntity
|
|
2826
|
+
*/
|
|
2827
|
+
'autoFailover'?: number;
|
|
2822
2828
|
}
|
|
2823
2829
|
/**
|
|
2824
2830
|
* InstanceFailoverEntity
|
|
@@ -7763,6 +7769,12 @@ export interface TcxInstallationModel {
|
|
|
7763
7769
|
* @memberof TcxInstallationModel
|
|
7764
7770
|
*/
|
|
7765
7771
|
'flavour'?: string | null;
|
|
7772
|
+
/**
|
|
7773
|
+
* Auto Failover
|
|
7774
|
+
* @type {boolean}
|
|
7775
|
+
* @memberof TcxInstallationModel
|
|
7776
|
+
*/
|
|
7777
|
+
'autoFailover'?: boolean;
|
|
7766
7778
|
}
|
|
7767
7779
|
/**
|
|
7768
7780
|
* 3CX Installations
|
|
@@ -11596,6 +11608,15 @@ export declare const Class3CXInstallationsApiAxiosParamCreator: (configuration?:
|
|
|
11596
11608
|
* @throws {RequiredError}
|
|
11597
11609
|
*/
|
|
11598
11610
|
getGetInstallations: (pageSize?: number, page?: number, customerId?: string, search?: string, status?: GetGetInstallationsStatusEnum, hosting?: GetGetInstallationsHostingEnum, installType?: GetGetInstallationsInstallTypeEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
11611
|
+
/**
|
|
11612
|
+
* Update 3CX Instance Auto Failover
|
|
11613
|
+
* @summary Update 3CX Instance Auto Failover
|
|
11614
|
+
* @param {string} instanceId Instance ID
|
|
11615
|
+
* @param {boolean} enable Enable
|
|
11616
|
+
* @param {*} [options] Override http request option.
|
|
11617
|
+
* @throws {RequiredError}
|
|
11618
|
+
*/
|
|
11619
|
+
patchUpdateAutoFailover: (instanceId: string, enable: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
11599
11620
|
/**
|
|
11600
11621
|
* Create a root user
|
|
11601
11622
|
* @summary Create a root user
|
|
@@ -11705,6 +11726,15 @@ export declare const Class3CXInstallationsApiFp: (configuration?: Configuration)
|
|
|
11705
11726
|
* @throws {RequiredError}
|
|
11706
11727
|
*/
|
|
11707
11728
|
getGetInstallations(pageSize?: number, page?: number, customerId?: string, search?: string, status?: GetGetInstallationsStatusEnum, hosting?: GetGetInstallationsHostingEnum, installType?: GetGetInstallationsInstallTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TcxInstallationsModel>>;
|
|
11729
|
+
/**
|
|
11730
|
+
* Update 3CX Instance Auto Failover
|
|
11731
|
+
* @summary Update 3CX Instance Auto Failover
|
|
11732
|
+
* @param {string} instanceId Instance ID
|
|
11733
|
+
* @param {boolean} enable Enable
|
|
11734
|
+
* @param {*} [options] Override http request option.
|
|
11735
|
+
* @throws {RequiredError}
|
|
11736
|
+
*/
|
|
11737
|
+
patchUpdateAutoFailover(instanceId: string, enable: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
11708
11738
|
/**
|
|
11709
11739
|
* Create a root user
|
|
11710
11740
|
* @summary Create a root user
|
|
@@ -11814,6 +11844,15 @@ export declare const Class3CXInstallationsApiFactory: (configuration?: Configura
|
|
|
11814
11844
|
* @throws {RequiredError}
|
|
11815
11845
|
*/
|
|
11816
11846
|
getGetInstallations(pageSize?: number, page?: number, customerId?: string, search?: string, status?: GetGetInstallationsStatusEnum, hosting?: GetGetInstallationsHostingEnum, installType?: GetGetInstallationsInstallTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<TcxInstallationsModel>;
|
|
11847
|
+
/**
|
|
11848
|
+
* Update 3CX Instance Auto Failover
|
|
11849
|
+
* @summary Update 3CX Instance Auto Failover
|
|
11850
|
+
* @param {string} instanceId Instance ID
|
|
11851
|
+
* @param {boolean} enable Enable
|
|
11852
|
+
* @param {*} [options] Override http request option.
|
|
11853
|
+
* @throws {RequiredError}
|
|
11854
|
+
*/
|
|
11855
|
+
patchUpdateAutoFailover(instanceId: string, enable: boolean, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
11817
11856
|
/**
|
|
11818
11857
|
* Create a root user
|
|
11819
11858
|
* @summary Create a root user
|
|
@@ -11927,6 +11966,16 @@ export declare class Class3CXInstallationsApi extends BaseAPI {
|
|
|
11927
11966
|
* @memberof Class3CXInstallationsApi
|
|
11928
11967
|
*/
|
|
11929
11968
|
getGetInstallations(pageSize?: number, page?: number, customerId?: string, search?: string, status?: GetGetInstallationsStatusEnum, hosting?: GetGetInstallationsHostingEnum, installType?: GetGetInstallationsInstallTypeEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TcxInstallationsModel, any, {}>>;
|
|
11969
|
+
/**
|
|
11970
|
+
* Update 3CX Instance Auto Failover
|
|
11971
|
+
* @summary Update 3CX Instance Auto Failover
|
|
11972
|
+
* @param {string} instanceId Instance ID
|
|
11973
|
+
* @param {boolean} enable Enable
|
|
11974
|
+
* @param {*} [options] Override http request option.
|
|
11975
|
+
* @throws {RequiredError}
|
|
11976
|
+
* @memberof Class3CXInstallationsApi
|
|
11977
|
+
*/
|
|
11978
|
+
patchUpdateAutoFailover(instanceId: string, enable: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
11930
11979
|
/**
|
|
11931
11980
|
* Create a root user
|
|
11932
11981
|
* @summary Create a root user
|
package/dist/api.js
CHANGED
|
@@ -5194,6 +5194,49 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
5194
5194
|
});
|
|
5195
5195
|
});
|
|
5196
5196
|
},
|
|
5197
|
+
/**
|
|
5198
|
+
* Update 3CX Instance Auto Failover
|
|
5199
|
+
* @summary Update 3CX Instance Auto Failover
|
|
5200
|
+
* @param {string} instanceId Instance ID
|
|
5201
|
+
* @param {boolean} enable Enable
|
|
5202
|
+
* @param {*} [options] Override http request option.
|
|
5203
|
+
* @throws {RequiredError}
|
|
5204
|
+
*/
|
|
5205
|
+
patchUpdateAutoFailover: function (instanceId_1, enable_1) {
|
|
5206
|
+
var args_1 = [];
|
|
5207
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
5208
|
+
args_1[_i - 2] = arguments[_i];
|
|
5209
|
+
}
|
|
5210
|
+
return __awaiter(_this, __spreadArray([instanceId_1, enable_1], args_1, true), void 0, function (instanceId, enable, options) {
|
|
5211
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
5212
|
+
if (options === void 0) { options = {}; }
|
|
5213
|
+
return __generator(this, function (_a) {
|
|
5214
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
5215
|
+
(0, common_1.assertParamExists)('patchUpdateAutoFailover', 'instanceId', instanceId);
|
|
5216
|
+
// verify required parameter 'enable' is not null or undefined
|
|
5217
|
+
(0, common_1.assertParamExists)('patchUpdateAutoFailover', 'enable', enable);
|
|
5218
|
+
localVarPath = "/tcx/installations/{instance_id}/failover/auto"
|
|
5219
|
+
.replace("{".concat("instance_id", "}"), encodeURIComponent(String(instanceId)));
|
|
5220
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5221
|
+
if (configuration) {
|
|
5222
|
+
baseOptions = configuration.baseOptions;
|
|
5223
|
+
}
|
|
5224
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
5225
|
+
localVarHeaderParameter = {};
|
|
5226
|
+
localVarQueryParameter = {};
|
|
5227
|
+
if (enable !== undefined) {
|
|
5228
|
+
localVarQueryParameter['enable'] = enable;
|
|
5229
|
+
}
|
|
5230
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5231
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5232
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5233
|
+
return [2 /*return*/, {
|
|
5234
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5235
|
+
options: localVarRequestOptions,
|
|
5236
|
+
}];
|
|
5237
|
+
});
|
|
5238
|
+
});
|
|
5239
|
+
},
|
|
5197
5240
|
/**
|
|
5198
5241
|
* Create a root user
|
|
5199
5242
|
* @summary Create a root user
|
|
@@ -5639,6 +5682,30 @@ var Class3CXInstallationsApiFp = function (configuration) {
|
|
|
5639
5682
|
});
|
|
5640
5683
|
});
|
|
5641
5684
|
},
|
|
5685
|
+
/**
|
|
5686
|
+
* Update 3CX Instance Auto Failover
|
|
5687
|
+
* @summary Update 3CX Instance Auto Failover
|
|
5688
|
+
* @param {string} instanceId Instance ID
|
|
5689
|
+
* @param {boolean} enable Enable
|
|
5690
|
+
* @param {*} [options] Override http request option.
|
|
5691
|
+
* @throws {RequiredError}
|
|
5692
|
+
*/
|
|
5693
|
+
patchUpdateAutoFailover: function (instanceId, enable, options) {
|
|
5694
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5695
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
5696
|
+
var _a, _b, _c;
|
|
5697
|
+
return __generator(this, function (_d) {
|
|
5698
|
+
switch (_d.label) {
|
|
5699
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateAutoFailover(instanceId, enable, options)];
|
|
5700
|
+
case 1:
|
|
5701
|
+
localVarAxiosArgs = _d.sent();
|
|
5702
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5703
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXInstallationsApi.patchUpdateAutoFailover']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5704
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
5705
|
+
}
|
|
5706
|
+
});
|
|
5707
|
+
});
|
|
5708
|
+
},
|
|
5642
5709
|
/**
|
|
5643
5710
|
* Create a root user
|
|
5644
5711
|
* @summary Create a root user
|
|
@@ -5891,6 +5958,17 @@ var Class3CXInstallationsApiFactory = function (configuration, basePath, axios)
|
|
|
5891
5958
|
getGetInstallations: function (pageSize, page, customerId, search, status, hosting, installType, options) {
|
|
5892
5959
|
return localVarFp.getGetInstallations(pageSize, page, customerId, search, status, hosting, installType, options).then(function (request) { return request(axios, basePath); });
|
|
5893
5960
|
},
|
|
5961
|
+
/**
|
|
5962
|
+
* Update 3CX Instance Auto Failover
|
|
5963
|
+
* @summary Update 3CX Instance Auto Failover
|
|
5964
|
+
* @param {string} instanceId Instance ID
|
|
5965
|
+
* @param {boolean} enable Enable
|
|
5966
|
+
* @param {*} [options] Override http request option.
|
|
5967
|
+
* @throws {RequiredError}
|
|
5968
|
+
*/
|
|
5969
|
+
patchUpdateAutoFailover: function (instanceId, enable, options) {
|
|
5970
|
+
return localVarFp.patchUpdateAutoFailover(instanceId, enable, options).then(function (request) { return request(axios, basePath); });
|
|
5971
|
+
},
|
|
5894
5972
|
/**
|
|
5895
5973
|
* Create a root user
|
|
5896
5974
|
* @summary Create a root user
|
|
@@ -6034,6 +6112,19 @@ var Class3CXInstallationsApi = /** @class */ (function (_super) {
|
|
|
6034
6112
|
var _this = this;
|
|
6035
6113
|
return (0, exports.Class3CXInstallationsApiFp)(this.configuration).getGetInstallations(pageSize, page, customerId, search, status, hosting, installType, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
6036
6114
|
};
|
|
6115
|
+
/**
|
|
6116
|
+
* Update 3CX Instance Auto Failover
|
|
6117
|
+
* @summary Update 3CX Instance Auto Failover
|
|
6118
|
+
* @param {string} instanceId Instance ID
|
|
6119
|
+
* @param {boolean} enable Enable
|
|
6120
|
+
* @param {*} [options] Override http request option.
|
|
6121
|
+
* @throws {RequiredError}
|
|
6122
|
+
* @memberof Class3CXInstallationsApi
|
|
6123
|
+
*/
|
|
6124
|
+
Class3CXInstallationsApi.prototype.patchUpdateAutoFailover = function (instanceId, enable, options) {
|
|
6125
|
+
var _this = this;
|
|
6126
|
+
return (0, exports.Class3CXInstallationsApiFp)(this.configuration).patchUpdateAutoFailover(instanceId, enable, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
6127
|
+
};
|
|
6037
6128
|
/**
|
|
6038
6129
|
* Create a root user
|
|
6039
6130
|
* @summary Create a root user
|
|
@@ -6,6 +6,7 @@ All URIs are relative to *http://api.yellowgrid.local*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**getGetDetails**](#getgetdetails) | **GET** /tcx/installations/{wizard_id}/details | Get 3CX Installation Details|
|
|
8
8
|
|[**getGetInstallations**](#getgetinstallations) | **GET** /tcx/installations | Get 3CX Installations|
|
|
9
|
+
|[**patchUpdateAutoFailover**](#patchupdateautofailover) | **PATCH** /tcx/installations/{instance_id}/failover/auto | Update 3CX Instance Auto Failover|
|
|
9
10
|
|[**postCreateSshUser**](#postcreatesshuser) | **POST** /tcx/installations/{instance_id}/create/user/root | Create a root user|
|
|
10
11
|
|[**postDeleteInstance**](#postdeleteinstance) | **POST** /tcx/installations/{instance_id}/delete | Delete 3CX Instance|
|
|
11
12
|
|[**postExtendDisk**](#postextenddisk) | **POST** /tcx/installations/{instance_id}/disk/extend | Extend additional disk on 3CX Instance|
|
|
@@ -142,6 +143,63 @@ No authorization required
|
|
|
142
143
|
|
|
143
144
|
[[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)
|
|
144
145
|
|
|
146
|
+
# **patchUpdateAutoFailover**
|
|
147
|
+
> patchUpdateAutoFailover()
|
|
148
|
+
|
|
149
|
+
Update 3CX Instance Auto Failover
|
|
150
|
+
|
|
151
|
+
### Example
|
|
152
|
+
|
|
153
|
+
```typescript
|
|
154
|
+
import {
|
|
155
|
+
Class3CXInstallationsApi,
|
|
156
|
+
Configuration
|
|
157
|
+
} from 'yellowgrid-api-ts';
|
|
158
|
+
|
|
159
|
+
const configuration = new Configuration();
|
|
160
|
+
const apiInstance = new Class3CXInstallationsApi(configuration);
|
|
161
|
+
|
|
162
|
+
let instanceId: string; //Instance ID (default to undefined)
|
|
163
|
+
let enable: boolean; //Enable (default to undefined)
|
|
164
|
+
|
|
165
|
+
const { status, data } = await apiInstance.patchUpdateAutoFailover(
|
|
166
|
+
instanceId,
|
|
167
|
+
enable
|
|
168
|
+
);
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
### Parameters
|
|
172
|
+
|
|
173
|
+
|Name | Type | Description | Notes|
|
|
174
|
+
|------------- | ------------- | ------------- | -------------|
|
|
175
|
+
| **instanceId** | [**string**] | Instance ID | defaults to undefined|
|
|
176
|
+
| **enable** | [**boolean**] | Enable | defaults to undefined|
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
### Return type
|
|
180
|
+
|
|
181
|
+
void (empty response body)
|
|
182
|
+
|
|
183
|
+
### Authorization
|
|
184
|
+
|
|
185
|
+
No authorization required
|
|
186
|
+
|
|
187
|
+
### HTTP request headers
|
|
188
|
+
|
|
189
|
+
- **Content-Type**: Not defined
|
|
190
|
+
- **Accept**: Not defined
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
### HTTP response details
|
|
194
|
+
| Status code | Description | Response headers |
|
|
195
|
+
|-------------|-------------|------------------|
|
|
196
|
+
|**200** | No Response | - |
|
|
197
|
+
|**400** | Bad Request | - |
|
|
198
|
+
|**401** | Unauthorised | - |
|
|
199
|
+
|**403** | Access Denied | - |
|
|
200
|
+
|
|
201
|
+
[[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)
|
|
202
|
+
|
|
145
203
|
# **postCreateSshUser**
|
|
146
204
|
> RootAccessModel postCreateSshUser()
|
|
147
205
|
|
package/docs/InstanceEntity.md
CHANGED
|
@@ -26,6 +26,7 @@ Name | Type | Description | Notes
|
|
|
26
26
|
**scriptFinished** | **string** | scriptFinished | [optional] [default to undefined]
|
|
27
27
|
**creationDate** | **string** | creationDate | [optional] [default to undefined]
|
|
28
28
|
**status** | **string** | status | [optional] [default to undefined]
|
|
29
|
+
**autoFailover** | **number** | autoFailover | [optional] [default to undefined]
|
|
29
30
|
|
|
30
31
|
## Example
|
|
31
32
|
|
|
@@ -53,6 +54,7 @@ const instance: InstanceEntity = {
|
|
|
53
54
|
scriptFinished,
|
|
54
55
|
creationDate,
|
|
55
56
|
status,
|
|
57
|
+
autoFailover,
|
|
56
58
|
};
|
|
57
59
|
```
|
|
58
60
|
|
|
@@ -34,6 +34,7 @@ Name | Type | Description | Notes
|
|
|
34
34
|
**version** | **string** | 3CX Software Version | [optional] [default to undefined]
|
|
35
35
|
**disk** | **number** | Recordings Disk Size | [optional] [default to undefined]
|
|
36
36
|
**flavour** | **string** | Instance Spec | [optional] [default to undefined]
|
|
37
|
+
**autoFailover** | **boolean** | Auto Failover | [optional] [default to undefined]
|
|
37
38
|
|
|
38
39
|
## Example
|
|
39
40
|
|
|
@@ -69,6 +70,7 @@ const instance: TcxInstallationModel = {
|
|
|
69
70
|
version,
|
|
70
71
|
disk,
|
|
71
72
|
flavour,
|
|
73
|
+
autoFailover,
|
|
72
74
|
};
|
|
73
75
|
```
|
|
74
76
|
|