@hostinger/sdk 1.46.0 → 1.46.1

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 CHANGED
@@ -1,9 +1,9 @@
1
- ## @hostinger/sdk@1.46.0
1
+ ## @hostinger/sdk@1.46.1
2
2
 
3
3
  For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
4
4
 
5
5
  ### Usage
6
6
 
7
7
  ```
8
- npm install @hostinger/sdk@1.46.0 --save
8
+ npm install @hostinger/sdk@1.46.1 --save
9
9
  ```
package/api.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.46.0
6
+ * API Version: 1.46.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -13863,6 +13863,12 @@ export interface VPSV1FirewallRulesReplaceRequest {
13863
13863
  * @memberof VPSV1FirewallRulesReplaceRequest
13864
13864
  */
13865
13865
  'rules': Array<VPSV1FirewallRulesStoreRequest>;
13866
+ /**
13867
+ * Synchronize the firewall group to all its virtual machines after replacing the rules
13868
+ * @type {boolean}
13869
+ * @memberof VPSV1FirewallRulesReplaceRequest
13870
+ */
13871
+ 'sync': boolean;
13866
13872
  }
13867
13873
  /**
13868
13874
  *
@@ -41856,15 +41862,14 @@ export const VPSFirewallApiAxiosParamCreator = function (configuration?: Configu
41856
41862
  };
41857
41863
  },
41858
41864
  /**
41859
- * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
41865
+ * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" parameter to trigger synchronization immediately.
41860
41866
  * @summary Replace all firewall rules in group
41861
41867
  * @param {number} firewallId Firewall ID
41862
41868
  * @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
41863
- * @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
41864
41869
  * @param {*} [options] Override http request option.
41865
41870
  * @throws {RequiredError}
41866
41871
  */
41867
- replaceAllFirewallRulesInGroupV1: async (firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, sync?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
41872
+ replaceAllFirewallRulesInGroupV1: async (firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
41868
41873
  // verify required parameter 'firewallId' is not null or undefined
41869
41874
  assertParamExists('replaceAllFirewallRulesInGroupV1', 'firewallId', firewallId)
41870
41875
  // verify required parameter 'vPSV1FirewallRulesReplaceRequest' is not null or undefined
@@ -41886,10 +41891,6 @@ export const VPSFirewallApiAxiosParamCreator = function (configuration?: Configu
41886
41891
  // http bearer authentication required
41887
41892
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
41888
41893
 
41889
- if (sync !== undefined) {
41890
- localVarQueryParameter['sync'] = sync;
41891
- }
41892
-
41893
41894
 
41894
41895
 
41895
41896
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -42105,16 +42106,15 @@ export const VPSFirewallApiFp = function(configuration?: Configuration) {
42105
42106
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
42106
42107
  },
42107
42108
  /**
42108
- * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
42109
+ * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" parameter to trigger synchronization immediately.
42109
42110
  * @summary Replace all firewall rules in group
42110
42111
  * @param {number} firewallId Firewall ID
42111
42112
  * @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
42112
- * @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
42113
42113
  * @param {*} [options] Override http request option.
42114
42114
  * @throws {RequiredError}
42115
42115
  */
42116
- async replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, sync?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1FirewallFirewallResource>> {
42117
- const localVarAxiosArgs = await localVarAxiosParamCreator.replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, sync, options);
42116
+ async replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1FirewallFirewallResource>> {
42117
+ const localVarAxiosArgs = await localVarAxiosParamCreator.replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, options);
42118
42118
  const localVarOperationServerBasePath = operationServerMap['VPSFirewallApi.replaceAllFirewallRulesInGroupV1']?.[0]?.url;
42119
42119
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
42120
42120
  },
@@ -42240,16 +42240,15 @@ export const VPSFirewallApiFactory = function (configuration?: Configuration, ba
42240
42240
  return localVarFp.getFirewallListV1(page, options).then((request) => request(axios, basePath));
42241
42241
  },
42242
42242
  /**
42243
- * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
42243
+ * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" parameter to trigger synchronization immediately.
42244
42244
  * @summary Replace all firewall rules in group
42245
42245
  * @param {number} firewallId Firewall ID
42246
42246
  * @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
42247
- * @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
42248
42247
  * @param {*} [options] Override http request option.
42249
42248
  * @throws {RequiredError}
42250
42249
  */
42251
- replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, sync?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1FirewallFirewallResource> {
42252
- return localVarFp.replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, sync, options).then((request) => request(axios, basePath));
42250
+ replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1FirewallFirewallResource> {
42251
+ return localVarFp.replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, options).then((request) => request(axios, basePath));
42253
42252
  },
42254
42253
  /**
42255
42254
  * Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
@@ -42385,17 +42384,16 @@ export class VPSFirewallApi extends BaseAPI {
42385
42384
  }
42386
42385
 
42387
42386
  /**
42388
- * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
42387
+ * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" parameter to trigger synchronization immediately.
42389
42388
  * @summary Replace all firewall rules in group
42390
42389
  * @param {number} firewallId Firewall ID
42391
42390
  * @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
42392
- * @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
42393
42391
  * @param {*} [options] Override http request option.
42394
42392
  * @throws {RequiredError}
42395
42393
  * @memberof VPSFirewallApi
42396
42394
  */
42397
- public replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, sync?: boolean, options?: RawAxiosRequestConfig) {
42398
- return VPSFirewallApiFp(this.configuration).replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, sync, options).then((request) => request(this.axios, this.basePath));
42395
+ public replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, options?: RawAxiosRequestConfig) {
42396
+ return VPSFirewallApiFp(this.configuration).replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, options).then((request) => request(this.axios, this.basePath));
42399
42397
  }
42400
42398
 
42401
42399
  /**
package/base.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.46.0
6
+ * API Version: 1.46.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/common.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.46.0
6
+ * API Version: 1.46.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/configuration.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.46.0
6
+ * API Version: 1.46.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -48,7 +48,7 @@ export class Configuration {
48
48
  this.baseOptions = {
49
49
  ...param.baseOptions,
50
50
  headers: {
51
- 'User-Agent': "hostinger-typescript-sdk/1.46.0",
51
+ 'User-Agent': "hostinger-typescript-sdk/1.46.1",
52
52
  ...param.baseOptions?.headers,
53
53
  },
54
54
  };
package/dist/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.46.0
4
+ * API Version: 1.46.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -13552,6 +13552,12 @@ export interface VPSV1FirewallRulesReplaceRequest {
13552
13552
  * @memberof VPSV1FirewallRulesReplaceRequest
13553
13553
  */
13554
13554
  'rules': Array<VPSV1FirewallRulesStoreRequest>;
13555
+ /**
13556
+ * Synchronize the firewall group to all its virtual machines after replacing the rules
13557
+ * @type {boolean}
13558
+ * @memberof VPSV1FirewallRulesReplaceRequest
13559
+ */
13560
+ 'sync': boolean;
13555
13561
  }
13556
13562
  /**
13557
13563
  *
@@ -28208,15 +28214,14 @@ export declare const VPSFirewallApiAxiosParamCreator: (configuration?: Configura
28208
28214
  */
28209
28215
  getFirewallListV1: (page?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
28210
28216
  /**
28211
- * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
28217
+ * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" parameter to trigger synchronization immediately.
28212
28218
  * @summary Replace all firewall rules in group
28213
28219
  * @param {number} firewallId Firewall ID
28214
28220
  * @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
28215
- * @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
28216
28221
  * @param {*} [options] Override http request option.
28217
28222
  * @throws {RequiredError}
28218
28223
  */
28219
- replaceAllFirewallRulesInGroupV1: (firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, sync?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
28224
+ replaceAllFirewallRulesInGroupV1: (firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
28220
28225
  /**
28221
28226
  * Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
28222
28227
  * @summary Sync firewall
@@ -28311,15 +28316,14 @@ export declare const VPSFirewallApiFp: (configuration?: Configuration) => {
28311
28316
  */
28312
28317
  getFirewallListV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1FirewallListResponse>>;
28313
28318
  /**
28314
- * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
28319
+ * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" parameter to trigger synchronization immediately.
28315
28320
  * @summary Replace all firewall rules in group
28316
28321
  * @param {number} firewallId Firewall ID
28317
28322
  * @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
28318
- * @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
28319
28323
  * @param {*} [options] Override http request option.
28320
28324
  * @throws {RequiredError}
28321
28325
  */
28322
- replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, sync?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1FirewallFirewallResource>>;
28326
+ replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1FirewallFirewallResource>>;
28323
28327
  /**
28324
28328
  * Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
28325
28329
  * @summary Sync firewall
@@ -28414,15 +28418,14 @@ export declare const VPSFirewallApiFactory: (configuration?: Configuration, base
28414
28418
  */
28415
28419
  getFirewallListV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1FirewallListResponse>;
28416
28420
  /**
28417
- * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
28421
+ * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" parameter to trigger synchronization immediately.
28418
28422
  * @summary Replace all firewall rules in group
28419
28423
  * @param {number} firewallId Firewall ID
28420
28424
  * @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
28421
- * @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
28422
28425
  * @param {*} [options] Override http request option.
28423
28426
  * @throws {RequiredError}
28424
28427
  */
28425
- replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, sync?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1FirewallFirewallResource>;
28428
+ replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1FirewallFirewallResource>;
28426
28429
  /**
28427
28430
  * Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
28428
28431
  * @summary Sync firewall
@@ -28527,16 +28530,15 @@ export declare class VPSFirewallApi extends BaseAPI {
28527
28530
  */
28528
28531
  getFirewallListV1(page?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSV1FirewallListResponse, any, {}, any>>;
28529
28532
  /**
28530
- * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
28533
+ * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" parameter to trigger synchronization immediately.
28531
28534
  * @summary Replace all firewall rules in group
28532
28535
  * @param {number} firewallId Firewall ID
28533
28536
  * @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
28534
- * @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
28535
28537
  * @param {*} [options] Override http request option.
28536
28538
  * @throws {RequiredError}
28537
28539
  * @memberof VPSFirewallApi
28538
28540
  */
28539
- replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, sync?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSV1FirewallFirewallResource, any, {}, any>>;
28541
+ replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSV1FirewallFirewallResource, any, {}, any>>;
28540
28542
  /**
28541
28543
  * Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
28542
28544
  * @summary Sync firewall
package/dist/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.46.0
7
+ * API Version: 1.46.1
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -25435,15 +25435,14 @@ const VPSFirewallApiAxiosParamCreator = function (configuration) {
25435
25435
  };
25436
25436
  }),
25437
25437
  /**
25438
- * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
25438
+ * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" parameter to trigger synchronization immediately.
25439
25439
  * @summary Replace all firewall rules in group
25440
25440
  * @param {number} firewallId Firewall ID
25441
25441
  * @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
25442
- * @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
25443
25442
  * @param {*} [options] Override http request option.
25444
25443
  * @throws {RequiredError}
25445
25444
  */
25446
- replaceAllFirewallRulesInGroupV1: (firewallId_1, vPSV1FirewallRulesReplaceRequest_1, sync_1, ...args_1) => __awaiter(this, [firewallId_1, vPSV1FirewallRulesReplaceRequest_1, sync_1, ...args_1], void 0, function* (firewallId, vPSV1FirewallRulesReplaceRequest, sync, options = {}) {
25445
+ replaceAllFirewallRulesInGroupV1: (firewallId_1, vPSV1FirewallRulesReplaceRequest_1, ...args_1) => __awaiter(this, [firewallId_1, vPSV1FirewallRulesReplaceRequest_1, ...args_1], void 0, function* (firewallId, vPSV1FirewallRulesReplaceRequest, options = {}) {
25447
25446
  // verify required parameter 'firewallId' is not null or undefined
25448
25447
  (0, common_1.assertParamExists)('replaceAllFirewallRulesInGroupV1', 'firewallId', firewallId);
25449
25448
  // verify required parameter 'vPSV1FirewallRulesReplaceRequest' is not null or undefined
@@ -25462,9 +25461,6 @@ const VPSFirewallApiAxiosParamCreator = function (configuration) {
25462
25461
  // authentication apiToken required
25463
25462
  // http bearer authentication required
25464
25463
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
25465
- if (sync !== undefined) {
25466
- localVarQueryParameter['sync'] = sync;
25467
- }
25468
25464
  localVarHeaderParameter['Content-Type'] = 'application/json';
25469
25465
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
25470
25466
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -25687,18 +25683,17 @@ const VPSFirewallApiFp = function (configuration) {
25687
25683
  });
25688
25684
  },
25689
25685
  /**
25690
- * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
25686
+ * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" parameter to trigger synchronization immediately.
25691
25687
  * @summary Replace all firewall rules in group
25692
25688
  * @param {number} firewallId Firewall ID
25693
25689
  * @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
25694
- * @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
25695
25690
  * @param {*} [options] Override http request option.
25696
25691
  * @throws {RequiredError}
25697
25692
  */
25698
- replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, sync, options) {
25693
+ replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, options) {
25699
25694
  return __awaiter(this, void 0, void 0, function* () {
25700
25695
  var _a, _b;
25701
- const localVarAxiosArgs = yield localVarAxiosParamCreator.replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, sync, options);
25696
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, options);
25702
25697
  const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['VPSFirewallApi.replaceAllFirewallRulesInGroupV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
25703
25698
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
25704
25699
  });
@@ -25831,16 +25826,15 @@ const VPSFirewallApiFactory = function (configuration, basePath, axios) {
25831
25826
  return localVarFp.getFirewallListV1(page, options).then((request) => request(axios, basePath));
25832
25827
  },
25833
25828
  /**
25834
- * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
25829
+ * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" parameter to trigger synchronization immediately.
25835
25830
  * @summary Replace all firewall rules in group
25836
25831
  * @param {number} firewallId Firewall ID
25837
25832
  * @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
25838
- * @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
25839
25833
  * @param {*} [options] Override http request option.
25840
25834
  * @throws {RequiredError}
25841
25835
  */
25842
- replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, sync, options) {
25843
- return localVarFp.replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, sync, options).then((request) => request(axios, basePath));
25836
+ replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, options) {
25837
+ return localVarFp.replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, options).then((request) => request(axios, basePath));
25844
25838
  },
25845
25839
  /**
25846
25840
  * Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
@@ -25968,17 +25962,16 @@ class VPSFirewallApi extends base_1.BaseAPI {
25968
25962
  return (0, exports.VPSFirewallApiFp)(this.configuration).getFirewallListV1(page, options).then((request) => request(this.axios, this.basePath));
25969
25963
  }
25970
25964
  /**
25971
- * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
25965
+ * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" parameter to trigger synchronization immediately.
25972
25966
  * @summary Replace all firewall rules in group
25973
25967
  * @param {number} firewallId Firewall ID
25974
25968
  * @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
25975
- * @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
25976
25969
  * @param {*} [options] Override http request option.
25977
25970
  * @throws {RequiredError}
25978
25971
  * @memberof VPSFirewallApi
25979
25972
  */
25980
- replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, sync, options) {
25981
- return (0, exports.VPSFirewallApiFp)(this.configuration).replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, sync, options).then((request) => request(this.axios, this.basePath));
25973
+ replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, options) {
25974
+ return (0, exports.VPSFirewallApiFp)(this.configuration).replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, options).then((request) => request(this.axios, this.basePath));
25982
25975
  }
25983
25976
  /**
25984
25977
  * Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
package/dist/base.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.46.0
4
+ * API Version: 1.46.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.46.0
7
+ * API Version: 1.46.1
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/common.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.46.0
4
+ * API Version: 1.46.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/common.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.46.0
7
+ * API Version: 1.46.1
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.46.0
4
+ * API Version: 1.46.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.46.0
7
+ * API Version: 1.46.1
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -16,7 +16,7 @@ class Configuration {
16
16
  var _a;
17
17
  this.accessToken = param.accessToken;
18
18
  this.basePath = param.basePath;
19
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.46.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
19
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.46.1" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
20
20
  this.formDataCtor = param.formDataCtor;
21
21
  }
22
22
  /**
package/dist/esm/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.46.0
4
+ * API Version: 1.46.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -13552,6 +13552,12 @@ export interface VPSV1FirewallRulesReplaceRequest {
13552
13552
  * @memberof VPSV1FirewallRulesReplaceRequest
13553
13553
  */
13554
13554
  'rules': Array<VPSV1FirewallRulesStoreRequest>;
13555
+ /**
13556
+ * Synchronize the firewall group to all its virtual machines after replacing the rules
13557
+ * @type {boolean}
13558
+ * @memberof VPSV1FirewallRulesReplaceRequest
13559
+ */
13560
+ 'sync': boolean;
13555
13561
  }
13556
13562
  /**
13557
13563
  *
@@ -28208,15 +28214,14 @@ export declare const VPSFirewallApiAxiosParamCreator: (configuration?: Configura
28208
28214
  */
28209
28215
  getFirewallListV1: (page?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
28210
28216
  /**
28211
- * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
28217
+ * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" parameter to trigger synchronization immediately.
28212
28218
  * @summary Replace all firewall rules in group
28213
28219
  * @param {number} firewallId Firewall ID
28214
28220
  * @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
28215
- * @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
28216
28221
  * @param {*} [options] Override http request option.
28217
28222
  * @throws {RequiredError}
28218
28223
  */
28219
- replaceAllFirewallRulesInGroupV1: (firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, sync?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
28224
+ replaceAllFirewallRulesInGroupV1: (firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
28220
28225
  /**
28221
28226
  * Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
28222
28227
  * @summary Sync firewall
@@ -28311,15 +28316,14 @@ export declare const VPSFirewallApiFp: (configuration?: Configuration) => {
28311
28316
  */
28312
28317
  getFirewallListV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1FirewallListResponse>>;
28313
28318
  /**
28314
- * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
28319
+ * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" parameter to trigger synchronization immediately.
28315
28320
  * @summary Replace all firewall rules in group
28316
28321
  * @param {number} firewallId Firewall ID
28317
28322
  * @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
28318
- * @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
28319
28323
  * @param {*} [options] Override http request option.
28320
28324
  * @throws {RequiredError}
28321
28325
  */
28322
- replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, sync?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1FirewallFirewallResource>>;
28326
+ replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1FirewallFirewallResource>>;
28323
28327
  /**
28324
28328
  * Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
28325
28329
  * @summary Sync firewall
@@ -28414,15 +28418,14 @@ export declare const VPSFirewallApiFactory: (configuration?: Configuration, base
28414
28418
  */
28415
28419
  getFirewallListV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1FirewallListResponse>;
28416
28420
  /**
28417
- * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
28421
+ * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" parameter to trigger synchronization immediately.
28418
28422
  * @summary Replace all firewall rules in group
28419
28423
  * @param {number} firewallId Firewall ID
28420
28424
  * @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
28421
- * @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
28422
28425
  * @param {*} [options] Override http request option.
28423
28426
  * @throws {RequiredError}
28424
28427
  */
28425
- replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, sync?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1FirewallFirewallResource>;
28428
+ replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1FirewallFirewallResource>;
28426
28429
  /**
28427
28430
  * Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
28428
28431
  * @summary Sync firewall
@@ -28527,16 +28530,15 @@ export declare class VPSFirewallApi extends BaseAPI {
28527
28530
  */
28528
28531
  getFirewallListV1(page?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSV1FirewallListResponse, any, {}, any>>;
28529
28532
  /**
28530
- * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
28533
+ * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" parameter to trigger synchronization immediately.
28531
28534
  * @summary Replace all firewall rules in group
28532
28535
  * @param {number} firewallId Firewall ID
28533
28536
  * @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
28534
- * @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
28535
28537
  * @param {*} [options] Override http request option.
28536
28538
  * @throws {RequiredError}
28537
28539
  * @memberof VPSFirewallApi
28538
28540
  */
28539
- replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, sync?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSV1FirewallFirewallResource, any, {}, any>>;
28541
+ replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSV1FirewallFirewallResource, any, {}, any>>;
28540
28542
  /**
28541
28543
  * Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
28542
28544
  * @summary Sync firewall
package/dist/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.46.0
6
+ * API Version: 1.46.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -25154,15 +25154,14 @@ export const VPSFirewallApiAxiosParamCreator = function (configuration) {
25154
25154
  };
25155
25155
  }),
25156
25156
  /**
25157
- * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
25157
+ * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" parameter to trigger synchronization immediately.
25158
25158
  * @summary Replace all firewall rules in group
25159
25159
  * @param {number} firewallId Firewall ID
25160
25160
  * @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
25161
- * @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
25162
25161
  * @param {*} [options] Override http request option.
25163
25162
  * @throws {RequiredError}
25164
25163
  */
25165
- replaceAllFirewallRulesInGroupV1: (firewallId_1, vPSV1FirewallRulesReplaceRequest_1, sync_1, ...args_1) => __awaiter(this, [firewallId_1, vPSV1FirewallRulesReplaceRequest_1, sync_1, ...args_1], void 0, function* (firewallId, vPSV1FirewallRulesReplaceRequest, sync, options = {}) {
25164
+ replaceAllFirewallRulesInGroupV1: (firewallId_1, vPSV1FirewallRulesReplaceRequest_1, ...args_1) => __awaiter(this, [firewallId_1, vPSV1FirewallRulesReplaceRequest_1, ...args_1], void 0, function* (firewallId, vPSV1FirewallRulesReplaceRequest, options = {}) {
25166
25165
  // verify required parameter 'firewallId' is not null or undefined
25167
25166
  assertParamExists('replaceAllFirewallRulesInGroupV1', 'firewallId', firewallId);
25168
25167
  // verify required parameter 'vPSV1FirewallRulesReplaceRequest' is not null or undefined
@@ -25181,9 +25180,6 @@ export const VPSFirewallApiAxiosParamCreator = function (configuration) {
25181
25180
  // authentication apiToken required
25182
25181
  // http bearer authentication required
25183
25182
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
25184
- if (sync !== undefined) {
25185
- localVarQueryParameter['sync'] = sync;
25186
- }
25187
25183
  localVarHeaderParameter['Content-Type'] = 'application/json';
25188
25184
  setSearchParams(localVarUrlObj, localVarQueryParameter);
25189
25185
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -25405,18 +25401,17 @@ export const VPSFirewallApiFp = function (configuration) {
25405
25401
  });
25406
25402
  },
25407
25403
  /**
25408
- * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
25404
+ * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" parameter to trigger synchronization immediately.
25409
25405
  * @summary Replace all firewall rules in group
25410
25406
  * @param {number} firewallId Firewall ID
25411
25407
  * @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
25412
- * @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
25413
25408
  * @param {*} [options] Override http request option.
25414
25409
  * @throws {RequiredError}
25415
25410
  */
25416
- replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, sync, options) {
25411
+ replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, options) {
25417
25412
  return __awaiter(this, void 0, void 0, function* () {
25418
25413
  var _a, _b;
25419
- const localVarAxiosArgs = yield localVarAxiosParamCreator.replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, sync, options);
25414
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, options);
25420
25415
  const localVarOperationServerBasePath = (_b = (_a = operationServerMap['VPSFirewallApi.replaceAllFirewallRulesInGroupV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
25421
25416
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
25422
25417
  });
@@ -25548,16 +25543,15 @@ export const VPSFirewallApiFactory = function (configuration, basePath, axios) {
25548
25543
  return localVarFp.getFirewallListV1(page, options).then((request) => request(axios, basePath));
25549
25544
  },
25550
25545
  /**
25551
- * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
25546
+ * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" parameter to trigger synchronization immediately.
25552
25547
  * @summary Replace all firewall rules in group
25553
25548
  * @param {number} firewallId Firewall ID
25554
25549
  * @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
25555
- * @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
25556
25550
  * @param {*} [options] Override http request option.
25557
25551
  * @throws {RequiredError}
25558
25552
  */
25559
- replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, sync, options) {
25560
- return localVarFp.replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, sync, options).then((request) => request(axios, basePath));
25553
+ replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, options) {
25554
+ return localVarFp.replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, options).then((request) => request(axios, basePath));
25561
25555
  },
25562
25556
  /**
25563
25557
  * Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
@@ -25684,17 +25678,16 @@ export class VPSFirewallApi extends BaseAPI {
25684
25678
  return VPSFirewallApiFp(this.configuration).getFirewallListV1(page, options).then((request) => request(this.axios, this.basePath));
25685
25679
  }
25686
25680
  /**
25687
- * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
25681
+ * Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" parameter to trigger synchronization immediately.
25688
25682
  * @summary Replace all firewall rules in group
25689
25683
  * @param {number} firewallId Firewall ID
25690
25684
  * @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
25691
- * @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
25692
25685
  * @param {*} [options] Override http request option.
25693
25686
  * @throws {RequiredError}
25694
25687
  * @memberof VPSFirewallApi
25695
25688
  */
25696
- replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, sync, options) {
25697
- return VPSFirewallApiFp(this.configuration).replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, sync, options).then((request) => request(this.axios, this.basePath));
25689
+ replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, options) {
25690
+ return VPSFirewallApiFp(this.configuration).replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, options).then((request) => request(this.axios, this.basePath));
25698
25691
  }
25699
25692
  /**
25700
25693
  * Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.46.0
4
+ * API Version: 1.46.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/base.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.46.0
6
+ * API Version: 1.46.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.46.0
4
+ * API Version: 1.46.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.46.0
6
+ * API Version: 1.46.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.46.0
4
+ * API Version: 1.46.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.46.0
6
+ * API Version: 1.46.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -13,7 +13,7 @@ export class Configuration {
13
13
  var _a;
14
14
  this.accessToken = param.accessToken;
15
15
  this.basePath = param.basePath;
16
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.46.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
16
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.46.1" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
17
17
  this.formDataCtor = param.formDataCtor;
18
18
  }
19
19
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.46.0
4
+ * API Version: 1.46.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.46.0
6
+ * API Version: 1.46.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.46.0
4
+ * API Version: 1.46.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.46.0
7
+ * API Version: 1.46.1
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -461,7 +461,7 @@ const { status, data } = await apiInstance.getFirewallListV1(
461
461
  # **replaceAllFirewallRulesInGroupV1**
462
462
  > VPSV1FirewallFirewallResource replaceAllFirewallRulesInGroupV1(vPSV1FirewallRulesReplaceRequest)
463
463
 
464
- Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
464
+ Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" parameter to trigger synchronization immediately.
465
465
 
466
466
  ### Example
467
467
 
@@ -477,12 +477,10 @@ const apiInstance = new VPSFirewallApi(configuration);
477
477
 
478
478
  let firewallId: number; //Firewall ID (default to undefined)
479
479
  let vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest; //
480
- let sync: boolean; //Synchronize the firewall group to all its virtual machines after replacing the rules (optional) (default to undefined)
481
480
 
482
481
  const { status, data } = await apiInstance.replaceAllFirewallRulesInGroupV1(
483
482
  firewallId,
484
- vPSV1FirewallRulesReplaceRequest,
485
- sync
483
+ vPSV1FirewallRulesReplaceRequest
486
484
  );
487
485
  ```
488
486
 
@@ -492,7 +490,6 @@ const { status, data } = await apiInstance.replaceAllFirewallRulesInGroupV1(
492
490
  |------------- | ------------- | ------------- | -------------|
493
491
  | **vPSV1FirewallRulesReplaceRequest** | **VPSV1FirewallRulesReplaceRequest**| | |
494
492
  | **firewallId** | [**number**] | Firewall ID | defaults to undefined|
495
- | **sync** | [**boolean**] | Synchronize the firewall group to all its virtual machines after replacing the rules | (optional) defaults to undefined|
496
493
 
497
494
 
498
495
  ### Return type
@@ -6,6 +6,7 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **rules** | [**Array&lt;VPSV1FirewallRulesStoreRequest&gt;**](VPSV1FirewallRulesStoreRequest.md) | The complete set of firewall rules that atomically replaces all existing rules in the group | [default to undefined]
9
+ **sync** | **boolean** | Synchronize the firewall group to all its virtual machines after replacing the rules | [optional] [default to undefined]
9
10
 
10
11
  ## Example
11
12
 
@@ -14,6 +15,7 @@ import { VPSV1FirewallRulesReplaceRequest } from '@hostinger/sdk';
14
15
 
15
16
  const instance: VPSV1FirewallRulesReplaceRequest = {
16
17
  rules,
18
+ sync,
17
19
  };
18
20
  ```
19
21
 
package/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.46.0
6
+ * API Version: 1.46.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostinger/sdk",
3
- "version": "1.46.0",
3
+ "version": "1.46.1",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {