hostinger-api-sdk 1.2.1 → 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 +2842 -568
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +1547 -277
- package/dist/api.js +2420 -545
- 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 +1547 -277
- package/dist/esm/api.js +4581 -2731
- 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/docs/WordPressAIToolsApi.md +129 -0
- package/docs/WordPressInstallationsApi.md +408 -0
- package/docs/WordPressLiteSpeedCacheApi.md +121 -0
- package/docs/WordPressLoginApi.md +64 -0
- package/docs/WordPressMaintenanceApi.md +126 -0
- package/docs/WordPressObjectCacheApi.md +126 -0
- package/docs/WordPressV1HostingerPluginsAiOptionStatusResource.md +22 -0
- package/docs/WordPressV1HostingerPluginsUpdateAiOptionStatusRequest.md +22 -0
- package/docs/WordPressV1InstallationsCheckIsValidRequest.md +22 -0
- package/docs/WordPressV1InstallationsCheckIsValidResultResource.md +22 -0
- package/docs/WordPressV1InstallationsDeleteInstallationRequest.md +22 -0
- package/docs/WordPressV1InstallationsJwtTokenResource.md +26 -0
- package/docs/WordPressV1InstallationsUpdateInstallationRequest.md +22 -0
- package/docs/WordPressV1InstallationsUpdateResource.md +24 -0
- package/docs/WordPressV1InstallationsVersionResource.md +22 -0
- package/docs/WordPressV1LitespeedLitespeedCacheStatusResource.md +22 -0
- package/docs/WordPressV1LoginLoginLinksResource.md +24 -0
- package/docs/WordPressV1MaintenanceMaintenanceStatusResource.md +20 -0
- package/docs/WordPressV1MaintenanceToggleMaintenanceRequest.md +20 -0
- package/docs/WordPressV1MemcachedMemcachedStatusResource.md +20 -0
- package/docs/WordPressV1MemcachedToggleMemcachedRequest.md +20 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.4.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -20,10 +20,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = exports.VPSV1FirewallRulesStoreRequestSourceEnum = exports.VPSV1FirewallRulesStoreRequestProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceActionEnum = exports.VPSV1DockerManagerProjectResourceStateEnum = exports.VPSV1DockerManagerContainerResourceHealthEnum = exports.VPSV1DockerManagerContainerResourceStateEnum = exports.VPSV1DockerManagerContainerPortResourceProtocolEnum = exports.VPSV1DockerManagerContainerPortResourceTypeEnum = exports.VPSV1ActionActionResourceStateEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerAttributeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsContactResourceSourceEnum = exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = exports.HostingV1WebsitesWebsiteResourceVhostTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = exports.HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = exports.HostingV1NodeJsBuildResourceStateEnum = exports.HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = exports.HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = exports.HostingV1NodeJsBuildOptionsResourceAppTypeEnum = exports.HostingV1DomainsParkedDomainResourceTypeEnum = exports.HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = exports.EcommerceV1StoreStoreRequestSalesChannelTypeEnum = exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = exports.EcommerceV1SalesChannelStoreRequestTypeEnum = exports.EcommerceV1SalesChannelSalesChannelListResourceSalesChannelsInnerTypeEnum = exports.EcommerceV1SalesChannelSalesChannelCreationResourceSalesChannelTypeEnum = exports.EcommerceV1ProductProductCreationResourceProductTypeEnum = exports.DomainsV1WHOISStoreRequestEntityTypeEnum = exports.DomainsV1WHOISProfileResourceEntityTypeEnum = exports.DomainsV1ForwardingStoreRequestRedirectTypeEnum = exports.DomainsV1ForwardingForwardingResourceRedirectTypeEnum = exports.DomainsV1DomainDomainResourceStatusEnum = exports.DomainsV1DomainDomainResourceTypeEnum = exports.DomainsV1DomainDomainExtendedResourceStatusEnum = exports.DNSV1ZoneUpdateRequestZoneInnerTypeEnum = exports.DNSV1ZoneRecordResourceTypeEnum = exports.DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = exports.BillingV1SubscriptionSubscriptionResourceStatusEnum = exports.BillingV1SubscriptionCancelRequestCancelOptionEnum = exports.BillingV1SubscriptionCancelRequestReasonCodeEnum = exports.BillingV1OrderOrderResourceStatusEnum = exports.BillingV1CatalogCatalogItemPriceResourcePeriodUnitEnum = void 0;
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
23
|
+
exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = exports.DomainsForwardingApi = exports.DomainsForwardingApiFactory = exports.DomainsForwardingApiFp = exports.DomainsForwardingApiAxiosParamCreator = exports.DomainsAvailabilityApi = exports.DomainsAvailabilityApiFactory = exports.DomainsAvailabilityApiFp = exports.DomainsAvailabilityApiAxiosParamCreator = exports.DomainAccessVerifierVerificationsApi = exports.DomainAccessVerifierVerificationsApiFactory = exports.DomainAccessVerifierVerificationsApiFp = exports.DomainAccessVerifierVerificationsApiAxiosParamCreator = exports.DNSZoneApi = exports.DNSZoneApiFactory = exports.DNSZoneApiFp = exports.DNSZoneApiAxiosParamCreator = exports.DNSSnapshotApi = exports.DNSSnapshotApiFactory = exports.DNSSnapshotApiFp = exports.DNSSnapshotApiAxiosParamCreator = exports.BillingSubscriptionsApi = exports.BillingSubscriptionsApiFactory = exports.BillingSubscriptionsApiFp = exports.BillingSubscriptionsApiAxiosParamCreator = exports.BillingPaymentMethodsApi = exports.BillingPaymentMethodsApiFactory = exports.BillingPaymentMethodsApiFp = exports.BillingPaymentMethodsApiAxiosParamCreator = exports.GetCatalogItemListV1CategoryEnum = exports.BillingCatalogApi = exports.BillingCatalogApiFactory = exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = exports.WordPressV1ThemesInstalledThemeResourceStatusEnum = exports.WordPressV1ThemesInstallThemeRequestFontEnum = exports.WordPressV1PluginsUpdateHostingerPluginRequestSlugEnum = exports.WordPressV1PluginsSuggestedPluginGroupResourceWebsiteTypeEnum = exports.WordPressV1PluginsInstalledPluginResourceStatusEnum = exports.WordPressV1MemcachedMemcachedStatusResourceStatusEnum = exports.WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum = exports.WordPressV1InstallationsUpdateResourceTypeEnum = exports.WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = exports.WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum = void 0;
|
|
24
|
+
exports.HostingNodeJSApiAxiosParamCreator = exports.HostingDomainsApi = exports.HostingDomainsApiFactory = exports.HostingDomainsApiFp = exports.HostingDomainsApiAxiosParamCreator = exports.HostingDatacentersApi = exports.HostingDatacentersApiFactory = exports.HostingDatacentersApiFp = exports.HostingDatacentersApiAxiosParamCreator = exports.HostingDatabasesApi = exports.HostingDatabasesApiFactory = exports.HostingDatabasesApiFp = exports.HostingDatabasesApiAxiosParamCreator = exports.HostingCronJobsApi = exports.HostingCronJobsApiFactory = exports.HostingCronJobsApiFp = exports.HostingCronJobsApiAxiosParamCreator = exports.HostingCacheApi = exports.HostingCacheApiFactory = exports.HostingCacheApiFp = exports.HostingCacheApiAxiosParamCreator = exports.HorizonsWebsitesApi = exports.HorizonsWebsitesApiFactory = exports.HorizonsWebsitesApiFp = exports.HorizonsWebsitesApiAxiosParamCreator = exports.EcommerceStoresApi = exports.EcommerceStoresApiFactory = exports.EcommerceStoresApiFp = exports.EcommerceStoresApiAxiosParamCreator = exports.EcommerceShippingApi = exports.EcommerceShippingApiFactory = exports.EcommerceShippingApiFp = exports.EcommerceShippingApiAxiosParamCreator = exports.EcommerceSalesChannelsApi = exports.EcommerceSalesChannelsApiFactory = exports.EcommerceSalesChannelsApiFp = exports.EcommerceSalesChannelsApiAxiosParamCreator = exports.EcommerceProductsApi = exports.EcommerceProductsApiFactory = exports.EcommerceProductsApiFp = exports.EcommerceProductsApiAxiosParamCreator = exports.EcommercePaymentsApi = exports.EcommercePaymentsApiFactory = exports.EcommercePaymentsApiFp = exports.EcommercePaymentsApiAxiosParamCreator = exports.EcommerceMiscellaneousApi = exports.EcommerceMiscellaneousApiFactory = exports.EcommerceMiscellaneousApiFp = exports.EcommerceMiscellaneousApiAxiosParamCreator = exports.DomainsWHOISApi = void 0;
|
|
25
|
+
exports.VPSFirewallApi = exports.VPSFirewallApiFactory = exports.VPSFirewallApiFp = exports.VPSFirewallApiAxiosParamCreator = exports.VPSDockerManagerApi = exports.VPSDockerManagerApiFactory = exports.VPSDockerManagerApiFp = exports.VPSDockerManagerApiAxiosParamCreator = exports.VPSDataCentersApi = exports.VPSDataCentersApiFactory = exports.VPSDataCentersApiFp = exports.VPSDataCentersApiAxiosParamCreator = exports.VPSBackupsApi = exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ReachSegmentsApi = exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = exports.ReachSegmentsApiAxiosParamCreator = exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = exports.ReachProfilesApiAxiosParamCreator = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.HostingWebsitesApi = exports.HostingWebsitesApiFactory = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.HostingPHPApi = exports.HostingPHPApiFactory = exports.HostingPHPApiFp = exports.HostingPHPApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = exports.HostingOrdersApi = exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJSBuildsV1StatesEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = void 0;
|
|
26
|
+
exports.WordPressLoginApi = exports.WordPressLoginApiFactory = exports.WordPressLoginApiFp = exports.WordPressLoginApiAxiosParamCreator = exports.WordPressLiteSpeedCacheApi = exports.WordPressLiteSpeedCacheApiFactory = exports.WordPressLiteSpeedCacheApiFp = exports.WordPressLiteSpeedCacheApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.WordPressInstallationsApi = exports.WordPressInstallationsApiFactory = exports.WordPressInstallationsApiFp = exports.WordPressInstallationsApiAxiosParamCreator = exports.ShowAIOptionStatusV1OptionEnum = exports.WordPressAIToolsApi = exports.WordPressAIToolsApiFactory = exports.WordPressAIToolsApiFp = exports.WordPressAIToolsApiAxiosParamCreator = exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = exports.VPSPTRRecordsApi = exports.VPSPTRRecordsApiFactory = exports.VPSPTRRecordsApiFp = exports.VPSPTRRecordsApiAxiosParamCreator = exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = exports.VPSOSTemplatesApiFp = exports.VPSOSTemplatesApiAxiosParamCreator = exports.VPSMalwareScannerApi = exports.VPSMalwareScannerApiFactory = exports.VPSMalwareScannerApiFp = exports.VPSMalwareScannerApiAxiosParamCreator = void 0;
|
|
27
|
+
exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = exports.WordPressObjectCacheApi = exports.WordPressObjectCacheApiFactory = exports.WordPressObjectCacheApiFp = exports.WordPressObjectCacheApiAxiosParamCreator = exports.WordPressMaintenanceApi = exports.WordPressMaintenanceApiFactory = exports.WordPressMaintenanceApiFp = exports.WordPressMaintenanceApiAxiosParamCreator = void 0;
|
|
27
28
|
const axios_1 = require("axios");
|
|
28
29
|
// Some imports not used depending on template conditions
|
|
29
30
|
// @ts-ignore
|
|
@@ -401,11 +402,27 @@ exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = {
|
|
|
401
402
|
Unlocked: 'unlocked',
|
|
402
403
|
Locked: 'locked'
|
|
403
404
|
};
|
|
405
|
+
exports.WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum = {
|
|
406
|
+
Llmstxt: 'llmstxt',
|
|
407
|
+
Web2agent: 'web2agent'
|
|
408
|
+
};
|
|
404
409
|
exports.WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = {
|
|
405
410
|
All: 'all',
|
|
406
411
|
None: 'none',
|
|
407
412
|
Minor: 'minor'
|
|
408
413
|
};
|
|
414
|
+
exports.WordPressV1InstallationsUpdateResourceTypeEnum = {
|
|
415
|
+
Major: 'major',
|
|
416
|
+
Minor: 'minor'
|
|
417
|
+
};
|
|
418
|
+
exports.WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum = {
|
|
419
|
+
Enabled: 'enabled',
|
|
420
|
+
Disabled: 'disabled'
|
|
421
|
+
};
|
|
422
|
+
exports.WordPressV1MemcachedMemcachedStatusResourceStatusEnum = {
|
|
423
|
+
Active: 'active',
|
|
424
|
+
Inactive: 'inactive'
|
|
425
|
+
};
|
|
409
426
|
exports.WordPressV1PluginsInstalledPluginResourceStatusEnum = {
|
|
410
427
|
Active: 'active',
|
|
411
428
|
Inactive: 'inactive'
|
|
@@ -4383,71 +4400,74 @@ class HorizonsWebsitesApi extends base_1.BaseAPI {
|
|
|
4383
4400
|
}
|
|
4384
4401
|
exports.HorizonsWebsitesApi = HorizonsWebsitesApi;
|
|
4385
4402
|
/**
|
|
4386
|
-
*
|
|
4403
|
+
* HostingCacheApi - axios parameter creator
|
|
4387
4404
|
* @export
|
|
4388
4405
|
*/
|
|
4389
|
-
const
|
|
4406
|
+
const HostingCacheApiAxiosParamCreator = function (configuration) {
|
|
4390
4407
|
return {
|
|
4391
4408
|
/**
|
|
4392
|
-
*
|
|
4393
|
-
* @summary
|
|
4409
|
+
* 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.
|
|
4410
|
+
* @summary Clear website cache
|
|
4394
4411
|
* @param {string} username
|
|
4395
|
-
* @param {
|
|
4412
|
+
* @param {string} domain Domain name
|
|
4413
|
+
* @param {string} [directory] Directory of the website installation to clear, relative to the website root. Defaults to the website root.
|
|
4396
4414
|
* @param {*} [options] Override http request option.
|
|
4397
4415
|
* @throws {RequiredError}
|
|
4398
4416
|
*/
|
|
4399
|
-
|
|
4417
|
+
clearWebsiteCacheV1: (username_1, domain_1, directory_1, ...args_1) => __awaiter(this, [username_1, domain_1, directory_1, ...args_1], void 0, function* (username, domain, directory, options = {}) {
|
|
4400
4418
|
// verify required parameter 'username' is not null or undefined
|
|
4401
|
-
(0, common_1.assertParamExists)('
|
|
4402
|
-
// verify required parameter '
|
|
4403
|
-
(0, common_1.assertParamExists)('
|
|
4404
|
-
const localVarPath = `/api/hosting/v1/accounts/{username}/
|
|
4405
|
-
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
4419
|
+
(0, common_1.assertParamExists)('clearWebsiteCacheV1', 'username', username);
|
|
4420
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4421
|
+
(0, common_1.assertParamExists)('clearWebsiteCacheV1', 'domain', domain);
|
|
4422
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cache/clear`
|
|
4423
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
4424
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4406
4425
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4407
4426
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4408
4427
|
let baseOptions;
|
|
4409
4428
|
if (configuration) {
|
|
4410
4429
|
baseOptions = configuration.baseOptions;
|
|
4411
4430
|
}
|
|
4412
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
4431
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
4413
4432
|
const localVarHeaderParameter = {};
|
|
4414
4433
|
const localVarQueryParameter = {};
|
|
4415
4434
|
// authentication apiToken required
|
|
4416
4435
|
// http bearer authentication required
|
|
4417
4436
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4418
|
-
|
|
4437
|
+
if (directory !== undefined) {
|
|
4438
|
+
localVarQueryParameter['directory'] = directory;
|
|
4439
|
+
}
|
|
4419
4440
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4420
4441
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4421
4442
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4422
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1CronJobsCreateCronJobRequest, localVarRequestOptions, configuration);
|
|
4423
4443
|
return {
|
|
4424
4444
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4425
4445
|
options: localVarRequestOptions,
|
|
4426
4446
|
};
|
|
4427
4447
|
}),
|
|
4428
4448
|
/**
|
|
4429
|
-
*
|
|
4430
|
-
* @summary
|
|
4449
|
+
* 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.
|
|
4450
|
+
* @summary Disable cacheless mode
|
|
4431
4451
|
* @param {string} username
|
|
4432
|
-
* @param {string}
|
|
4452
|
+
* @param {string} domain Domain name
|
|
4433
4453
|
* @param {*} [options] Override http request option.
|
|
4434
4454
|
* @throws {RequiredError}
|
|
4435
4455
|
*/
|
|
4436
|
-
|
|
4456
|
+
disableCachelessModeV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
4437
4457
|
// verify required parameter 'username' is not null or undefined
|
|
4438
|
-
(0, common_1.assertParamExists)('
|
|
4439
|
-
// verify required parameter '
|
|
4440
|
-
(0, common_1.assertParamExists)('
|
|
4441
|
-
const localVarPath = `/api/hosting/v1/accounts/{username}/
|
|
4458
|
+
(0, common_1.assertParamExists)('disableCachelessModeV1', 'username', username);
|
|
4459
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4460
|
+
(0, common_1.assertParamExists)('disableCachelessModeV1', 'domain', domain);
|
|
4461
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/disable`
|
|
4442
4462
|
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
4443
|
-
.replace(`{${"
|
|
4463
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4444
4464
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4445
4465
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4446
4466
|
let baseOptions;
|
|
4447
4467
|
if (configuration) {
|
|
4448
4468
|
baseOptions = configuration.baseOptions;
|
|
4449
4469
|
}
|
|
4450
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
4470
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
4451
4471
|
const localVarHeaderParameter = {};
|
|
4452
4472
|
const localVarQueryParameter = {};
|
|
4453
4473
|
// authentication apiToken required
|
|
@@ -4462,28 +4482,28 @@ const HostingCronJobsApiAxiosParamCreator = function (configuration) {
|
|
|
4462
4482
|
};
|
|
4463
4483
|
}),
|
|
4464
4484
|
/**
|
|
4465
|
-
*
|
|
4466
|
-
* @summary
|
|
4485
|
+
* 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.
|
|
4486
|
+
* @summary Disable website cache
|
|
4467
4487
|
* @param {string} username
|
|
4468
|
-
* @param {string}
|
|
4488
|
+
* @param {string} domain Domain name
|
|
4469
4489
|
* @param {*} [options] Override http request option.
|
|
4470
4490
|
* @throws {RequiredError}
|
|
4471
4491
|
*/
|
|
4472
|
-
|
|
4492
|
+
disableWebsiteCacheV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
4473
4493
|
// verify required parameter 'username' is not null or undefined
|
|
4474
|
-
(0, common_1.assertParamExists)('
|
|
4475
|
-
// verify required parameter '
|
|
4476
|
-
(0, common_1.assertParamExists)('
|
|
4477
|
-
const localVarPath = `/api/hosting/v1/accounts/{username}/
|
|
4494
|
+
(0, common_1.assertParamExists)('disableWebsiteCacheV1', 'username', username);
|
|
4495
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4496
|
+
(0, common_1.assertParamExists)('disableWebsiteCacheV1', 'domain', domain);
|
|
4497
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cache/disable`
|
|
4478
4498
|
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
4479
|
-
.replace(`{${"
|
|
4499
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4480
4500
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4481
4501
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4482
4502
|
let baseOptions;
|
|
4483
4503
|
if (configuration) {
|
|
4484
4504
|
baseOptions = configuration.baseOptions;
|
|
4485
4505
|
}
|
|
4486
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
4506
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
4487
4507
|
const localVarHeaderParameter = {};
|
|
4488
4508
|
const localVarQueryParameter = {};
|
|
4489
4509
|
// authentication apiToken required
|
|
@@ -4498,24 +4518,64 @@ const HostingCronJobsApiAxiosParamCreator = function (configuration) {
|
|
|
4498
4518
|
};
|
|
4499
4519
|
}),
|
|
4500
4520
|
/**
|
|
4501
|
-
*
|
|
4502
|
-
* @summary
|
|
4521
|
+
* 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.
|
|
4522
|
+
* @summary Enable cacheless mode
|
|
4503
4523
|
* @param {string} username
|
|
4524
|
+
* @param {string} domain Domain name
|
|
4504
4525
|
* @param {*} [options] Override http request option.
|
|
4505
4526
|
* @throws {RequiredError}
|
|
4506
4527
|
*/
|
|
4507
|
-
|
|
4528
|
+
enableCachelessModeV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
4508
4529
|
// verify required parameter 'username' is not null or undefined
|
|
4509
|
-
(0, common_1.assertParamExists)('
|
|
4510
|
-
|
|
4511
|
-
|
|
4530
|
+
(0, common_1.assertParamExists)('enableCachelessModeV1', 'username', username);
|
|
4531
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4532
|
+
(0, common_1.assertParamExists)('enableCachelessModeV1', 'domain', domain);
|
|
4533
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/enable`
|
|
4534
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
4535
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4512
4536
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4513
4537
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4514
4538
|
let baseOptions;
|
|
4515
4539
|
if (configuration) {
|
|
4516
4540
|
baseOptions = configuration.baseOptions;
|
|
4517
4541
|
}
|
|
4518
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
4542
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
4543
|
+
const localVarHeaderParameter = {};
|
|
4544
|
+
const localVarQueryParameter = {};
|
|
4545
|
+
// authentication apiToken required
|
|
4546
|
+
// http bearer authentication required
|
|
4547
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4548
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4549
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4550
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4551
|
+
return {
|
|
4552
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4553
|
+
options: localVarRequestOptions,
|
|
4554
|
+
};
|
|
4555
|
+
}),
|
|
4556
|
+
/**
|
|
4557
|
+
* 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.
|
|
4558
|
+
* @summary Enable website cache
|
|
4559
|
+
* @param {string} username
|
|
4560
|
+
* @param {string} domain Domain name
|
|
4561
|
+
* @param {*} [options] Override http request option.
|
|
4562
|
+
* @throws {RequiredError}
|
|
4563
|
+
*/
|
|
4564
|
+
enableWebsiteCacheV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
4565
|
+
// verify required parameter 'username' is not null or undefined
|
|
4566
|
+
(0, common_1.assertParamExists)('enableWebsiteCacheV1', 'username', username);
|
|
4567
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4568
|
+
(0, common_1.assertParamExists)('enableWebsiteCacheV1', 'domain', domain);
|
|
4569
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cache/enable`
|
|
4570
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
4571
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4572
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4573
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4574
|
+
let baseOptions;
|
|
4575
|
+
if (configuration) {
|
|
4576
|
+
baseOptions = configuration.baseOptions;
|
|
4577
|
+
}
|
|
4578
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
4519
4579
|
const localVarHeaderParameter = {};
|
|
4520
4580
|
const localVarQueryParameter = {};
|
|
4521
4581
|
// authentication apiToken required
|
|
@@ -4531,221 +4591,262 @@ const HostingCronJobsApiAxiosParamCreator = function (configuration) {
|
|
|
4531
4591
|
}),
|
|
4532
4592
|
};
|
|
4533
4593
|
};
|
|
4534
|
-
exports.
|
|
4594
|
+
exports.HostingCacheApiAxiosParamCreator = HostingCacheApiAxiosParamCreator;
|
|
4535
4595
|
/**
|
|
4536
|
-
*
|
|
4596
|
+
* HostingCacheApi - functional programming interface
|
|
4537
4597
|
* @export
|
|
4538
4598
|
*/
|
|
4539
|
-
const
|
|
4540
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
4599
|
+
const HostingCacheApiFp = function (configuration) {
|
|
4600
|
+
const localVarAxiosParamCreator = (0, exports.HostingCacheApiAxiosParamCreator)(configuration);
|
|
4541
4601
|
return {
|
|
4542
4602
|
/**
|
|
4543
|
-
*
|
|
4544
|
-
* @summary
|
|
4603
|
+
* 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.
|
|
4604
|
+
* @summary Clear website cache
|
|
4545
4605
|
* @param {string} username
|
|
4546
|
-
* @param {
|
|
4606
|
+
* @param {string} domain Domain name
|
|
4607
|
+
* @param {string} [directory] Directory of the website installation to clear, relative to the website root. Defaults to the website root.
|
|
4547
4608
|
* @param {*} [options] Override http request option.
|
|
4548
4609
|
* @throws {RequiredError}
|
|
4549
4610
|
*/
|
|
4550
|
-
|
|
4611
|
+
clearWebsiteCacheV1(username, domain, directory, options) {
|
|
4551
4612
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4552
4613
|
var _a, _b;
|
|
4553
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4554
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['
|
|
4614
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.clearWebsiteCacheV1(username, domain, directory, options);
|
|
4615
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCacheApi.clearWebsiteCacheV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4555
4616
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4556
4617
|
});
|
|
4557
4618
|
},
|
|
4558
4619
|
/**
|
|
4559
|
-
*
|
|
4560
|
-
* @summary
|
|
4620
|
+
* 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.
|
|
4621
|
+
* @summary Disable cacheless mode
|
|
4561
4622
|
* @param {string} username
|
|
4562
|
-
* @param {string}
|
|
4623
|
+
* @param {string} domain Domain name
|
|
4563
4624
|
* @param {*} [options] Override http request option.
|
|
4564
4625
|
* @throws {RequiredError}
|
|
4565
4626
|
*/
|
|
4566
|
-
|
|
4627
|
+
disableCachelessModeV1(username, domain, options) {
|
|
4567
4628
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4568
4629
|
var _a, _b;
|
|
4569
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4570
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['
|
|
4630
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.disableCachelessModeV1(username, domain, options);
|
|
4631
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCacheApi.disableCachelessModeV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4571
4632
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4572
4633
|
});
|
|
4573
4634
|
},
|
|
4574
4635
|
/**
|
|
4575
|
-
*
|
|
4576
|
-
* @summary
|
|
4636
|
+
* 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.
|
|
4637
|
+
* @summary Disable website cache
|
|
4577
4638
|
* @param {string} username
|
|
4578
|
-
* @param {string}
|
|
4639
|
+
* @param {string} domain Domain name
|
|
4579
4640
|
* @param {*} [options] Override http request option.
|
|
4580
4641
|
* @throws {RequiredError}
|
|
4581
4642
|
*/
|
|
4582
|
-
|
|
4643
|
+
disableWebsiteCacheV1(username, domain, options) {
|
|
4583
4644
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4584
4645
|
var _a, _b;
|
|
4585
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4586
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['
|
|
4646
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.disableWebsiteCacheV1(username, domain, options);
|
|
4647
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCacheApi.disableWebsiteCacheV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4587
4648
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4588
4649
|
});
|
|
4589
4650
|
},
|
|
4590
4651
|
/**
|
|
4591
|
-
*
|
|
4592
|
-
* @summary
|
|
4652
|
+
* 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.
|
|
4653
|
+
* @summary Enable cacheless mode
|
|
4593
4654
|
* @param {string} username
|
|
4655
|
+
* @param {string} domain Domain name
|
|
4594
4656
|
* @param {*} [options] Override http request option.
|
|
4595
4657
|
* @throws {RequiredError}
|
|
4596
4658
|
*/
|
|
4597
|
-
|
|
4659
|
+
enableCachelessModeV1(username, domain, options) {
|
|
4598
4660
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4599
4661
|
var _a, _b;
|
|
4600
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
4601
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['
|
|
4662
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.enableCachelessModeV1(username, domain, options);
|
|
4663
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCacheApi.enableCachelessModeV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4664
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4665
|
+
});
|
|
4666
|
+
},
|
|
4667
|
+
/**
|
|
4668
|
+
* 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.
|
|
4669
|
+
* @summary Enable website cache
|
|
4670
|
+
* @param {string} username
|
|
4671
|
+
* @param {string} domain Domain name
|
|
4672
|
+
* @param {*} [options] Override http request option.
|
|
4673
|
+
* @throws {RequiredError}
|
|
4674
|
+
*/
|
|
4675
|
+
enableWebsiteCacheV1(username, domain, options) {
|
|
4676
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4677
|
+
var _a, _b;
|
|
4678
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.enableWebsiteCacheV1(username, domain, options);
|
|
4679
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCacheApi.enableWebsiteCacheV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4602
4680
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4603
4681
|
});
|
|
4604
4682
|
},
|
|
4605
4683
|
};
|
|
4606
4684
|
};
|
|
4607
|
-
exports.
|
|
4685
|
+
exports.HostingCacheApiFp = HostingCacheApiFp;
|
|
4608
4686
|
/**
|
|
4609
|
-
*
|
|
4687
|
+
* HostingCacheApi - factory interface
|
|
4610
4688
|
* @export
|
|
4611
4689
|
*/
|
|
4612
|
-
const
|
|
4613
|
-
const localVarFp = (0, exports.
|
|
4690
|
+
const HostingCacheApiFactory = function (configuration, basePath, axios) {
|
|
4691
|
+
const localVarFp = (0, exports.HostingCacheApiFp)(configuration);
|
|
4614
4692
|
return {
|
|
4615
4693
|
/**
|
|
4616
|
-
*
|
|
4617
|
-
* @summary
|
|
4694
|
+
* 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.
|
|
4695
|
+
* @summary Clear website cache
|
|
4618
4696
|
* @param {string} username
|
|
4619
|
-
* @param {
|
|
4697
|
+
* @param {string} domain Domain name
|
|
4698
|
+
* @param {string} [directory] Directory of the website installation to clear, relative to the website root. Defaults to the website root.
|
|
4620
4699
|
* @param {*} [options] Override http request option.
|
|
4621
4700
|
* @throws {RequiredError}
|
|
4622
4701
|
*/
|
|
4623
|
-
|
|
4624
|
-
return localVarFp.
|
|
4702
|
+
clearWebsiteCacheV1(username, domain, directory, options) {
|
|
4703
|
+
return localVarFp.clearWebsiteCacheV1(username, domain, directory, options).then((request) => request(axios, basePath));
|
|
4625
4704
|
},
|
|
4626
4705
|
/**
|
|
4627
|
-
*
|
|
4628
|
-
* @summary
|
|
4706
|
+
* 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.
|
|
4707
|
+
* @summary Disable cacheless mode
|
|
4629
4708
|
* @param {string} username
|
|
4630
|
-
* @param {string}
|
|
4709
|
+
* @param {string} domain Domain name
|
|
4631
4710
|
* @param {*} [options] Override http request option.
|
|
4632
4711
|
* @throws {RequiredError}
|
|
4633
4712
|
*/
|
|
4634
|
-
|
|
4635
|
-
return localVarFp.
|
|
4713
|
+
disableCachelessModeV1(username, domain, options) {
|
|
4714
|
+
return localVarFp.disableCachelessModeV1(username, domain, options).then((request) => request(axios, basePath));
|
|
4636
4715
|
},
|
|
4637
4716
|
/**
|
|
4638
|
-
*
|
|
4639
|
-
* @summary
|
|
4717
|
+
* 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.
|
|
4718
|
+
* @summary Disable website cache
|
|
4640
4719
|
* @param {string} username
|
|
4641
|
-
* @param {string}
|
|
4720
|
+
* @param {string} domain Domain name
|
|
4642
4721
|
* @param {*} [options] Override http request option.
|
|
4643
4722
|
* @throws {RequiredError}
|
|
4644
4723
|
*/
|
|
4645
|
-
|
|
4646
|
-
return localVarFp.
|
|
4724
|
+
disableWebsiteCacheV1(username, domain, options) {
|
|
4725
|
+
return localVarFp.disableWebsiteCacheV1(username, domain, options).then((request) => request(axios, basePath));
|
|
4647
4726
|
},
|
|
4648
4727
|
/**
|
|
4649
|
-
*
|
|
4650
|
-
* @summary
|
|
4728
|
+
* 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.
|
|
4729
|
+
* @summary Enable cacheless mode
|
|
4651
4730
|
* @param {string} username
|
|
4731
|
+
* @param {string} domain Domain name
|
|
4652
4732
|
* @param {*} [options] Override http request option.
|
|
4653
4733
|
* @throws {RequiredError}
|
|
4654
4734
|
*/
|
|
4655
|
-
|
|
4656
|
-
return localVarFp.
|
|
4735
|
+
enableCachelessModeV1(username, domain, options) {
|
|
4736
|
+
return localVarFp.enableCachelessModeV1(username, domain, options).then((request) => request(axios, basePath));
|
|
4737
|
+
},
|
|
4738
|
+
/**
|
|
4739
|
+
* 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.
|
|
4740
|
+
* @summary Enable website cache
|
|
4741
|
+
* @param {string} username
|
|
4742
|
+
* @param {string} domain Domain name
|
|
4743
|
+
* @param {*} [options] Override http request option.
|
|
4744
|
+
* @throws {RequiredError}
|
|
4745
|
+
*/
|
|
4746
|
+
enableWebsiteCacheV1(username, domain, options) {
|
|
4747
|
+
return localVarFp.enableWebsiteCacheV1(username, domain, options).then((request) => request(axios, basePath));
|
|
4657
4748
|
},
|
|
4658
4749
|
};
|
|
4659
4750
|
};
|
|
4660
|
-
exports.
|
|
4751
|
+
exports.HostingCacheApiFactory = HostingCacheApiFactory;
|
|
4661
4752
|
/**
|
|
4662
|
-
*
|
|
4753
|
+
* HostingCacheApi - object-oriented interface
|
|
4663
4754
|
* @export
|
|
4664
|
-
* @class
|
|
4755
|
+
* @class HostingCacheApi
|
|
4665
4756
|
* @extends {BaseAPI}
|
|
4666
4757
|
*/
|
|
4667
|
-
class
|
|
4758
|
+
class HostingCacheApi extends base_1.BaseAPI {
|
|
4668
4759
|
/**
|
|
4669
|
-
*
|
|
4670
|
-
* @summary
|
|
4760
|
+
* 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.
|
|
4761
|
+
* @summary Clear website cache
|
|
4671
4762
|
* @param {string} username
|
|
4672
|
-
* @param {
|
|
4763
|
+
* @param {string} domain Domain name
|
|
4764
|
+
* @param {string} [directory] Directory of the website installation to clear, relative to the website root. Defaults to the website root.
|
|
4673
4765
|
* @param {*} [options] Override http request option.
|
|
4674
4766
|
* @throws {RequiredError}
|
|
4675
|
-
* @memberof
|
|
4767
|
+
* @memberof HostingCacheApi
|
|
4676
4768
|
*/
|
|
4677
|
-
|
|
4678
|
-
return (0, exports.
|
|
4769
|
+
clearWebsiteCacheV1(username, domain, directory, options) {
|
|
4770
|
+
return (0, exports.HostingCacheApiFp)(this.configuration).clearWebsiteCacheV1(username, domain, directory, options).then((request) => request(this.axios, this.basePath));
|
|
4679
4771
|
}
|
|
4680
4772
|
/**
|
|
4681
|
-
*
|
|
4682
|
-
* @summary
|
|
4773
|
+
* 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.
|
|
4774
|
+
* @summary Disable cacheless mode
|
|
4683
4775
|
* @param {string} username
|
|
4684
|
-
* @param {string}
|
|
4776
|
+
* @param {string} domain Domain name
|
|
4685
4777
|
* @param {*} [options] Override http request option.
|
|
4686
4778
|
* @throws {RequiredError}
|
|
4687
|
-
* @memberof
|
|
4779
|
+
* @memberof HostingCacheApi
|
|
4688
4780
|
*/
|
|
4689
|
-
|
|
4690
|
-
return (0, exports.
|
|
4781
|
+
disableCachelessModeV1(username, domain, options) {
|
|
4782
|
+
return (0, exports.HostingCacheApiFp)(this.configuration).disableCachelessModeV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
4691
4783
|
}
|
|
4692
4784
|
/**
|
|
4693
|
-
*
|
|
4694
|
-
* @summary
|
|
4785
|
+
* 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.
|
|
4786
|
+
* @summary Disable website cache
|
|
4695
4787
|
* @param {string} username
|
|
4696
|
-
* @param {string}
|
|
4788
|
+
* @param {string} domain Domain name
|
|
4697
4789
|
* @param {*} [options] Override http request option.
|
|
4698
4790
|
* @throws {RequiredError}
|
|
4699
|
-
* @memberof
|
|
4791
|
+
* @memberof HostingCacheApi
|
|
4700
4792
|
*/
|
|
4701
|
-
|
|
4702
|
-
return (0, exports.
|
|
4793
|
+
disableWebsiteCacheV1(username, domain, options) {
|
|
4794
|
+
return (0, exports.HostingCacheApiFp)(this.configuration).disableWebsiteCacheV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
4703
4795
|
}
|
|
4704
4796
|
/**
|
|
4705
|
-
*
|
|
4706
|
-
* @summary
|
|
4797
|
+
* 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.
|
|
4798
|
+
* @summary Enable cacheless mode
|
|
4707
4799
|
* @param {string} username
|
|
4800
|
+
* @param {string} domain Domain name
|
|
4708
4801
|
* @param {*} [options] Override http request option.
|
|
4709
4802
|
* @throws {RequiredError}
|
|
4710
|
-
* @memberof
|
|
4803
|
+
* @memberof HostingCacheApi
|
|
4711
4804
|
*/
|
|
4712
|
-
|
|
4713
|
-
return (0, exports.
|
|
4805
|
+
enableCachelessModeV1(username, domain, options) {
|
|
4806
|
+
return (0, exports.HostingCacheApiFp)(this.configuration).enableCachelessModeV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
4807
|
+
}
|
|
4808
|
+
/**
|
|
4809
|
+
* 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.
|
|
4810
|
+
* @summary Enable website cache
|
|
4811
|
+
* @param {string} username
|
|
4812
|
+
* @param {string} domain Domain name
|
|
4813
|
+
* @param {*} [options] Override http request option.
|
|
4814
|
+
* @throws {RequiredError}
|
|
4815
|
+
* @memberof HostingCacheApi
|
|
4816
|
+
*/
|
|
4817
|
+
enableWebsiteCacheV1(username, domain, options) {
|
|
4818
|
+
return (0, exports.HostingCacheApiFp)(this.configuration).enableWebsiteCacheV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
4714
4819
|
}
|
|
4715
4820
|
}
|
|
4716
|
-
exports.
|
|
4821
|
+
exports.HostingCacheApi = HostingCacheApi;
|
|
4717
4822
|
/**
|
|
4718
|
-
*
|
|
4823
|
+
* HostingCronJobsApi - axios parameter creator
|
|
4719
4824
|
* @export
|
|
4720
4825
|
*/
|
|
4721
|
-
const
|
|
4826
|
+
const HostingCronJobsApiAxiosParamCreator = function (configuration) {
|
|
4722
4827
|
return {
|
|
4723
4828
|
/**
|
|
4724
|
-
*
|
|
4725
|
-
* @summary
|
|
4829
|
+
* 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.
|
|
4830
|
+
* @summary Create account cron job
|
|
4726
4831
|
* @param {string} username
|
|
4727
|
-
* @param {
|
|
4728
|
-
* @param {HostingV1DatabasesChangeDatabasePasswordRequest} hostingV1DatabasesChangeDatabasePasswordRequest
|
|
4832
|
+
* @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
|
|
4729
4833
|
* @param {*} [options] Override http request option.
|
|
4730
4834
|
* @throws {RequiredError}
|
|
4731
4835
|
*/
|
|
4732
|
-
|
|
4836
|
+
createAccountCronJobV1: (username_1, hostingV1CronJobsCreateCronJobRequest_1, ...args_1) => __awaiter(this, [username_1, hostingV1CronJobsCreateCronJobRequest_1, ...args_1], void 0, function* (username, hostingV1CronJobsCreateCronJobRequest, options = {}) {
|
|
4733
4837
|
// verify required parameter 'username' is not null or undefined
|
|
4734
|
-
(0, common_1.assertParamExists)('
|
|
4735
|
-
// verify required parameter '
|
|
4736
|
-
(0, common_1.assertParamExists)('
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/change-password`
|
|
4740
|
-
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
4741
|
-
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
4838
|
+
(0, common_1.assertParamExists)('createAccountCronJobV1', 'username', username);
|
|
4839
|
+
// verify required parameter 'hostingV1CronJobsCreateCronJobRequest' is not null or undefined
|
|
4840
|
+
(0, common_1.assertParamExists)('createAccountCronJobV1', 'hostingV1CronJobsCreateCronJobRequest', hostingV1CronJobsCreateCronJobRequest);
|
|
4841
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs`
|
|
4842
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
4742
4843
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4743
4844
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4744
4845
|
let baseOptions;
|
|
4745
4846
|
if (configuration) {
|
|
4746
4847
|
baseOptions = configuration.baseOptions;
|
|
4747
4848
|
}
|
|
4748
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
4849
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4749
4850
|
const localVarHeaderParameter = {};
|
|
4750
4851
|
const localVarQueryParameter = {};
|
|
4751
4852
|
// authentication apiToken required
|
|
@@ -4755,124 +4856,76 @@ const HostingDatabasesApiAxiosParamCreator = function (configuration) {
|
|
|
4755
4856
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4756
4857
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4757
4858
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4758
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
4859
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1CronJobsCreateCronJobRequest, localVarRequestOptions, configuration);
|
|
4759
4860
|
return {
|
|
4760
4861
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4761
4862
|
options: localVarRequestOptions,
|
|
4762
4863
|
};
|
|
4763
4864
|
}),
|
|
4764
4865
|
/**
|
|
4765
|
-
*
|
|
4766
|
-
* @summary
|
|
4866
|
+
* Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
|
|
4867
|
+
* @summary Delete account cron job
|
|
4767
4868
|
* @param {string} username
|
|
4768
|
-
* @param {string}
|
|
4769
|
-
* @param {HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest} hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
|
|
4869
|
+
* @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
|
|
4770
4870
|
* @param {*} [options] Override http request option.
|
|
4771
4871
|
* @throws {RequiredError}
|
|
4772
4872
|
*/
|
|
4773
|
-
|
|
4873
|
+
deleteAccountCronJobV1: (username_1, uid_1, ...args_1) => __awaiter(this, [username_1, uid_1, ...args_1], void 0, function* (username, uid, options = {}) {
|
|
4774
4874
|
// verify required parameter 'username' is not null or undefined
|
|
4775
|
-
(0, common_1.assertParamExists)('
|
|
4776
|
-
// verify required parameter '
|
|
4777
|
-
(0, common_1.assertParamExists)('
|
|
4778
|
-
|
|
4779
|
-
(0, common_1.assertParamExists)('createAccountDatabaseRemoteConnectionV1', 'hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest', hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest);
|
|
4780
|
-
const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/remote-connections`
|
|
4875
|
+
(0, common_1.assertParamExists)('deleteAccountCronJobV1', 'username', username);
|
|
4876
|
+
// verify required parameter 'uid' is not null or undefined
|
|
4877
|
+
(0, common_1.assertParamExists)('deleteAccountCronJobV1', 'uid', uid);
|
|
4878
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs/{uid}`
|
|
4781
4879
|
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
4782
|
-
.replace(`{${"
|
|
4783
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4784
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4785
|
-
let baseOptions;
|
|
4786
|
-
if (configuration) {
|
|
4787
|
-
baseOptions = configuration.baseOptions;
|
|
4788
|
-
}
|
|
4789
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4790
|
-
const localVarHeaderParameter = {};
|
|
4791
|
-
const localVarQueryParameter = {};
|
|
4792
|
-
// authentication apiToken required
|
|
4793
|
-
// http bearer authentication required
|
|
4794
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4795
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4796
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4797
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4798
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4799
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, localVarRequestOptions, configuration);
|
|
4800
|
-
return {
|
|
4801
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4802
|
-
options: localVarRequestOptions,
|
|
4803
|
-
};
|
|
4804
|
-
}),
|
|
4805
|
-
/**
|
|
4806
|
-
* Creates a database with a database user and password for the specified account. The database name and user are automatically prefixed with the account username when needed.
|
|
4807
|
-
* @summary Create account database
|
|
4808
|
-
* @param {string} username
|
|
4809
|
-
* @param {HostingV1DatabasesCreateDatabaseRequest} hostingV1DatabasesCreateDatabaseRequest
|
|
4810
|
-
* @param {*} [options] Override http request option.
|
|
4811
|
-
* @throws {RequiredError}
|
|
4812
|
-
*/
|
|
4813
|
-
createAccountDatabaseV1: (username_1, hostingV1DatabasesCreateDatabaseRequest_1, ...args_1) => __awaiter(this, [username_1, hostingV1DatabasesCreateDatabaseRequest_1, ...args_1], void 0, function* (username, hostingV1DatabasesCreateDatabaseRequest, options = {}) {
|
|
4814
|
-
// verify required parameter 'username' is not null or undefined
|
|
4815
|
-
(0, common_1.assertParamExists)('createAccountDatabaseV1', 'username', username);
|
|
4816
|
-
// verify required parameter 'hostingV1DatabasesCreateDatabaseRequest' is not null or undefined
|
|
4817
|
-
(0, common_1.assertParamExists)('createAccountDatabaseV1', 'hostingV1DatabasesCreateDatabaseRequest', hostingV1DatabasesCreateDatabaseRequest);
|
|
4818
|
-
const localVarPath = `/api/hosting/v1/accounts/{username}/databases`
|
|
4819
|
-
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
4880
|
+
.replace(`{${"uid"}}`, encodeURIComponent(String(uid)));
|
|
4820
4881
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4821
4882
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4822
4883
|
let baseOptions;
|
|
4823
4884
|
if (configuration) {
|
|
4824
4885
|
baseOptions = configuration.baseOptions;
|
|
4825
4886
|
}
|
|
4826
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
4887
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
4827
4888
|
const localVarHeaderParameter = {};
|
|
4828
4889
|
const localVarQueryParameter = {};
|
|
4829
4890
|
// authentication apiToken required
|
|
4830
4891
|
// http bearer authentication required
|
|
4831
4892
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4832
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4833
4893
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4834
4894
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4835
4895
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4836
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1DatabasesCreateDatabaseRequest, localVarRequestOptions, configuration);
|
|
4837
4896
|
return {
|
|
4838
4897
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4839
4898
|
options: localVarRequestOptions,
|
|
4840
4899
|
};
|
|
4841
4900
|
}),
|
|
4842
4901
|
/**
|
|
4843
|
-
*
|
|
4844
|
-
* @summary
|
|
4902
|
+
* 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.
|
|
4903
|
+
* @summary Get cron job output
|
|
4845
4904
|
* @param {string} username
|
|
4846
|
-
* @param {string}
|
|
4847
|
-
* @param {string} ip Remote host to revoke: the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint.
|
|
4905
|
+
* @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
|
|
4848
4906
|
* @param {*} [options] Override http request option.
|
|
4849
4907
|
* @throws {RequiredError}
|
|
4850
4908
|
*/
|
|
4851
|
-
|
|
4909
|
+
getCronJobOutputV1: (username_1, uid_1, ...args_1) => __awaiter(this, [username_1, uid_1, ...args_1], void 0, function* (username, uid, options = {}) {
|
|
4852
4910
|
// verify required parameter 'username' is not null or undefined
|
|
4853
|
-
(0, common_1.assertParamExists)('
|
|
4854
|
-
// verify required parameter '
|
|
4855
|
-
(0, common_1.assertParamExists)('
|
|
4856
|
-
|
|
4857
|
-
(0, common_1.assertParamExists)('deleteAccountDatabaseRemoteConnectionV1', 'ip', ip);
|
|
4858
|
-
const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/remote-connections`
|
|
4911
|
+
(0, common_1.assertParamExists)('getCronJobOutputV1', 'username', username);
|
|
4912
|
+
// verify required parameter 'uid' is not null or undefined
|
|
4913
|
+
(0, common_1.assertParamExists)('getCronJobOutputV1', 'uid', uid);
|
|
4914
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs/{uid}/output`
|
|
4859
4915
|
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
4860
|
-
.replace(`{${"
|
|
4916
|
+
.replace(`{${"uid"}}`, encodeURIComponent(String(uid)));
|
|
4861
4917
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4862
4918
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4863
4919
|
let baseOptions;
|
|
4864
4920
|
if (configuration) {
|
|
4865
4921
|
baseOptions = configuration.baseOptions;
|
|
4866
4922
|
}
|
|
4867
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
4923
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4868
4924
|
const localVarHeaderParameter = {};
|
|
4869
4925
|
const localVarQueryParameter = {};
|
|
4870
4926
|
// authentication apiToken required
|
|
4871
4927
|
// http bearer authentication required
|
|
4872
4928
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4873
|
-
if (ip !== undefined) {
|
|
4874
|
-
localVarQueryParameter['ip'] = ip;
|
|
4875
|
-
}
|
|
4876
4929
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4877
4930
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4878
4931
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4882,28 +4935,24 @@ const HostingDatabasesApiAxiosParamCreator = function (configuration) {
|
|
|
4882
4935
|
};
|
|
4883
4936
|
}),
|
|
4884
4937
|
/**
|
|
4885
|
-
*
|
|
4886
|
-
* @summary
|
|
4938
|
+
* Returns the list of cron jobs configured for the specified account, including their schedule and command.
|
|
4939
|
+
* @summary List account cron jobs
|
|
4887
4940
|
* @param {string} username
|
|
4888
|
-
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
4889
4941
|
* @param {*} [options] Override http request option.
|
|
4890
4942
|
* @throws {RequiredError}
|
|
4891
4943
|
*/
|
|
4892
|
-
|
|
4944
|
+
listAccountCronJobsV1: (username_1, ...args_1) => __awaiter(this, [username_1, ...args_1], void 0, function* (username, options = {}) {
|
|
4893
4945
|
// verify required parameter 'username' is not null or undefined
|
|
4894
|
-
(0, common_1.assertParamExists)('
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}`
|
|
4898
|
-
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
4899
|
-
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
4946
|
+
(0, common_1.assertParamExists)('listAccountCronJobsV1', 'username', username);
|
|
4947
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs`
|
|
4948
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
4900
4949
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4901
4950
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4902
4951
|
let baseOptions;
|
|
4903
4952
|
if (configuration) {
|
|
4904
4953
|
baseOptions = configuration.baseOptions;
|
|
4905
4954
|
}
|
|
4906
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
4955
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4907
4956
|
const localVarHeaderParameter = {};
|
|
4908
4957
|
const localVarQueryParameter = {};
|
|
4909
4958
|
// authentication apiToken required
|
|
@@ -4917,145 +4966,215 @@ const HostingDatabasesApiAxiosParamCreator = function (configuration) {
|
|
|
4917
4966
|
options: localVarRequestOptions,
|
|
4918
4967
|
};
|
|
4919
4968
|
}),
|
|
4969
|
+
};
|
|
4970
|
+
};
|
|
4971
|
+
exports.HostingCronJobsApiAxiosParamCreator = HostingCronJobsApiAxiosParamCreator;
|
|
4972
|
+
/**
|
|
4973
|
+
* HostingCronJobsApi - functional programming interface
|
|
4974
|
+
* @export
|
|
4975
|
+
*/
|
|
4976
|
+
const HostingCronJobsApiFp = function (configuration) {
|
|
4977
|
+
const localVarAxiosParamCreator = (0, exports.HostingCronJobsApiAxiosParamCreator)(configuration);
|
|
4978
|
+
return {
|
|
4920
4979
|
/**
|
|
4921
|
-
*
|
|
4922
|
-
* @summary
|
|
4980
|
+
* 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.
|
|
4981
|
+
* @summary Create account cron job
|
|
4923
4982
|
* @param {string} username
|
|
4924
|
-
* @param {
|
|
4983
|
+
* @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
|
|
4925
4984
|
* @param {*} [options] Override http request option.
|
|
4926
4985
|
* @throws {RequiredError}
|
|
4927
4986
|
*/
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4937
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4938
|
-
let baseOptions;
|
|
4939
|
-
if (configuration) {
|
|
4940
|
-
baseOptions = configuration.baseOptions;
|
|
4941
|
-
}
|
|
4942
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4943
|
-
const localVarHeaderParameter = {};
|
|
4944
|
-
const localVarQueryParameter = {};
|
|
4945
|
-
// authentication apiToken required
|
|
4946
|
-
// http bearer authentication required
|
|
4947
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4948
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4949
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4950
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4951
|
-
return {
|
|
4952
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4953
|
-
options: localVarRequestOptions,
|
|
4954
|
-
};
|
|
4955
|
-
}),
|
|
4987
|
+
createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options) {
|
|
4988
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4989
|
+
var _a, _b;
|
|
4990
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options);
|
|
4991
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCronJobsApi.createAccountCronJobV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4992
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4993
|
+
});
|
|
4994
|
+
},
|
|
4956
4995
|
/**
|
|
4957
|
-
*
|
|
4958
|
-
* @summary
|
|
4996
|
+
* Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
|
|
4997
|
+
* @summary Delete account cron job
|
|
4959
4998
|
* @param {string} username
|
|
4960
|
-
* @param {string
|
|
4999
|
+
* @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
|
|
4961
5000
|
* @param {*} [options] Override http request option.
|
|
4962
5001
|
* @throws {RequiredError}
|
|
4963
5002
|
*/
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
if (configuration) {
|
|
4973
|
-
baseOptions = configuration.baseOptions;
|
|
4974
|
-
}
|
|
4975
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4976
|
-
const localVarHeaderParameter = {};
|
|
4977
|
-
const localVarQueryParameter = {};
|
|
4978
|
-
// authentication apiToken required
|
|
4979
|
-
// http bearer authentication required
|
|
4980
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4981
|
-
if (domain !== undefined) {
|
|
4982
|
-
localVarQueryParameter['domain'] = domain;
|
|
4983
|
-
}
|
|
4984
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4985
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4986
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4987
|
-
return {
|
|
4988
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4989
|
-
options: localVarRequestOptions,
|
|
4990
|
-
};
|
|
4991
|
-
}),
|
|
5003
|
+
deleteAccountCronJobV1(username, uid, options) {
|
|
5004
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5005
|
+
var _a, _b;
|
|
5006
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAccountCronJobV1(username, uid, options);
|
|
5007
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCronJobsApi.deleteAccountCronJobV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5008
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5009
|
+
});
|
|
5010
|
+
},
|
|
4992
5011
|
/**
|
|
4993
|
-
* Returns
|
|
4994
|
-
* @summary
|
|
5012
|
+
* 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.
|
|
5013
|
+
* @summary Get cron job output
|
|
4995
5014
|
* @param {string} username
|
|
4996
|
-
* @param {
|
|
4997
|
-
* @param {number} [perPage] Number of items per page
|
|
4998
|
-
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
4999
|
-
* @param {boolean | null} [isAssigned] When used with domain, return only databases assigned to that domain.
|
|
5000
|
-
* @param {string | null} [search] Search databases by name, user, or creation date.
|
|
5015
|
+
* @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
|
|
5001
5016
|
* @param {*} [options] Override http request option.
|
|
5002
5017
|
* @throws {RequiredError}
|
|
5003
5018
|
*/
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
if (configuration) {
|
|
5013
|
-
baseOptions = configuration.baseOptions;
|
|
5014
|
-
}
|
|
5015
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5016
|
-
const localVarHeaderParameter = {};
|
|
5017
|
-
const localVarQueryParameter = {};
|
|
5018
|
-
// authentication apiToken required
|
|
5019
|
-
// http bearer authentication required
|
|
5020
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5021
|
-
if (page !== undefined) {
|
|
5022
|
-
localVarQueryParameter['page'] = page;
|
|
5023
|
-
}
|
|
5024
|
-
if (perPage !== undefined) {
|
|
5025
|
-
localVarQueryParameter['per_page'] = perPage;
|
|
5026
|
-
}
|
|
5027
|
-
if (domain !== undefined) {
|
|
5028
|
-
localVarQueryParameter['domain'] = domain;
|
|
5029
|
-
}
|
|
5030
|
-
if (isAssigned !== undefined) {
|
|
5031
|
-
localVarQueryParameter['is_assigned'] = isAssigned;
|
|
5032
|
-
}
|
|
5033
|
-
if (search !== undefined) {
|
|
5034
|
-
localVarQueryParameter['search'] = search;
|
|
5035
|
-
}
|
|
5036
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5037
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5038
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5039
|
-
return {
|
|
5040
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5041
|
-
options: localVarRequestOptions,
|
|
5042
|
-
};
|
|
5043
|
-
}),
|
|
5019
|
+
getCronJobOutputV1(username, uid, options) {
|
|
5020
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5021
|
+
var _a, _b;
|
|
5022
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCronJobOutputV1(username, uid, options);
|
|
5023
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCronJobsApi.getCronJobOutputV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5024
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5025
|
+
});
|
|
5026
|
+
},
|
|
5044
5027
|
/**
|
|
5045
|
-
*
|
|
5046
|
-
* @summary
|
|
5028
|
+
* Returns the list of cron jobs configured for the specified account, including their schedule and command.
|
|
5029
|
+
* @summary List account cron jobs
|
|
5047
5030
|
* @param {string} username
|
|
5048
|
-
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
5049
5031
|
* @param {*} [options] Override http request option.
|
|
5050
5032
|
* @throws {RequiredError}
|
|
5051
5033
|
*/
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5034
|
+
listAccountCronJobsV1(username, options) {
|
|
5035
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5036
|
+
var _a, _b;
|
|
5037
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAccountCronJobsV1(username, options);
|
|
5038
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCronJobsApi.listAccountCronJobsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5039
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5040
|
+
});
|
|
5041
|
+
},
|
|
5042
|
+
};
|
|
5043
|
+
};
|
|
5044
|
+
exports.HostingCronJobsApiFp = HostingCronJobsApiFp;
|
|
5045
|
+
/**
|
|
5046
|
+
* HostingCronJobsApi - factory interface
|
|
5047
|
+
* @export
|
|
5048
|
+
*/
|
|
5049
|
+
const HostingCronJobsApiFactory = function (configuration, basePath, axios) {
|
|
5050
|
+
const localVarFp = (0, exports.HostingCronJobsApiFp)(configuration);
|
|
5051
|
+
return {
|
|
5052
|
+
/**
|
|
5053
|
+
* 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.
|
|
5054
|
+
* @summary Create account cron job
|
|
5055
|
+
* @param {string} username
|
|
5056
|
+
* @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
|
|
5057
|
+
* @param {*} [options] Override http request option.
|
|
5058
|
+
* @throws {RequiredError}
|
|
5059
|
+
*/
|
|
5060
|
+
createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options) {
|
|
5061
|
+
return localVarFp.createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options).then((request) => request(axios, basePath));
|
|
5062
|
+
},
|
|
5063
|
+
/**
|
|
5064
|
+
* Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
|
|
5065
|
+
* @summary Delete account cron job
|
|
5066
|
+
* @param {string} username
|
|
5067
|
+
* @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
|
|
5068
|
+
* @param {*} [options] Override http request option.
|
|
5069
|
+
* @throws {RequiredError}
|
|
5070
|
+
*/
|
|
5071
|
+
deleteAccountCronJobV1(username, uid, options) {
|
|
5072
|
+
return localVarFp.deleteAccountCronJobV1(username, uid, options).then((request) => request(axios, basePath));
|
|
5073
|
+
},
|
|
5074
|
+
/**
|
|
5075
|
+
* 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.
|
|
5076
|
+
* @summary Get cron job output
|
|
5077
|
+
* @param {string} username
|
|
5078
|
+
* @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
|
|
5079
|
+
* @param {*} [options] Override http request option.
|
|
5080
|
+
* @throws {RequiredError}
|
|
5081
|
+
*/
|
|
5082
|
+
getCronJobOutputV1(username, uid, options) {
|
|
5083
|
+
return localVarFp.getCronJobOutputV1(username, uid, options).then((request) => request(axios, basePath));
|
|
5084
|
+
},
|
|
5085
|
+
/**
|
|
5086
|
+
* Returns the list of cron jobs configured for the specified account, including their schedule and command.
|
|
5087
|
+
* @summary List account cron jobs
|
|
5088
|
+
* @param {string} username
|
|
5089
|
+
* @param {*} [options] Override http request option.
|
|
5090
|
+
* @throws {RequiredError}
|
|
5091
|
+
*/
|
|
5092
|
+
listAccountCronJobsV1(username, options) {
|
|
5093
|
+
return localVarFp.listAccountCronJobsV1(username, options).then((request) => request(axios, basePath));
|
|
5094
|
+
},
|
|
5095
|
+
};
|
|
5096
|
+
};
|
|
5097
|
+
exports.HostingCronJobsApiFactory = HostingCronJobsApiFactory;
|
|
5098
|
+
/**
|
|
5099
|
+
* HostingCronJobsApi - object-oriented interface
|
|
5100
|
+
* @export
|
|
5101
|
+
* @class HostingCronJobsApi
|
|
5102
|
+
* @extends {BaseAPI}
|
|
5103
|
+
*/
|
|
5104
|
+
class HostingCronJobsApi extends base_1.BaseAPI {
|
|
5105
|
+
/**
|
|
5106
|
+
* 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.
|
|
5107
|
+
* @summary Create account cron job
|
|
5108
|
+
* @param {string} username
|
|
5109
|
+
* @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
|
|
5110
|
+
* @param {*} [options] Override http request option.
|
|
5111
|
+
* @throws {RequiredError}
|
|
5112
|
+
* @memberof HostingCronJobsApi
|
|
5113
|
+
*/
|
|
5114
|
+
createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options) {
|
|
5115
|
+
return (0, exports.HostingCronJobsApiFp)(this.configuration).createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5116
|
+
}
|
|
5117
|
+
/**
|
|
5118
|
+
* Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
|
|
5119
|
+
* @summary Delete account cron job
|
|
5120
|
+
* @param {string} username
|
|
5121
|
+
* @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
|
|
5122
|
+
* @param {*} [options] Override http request option.
|
|
5123
|
+
* @throws {RequiredError}
|
|
5124
|
+
* @memberof HostingCronJobsApi
|
|
5125
|
+
*/
|
|
5126
|
+
deleteAccountCronJobV1(username, uid, options) {
|
|
5127
|
+
return (0, exports.HostingCronJobsApiFp)(this.configuration).deleteAccountCronJobV1(username, uid, options).then((request) => request(this.axios, this.basePath));
|
|
5128
|
+
}
|
|
5129
|
+
/**
|
|
5130
|
+
* 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.
|
|
5131
|
+
* @summary Get cron job output
|
|
5132
|
+
* @param {string} username
|
|
5133
|
+
* @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
|
|
5134
|
+
* @param {*} [options] Override http request option.
|
|
5135
|
+
* @throws {RequiredError}
|
|
5136
|
+
* @memberof HostingCronJobsApi
|
|
5137
|
+
*/
|
|
5138
|
+
getCronJobOutputV1(username, uid, options) {
|
|
5139
|
+
return (0, exports.HostingCronJobsApiFp)(this.configuration).getCronJobOutputV1(username, uid, options).then((request) => request(this.axios, this.basePath));
|
|
5140
|
+
}
|
|
5141
|
+
/**
|
|
5142
|
+
* Returns the list of cron jobs configured for the specified account, including their schedule and command.
|
|
5143
|
+
* @summary List account cron jobs
|
|
5144
|
+
* @param {string} username
|
|
5145
|
+
* @param {*} [options] Override http request option.
|
|
5146
|
+
* @throws {RequiredError}
|
|
5147
|
+
* @memberof HostingCronJobsApi
|
|
5148
|
+
*/
|
|
5149
|
+
listAccountCronJobsV1(username, options) {
|
|
5150
|
+
return (0, exports.HostingCronJobsApiFp)(this.configuration).listAccountCronJobsV1(username, options).then((request) => request(this.axios, this.basePath));
|
|
5151
|
+
}
|
|
5152
|
+
}
|
|
5153
|
+
exports.HostingCronJobsApi = HostingCronJobsApi;
|
|
5154
|
+
/**
|
|
5155
|
+
* HostingDatabasesApi - axios parameter creator
|
|
5156
|
+
* @export
|
|
5157
|
+
*/
|
|
5158
|
+
const HostingDatabasesApiAxiosParamCreator = function (configuration) {
|
|
5159
|
+
return {
|
|
5160
|
+
/**
|
|
5161
|
+
* Changes the password for the specified database user. The database name must be the full name returned by the list databases endpoint. The password must also be updated in any website configuration that uses this database.
|
|
5162
|
+
* @summary Change database password
|
|
5163
|
+
* @param {string} username
|
|
5164
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
5165
|
+
* @param {HostingV1DatabasesChangeDatabasePasswordRequest} hostingV1DatabasesChangeDatabasePasswordRequest
|
|
5166
|
+
* @param {*} [options] Override http request option.
|
|
5167
|
+
* @throws {RequiredError}
|
|
5168
|
+
*/
|
|
5169
|
+
changeDatabasePasswordV1: (username_1, name_1, hostingV1DatabasesChangeDatabasePasswordRequest_1, ...args_1) => __awaiter(this, [username_1, name_1, hostingV1DatabasesChangeDatabasePasswordRequest_1, ...args_1], void 0, function* (username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options = {}) {
|
|
5170
|
+
// verify required parameter 'username' is not null or undefined
|
|
5171
|
+
(0, common_1.assertParamExists)('changeDatabasePasswordV1', 'username', username);
|
|
5172
|
+
// verify required parameter 'name' is not null or undefined
|
|
5173
|
+
(0, common_1.assertParamExists)('changeDatabasePasswordV1', 'name', name);
|
|
5174
|
+
// verify required parameter 'hostingV1DatabasesChangeDatabasePasswordRequest' is not null or undefined
|
|
5175
|
+
(0, common_1.assertParamExists)('changeDatabasePasswordV1', 'hostingV1DatabasesChangeDatabasePasswordRequest', hostingV1DatabasesChangeDatabasePasswordRequest);
|
|
5176
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/change-password`
|
|
5177
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
5059
5178
|
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
5060
5179
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5061
5180
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -5069,41 +5188,16 @@ const HostingDatabasesApiAxiosParamCreator = function (configuration) {
|
|
|
5069
5188
|
// authentication apiToken required
|
|
5070
5189
|
// http bearer authentication required
|
|
5071
5190
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5191
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5072
5192
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5073
5193
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5074
5194
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5195
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1DatabasesChangeDatabasePasswordRequest, localVarRequestOptions, configuration);
|
|
5075
5196
|
return {
|
|
5076
5197
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5077
5198
|
options: localVarRequestOptions,
|
|
5078
5199
|
};
|
|
5079
5200
|
}),
|
|
5080
|
-
};
|
|
5081
|
-
};
|
|
5082
|
-
exports.HostingDatabasesApiAxiosParamCreator = HostingDatabasesApiAxiosParamCreator;
|
|
5083
|
-
/**
|
|
5084
|
-
* HostingDatabasesApi - functional programming interface
|
|
5085
|
-
* @export
|
|
5086
|
-
*/
|
|
5087
|
-
const HostingDatabasesApiFp = function (configuration) {
|
|
5088
|
-
const localVarAxiosParamCreator = (0, exports.HostingDatabasesApiAxiosParamCreator)(configuration);
|
|
5089
|
-
return {
|
|
5090
|
-
/**
|
|
5091
|
-
* Changes the password for the specified database user. The database name must be the full name returned by the list databases endpoint. The password must also be updated in any website configuration that uses this database.
|
|
5092
|
-
* @summary Change database password
|
|
5093
|
-
* @param {string} username
|
|
5094
|
-
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
5095
|
-
* @param {HostingV1DatabasesChangeDatabasePasswordRequest} hostingV1DatabasesChangeDatabasePasswordRequest
|
|
5096
|
-
* @param {*} [options] Override http request option.
|
|
5097
|
-
* @throws {RequiredError}
|
|
5098
|
-
*/
|
|
5099
|
-
changeDatabasePasswordV1(username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options) {
|
|
5100
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5101
|
-
var _a, _b;
|
|
5102
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.changeDatabasePasswordV1(username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options);
|
|
5103
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingDatabasesApi.changeDatabasePasswordV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5104
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5105
|
-
});
|
|
5106
|
-
},
|
|
5107
5201
|
/**
|
|
5108
5202
|
* Allows a remote host to connect to the specified database. Provide an IPv4/IPv6 address, or \"%\" to allow any host. The database name must be the full name returned by the list databases endpoint.
|
|
5109
5203
|
* @summary Create account database remote connection
|
|
@@ -5113,14 +5207,38 @@ const HostingDatabasesApiFp = function (configuration) {
|
|
|
5113
5207
|
* @param {*} [options] Override http request option.
|
|
5114
5208
|
* @throws {RequiredError}
|
|
5115
5209
|
*/
|
|
5116
|
-
createAccountDatabaseRemoteConnectionV1(username, name, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options) {
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5210
|
+
createAccountDatabaseRemoteConnectionV1: (username_1, name_1, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest_1, ...args_1) => __awaiter(this, [username_1, name_1, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest_1, ...args_1], void 0, function* (username, name, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options = {}) {
|
|
5211
|
+
// verify required parameter 'username' is not null or undefined
|
|
5212
|
+
(0, common_1.assertParamExists)('createAccountDatabaseRemoteConnectionV1', 'username', username);
|
|
5213
|
+
// verify required parameter 'name' is not null or undefined
|
|
5214
|
+
(0, common_1.assertParamExists)('createAccountDatabaseRemoteConnectionV1', 'name', name);
|
|
5215
|
+
// verify required parameter 'hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest' is not null or undefined
|
|
5216
|
+
(0, common_1.assertParamExists)('createAccountDatabaseRemoteConnectionV1', 'hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest', hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest);
|
|
5217
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/remote-connections`
|
|
5218
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
5219
|
+
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
5220
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5221
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5222
|
+
let baseOptions;
|
|
5223
|
+
if (configuration) {
|
|
5224
|
+
baseOptions = configuration.baseOptions;
|
|
5225
|
+
}
|
|
5226
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
5227
|
+
const localVarHeaderParameter = {};
|
|
5228
|
+
const localVarQueryParameter = {};
|
|
5229
|
+
// authentication apiToken required
|
|
5230
|
+
// http bearer authentication required
|
|
5231
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5232
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5233
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5234
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5235
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5236
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, localVarRequestOptions, configuration);
|
|
5237
|
+
return {
|
|
5238
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5239
|
+
options: localVarRequestOptions,
|
|
5240
|
+
};
|
|
5241
|
+
}),
|
|
5124
5242
|
/**
|
|
5125
5243
|
* Creates a database with a database user and password for the specified account. The database name and user are automatically prefixed with the account username when needed.
|
|
5126
5244
|
* @summary Create account database
|
|
@@ -5129,14 +5247,35 @@ const HostingDatabasesApiFp = function (configuration) {
|
|
|
5129
5247
|
* @param {*} [options] Override http request option.
|
|
5130
5248
|
* @throws {RequiredError}
|
|
5131
5249
|
*/
|
|
5132
|
-
createAccountDatabaseV1(username, hostingV1DatabasesCreateDatabaseRequest, options) {
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5250
|
+
createAccountDatabaseV1: (username_1, hostingV1DatabasesCreateDatabaseRequest_1, ...args_1) => __awaiter(this, [username_1, hostingV1DatabasesCreateDatabaseRequest_1, ...args_1], void 0, function* (username, hostingV1DatabasesCreateDatabaseRequest, options = {}) {
|
|
5251
|
+
// verify required parameter 'username' is not null or undefined
|
|
5252
|
+
(0, common_1.assertParamExists)('createAccountDatabaseV1', 'username', username);
|
|
5253
|
+
// verify required parameter 'hostingV1DatabasesCreateDatabaseRequest' is not null or undefined
|
|
5254
|
+
(0, common_1.assertParamExists)('createAccountDatabaseV1', 'hostingV1DatabasesCreateDatabaseRequest', hostingV1DatabasesCreateDatabaseRequest);
|
|
5255
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/databases`
|
|
5256
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
5257
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5258
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5259
|
+
let baseOptions;
|
|
5260
|
+
if (configuration) {
|
|
5261
|
+
baseOptions = configuration.baseOptions;
|
|
5262
|
+
}
|
|
5263
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
5264
|
+
const localVarHeaderParameter = {};
|
|
5265
|
+
const localVarQueryParameter = {};
|
|
5266
|
+
// authentication apiToken required
|
|
5267
|
+
// http bearer authentication required
|
|
5268
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5269
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5270
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5271
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5272
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5273
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1DatabasesCreateDatabaseRequest, localVarRequestOptions, configuration);
|
|
5274
|
+
return {
|
|
5275
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5276
|
+
options: localVarRequestOptions,
|
|
5277
|
+
};
|
|
5278
|
+
}),
|
|
5140
5279
|
/**
|
|
5141
5280
|
* Permanently removes a remote-access rule, revoking the given host\'s remote access to the database. Identify the rule with the required ip query parameter (the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint). The database name must be the full name returned by the list databases endpoint.
|
|
5142
5281
|
* @summary Delete account database remote connection
|
|
@@ -5146,14 +5285,39 @@ const HostingDatabasesApiFp = function (configuration) {
|
|
|
5146
5285
|
* @param {*} [options] Override http request option.
|
|
5147
5286
|
* @throws {RequiredError}
|
|
5148
5287
|
*/
|
|
5149
|
-
deleteAccountDatabaseRemoteConnectionV1(username, name, ip, options) {
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5288
|
+
deleteAccountDatabaseRemoteConnectionV1: (username_1, name_1, ip_1, ...args_1) => __awaiter(this, [username_1, name_1, ip_1, ...args_1], void 0, function* (username, name, ip, options = {}) {
|
|
5289
|
+
// verify required parameter 'username' is not null or undefined
|
|
5290
|
+
(0, common_1.assertParamExists)('deleteAccountDatabaseRemoteConnectionV1', 'username', username);
|
|
5291
|
+
// verify required parameter 'name' is not null or undefined
|
|
5292
|
+
(0, common_1.assertParamExists)('deleteAccountDatabaseRemoteConnectionV1', 'name', name);
|
|
5293
|
+
// verify required parameter 'ip' is not null or undefined
|
|
5294
|
+
(0, common_1.assertParamExists)('deleteAccountDatabaseRemoteConnectionV1', 'ip', ip);
|
|
5295
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/remote-connections`
|
|
5296
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
5297
|
+
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
5298
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5299
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5300
|
+
let baseOptions;
|
|
5301
|
+
if (configuration) {
|
|
5302
|
+
baseOptions = configuration.baseOptions;
|
|
5303
|
+
}
|
|
5304
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
5305
|
+
const localVarHeaderParameter = {};
|
|
5306
|
+
const localVarQueryParameter = {};
|
|
5307
|
+
// authentication apiToken required
|
|
5308
|
+
// http bearer authentication required
|
|
5309
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5310
|
+
if (ip !== undefined) {
|
|
5311
|
+
localVarQueryParameter['ip'] = ip;
|
|
5312
|
+
}
|
|
5313
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5314
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5315
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5316
|
+
return {
|
|
5317
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5318
|
+
options: localVarRequestOptions,
|
|
5319
|
+
};
|
|
5320
|
+
}),
|
|
5157
5321
|
/**
|
|
5158
5322
|
* Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
|
|
5159
5323
|
* @summary Delete account database
|
|
@@ -5162,14 +5326,34 @@ const HostingDatabasesApiFp = function (configuration) {
|
|
|
5162
5326
|
* @param {*} [options] Override http request option.
|
|
5163
5327
|
* @throws {RequiredError}
|
|
5164
5328
|
*/
|
|
5165
|
-
deleteAccountDatabaseV1(username, name, options) {
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5329
|
+
deleteAccountDatabaseV1: (username_1, name_1, ...args_1) => __awaiter(this, [username_1, name_1, ...args_1], void 0, function* (username, name, options = {}) {
|
|
5330
|
+
// verify required parameter 'username' is not null or undefined
|
|
5331
|
+
(0, common_1.assertParamExists)('deleteAccountDatabaseV1', 'username', username);
|
|
5332
|
+
// verify required parameter 'name' is not null or undefined
|
|
5333
|
+
(0, common_1.assertParamExists)('deleteAccountDatabaseV1', 'name', name);
|
|
5334
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}`
|
|
5335
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
5336
|
+
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
5337
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5338
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5339
|
+
let baseOptions;
|
|
5340
|
+
if (configuration) {
|
|
5341
|
+
baseOptions = configuration.baseOptions;
|
|
5342
|
+
}
|
|
5343
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
5344
|
+
const localVarHeaderParameter = {};
|
|
5345
|
+
const localVarQueryParameter = {};
|
|
5346
|
+
// authentication apiToken required
|
|
5347
|
+
// http bearer authentication required
|
|
5348
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5349
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5350
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5351
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5352
|
+
return {
|
|
5353
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5354
|
+
options: localVarRequestOptions,
|
|
5355
|
+
};
|
|
5356
|
+
}),
|
|
5173
5357
|
/**
|
|
5174
5358
|
* Returns a direct sign-on link to phpMyAdmin for the specified database. Use this when a visual database interface is needed for SQL queries, imports, exports, or table management. The database name must be the full name returned by the list databases endpoint.
|
|
5175
5359
|
* @summary Get phpMyAdmin link
|
|
@@ -5178,14 +5362,34 @@ const HostingDatabasesApiFp = function (configuration) {
|
|
|
5178
5362
|
* @param {*} [options] Override http request option.
|
|
5179
5363
|
* @throws {RequiredError}
|
|
5180
5364
|
*/
|
|
5181
|
-
getPhpMyAdminLinkV1(username, name, options) {
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5365
|
+
getPhpMyAdminLinkV1: (username_1, name_1, ...args_1) => __awaiter(this, [username_1, name_1, ...args_1], void 0, function* (username, name, options = {}) {
|
|
5366
|
+
// verify required parameter 'username' is not null or undefined
|
|
5367
|
+
(0, common_1.assertParamExists)('getPhpMyAdminLinkV1', 'username', username);
|
|
5368
|
+
// verify required parameter 'name' is not null or undefined
|
|
5369
|
+
(0, common_1.assertParamExists)('getPhpMyAdminLinkV1', 'name', name);
|
|
5370
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/phpmyadmin-link`
|
|
5371
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
5372
|
+
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
5373
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5374
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5375
|
+
let baseOptions;
|
|
5376
|
+
if (configuration) {
|
|
5377
|
+
baseOptions = configuration.baseOptions;
|
|
5378
|
+
}
|
|
5379
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5380
|
+
const localVarHeaderParameter = {};
|
|
5381
|
+
const localVarQueryParameter = {};
|
|
5382
|
+
// authentication apiToken required
|
|
5383
|
+
// http bearer authentication required
|
|
5384
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5385
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5386
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5387
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5388
|
+
return {
|
|
5389
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5390
|
+
options: localVarRequestOptions,
|
|
5391
|
+
};
|
|
5392
|
+
}),
|
|
5189
5393
|
/**
|
|
5190
5394
|
* Returns the remote-access rules for the specified account: the remote hosts (IPv4/IPv6 addresses, or \"%\" for any host) allowed to connect to the account databases. Use the domain filter to only return rules for databases assigned to a specific domain.
|
|
5191
5395
|
* @summary List account database remote connections
|
|
@@ -5194,14 +5398,34 @@ const HostingDatabasesApiFp = function (configuration) {
|
|
|
5194
5398
|
* @param {*} [options] Override http request option.
|
|
5195
5399
|
* @throws {RequiredError}
|
|
5196
5400
|
*/
|
|
5197
|
-
listAccountDatabaseRemoteConnectionsV1(username, domain, options) {
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5401
|
+
listAccountDatabaseRemoteConnectionsV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
5402
|
+
// verify required parameter 'username' is not null or undefined
|
|
5403
|
+
(0, common_1.assertParamExists)('listAccountDatabaseRemoteConnectionsV1', 'username', username);
|
|
5404
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/databases/remote-connections`
|
|
5405
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
5406
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5407
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5408
|
+
let baseOptions;
|
|
5409
|
+
if (configuration) {
|
|
5410
|
+
baseOptions = configuration.baseOptions;
|
|
5411
|
+
}
|
|
5412
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5413
|
+
const localVarHeaderParameter = {};
|
|
5414
|
+
const localVarQueryParameter = {};
|
|
5415
|
+
// authentication apiToken required
|
|
5416
|
+
// http bearer authentication required
|
|
5417
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5418
|
+
if (domain !== undefined) {
|
|
5419
|
+
localVarQueryParameter['domain'] = domain;
|
|
5420
|
+
}
|
|
5421
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5422
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5423
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5424
|
+
return {
|
|
5425
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5426
|
+
options: localVarRequestOptions,
|
|
5427
|
+
};
|
|
5428
|
+
}),
|
|
5205
5429
|
/**
|
|
5206
5430
|
* Returns a paginated list of databases for the specified account. Use the domain and is_assigned filters to find databases assigned to a specific domain.
|
|
5207
5431
|
* @summary List account databases
|
|
@@ -5214,14 +5438,46 @@ const HostingDatabasesApiFp = function (configuration) {
|
|
|
5214
5438
|
* @param {*} [options] Override http request option.
|
|
5215
5439
|
* @throws {RequiredError}
|
|
5216
5440
|
*/
|
|
5217
|
-
listAccountDatabasesV1(username, page, perPage, domain, isAssigned, search, options) {
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5441
|
+
listAccountDatabasesV1: (username_1, page_1, perPage_1, domain_1, isAssigned_1, search_1, ...args_1) => __awaiter(this, [username_1, page_1, perPage_1, domain_1, isAssigned_1, search_1, ...args_1], void 0, function* (username, page, perPage, domain, isAssigned, search, options = {}) {
|
|
5442
|
+
// verify required parameter 'username' is not null or undefined
|
|
5443
|
+
(0, common_1.assertParamExists)('listAccountDatabasesV1', 'username', username);
|
|
5444
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/databases`
|
|
5445
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
5446
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5447
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5448
|
+
let baseOptions;
|
|
5449
|
+
if (configuration) {
|
|
5450
|
+
baseOptions = configuration.baseOptions;
|
|
5451
|
+
}
|
|
5452
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5453
|
+
const localVarHeaderParameter = {};
|
|
5454
|
+
const localVarQueryParameter = {};
|
|
5455
|
+
// authentication apiToken required
|
|
5456
|
+
// http bearer authentication required
|
|
5457
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5458
|
+
if (page !== undefined) {
|
|
5459
|
+
localVarQueryParameter['page'] = page;
|
|
5460
|
+
}
|
|
5461
|
+
if (perPage !== undefined) {
|
|
5462
|
+
localVarQueryParameter['per_page'] = perPage;
|
|
5463
|
+
}
|
|
5464
|
+
if (domain !== undefined) {
|
|
5465
|
+
localVarQueryParameter['domain'] = domain;
|
|
5466
|
+
}
|
|
5467
|
+
if (isAssigned !== undefined) {
|
|
5468
|
+
localVarQueryParameter['is_assigned'] = isAssigned;
|
|
5469
|
+
}
|
|
5470
|
+
if (search !== undefined) {
|
|
5471
|
+
localVarQueryParameter['search'] = search;
|
|
5472
|
+
}
|
|
5473
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5474
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5475
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5476
|
+
return {
|
|
5477
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5478
|
+
options: localVarRequestOptions,
|
|
5479
|
+
};
|
|
5480
|
+
}),
|
|
5225
5481
|
/**
|
|
5226
5482
|
* Repairs corrupted database tables asynchronously. Use when database errors, crashes, or corruption are reported. The database name must be the full name returned by the list databases endpoint.
|
|
5227
5483
|
* @summary Repair database
|
|
@@ -5230,23 +5486,43 @@ const HostingDatabasesApiFp = function (configuration) {
|
|
|
5230
5486
|
* @param {*} [options] Override http request option.
|
|
5231
5487
|
* @throws {RequiredError}
|
|
5232
5488
|
*/
|
|
5233
|
-
repairDatabaseV1(username, name, options) {
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5489
|
+
repairDatabaseV1: (username_1, name_1, ...args_1) => __awaiter(this, [username_1, name_1, ...args_1], void 0, function* (username, name, options = {}) {
|
|
5490
|
+
// verify required parameter 'username' is not null or undefined
|
|
5491
|
+
(0, common_1.assertParamExists)('repairDatabaseV1', 'username', username);
|
|
5492
|
+
// verify required parameter 'name' is not null or undefined
|
|
5493
|
+
(0, common_1.assertParamExists)('repairDatabaseV1', 'name', name);
|
|
5494
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/repair`
|
|
5495
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
5496
|
+
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
5497
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5498
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5499
|
+
let baseOptions;
|
|
5500
|
+
if (configuration) {
|
|
5501
|
+
baseOptions = configuration.baseOptions;
|
|
5502
|
+
}
|
|
5503
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
5504
|
+
const localVarHeaderParameter = {};
|
|
5505
|
+
const localVarQueryParameter = {};
|
|
5506
|
+
// authentication apiToken required
|
|
5507
|
+
// http bearer authentication required
|
|
5508
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5509
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5510
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5511
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5512
|
+
return {
|
|
5513
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5514
|
+
options: localVarRequestOptions,
|
|
5515
|
+
};
|
|
5516
|
+
}),
|
|
5241
5517
|
};
|
|
5242
5518
|
};
|
|
5243
|
-
exports.
|
|
5519
|
+
exports.HostingDatabasesApiAxiosParamCreator = HostingDatabasesApiAxiosParamCreator;
|
|
5244
5520
|
/**
|
|
5245
|
-
* HostingDatabasesApi -
|
|
5521
|
+
* HostingDatabasesApi - functional programming interface
|
|
5246
5522
|
* @export
|
|
5247
5523
|
*/
|
|
5248
|
-
const
|
|
5249
|
-
const
|
|
5524
|
+
const HostingDatabasesApiFp = function (configuration) {
|
|
5525
|
+
const localVarAxiosParamCreator = (0, exports.HostingDatabasesApiAxiosParamCreator)(configuration);
|
|
5250
5526
|
return {
|
|
5251
5527
|
/**
|
|
5252
5528
|
* Changes the password for the specified database user. The database name must be the full name returned by the list databases endpoint. The password must also be updated in any website configuration that uses this database.
|
|
@@ -5258,7 +5534,12 @@ const HostingDatabasesApiFactory = function (configuration, basePath, axios) {
|
|
|
5258
5534
|
* @throws {RequiredError}
|
|
5259
5535
|
*/
|
|
5260
5536
|
changeDatabasePasswordV1(username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options) {
|
|
5261
|
-
return
|
|
5537
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5538
|
+
var _a, _b;
|
|
5539
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.changeDatabasePasswordV1(username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options);
|
|
5540
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingDatabasesApi.changeDatabasePasswordV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5541
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5542
|
+
});
|
|
5262
5543
|
},
|
|
5263
5544
|
/**
|
|
5264
5545
|
* Allows a remote host to connect to the specified database. Provide an IPv4/IPv6 address, or \"%\" to allow any host. The database name must be the full name returned by the list databases endpoint.
|
|
@@ -5270,7 +5551,12 @@ const HostingDatabasesApiFactory = function (configuration, basePath, axios) {
|
|
|
5270
5551
|
* @throws {RequiredError}
|
|
5271
5552
|
*/
|
|
5272
5553
|
createAccountDatabaseRemoteConnectionV1(username, name, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options) {
|
|
5273
|
-
return
|
|
5554
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5555
|
+
var _a, _b;
|
|
5556
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createAccountDatabaseRemoteConnectionV1(username, name, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options);
|
|
5557
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingDatabasesApi.createAccountDatabaseRemoteConnectionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5558
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5559
|
+
});
|
|
5274
5560
|
},
|
|
5275
5561
|
/**
|
|
5276
5562
|
* Creates a database with a database user and password for the specified account. The database name and user are automatically prefixed with the account username when needed.
|
|
@@ -5281,7 +5567,158 @@ const HostingDatabasesApiFactory = function (configuration, basePath, axios) {
|
|
|
5281
5567
|
* @throws {RequiredError}
|
|
5282
5568
|
*/
|
|
5283
5569
|
createAccountDatabaseV1(username, hostingV1DatabasesCreateDatabaseRequest, options) {
|
|
5284
|
-
return
|
|
5570
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5571
|
+
var _a, _b;
|
|
5572
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createAccountDatabaseV1(username, hostingV1DatabasesCreateDatabaseRequest, options);
|
|
5573
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingDatabasesApi.createAccountDatabaseV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5574
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5575
|
+
});
|
|
5576
|
+
},
|
|
5577
|
+
/**
|
|
5578
|
+
* Permanently removes a remote-access rule, revoking the given host\'s remote access to the database. Identify the rule with the required ip query parameter (the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint). The database name must be the full name returned by the list databases endpoint.
|
|
5579
|
+
* @summary Delete account database remote connection
|
|
5580
|
+
* @param {string} username
|
|
5581
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
5582
|
+
* @param {string} ip Remote host to revoke: the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint.
|
|
5583
|
+
* @param {*} [options] Override http request option.
|
|
5584
|
+
* @throws {RequiredError}
|
|
5585
|
+
*/
|
|
5586
|
+
deleteAccountDatabaseRemoteConnectionV1(username, name, ip, options) {
|
|
5587
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5588
|
+
var _a, _b;
|
|
5589
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAccountDatabaseRemoteConnectionV1(username, name, ip, options);
|
|
5590
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingDatabasesApi.deleteAccountDatabaseRemoteConnectionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5591
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5592
|
+
});
|
|
5593
|
+
},
|
|
5594
|
+
/**
|
|
5595
|
+
* Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
|
|
5596
|
+
* @summary Delete account database
|
|
5597
|
+
* @param {string} username
|
|
5598
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
5599
|
+
* @param {*} [options] Override http request option.
|
|
5600
|
+
* @throws {RequiredError}
|
|
5601
|
+
*/
|
|
5602
|
+
deleteAccountDatabaseV1(username, name, options) {
|
|
5603
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5604
|
+
var _a, _b;
|
|
5605
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAccountDatabaseV1(username, name, options);
|
|
5606
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingDatabasesApi.deleteAccountDatabaseV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5607
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5608
|
+
});
|
|
5609
|
+
},
|
|
5610
|
+
/**
|
|
5611
|
+
* Returns a direct sign-on link to phpMyAdmin for the specified database. Use this when a visual database interface is needed for SQL queries, imports, exports, or table management. The database name must be the full name returned by the list databases endpoint.
|
|
5612
|
+
* @summary Get phpMyAdmin link
|
|
5613
|
+
* @param {string} username
|
|
5614
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
5615
|
+
* @param {*} [options] Override http request option.
|
|
5616
|
+
* @throws {RequiredError}
|
|
5617
|
+
*/
|
|
5618
|
+
getPhpMyAdminLinkV1(username, name, options) {
|
|
5619
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5620
|
+
var _a, _b;
|
|
5621
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPhpMyAdminLinkV1(username, name, options);
|
|
5622
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingDatabasesApi.getPhpMyAdminLinkV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5623
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5624
|
+
});
|
|
5625
|
+
},
|
|
5626
|
+
/**
|
|
5627
|
+
* Returns the remote-access rules for the specified account: the remote hosts (IPv4/IPv6 addresses, or \"%\" for any host) allowed to connect to the account databases. Use the domain filter to only return rules for databases assigned to a specific domain.
|
|
5628
|
+
* @summary List account database remote connections
|
|
5629
|
+
* @param {string} username
|
|
5630
|
+
* @param {string | null} [domain] Filter remote connections by the domain the database is assigned to. Rules for databases not assigned to any domain are always included.
|
|
5631
|
+
* @param {*} [options] Override http request option.
|
|
5632
|
+
* @throws {RequiredError}
|
|
5633
|
+
*/
|
|
5634
|
+
listAccountDatabaseRemoteConnectionsV1(username, domain, options) {
|
|
5635
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5636
|
+
var _a, _b;
|
|
5637
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAccountDatabaseRemoteConnectionsV1(username, domain, options);
|
|
5638
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingDatabasesApi.listAccountDatabaseRemoteConnectionsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5639
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5640
|
+
});
|
|
5641
|
+
},
|
|
5642
|
+
/**
|
|
5643
|
+
* Returns a paginated list of databases for the specified account. Use the domain and is_assigned filters to find databases assigned to a specific domain.
|
|
5644
|
+
* @summary List account databases
|
|
5645
|
+
* @param {string} username
|
|
5646
|
+
* @param {number} [page] Page number
|
|
5647
|
+
* @param {number} [perPage] Number of items per page
|
|
5648
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
5649
|
+
* @param {boolean | null} [isAssigned] When used with domain, return only databases assigned to that domain.
|
|
5650
|
+
* @param {string | null} [search] Search databases by name, user, or creation date.
|
|
5651
|
+
* @param {*} [options] Override http request option.
|
|
5652
|
+
* @throws {RequiredError}
|
|
5653
|
+
*/
|
|
5654
|
+
listAccountDatabasesV1(username, page, perPage, domain, isAssigned, search, options) {
|
|
5655
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5656
|
+
var _a, _b;
|
|
5657
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAccountDatabasesV1(username, page, perPage, domain, isAssigned, search, options);
|
|
5658
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingDatabasesApi.listAccountDatabasesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5659
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5660
|
+
});
|
|
5661
|
+
},
|
|
5662
|
+
/**
|
|
5663
|
+
* Repairs corrupted database tables asynchronously. Use when database errors, crashes, or corruption are reported. The database name must be the full name returned by the list databases endpoint.
|
|
5664
|
+
* @summary Repair database
|
|
5665
|
+
* @param {string} username
|
|
5666
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
5667
|
+
* @param {*} [options] Override http request option.
|
|
5668
|
+
* @throws {RequiredError}
|
|
5669
|
+
*/
|
|
5670
|
+
repairDatabaseV1(username, name, options) {
|
|
5671
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5672
|
+
var _a, _b;
|
|
5673
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.repairDatabaseV1(username, name, options);
|
|
5674
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingDatabasesApi.repairDatabaseV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5675
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5676
|
+
});
|
|
5677
|
+
},
|
|
5678
|
+
};
|
|
5679
|
+
};
|
|
5680
|
+
exports.HostingDatabasesApiFp = HostingDatabasesApiFp;
|
|
5681
|
+
/**
|
|
5682
|
+
* HostingDatabasesApi - factory interface
|
|
5683
|
+
* @export
|
|
5684
|
+
*/
|
|
5685
|
+
const HostingDatabasesApiFactory = function (configuration, basePath, axios) {
|
|
5686
|
+
const localVarFp = (0, exports.HostingDatabasesApiFp)(configuration);
|
|
5687
|
+
return {
|
|
5688
|
+
/**
|
|
5689
|
+
* Changes the password for the specified database user. The database name must be the full name returned by the list databases endpoint. The password must also be updated in any website configuration that uses this database.
|
|
5690
|
+
* @summary Change database password
|
|
5691
|
+
* @param {string} username
|
|
5692
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
5693
|
+
* @param {HostingV1DatabasesChangeDatabasePasswordRequest} hostingV1DatabasesChangeDatabasePasswordRequest
|
|
5694
|
+
* @param {*} [options] Override http request option.
|
|
5695
|
+
* @throws {RequiredError}
|
|
5696
|
+
*/
|
|
5697
|
+
changeDatabasePasswordV1(username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options) {
|
|
5698
|
+
return localVarFp.changeDatabasePasswordV1(username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options).then((request) => request(axios, basePath));
|
|
5699
|
+
},
|
|
5700
|
+
/**
|
|
5701
|
+
* Allows a remote host to connect to the specified database. Provide an IPv4/IPv6 address, or \"%\" to allow any host. The database name must be the full name returned by the list databases endpoint.
|
|
5702
|
+
* @summary Create account database remote connection
|
|
5703
|
+
* @param {string} username
|
|
5704
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
5705
|
+
* @param {HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest} hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
|
|
5706
|
+
* @param {*} [options] Override http request option.
|
|
5707
|
+
* @throws {RequiredError}
|
|
5708
|
+
*/
|
|
5709
|
+
createAccountDatabaseRemoteConnectionV1(username, name, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options) {
|
|
5710
|
+
return localVarFp.createAccountDatabaseRemoteConnectionV1(username, name, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options).then((request) => request(axios, basePath));
|
|
5711
|
+
},
|
|
5712
|
+
/**
|
|
5713
|
+
* Creates a database with a database user and password for the specified account. The database name and user are automatically prefixed with the account username when needed.
|
|
5714
|
+
* @summary Create account database
|
|
5715
|
+
* @param {string} username
|
|
5716
|
+
* @param {HostingV1DatabasesCreateDatabaseRequest} hostingV1DatabasesCreateDatabaseRequest
|
|
5717
|
+
* @param {*} [options] Override http request option.
|
|
5718
|
+
* @throws {RequiredError}
|
|
5719
|
+
*/
|
|
5720
|
+
createAccountDatabaseV1(username, hostingV1DatabasesCreateDatabaseRequest, options) {
|
|
5721
|
+
return localVarFp.createAccountDatabaseV1(username, hostingV1DatabasesCreateDatabaseRequest, options).then((request) => request(axios, basePath));
|
|
5285
5722
|
},
|
|
5286
5723
|
/**
|
|
5287
5724
|
* Permanently removes a remote-access rule, revoking the given host\'s remote access to the database. Identify the rule with the required ip query parameter (the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint). The database name must be the full name returned by the list databases endpoint.
|
|
@@ -13323,113 +13760,1559 @@ class VPSVirtualMachineApi extends base_1.BaseAPI {
|
|
|
13323
13760
|
* @param {VPSV1VirtualMachineSetupRequest} vPSV1VirtualMachineSetupRequest
|
|
13324
13761
|
* @param {*} [options] Override http request option.
|
|
13325
13762
|
* @throws {RequiredError}
|
|
13326
|
-
* @memberof VPSVirtualMachineApi
|
|
13763
|
+
* @memberof VPSVirtualMachineApi
|
|
13764
|
+
*/
|
|
13765
|
+
setupPurchasedVirtualMachineV1(virtualMachineId, vPSV1VirtualMachineSetupRequest, options) {
|
|
13766
|
+
return (0, exports.VPSVirtualMachineApiFp)(this.configuration).setupPurchasedVirtualMachineV1(virtualMachineId, vPSV1VirtualMachineSetupRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13767
|
+
}
|
|
13768
|
+
/**
|
|
13769
|
+
* Start a specified virtual machine. If the virtual machine is already running, the request will still be processed without any effect. Use this endpoint to power on stopped VPS instances.
|
|
13770
|
+
* @summary Start virtual machine
|
|
13771
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
13772
|
+
* @param {*} [options] Override http request option.
|
|
13773
|
+
* @throws {RequiredError}
|
|
13774
|
+
* @memberof VPSVirtualMachineApi
|
|
13775
|
+
*/
|
|
13776
|
+
startVirtualMachineV1(virtualMachineId, options) {
|
|
13777
|
+
return (0, exports.VPSVirtualMachineApiFp)(this.configuration).startVirtualMachineV1(virtualMachineId, options).then((request) => request(this.axios, this.basePath));
|
|
13778
|
+
}
|
|
13779
|
+
/**
|
|
13780
|
+
* Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. Use this endpoint to power off running VPS instances.
|
|
13781
|
+
* @summary Stop virtual machine
|
|
13782
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
13783
|
+
* @param {*} [options] Override http request option.
|
|
13784
|
+
* @throws {RequiredError}
|
|
13785
|
+
* @memberof VPSVirtualMachineApi
|
|
13786
|
+
*/
|
|
13787
|
+
stopVirtualMachineV1(virtualMachineId, options) {
|
|
13788
|
+
return (0, exports.VPSVirtualMachineApiFp)(this.configuration).stopVirtualMachineV1(virtualMachineId, options).then((request) => request(this.axios, this.basePath));
|
|
13789
|
+
}
|
|
13790
|
+
}
|
|
13791
|
+
exports.VPSVirtualMachineApi = VPSVirtualMachineApi;
|
|
13792
|
+
/**
|
|
13793
|
+
* WordPressAIToolsApi - axios parameter creator
|
|
13794
|
+
* @export
|
|
13795
|
+
*/
|
|
13796
|
+
const WordPressAIToolsApiAxiosParamCreator = function (configuration) {
|
|
13797
|
+
return {
|
|
13798
|
+
/**
|
|
13799
|
+
* Enable or disable an AI option for the Hostinger Tools plugin on the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13800
|
+
* @summary Set AI option status
|
|
13801
|
+
* @param {string} username
|
|
13802
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13803
|
+
* @param {WordPressV1HostingerPluginsUpdateAiOptionStatusRequest} wordPressV1HostingerPluginsUpdateAiOptionStatusRequest
|
|
13804
|
+
* @param {*} [options] Override http request option.
|
|
13805
|
+
* @throws {RequiredError}
|
|
13806
|
+
*/
|
|
13807
|
+
setAIOptionStatusV1: (username_1, software_1, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest_1, ...args_1) => __awaiter(this, [username_1, software_1, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest_1, ...args_1], void 0, function* (username, software, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options = {}) {
|
|
13808
|
+
// verify required parameter 'username' is not null or undefined
|
|
13809
|
+
(0, common_1.assertParamExists)('setAIOptionStatusV1', 'username', username);
|
|
13810
|
+
// verify required parameter 'software' is not null or undefined
|
|
13811
|
+
(0, common_1.assertParamExists)('setAIOptionStatusV1', 'software', software);
|
|
13812
|
+
// verify required parameter 'wordPressV1HostingerPluginsUpdateAiOptionStatusRequest' is not null or undefined
|
|
13813
|
+
(0, common_1.assertParamExists)('setAIOptionStatusV1', 'wordPressV1HostingerPluginsUpdateAiOptionStatusRequest', wordPressV1HostingerPluginsUpdateAiOptionStatusRequest);
|
|
13814
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/hostinger-plugins/ai-option/status`
|
|
13815
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13816
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13817
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13818
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13819
|
+
let baseOptions;
|
|
13820
|
+
if (configuration) {
|
|
13821
|
+
baseOptions = configuration.baseOptions;
|
|
13822
|
+
}
|
|
13823
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
13824
|
+
const localVarHeaderParameter = {};
|
|
13825
|
+
const localVarQueryParameter = {};
|
|
13826
|
+
// authentication apiToken required
|
|
13827
|
+
// http bearer authentication required
|
|
13828
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13829
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13830
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13831
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13832
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13833
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, localVarRequestOptions, configuration);
|
|
13834
|
+
return {
|
|
13835
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13836
|
+
options: localVarRequestOptions,
|
|
13837
|
+
};
|
|
13838
|
+
}),
|
|
13839
|
+
/**
|
|
13840
|
+
* Show the current AI option status for the Hostinger Tools plugin on the specified WordPress installation. Filter by `option` to return a single option, or omit it to return all options. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13841
|
+
* @summary Show AI option status
|
|
13842
|
+
* @param {string} username
|
|
13843
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13844
|
+
* @param {ShowAIOptionStatusV1OptionEnum} [option] Filter the status by a single AI option.
|
|
13845
|
+
* @param {*} [options] Override http request option.
|
|
13846
|
+
* @throws {RequiredError}
|
|
13847
|
+
*/
|
|
13848
|
+
showAIOptionStatusV1: (username_1, software_1, option_1, ...args_1) => __awaiter(this, [username_1, software_1, option_1, ...args_1], void 0, function* (username, software, option, options = {}) {
|
|
13849
|
+
// verify required parameter 'username' is not null or undefined
|
|
13850
|
+
(0, common_1.assertParamExists)('showAIOptionStatusV1', 'username', username);
|
|
13851
|
+
// verify required parameter 'software' is not null or undefined
|
|
13852
|
+
(0, common_1.assertParamExists)('showAIOptionStatusV1', 'software', software);
|
|
13853
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/hostinger-plugins/ai-option/status`
|
|
13854
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
13855
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13856
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13857
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13858
|
+
let baseOptions;
|
|
13859
|
+
if (configuration) {
|
|
13860
|
+
baseOptions = configuration.baseOptions;
|
|
13861
|
+
}
|
|
13862
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13863
|
+
const localVarHeaderParameter = {};
|
|
13864
|
+
const localVarQueryParameter = {};
|
|
13865
|
+
// authentication apiToken required
|
|
13866
|
+
// http bearer authentication required
|
|
13867
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13868
|
+
if (option !== undefined) {
|
|
13869
|
+
localVarQueryParameter['option'] = option;
|
|
13870
|
+
}
|
|
13871
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13872
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13873
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13874
|
+
return {
|
|
13875
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13876
|
+
options: localVarRequestOptions,
|
|
13877
|
+
};
|
|
13878
|
+
}),
|
|
13879
|
+
};
|
|
13880
|
+
};
|
|
13881
|
+
exports.WordPressAIToolsApiAxiosParamCreator = WordPressAIToolsApiAxiosParamCreator;
|
|
13882
|
+
/**
|
|
13883
|
+
* WordPressAIToolsApi - functional programming interface
|
|
13884
|
+
* @export
|
|
13885
|
+
*/
|
|
13886
|
+
const WordPressAIToolsApiFp = function (configuration) {
|
|
13887
|
+
const localVarAxiosParamCreator = (0, exports.WordPressAIToolsApiAxiosParamCreator)(configuration);
|
|
13888
|
+
return {
|
|
13889
|
+
/**
|
|
13890
|
+
* Enable or disable an AI option for the Hostinger Tools plugin on the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13891
|
+
* @summary Set AI option status
|
|
13892
|
+
* @param {string} username
|
|
13893
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13894
|
+
* @param {WordPressV1HostingerPluginsUpdateAiOptionStatusRequest} wordPressV1HostingerPluginsUpdateAiOptionStatusRequest
|
|
13895
|
+
* @param {*} [options] Override http request option.
|
|
13896
|
+
* @throws {RequiredError}
|
|
13897
|
+
*/
|
|
13898
|
+
setAIOptionStatusV1(username, software, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options) {
|
|
13899
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13900
|
+
var _a, _b;
|
|
13901
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setAIOptionStatusV1(username, software, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options);
|
|
13902
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressAIToolsApi.setAIOptionStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13903
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13904
|
+
});
|
|
13905
|
+
},
|
|
13906
|
+
/**
|
|
13907
|
+
* Show the current AI option status for the Hostinger Tools plugin on the specified WordPress installation. Filter by `option` to return a single option, or omit it to return all options. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13908
|
+
* @summary Show AI option status
|
|
13909
|
+
* @param {string} username
|
|
13910
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13911
|
+
* @param {ShowAIOptionStatusV1OptionEnum} [option] Filter the status by a single AI option.
|
|
13912
|
+
* @param {*} [options] Override http request option.
|
|
13913
|
+
* @throws {RequiredError}
|
|
13914
|
+
*/
|
|
13915
|
+
showAIOptionStatusV1(username, software, option, options) {
|
|
13916
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13917
|
+
var _a, _b;
|
|
13918
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.showAIOptionStatusV1(username, software, option, options);
|
|
13919
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressAIToolsApi.showAIOptionStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13920
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13921
|
+
});
|
|
13922
|
+
},
|
|
13923
|
+
};
|
|
13924
|
+
};
|
|
13925
|
+
exports.WordPressAIToolsApiFp = WordPressAIToolsApiFp;
|
|
13926
|
+
/**
|
|
13927
|
+
* WordPressAIToolsApi - factory interface
|
|
13928
|
+
* @export
|
|
13929
|
+
*/
|
|
13930
|
+
const WordPressAIToolsApiFactory = function (configuration, basePath, axios) {
|
|
13931
|
+
const localVarFp = (0, exports.WordPressAIToolsApiFp)(configuration);
|
|
13932
|
+
return {
|
|
13933
|
+
/**
|
|
13934
|
+
* Enable or disable an AI option for the Hostinger Tools plugin on the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13935
|
+
* @summary Set AI option status
|
|
13936
|
+
* @param {string} username
|
|
13937
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13938
|
+
* @param {WordPressV1HostingerPluginsUpdateAiOptionStatusRequest} wordPressV1HostingerPluginsUpdateAiOptionStatusRequest
|
|
13939
|
+
* @param {*} [options] Override http request option.
|
|
13940
|
+
* @throws {RequiredError}
|
|
13941
|
+
*/
|
|
13942
|
+
setAIOptionStatusV1(username, software, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options) {
|
|
13943
|
+
return localVarFp.setAIOptionStatusV1(username, software, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options).then((request) => request(axios, basePath));
|
|
13944
|
+
},
|
|
13945
|
+
/**
|
|
13946
|
+
* Show the current AI option status for the Hostinger Tools plugin on the specified WordPress installation. Filter by `option` to return a single option, or omit it to return all options. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13947
|
+
* @summary Show AI option status
|
|
13948
|
+
* @param {string} username
|
|
13949
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13950
|
+
* @param {ShowAIOptionStatusV1OptionEnum} [option] Filter the status by a single AI option.
|
|
13951
|
+
* @param {*} [options] Override http request option.
|
|
13952
|
+
* @throws {RequiredError}
|
|
13953
|
+
*/
|
|
13954
|
+
showAIOptionStatusV1(username, software, option, options) {
|
|
13955
|
+
return localVarFp.showAIOptionStatusV1(username, software, option, options).then((request) => request(axios, basePath));
|
|
13956
|
+
},
|
|
13957
|
+
};
|
|
13958
|
+
};
|
|
13959
|
+
exports.WordPressAIToolsApiFactory = WordPressAIToolsApiFactory;
|
|
13960
|
+
/**
|
|
13961
|
+
* WordPressAIToolsApi - object-oriented interface
|
|
13962
|
+
* @export
|
|
13963
|
+
* @class WordPressAIToolsApi
|
|
13964
|
+
* @extends {BaseAPI}
|
|
13965
|
+
*/
|
|
13966
|
+
class WordPressAIToolsApi extends base_1.BaseAPI {
|
|
13967
|
+
/**
|
|
13968
|
+
* Enable or disable an AI option for the Hostinger Tools plugin on the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13969
|
+
* @summary Set AI option status
|
|
13970
|
+
* @param {string} username
|
|
13971
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13972
|
+
* @param {WordPressV1HostingerPluginsUpdateAiOptionStatusRequest} wordPressV1HostingerPluginsUpdateAiOptionStatusRequest
|
|
13973
|
+
* @param {*} [options] Override http request option.
|
|
13974
|
+
* @throws {RequiredError}
|
|
13975
|
+
* @memberof WordPressAIToolsApi
|
|
13976
|
+
*/
|
|
13977
|
+
setAIOptionStatusV1(username, software, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options) {
|
|
13978
|
+
return (0, exports.WordPressAIToolsApiFp)(this.configuration).setAIOptionStatusV1(username, software, wordPressV1HostingerPluginsUpdateAiOptionStatusRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13979
|
+
}
|
|
13980
|
+
/**
|
|
13981
|
+
* Show the current AI option status for the Hostinger Tools plugin on the specified WordPress installation. Filter by `option` to return a single option, or omit it to return all options. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
13982
|
+
* @summary Show AI option status
|
|
13983
|
+
* @param {string} username
|
|
13984
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13985
|
+
* @param {ShowAIOptionStatusV1OptionEnum} [option] Filter the status by a single AI option.
|
|
13986
|
+
* @param {*} [options] Override http request option.
|
|
13987
|
+
* @throws {RequiredError}
|
|
13988
|
+
* @memberof WordPressAIToolsApi
|
|
13989
|
+
*/
|
|
13990
|
+
showAIOptionStatusV1(username, software, option, options) {
|
|
13991
|
+
return (0, exports.WordPressAIToolsApiFp)(this.configuration).showAIOptionStatusV1(username, software, option, options).then((request) => request(this.axios, this.basePath));
|
|
13992
|
+
}
|
|
13993
|
+
}
|
|
13994
|
+
exports.WordPressAIToolsApi = WordPressAIToolsApi;
|
|
13995
|
+
/**
|
|
13996
|
+
* @export
|
|
13997
|
+
*/
|
|
13998
|
+
exports.ShowAIOptionStatusV1OptionEnum = {
|
|
13999
|
+
Llmstxt: 'llmstxt',
|
|
14000
|
+
Web2agent: 'web2agent'
|
|
14001
|
+
};
|
|
14002
|
+
/**
|
|
14003
|
+
* WordPressInstallationsApi - axios parameter creator
|
|
14004
|
+
* @export
|
|
14005
|
+
*/
|
|
14006
|
+
const WordPressInstallationsApiAxiosParamCreator = function (configuration) {
|
|
14007
|
+
return {
|
|
14008
|
+
/**
|
|
14009
|
+
* Check whether one or more WordPress installations are valid and working correctly. Detects broken installations caused by missing files, broken plugins, themes and similar issues. Provide the WordPress installation (software) identifiers in the body. They can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14010
|
+
* @summary Check if WordPress installations are valid
|
|
14011
|
+
* @param {string} username
|
|
14012
|
+
* @param {WordPressV1InstallationsCheckIsValidRequest} wordPressV1InstallationsCheckIsValidRequest
|
|
14013
|
+
* @param {*} [options] Override http request option.
|
|
14014
|
+
* @throws {RequiredError}
|
|
14015
|
+
*/
|
|
14016
|
+
checkIfWordPressInstallationsAreValidV1: (username_1, wordPressV1InstallationsCheckIsValidRequest_1, ...args_1) => __awaiter(this, [username_1, wordPressV1InstallationsCheckIsValidRequest_1, ...args_1], void 0, function* (username, wordPressV1InstallationsCheckIsValidRequest, options = {}) {
|
|
14017
|
+
// verify required parameter 'username' is not null or undefined
|
|
14018
|
+
(0, common_1.assertParamExists)('checkIfWordPressInstallationsAreValidV1', 'username', username);
|
|
14019
|
+
// verify required parameter 'wordPressV1InstallationsCheckIsValidRequest' is not null or undefined
|
|
14020
|
+
(0, common_1.assertParamExists)('checkIfWordPressInstallationsAreValidV1', 'wordPressV1InstallationsCheckIsValidRequest', wordPressV1InstallationsCheckIsValidRequest);
|
|
14021
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/installations/check-is-valid`
|
|
14022
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
14023
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14024
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14025
|
+
let baseOptions;
|
|
14026
|
+
if (configuration) {
|
|
14027
|
+
baseOptions = configuration.baseOptions;
|
|
14028
|
+
}
|
|
14029
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
14030
|
+
const localVarHeaderParameter = {};
|
|
14031
|
+
const localVarQueryParameter = {};
|
|
14032
|
+
// authentication apiToken required
|
|
14033
|
+
// http bearer authentication required
|
|
14034
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14035
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14036
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14037
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14038
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14039
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1InstallationsCheckIsValidRequest, localVarRequestOptions, configuration);
|
|
14040
|
+
return {
|
|
14041
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14042
|
+
options: localVarRequestOptions,
|
|
14043
|
+
};
|
|
14044
|
+
}),
|
|
14045
|
+
/**
|
|
14046
|
+
* Delete the specified WordPress installation, with optional file and database removal. This removes all associated components including plugins, themes, staging websites and any other related data. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14047
|
+
* @summary Delete WordPress installation
|
|
14048
|
+
* @param {string} username
|
|
14049
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14050
|
+
* @param {WordPressV1InstallationsDeleteInstallationRequest} wordPressV1InstallationsDeleteInstallationRequest
|
|
14051
|
+
* @param {*} [options] Override http request option.
|
|
14052
|
+
* @throws {RequiredError}
|
|
14053
|
+
*/
|
|
14054
|
+
deleteWordPressInstallationV1: (username_1, software_1, wordPressV1InstallationsDeleteInstallationRequest_1, ...args_1) => __awaiter(this, [username_1, software_1, wordPressV1InstallationsDeleteInstallationRequest_1, ...args_1], void 0, function* (username, software, wordPressV1InstallationsDeleteInstallationRequest, options = {}) {
|
|
14055
|
+
// verify required parameter 'username' is not null or undefined
|
|
14056
|
+
(0, common_1.assertParamExists)('deleteWordPressInstallationV1', 'username', username);
|
|
14057
|
+
// verify required parameter 'software' is not null or undefined
|
|
14058
|
+
(0, common_1.assertParamExists)('deleteWordPressInstallationV1', 'software', software);
|
|
14059
|
+
// verify required parameter 'wordPressV1InstallationsDeleteInstallationRequest' is not null or undefined
|
|
14060
|
+
(0, common_1.assertParamExists)('deleteWordPressInstallationV1', 'wordPressV1InstallationsDeleteInstallationRequest', wordPressV1InstallationsDeleteInstallationRequest);
|
|
14061
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}`
|
|
14062
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
14063
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
14064
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14065
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14066
|
+
let baseOptions;
|
|
14067
|
+
if (configuration) {
|
|
14068
|
+
baseOptions = configuration.baseOptions;
|
|
14069
|
+
}
|
|
14070
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
14071
|
+
const localVarHeaderParameter = {};
|
|
14072
|
+
const localVarQueryParameter = {};
|
|
14073
|
+
// authentication apiToken required
|
|
14074
|
+
// http bearer authentication required
|
|
14075
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14076
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14077
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14078
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14079
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14080
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1InstallationsDeleteInstallationRequest, localVarRequestOptions, configuration);
|
|
14081
|
+
return {
|
|
14082
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14083
|
+
options: localVarRequestOptions,
|
|
14084
|
+
};
|
|
14085
|
+
}),
|
|
14086
|
+
/**
|
|
14087
|
+
* Trigger a background scan to detect WordPress installations for the account. This operation is asynchronous: a successful response only means the scan has been queued. Poll GET /api/hosting/v1/wordpress/installations to fetch the detected installations once the scan completes.
|
|
14088
|
+
* @summary Detect WordPress installations
|
|
14089
|
+
* @param {string} username
|
|
14090
|
+
* @param {*} [options] Override http request option.
|
|
14091
|
+
* @throws {RequiredError}
|
|
14092
|
+
*/
|
|
14093
|
+
detectWordPressInstallationsV1: (username_1, ...args_1) => __awaiter(this, [username_1, ...args_1], void 0, function* (username, options = {}) {
|
|
14094
|
+
// verify required parameter 'username' is not null or undefined
|
|
14095
|
+
(0, common_1.assertParamExists)('detectWordPressInstallationsV1', 'username', username);
|
|
14096
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/installations/detect`
|
|
14097
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
14098
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14099
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14100
|
+
let baseOptions;
|
|
14101
|
+
if (configuration) {
|
|
14102
|
+
baseOptions = configuration.baseOptions;
|
|
14103
|
+
}
|
|
14104
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
14105
|
+
const localVarHeaderParameter = {};
|
|
14106
|
+
const localVarQueryParameter = {};
|
|
14107
|
+
// authentication apiToken required
|
|
14108
|
+
// http bearer authentication required
|
|
14109
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14110
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14111
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14112
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14113
|
+
return {
|
|
14114
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14115
|
+
options: localVarRequestOptions,
|
|
14116
|
+
};
|
|
14117
|
+
}),
|
|
14118
|
+
/**
|
|
14119
|
+
* Return a JWT token used to authenticate requests against the specified WordPress installation, including its MCP (Model Context Protocol) endpoint. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14120
|
+
* @summary Get installation JWT token
|
|
14121
|
+
* @param {string} username
|
|
14122
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14123
|
+
* @param {*} [options] Override http request option.
|
|
14124
|
+
* @throws {RequiredError}
|
|
14125
|
+
*/
|
|
14126
|
+
getInstallationJWTTokenV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
|
|
14127
|
+
// verify required parameter 'username' is not null or undefined
|
|
14128
|
+
(0, common_1.assertParamExists)('getInstallationJWTTokenV1', 'username', username);
|
|
14129
|
+
// verify required parameter 'software' is not null or undefined
|
|
14130
|
+
(0, common_1.assertParamExists)('getInstallationJWTTokenV1', 'software', software);
|
|
14131
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/jwt-token`
|
|
14132
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
14133
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
14134
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14135
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14136
|
+
let baseOptions;
|
|
14137
|
+
if (configuration) {
|
|
14138
|
+
baseOptions = configuration.baseOptions;
|
|
14139
|
+
}
|
|
14140
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14141
|
+
const localVarHeaderParameter = {};
|
|
14142
|
+
const localVarQueryParameter = {};
|
|
14143
|
+
// authentication apiToken required
|
|
14144
|
+
// http bearer authentication required
|
|
14145
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14146
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14147
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14148
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14149
|
+
return {
|
|
14150
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14151
|
+
options: localVarRequestOptions,
|
|
14152
|
+
};
|
|
14153
|
+
}),
|
|
14154
|
+
/**
|
|
14155
|
+
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
|
|
14156
|
+
* @summary Install WordPress
|
|
14157
|
+
* @param {string} username
|
|
14158
|
+
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
14159
|
+
* @param {*} [options] Override http request option.
|
|
14160
|
+
* @throws {RequiredError}
|
|
14161
|
+
*/
|
|
14162
|
+
installWordPressV1: (username_1, wordPressV1InstallationsInstallWordPressRequest_1, ...args_1) => __awaiter(this, [username_1, wordPressV1InstallationsInstallWordPressRequest_1, ...args_1], void 0, function* (username, wordPressV1InstallationsInstallWordPressRequest, options = {}) {
|
|
14163
|
+
// verify required parameter 'username' is not null or undefined
|
|
14164
|
+
(0, common_1.assertParamExists)('installWordPressV1', 'username', username);
|
|
14165
|
+
// verify required parameter 'wordPressV1InstallationsInstallWordPressRequest' is not null or undefined
|
|
14166
|
+
(0, common_1.assertParamExists)('installWordPressV1', 'wordPressV1InstallationsInstallWordPressRequest', wordPressV1InstallationsInstallWordPressRequest);
|
|
14167
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/installations`
|
|
14168
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
14169
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14170
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14171
|
+
let baseOptions;
|
|
14172
|
+
if (configuration) {
|
|
14173
|
+
baseOptions = configuration.baseOptions;
|
|
14174
|
+
}
|
|
14175
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
14176
|
+
const localVarHeaderParameter = {};
|
|
14177
|
+
const localVarQueryParameter = {};
|
|
14178
|
+
// authentication apiToken required
|
|
14179
|
+
// http bearer authentication required
|
|
14180
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14181
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14182
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14183
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14184
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14185
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1InstallationsInstallWordPressRequest, localVarRequestOptions, configuration);
|
|
14186
|
+
return {
|
|
14187
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14188
|
+
options: localVarRequestOptions,
|
|
14189
|
+
};
|
|
14190
|
+
}),
|
|
14191
|
+
/**
|
|
14192
|
+
* List available WordPress core updates for the specified installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14193
|
+
* @summary List available WordPress core updates
|
|
14194
|
+
* @param {string} username
|
|
14195
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14196
|
+
* @param {*} [options] Override http request option.
|
|
14197
|
+
* @throws {RequiredError}
|
|
14198
|
+
*/
|
|
14199
|
+
listAvailableWordPressCoreUpdatesV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
|
|
14200
|
+
// verify required parameter 'username' is not null or undefined
|
|
14201
|
+
(0, common_1.assertParamExists)('listAvailableWordPressCoreUpdatesV1', 'username', username);
|
|
14202
|
+
// verify required parameter 'software' is not null or undefined
|
|
14203
|
+
(0, common_1.assertParamExists)('listAvailableWordPressCoreUpdatesV1', 'software', software);
|
|
14204
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/updates`
|
|
14205
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
14206
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
14207
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14208
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14209
|
+
let baseOptions;
|
|
14210
|
+
if (configuration) {
|
|
14211
|
+
baseOptions = configuration.baseOptions;
|
|
14212
|
+
}
|
|
14213
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14214
|
+
const localVarHeaderParameter = {};
|
|
14215
|
+
const localVarQueryParameter = {};
|
|
14216
|
+
// authentication apiToken required
|
|
14217
|
+
// http bearer authentication required
|
|
14218
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14219
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14220
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14221
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14222
|
+
return {
|
|
14223
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14224
|
+
options: localVarRequestOptions,
|
|
14225
|
+
};
|
|
14226
|
+
}),
|
|
14227
|
+
/**
|
|
14228
|
+
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
14229
|
+
* @summary List WordPress installations
|
|
14230
|
+
* @param {string | null} [username] Filter by specific username
|
|
14231
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
14232
|
+
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
14233
|
+
* @param {*} [options] Override http request option.
|
|
14234
|
+
* @throws {RequiredError}
|
|
14235
|
+
*/
|
|
14236
|
+
listWordPressInstallationsV1: (username_1, domain_1, ownership_1, ...args_1) => __awaiter(this, [username_1, domain_1, ownership_1, ...args_1], void 0, function* (username, domain, ownership, options = {}) {
|
|
14237
|
+
const localVarPath = `/api/hosting/v1/wordpress/installations`;
|
|
14238
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14239
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14240
|
+
let baseOptions;
|
|
14241
|
+
if (configuration) {
|
|
14242
|
+
baseOptions = configuration.baseOptions;
|
|
14243
|
+
}
|
|
14244
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14245
|
+
const localVarHeaderParameter = {};
|
|
14246
|
+
const localVarQueryParameter = {};
|
|
14247
|
+
// authentication apiToken required
|
|
14248
|
+
// http bearer authentication required
|
|
14249
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14250
|
+
if (username !== undefined) {
|
|
14251
|
+
localVarQueryParameter['username'] = username;
|
|
14252
|
+
}
|
|
14253
|
+
if (domain !== undefined) {
|
|
14254
|
+
localVarQueryParameter['domain'] = domain;
|
|
14255
|
+
}
|
|
14256
|
+
if (ownership !== undefined) {
|
|
14257
|
+
localVarQueryParameter['ownership'] = ownership;
|
|
14258
|
+
}
|
|
14259
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14260
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14261
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14262
|
+
return {
|
|
14263
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14264
|
+
options: localVarRequestOptions,
|
|
14265
|
+
};
|
|
14266
|
+
}),
|
|
14267
|
+
/**
|
|
14268
|
+
* Show the WordPress core version for the specified installation, along with known vulnerabilities affecting it. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14269
|
+
* @summary Show WordPress core version
|
|
14270
|
+
* @param {string} username
|
|
14271
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14272
|
+
* @param {*} [options] Override http request option.
|
|
14273
|
+
* @throws {RequiredError}
|
|
14274
|
+
*/
|
|
14275
|
+
showWordPressCoreVersionV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
|
|
14276
|
+
// verify required parameter 'username' is not null or undefined
|
|
14277
|
+
(0, common_1.assertParamExists)('showWordPressCoreVersionV1', 'username', username);
|
|
14278
|
+
// verify required parameter 'software' is not null or undefined
|
|
14279
|
+
(0, common_1.assertParamExists)('showWordPressCoreVersionV1', 'software', software);
|
|
14280
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/version`
|
|
14281
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
14282
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
14283
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14284
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14285
|
+
let baseOptions;
|
|
14286
|
+
if (configuration) {
|
|
14287
|
+
baseOptions = configuration.baseOptions;
|
|
14288
|
+
}
|
|
14289
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14290
|
+
const localVarHeaderParameter = {};
|
|
14291
|
+
const localVarQueryParameter = {};
|
|
14292
|
+
// authentication apiToken required
|
|
14293
|
+
// http bearer authentication required
|
|
14294
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14295
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14296
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14297
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14298
|
+
return {
|
|
14299
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14300
|
+
options: localVarRequestOptions,
|
|
14301
|
+
};
|
|
14302
|
+
}),
|
|
14303
|
+
/**
|
|
14304
|
+
* Update the WordPress core for the specified installation (minor update or a specific version). Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the update job has been queued.
|
|
14305
|
+
* @summary Update WordPress core
|
|
14306
|
+
* @param {string} username
|
|
14307
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14308
|
+
* @param {WordPressV1InstallationsUpdateInstallationRequest} wordPressV1InstallationsUpdateInstallationRequest
|
|
14309
|
+
* @param {*} [options] Override http request option.
|
|
14310
|
+
* @throws {RequiredError}
|
|
14311
|
+
*/
|
|
14312
|
+
updateWordPressCoreV1: (username_1, software_1, wordPressV1InstallationsUpdateInstallationRequest_1, ...args_1) => __awaiter(this, [username_1, software_1, wordPressV1InstallationsUpdateInstallationRequest_1, ...args_1], void 0, function* (username, software, wordPressV1InstallationsUpdateInstallationRequest, options = {}) {
|
|
14313
|
+
// verify required parameter 'username' is not null or undefined
|
|
14314
|
+
(0, common_1.assertParamExists)('updateWordPressCoreV1', 'username', username);
|
|
14315
|
+
// verify required parameter 'software' is not null or undefined
|
|
14316
|
+
(0, common_1.assertParamExists)('updateWordPressCoreV1', 'software', software);
|
|
14317
|
+
// verify required parameter 'wordPressV1InstallationsUpdateInstallationRequest' is not null or undefined
|
|
14318
|
+
(0, common_1.assertParamExists)('updateWordPressCoreV1', 'wordPressV1InstallationsUpdateInstallationRequest', wordPressV1InstallationsUpdateInstallationRequest);
|
|
14319
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/update`
|
|
14320
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
14321
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
14322
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14323
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14324
|
+
let baseOptions;
|
|
14325
|
+
if (configuration) {
|
|
14326
|
+
baseOptions = configuration.baseOptions;
|
|
14327
|
+
}
|
|
14328
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
14329
|
+
const localVarHeaderParameter = {};
|
|
14330
|
+
const localVarQueryParameter = {};
|
|
14331
|
+
// authentication apiToken required
|
|
14332
|
+
// http bearer authentication required
|
|
14333
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14334
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14335
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14336
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14337
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14338
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1InstallationsUpdateInstallationRequest, localVarRequestOptions, configuration);
|
|
14339
|
+
return {
|
|
14340
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14341
|
+
options: localVarRequestOptions,
|
|
14342
|
+
};
|
|
14343
|
+
}),
|
|
14344
|
+
};
|
|
14345
|
+
};
|
|
14346
|
+
exports.WordPressInstallationsApiAxiosParamCreator = WordPressInstallationsApiAxiosParamCreator;
|
|
14347
|
+
/**
|
|
14348
|
+
* WordPressInstallationsApi - functional programming interface
|
|
14349
|
+
* @export
|
|
14350
|
+
*/
|
|
14351
|
+
const WordPressInstallationsApiFp = function (configuration) {
|
|
14352
|
+
const localVarAxiosParamCreator = (0, exports.WordPressInstallationsApiAxiosParamCreator)(configuration);
|
|
14353
|
+
return {
|
|
14354
|
+
/**
|
|
14355
|
+
* Check whether one or more WordPress installations are valid and working correctly. Detects broken installations caused by missing files, broken plugins, themes and similar issues. Provide the WordPress installation (software) identifiers in the body. They can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14356
|
+
* @summary Check if WordPress installations are valid
|
|
14357
|
+
* @param {string} username
|
|
14358
|
+
* @param {WordPressV1InstallationsCheckIsValidRequest} wordPressV1InstallationsCheckIsValidRequest
|
|
14359
|
+
* @param {*} [options] Override http request option.
|
|
14360
|
+
* @throws {RequiredError}
|
|
14361
|
+
*/
|
|
14362
|
+
checkIfWordPressInstallationsAreValidV1(username, wordPressV1InstallationsCheckIsValidRequest, options) {
|
|
14363
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14364
|
+
var _a, _b;
|
|
14365
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkIfWordPressInstallationsAreValidV1(username, wordPressV1InstallationsCheckIsValidRequest, options);
|
|
14366
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressInstallationsApi.checkIfWordPressInstallationsAreValidV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14367
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14368
|
+
});
|
|
14369
|
+
},
|
|
14370
|
+
/**
|
|
14371
|
+
* Delete the specified WordPress installation, with optional file and database removal. This removes all associated components including plugins, themes, staging websites and any other related data. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14372
|
+
* @summary Delete WordPress installation
|
|
14373
|
+
* @param {string} username
|
|
14374
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14375
|
+
* @param {WordPressV1InstallationsDeleteInstallationRequest} wordPressV1InstallationsDeleteInstallationRequest
|
|
14376
|
+
* @param {*} [options] Override http request option.
|
|
14377
|
+
* @throws {RequiredError}
|
|
14378
|
+
*/
|
|
14379
|
+
deleteWordPressInstallationV1(username, software, wordPressV1InstallationsDeleteInstallationRequest, options) {
|
|
14380
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14381
|
+
var _a, _b;
|
|
14382
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteWordPressInstallationV1(username, software, wordPressV1InstallationsDeleteInstallationRequest, options);
|
|
14383
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressInstallationsApi.deleteWordPressInstallationV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14384
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14385
|
+
});
|
|
14386
|
+
},
|
|
14387
|
+
/**
|
|
14388
|
+
* Trigger a background scan to detect WordPress installations for the account. This operation is asynchronous: a successful response only means the scan has been queued. Poll GET /api/hosting/v1/wordpress/installations to fetch the detected installations once the scan completes.
|
|
14389
|
+
* @summary Detect WordPress installations
|
|
14390
|
+
* @param {string} username
|
|
14391
|
+
* @param {*} [options] Override http request option.
|
|
14392
|
+
* @throws {RequiredError}
|
|
14393
|
+
*/
|
|
14394
|
+
detectWordPressInstallationsV1(username, options) {
|
|
14395
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14396
|
+
var _a, _b;
|
|
14397
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.detectWordPressInstallationsV1(username, options);
|
|
14398
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressInstallationsApi.detectWordPressInstallationsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14399
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14400
|
+
});
|
|
14401
|
+
},
|
|
14402
|
+
/**
|
|
14403
|
+
* Return a JWT token used to authenticate requests against the specified WordPress installation, including its MCP (Model Context Protocol) endpoint. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14404
|
+
* @summary Get installation JWT token
|
|
14405
|
+
* @param {string} username
|
|
14406
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14407
|
+
* @param {*} [options] Override http request option.
|
|
14408
|
+
* @throws {RequiredError}
|
|
14409
|
+
*/
|
|
14410
|
+
getInstallationJWTTokenV1(username, software, options) {
|
|
14411
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14412
|
+
var _a, _b;
|
|
14413
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInstallationJWTTokenV1(username, software, options);
|
|
14414
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressInstallationsApi.getInstallationJWTTokenV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14415
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14416
|
+
});
|
|
14417
|
+
},
|
|
14418
|
+
/**
|
|
14419
|
+
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
|
|
14420
|
+
* @summary Install WordPress
|
|
14421
|
+
* @param {string} username
|
|
14422
|
+
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
14423
|
+
* @param {*} [options] Override http request option.
|
|
14424
|
+
* @throws {RequiredError}
|
|
14425
|
+
*/
|
|
14426
|
+
installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options) {
|
|
14427
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14428
|
+
var _a, _b;
|
|
14429
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options);
|
|
14430
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressInstallationsApi.installWordPressV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14431
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14432
|
+
});
|
|
14433
|
+
},
|
|
14434
|
+
/**
|
|
14435
|
+
* List available WordPress core updates for the specified installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14436
|
+
* @summary List available WordPress core updates
|
|
14437
|
+
* @param {string} username
|
|
14438
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14439
|
+
* @param {*} [options] Override http request option.
|
|
14440
|
+
* @throws {RequiredError}
|
|
14441
|
+
*/
|
|
14442
|
+
listAvailableWordPressCoreUpdatesV1(username, software, options) {
|
|
14443
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14444
|
+
var _a, _b;
|
|
14445
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAvailableWordPressCoreUpdatesV1(username, software, options);
|
|
14446
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressInstallationsApi.listAvailableWordPressCoreUpdatesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14447
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14448
|
+
});
|
|
14449
|
+
},
|
|
14450
|
+
/**
|
|
14451
|
+
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
14452
|
+
* @summary List WordPress installations
|
|
14453
|
+
* @param {string | null} [username] Filter by specific username
|
|
14454
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
14455
|
+
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
14456
|
+
* @param {*} [options] Override http request option.
|
|
14457
|
+
* @throws {RequiredError}
|
|
14458
|
+
*/
|
|
14459
|
+
listWordPressInstallationsV1(username, domain, ownership, options) {
|
|
14460
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14461
|
+
var _a, _b;
|
|
14462
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWordPressInstallationsV1(username, domain, ownership, options);
|
|
14463
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressInstallationsApi.listWordPressInstallationsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14464
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14465
|
+
});
|
|
14466
|
+
},
|
|
14467
|
+
/**
|
|
14468
|
+
* Show the WordPress core version for the specified installation, along with known vulnerabilities affecting it. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14469
|
+
* @summary Show WordPress core version
|
|
14470
|
+
* @param {string} username
|
|
14471
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14472
|
+
* @param {*} [options] Override http request option.
|
|
14473
|
+
* @throws {RequiredError}
|
|
14474
|
+
*/
|
|
14475
|
+
showWordPressCoreVersionV1(username, software, options) {
|
|
14476
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14477
|
+
var _a, _b;
|
|
14478
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.showWordPressCoreVersionV1(username, software, options);
|
|
14479
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressInstallationsApi.showWordPressCoreVersionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14480
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14481
|
+
});
|
|
14482
|
+
},
|
|
14483
|
+
/**
|
|
14484
|
+
* Update the WordPress core for the specified installation (minor update or a specific version). Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the update job has been queued.
|
|
14485
|
+
* @summary Update WordPress core
|
|
14486
|
+
* @param {string} username
|
|
14487
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14488
|
+
* @param {WordPressV1InstallationsUpdateInstallationRequest} wordPressV1InstallationsUpdateInstallationRequest
|
|
14489
|
+
* @param {*} [options] Override http request option.
|
|
14490
|
+
* @throws {RequiredError}
|
|
14491
|
+
*/
|
|
14492
|
+
updateWordPressCoreV1(username, software, wordPressV1InstallationsUpdateInstallationRequest, options) {
|
|
14493
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14494
|
+
var _a, _b;
|
|
14495
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateWordPressCoreV1(username, software, wordPressV1InstallationsUpdateInstallationRequest, options);
|
|
14496
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressInstallationsApi.updateWordPressCoreV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14497
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14498
|
+
});
|
|
14499
|
+
},
|
|
14500
|
+
};
|
|
14501
|
+
};
|
|
14502
|
+
exports.WordPressInstallationsApiFp = WordPressInstallationsApiFp;
|
|
14503
|
+
/**
|
|
14504
|
+
* WordPressInstallationsApi - factory interface
|
|
14505
|
+
* @export
|
|
14506
|
+
*/
|
|
14507
|
+
const WordPressInstallationsApiFactory = function (configuration, basePath, axios) {
|
|
14508
|
+
const localVarFp = (0, exports.WordPressInstallationsApiFp)(configuration);
|
|
14509
|
+
return {
|
|
14510
|
+
/**
|
|
14511
|
+
* Check whether one or more WordPress installations are valid and working correctly. Detects broken installations caused by missing files, broken plugins, themes and similar issues. Provide the WordPress installation (software) identifiers in the body. They can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14512
|
+
* @summary Check if WordPress installations are valid
|
|
14513
|
+
* @param {string} username
|
|
14514
|
+
* @param {WordPressV1InstallationsCheckIsValidRequest} wordPressV1InstallationsCheckIsValidRequest
|
|
14515
|
+
* @param {*} [options] Override http request option.
|
|
14516
|
+
* @throws {RequiredError}
|
|
14517
|
+
*/
|
|
14518
|
+
checkIfWordPressInstallationsAreValidV1(username, wordPressV1InstallationsCheckIsValidRequest, options) {
|
|
14519
|
+
return localVarFp.checkIfWordPressInstallationsAreValidV1(username, wordPressV1InstallationsCheckIsValidRequest, options).then((request) => request(axios, basePath));
|
|
14520
|
+
},
|
|
14521
|
+
/**
|
|
14522
|
+
* Delete the specified WordPress installation, with optional file and database removal. This removes all associated components including plugins, themes, staging websites and any other related data. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14523
|
+
* @summary Delete WordPress installation
|
|
14524
|
+
* @param {string} username
|
|
14525
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14526
|
+
* @param {WordPressV1InstallationsDeleteInstallationRequest} wordPressV1InstallationsDeleteInstallationRequest
|
|
14527
|
+
* @param {*} [options] Override http request option.
|
|
14528
|
+
* @throws {RequiredError}
|
|
14529
|
+
*/
|
|
14530
|
+
deleteWordPressInstallationV1(username, software, wordPressV1InstallationsDeleteInstallationRequest, options) {
|
|
14531
|
+
return localVarFp.deleteWordPressInstallationV1(username, software, wordPressV1InstallationsDeleteInstallationRequest, options).then((request) => request(axios, basePath));
|
|
14532
|
+
},
|
|
14533
|
+
/**
|
|
14534
|
+
* Trigger a background scan to detect WordPress installations for the account. This operation is asynchronous: a successful response only means the scan has been queued. Poll GET /api/hosting/v1/wordpress/installations to fetch the detected installations once the scan completes.
|
|
14535
|
+
* @summary Detect WordPress installations
|
|
14536
|
+
* @param {string} username
|
|
14537
|
+
* @param {*} [options] Override http request option.
|
|
14538
|
+
* @throws {RequiredError}
|
|
14539
|
+
*/
|
|
14540
|
+
detectWordPressInstallationsV1(username, options) {
|
|
14541
|
+
return localVarFp.detectWordPressInstallationsV1(username, options).then((request) => request(axios, basePath));
|
|
14542
|
+
},
|
|
14543
|
+
/**
|
|
14544
|
+
* Return a JWT token used to authenticate requests against the specified WordPress installation, including its MCP (Model Context Protocol) endpoint. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14545
|
+
* @summary Get installation JWT token
|
|
14546
|
+
* @param {string} username
|
|
14547
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14548
|
+
* @param {*} [options] Override http request option.
|
|
14549
|
+
* @throws {RequiredError}
|
|
14550
|
+
*/
|
|
14551
|
+
getInstallationJWTTokenV1(username, software, options) {
|
|
14552
|
+
return localVarFp.getInstallationJWTTokenV1(username, software, options).then((request) => request(axios, basePath));
|
|
14553
|
+
},
|
|
14554
|
+
/**
|
|
14555
|
+
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
|
|
14556
|
+
* @summary Install WordPress
|
|
14557
|
+
* @param {string} username
|
|
14558
|
+
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
14559
|
+
* @param {*} [options] Override http request option.
|
|
14560
|
+
* @throws {RequiredError}
|
|
14561
|
+
*/
|
|
14562
|
+
installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options) {
|
|
14563
|
+
return localVarFp.installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options).then((request) => request(axios, basePath));
|
|
14564
|
+
},
|
|
14565
|
+
/**
|
|
14566
|
+
* List available WordPress core updates for the specified installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14567
|
+
* @summary List available WordPress core updates
|
|
14568
|
+
* @param {string} username
|
|
14569
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14570
|
+
* @param {*} [options] Override http request option.
|
|
14571
|
+
* @throws {RequiredError}
|
|
14572
|
+
*/
|
|
14573
|
+
listAvailableWordPressCoreUpdatesV1(username, software, options) {
|
|
14574
|
+
return localVarFp.listAvailableWordPressCoreUpdatesV1(username, software, options).then((request) => request(axios, basePath));
|
|
14575
|
+
},
|
|
14576
|
+
/**
|
|
14577
|
+
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
14578
|
+
* @summary List WordPress installations
|
|
14579
|
+
* @param {string | null} [username] Filter by specific username
|
|
14580
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
14581
|
+
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
14582
|
+
* @param {*} [options] Override http request option.
|
|
14583
|
+
* @throws {RequiredError}
|
|
14584
|
+
*/
|
|
14585
|
+
listWordPressInstallationsV1(username, domain, ownership, options) {
|
|
14586
|
+
return localVarFp.listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(axios, basePath));
|
|
14587
|
+
},
|
|
14588
|
+
/**
|
|
14589
|
+
* Show the WordPress core version for the specified installation, along with known vulnerabilities affecting it. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14590
|
+
* @summary Show WordPress core version
|
|
14591
|
+
* @param {string} username
|
|
14592
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14593
|
+
* @param {*} [options] Override http request option.
|
|
14594
|
+
* @throws {RequiredError}
|
|
14595
|
+
*/
|
|
14596
|
+
showWordPressCoreVersionV1(username, software, options) {
|
|
14597
|
+
return localVarFp.showWordPressCoreVersionV1(username, software, options).then((request) => request(axios, basePath));
|
|
14598
|
+
},
|
|
14599
|
+
/**
|
|
14600
|
+
* Update the WordPress core for the specified installation (minor update or a specific version). Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the update job has been queued.
|
|
14601
|
+
* @summary Update WordPress core
|
|
14602
|
+
* @param {string} username
|
|
14603
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14604
|
+
* @param {WordPressV1InstallationsUpdateInstallationRequest} wordPressV1InstallationsUpdateInstallationRequest
|
|
14605
|
+
* @param {*} [options] Override http request option.
|
|
14606
|
+
* @throws {RequiredError}
|
|
14607
|
+
*/
|
|
14608
|
+
updateWordPressCoreV1(username, software, wordPressV1InstallationsUpdateInstallationRequest, options) {
|
|
14609
|
+
return localVarFp.updateWordPressCoreV1(username, software, wordPressV1InstallationsUpdateInstallationRequest, options).then((request) => request(axios, basePath));
|
|
14610
|
+
},
|
|
14611
|
+
};
|
|
14612
|
+
};
|
|
14613
|
+
exports.WordPressInstallationsApiFactory = WordPressInstallationsApiFactory;
|
|
14614
|
+
/**
|
|
14615
|
+
* WordPressInstallationsApi - object-oriented interface
|
|
14616
|
+
* @export
|
|
14617
|
+
* @class WordPressInstallationsApi
|
|
14618
|
+
* @extends {BaseAPI}
|
|
14619
|
+
*/
|
|
14620
|
+
class WordPressInstallationsApi extends base_1.BaseAPI {
|
|
14621
|
+
/**
|
|
14622
|
+
* Check whether one or more WordPress installations are valid and working correctly. Detects broken installations caused by missing files, broken plugins, themes and similar issues. Provide the WordPress installation (software) identifiers in the body. They can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14623
|
+
* @summary Check if WordPress installations are valid
|
|
14624
|
+
* @param {string} username
|
|
14625
|
+
* @param {WordPressV1InstallationsCheckIsValidRequest} wordPressV1InstallationsCheckIsValidRequest
|
|
14626
|
+
* @param {*} [options] Override http request option.
|
|
14627
|
+
* @throws {RequiredError}
|
|
14628
|
+
* @memberof WordPressInstallationsApi
|
|
14629
|
+
*/
|
|
14630
|
+
checkIfWordPressInstallationsAreValidV1(username, wordPressV1InstallationsCheckIsValidRequest, options) {
|
|
14631
|
+
return (0, exports.WordPressInstallationsApiFp)(this.configuration).checkIfWordPressInstallationsAreValidV1(username, wordPressV1InstallationsCheckIsValidRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14632
|
+
}
|
|
14633
|
+
/**
|
|
14634
|
+
* Delete the specified WordPress installation, with optional file and database removal. This removes all associated components including plugins, themes, staging websites and any other related data. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14635
|
+
* @summary Delete WordPress installation
|
|
14636
|
+
* @param {string} username
|
|
14637
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14638
|
+
* @param {WordPressV1InstallationsDeleteInstallationRequest} wordPressV1InstallationsDeleteInstallationRequest
|
|
14639
|
+
* @param {*} [options] Override http request option.
|
|
14640
|
+
* @throws {RequiredError}
|
|
14641
|
+
* @memberof WordPressInstallationsApi
|
|
14642
|
+
*/
|
|
14643
|
+
deleteWordPressInstallationV1(username, software, wordPressV1InstallationsDeleteInstallationRequest, options) {
|
|
14644
|
+
return (0, exports.WordPressInstallationsApiFp)(this.configuration).deleteWordPressInstallationV1(username, software, wordPressV1InstallationsDeleteInstallationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14645
|
+
}
|
|
14646
|
+
/**
|
|
14647
|
+
* Trigger a background scan to detect WordPress installations for the account. This operation is asynchronous: a successful response only means the scan has been queued. Poll GET /api/hosting/v1/wordpress/installations to fetch the detected installations once the scan completes.
|
|
14648
|
+
* @summary Detect WordPress installations
|
|
14649
|
+
* @param {string} username
|
|
14650
|
+
* @param {*} [options] Override http request option.
|
|
14651
|
+
* @throws {RequiredError}
|
|
14652
|
+
* @memberof WordPressInstallationsApi
|
|
14653
|
+
*/
|
|
14654
|
+
detectWordPressInstallationsV1(username, options) {
|
|
14655
|
+
return (0, exports.WordPressInstallationsApiFp)(this.configuration).detectWordPressInstallationsV1(username, options).then((request) => request(this.axios, this.basePath));
|
|
14656
|
+
}
|
|
14657
|
+
/**
|
|
14658
|
+
* Return a JWT token used to authenticate requests against the specified WordPress installation, including its MCP (Model Context Protocol) endpoint. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14659
|
+
* @summary Get installation JWT token
|
|
14660
|
+
* @param {string} username
|
|
14661
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14662
|
+
* @param {*} [options] Override http request option.
|
|
14663
|
+
* @throws {RequiredError}
|
|
14664
|
+
* @memberof WordPressInstallationsApi
|
|
14665
|
+
*/
|
|
14666
|
+
getInstallationJWTTokenV1(username, software, options) {
|
|
14667
|
+
return (0, exports.WordPressInstallationsApiFp)(this.configuration).getInstallationJWTTokenV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
14668
|
+
}
|
|
14669
|
+
/**
|
|
14670
|
+
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready.
|
|
14671
|
+
* @summary Install WordPress
|
|
14672
|
+
* @param {string} username
|
|
14673
|
+
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
14674
|
+
* @param {*} [options] Override http request option.
|
|
14675
|
+
* @throws {RequiredError}
|
|
14676
|
+
* @memberof WordPressInstallationsApi
|
|
14677
|
+
*/
|
|
14678
|
+
installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options) {
|
|
14679
|
+
return (0, exports.WordPressInstallationsApiFp)(this.configuration).installWordPressV1(username, wordPressV1InstallationsInstallWordPressRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14680
|
+
}
|
|
14681
|
+
/**
|
|
14682
|
+
* List available WordPress core updates for the specified installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14683
|
+
* @summary List available WordPress core updates
|
|
14684
|
+
* @param {string} username
|
|
14685
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14686
|
+
* @param {*} [options] Override http request option.
|
|
14687
|
+
* @throws {RequiredError}
|
|
14688
|
+
* @memberof WordPressInstallationsApi
|
|
14689
|
+
*/
|
|
14690
|
+
listAvailableWordPressCoreUpdatesV1(username, software, options) {
|
|
14691
|
+
return (0, exports.WordPressInstallationsApiFp)(this.configuration).listAvailableWordPressCoreUpdatesV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
14692
|
+
}
|
|
14693
|
+
/**
|
|
14694
|
+
* List WordPress installations accessible to the authenticated client. Use this endpoint to discover existing WordPress installations and to poll for installation status after calling the install endpoint. When a newly requested installation appears in this list, WordPress is ready. Filter by username and domain to narrow results to a specific website. Each installation includes a `valid` flag and, when invalid, a `validationError` describing why.
|
|
14695
|
+
* @summary List WordPress installations
|
|
14696
|
+
* @param {string | null} [username] Filter by specific username
|
|
14697
|
+
* @param {string | null} [domain] Filter by domain name (exact match)
|
|
14698
|
+
* @param {ListWordPressInstallationsV1OwnershipEnum} [ownership] Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations.
|
|
14699
|
+
* @param {*} [options] Override http request option.
|
|
14700
|
+
* @throws {RequiredError}
|
|
14701
|
+
* @memberof WordPressInstallationsApi
|
|
14702
|
+
*/
|
|
14703
|
+
listWordPressInstallationsV1(username, domain, ownership, options) {
|
|
14704
|
+
return (0, exports.WordPressInstallationsApiFp)(this.configuration).listWordPressInstallationsV1(username, domain, ownership, options).then((request) => request(this.axios, this.basePath));
|
|
14705
|
+
}
|
|
14706
|
+
/**
|
|
14707
|
+
* Show the WordPress core version for the specified installation, along with known vulnerabilities affecting it. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14708
|
+
* @summary Show WordPress core version
|
|
14709
|
+
* @param {string} username
|
|
14710
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14711
|
+
* @param {*} [options] Override http request option.
|
|
14712
|
+
* @throws {RequiredError}
|
|
14713
|
+
* @memberof WordPressInstallationsApi
|
|
14714
|
+
*/
|
|
14715
|
+
showWordPressCoreVersionV1(username, software, options) {
|
|
14716
|
+
return (0, exports.WordPressInstallationsApiFp)(this.configuration).showWordPressCoreVersionV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
14717
|
+
}
|
|
14718
|
+
/**
|
|
14719
|
+
* Update the WordPress core for the specified installation (minor update or a specific version). Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the update job has been queued.
|
|
14720
|
+
* @summary Update WordPress core
|
|
14721
|
+
* @param {string} username
|
|
14722
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14723
|
+
* @param {WordPressV1InstallationsUpdateInstallationRequest} wordPressV1InstallationsUpdateInstallationRequest
|
|
14724
|
+
* @param {*} [options] Override http request option.
|
|
14725
|
+
* @throws {RequiredError}
|
|
14726
|
+
* @memberof WordPressInstallationsApi
|
|
14727
|
+
*/
|
|
14728
|
+
updateWordPressCoreV1(username, software, wordPressV1InstallationsUpdateInstallationRequest, options) {
|
|
14729
|
+
return (0, exports.WordPressInstallationsApiFp)(this.configuration).updateWordPressCoreV1(username, software, wordPressV1InstallationsUpdateInstallationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14730
|
+
}
|
|
14731
|
+
}
|
|
14732
|
+
exports.WordPressInstallationsApi = WordPressInstallationsApi;
|
|
14733
|
+
/**
|
|
14734
|
+
* @export
|
|
14735
|
+
*/
|
|
14736
|
+
exports.ListWordPressInstallationsV1OwnershipEnum = {
|
|
14737
|
+
Owned: 'owned',
|
|
14738
|
+
Managed: 'managed',
|
|
14739
|
+
All: 'all'
|
|
14740
|
+
};
|
|
14741
|
+
/**
|
|
14742
|
+
* WordPressLiteSpeedCacheApi - axios parameter creator
|
|
14743
|
+
* @export
|
|
14744
|
+
*/
|
|
14745
|
+
const WordPressLiteSpeedCacheApiAxiosParamCreator = function (configuration) {
|
|
14746
|
+
return {
|
|
14747
|
+
/**
|
|
14748
|
+
* Purge the LiteSpeed Cache for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14749
|
+
* @summary Purge LiteSpeed Cache
|
|
14750
|
+
* @param {string} username
|
|
14751
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14752
|
+
* @param {*} [options] Override http request option.
|
|
14753
|
+
* @throws {RequiredError}
|
|
14754
|
+
*/
|
|
14755
|
+
purgeLiteSpeedCacheV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
|
|
14756
|
+
// verify required parameter 'username' is not null or undefined
|
|
14757
|
+
(0, common_1.assertParamExists)('purgeLiteSpeedCacheV1', 'username', username);
|
|
14758
|
+
// verify required parameter 'software' is not null or undefined
|
|
14759
|
+
(0, common_1.assertParamExists)('purgeLiteSpeedCacheV1', 'software', software);
|
|
14760
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/litespeed-cache/purge`
|
|
14761
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
14762
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
14763
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14764
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14765
|
+
let baseOptions;
|
|
14766
|
+
if (configuration) {
|
|
14767
|
+
baseOptions = configuration.baseOptions;
|
|
14768
|
+
}
|
|
14769
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
14770
|
+
const localVarHeaderParameter = {};
|
|
14771
|
+
const localVarQueryParameter = {};
|
|
14772
|
+
// authentication apiToken required
|
|
14773
|
+
// http bearer authentication required
|
|
14774
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14775
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14776
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14777
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14778
|
+
return {
|
|
14779
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14780
|
+
options: localVarRequestOptions,
|
|
14781
|
+
};
|
|
14782
|
+
}),
|
|
14783
|
+
/**
|
|
14784
|
+
* Show the LiteSpeed Cache status for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14785
|
+
* @summary Show LiteSpeed Cache status
|
|
14786
|
+
* @param {string} username
|
|
14787
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14788
|
+
* @param {*} [options] Override http request option.
|
|
14789
|
+
* @throws {RequiredError}
|
|
14790
|
+
*/
|
|
14791
|
+
showLiteSpeedCacheStatusV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
|
|
14792
|
+
// verify required parameter 'username' is not null or undefined
|
|
14793
|
+
(0, common_1.assertParamExists)('showLiteSpeedCacheStatusV1', 'username', username);
|
|
14794
|
+
// verify required parameter 'software' is not null or undefined
|
|
14795
|
+
(0, common_1.assertParamExists)('showLiteSpeedCacheStatusV1', 'software', software);
|
|
14796
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/litespeed-cache/status`
|
|
14797
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
14798
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
14799
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14800
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14801
|
+
let baseOptions;
|
|
14802
|
+
if (configuration) {
|
|
14803
|
+
baseOptions = configuration.baseOptions;
|
|
14804
|
+
}
|
|
14805
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14806
|
+
const localVarHeaderParameter = {};
|
|
14807
|
+
const localVarQueryParameter = {};
|
|
14808
|
+
// authentication apiToken required
|
|
14809
|
+
// http bearer authentication required
|
|
14810
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14811
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14812
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14813
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14814
|
+
return {
|
|
14815
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14816
|
+
options: localVarRequestOptions,
|
|
14817
|
+
};
|
|
14818
|
+
}),
|
|
14819
|
+
};
|
|
14820
|
+
};
|
|
14821
|
+
exports.WordPressLiteSpeedCacheApiAxiosParamCreator = WordPressLiteSpeedCacheApiAxiosParamCreator;
|
|
14822
|
+
/**
|
|
14823
|
+
* WordPressLiteSpeedCacheApi - functional programming interface
|
|
14824
|
+
* @export
|
|
14825
|
+
*/
|
|
14826
|
+
const WordPressLiteSpeedCacheApiFp = function (configuration) {
|
|
14827
|
+
const localVarAxiosParamCreator = (0, exports.WordPressLiteSpeedCacheApiAxiosParamCreator)(configuration);
|
|
14828
|
+
return {
|
|
14829
|
+
/**
|
|
14830
|
+
* Purge the LiteSpeed Cache for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14831
|
+
* @summary Purge LiteSpeed Cache
|
|
14832
|
+
* @param {string} username
|
|
14833
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14834
|
+
* @param {*} [options] Override http request option.
|
|
14835
|
+
* @throws {RequiredError}
|
|
14836
|
+
*/
|
|
14837
|
+
purgeLiteSpeedCacheV1(username, software, options) {
|
|
14838
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14839
|
+
var _a, _b;
|
|
14840
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.purgeLiteSpeedCacheV1(username, software, options);
|
|
14841
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressLiteSpeedCacheApi.purgeLiteSpeedCacheV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14842
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14843
|
+
});
|
|
14844
|
+
},
|
|
14845
|
+
/**
|
|
14846
|
+
* Show the LiteSpeed Cache status for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14847
|
+
* @summary Show LiteSpeed Cache status
|
|
14848
|
+
* @param {string} username
|
|
14849
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14850
|
+
* @param {*} [options] Override http request option.
|
|
14851
|
+
* @throws {RequiredError}
|
|
14852
|
+
*/
|
|
14853
|
+
showLiteSpeedCacheStatusV1(username, software, options) {
|
|
14854
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14855
|
+
var _a, _b;
|
|
14856
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.showLiteSpeedCacheStatusV1(username, software, options);
|
|
14857
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressLiteSpeedCacheApi.showLiteSpeedCacheStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14858
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14859
|
+
});
|
|
14860
|
+
},
|
|
14861
|
+
};
|
|
14862
|
+
};
|
|
14863
|
+
exports.WordPressLiteSpeedCacheApiFp = WordPressLiteSpeedCacheApiFp;
|
|
14864
|
+
/**
|
|
14865
|
+
* WordPressLiteSpeedCacheApi - factory interface
|
|
14866
|
+
* @export
|
|
14867
|
+
*/
|
|
14868
|
+
const WordPressLiteSpeedCacheApiFactory = function (configuration, basePath, axios) {
|
|
14869
|
+
const localVarFp = (0, exports.WordPressLiteSpeedCacheApiFp)(configuration);
|
|
14870
|
+
return {
|
|
14871
|
+
/**
|
|
14872
|
+
* Purge the LiteSpeed Cache for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14873
|
+
* @summary Purge LiteSpeed Cache
|
|
14874
|
+
* @param {string} username
|
|
14875
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14876
|
+
* @param {*} [options] Override http request option.
|
|
14877
|
+
* @throws {RequiredError}
|
|
14878
|
+
*/
|
|
14879
|
+
purgeLiteSpeedCacheV1(username, software, options) {
|
|
14880
|
+
return localVarFp.purgeLiteSpeedCacheV1(username, software, options).then((request) => request(axios, basePath));
|
|
14881
|
+
},
|
|
14882
|
+
/**
|
|
14883
|
+
* Show the LiteSpeed Cache status for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14884
|
+
* @summary Show LiteSpeed Cache status
|
|
14885
|
+
* @param {string} username
|
|
14886
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14887
|
+
* @param {*} [options] Override http request option.
|
|
14888
|
+
* @throws {RequiredError}
|
|
14889
|
+
*/
|
|
14890
|
+
showLiteSpeedCacheStatusV1(username, software, options) {
|
|
14891
|
+
return localVarFp.showLiteSpeedCacheStatusV1(username, software, options).then((request) => request(axios, basePath));
|
|
14892
|
+
},
|
|
14893
|
+
};
|
|
14894
|
+
};
|
|
14895
|
+
exports.WordPressLiteSpeedCacheApiFactory = WordPressLiteSpeedCacheApiFactory;
|
|
14896
|
+
/**
|
|
14897
|
+
* WordPressLiteSpeedCacheApi - object-oriented interface
|
|
14898
|
+
* @export
|
|
14899
|
+
* @class WordPressLiteSpeedCacheApi
|
|
14900
|
+
* @extends {BaseAPI}
|
|
14901
|
+
*/
|
|
14902
|
+
class WordPressLiteSpeedCacheApi extends base_1.BaseAPI {
|
|
14903
|
+
/**
|
|
14904
|
+
* Purge the LiteSpeed Cache for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14905
|
+
* @summary Purge LiteSpeed Cache
|
|
14906
|
+
* @param {string} username
|
|
14907
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14908
|
+
* @param {*} [options] Override http request option.
|
|
14909
|
+
* @throws {RequiredError}
|
|
14910
|
+
* @memberof WordPressLiteSpeedCacheApi
|
|
14911
|
+
*/
|
|
14912
|
+
purgeLiteSpeedCacheV1(username, software, options) {
|
|
14913
|
+
return (0, exports.WordPressLiteSpeedCacheApiFp)(this.configuration).purgeLiteSpeedCacheV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
14914
|
+
}
|
|
14915
|
+
/**
|
|
14916
|
+
* Show the LiteSpeed Cache status for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14917
|
+
* @summary Show LiteSpeed Cache status
|
|
14918
|
+
* @param {string} username
|
|
14919
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14920
|
+
* @param {*} [options] Override http request option.
|
|
14921
|
+
* @throws {RequiredError}
|
|
14922
|
+
* @memberof WordPressLiteSpeedCacheApi
|
|
14923
|
+
*/
|
|
14924
|
+
showLiteSpeedCacheStatusV1(username, software, options) {
|
|
14925
|
+
return (0, exports.WordPressLiteSpeedCacheApiFp)(this.configuration).showLiteSpeedCacheStatusV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
14926
|
+
}
|
|
14927
|
+
}
|
|
14928
|
+
exports.WordPressLiteSpeedCacheApi = WordPressLiteSpeedCacheApi;
|
|
14929
|
+
/**
|
|
14930
|
+
* WordPressLoginApi - axios parameter creator
|
|
14931
|
+
* @export
|
|
14932
|
+
*/
|
|
14933
|
+
const WordPressLoginApiAxiosParamCreator = function (configuration) {
|
|
14934
|
+
return {
|
|
14935
|
+
/**
|
|
14936
|
+
* Create temporary auto-login links for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14937
|
+
* @summary Create login links
|
|
14938
|
+
* @param {string} username
|
|
14939
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14940
|
+
* @param {*} [options] Override http request option.
|
|
14941
|
+
* @throws {RequiredError}
|
|
14942
|
+
*/
|
|
14943
|
+
createLoginLinksV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
|
|
14944
|
+
// verify required parameter 'username' is not null or undefined
|
|
14945
|
+
(0, common_1.assertParamExists)('createLoginLinksV1', 'username', username);
|
|
14946
|
+
// verify required parameter 'software' is not null or undefined
|
|
14947
|
+
(0, common_1.assertParamExists)('createLoginLinksV1', 'software', software);
|
|
14948
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/login/links`
|
|
14949
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
14950
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
14951
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14952
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14953
|
+
let baseOptions;
|
|
14954
|
+
if (configuration) {
|
|
14955
|
+
baseOptions = configuration.baseOptions;
|
|
14956
|
+
}
|
|
14957
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
14958
|
+
const localVarHeaderParameter = {};
|
|
14959
|
+
const localVarQueryParameter = {};
|
|
14960
|
+
// authentication apiToken required
|
|
14961
|
+
// http bearer authentication required
|
|
14962
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14963
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14964
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14965
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14966
|
+
return {
|
|
14967
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14968
|
+
options: localVarRequestOptions,
|
|
14969
|
+
};
|
|
14970
|
+
}),
|
|
14971
|
+
};
|
|
14972
|
+
};
|
|
14973
|
+
exports.WordPressLoginApiAxiosParamCreator = WordPressLoginApiAxiosParamCreator;
|
|
14974
|
+
/**
|
|
14975
|
+
* WordPressLoginApi - functional programming interface
|
|
14976
|
+
* @export
|
|
14977
|
+
*/
|
|
14978
|
+
const WordPressLoginApiFp = function (configuration) {
|
|
14979
|
+
const localVarAxiosParamCreator = (0, exports.WordPressLoginApiAxiosParamCreator)(configuration);
|
|
14980
|
+
return {
|
|
14981
|
+
/**
|
|
14982
|
+
* Create temporary auto-login links for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14983
|
+
* @summary Create login links
|
|
14984
|
+
* @param {string} username
|
|
14985
|
+
* @param {string} software WordPress installation (software) identifier
|
|
14986
|
+
* @param {*} [options] Override http request option.
|
|
14987
|
+
* @throws {RequiredError}
|
|
14988
|
+
*/
|
|
14989
|
+
createLoginLinksV1(username, software, options) {
|
|
14990
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14991
|
+
var _a, _b;
|
|
14992
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createLoginLinksV1(username, software, options);
|
|
14993
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressLoginApi.createLoginLinksV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14994
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14995
|
+
});
|
|
14996
|
+
},
|
|
14997
|
+
};
|
|
14998
|
+
};
|
|
14999
|
+
exports.WordPressLoginApiFp = WordPressLoginApiFp;
|
|
15000
|
+
/**
|
|
15001
|
+
* WordPressLoginApi - factory interface
|
|
15002
|
+
* @export
|
|
15003
|
+
*/
|
|
15004
|
+
const WordPressLoginApiFactory = function (configuration, basePath, axios) {
|
|
15005
|
+
const localVarFp = (0, exports.WordPressLoginApiFp)(configuration);
|
|
15006
|
+
return {
|
|
15007
|
+
/**
|
|
15008
|
+
* Create temporary auto-login links for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
15009
|
+
* @summary Create login links
|
|
15010
|
+
* @param {string} username
|
|
15011
|
+
* @param {string} software WordPress installation (software) identifier
|
|
15012
|
+
* @param {*} [options] Override http request option.
|
|
15013
|
+
* @throws {RequiredError}
|
|
15014
|
+
*/
|
|
15015
|
+
createLoginLinksV1(username, software, options) {
|
|
15016
|
+
return localVarFp.createLoginLinksV1(username, software, options).then((request) => request(axios, basePath));
|
|
15017
|
+
},
|
|
15018
|
+
};
|
|
15019
|
+
};
|
|
15020
|
+
exports.WordPressLoginApiFactory = WordPressLoginApiFactory;
|
|
15021
|
+
/**
|
|
15022
|
+
* WordPressLoginApi - object-oriented interface
|
|
15023
|
+
* @export
|
|
15024
|
+
* @class WordPressLoginApi
|
|
15025
|
+
* @extends {BaseAPI}
|
|
15026
|
+
*/
|
|
15027
|
+
class WordPressLoginApi extends base_1.BaseAPI {
|
|
15028
|
+
/**
|
|
15029
|
+
* Create temporary auto-login links for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
15030
|
+
* @summary Create login links
|
|
15031
|
+
* @param {string} username
|
|
15032
|
+
* @param {string} software WordPress installation (software) identifier
|
|
15033
|
+
* @param {*} [options] Override http request option.
|
|
15034
|
+
* @throws {RequiredError}
|
|
15035
|
+
* @memberof WordPressLoginApi
|
|
13327
15036
|
*/
|
|
13328
|
-
|
|
13329
|
-
return (0, exports.
|
|
15037
|
+
createLoginLinksV1(username, software, options) {
|
|
15038
|
+
return (0, exports.WordPressLoginApiFp)(this.configuration).createLoginLinksV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
13330
15039
|
}
|
|
15040
|
+
}
|
|
15041
|
+
exports.WordPressLoginApi = WordPressLoginApi;
|
|
15042
|
+
/**
|
|
15043
|
+
* WordPressMaintenanceApi - axios parameter creator
|
|
15044
|
+
* @export
|
|
15045
|
+
*/
|
|
15046
|
+
const WordPressMaintenanceApiAxiosParamCreator = function (configuration) {
|
|
15047
|
+
return {
|
|
15048
|
+
/**
|
|
15049
|
+
* Show the maintenance mode status for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
15050
|
+
* @summary Show maintenance status
|
|
15051
|
+
* @param {string} username
|
|
15052
|
+
* @param {string} software WordPress installation (software) identifier
|
|
15053
|
+
* @param {*} [options] Override http request option.
|
|
15054
|
+
* @throws {RequiredError}
|
|
15055
|
+
*/
|
|
15056
|
+
showMaintenanceStatusV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
|
|
15057
|
+
// verify required parameter 'username' is not null or undefined
|
|
15058
|
+
(0, common_1.assertParamExists)('showMaintenanceStatusV1', 'username', username);
|
|
15059
|
+
// verify required parameter 'software' is not null or undefined
|
|
15060
|
+
(0, common_1.assertParamExists)('showMaintenanceStatusV1', 'software', software);
|
|
15061
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/maintenance/status`
|
|
15062
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
15063
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
15064
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15065
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15066
|
+
let baseOptions;
|
|
15067
|
+
if (configuration) {
|
|
15068
|
+
baseOptions = configuration.baseOptions;
|
|
15069
|
+
}
|
|
15070
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
15071
|
+
const localVarHeaderParameter = {};
|
|
15072
|
+
const localVarQueryParameter = {};
|
|
15073
|
+
// authentication apiToken required
|
|
15074
|
+
// http bearer authentication required
|
|
15075
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
15076
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
15077
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15078
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15079
|
+
return {
|
|
15080
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
15081
|
+
options: localVarRequestOptions,
|
|
15082
|
+
};
|
|
15083
|
+
}),
|
|
15084
|
+
/**
|
|
15085
|
+
* Enable or disable maintenance mode for the specified WordPress installation, based on the `enabled` flag. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
15086
|
+
* @summary Toggle maintenance mode
|
|
15087
|
+
* @param {string} username
|
|
15088
|
+
* @param {string} software WordPress installation (software) identifier
|
|
15089
|
+
* @param {WordPressV1MaintenanceToggleMaintenanceRequest} wordPressV1MaintenanceToggleMaintenanceRequest
|
|
15090
|
+
* @param {*} [options] Override http request option.
|
|
15091
|
+
* @throws {RequiredError}
|
|
15092
|
+
*/
|
|
15093
|
+
toggleMaintenanceModeV1: (username_1, software_1, wordPressV1MaintenanceToggleMaintenanceRequest_1, ...args_1) => __awaiter(this, [username_1, software_1, wordPressV1MaintenanceToggleMaintenanceRequest_1, ...args_1], void 0, function* (username, software, wordPressV1MaintenanceToggleMaintenanceRequest, options = {}) {
|
|
15094
|
+
// verify required parameter 'username' is not null or undefined
|
|
15095
|
+
(0, common_1.assertParamExists)('toggleMaintenanceModeV1', 'username', username);
|
|
15096
|
+
// verify required parameter 'software' is not null or undefined
|
|
15097
|
+
(0, common_1.assertParamExists)('toggleMaintenanceModeV1', 'software', software);
|
|
15098
|
+
// verify required parameter 'wordPressV1MaintenanceToggleMaintenanceRequest' is not null or undefined
|
|
15099
|
+
(0, common_1.assertParamExists)('toggleMaintenanceModeV1', 'wordPressV1MaintenanceToggleMaintenanceRequest', wordPressV1MaintenanceToggleMaintenanceRequest);
|
|
15100
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/maintenance/toggle`
|
|
15101
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
15102
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
15103
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15104
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15105
|
+
let baseOptions;
|
|
15106
|
+
if (configuration) {
|
|
15107
|
+
baseOptions = configuration.baseOptions;
|
|
15108
|
+
}
|
|
15109
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
15110
|
+
const localVarHeaderParameter = {};
|
|
15111
|
+
const localVarQueryParameter = {};
|
|
15112
|
+
// authentication apiToken required
|
|
15113
|
+
// http bearer authentication required
|
|
15114
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
15115
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15116
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
15117
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15118
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15119
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1MaintenanceToggleMaintenanceRequest, localVarRequestOptions, configuration);
|
|
15120
|
+
return {
|
|
15121
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
15122
|
+
options: localVarRequestOptions,
|
|
15123
|
+
};
|
|
15124
|
+
}),
|
|
15125
|
+
};
|
|
15126
|
+
};
|
|
15127
|
+
exports.WordPressMaintenanceApiAxiosParamCreator = WordPressMaintenanceApiAxiosParamCreator;
|
|
15128
|
+
/**
|
|
15129
|
+
* WordPressMaintenanceApi - functional programming interface
|
|
15130
|
+
* @export
|
|
15131
|
+
*/
|
|
15132
|
+
const WordPressMaintenanceApiFp = function (configuration) {
|
|
15133
|
+
const localVarAxiosParamCreator = (0, exports.WordPressMaintenanceApiAxiosParamCreator)(configuration);
|
|
15134
|
+
return {
|
|
15135
|
+
/**
|
|
15136
|
+
* Show the maintenance mode status for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
15137
|
+
* @summary Show maintenance status
|
|
15138
|
+
* @param {string} username
|
|
15139
|
+
* @param {string} software WordPress installation (software) identifier
|
|
15140
|
+
* @param {*} [options] Override http request option.
|
|
15141
|
+
* @throws {RequiredError}
|
|
15142
|
+
*/
|
|
15143
|
+
showMaintenanceStatusV1(username, software, options) {
|
|
15144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15145
|
+
var _a, _b;
|
|
15146
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.showMaintenanceStatusV1(username, software, options);
|
|
15147
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressMaintenanceApi.showMaintenanceStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
15148
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15149
|
+
});
|
|
15150
|
+
},
|
|
15151
|
+
/**
|
|
15152
|
+
* Enable or disable maintenance mode for the specified WordPress installation, based on the `enabled` flag. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
15153
|
+
* @summary Toggle maintenance mode
|
|
15154
|
+
* @param {string} username
|
|
15155
|
+
* @param {string} software WordPress installation (software) identifier
|
|
15156
|
+
* @param {WordPressV1MaintenanceToggleMaintenanceRequest} wordPressV1MaintenanceToggleMaintenanceRequest
|
|
15157
|
+
* @param {*} [options] Override http request option.
|
|
15158
|
+
* @throws {RequiredError}
|
|
15159
|
+
*/
|
|
15160
|
+
toggleMaintenanceModeV1(username, software, wordPressV1MaintenanceToggleMaintenanceRequest, options) {
|
|
15161
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15162
|
+
var _a, _b;
|
|
15163
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.toggleMaintenanceModeV1(username, software, wordPressV1MaintenanceToggleMaintenanceRequest, options);
|
|
15164
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressMaintenanceApi.toggleMaintenanceModeV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
15165
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15166
|
+
});
|
|
15167
|
+
},
|
|
15168
|
+
};
|
|
15169
|
+
};
|
|
15170
|
+
exports.WordPressMaintenanceApiFp = WordPressMaintenanceApiFp;
|
|
15171
|
+
/**
|
|
15172
|
+
* WordPressMaintenanceApi - factory interface
|
|
15173
|
+
* @export
|
|
15174
|
+
*/
|
|
15175
|
+
const WordPressMaintenanceApiFactory = function (configuration, basePath, axios) {
|
|
15176
|
+
const localVarFp = (0, exports.WordPressMaintenanceApiFp)(configuration);
|
|
15177
|
+
return {
|
|
15178
|
+
/**
|
|
15179
|
+
* Show the maintenance mode status for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
15180
|
+
* @summary Show maintenance status
|
|
15181
|
+
* @param {string} username
|
|
15182
|
+
* @param {string} software WordPress installation (software) identifier
|
|
15183
|
+
* @param {*} [options] Override http request option.
|
|
15184
|
+
* @throws {RequiredError}
|
|
15185
|
+
*/
|
|
15186
|
+
showMaintenanceStatusV1(username, software, options) {
|
|
15187
|
+
return localVarFp.showMaintenanceStatusV1(username, software, options).then((request) => request(axios, basePath));
|
|
15188
|
+
},
|
|
15189
|
+
/**
|
|
15190
|
+
* Enable or disable maintenance mode for the specified WordPress installation, based on the `enabled` flag. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
15191
|
+
* @summary Toggle maintenance mode
|
|
15192
|
+
* @param {string} username
|
|
15193
|
+
* @param {string} software WordPress installation (software) identifier
|
|
15194
|
+
* @param {WordPressV1MaintenanceToggleMaintenanceRequest} wordPressV1MaintenanceToggleMaintenanceRequest
|
|
15195
|
+
* @param {*} [options] Override http request option.
|
|
15196
|
+
* @throws {RequiredError}
|
|
15197
|
+
*/
|
|
15198
|
+
toggleMaintenanceModeV1(username, software, wordPressV1MaintenanceToggleMaintenanceRequest, options) {
|
|
15199
|
+
return localVarFp.toggleMaintenanceModeV1(username, software, wordPressV1MaintenanceToggleMaintenanceRequest, options).then((request) => request(axios, basePath));
|
|
15200
|
+
},
|
|
15201
|
+
};
|
|
15202
|
+
};
|
|
15203
|
+
exports.WordPressMaintenanceApiFactory = WordPressMaintenanceApiFactory;
|
|
15204
|
+
/**
|
|
15205
|
+
* WordPressMaintenanceApi - object-oriented interface
|
|
15206
|
+
* @export
|
|
15207
|
+
* @class WordPressMaintenanceApi
|
|
15208
|
+
* @extends {BaseAPI}
|
|
15209
|
+
*/
|
|
15210
|
+
class WordPressMaintenanceApi extends base_1.BaseAPI {
|
|
13331
15211
|
/**
|
|
13332
|
-
*
|
|
13333
|
-
* @summary
|
|
13334
|
-
* @param {
|
|
15212
|
+
* Show the maintenance mode status for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
15213
|
+
* @summary Show maintenance status
|
|
15214
|
+
* @param {string} username
|
|
15215
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13335
15216
|
* @param {*} [options] Override http request option.
|
|
13336
15217
|
* @throws {RequiredError}
|
|
13337
|
-
* @memberof
|
|
15218
|
+
* @memberof WordPressMaintenanceApi
|
|
13338
15219
|
*/
|
|
13339
|
-
|
|
13340
|
-
return (0, exports.
|
|
15220
|
+
showMaintenanceStatusV1(username, software, options) {
|
|
15221
|
+
return (0, exports.WordPressMaintenanceApiFp)(this.configuration).showMaintenanceStatusV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
13341
15222
|
}
|
|
13342
15223
|
/**
|
|
13343
|
-
*
|
|
13344
|
-
* @summary
|
|
13345
|
-
* @param {
|
|
15224
|
+
* Enable or disable maintenance mode for the specified WordPress installation, based on the `enabled` flag. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
15225
|
+
* @summary Toggle maintenance mode
|
|
15226
|
+
* @param {string} username
|
|
15227
|
+
* @param {string} software WordPress installation (software) identifier
|
|
15228
|
+
* @param {WordPressV1MaintenanceToggleMaintenanceRequest} wordPressV1MaintenanceToggleMaintenanceRequest
|
|
13346
15229
|
* @param {*} [options] Override http request option.
|
|
13347
15230
|
* @throws {RequiredError}
|
|
13348
|
-
* @memberof
|
|
15231
|
+
* @memberof WordPressMaintenanceApi
|
|
13349
15232
|
*/
|
|
13350
|
-
|
|
13351
|
-
return (0, exports.
|
|
15233
|
+
toggleMaintenanceModeV1(username, software, wordPressV1MaintenanceToggleMaintenanceRequest, options) {
|
|
15234
|
+
return (0, exports.WordPressMaintenanceApiFp)(this.configuration).toggleMaintenanceModeV1(username, software, wordPressV1MaintenanceToggleMaintenanceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13352
15235
|
}
|
|
13353
15236
|
}
|
|
13354
|
-
exports.
|
|
15237
|
+
exports.WordPressMaintenanceApi = WordPressMaintenanceApi;
|
|
13355
15238
|
/**
|
|
13356
|
-
*
|
|
15239
|
+
* WordPressObjectCacheApi - axios parameter creator
|
|
13357
15240
|
* @export
|
|
13358
15241
|
*/
|
|
13359
|
-
const
|
|
15242
|
+
const WordPressObjectCacheApiAxiosParamCreator = function (configuration) {
|
|
13360
15243
|
return {
|
|
13361
15244
|
/**
|
|
13362
|
-
*
|
|
13363
|
-
* @summary
|
|
15245
|
+
* Show the Memcached object cache status for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
15246
|
+
* @summary Show Memcached object cache status
|
|
13364
15247
|
* @param {string} username
|
|
13365
|
-
* @param {
|
|
15248
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13366
15249
|
* @param {*} [options] Override http request option.
|
|
13367
15250
|
* @throws {RequiredError}
|
|
13368
15251
|
*/
|
|
13369
|
-
|
|
15252
|
+
showMemcachedObjectCacheStatusV1: (username_1, software_1, ...args_1) => __awaiter(this, [username_1, software_1, ...args_1], void 0, function* (username, software, options = {}) {
|
|
13370
15253
|
// verify required parameter 'username' is not null or undefined
|
|
13371
|
-
(0, common_1.assertParamExists)('
|
|
13372
|
-
// verify required parameter '
|
|
13373
|
-
(0, common_1.assertParamExists)('
|
|
13374
|
-
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/
|
|
13375
|
-
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
15254
|
+
(0, common_1.assertParamExists)('showMemcachedObjectCacheStatusV1', 'username', username);
|
|
15255
|
+
// verify required parameter 'software' is not null or undefined
|
|
15256
|
+
(0, common_1.assertParamExists)('showMemcachedObjectCacheStatusV1', 'software', software);
|
|
15257
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/memcached/status`
|
|
15258
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
15259
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13376
15260
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13377
15261
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13378
15262
|
let baseOptions;
|
|
13379
15263
|
if (configuration) {
|
|
13380
15264
|
baseOptions = configuration.baseOptions;
|
|
13381
15265
|
}
|
|
13382
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
15266
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13383
15267
|
const localVarHeaderParameter = {};
|
|
13384
15268
|
const localVarQueryParameter = {};
|
|
13385
15269
|
// authentication apiToken required
|
|
13386
15270
|
// http bearer authentication required
|
|
13387
15271
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13388
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13389
15272
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13390
15273
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13391
15274
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13392
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1InstallationsInstallWordPressRequest, localVarRequestOptions, configuration);
|
|
13393
15275
|
return {
|
|
13394
15276
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13395
15277
|
options: localVarRequestOptions,
|
|
13396
15278
|
};
|
|
13397
15279
|
}),
|
|
13398
15280
|
/**
|
|
13399
|
-
*
|
|
13400
|
-
* @summary
|
|
13401
|
-
* @param {string
|
|
13402
|
-
* @param {string
|
|
13403
|
-
* @param {
|
|
15281
|
+
* Activate or deactivate the Memcached object cache for the specified WordPress installation, based on the `enabled` flag. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
15282
|
+
* @summary Toggle Memcached object cache
|
|
15283
|
+
* @param {string} username
|
|
15284
|
+
* @param {string} software WordPress installation (software) identifier
|
|
15285
|
+
* @param {WordPressV1MemcachedToggleMemcachedRequest} wordPressV1MemcachedToggleMemcachedRequest
|
|
13404
15286
|
* @param {*} [options] Override http request option.
|
|
13405
15287
|
* @throws {RequiredError}
|
|
13406
15288
|
*/
|
|
13407
|
-
|
|
13408
|
-
|
|
15289
|
+
toggleMemcachedObjectCacheV1: (username_1, software_1, wordPressV1MemcachedToggleMemcachedRequest_1, ...args_1) => __awaiter(this, [username_1, software_1, wordPressV1MemcachedToggleMemcachedRequest_1, ...args_1], void 0, function* (username, software, wordPressV1MemcachedToggleMemcachedRequest, options = {}) {
|
|
15290
|
+
// verify required parameter 'username' is not null or undefined
|
|
15291
|
+
(0, common_1.assertParamExists)('toggleMemcachedObjectCacheV1', 'username', username);
|
|
15292
|
+
// verify required parameter 'software' is not null or undefined
|
|
15293
|
+
(0, common_1.assertParamExists)('toggleMemcachedObjectCacheV1', 'software', software);
|
|
15294
|
+
// verify required parameter 'wordPressV1MemcachedToggleMemcachedRequest' is not null or undefined
|
|
15295
|
+
(0, common_1.assertParamExists)('toggleMemcachedObjectCacheV1', 'wordPressV1MemcachedToggleMemcachedRequest', wordPressV1MemcachedToggleMemcachedRequest);
|
|
15296
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/wordpress/{software}/memcached/toggle`
|
|
15297
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
15298
|
+
.replace(`{${"software"}}`, encodeURIComponent(String(software)));
|
|
13409
15299
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13410
15300
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13411
15301
|
let baseOptions;
|
|
13412
15302
|
if (configuration) {
|
|
13413
15303
|
baseOptions = configuration.baseOptions;
|
|
13414
15304
|
}
|
|
13415
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
15305
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
13416
15306
|
const localVarHeaderParameter = {};
|
|
13417
15307
|
const localVarQueryParameter = {};
|
|
13418
15308
|
// authentication apiToken required
|
|
13419
15309
|
// http bearer authentication required
|
|
13420
15310
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13421
|
-
|
|
13422
|
-
localVarQueryParameter['username'] = username;
|
|
13423
|
-
}
|
|
13424
|
-
if (domain !== undefined) {
|
|
13425
|
-
localVarQueryParameter['domain'] = domain;
|
|
13426
|
-
}
|
|
13427
|
-
if (ownership !== undefined) {
|
|
13428
|
-
localVarQueryParameter['ownership'] = ownership;
|
|
13429
|
-
}
|
|
15311
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13430
15312
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13431
15313
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13432
15314
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15315
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wordPressV1MemcachedToggleMemcachedRequest, localVarRequestOptions, configuration);
|
|
13433
15316
|
return {
|
|
13434
15317
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13435
15318
|
options: localVarRequestOptions,
|
|
@@ -13437,125 +15320,117 @@ const WordPressInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
13437
15320
|
}),
|
|
13438
15321
|
};
|
|
13439
15322
|
};
|
|
13440
|
-
exports.
|
|
15323
|
+
exports.WordPressObjectCacheApiAxiosParamCreator = WordPressObjectCacheApiAxiosParamCreator;
|
|
13441
15324
|
/**
|
|
13442
|
-
*
|
|
15325
|
+
* WordPressObjectCacheApi - functional programming interface
|
|
13443
15326
|
* @export
|
|
13444
15327
|
*/
|
|
13445
|
-
const
|
|
13446
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
15328
|
+
const WordPressObjectCacheApiFp = function (configuration) {
|
|
15329
|
+
const localVarAxiosParamCreator = (0, exports.WordPressObjectCacheApiAxiosParamCreator)(configuration);
|
|
13447
15330
|
return {
|
|
13448
15331
|
/**
|
|
13449
|
-
*
|
|
13450
|
-
* @summary
|
|
15332
|
+
* Show the Memcached object cache status for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
15333
|
+
* @summary Show Memcached object cache status
|
|
13451
15334
|
* @param {string} username
|
|
13452
|
-
* @param {
|
|
15335
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13453
15336
|
* @param {*} [options] Override http request option.
|
|
13454
15337
|
* @throws {RequiredError}
|
|
13455
15338
|
*/
|
|
13456
|
-
|
|
15339
|
+
showMemcachedObjectCacheStatusV1(username, software, options) {
|
|
13457
15340
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13458
15341
|
var _a, _b;
|
|
13459
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
13460
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['
|
|
15342
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.showMemcachedObjectCacheStatusV1(username, software, options);
|
|
15343
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressObjectCacheApi.showMemcachedObjectCacheStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13461
15344
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13462
15345
|
});
|
|
13463
15346
|
},
|
|
13464
15347
|
/**
|
|
13465
|
-
*
|
|
13466
|
-
* @summary
|
|
13467
|
-
* @param {string
|
|
13468
|
-
* @param {string
|
|
13469
|
-
* @param {
|
|
15348
|
+
* Activate or deactivate the Memcached object cache for the specified WordPress installation, based on the `enabled` flag. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
15349
|
+
* @summary Toggle Memcached object cache
|
|
15350
|
+
* @param {string} username
|
|
15351
|
+
* @param {string} software WordPress installation (software) identifier
|
|
15352
|
+
* @param {WordPressV1MemcachedToggleMemcachedRequest} wordPressV1MemcachedToggleMemcachedRequest
|
|
13470
15353
|
* @param {*} [options] Override http request option.
|
|
13471
15354
|
* @throws {RequiredError}
|
|
13472
15355
|
*/
|
|
13473
|
-
|
|
15356
|
+
toggleMemcachedObjectCacheV1(username, software, wordPressV1MemcachedToggleMemcachedRequest, options) {
|
|
13474
15357
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13475
15358
|
var _a, _b;
|
|
13476
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
13477
|
-
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['
|
|
15359
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.toggleMemcachedObjectCacheV1(username, software, wordPressV1MemcachedToggleMemcachedRequest, options);
|
|
15360
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['WordPressObjectCacheApi.toggleMemcachedObjectCacheV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
13478
15361
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13479
15362
|
});
|
|
13480
15363
|
},
|
|
13481
15364
|
};
|
|
13482
15365
|
};
|
|
13483
|
-
exports.
|
|
15366
|
+
exports.WordPressObjectCacheApiFp = WordPressObjectCacheApiFp;
|
|
13484
15367
|
/**
|
|
13485
|
-
*
|
|
15368
|
+
* WordPressObjectCacheApi - factory interface
|
|
13486
15369
|
* @export
|
|
13487
15370
|
*/
|
|
13488
|
-
const
|
|
13489
|
-
const localVarFp = (0, exports.
|
|
15371
|
+
const WordPressObjectCacheApiFactory = function (configuration, basePath, axios) {
|
|
15372
|
+
const localVarFp = (0, exports.WordPressObjectCacheApiFp)(configuration);
|
|
13490
15373
|
return {
|
|
13491
15374
|
/**
|
|
13492
|
-
*
|
|
13493
|
-
* @summary
|
|
15375
|
+
* Show the Memcached object cache status for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
15376
|
+
* @summary Show Memcached object cache status
|
|
13494
15377
|
* @param {string} username
|
|
13495
|
-
* @param {
|
|
15378
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13496
15379
|
* @param {*} [options] Override http request option.
|
|
13497
15380
|
* @throws {RequiredError}
|
|
13498
15381
|
*/
|
|
13499
|
-
|
|
13500
|
-
return localVarFp.
|
|
15382
|
+
showMemcachedObjectCacheStatusV1(username, software, options) {
|
|
15383
|
+
return localVarFp.showMemcachedObjectCacheStatusV1(username, software, options).then((request) => request(axios, basePath));
|
|
13501
15384
|
},
|
|
13502
15385
|
/**
|
|
13503
|
-
*
|
|
13504
|
-
* @summary
|
|
13505
|
-
* @param {string
|
|
13506
|
-
* @param {string
|
|
13507
|
-
* @param {
|
|
15386
|
+
* Activate or deactivate the Memcached object cache for the specified WordPress installation, based on the `enabled` flag. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
15387
|
+
* @summary Toggle Memcached object cache
|
|
15388
|
+
* @param {string} username
|
|
15389
|
+
* @param {string} software WordPress installation (software) identifier
|
|
15390
|
+
* @param {WordPressV1MemcachedToggleMemcachedRequest} wordPressV1MemcachedToggleMemcachedRequest
|
|
13508
15391
|
* @param {*} [options] Override http request option.
|
|
13509
15392
|
* @throws {RequiredError}
|
|
13510
15393
|
*/
|
|
13511
|
-
|
|
13512
|
-
return localVarFp.
|
|
15394
|
+
toggleMemcachedObjectCacheV1(username, software, wordPressV1MemcachedToggleMemcachedRequest, options) {
|
|
15395
|
+
return localVarFp.toggleMemcachedObjectCacheV1(username, software, wordPressV1MemcachedToggleMemcachedRequest, options).then((request) => request(axios, basePath));
|
|
13513
15396
|
},
|
|
13514
15397
|
};
|
|
13515
15398
|
};
|
|
13516
|
-
exports.
|
|
15399
|
+
exports.WordPressObjectCacheApiFactory = WordPressObjectCacheApiFactory;
|
|
13517
15400
|
/**
|
|
13518
|
-
*
|
|
15401
|
+
* WordPressObjectCacheApi - object-oriented interface
|
|
13519
15402
|
* @export
|
|
13520
|
-
* @class
|
|
15403
|
+
* @class WordPressObjectCacheApi
|
|
13521
15404
|
* @extends {BaseAPI}
|
|
13522
15405
|
*/
|
|
13523
|
-
class
|
|
15406
|
+
class WordPressObjectCacheApi extends base_1.BaseAPI {
|
|
13524
15407
|
/**
|
|
13525
|
-
*
|
|
13526
|
-
* @summary
|
|
15408
|
+
* Show the Memcached object cache status for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
15409
|
+
* @summary Show Memcached object cache status
|
|
13527
15410
|
* @param {string} username
|
|
13528
|
-
* @param {
|
|
15411
|
+
* @param {string} software WordPress installation (software) identifier
|
|
13529
15412
|
* @param {*} [options] Override http request option.
|
|
13530
15413
|
* @throws {RequiredError}
|
|
13531
|
-
* @memberof
|
|
15414
|
+
* @memberof WordPressObjectCacheApi
|
|
13532
15415
|
*/
|
|
13533
|
-
|
|
13534
|
-
return (0, exports.
|
|
15416
|
+
showMemcachedObjectCacheStatusV1(username, software, options) {
|
|
15417
|
+
return (0, exports.WordPressObjectCacheApiFp)(this.configuration).showMemcachedObjectCacheStatusV1(username, software, options).then((request) => request(this.axios, this.basePath));
|
|
13535
15418
|
}
|
|
13536
15419
|
/**
|
|
13537
|
-
*
|
|
13538
|
-
* @summary
|
|
13539
|
-
* @param {string
|
|
13540
|
-
* @param {string
|
|
13541
|
-
* @param {
|
|
15420
|
+
* Activate or deactivate the Memcached object cache for the specified WordPress installation, based on the `enabled` flag. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
15421
|
+
* @summary Toggle Memcached object cache
|
|
15422
|
+
* @param {string} username
|
|
15423
|
+
* @param {string} software WordPress installation (software) identifier
|
|
15424
|
+
* @param {WordPressV1MemcachedToggleMemcachedRequest} wordPressV1MemcachedToggleMemcachedRequest
|
|
13542
15425
|
* @param {*} [options] Override http request option.
|
|
13543
15426
|
* @throws {RequiredError}
|
|
13544
|
-
* @memberof
|
|
15427
|
+
* @memberof WordPressObjectCacheApi
|
|
13545
15428
|
*/
|
|
13546
|
-
|
|
13547
|
-
return (0, exports.
|
|
15429
|
+
toggleMemcachedObjectCacheV1(username, software, wordPressV1MemcachedToggleMemcachedRequest, options) {
|
|
15430
|
+
return (0, exports.WordPressObjectCacheApiFp)(this.configuration).toggleMemcachedObjectCacheV1(username, software, wordPressV1MemcachedToggleMemcachedRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13548
15431
|
}
|
|
13549
15432
|
}
|
|
13550
|
-
exports.
|
|
13551
|
-
/**
|
|
13552
|
-
* @export
|
|
13553
|
-
*/
|
|
13554
|
-
exports.ListWordPressInstallationsV1OwnershipEnum = {
|
|
13555
|
-
Owned: 'owned',
|
|
13556
|
-
Managed: 'managed',
|
|
13557
|
-
All: 'all'
|
|
13558
|
-
};
|
|
15433
|
+
exports.WordPressObjectCacheApi = WordPressObjectCacheApi;
|
|
13559
15434
|
/**
|
|
13560
15435
|
* WordPressPluginsApi - axios parameter creator
|
|
13561
15436
|
* @export
|