hostinger-api-sdk 1.3.0 → 1.5.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.
Files changed (40) hide show
  1. package/README.md +2 -2
  2. package/api.ts +679 -158
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +366 -114
  7. package/dist/api.js +500 -5
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +2 -2
  14. package/dist/esm/api.d.ts +366 -114
  15. package/dist/esm/api.js +492 -1
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +2 -2
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/HostingCacheApi.md +295 -0
  27. package/docs/HostingNodeJSApi.md +57 -0
  28. package/docs/VPSActionsApi.md +2 -2
  29. package/docs/VPSBackupsApi.md +2 -2
  30. package/docs/VPSFirewallApi.md +2 -2
  31. package/docs/VPSPostInstallScriptsApi.md +2 -2
  32. package/docs/VPSPublicKeysApi.md +2 -2
  33. package/docs/{VPSGetActionsV1200Response.md → VPSV1ActionListResponse.md} +3 -3
  34. package/docs/{VPSGetBackupsV1200Response.md → VPSV1BackupListResponse.md} +3 -3
  35. package/docs/{VPSGetFirewallListV1200Response.md → VPSV1FirewallListResponse.md} +3 -3
  36. package/docs/{VPSGetPostInstallScriptsV1200Response.md → VPSV1PostInstallScriptListResponse.md} +3 -3
  37. package/docs/{VPSGetPublicKeysV1200Response.md → VPSV1PublicKeyListResponse.md} +3 -3
  38. package/docs/VPSVirtualMachineApi.md +2 -2
  39. package/index.ts +1 -1
  40. package/package.json +1 -1
package/api.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.3.0
6
+ * API Version: 1.5.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
@@ -4203,101 +4203,6 @@ export interface ReachV1ProfilesProfileResourceProfilesInner {
4203
4203
  */
4204
4204
  'updated_at': string;
4205
4205
  }
4206
- /**
4207
- *
4208
- * @export
4209
- * @interface VPSGetActionsV1200Response
4210
- */
4211
- export interface VPSGetActionsV1200Response {
4212
- /**
4213
- * Array of [`VPS.V1.Action.ActionResource`](#model/vpsv1actionactionresource)
4214
- * @type {Array<VPSV1ActionActionResource>}
4215
- * @memberof VPSGetActionsV1200Response
4216
- */
4217
- 'data': Array<VPSV1ActionActionResource>;
4218
- /**
4219
- *
4220
- * @type {CommonSchemaPaginationMetaSchema}
4221
- * @memberof VPSGetActionsV1200Response
4222
- */
4223
- 'meta': CommonSchemaPaginationMetaSchema;
4224
- }
4225
- /**
4226
- *
4227
- * @export
4228
- * @interface VPSGetBackupsV1200Response
4229
- */
4230
- export interface VPSGetBackupsV1200Response {
4231
- /**
4232
- * Array of [`VPS.V1.Backup.BackupResource`](#model/vpsv1backupbackupresource)
4233
- * @type {Array<VPSV1BackupBackupResource>}
4234
- * @memberof VPSGetBackupsV1200Response
4235
- */
4236
- 'data': Array<VPSV1BackupBackupResource>;
4237
- /**
4238
- *
4239
- * @type {CommonSchemaPaginationMetaSchema}
4240
- * @memberof VPSGetBackupsV1200Response
4241
- */
4242
- 'meta': CommonSchemaPaginationMetaSchema;
4243
- }
4244
- /**
4245
- *
4246
- * @export
4247
- * @interface VPSGetFirewallListV1200Response
4248
- */
4249
- export interface VPSGetFirewallListV1200Response {
4250
- /**
4251
- * Array of [`VPS.V1.Firewall.FirewallResource`](#model/vpsv1firewallfirewallresource)
4252
- * @type {Array<VPSV1FirewallFirewallResource>}
4253
- * @memberof VPSGetFirewallListV1200Response
4254
- */
4255
- 'data': Array<VPSV1FirewallFirewallResource>;
4256
- /**
4257
- *
4258
- * @type {CommonSchemaPaginationMetaSchema}
4259
- * @memberof VPSGetFirewallListV1200Response
4260
- */
4261
- 'meta': CommonSchemaPaginationMetaSchema;
4262
- }
4263
- /**
4264
- *
4265
- * @export
4266
- * @interface VPSGetPostInstallScriptsV1200Response
4267
- */
4268
- export interface VPSGetPostInstallScriptsV1200Response {
4269
- /**
4270
- * Array of [`VPS.V1.PostInstallScript.PostInstallScriptResource`](#model/vpsv1postinstallscriptpostinstallscriptresource)
4271
- * @type {Array<VPSV1PostInstallScriptPostInstallScriptResource>}
4272
- * @memberof VPSGetPostInstallScriptsV1200Response
4273
- */
4274
- 'data': Array<VPSV1PostInstallScriptPostInstallScriptResource>;
4275
- /**
4276
- *
4277
- * @type {CommonSchemaPaginationMetaSchema}
4278
- * @memberof VPSGetPostInstallScriptsV1200Response
4279
- */
4280
- 'meta': CommonSchemaPaginationMetaSchema;
4281
- }
4282
- /**
4283
- *
4284
- * @export
4285
- * @interface VPSGetPublicKeysV1200Response
4286
- */
4287
- export interface VPSGetPublicKeysV1200Response {
4288
- /**
4289
- * Array of [`VPS.V1.PublicKey.PublicKeyResource`](#model/vpsv1publickeypublickeyresource)
4290
- * @type {Array<VPSV1PublicKeyPublicKeyResource>}
4291
- * @memberof VPSGetPublicKeysV1200Response
4292
- */
4293
- 'data': Array<VPSV1PublicKeyPublicKeyResource>;
4294
- /**
4295
- *
4296
- * @type {CommonSchemaPaginationMetaSchema}
4297
- * @memberof VPSGetPublicKeysV1200Response
4298
- */
4299
- 'meta': CommonSchemaPaginationMetaSchema;
4300
- }
4301
4206
  /**
4302
4207
  *
4303
4208
  * @export
@@ -4346,6 +4251,25 @@ export const VPSV1ActionActionResourceStateEnum = {
4346
4251
 
4347
4252
  export type VPSV1ActionActionResourceStateEnum = typeof VPSV1ActionActionResourceStateEnum[keyof typeof VPSV1ActionActionResourceStateEnum];
4348
4253
 
4254
+ /**
4255
+ *
4256
+ * @export
4257
+ * @interface VPSV1ActionListResponse
4258
+ */
4259
+ export interface VPSV1ActionListResponse {
4260
+ /**
4261
+ * Array of [`VPS.V1.Action.ActionResource`](#model/vpsv1actionactionresource)
4262
+ * @type {Array<VPSV1ActionActionResource>}
4263
+ * @memberof VPSV1ActionListResponse
4264
+ */
4265
+ 'data': Array<VPSV1ActionActionResource>;
4266
+ /**
4267
+ *
4268
+ * @type {CommonSchemaPaginationMetaSchema}
4269
+ * @memberof VPSV1ActionListResponse
4270
+ */
4271
+ 'meta': CommonSchemaPaginationMetaSchema;
4272
+ }
4349
4273
  /**
4350
4274
  *
4351
4275
  * @export
@@ -4383,6 +4307,25 @@ export interface VPSV1BackupBackupResource {
4383
4307
  */
4384
4308
  'created_at': string;
4385
4309
  }
4310
+ /**
4311
+ *
4312
+ * @export
4313
+ * @interface VPSV1BackupListResponse
4314
+ */
4315
+ export interface VPSV1BackupListResponse {
4316
+ /**
4317
+ * Array of [`VPS.V1.Backup.BackupResource`](#model/vpsv1backupbackupresource)
4318
+ * @type {Array<VPSV1BackupBackupResource>}
4319
+ * @memberof VPSV1BackupListResponse
4320
+ */
4321
+ 'data': Array<VPSV1BackupBackupResource>;
4322
+ /**
4323
+ *
4324
+ * @type {CommonSchemaPaginationMetaSchema}
4325
+ * @memberof VPSV1BackupListResponse
4326
+ */
4327
+ 'meta': CommonSchemaPaginationMetaSchema;
4328
+ }
4386
4329
  /**
4387
4330
  *
4388
4331
  * @export
@@ -4838,6 +4781,25 @@ export const VPSV1FirewallFirewallRuleResourceProtocolEnum = {
4838
4781
 
4839
4782
  export type VPSV1FirewallFirewallRuleResourceProtocolEnum = typeof VPSV1FirewallFirewallRuleResourceProtocolEnum[keyof typeof VPSV1FirewallFirewallRuleResourceProtocolEnum];
4840
4783
 
4784
+ /**
4785
+ *
4786
+ * @export
4787
+ * @interface VPSV1FirewallListResponse
4788
+ */
4789
+ export interface VPSV1FirewallListResponse {
4790
+ /**
4791
+ * Array of [`VPS.V1.Firewall.FirewallResource`](#model/vpsv1firewallfirewallresource)
4792
+ * @type {Array<VPSV1FirewallFirewallResource>}
4793
+ * @memberof VPSV1FirewallListResponse
4794
+ */
4795
+ 'data': Array<VPSV1FirewallFirewallResource>;
4796
+ /**
4797
+ *
4798
+ * @type {CommonSchemaPaginationMetaSchema}
4799
+ * @memberof VPSV1FirewallListResponse
4800
+ */
4801
+ 'meta': CommonSchemaPaginationMetaSchema;
4802
+ }
4841
4803
  /**
4842
4804
  *
4843
4805
  * @export
@@ -5037,6 +4999,25 @@ export interface VPSV1MetricsMetricsResource {
5037
4999
  */
5038
5000
  'usage': object;
5039
5001
  }
5002
+ /**
5003
+ *
5004
+ * @export
5005
+ * @interface VPSV1PostInstallScriptListResponse
5006
+ */
5007
+ export interface VPSV1PostInstallScriptListResponse {
5008
+ /**
5009
+ * Array of [`VPS.V1.PostInstallScript.PostInstallScriptResource`](#model/vpsv1postinstallscriptpostinstallscriptresource)
5010
+ * @type {Array<VPSV1PostInstallScriptPostInstallScriptResource>}
5011
+ * @memberof VPSV1PostInstallScriptListResponse
5012
+ */
5013
+ 'data': Array<VPSV1PostInstallScriptPostInstallScriptResource>;
5014
+ /**
5015
+ *
5016
+ * @type {CommonSchemaPaginationMetaSchema}
5017
+ * @memberof VPSV1PostInstallScriptListResponse
5018
+ */
5019
+ 'meta': CommonSchemaPaginationMetaSchema;
5020
+ }
5040
5021
  /**
5041
5022
  *
5042
5023
  * @export
@@ -5106,6 +5087,25 @@ export interface VPSV1PublicKeyAttachRequest {
5106
5087
  */
5107
5088
  'ids': Array<number>;
5108
5089
  }
5090
+ /**
5091
+ *
5092
+ * @export
5093
+ * @interface VPSV1PublicKeyListResponse
5094
+ */
5095
+ export interface VPSV1PublicKeyListResponse {
5096
+ /**
5097
+ * Array of [`VPS.V1.PublicKey.PublicKeyResource`](#model/vpsv1publickeypublickeyresource)
5098
+ * @type {Array<VPSV1PublicKeyPublicKeyResource>}
5099
+ * @memberof VPSV1PublicKeyListResponse
5100
+ */
5101
+ 'data': Array<VPSV1PublicKeyPublicKeyResource>;
5102
+ /**
5103
+ *
5104
+ * @type {CommonSchemaPaginationMetaSchema}
5105
+ * @memberof VPSV1PublicKeyListResponse
5106
+ */
5107
+ 'meta': CommonSchemaPaginationMetaSchema;
5108
+ }
5109
5109
  /**
5110
5110
  *
5111
5111
  * @export
@@ -10921,26 +10921,28 @@ export class HorizonsWebsitesApi extends BaseAPI {
10921
10921
 
10922
10922
 
10923
10923
  /**
10924
- * HostingCronJobsApi - axios parameter creator
10924
+ * HostingCacheApi - axios parameter creator
10925
10925
  * @export
10926
10926
  */
10927
- export const HostingCronJobsApiAxiosParamCreator = function (configuration?: Configuration) {
10927
+ export const HostingCacheApiAxiosParamCreator = function (configuration?: Configuration) {
10928
10928
  return {
10929
10929
  /**
10930
- * Creates a cron job for the specified account from a schedule expression and a command. Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
10931
- * @summary Create account cron job
10930
+ * Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
10931
+ * @summary Clear website cache
10932
10932
  * @param {string} username
10933
- * @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
10933
+ * @param {string} domain Domain name
10934
+ * @param {string} [directory] Directory of the website installation to clear, relative to the website root. Defaults to the website root.
10934
10935
  * @param {*} [options] Override http request option.
10935
10936
  * @throws {RequiredError}
10936
10937
  */
10937
- createAccountCronJobV1: async (username: string, hostingV1CronJobsCreateCronJobRequest: HostingV1CronJobsCreateCronJobRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10938
+ clearWebsiteCacheV1: async (username: string, domain: string, directory?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10938
10939
  // verify required parameter 'username' is not null or undefined
10939
- assertParamExists('createAccountCronJobV1', 'username', username)
10940
- // verify required parameter 'hostingV1CronJobsCreateCronJobRequest' is not null or undefined
10941
- assertParamExists('createAccountCronJobV1', 'hostingV1CronJobsCreateCronJobRequest', hostingV1CronJobsCreateCronJobRequest)
10942
- const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs`
10943
- .replace(`{${"username"}}`, encodeURIComponent(String(username)));
10940
+ assertParamExists('clearWebsiteCacheV1', 'username', username)
10941
+ // verify required parameter 'domain' is not null or undefined
10942
+ assertParamExists('clearWebsiteCacheV1', 'domain', domain)
10943
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cache/clear`
10944
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
10945
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
10944
10946
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10945
10947
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10946
10948
  let baseOptions;
@@ -10948,7 +10950,7 @@ export const HostingCronJobsApiAxiosParamCreator = function (configuration?: Con
10948
10950
  baseOptions = configuration.baseOptions;
10949
10951
  }
10950
10952
 
10951
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
10953
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
10952
10954
  const localVarHeaderParameter = {} as any;
10953
10955
  const localVarQueryParameter = {} as any;
10954
10956
 
@@ -10956,14 +10958,57 @@ export const HostingCronJobsApiAxiosParamCreator = function (configuration?: Con
10956
10958
  // http bearer authentication required
10957
10959
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
10958
10960
 
10961
+ if (directory !== undefined) {
10962
+ localVarQueryParameter['directory'] = directory;
10963
+ }
10964
+
10959
10965
 
10960
10966
 
10961
- localVarHeaderParameter['Content-Type'] = 'application/json';
10967
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10968
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10969
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10970
+
10971
+ return {
10972
+ url: toPathString(localVarUrlObj),
10973
+ options: localVarRequestOptions,
10974
+ };
10975
+ },
10976
+ /**
10977
+ * Turns off development (cacheless) mode and returns the website to normal caching. Use it after finishing development work to restore the performance benefits of caching.
10978
+ * @summary Disable cacheless mode
10979
+ * @param {string} username
10980
+ * @param {string} domain Domain name
10981
+ * @param {*} [options] Override http request option.
10982
+ * @throws {RequiredError}
10983
+ */
10984
+ disableCachelessModeV1: async (username: string, domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10985
+ // verify required parameter 'username' is not null or undefined
10986
+ assertParamExists('disableCachelessModeV1', 'username', username)
10987
+ // verify required parameter 'domain' is not null or undefined
10988
+ assertParamExists('disableCachelessModeV1', 'domain', domain)
10989
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/disable`
10990
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
10991
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
10992
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10993
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10994
+ let baseOptions;
10995
+ if (configuration) {
10996
+ baseOptions = configuration.baseOptions;
10997
+ }
10998
+
10999
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
11000
+ const localVarHeaderParameter = {} as any;
11001
+ const localVarQueryParameter = {} as any;
11002
+
11003
+ // authentication apiToken required
11004
+ // http bearer authentication required
11005
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
11006
+
10962
11007
 
11008
+
10963
11009
  setSearchParams(localVarUrlObj, localVarQueryParameter);
10964
11010
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10965
11011
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10966
- localVarRequestOptions.data = serializeDataIfNeeded(hostingV1CronJobsCreateCronJobRequest, localVarRequestOptions, configuration)
10967
11012
 
10968
11013
  return {
10969
11014
  url: toPathString(localVarUrlObj),
@@ -10971,21 +11016,21 @@ export const HostingCronJobsApiAxiosParamCreator = function (configuration?: Con
10971
11016
  };
10972
11017
  },
10973
11018
  /**
10974
- * Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
10975
- * @summary Delete account cron job
11019
+ * Turns off server-side caching for the website until it is enabled again. May impact performance. Use it when experiencing cache-related issues; to temporarily bypass caching while developing or debugging, prefer enabling cacheless mode instead. Does nothing if caching is already disabled.
11020
+ * @summary Disable website cache
10976
11021
  * @param {string} username
10977
- * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
11022
+ * @param {string} domain Domain name
10978
11023
  * @param {*} [options] Override http request option.
10979
11024
  * @throws {RequiredError}
10980
11025
  */
10981
- deleteAccountCronJobV1: async (username: string, uid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11026
+ disableWebsiteCacheV1: async (username: string, domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10982
11027
  // verify required parameter 'username' is not null or undefined
10983
- assertParamExists('deleteAccountCronJobV1', 'username', username)
10984
- // verify required parameter 'uid' is not null or undefined
10985
- assertParamExists('deleteAccountCronJobV1', 'uid', uid)
10986
- const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs/{uid}`
11028
+ assertParamExists('disableWebsiteCacheV1', 'username', username)
11029
+ // verify required parameter 'domain' is not null or undefined
11030
+ assertParamExists('disableWebsiteCacheV1', 'domain', domain)
11031
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cache/disable`
10987
11032
  .replace(`{${"username"}}`, encodeURIComponent(String(username)))
10988
- .replace(`{${"uid"}}`, encodeURIComponent(String(uid)));
11033
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
10989
11034
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10990
11035
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10991
11036
  let baseOptions;
@@ -10993,7 +11038,7 @@ export const HostingCronJobsApiAxiosParamCreator = function (configuration?: Con
10993
11038
  baseOptions = configuration.baseOptions;
10994
11039
  }
10995
11040
 
10996
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
11041
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
10997
11042
  const localVarHeaderParameter = {} as any;
10998
11043
  const localVarQueryParameter = {} as any;
10999
11044
 
@@ -11013,21 +11058,21 @@ export const HostingCronJobsApiAxiosParamCreator = function (configuration?: Con
11013
11058
  };
11014
11059
  },
11015
11060
  /**
11016
- * Returns the output captured from the last execution of the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
11017
- * @summary Get cron job output
11061
+ * Enables development (cacheless) mode where nothing is cached, effectively turning off all caching for the website. Use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable cacheless mode afterwards to restore normal caching.
11062
+ * @summary Enable cacheless mode
11018
11063
  * @param {string} username
11019
- * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
11064
+ * @param {string} domain Domain name
11020
11065
  * @param {*} [options] Override http request option.
11021
11066
  * @throws {RequiredError}
11022
11067
  */
11023
- getCronJobOutputV1: async (username: string, uid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11068
+ enableCachelessModeV1: async (username: string, domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11024
11069
  // verify required parameter 'username' is not null or undefined
11025
- assertParamExists('getCronJobOutputV1', 'username', username)
11026
- // verify required parameter 'uid' is not null or undefined
11027
- assertParamExists('getCronJobOutputV1', 'uid', uid)
11028
- const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs/{uid}/output`
11070
+ assertParamExists('enableCachelessModeV1', 'username', username)
11071
+ // verify required parameter 'domain' is not null or undefined
11072
+ assertParamExists('enableCachelessModeV1', 'domain', domain)
11073
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/enable`
11029
11074
  .replace(`{${"username"}}`, encodeURIComponent(String(username)))
11030
- .replace(`{${"uid"}}`, encodeURIComponent(String(uid)));
11075
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
11031
11076
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11032
11077
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11033
11078
  let baseOptions;
@@ -11035,7 +11080,7 @@ export const HostingCronJobsApiAxiosParamCreator = function (configuration?: Con
11035
11080
  baseOptions = configuration.baseOptions;
11036
11081
  }
11037
11082
 
11038
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11083
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
11039
11084
  const localVarHeaderParameter = {} as any;
11040
11085
  const localVarQueryParameter = {} as any;
11041
11086
 
@@ -11055,17 +11100,21 @@ export const HostingCronJobsApiAxiosParamCreator = function (configuration?: Con
11055
11100
  };
11056
11101
  },
11057
11102
  /**
11058
- * Returns the list of cron jobs configured for the specified account, including their schedule and command.
11059
- * @summary List account cron jobs
11103
+ * Turns on server-side caching for the website for better performance. Use it for faster page loads, reduced server load, or improved user experience. Recommended for production websites. Does nothing if caching is already enabled.
11104
+ * @summary Enable website cache
11060
11105
  * @param {string} username
11106
+ * @param {string} domain Domain name
11061
11107
  * @param {*} [options] Override http request option.
11062
11108
  * @throws {RequiredError}
11063
11109
  */
11064
- listAccountCronJobsV1: async (username: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11110
+ enableWebsiteCacheV1: async (username: string, domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11065
11111
  // verify required parameter 'username' is not null or undefined
11066
- assertParamExists('listAccountCronJobsV1', 'username', username)
11067
- const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs`
11068
- .replace(`{${"username"}}`, encodeURIComponent(String(username)));
11112
+ assertParamExists('enableWebsiteCacheV1', 'username', username)
11113
+ // verify required parameter 'domain' is not null or undefined
11114
+ assertParamExists('enableWebsiteCacheV1', 'domain', domain)
11115
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cache/enable`
11116
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
11117
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
11069
11118
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11070
11119
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11071
11120
  let baseOptions;
@@ -11073,7 +11122,7 @@ export const HostingCronJobsApiAxiosParamCreator = function (configuration?: Con
11073
11122
  baseOptions = configuration.baseOptions;
11074
11123
  }
11075
11124
 
11076
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11125
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
11077
11126
  const localVarHeaderParameter = {} as any;
11078
11127
  const localVarQueryParameter = {} as any;
11079
11128
 
@@ -11096,23 +11145,416 @@ export const HostingCronJobsApiAxiosParamCreator = function (configuration?: Con
11096
11145
  };
11097
11146
 
11098
11147
  /**
11099
- * HostingCronJobsApi - functional programming interface
11148
+ * HostingCacheApi - functional programming interface
11100
11149
  * @export
11101
11150
  */
11102
- export const HostingCronJobsApiFp = function(configuration?: Configuration) {
11103
- const localVarAxiosParamCreator = HostingCronJobsApiAxiosParamCreator(configuration)
11151
+ export const HostingCacheApiFp = function(configuration?: Configuration) {
11152
+ const localVarAxiosParamCreator = HostingCacheApiAxiosParamCreator(configuration)
11104
11153
  return {
11105
11154
  /**
11106
- * Creates a cron job for the specified account from a schedule expression and a command. Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
11107
- * @summary Create account cron job
11155
+ * Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
11156
+ * @summary Clear website cache
11108
11157
  * @param {string} username
11109
- * @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
11158
+ * @param {string} domain Domain name
11159
+ * @param {string} [directory] Directory of the website installation to clear, relative to the website root. Defaults to the website root.
11110
11160
  * @param {*} [options] Override http request option.
11111
11161
  * @throws {RequiredError}
11112
11162
  */
11113
- async createAccountCronJobV1(username: string, hostingV1CronJobsCreateCronJobRequest: HostingV1CronJobsCreateCronJobRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1CronJobsCronJobResource>> {
11114
- const localVarAxiosArgs = await localVarAxiosParamCreator.createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options);
11115
- const localVarOperationServerBasePath = operationServerMap['HostingCronJobsApi.createAccountCronJobV1']?.[0]?.url;
11163
+ async clearWebsiteCacheV1(username: string, domain: string, directory?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
11164
+ const localVarAxiosArgs = await localVarAxiosParamCreator.clearWebsiteCacheV1(username, domain, directory, options);
11165
+ const localVarOperationServerBasePath = operationServerMap['HostingCacheApi.clearWebsiteCacheV1']?.[0]?.url;
11166
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11167
+ },
11168
+ /**
11169
+ * Turns off development (cacheless) mode and returns the website to normal caching. Use it after finishing development work to restore the performance benefits of caching.
11170
+ * @summary Disable cacheless mode
11171
+ * @param {string} username
11172
+ * @param {string} domain Domain name
11173
+ * @param {*} [options] Override http request option.
11174
+ * @throws {RequiredError}
11175
+ */
11176
+ async disableCachelessModeV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
11177
+ const localVarAxiosArgs = await localVarAxiosParamCreator.disableCachelessModeV1(username, domain, options);
11178
+ const localVarOperationServerBasePath = operationServerMap['HostingCacheApi.disableCachelessModeV1']?.[0]?.url;
11179
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11180
+ },
11181
+ /**
11182
+ * Turns off server-side caching for the website until it is enabled again. May impact performance. Use it when experiencing cache-related issues; to temporarily bypass caching while developing or debugging, prefer enabling cacheless mode instead. Does nothing if caching is already disabled.
11183
+ * @summary Disable website cache
11184
+ * @param {string} username
11185
+ * @param {string} domain Domain name
11186
+ * @param {*} [options] Override http request option.
11187
+ * @throws {RequiredError}
11188
+ */
11189
+ async disableWebsiteCacheV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
11190
+ const localVarAxiosArgs = await localVarAxiosParamCreator.disableWebsiteCacheV1(username, domain, options);
11191
+ const localVarOperationServerBasePath = operationServerMap['HostingCacheApi.disableWebsiteCacheV1']?.[0]?.url;
11192
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11193
+ },
11194
+ /**
11195
+ * Enables development (cacheless) mode where nothing is cached, effectively turning off all caching for the website. Use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable cacheless mode afterwards to restore normal caching.
11196
+ * @summary Enable cacheless mode
11197
+ * @param {string} username
11198
+ * @param {string} domain Domain name
11199
+ * @param {*} [options] Override http request option.
11200
+ * @throws {RequiredError}
11201
+ */
11202
+ async enableCachelessModeV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
11203
+ const localVarAxiosArgs = await localVarAxiosParamCreator.enableCachelessModeV1(username, domain, options);
11204
+ const localVarOperationServerBasePath = operationServerMap['HostingCacheApi.enableCachelessModeV1']?.[0]?.url;
11205
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11206
+ },
11207
+ /**
11208
+ * Turns on server-side caching for the website for better performance. Use it for faster page loads, reduced server load, or improved user experience. Recommended for production websites. Does nothing if caching is already enabled.
11209
+ * @summary Enable website cache
11210
+ * @param {string} username
11211
+ * @param {string} domain Domain name
11212
+ * @param {*} [options] Override http request option.
11213
+ * @throws {RequiredError}
11214
+ */
11215
+ async enableWebsiteCacheV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
11216
+ const localVarAxiosArgs = await localVarAxiosParamCreator.enableWebsiteCacheV1(username, domain, options);
11217
+ const localVarOperationServerBasePath = operationServerMap['HostingCacheApi.enableWebsiteCacheV1']?.[0]?.url;
11218
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11219
+ },
11220
+ }
11221
+ };
11222
+
11223
+ /**
11224
+ * HostingCacheApi - factory interface
11225
+ * @export
11226
+ */
11227
+ export const HostingCacheApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
11228
+ const localVarFp = HostingCacheApiFp(configuration)
11229
+ return {
11230
+ /**
11231
+ * Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
11232
+ * @summary Clear website cache
11233
+ * @param {string} username
11234
+ * @param {string} domain Domain name
11235
+ * @param {string} [directory] Directory of the website installation to clear, relative to the website root. Defaults to the website root.
11236
+ * @param {*} [options] Override http request option.
11237
+ * @throws {RequiredError}
11238
+ */
11239
+ clearWebsiteCacheV1(username: string, domain: string, directory?: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
11240
+ return localVarFp.clearWebsiteCacheV1(username, domain, directory, options).then((request) => request(axios, basePath));
11241
+ },
11242
+ /**
11243
+ * Turns off development (cacheless) mode and returns the website to normal caching. Use it after finishing development work to restore the performance benefits of caching.
11244
+ * @summary Disable cacheless mode
11245
+ * @param {string} username
11246
+ * @param {string} domain Domain name
11247
+ * @param {*} [options] Override http request option.
11248
+ * @throws {RequiredError}
11249
+ */
11250
+ disableCachelessModeV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
11251
+ return localVarFp.disableCachelessModeV1(username, domain, options).then((request) => request(axios, basePath));
11252
+ },
11253
+ /**
11254
+ * Turns off server-side caching for the website until it is enabled again. May impact performance. Use it when experiencing cache-related issues; to temporarily bypass caching while developing or debugging, prefer enabling cacheless mode instead. Does nothing if caching is already disabled.
11255
+ * @summary Disable website cache
11256
+ * @param {string} username
11257
+ * @param {string} domain Domain name
11258
+ * @param {*} [options] Override http request option.
11259
+ * @throws {RequiredError}
11260
+ */
11261
+ disableWebsiteCacheV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
11262
+ return localVarFp.disableWebsiteCacheV1(username, domain, options).then((request) => request(axios, basePath));
11263
+ },
11264
+ /**
11265
+ * Enables development (cacheless) mode where nothing is cached, effectively turning off all caching for the website. Use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable cacheless mode afterwards to restore normal caching.
11266
+ * @summary Enable cacheless mode
11267
+ * @param {string} username
11268
+ * @param {string} domain Domain name
11269
+ * @param {*} [options] Override http request option.
11270
+ * @throws {RequiredError}
11271
+ */
11272
+ enableCachelessModeV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
11273
+ return localVarFp.enableCachelessModeV1(username, domain, options).then((request) => request(axios, basePath));
11274
+ },
11275
+ /**
11276
+ * Turns on server-side caching for the website for better performance. Use it for faster page loads, reduced server load, or improved user experience. Recommended for production websites. Does nothing if caching is already enabled.
11277
+ * @summary Enable website cache
11278
+ * @param {string} username
11279
+ * @param {string} domain Domain name
11280
+ * @param {*} [options] Override http request option.
11281
+ * @throws {RequiredError}
11282
+ */
11283
+ enableWebsiteCacheV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
11284
+ return localVarFp.enableWebsiteCacheV1(username, domain, options).then((request) => request(axios, basePath));
11285
+ },
11286
+ };
11287
+ };
11288
+
11289
+ /**
11290
+ * HostingCacheApi - object-oriented interface
11291
+ * @export
11292
+ * @class HostingCacheApi
11293
+ * @extends {BaseAPI}
11294
+ */
11295
+ export class HostingCacheApi extends BaseAPI {
11296
+ /**
11297
+ * Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
11298
+ * @summary Clear website cache
11299
+ * @param {string} username
11300
+ * @param {string} domain Domain name
11301
+ * @param {string} [directory] Directory of the website installation to clear, relative to the website root. Defaults to the website root.
11302
+ * @param {*} [options] Override http request option.
11303
+ * @throws {RequiredError}
11304
+ * @memberof HostingCacheApi
11305
+ */
11306
+ public clearWebsiteCacheV1(username: string, domain: string, directory?: string, options?: RawAxiosRequestConfig) {
11307
+ return HostingCacheApiFp(this.configuration).clearWebsiteCacheV1(username, domain, directory, options).then((request) => request(this.axios, this.basePath));
11308
+ }
11309
+
11310
+ /**
11311
+ * Turns off development (cacheless) mode and returns the website to normal caching. Use it after finishing development work to restore the performance benefits of caching.
11312
+ * @summary Disable cacheless mode
11313
+ * @param {string} username
11314
+ * @param {string} domain Domain name
11315
+ * @param {*} [options] Override http request option.
11316
+ * @throws {RequiredError}
11317
+ * @memberof HostingCacheApi
11318
+ */
11319
+ public disableCachelessModeV1(username: string, domain: string, options?: RawAxiosRequestConfig) {
11320
+ return HostingCacheApiFp(this.configuration).disableCachelessModeV1(username, domain, options).then((request) => request(this.axios, this.basePath));
11321
+ }
11322
+
11323
+ /**
11324
+ * Turns off server-side caching for the website until it is enabled again. May impact performance. Use it when experiencing cache-related issues; to temporarily bypass caching while developing or debugging, prefer enabling cacheless mode instead. Does nothing if caching is already disabled.
11325
+ * @summary Disable website cache
11326
+ * @param {string} username
11327
+ * @param {string} domain Domain name
11328
+ * @param {*} [options] Override http request option.
11329
+ * @throws {RequiredError}
11330
+ * @memberof HostingCacheApi
11331
+ */
11332
+ public disableWebsiteCacheV1(username: string, domain: string, options?: RawAxiosRequestConfig) {
11333
+ return HostingCacheApiFp(this.configuration).disableWebsiteCacheV1(username, domain, options).then((request) => request(this.axios, this.basePath));
11334
+ }
11335
+
11336
+ /**
11337
+ * Enables development (cacheless) mode where nothing is cached, effectively turning off all caching for the website. Use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable cacheless mode afterwards to restore normal caching.
11338
+ * @summary Enable cacheless mode
11339
+ * @param {string} username
11340
+ * @param {string} domain Domain name
11341
+ * @param {*} [options] Override http request option.
11342
+ * @throws {RequiredError}
11343
+ * @memberof HostingCacheApi
11344
+ */
11345
+ public enableCachelessModeV1(username: string, domain: string, options?: RawAxiosRequestConfig) {
11346
+ return HostingCacheApiFp(this.configuration).enableCachelessModeV1(username, domain, options).then((request) => request(this.axios, this.basePath));
11347
+ }
11348
+
11349
+ /**
11350
+ * Turns on server-side caching for the website for better performance. Use it for faster page loads, reduced server load, or improved user experience. Recommended for production websites. Does nothing if caching is already enabled.
11351
+ * @summary Enable website cache
11352
+ * @param {string} username
11353
+ * @param {string} domain Domain name
11354
+ * @param {*} [options] Override http request option.
11355
+ * @throws {RequiredError}
11356
+ * @memberof HostingCacheApi
11357
+ */
11358
+ public enableWebsiteCacheV1(username: string, domain: string, options?: RawAxiosRequestConfig) {
11359
+ return HostingCacheApiFp(this.configuration).enableWebsiteCacheV1(username, domain, options).then((request) => request(this.axios, this.basePath));
11360
+ }
11361
+ }
11362
+
11363
+
11364
+
11365
+ /**
11366
+ * HostingCronJobsApi - axios parameter creator
11367
+ * @export
11368
+ */
11369
+ export const HostingCronJobsApiAxiosParamCreator = function (configuration?: Configuration) {
11370
+ return {
11371
+ /**
11372
+ * Creates a cron job for the specified account from a schedule expression and a command. Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
11373
+ * @summary Create account cron job
11374
+ * @param {string} username
11375
+ * @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
11376
+ * @param {*} [options] Override http request option.
11377
+ * @throws {RequiredError}
11378
+ */
11379
+ createAccountCronJobV1: async (username: string, hostingV1CronJobsCreateCronJobRequest: HostingV1CronJobsCreateCronJobRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11380
+ // verify required parameter 'username' is not null or undefined
11381
+ assertParamExists('createAccountCronJobV1', 'username', username)
11382
+ // verify required parameter 'hostingV1CronJobsCreateCronJobRequest' is not null or undefined
11383
+ assertParamExists('createAccountCronJobV1', 'hostingV1CronJobsCreateCronJobRequest', hostingV1CronJobsCreateCronJobRequest)
11384
+ const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs`
11385
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
11386
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11387
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11388
+ let baseOptions;
11389
+ if (configuration) {
11390
+ baseOptions = configuration.baseOptions;
11391
+ }
11392
+
11393
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11394
+ const localVarHeaderParameter = {} as any;
11395
+ const localVarQueryParameter = {} as any;
11396
+
11397
+ // authentication apiToken required
11398
+ // http bearer authentication required
11399
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
11400
+
11401
+
11402
+
11403
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11404
+
11405
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11406
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11407
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11408
+ localVarRequestOptions.data = serializeDataIfNeeded(hostingV1CronJobsCreateCronJobRequest, localVarRequestOptions, configuration)
11409
+
11410
+ return {
11411
+ url: toPathString(localVarUrlObj),
11412
+ options: localVarRequestOptions,
11413
+ };
11414
+ },
11415
+ /**
11416
+ * Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
11417
+ * @summary Delete account cron job
11418
+ * @param {string} username
11419
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
11420
+ * @param {*} [options] Override http request option.
11421
+ * @throws {RequiredError}
11422
+ */
11423
+ deleteAccountCronJobV1: async (username: string, uid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11424
+ // verify required parameter 'username' is not null or undefined
11425
+ assertParamExists('deleteAccountCronJobV1', 'username', username)
11426
+ // verify required parameter 'uid' is not null or undefined
11427
+ assertParamExists('deleteAccountCronJobV1', 'uid', uid)
11428
+ const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs/{uid}`
11429
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
11430
+ .replace(`{${"uid"}}`, encodeURIComponent(String(uid)));
11431
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11432
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11433
+ let baseOptions;
11434
+ if (configuration) {
11435
+ baseOptions = configuration.baseOptions;
11436
+ }
11437
+
11438
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
11439
+ const localVarHeaderParameter = {} as any;
11440
+ const localVarQueryParameter = {} as any;
11441
+
11442
+ // authentication apiToken required
11443
+ // http bearer authentication required
11444
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
11445
+
11446
+
11447
+
11448
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11449
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11450
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11451
+
11452
+ return {
11453
+ url: toPathString(localVarUrlObj),
11454
+ options: localVarRequestOptions,
11455
+ };
11456
+ },
11457
+ /**
11458
+ * Returns the output captured from the last execution of the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
11459
+ * @summary Get cron job output
11460
+ * @param {string} username
11461
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
11462
+ * @param {*} [options] Override http request option.
11463
+ * @throws {RequiredError}
11464
+ */
11465
+ getCronJobOutputV1: async (username: string, uid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11466
+ // verify required parameter 'username' is not null or undefined
11467
+ assertParamExists('getCronJobOutputV1', 'username', username)
11468
+ // verify required parameter 'uid' is not null or undefined
11469
+ assertParamExists('getCronJobOutputV1', 'uid', uid)
11470
+ const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs/{uid}/output`
11471
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
11472
+ .replace(`{${"uid"}}`, encodeURIComponent(String(uid)));
11473
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11474
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11475
+ let baseOptions;
11476
+ if (configuration) {
11477
+ baseOptions = configuration.baseOptions;
11478
+ }
11479
+
11480
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11481
+ const localVarHeaderParameter = {} as any;
11482
+ const localVarQueryParameter = {} as any;
11483
+
11484
+ // authentication apiToken required
11485
+ // http bearer authentication required
11486
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
11487
+
11488
+
11489
+
11490
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11491
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11492
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11493
+
11494
+ return {
11495
+ url: toPathString(localVarUrlObj),
11496
+ options: localVarRequestOptions,
11497
+ };
11498
+ },
11499
+ /**
11500
+ * Returns the list of cron jobs configured for the specified account, including their schedule and command.
11501
+ * @summary List account cron jobs
11502
+ * @param {string} username
11503
+ * @param {*} [options] Override http request option.
11504
+ * @throws {RequiredError}
11505
+ */
11506
+ listAccountCronJobsV1: async (username: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11507
+ // verify required parameter 'username' is not null or undefined
11508
+ assertParamExists('listAccountCronJobsV1', 'username', username)
11509
+ const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs`
11510
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
11511
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11512
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11513
+ let baseOptions;
11514
+ if (configuration) {
11515
+ baseOptions = configuration.baseOptions;
11516
+ }
11517
+
11518
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11519
+ const localVarHeaderParameter = {} as any;
11520
+ const localVarQueryParameter = {} as any;
11521
+
11522
+ // authentication apiToken required
11523
+ // http bearer authentication required
11524
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
11525
+
11526
+
11527
+
11528
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11529
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11530
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11531
+
11532
+ return {
11533
+ url: toPathString(localVarUrlObj),
11534
+ options: localVarRequestOptions,
11535
+ };
11536
+ },
11537
+ }
11538
+ };
11539
+
11540
+ /**
11541
+ * HostingCronJobsApi - functional programming interface
11542
+ * @export
11543
+ */
11544
+ export const HostingCronJobsApiFp = function(configuration?: Configuration) {
11545
+ const localVarAxiosParamCreator = HostingCronJobsApiAxiosParamCreator(configuration)
11546
+ return {
11547
+ /**
11548
+ * Creates a cron job for the specified account from a schedule expression and a command. Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
11549
+ * @summary Create account cron job
11550
+ * @param {string} username
11551
+ * @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
11552
+ * @param {*} [options] Override http request option.
11553
+ * @throws {RequiredError}
11554
+ */
11555
+ async createAccountCronJobV1(username: string, hostingV1CronJobsCreateCronJobRequest: HostingV1CronJobsCreateCronJobRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1CronJobsCronJobResource>> {
11556
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options);
11557
+ const localVarOperationServerBasePath = operationServerMap['HostingCronJobsApi.createAccountCronJobV1']?.[0]?.url;
11116
11558
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11117
11559
  },
11118
11560
  /**
@@ -13035,6 +13477,48 @@ export const HostingNodeJSApiAxiosParamCreator = function (configuration?: Confi
13035
13477
 
13036
13478
 
13037
13479
 
13480
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13481
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13482
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13483
+
13484
+ return {
13485
+ url: toPathString(localVarUrlObj),
13486
+ options: localVarRequestOptions,
13487
+ };
13488
+ },
13489
+ /**
13490
+ * Restarts the Node.js server process for the website. Does not rebuild or redeploy the application. Use it to apply environment or configuration changes, or to recover a hung application. Only applicable to server-side applications (Express, Next.js, NestJS, etc.). Static front-end apps (React, Vue, Vite) have no persistent server process, so restarting them has no effect. Returns success even when the website has no server process to restart.
13491
+ * @summary Restart Node.js application
13492
+ * @param {string} username
13493
+ * @param {string} domain Domain name
13494
+ * @param {*} [options] Override http request option.
13495
+ * @throws {RequiredError}
13496
+ */
13497
+ restartNodeJsApplicationV1: async (username: string, domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13498
+ // verify required parameter 'username' is not null or undefined
13499
+ assertParamExists('restartNodeJsApplicationV1', 'username', username)
13500
+ // verify required parameter 'domain' is not null or undefined
13501
+ assertParamExists('restartNodeJsApplicationV1', 'domain', domain)
13502
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/server/restart`
13503
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
13504
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
13505
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13506
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13507
+ let baseOptions;
13508
+ if (configuration) {
13509
+ baseOptions = configuration.baseOptions;
13510
+ }
13511
+
13512
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
13513
+ const localVarHeaderParameter = {} as any;
13514
+ const localVarQueryParameter = {} as any;
13515
+
13516
+ // authentication apiToken required
13517
+ // http bearer authentication required
13518
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
13519
+
13520
+
13521
+
13038
13522
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13039
13523
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13040
13524
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -13099,6 +13583,19 @@ export const HostingNodeJSApiFp = function(configuration?: Configuration) {
13099
13583
  const localVarOperationServerBasePath = operationServerMap['HostingNodeJSApi.listNodeJSBuildsV1']?.[0]?.url;
13100
13584
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13101
13585
  },
13586
+ /**
13587
+ * Restarts the Node.js server process for the website. Does not rebuild or redeploy the application. Use it to apply environment or configuration changes, or to recover a hung application. Only applicable to server-side applications (Express, Next.js, NestJS, etc.). Static front-end apps (React, Vue, Vite) have no persistent server process, so restarting them has no effect. Returns success even when the website has no server process to restart.
13588
+ * @summary Restart Node.js application
13589
+ * @param {string} username
13590
+ * @param {string} domain Domain name
13591
+ * @param {*} [options] Override http request option.
13592
+ * @throws {RequiredError}
13593
+ */
13594
+ async restartNodeJsApplicationV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
13595
+ const localVarAxiosArgs = await localVarAxiosParamCreator.restartNodeJsApplicationV1(username, domain, options);
13596
+ const localVarOperationServerBasePath = operationServerMap['HostingNodeJSApi.restartNodeJsApplicationV1']?.[0]?.url;
13597
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13598
+ },
13102
13599
  }
13103
13600
  };
13104
13601
 
@@ -13148,6 +13645,17 @@ export const HostingNodeJSApiFactory = function (configuration?: Configuration,
13148
13645
  listNodeJSBuildsV1(username: string, domain: string, page?: number, perPage?: number, states?: Array<ListNodeJSBuildsV1StatesEnum>, options?: RawAxiosRequestConfig): AxiosPromise<HostingListNodeJSBuildsV1200Response> {
13149
13646
  return localVarFp.listNodeJSBuildsV1(username, domain, page, perPage, states, options).then((request) => request(axios, basePath));
13150
13647
  },
13648
+ /**
13649
+ * Restarts the Node.js server process for the website. Does not rebuild or redeploy the application. Use it to apply environment or configuration changes, or to recover a hung application. Only applicable to server-side applications (Express, Next.js, NestJS, etc.). Static front-end apps (React, Vue, Vite) have no persistent server process, so restarting them has no effect. Returns success even when the website has no server process to restart.
13650
+ * @summary Restart Node.js application
13651
+ * @param {string} username
13652
+ * @param {string} domain Domain name
13653
+ * @param {*} [options] Override http request option.
13654
+ * @throws {RequiredError}
13655
+ */
13656
+ restartNodeJsApplicationV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
13657
+ return localVarFp.restartNodeJsApplicationV1(username, domain, options).then((request) => request(axios, basePath));
13658
+ },
13151
13659
  };
13152
13660
  };
13153
13661
 
@@ -13202,6 +13710,19 @@ export class HostingNodeJSApi extends BaseAPI {
13202
13710
  public listNodeJSBuildsV1(username: string, domain: string, page?: number, perPage?: number, states?: Array<ListNodeJSBuildsV1StatesEnum>, options?: RawAxiosRequestConfig) {
13203
13711
  return HostingNodeJSApiFp(this.configuration).listNodeJSBuildsV1(username, domain, page, perPage, states, options).then((request) => request(this.axios, this.basePath));
13204
13712
  }
13713
+
13714
+ /**
13715
+ * Restarts the Node.js server process for the website. Does not rebuild or redeploy the application. Use it to apply environment or configuration changes, or to recover a hung application. Only applicable to server-side applications (Express, Next.js, NestJS, etc.). Static front-end apps (React, Vue, Vite) have no persistent server process, so restarting them has no effect. Returns success even when the website has no server process to restart.
13716
+ * @summary Restart Node.js application
13717
+ * @param {string} username
13718
+ * @param {string} domain Domain name
13719
+ * @param {*} [options] Override http request option.
13720
+ * @throws {RequiredError}
13721
+ * @memberof HostingNodeJSApi
13722
+ */
13723
+ public restartNodeJsApplicationV1(username: string, domain: string, options?: RawAxiosRequestConfig) {
13724
+ return HostingNodeJSApiFp(this.configuration).restartNodeJsApplicationV1(username, domain, options).then((request) => request(this.axios, this.basePath));
13725
+ }
13205
13726
  }
13206
13727
 
13207
13728
  /**
@@ -15295,7 +15816,7 @@ export const VPSActionsApiFp = function(configuration?: Configuration) {
15295
15816
  * @param {*} [options] Override http request option.
15296
15817
  * @throws {RequiredError}
15297
15818
  */
15298
- async getActionsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSGetActionsV1200Response>> {
15819
+ async getActionsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1ActionListResponse>> {
15299
15820
  const localVarAxiosArgs = await localVarAxiosParamCreator.getActionsV1(virtualMachineId, page, options);
15300
15821
  const localVarOperationServerBasePath = operationServerMap['VPSActionsApi.getActionsV1']?.[0]?.url;
15301
15822
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -15329,7 +15850,7 @@ export const VPSActionsApiFactory = function (configuration?: Configuration, bas
15329
15850
  * @param {*} [options] Override http request option.
15330
15851
  * @throws {RequiredError}
15331
15852
  */
15332
- getActionsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSGetActionsV1200Response> {
15853
+ getActionsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1ActionListResponse> {
15333
15854
  return localVarFp.getActionsV1(virtualMachineId, page, options).then((request) => request(axios, basePath));
15334
15855
  },
15335
15856
  };
@@ -15480,7 +16001,7 @@ export const VPSBackupsApiFp = function(configuration?: Configuration) {
15480
16001
  * @param {*} [options] Override http request option.
15481
16002
  * @throws {RequiredError}
15482
16003
  */
15483
- async getBackupsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSGetBackupsV1200Response>> {
16004
+ async getBackupsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1BackupListResponse>> {
15484
16005
  const localVarAxiosArgs = await localVarAxiosParamCreator.getBackupsV1(virtualMachineId, page, options);
15485
16006
  const localVarOperationServerBasePath = operationServerMap['VPSBackupsApi.getBackupsV1']?.[0]?.url;
15486
16007
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -15516,7 +16037,7 @@ export const VPSBackupsApiFactory = function (configuration?: Configuration, bas
15516
16037
  * @param {*} [options] Override http request option.
15517
16038
  * @throws {RequiredError}
15518
16039
  */
15519
- getBackupsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSGetBackupsV1200Response> {
16040
+ getBackupsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1BackupListResponse> {
15520
16041
  return localVarFp.getBackupsV1(virtualMachineId, page, options).then((request) => request(axios, basePath));
15521
16042
  },
15522
16043
  /**
@@ -17023,7 +17544,7 @@ export const VPSFirewallApiFp = function(configuration?: Configuration) {
17023
17544
  * @param {*} [options] Override http request option.
17024
17545
  * @throws {RequiredError}
17025
17546
  */
17026
- async getFirewallListV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSGetFirewallListV1200Response>> {
17547
+ async getFirewallListV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1FirewallListResponse>> {
17027
17548
  const localVarAxiosArgs = await localVarAxiosParamCreator.getFirewallListV1(page, options);
17028
17549
  const localVarOperationServerBasePath = operationServerMap['VPSFirewallApi.getFirewallListV1']?.[0]?.url;
17029
17550
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -17146,7 +17667,7 @@ export const VPSFirewallApiFactory = function (configuration?: Configuration, ba
17146
17667
  * @param {*} [options] Override http request option.
17147
17668
  * @throws {RequiredError}
17148
17669
  */
17149
- getFirewallListV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSGetFirewallListV1200Response> {
17670
+ getFirewallListV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1FirewallListResponse> {
17150
17671
  return localVarFp.getFirewallListV1(page, options).then((request) => request(axios, basePath));
17151
17672
  },
17152
17673
  /**
@@ -18207,7 +18728,7 @@ export const VPSPostInstallScriptsApiFp = function(configuration?: Configuration
18207
18728
  * @param {*} [options] Override http request option.
18208
18729
  * @throws {RequiredError}
18209
18730
  */
18210
- async getPostInstallScriptsV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSGetPostInstallScriptsV1200Response>> {
18731
+ async getPostInstallScriptsV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1PostInstallScriptListResponse>> {
18211
18732
  const localVarAxiosArgs = await localVarAxiosParamCreator.getPostInstallScriptsV1(page, options);
18212
18733
  const localVarOperationServerBasePath = operationServerMap['VPSPostInstallScriptsApi.getPostInstallScriptsV1']?.[0]?.url;
18213
18734
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -18272,7 +18793,7 @@ export const VPSPostInstallScriptsApiFactory = function (configuration?: Configu
18272
18793
  * @param {*} [options] Override http request option.
18273
18794
  * @throws {RequiredError}
18274
18795
  */
18275
- getPostInstallScriptsV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSGetPostInstallScriptsV1200Response> {
18796
+ getPostInstallScriptsV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1PostInstallScriptListResponse> {
18276
18797
  return localVarFp.getPostInstallScriptsV1(page, options).then((request) => request(axios, basePath));
18277
18798
  },
18278
18799
  /**
@@ -18581,7 +19102,7 @@ export const VPSPublicKeysApiFp = function(configuration?: Configuration) {
18581
19102
  * @param {*} [options] Override http request option.
18582
19103
  * @throws {RequiredError}
18583
19104
  */
18584
- async getPublicKeysV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSGetPublicKeysV1200Response>> {
19105
+ async getPublicKeysV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1PublicKeyListResponse>> {
18585
19106
  const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicKeysV1(page, options);
18586
19107
  const localVarOperationServerBasePath = operationServerMap['VPSPublicKeysApi.getPublicKeysV1']?.[0]?.url;
18587
19108
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -18634,7 +19155,7 @@ export const VPSPublicKeysApiFactory = function (configuration?: Configuration,
18634
19155
  * @param {*} [options] Override http request option.
18635
19156
  * @throws {RequiredError}
18636
19157
  */
18637
- getPublicKeysV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSGetPublicKeysV1200Response> {
19158
+ getPublicKeysV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1PublicKeyListResponse> {
18638
19159
  return localVarFp.getPublicKeysV1(page, options).then((request) => request(axios, basePath));
18639
19160
  },
18640
19161
  };
@@ -19869,7 +20390,7 @@ export const VPSVirtualMachineApiFp = function(configuration?: Configuration) {
19869
20390
  * @param {*} [options] Override http request option.
19870
20391
  * @throws {RequiredError}
19871
20392
  */
19872
- async getAttachedPublicKeysV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSGetPublicKeysV1200Response>> {
20393
+ async getAttachedPublicKeysV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1PublicKeyListResponse>> {
19873
20394
  const localVarAxiosArgs = await localVarAxiosParamCreator.getAttachedPublicKeysV1(virtualMachineId, page, options);
19874
20395
  const localVarOperationServerBasePath = operationServerMap['VPSVirtualMachineApi.getAttachedPublicKeysV1']?.[0]?.url;
19875
20396
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -20067,7 +20588,7 @@ export const VPSVirtualMachineApiFactory = function (configuration?: Configurati
20067
20588
  * @param {*} [options] Override http request option.
20068
20589
  * @throws {RequiredError}
20069
20590
  */
20070
- getAttachedPublicKeysV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSGetPublicKeysV1200Response> {
20591
+ getAttachedPublicKeysV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1PublicKeyListResponse> {
20071
20592
  return localVarFp.getAttachedPublicKeysV1(virtualMachineId, page, options).then((request) => request(axios, basePath));
20072
20593
  },
20073
20594
  /**