@hostinger/sdk 1.47.0 → 1.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
- ## @hostinger/sdk@1.47.0
1
+ ## @hostinger/sdk@1.48.0
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.47.0 --save
8
+ npm install @hostinger/sdk@1.48.0 --save
9
9
  ```
package/api.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.47.0
6
+ * API Version: 1.48.0
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
@@ -42330,11 +42330,50 @@ export const VPSFirewallApiAxiosParamCreator = function (configuration?: Configu
42330
42330
  };
42331
42331
  },
42332
42332
  /**
42333
- * 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.
42333
+ * Sync a firewall\'s rules to every virtual machine it\'s assigned to. Firewall can lose sync with a virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to all VPS instances assigned to the firewall.
42334
+ * @summary Sync firewall to all assigned VMs
42335
+ * @param {number} firewallId Firewall ID
42336
+ * @param {*} [options] Override http request option.
42337
+ * @throws {RequiredError}
42338
+ */
42339
+ syncFirewallToAllAssignedVMsV1: async (firewallId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
42340
+ // verify required parameter 'firewallId' is not null or undefined
42341
+ assertParamExists('syncFirewallToAllAssignedVMsV1', 'firewallId', firewallId)
42342
+ const localVarPath = `/api/vps/v1/firewall/{firewallId}/sync`
42343
+ .replace(`{${"firewallId"}}`, encodeURIComponent(String(firewallId)));
42344
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
42345
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
42346
+ let baseOptions;
42347
+ if (configuration) {
42348
+ baseOptions = configuration.baseOptions;
42349
+ }
42350
+
42351
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
42352
+ const localVarHeaderParameter = {} as any;
42353
+ const localVarQueryParameter = {} as any;
42354
+
42355
+ // authentication apiToken required
42356
+ // http bearer authentication required
42357
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
42358
+
42359
+
42360
+
42361
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
42362
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
42363
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
42364
+
42365
+ return {
42366
+ url: toPathString(localVarUrlObj),
42367
+ options: localVarRequestOptions,
42368
+ };
42369
+ },
42370
+ /**
42371
+ * Deprecated: use `POST /api/vps/v1/firewall/{firewallId}/sync` instead, which syncs the firewall to all virtual machines assigned to it. 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.
42334
42372
  * @summary Sync firewall
42335
42373
  * @param {number} firewallId Firewall ID
42336
42374
  * @param {number} virtualMachineId Virtual Machine ID
42337
42375
  * @param {*} [options] Override http request option.
42376
+ * @deprecated
42338
42377
  * @throws {RequiredError}
42339
42378
  */
42340
42379
  syncFirewallV1: async (firewallId: number, virtualMachineId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
@@ -42543,11 +42582,24 @@ export const VPSFirewallApiFp = function(configuration?: Configuration) {
42543
42582
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
42544
42583
  },
42545
42584
  /**
42546
- * 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.
42585
+ * Sync a firewall\'s rules to every virtual machine it\'s assigned to. Firewall can lose sync with a virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to all VPS instances assigned to the firewall.
42586
+ * @summary Sync firewall to all assigned VMs
42587
+ * @param {number} firewallId Firewall ID
42588
+ * @param {*} [options] Override http request option.
42589
+ * @throws {RequiredError}
42590
+ */
42591
+ async syncFirewallToAllAssignedVMsV1(firewallId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
42592
+ const localVarAxiosArgs = await localVarAxiosParamCreator.syncFirewallToAllAssignedVMsV1(firewallId, options);
42593
+ const localVarOperationServerBasePath = operationServerMap['VPSFirewallApi.syncFirewallToAllAssignedVMsV1']?.[0]?.url;
42594
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
42595
+ },
42596
+ /**
42597
+ * Deprecated: use `POST /api/vps/v1/firewall/{firewallId}/sync` instead, which syncs the firewall to all virtual machines assigned to it. 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.
42547
42598
  * @summary Sync firewall
42548
42599
  * @param {number} firewallId Firewall ID
42549
42600
  * @param {number} virtualMachineId Virtual Machine ID
42550
42601
  * @param {*} [options] Override http request option.
42602
+ * @deprecated
42551
42603
  * @throws {RequiredError}
42552
42604
  */
42553
42605
  async syncFirewallV1(firewallId: number, virtualMachineId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1ActionActionResource>> {
@@ -42675,11 +42727,22 @@ export const VPSFirewallApiFactory = function (configuration?: Configuration, ba
42675
42727
  return localVarFp.replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, options).then((request) => request(axios, basePath));
42676
42728
  },
42677
42729
  /**
42678
- * 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.
42730
+ * Sync a firewall\'s rules to every virtual machine it\'s assigned to. Firewall can lose sync with a virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to all VPS instances assigned to the firewall.
42731
+ * @summary Sync firewall to all assigned VMs
42732
+ * @param {number} firewallId Firewall ID
42733
+ * @param {*} [options] Override http request option.
42734
+ * @throws {RequiredError}
42735
+ */
42736
+ syncFirewallToAllAssignedVMsV1(firewallId: number, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
42737
+ return localVarFp.syncFirewallToAllAssignedVMsV1(firewallId, options).then((request) => request(axios, basePath));
42738
+ },
42739
+ /**
42740
+ * Deprecated: use `POST /api/vps/v1/firewall/{firewallId}/sync` instead, which syncs the firewall to all virtual machines assigned to it. 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.
42679
42741
  * @summary Sync firewall
42680
42742
  * @param {number} firewallId Firewall ID
42681
42743
  * @param {number} virtualMachineId Virtual Machine ID
42682
42744
  * @param {*} [options] Override http request option.
42745
+ * @deprecated
42683
42746
  * @throws {RequiredError}
42684
42747
  */
42685
42748
  syncFirewallV1(firewallId: number, virtualMachineId: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1ActionActionResource> {
@@ -42821,11 +42884,24 @@ export class VPSFirewallApi extends BaseAPI {
42821
42884
  }
42822
42885
 
42823
42886
  /**
42824
- * 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.
42887
+ * Sync a firewall\'s rules to every virtual machine it\'s assigned to. Firewall can lose sync with a virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to all VPS instances assigned to the firewall.
42888
+ * @summary Sync firewall to all assigned VMs
42889
+ * @param {number} firewallId Firewall ID
42890
+ * @param {*} [options] Override http request option.
42891
+ * @throws {RequiredError}
42892
+ * @memberof VPSFirewallApi
42893
+ */
42894
+ public syncFirewallToAllAssignedVMsV1(firewallId: number, options?: RawAxiosRequestConfig) {
42895
+ return VPSFirewallApiFp(this.configuration).syncFirewallToAllAssignedVMsV1(firewallId, options).then((request) => request(this.axios, this.basePath));
42896
+ }
42897
+
42898
+ /**
42899
+ * Deprecated: use `POST /api/vps/v1/firewall/{firewallId}/sync` instead, which syncs the firewall to all virtual machines assigned to it. 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.
42825
42900
  * @summary Sync firewall
42826
42901
  * @param {number} firewallId Firewall ID
42827
42902
  * @param {number} virtualMachineId Virtual Machine ID
42828
42903
  * @param {*} [options] Override http request option.
42904
+ * @deprecated
42829
42905
  * @throws {RequiredError}
42830
42906
  * @memberof VPSFirewallApi
42831
42907
  */
package/base.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.47.0
6
+ * API Version: 1.48.0
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.47.0
6
+ * API Version: 1.48.0
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.47.0
6
+ * API Version: 1.48.0
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.47.0",
51
+ 'User-Agent': "hostinger-typescript-sdk/1.48.0",
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.47.0
4
+ * API Version: 1.48.0
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
@@ -28505,11 +28505,20 @@ export declare const VPSFirewallApiAxiosParamCreator: (configuration?: Configura
28505
28505
  */
28506
28506
  replaceAllFirewallRulesInGroupV1: (firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
28507
28507
  /**
28508
- * 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.
28508
+ * Sync a firewall\'s rules to every virtual machine it\'s assigned to. Firewall can lose sync with a virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to all VPS instances assigned to the firewall.
28509
+ * @summary Sync firewall to all assigned VMs
28510
+ * @param {number} firewallId Firewall ID
28511
+ * @param {*} [options] Override http request option.
28512
+ * @throws {RequiredError}
28513
+ */
28514
+ syncFirewallToAllAssignedVMsV1: (firewallId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
28515
+ /**
28516
+ * Deprecated: use `POST /api/vps/v1/firewall/{firewallId}/sync` instead, which syncs the firewall to all virtual machines assigned to it. 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.
28509
28517
  * @summary Sync firewall
28510
28518
  * @param {number} firewallId Firewall ID
28511
28519
  * @param {number} virtualMachineId Virtual Machine ID
28512
28520
  * @param {*} [options] Override http request option.
28521
+ * @deprecated
28513
28522
  * @throws {RequiredError}
28514
28523
  */
28515
28524
  syncFirewallV1: (firewallId: number, virtualMachineId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
@@ -28607,11 +28616,20 @@ export declare const VPSFirewallApiFp: (configuration?: Configuration) => {
28607
28616
  */
28608
28617
  replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1FirewallFirewallResource>>;
28609
28618
  /**
28610
- * 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.
28619
+ * Sync a firewall\'s rules to every virtual machine it\'s assigned to. Firewall can lose sync with a virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to all VPS instances assigned to the firewall.
28620
+ * @summary Sync firewall to all assigned VMs
28621
+ * @param {number} firewallId Firewall ID
28622
+ * @param {*} [options] Override http request option.
28623
+ * @throws {RequiredError}
28624
+ */
28625
+ syncFirewallToAllAssignedVMsV1(firewallId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
28626
+ /**
28627
+ * Deprecated: use `POST /api/vps/v1/firewall/{firewallId}/sync` instead, which syncs the firewall to all virtual machines assigned to it. 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.
28611
28628
  * @summary Sync firewall
28612
28629
  * @param {number} firewallId Firewall ID
28613
28630
  * @param {number} virtualMachineId Virtual Machine ID
28614
28631
  * @param {*} [options] Override http request option.
28632
+ * @deprecated
28615
28633
  * @throws {RequiredError}
28616
28634
  */
28617
28635
  syncFirewallV1(firewallId: number, virtualMachineId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1ActionActionResource>>;
@@ -28709,11 +28727,20 @@ export declare const VPSFirewallApiFactory: (configuration?: Configuration, base
28709
28727
  */
28710
28728
  replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1FirewallFirewallResource>;
28711
28729
  /**
28712
- * 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.
28730
+ * Sync a firewall\'s rules to every virtual machine it\'s assigned to. Firewall can lose sync with a virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to all VPS instances assigned to the firewall.
28731
+ * @summary Sync firewall to all assigned VMs
28732
+ * @param {number} firewallId Firewall ID
28733
+ * @param {*} [options] Override http request option.
28734
+ * @throws {RequiredError}
28735
+ */
28736
+ syncFirewallToAllAssignedVMsV1(firewallId: number, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
28737
+ /**
28738
+ * Deprecated: use `POST /api/vps/v1/firewall/{firewallId}/sync` instead, which syncs the firewall to all virtual machines assigned to it. 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.
28713
28739
  * @summary Sync firewall
28714
28740
  * @param {number} firewallId Firewall ID
28715
28741
  * @param {number} virtualMachineId Virtual Machine ID
28716
28742
  * @param {*} [options] Override http request option.
28743
+ * @deprecated
28717
28744
  * @throws {RequiredError}
28718
28745
  */
28719
28746
  syncFirewallV1(firewallId: number, virtualMachineId: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1ActionActionResource>;
@@ -28822,11 +28849,21 @@ export declare class VPSFirewallApi extends BaseAPI {
28822
28849
  */
28823
28850
  replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSV1FirewallFirewallResource, any, {}, any>>;
28824
28851
  /**
28825
- * 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.
28852
+ * Sync a firewall\'s rules to every virtual machine it\'s assigned to. Firewall can lose sync with a virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to all VPS instances assigned to the firewall.
28853
+ * @summary Sync firewall to all assigned VMs
28854
+ * @param {number} firewallId Firewall ID
28855
+ * @param {*} [options] Override http request option.
28856
+ * @throws {RequiredError}
28857
+ * @memberof VPSFirewallApi
28858
+ */
28859
+ syncFirewallToAllAssignedVMsV1(firewallId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
28860
+ /**
28861
+ * Deprecated: use `POST /api/vps/v1/firewall/{firewallId}/sync` instead, which syncs the firewall to all virtual machines assigned to it. 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.
28826
28862
  * @summary Sync firewall
28827
28863
  * @param {number} firewallId Firewall ID
28828
28864
  * @param {number} virtualMachineId Virtual Machine ID
28829
28865
  * @param {*} [options] Override http request option.
28866
+ * @deprecated
28830
28867
  * @throws {RequiredError}
28831
28868
  * @memberof VPSFirewallApi
28832
28869
  */
package/dist/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.47.0
7
+ * API Version: 1.48.0
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
@@ -25741,11 +25741,44 @@ const VPSFirewallApiAxiosParamCreator = function (configuration) {
25741
25741
  };
25742
25742
  }),
25743
25743
  /**
25744
- * 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.
25744
+ * Sync a firewall\'s rules to every virtual machine it\'s assigned to. Firewall can lose sync with a virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to all VPS instances assigned to the firewall.
25745
+ * @summary Sync firewall to all assigned VMs
25746
+ * @param {number} firewallId Firewall ID
25747
+ * @param {*} [options] Override http request option.
25748
+ * @throws {RequiredError}
25749
+ */
25750
+ syncFirewallToAllAssignedVMsV1: (firewallId_1, ...args_1) => __awaiter(this, [firewallId_1, ...args_1], void 0, function* (firewallId, options = {}) {
25751
+ // verify required parameter 'firewallId' is not null or undefined
25752
+ (0, common_1.assertParamExists)('syncFirewallToAllAssignedVMsV1', 'firewallId', firewallId);
25753
+ const localVarPath = `/api/vps/v1/firewall/{firewallId}/sync`
25754
+ .replace(`{${"firewallId"}}`, encodeURIComponent(String(firewallId)));
25755
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
25756
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
25757
+ let baseOptions;
25758
+ if (configuration) {
25759
+ baseOptions = configuration.baseOptions;
25760
+ }
25761
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
25762
+ const localVarHeaderParameter = {};
25763
+ const localVarQueryParameter = {};
25764
+ // authentication apiToken required
25765
+ // http bearer authentication required
25766
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
25767
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
25768
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
25769
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
25770
+ return {
25771
+ url: (0, common_1.toPathString)(localVarUrlObj),
25772
+ options: localVarRequestOptions,
25773
+ };
25774
+ }),
25775
+ /**
25776
+ * Deprecated: use `POST /api/vps/v1/firewall/{firewallId}/sync` instead, which syncs the firewall to all virtual machines assigned to it. 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.
25745
25777
  * @summary Sync firewall
25746
25778
  * @param {number} firewallId Firewall ID
25747
25779
  * @param {number} virtualMachineId Virtual Machine ID
25748
25780
  * @param {*} [options] Override http request option.
25781
+ * @deprecated
25749
25782
  * @throws {RequiredError}
25750
25783
  */
25751
25784
  syncFirewallV1: (firewallId_1, virtualMachineId_1, ...args_1) => __awaiter(this, [firewallId_1, virtualMachineId_1, ...args_1], void 0, function* (firewallId, virtualMachineId, options = {}) {
@@ -25968,11 +26001,27 @@ const VPSFirewallApiFp = function (configuration) {
25968
26001
  });
25969
26002
  },
25970
26003
  /**
25971
- * 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.
26004
+ * Sync a firewall\'s rules to every virtual machine it\'s assigned to. Firewall can lose sync with a virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to all VPS instances assigned to the firewall.
26005
+ * @summary Sync firewall to all assigned VMs
26006
+ * @param {number} firewallId Firewall ID
26007
+ * @param {*} [options] Override http request option.
26008
+ * @throws {RequiredError}
26009
+ */
26010
+ syncFirewallToAllAssignedVMsV1(firewallId, options) {
26011
+ return __awaiter(this, void 0, void 0, function* () {
26012
+ var _a, _b;
26013
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.syncFirewallToAllAssignedVMsV1(firewallId, options);
26014
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['VPSFirewallApi.syncFirewallToAllAssignedVMsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
26015
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26016
+ });
26017
+ },
26018
+ /**
26019
+ * Deprecated: use `POST /api/vps/v1/firewall/{firewallId}/sync` instead, which syncs the firewall to all virtual machines assigned to it. 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.
25972
26020
  * @summary Sync firewall
25973
26021
  * @param {number} firewallId Firewall ID
25974
26022
  * @param {number} virtualMachineId Virtual Machine ID
25975
26023
  * @param {*} [options] Override http request option.
26024
+ * @deprecated
25976
26025
  * @throws {RequiredError}
25977
26026
  */
25978
26027
  syncFirewallV1(firewallId, virtualMachineId, options) {
@@ -26106,11 +26155,22 @@ const VPSFirewallApiFactory = function (configuration, basePath, axios) {
26106
26155
  return localVarFp.replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, options).then((request) => request(axios, basePath));
26107
26156
  },
26108
26157
  /**
26109
- * 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.
26158
+ * Sync a firewall\'s rules to every virtual machine it\'s assigned to. Firewall can lose sync with a virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to all VPS instances assigned to the firewall.
26159
+ * @summary Sync firewall to all assigned VMs
26160
+ * @param {number} firewallId Firewall ID
26161
+ * @param {*} [options] Override http request option.
26162
+ * @throws {RequiredError}
26163
+ */
26164
+ syncFirewallToAllAssignedVMsV1(firewallId, options) {
26165
+ return localVarFp.syncFirewallToAllAssignedVMsV1(firewallId, options).then((request) => request(axios, basePath));
26166
+ },
26167
+ /**
26168
+ * Deprecated: use `POST /api/vps/v1/firewall/{firewallId}/sync` instead, which syncs the firewall to all virtual machines assigned to it. 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.
26110
26169
  * @summary Sync firewall
26111
26170
  * @param {number} firewallId Firewall ID
26112
26171
  * @param {number} virtualMachineId Virtual Machine ID
26113
26172
  * @param {*} [options] Override http request option.
26173
+ * @deprecated
26114
26174
  * @throws {RequiredError}
26115
26175
  */
26116
26176
  syncFirewallV1(firewallId, virtualMachineId, options) {
@@ -26243,11 +26303,23 @@ class VPSFirewallApi extends base_1.BaseAPI {
26243
26303
  return (0, exports.VPSFirewallApiFp)(this.configuration).replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, options).then((request) => request(this.axios, this.basePath));
26244
26304
  }
26245
26305
  /**
26246
- * 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.
26306
+ * Sync a firewall\'s rules to every virtual machine it\'s assigned to. Firewall can lose sync with a virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to all VPS instances assigned to the firewall.
26307
+ * @summary Sync firewall to all assigned VMs
26308
+ * @param {number} firewallId Firewall ID
26309
+ * @param {*} [options] Override http request option.
26310
+ * @throws {RequiredError}
26311
+ * @memberof VPSFirewallApi
26312
+ */
26313
+ syncFirewallToAllAssignedVMsV1(firewallId, options) {
26314
+ return (0, exports.VPSFirewallApiFp)(this.configuration).syncFirewallToAllAssignedVMsV1(firewallId, options).then((request) => request(this.axios, this.basePath));
26315
+ }
26316
+ /**
26317
+ * Deprecated: use `POST /api/vps/v1/firewall/{firewallId}/sync` instead, which syncs the firewall to all virtual machines assigned to it. 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.
26247
26318
  * @summary Sync firewall
26248
26319
  * @param {number} firewallId Firewall ID
26249
26320
  * @param {number} virtualMachineId Virtual Machine ID
26250
26321
  * @param {*} [options] Override http request option.
26322
+ * @deprecated
26251
26323
  * @throws {RequiredError}
26252
26324
  * @memberof VPSFirewallApi
26253
26325
  */
package/dist/base.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.47.0
4
+ * API Version: 1.48.0
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.47.0
7
+ * API Version: 1.48.0
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.47.0
4
+ * API Version: 1.48.0
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.47.0
7
+ * API Version: 1.48.0
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.47.0
4
+ * API Version: 1.48.0
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.47.0
7
+ * API Version: 1.48.0
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.47.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.48.0" }, (_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.47.0
4
+ * API Version: 1.48.0
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
@@ -28505,11 +28505,20 @@ export declare const VPSFirewallApiAxiosParamCreator: (configuration?: Configura
28505
28505
  */
28506
28506
  replaceAllFirewallRulesInGroupV1: (firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
28507
28507
  /**
28508
- * 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.
28508
+ * Sync a firewall\'s rules to every virtual machine it\'s assigned to. Firewall can lose sync with a virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to all VPS instances assigned to the firewall.
28509
+ * @summary Sync firewall to all assigned VMs
28510
+ * @param {number} firewallId Firewall ID
28511
+ * @param {*} [options] Override http request option.
28512
+ * @throws {RequiredError}
28513
+ */
28514
+ syncFirewallToAllAssignedVMsV1: (firewallId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
28515
+ /**
28516
+ * Deprecated: use `POST /api/vps/v1/firewall/{firewallId}/sync` instead, which syncs the firewall to all virtual machines assigned to it. 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.
28509
28517
  * @summary Sync firewall
28510
28518
  * @param {number} firewallId Firewall ID
28511
28519
  * @param {number} virtualMachineId Virtual Machine ID
28512
28520
  * @param {*} [options] Override http request option.
28521
+ * @deprecated
28513
28522
  * @throws {RequiredError}
28514
28523
  */
28515
28524
  syncFirewallV1: (firewallId: number, virtualMachineId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
@@ -28607,11 +28616,20 @@ export declare const VPSFirewallApiFp: (configuration?: Configuration) => {
28607
28616
  */
28608
28617
  replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1FirewallFirewallResource>>;
28609
28618
  /**
28610
- * 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.
28619
+ * Sync a firewall\'s rules to every virtual machine it\'s assigned to. Firewall can lose sync with a virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to all VPS instances assigned to the firewall.
28620
+ * @summary Sync firewall to all assigned VMs
28621
+ * @param {number} firewallId Firewall ID
28622
+ * @param {*} [options] Override http request option.
28623
+ * @throws {RequiredError}
28624
+ */
28625
+ syncFirewallToAllAssignedVMsV1(firewallId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
28626
+ /**
28627
+ * Deprecated: use `POST /api/vps/v1/firewall/{firewallId}/sync` instead, which syncs the firewall to all virtual machines assigned to it. 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.
28611
28628
  * @summary Sync firewall
28612
28629
  * @param {number} firewallId Firewall ID
28613
28630
  * @param {number} virtualMachineId Virtual Machine ID
28614
28631
  * @param {*} [options] Override http request option.
28632
+ * @deprecated
28615
28633
  * @throws {RequiredError}
28616
28634
  */
28617
28635
  syncFirewallV1(firewallId: number, virtualMachineId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1ActionActionResource>>;
@@ -28709,11 +28727,20 @@ export declare const VPSFirewallApiFactory: (configuration?: Configuration, base
28709
28727
  */
28710
28728
  replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1FirewallFirewallResource>;
28711
28729
  /**
28712
- * 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.
28730
+ * Sync a firewall\'s rules to every virtual machine it\'s assigned to. Firewall can lose sync with a virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to all VPS instances assigned to the firewall.
28731
+ * @summary Sync firewall to all assigned VMs
28732
+ * @param {number} firewallId Firewall ID
28733
+ * @param {*} [options] Override http request option.
28734
+ * @throws {RequiredError}
28735
+ */
28736
+ syncFirewallToAllAssignedVMsV1(firewallId: number, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
28737
+ /**
28738
+ * Deprecated: use `POST /api/vps/v1/firewall/{firewallId}/sync` instead, which syncs the firewall to all virtual machines assigned to it. 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.
28713
28739
  * @summary Sync firewall
28714
28740
  * @param {number} firewallId Firewall ID
28715
28741
  * @param {number} virtualMachineId Virtual Machine ID
28716
28742
  * @param {*} [options] Override http request option.
28743
+ * @deprecated
28717
28744
  * @throws {RequiredError}
28718
28745
  */
28719
28746
  syncFirewallV1(firewallId: number, virtualMachineId: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1ActionActionResource>;
@@ -28822,11 +28849,21 @@ export declare class VPSFirewallApi extends BaseAPI {
28822
28849
  */
28823
28850
  replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSV1FirewallFirewallResource, any, {}, any>>;
28824
28851
  /**
28825
- * 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.
28852
+ * Sync a firewall\'s rules to every virtual machine it\'s assigned to. Firewall can lose sync with a virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to all VPS instances assigned to the firewall.
28853
+ * @summary Sync firewall to all assigned VMs
28854
+ * @param {number} firewallId Firewall ID
28855
+ * @param {*} [options] Override http request option.
28856
+ * @throws {RequiredError}
28857
+ * @memberof VPSFirewallApi
28858
+ */
28859
+ syncFirewallToAllAssignedVMsV1(firewallId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
28860
+ /**
28861
+ * Deprecated: use `POST /api/vps/v1/firewall/{firewallId}/sync` instead, which syncs the firewall to all virtual machines assigned to it. 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.
28826
28862
  * @summary Sync firewall
28827
28863
  * @param {number} firewallId Firewall ID
28828
28864
  * @param {number} virtualMachineId Virtual Machine ID
28829
28865
  * @param {*} [options] Override http request option.
28866
+ * @deprecated
28830
28867
  * @throws {RequiredError}
28831
28868
  * @memberof VPSFirewallApi
28832
28869
  */
package/dist/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.47.0
6
+ * API Version: 1.48.0
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
@@ -25456,11 +25456,44 @@ export const VPSFirewallApiAxiosParamCreator = function (configuration) {
25456
25456
  };
25457
25457
  }),
25458
25458
  /**
25459
- * 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.
25459
+ * Sync a firewall\'s rules to every virtual machine it\'s assigned to. Firewall can lose sync with a virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to all VPS instances assigned to the firewall.
25460
+ * @summary Sync firewall to all assigned VMs
25461
+ * @param {number} firewallId Firewall ID
25462
+ * @param {*} [options] Override http request option.
25463
+ * @throws {RequiredError}
25464
+ */
25465
+ syncFirewallToAllAssignedVMsV1: (firewallId_1, ...args_1) => __awaiter(this, [firewallId_1, ...args_1], void 0, function* (firewallId, options = {}) {
25466
+ // verify required parameter 'firewallId' is not null or undefined
25467
+ assertParamExists('syncFirewallToAllAssignedVMsV1', 'firewallId', firewallId);
25468
+ const localVarPath = `/api/vps/v1/firewall/{firewallId}/sync`
25469
+ .replace(`{${"firewallId"}}`, encodeURIComponent(String(firewallId)));
25470
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
25471
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
25472
+ let baseOptions;
25473
+ if (configuration) {
25474
+ baseOptions = configuration.baseOptions;
25475
+ }
25476
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
25477
+ const localVarHeaderParameter = {};
25478
+ const localVarQueryParameter = {};
25479
+ // authentication apiToken required
25480
+ // http bearer authentication required
25481
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
25482
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
25483
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
25484
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
25485
+ return {
25486
+ url: toPathString(localVarUrlObj),
25487
+ options: localVarRequestOptions,
25488
+ };
25489
+ }),
25490
+ /**
25491
+ * Deprecated: use `POST /api/vps/v1/firewall/{firewallId}/sync` instead, which syncs the firewall to all virtual machines assigned to it. 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.
25460
25492
  * @summary Sync firewall
25461
25493
  * @param {number} firewallId Firewall ID
25462
25494
  * @param {number} virtualMachineId Virtual Machine ID
25463
25495
  * @param {*} [options] Override http request option.
25496
+ * @deprecated
25464
25497
  * @throws {RequiredError}
25465
25498
  */
25466
25499
  syncFirewallV1: (firewallId_1, virtualMachineId_1, ...args_1) => __awaiter(this, [firewallId_1, virtualMachineId_1, ...args_1], void 0, function* (firewallId, virtualMachineId, options = {}) {
@@ -25682,11 +25715,27 @@ export const VPSFirewallApiFp = function (configuration) {
25682
25715
  });
25683
25716
  },
25684
25717
  /**
25685
- * 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.
25718
+ * Sync a firewall\'s rules to every virtual machine it\'s assigned to. Firewall can lose sync with a virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to all VPS instances assigned to the firewall.
25719
+ * @summary Sync firewall to all assigned VMs
25720
+ * @param {number} firewallId Firewall ID
25721
+ * @param {*} [options] Override http request option.
25722
+ * @throws {RequiredError}
25723
+ */
25724
+ syncFirewallToAllAssignedVMsV1(firewallId, options) {
25725
+ return __awaiter(this, void 0, void 0, function* () {
25726
+ var _a, _b;
25727
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.syncFirewallToAllAssignedVMsV1(firewallId, options);
25728
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['VPSFirewallApi.syncFirewallToAllAssignedVMsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
25729
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
25730
+ });
25731
+ },
25732
+ /**
25733
+ * Deprecated: use `POST /api/vps/v1/firewall/{firewallId}/sync` instead, which syncs the firewall to all virtual machines assigned to it. 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.
25686
25734
  * @summary Sync firewall
25687
25735
  * @param {number} firewallId Firewall ID
25688
25736
  * @param {number} virtualMachineId Virtual Machine ID
25689
25737
  * @param {*} [options] Override http request option.
25738
+ * @deprecated
25690
25739
  * @throws {RequiredError}
25691
25740
  */
25692
25741
  syncFirewallV1(firewallId, virtualMachineId, options) {
@@ -25819,11 +25868,22 @@ export const VPSFirewallApiFactory = function (configuration, basePath, axios) {
25819
25868
  return localVarFp.replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, options).then((request) => request(axios, basePath));
25820
25869
  },
25821
25870
  /**
25822
- * 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.
25871
+ * Sync a firewall\'s rules to every virtual machine it\'s assigned to. Firewall can lose sync with a virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to all VPS instances assigned to the firewall.
25872
+ * @summary Sync firewall to all assigned VMs
25873
+ * @param {number} firewallId Firewall ID
25874
+ * @param {*} [options] Override http request option.
25875
+ * @throws {RequiredError}
25876
+ */
25877
+ syncFirewallToAllAssignedVMsV1(firewallId, options) {
25878
+ return localVarFp.syncFirewallToAllAssignedVMsV1(firewallId, options).then((request) => request(axios, basePath));
25879
+ },
25880
+ /**
25881
+ * Deprecated: use `POST /api/vps/v1/firewall/{firewallId}/sync` instead, which syncs the firewall to all virtual machines assigned to it. 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.
25823
25882
  * @summary Sync firewall
25824
25883
  * @param {number} firewallId Firewall ID
25825
25884
  * @param {number} virtualMachineId Virtual Machine ID
25826
25885
  * @param {*} [options] Override http request option.
25886
+ * @deprecated
25827
25887
  * @throws {RequiredError}
25828
25888
  */
25829
25889
  syncFirewallV1(firewallId, virtualMachineId, options) {
@@ -25955,11 +26015,23 @@ export class VPSFirewallApi extends BaseAPI {
25955
26015
  return VPSFirewallApiFp(this.configuration).replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, options).then((request) => request(this.axios, this.basePath));
25956
26016
  }
25957
26017
  /**
25958
- * 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.
26018
+ * Sync a firewall\'s rules to every virtual machine it\'s assigned to. Firewall can lose sync with a virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to all VPS instances assigned to the firewall.
26019
+ * @summary Sync firewall to all assigned VMs
26020
+ * @param {number} firewallId Firewall ID
26021
+ * @param {*} [options] Override http request option.
26022
+ * @throws {RequiredError}
26023
+ * @memberof VPSFirewallApi
26024
+ */
26025
+ syncFirewallToAllAssignedVMsV1(firewallId, options) {
26026
+ return VPSFirewallApiFp(this.configuration).syncFirewallToAllAssignedVMsV1(firewallId, options).then((request) => request(this.axios, this.basePath));
26027
+ }
26028
+ /**
26029
+ * Deprecated: use `POST /api/vps/v1/firewall/{firewallId}/sync` instead, which syncs the firewall to all virtual machines assigned to it. 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.
25959
26030
  * @summary Sync firewall
25960
26031
  * @param {number} firewallId Firewall ID
25961
26032
  * @param {number} virtualMachineId Virtual Machine ID
25962
26033
  * @param {*} [options] Override http request option.
26034
+ * @deprecated
25963
26035
  * @throws {RequiredError}
25964
26036
  * @memberof VPSFirewallApi
25965
26037
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.47.0
4
+ * API Version: 1.48.0
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.47.0
6
+ * API Version: 1.48.0
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.47.0
4
+ * API Version: 1.48.0
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.47.0
6
+ * API Version: 1.48.0
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.47.0
4
+ * API Version: 1.48.0
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.47.0
6
+ * API Version: 1.48.0
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.47.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.48.0" }, (_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.47.0
4
+ * API Version: 1.48.0
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.47.0
6
+ * API Version: 1.48.0
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.47.0
4
+ * API Version: 1.48.0
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.47.0
7
+ * API Version: 1.48.0
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
@@ -13,6 +13,7 @@ All URIs are relative to *https://developers.hostinger.com*
13
13
  |[**getFirewallDetailsV1**](#getfirewalldetailsv1) | **GET** /api/vps/v1/firewall/{firewallId} | Get firewall details|
14
14
  |[**getFirewallListV1**](#getfirewalllistv1) | **GET** /api/vps/v1/firewall | Get firewall list|
15
15
  |[**replaceAllFirewallRulesInGroupV1**](#replaceallfirewallrulesingroupv1) | **PUT** /api/vps/v1/firewall/{firewallId}/rules | Replace all firewall rules in group|
16
+ |[**syncFirewallToAllAssignedVMsV1**](#syncfirewalltoallassignedvmsv1) | **POST** /api/vps/v1/firewall/{firewallId}/sync | Sync firewall to all assigned VMs|
16
17
  |[**syncFirewallV1**](#syncfirewallv1) | **POST** /api/vps/v1/firewall/{firewallId}/sync/{virtualMachineId} | Sync firewall|
17
18
  |[**updateFirewallRuleV1**](#updatefirewallrulev1) | **PUT** /api/vps/v1/firewall/{firewallId}/rules/{ruleId} | Update firewall rule|
18
19
 
@@ -516,10 +517,64 @@ const { status, data } = await apiInstance.replaceAllFirewallRulesInGroupV1(
516
517
 
517
518
  [[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)
518
519
 
520
+ # **syncFirewallToAllAssignedVMsV1**
521
+ > CommonSuccessEmptyResource syncFirewallToAllAssignedVMsV1()
522
+
523
+ Sync a firewall\'s rules to every virtual machine it\'s assigned to. Firewall can lose sync with a virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to all VPS instances assigned to the firewall.
524
+
525
+ ### Example
526
+
527
+ ```typescript
528
+ import {
529
+ VPSFirewallApi,
530
+ Configuration
531
+ } from '@hostinger/sdk';
532
+
533
+ const configuration = new Configuration();
534
+ const apiInstance = new VPSFirewallApi(configuration);
535
+
536
+ let firewallId: number; //Firewall ID (default to undefined)
537
+
538
+ const { status, data } = await apiInstance.syncFirewallToAllAssignedVMsV1(
539
+ firewallId
540
+ );
541
+ ```
542
+
543
+ ### Parameters
544
+
545
+ |Name | Type | Description | Notes|
546
+ |------------- | ------------- | ------------- | -------------|
547
+ | **firewallId** | [**number**] | Firewall ID | defaults to undefined|
548
+
549
+
550
+ ### Return type
551
+
552
+ **CommonSuccessEmptyResource**
553
+
554
+ ### Authorization
555
+
556
+ [apiToken](../README.md#apiToken)
557
+
558
+ ### HTTP request headers
559
+
560
+ - **Content-Type**: Not defined
561
+ - **Accept**: application/json
562
+
563
+
564
+ ### HTTP response details
565
+ | Status code | Description | Response headers |
566
+ |-------------|-------------|------------------|
567
+ |**200** | Success empty response | - |
568
+ |**422** | Validation error response | - |
569
+ |**401** | Unauthenticated response | - |
570
+ |**500** | Error response | - |
571
+
572
+ [[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)
573
+
519
574
  # **syncFirewallV1**
520
575
  > VPSV1ActionActionResource syncFirewallV1()
521
576
 
522
- 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.
577
+ Deprecated: use `POST /api/vps/v1/firewall/{firewallId}/sync` instead, which syncs the firewall to all virtual machines assigned to it. 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.
523
578
 
524
579
  ### Example
525
580
 
package/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.47.0
6
+ * API Version: 1.48.0
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.47.0",
3
+ "version": "1.48.0",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {