hostinger-api-sdk 1.3.0 → 1.4.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 +2 -2
- package/api.ts +550 -108
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +329 -114
- package/dist/api.js +425 -5
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +329 -114
- package/dist/esm/api.js +417 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/HostingCacheApi.md +295 -0
- package/docs/VPSActionsApi.md +2 -2
- package/docs/VPSBackupsApi.md +2 -2
- package/docs/VPSFirewallApi.md +2 -2
- package/docs/VPSPostInstallScriptsApi.md +2 -2
- package/docs/VPSPublicKeysApi.md +2 -2
- package/docs/{VPSGetActionsV1200Response.md → VPSV1ActionListResponse.md} +3 -3
- package/docs/{VPSGetBackupsV1200Response.md → VPSV1BackupListResponse.md} +3 -3
- package/docs/{VPSGetFirewallListV1200Response.md → VPSV1FirewallListResponse.md} +3 -3
- package/docs/{VPSGetPostInstallScriptsV1200Response.md → VPSV1PostInstallScriptListResponse.md} +3 -3
- package/docs/{VPSGetPublicKeysV1200Response.md → VPSV1PublicKeyListResponse.md} +3 -3
- package/docs/VPSVirtualMachineApi.md +2 -2
- package/index.ts +1 -1
- 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.
|
|
6
|
+
* API Version: 1.4.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
|
|
@@ -10920,6 +10920,448 @@ export class HorizonsWebsitesApi extends BaseAPI {
|
|
|
10920
10920
|
|
|
10921
10921
|
|
|
10922
10922
|
|
|
10923
|
+
/**
|
|
10924
|
+
* HostingCacheApi - axios parameter creator
|
|
10925
|
+
* @export
|
|
10926
|
+
*/
|
|
10927
|
+
export const HostingCacheApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
10928
|
+
return {
|
|
10929
|
+
/**
|
|
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
|
+
* @param {string} username
|
|
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.
|
|
10935
|
+
* @param {*} [options] Override http request option.
|
|
10936
|
+
* @throws {RequiredError}
|
|
10937
|
+
*/
|
|
10938
|
+
clearWebsiteCacheV1: async (username: string, domain: string, directory?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10939
|
+
// verify required parameter 'username' is not null or undefined
|
|
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)));
|
|
10946
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10947
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10948
|
+
let baseOptions;
|
|
10949
|
+
if (configuration) {
|
|
10950
|
+
baseOptions = configuration.baseOptions;
|
|
10951
|
+
}
|
|
10952
|
+
|
|
10953
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
10954
|
+
const localVarHeaderParameter = {} as any;
|
|
10955
|
+
const localVarQueryParameter = {} as any;
|
|
10956
|
+
|
|
10957
|
+
// authentication apiToken required
|
|
10958
|
+
// http bearer authentication required
|
|
10959
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
10960
|
+
|
|
10961
|
+
if (directory !== undefined) {
|
|
10962
|
+
localVarQueryParameter['directory'] = directory;
|
|
10963
|
+
}
|
|
10964
|
+
|
|
10965
|
+
|
|
10966
|
+
|
|
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
|
+
|
|
11007
|
+
|
|
11008
|
+
|
|
11009
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11010
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11011
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11012
|
+
|
|
11013
|
+
return {
|
|
11014
|
+
url: toPathString(localVarUrlObj),
|
|
11015
|
+
options: localVarRequestOptions,
|
|
11016
|
+
};
|
|
11017
|
+
},
|
|
11018
|
+
/**
|
|
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
|
|
11021
|
+
* @param {string} username
|
|
11022
|
+
* @param {string} domain Domain name
|
|
11023
|
+
* @param {*} [options] Override http request option.
|
|
11024
|
+
* @throws {RequiredError}
|
|
11025
|
+
*/
|
|
11026
|
+
disableWebsiteCacheV1: async (username: string, domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11027
|
+
// verify required parameter 'username' is not null or undefined
|
|
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`
|
|
11032
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
11033
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
11034
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11035
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11036
|
+
let baseOptions;
|
|
11037
|
+
if (configuration) {
|
|
11038
|
+
baseOptions = configuration.baseOptions;
|
|
11039
|
+
}
|
|
11040
|
+
|
|
11041
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
11042
|
+
const localVarHeaderParameter = {} as any;
|
|
11043
|
+
const localVarQueryParameter = {} as any;
|
|
11044
|
+
|
|
11045
|
+
// authentication apiToken required
|
|
11046
|
+
// http bearer authentication required
|
|
11047
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
11048
|
+
|
|
11049
|
+
|
|
11050
|
+
|
|
11051
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11052
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11053
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11054
|
+
|
|
11055
|
+
return {
|
|
11056
|
+
url: toPathString(localVarUrlObj),
|
|
11057
|
+
options: localVarRequestOptions,
|
|
11058
|
+
};
|
|
11059
|
+
},
|
|
11060
|
+
/**
|
|
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
|
|
11063
|
+
* @param {string} username
|
|
11064
|
+
* @param {string} domain Domain name
|
|
11065
|
+
* @param {*} [options] Override http request option.
|
|
11066
|
+
* @throws {RequiredError}
|
|
11067
|
+
*/
|
|
11068
|
+
enableCachelessModeV1: async (username: string, domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11069
|
+
// verify required parameter 'username' is not null or undefined
|
|
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`
|
|
11074
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
11075
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
11076
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11077
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11078
|
+
let baseOptions;
|
|
11079
|
+
if (configuration) {
|
|
11080
|
+
baseOptions = configuration.baseOptions;
|
|
11081
|
+
}
|
|
11082
|
+
|
|
11083
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
11084
|
+
const localVarHeaderParameter = {} as any;
|
|
11085
|
+
const localVarQueryParameter = {} as any;
|
|
11086
|
+
|
|
11087
|
+
// authentication apiToken required
|
|
11088
|
+
// http bearer authentication required
|
|
11089
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
11090
|
+
|
|
11091
|
+
|
|
11092
|
+
|
|
11093
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11094
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11095
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11096
|
+
|
|
11097
|
+
return {
|
|
11098
|
+
url: toPathString(localVarUrlObj),
|
|
11099
|
+
options: localVarRequestOptions,
|
|
11100
|
+
};
|
|
11101
|
+
},
|
|
11102
|
+
/**
|
|
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
|
|
11105
|
+
* @param {string} username
|
|
11106
|
+
* @param {string} domain Domain name
|
|
11107
|
+
* @param {*} [options] Override http request option.
|
|
11108
|
+
* @throws {RequiredError}
|
|
11109
|
+
*/
|
|
11110
|
+
enableWebsiteCacheV1: async (username: string, domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11111
|
+
// verify required parameter 'username' is not null or undefined
|
|
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)));
|
|
11118
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11119
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11120
|
+
let baseOptions;
|
|
11121
|
+
if (configuration) {
|
|
11122
|
+
baseOptions = configuration.baseOptions;
|
|
11123
|
+
}
|
|
11124
|
+
|
|
11125
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
11126
|
+
const localVarHeaderParameter = {} as any;
|
|
11127
|
+
const localVarQueryParameter = {} as any;
|
|
11128
|
+
|
|
11129
|
+
// authentication apiToken required
|
|
11130
|
+
// http bearer authentication required
|
|
11131
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
11132
|
+
|
|
11133
|
+
|
|
11134
|
+
|
|
11135
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11136
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11137
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11138
|
+
|
|
11139
|
+
return {
|
|
11140
|
+
url: toPathString(localVarUrlObj),
|
|
11141
|
+
options: localVarRequestOptions,
|
|
11142
|
+
};
|
|
11143
|
+
},
|
|
11144
|
+
}
|
|
11145
|
+
};
|
|
11146
|
+
|
|
11147
|
+
/**
|
|
11148
|
+
* HostingCacheApi - functional programming interface
|
|
11149
|
+
* @export
|
|
11150
|
+
*/
|
|
11151
|
+
export const HostingCacheApiFp = function(configuration?: Configuration) {
|
|
11152
|
+
const localVarAxiosParamCreator = HostingCacheApiAxiosParamCreator(configuration)
|
|
11153
|
+
return {
|
|
11154
|
+
/**
|
|
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
|
|
11157
|
+
* @param {string} username
|
|
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.
|
|
11160
|
+
* @param {*} [options] Override http request option.
|
|
11161
|
+
* @throws {RequiredError}
|
|
11162
|
+
*/
|
|
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
|
+
|
|
10923
11365
|
/**
|
|
10924
11366
|
* HostingCronJobsApi - axios parameter creator
|
|
10925
11367
|
* @export
|
|
@@ -15295,7 +15737,7 @@ export const VPSActionsApiFp = function(configuration?: Configuration) {
|
|
|
15295
15737
|
* @param {*} [options] Override http request option.
|
|
15296
15738
|
* @throws {RequiredError}
|
|
15297
15739
|
*/
|
|
15298
|
-
async getActionsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
15740
|
+
async getActionsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1ActionListResponse>> {
|
|
15299
15741
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getActionsV1(virtualMachineId, page, options);
|
|
15300
15742
|
const localVarOperationServerBasePath = operationServerMap['VPSActionsApi.getActionsV1']?.[0]?.url;
|
|
15301
15743
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -15329,7 +15771,7 @@ export const VPSActionsApiFactory = function (configuration?: Configuration, bas
|
|
|
15329
15771
|
* @param {*} [options] Override http request option.
|
|
15330
15772
|
* @throws {RequiredError}
|
|
15331
15773
|
*/
|
|
15332
|
-
getActionsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
15774
|
+
getActionsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1ActionListResponse> {
|
|
15333
15775
|
return localVarFp.getActionsV1(virtualMachineId, page, options).then((request) => request(axios, basePath));
|
|
15334
15776
|
},
|
|
15335
15777
|
};
|
|
@@ -15480,7 +15922,7 @@ export const VPSBackupsApiFp = function(configuration?: Configuration) {
|
|
|
15480
15922
|
* @param {*} [options] Override http request option.
|
|
15481
15923
|
* @throws {RequiredError}
|
|
15482
15924
|
*/
|
|
15483
|
-
async getBackupsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
15925
|
+
async getBackupsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1BackupListResponse>> {
|
|
15484
15926
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getBackupsV1(virtualMachineId, page, options);
|
|
15485
15927
|
const localVarOperationServerBasePath = operationServerMap['VPSBackupsApi.getBackupsV1']?.[0]?.url;
|
|
15486
15928
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -15516,7 +15958,7 @@ export const VPSBackupsApiFactory = function (configuration?: Configuration, bas
|
|
|
15516
15958
|
* @param {*} [options] Override http request option.
|
|
15517
15959
|
* @throws {RequiredError}
|
|
15518
15960
|
*/
|
|
15519
|
-
getBackupsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
15961
|
+
getBackupsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1BackupListResponse> {
|
|
15520
15962
|
return localVarFp.getBackupsV1(virtualMachineId, page, options).then((request) => request(axios, basePath));
|
|
15521
15963
|
},
|
|
15522
15964
|
/**
|
|
@@ -17023,7 +17465,7 @@ export const VPSFirewallApiFp = function(configuration?: Configuration) {
|
|
|
17023
17465
|
* @param {*} [options] Override http request option.
|
|
17024
17466
|
* @throws {RequiredError}
|
|
17025
17467
|
*/
|
|
17026
|
-
async getFirewallListV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
17468
|
+
async getFirewallListV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1FirewallListResponse>> {
|
|
17027
17469
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getFirewallListV1(page, options);
|
|
17028
17470
|
const localVarOperationServerBasePath = operationServerMap['VPSFirewallApi.getFirewallListV1']?.[0]?.url;
|
|
17029
17471
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -17146,7 +17588,7 @@ export const VPSFirewallApiFactory = function (configuration?: Configuration, ba
|
|
|
17146
17588
|
* @param {*} [options] Override http request option.
|
|
17147
17589
|
* @throws {RequiredError}
|
|
17148
17590
|
*/
|
|
17149
|
-
getFirewallListV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
17591
|
+
getFirewallListV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1FirewallListResponse> {
|
|
17150
17592
|
return localVarFp.getFirewallListV1(page, options).then((request) => request(axios, basePath));
|
|
17151
17593
|
},
|
|
17152
17594
|
/**
|
|
@@ -18207,7 +18649,7 @@ export const VPSPostInstallScriptsApiFp = function(configuration?: Configuration
|
|
|
18207
18649
|
* @param {*} [options] Override http request option.
|
|
18208
18650
|
* @throws {RequiredError}
|
|
18209
18651
|
*/
|
|
18210
|
-
async getPostInstallScriptsV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
18652
|
+
async getPostInstallScriptsV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1PostInstallScriptListResponse>> {
|
|
18211
18653
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPostInstallScriptsV1(page, options);
|
|
18212
18654
|
const localVarOperationServerBasePath = operationServerMap['VPSPostInstallScriptsApi.getPostInstallScriptsV1']?.[0]?.url;
|
|
18213
18655
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -18272,7 +18714,7 @@ export const VPSPostInstallScriptsApiFactory = function (configuration?: Configu
|
|
|
18272
18714
|
* @param {*} [options] Override http request option.
|
|
18273
18715
|
* @throws {RequiredError}
|
|
18274
18716
|
*/
|
|
18275
|
-
getPostInstallScriptsV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
18717
|
+
getPostInstallScriptsV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1PostInstallScriptListResponse> {
|
|
18276
18718
|
return localVarFp.getPostInstallScriptsV1(page, options).then((request) => request(axios, basePath));
|
|
18277
18719
|
},
|
|
18278
18720
|
/**
|
|
@@ -18581,7 +19023,7 @@ export const VPSPublicKeysApiFp = function(configuration?: Configuration) {
|
|
|
18581
19023
|
* @param {*} [options] Override http request option.
|
|
18582
19024
|
* @throws {RequiredError}
|
|
18583
19025
|
*/
|
|
18584
|
-
async getPublicKeysV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
19026
|
+
async getPublicKeysV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1PublicKeyListResponse>> {
|
|
18585
19027
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicKeysV1(page, options);
|
|
18586
19028
|
const localVarOperationServerBasePath = operationServerMap['VPSPublicKeysApi.getPublicKeysV1']?.[0]?.url;
|
|
18587
19029
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -18634,7 +19076,7 @@ export const VPSPublicKeysApiFactory = function (configuration?: Configuration,
|
|
|
18634
19076
|
* @param {*} [options] Override http request option.
|
|
18635
19077
|
* @throws {RequiredError}
|
|
18636
19078
|
*/
|
|
18637
|
-
getPublicKeysV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
19079
|
+
getPublicKeysV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1PublicKeyListResponse> {
|
|
18638
19080
|
return localVarFp.getPublicKeysV1(page, options).then((request) => request(axios, basePath));
|
|
18639
19081
|
},
|
|
18640
19082
|
};
|
|
@@ -19869,7 +20311,7 @@ export const VPSVirtualMachineApiFp = function(configuration?: Configuration) {
|
|
|
19869
20311
|
* @param {*} [options] Override http request option.
|
|
19870
20312
|
* @throws {RequiredError}
|
|
19871
20313
|
*/
|
|
19872
|
-
async getAttachedPublicKeysV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
20314
|
+
async getAttachedPublicKeysV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1PublicKeyListResponse>> {
|
|
19873
20315
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAttachedPublicKeysV1(virtualMachineId, page, options);
|
|
19874
20316
|
const localVarOperationServerBasePath = operationServerMap['VPSVirtualMachineApi.getAttachedPublicKeysV1']?.[0]?.url;
|
|
19875
20317
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -20067,7 +20509,7 @@ export const VPSVirtualMachineApiFactory = function (configuration?: Configurati
|
|
|
20067
20509
|
* @param {*} [options] Override http request option.
|
|
20068
20510
|
* @throws {RequiredError}
|
|
20069
20511
|
*/
|
|
20070
|
-
getAttachedPublicKeysV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
20512
|
+
getAttachedPublicKeysV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1PublicKeyListResponse> {
|
|
20071
20513
|
return localVarFp.getAttachedPublicKeysV1(virtualMachineId, page, options).then((request) => request(axios, basePath));
|
|
20072
20514
|
},
|
|
20073
20515
|
/**
|