hostinger-api-sdk 1.1.1 → 1.2.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 +710 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +433 -1
- package/dist/api.js +515 -3
- 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 +433 -1
- package/dist/esm/api.js +509 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/HostingPHPApi.md +364 -0
- package/docs/HostingV1PhpPhpDetailsResource.md +30 -0
- package/docs/HostingV1PhpPhpInfoResource.md +20 -0
- package/docs/HostingV1PhpPhpOptionResource.md +30 -0
- package/docs/HostingV1PhpPhpVersionsResource.md +22 -0
- package/docs/HostingV1PhpUpdatePhpExtensionsRequest.md +22 -0
- package/docs/HostingV1PhpUpdatePhpOptionsRequest.md +20 -0
- package/docs/HostingV1PhpUpdatePhpOptionsRequestOptionsValue.md +18 -0
- package/docs/HostingV1PhpUpdatePhpVersionRequest.md +20 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.2.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -3088,6 +3088,175 @@ export interface HostingV1OrdersPlanResource {
|
|
|
3088
3088
|
*/
|
|
3089
3089
|
'name': string;
|
|
3090
3090
|
}
|
|
3091
|
+
/**
|
|
3092
|
+
*
|
|
3093
|
+
* @export
|
|
3094
|
+
* @interface HostingV1PhpPhpDetailsResource
|
|
3095
|
+
*/
|
|
3096
|
+
export interface HostingV1PhpPhpDetailsResource {
|
|
3097
|
+
/**
|
|
3098
|
+
* Current PHP version name
|
|
3099
|
+
* @type {string}
|
|
3100
|
+
* @memberof HostingV1PhpPhpDetailsResource
|
|
3101
|
+
*/
|
|
3102
|
+
'php_version': string;
|
|
3103
|
+
/**
|
|
3104
|
+
* Full PHP version name
|
|
3105
|
+
* @type {string}
|
|
3106
|
+
* @memberof HostingV1PhpPhpDetailsResource
|
|
3107
|
+
*/
|
|
3108
|
+
'php_version_full': string;
|
|
3109
|
+
/**
|
|
3110
|
+
*
|
|
3111
|
+
* @type {HostingV1PhpPhpVersionsResource}
|
|
3112
|
+
* @memberof HostingV1PhpPhpDetailsResource
|
|
3113
|
+
*/
|
|
3114
|
+
'php_versions': HostingV1PhpPhpVersionsResource;
|
|
3115
|
+
/**
|
|
3116
|
+
* PHP options keyed by option name
|
|
3117
|
+
* @type {{ [key: string]: HostingV1PhpPhpOptionResource; }}
|
|
3118
|
+
* @memberof HostingV1PhpPhpDetailsResource
|
|
3119
|
+
*/
|
|
3120
|
+
'options': { [key: string]: HostingV1PhpPhpOptionResource; };
|
|
3121
|
+
/**
|
|
3122
|
+
* PHP extensions keyed by extension name
|
|
3123
|
+
* @type {object}
|
|
3124
|
+
* @memberof HostingV1PhpPhpDetailsResource
|
|
3125
|
+
*/
|
|
3126
|
+
'extensions': object;
|
|
3127
|
+
/**
|
|
3128
|
+
* Groups of extensions that conflict with each other
|
|
3129
|
+
* @type {Array<Array<string>>}
|
|
3130
|
+
* @memberof HostingV1PhpPhpDetailsResource
|
|
3131
|
+
*/
|
|
3132
|
+
'conflicting_extensions': Array<Array<string>>;
|
|
3133
|
+
}
|
|
3134
|
+
/**
|
|
3135
|
+
*
|
|
3136
|
+
* @export
|
|
3137
|
+
* @interface HostingV1PhpPhpInfoResource
|
|
3138
|
+
*/
|
|
3139
|
+
export interface HostingV1PhpPhpInfoResource {
|
|
3140
|
+
/**
|
|
3141
|
+
* HTML string containing the full phpinfo page
|
|
3142
|
+
* @type {string}
|
|
3143
|
+
* @memberof HostingV1PhpPhpInfoResource
|
|
3144
|
+
*/
|
|
3145
|
+
'info': string;
|
|
3146
|
+
}
|
|
3147
|
+
/**
|
|
3148
|
+
*
|
|
3149
|
+
* @export
|
|
3150
|
+
* @interface HostingV1PhpPhpOptionResource
|
|
3151
|
+
*/
|
|
3152
|
+
export interface HostingV1PhpPhpOptionResource {
|
|
3153
|
+
/**
|
|
3154
|
+
* Declared option type (e.g. bool, string)
|
|
3155
|
+
* @type {string}
|
|
3156
|
+
* @memberof HostingV1PhpPhpOptionResource
|
|
3157
|
+
*/
|
|
3158
|
+
'type': string;
|
|
3159
|
+
/**
|
|
3160
|
+
* Current value for this website
|
|
3161
|
+
* @type {string}
|
|
3162
|
+
* @memberof HostingV1PhpPhpOptionResource
|
|
3163
|
+
*/
|
|
3164
|
+
'value': string;
|
|
3165
|
+
/**
|
|
3166
|
+
* Human-readable description
|
|
3167
|
+
* @type {string}
|
|
3168
|
+
* @memberof HostingV1PhpPhpOptionResource
|
|
3169
|
+
*/
|
|
3170
|
+
'comment': string;
|
|
3171
|
+
/**
|
|
3172
|
+
* Default value
|
|
3173
|
+
* @type {string}
|
|
3174
|
+
* @memberof HostingV1PhpPhpOptionResource
|
|
3175
|
+
*/
|
|
3176
|
+
'default': string;
|
|
3177
|
+
/**
|
|
3178
|
+
* Allowed value range or limits, when applicable
|
|
3179
|
+
* @type {string}
|
|
3180
|
+
* @memberof HostingV1PhpPhpOptionResource
|
|
3181
|
+
*/
|
|
3182
|
+
'range': string | null;
|
|
3183
|
+
/**
|
|
3184
|
+
* Maximum value allowed by the account hosting plan, when applicable
|
|
3185
|
+
* @type {string}
|
|
3186
|
+
* @memberof HostingV1PhpPhpOptionResource
|
|
3187
|
+
*/
|
|
3188
|
+
'max': string | null;
|
|
3189
|
+
}
|
|
3190
|
+
/**
|
|
3191
|
+
*
|
|
3192
|
+
* @export
|
|
3193
|
+
* @interface HostingV1PhpPhpVersionsResource
|
|
3194
|
+
*/
|
|
3195
|
+
export interface HostingV1PhpPhpVersionsResource {
|
|
3196
|
+
/**
|
|
3197
|
+
* Key-value pairs of supported versions
|
|
3198
|
+
* @type {object}
|
|
3199
|
+
* @memberof HostingV1PhpPhpVersionsResource
|
|
3200
|
+
*/
|
|
3201
|
+
'supported': object;
|
|
3202
|
+
/**
|
|
3203
|
+
* Key-value pairs of unsupported versions
|
|
3204
|
+
* @type {object}
|
|
3205
|
+
* @memberof HostingV1PhpPhpVersionsResource
|
|
3206
|
+
*/
|
|
3207
|
+
'unsupported': object;
|
|
3208
|
+
}
|
|
3209
|
+
/**
|
|
3210
|
+
*
|
|
3211
|
+
* @export
|
|
3212
|
+
* @interface HostingV1PhpUpdatePhpExtensionsRequest
|
|
3213
|
+
*/
|
|
3214
|
+
export interface HostingV1PhpUpdatePhpExtensionsRequest {
|
|
3215
|
+
/**
|
|
3216
|
+
* PHP extensions to enable.
|
|
3217
|
+
* @type {Array<string>}
|
|
3218
|
+
* @memberof HostingV1PhpUpdatePhpExtensionsRequest
|
|
3219
|
+
*/
|
|
3220
|
+
'enable': Array<string>;
|
|
3221
|
+
/**
|
|
3222
|
+
* PHP extensions to disable.
|
|
3223
|
+
* @type {Array<string>}
|
|
3224
|
+
* @memberof HostingV1PhpUpdatePhpExtensionsRequest
|
|
3225
|
+
*/
|
|
3226
|
+
'disable': Array<string>;
|
|
3227
|
+
}
|
|
3228
|
+
/**
|
|
3229
|
+
*
|
|
3230
|
+
* @export
|
|
3231
|
+
* @interface HostingV1PhpUpdatePhpOptionsRequest
|
|
3232
|
+
*/
|
|
3233
|
+
export interface HostingV1PhpUpdatePhpOptionsRequest {
|
|
3234
|
+
/**
|
|
3235
|
+
* Map of PHP options to update, keyed by option name. Only include options you want to change.
|
|
3236
|
+
* @type {{ [key: string]: HostingV1PhpUpdatePhpOptionsRequestOptionsValue; }}
|
|
3237
|
+
* @memberof HostingV1PhpUpdatePhpOptionsRequest
|
|
3238
|
+
*/
|
|
3239
|
+
'options': { [key: string]: HostingV1PhpUpdatePhpOptionsRequestOptionsValue; };
|
|
3240
|
+
}
|
|
3241
|
+
/**
|
|
3242
|
+
* @type HostingV1PhpUpdatePhpOptionsRequestOptionsValue
|
|
3243
|
+
* @export
|
|
3244
|
+
*/
|
|
3245
|
+
export type HostingV1PhpUpdatePhpOptionsRequestOptionsValue = number | string;
|
|
3246
|
+
|
|
3247
|
+
/**
|
|
3248
|
+
*
|
|
3249
|
+
* @export
|
|
3250
|
+
* @interface HostingV1PhpUpdatePhpVersionRequest
|
|
3251
|
+
*/
|
|
3252
|
+
export interface HostingV1PhpUpdatePhpVersionRequest {
|
|
3253
|
+
/**
|
|
3254
|
+
* PHP version to switch the website to.
|
|
3255
|
+
* @type {string}
|
|
3256
|
+
* @memberof HostingV1PhpUpdatePhpVersionRequest
|
|
3257
|
+
*/
|
|
3258
|
+
'version': string;
|
|
3259
|
+
}
|
|
3091
3260
|
/**
|
|
3092
3261
|
*
|
|
3093
3262
|
* @export
|
|
@@ -12579,6 +12748,546 @@ export const ListOrdersV1StatusesEnum = {
|
|
|
12579
12748
|
export type ListOrdersV1StatusesEnum = typeof ListOrdersV1StatusesEnum[keyof typeof ListOrdersV1StatusesEnum];
|
|
12580
12749
|
|
|
12581
12750
|
|
|
12751
|
+
/**
|
|
12752
|
+
* HostingPHPApi - axios parameter creator
|
|
12753
|
+
* @export
|
|
12754
|
+
*/
|
|
12755
|
+
export const HostingPHPApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
12756
|
+
return {
|
|
12757
|
+
/**
|
|
12758
|
+
* Returns the full PHP configuration for the website: current version, available versions (supported and unsupported), enabled/disabled extensions, options with their current value, default, type and the plan limit (`max`), and conflicting extension groups. Use it to check the current PHP setup before updating the version, extensions or options.
|
|
12759
|
+
* @summary Get PHP details
|
|
12760
|
+
* @param {string} username
|
|
12761
|
+
* @param {string} domain Domain name
|
|
12762
|
+
* @param {*} [options] Override http request option.
|
|
12763
|
+
* @throws {RequiredError}
|
|
12764
|
+
*/
|
|
12765
|
+
getPHPDetailsV1: async (username: string, domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12766
|
+
// verify required parameter 'username' is not null or undefined
|
|
12767
|
+
assertParamExists('getPHPDetailsV1', 'username', username)
|
|
12768
|
+
// verify required parameter 'domain' is not null or undefined
|
|
12769
|
+
assertParamExists('getPHPDetailsV1', 'domain', domain)
|
|
12770
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/details`
|
|
12771
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12772
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
12773
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12774
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12775
|
+
let baseOptions;
|
|
12776
|
+
if (configuration) {
|
|
12777
|
+
baseOptions = configuration.baseOptions;
|
|
12778
|
+
}
|
|
12779
|
+
|
|
12780
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
12781
|
+
const localVarHeaderParameter = {} as any;
|
|
12782
|
+
const localVarQueryParameter = {} as any;
|
|
12783
|
+
|
|
12784
|
+
// authentication apiToken required
|
|
12785
|
+
// http bearer authentication required
|
|
12786
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
12787
|
+
|
|
12788
|
+
|
|
12789
|
+
|
|
12790
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12791
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12792
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12793
|
+
|
|
12794
|
+
return {
|
|
12795
|
+
url: toPathString(localVarUrlObj),
|
|
12796
|
+
options: localVarRequestOptions,
|
|
12797
|
+
};
|
|
12798
|
+
},
|
|
12799
|
+
/**
|
|
12800
|
+
* Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
|
|
12801
|
+
* @summary Get PHP info
|
|
12802
|
+
* @param {string} username
|
|
12803
|
+
* @param {string} domain Domain name
|
|
12804
|
+
* @param {*} [options] Override http request option.
|
|
12805
|
+
* @throws {RequiredError}
|
|
12806
|
+
*/
|
|
12807
|
+
getPHPInfoV1: async (username: string, domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12808
|
+
// verify required parameter 'username' is not null or undefined
|
|
12809
|
+
assertParamExists('getPHPInfoV1', 'username', username)
|
|
12810
|
+
// verify required parameter 'domain' is not null or undefined
|
|
12811
|
+
assertParamExists('getPHPInfoV1', 'domain', domain)
|
|
12812
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/php-info`
|
|
12813
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12814
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
12815
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12816
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12817
|
+
let baseOptions;
|
|
12818
|
+
if (configuration) {
|
|
12819
|
+
baseOptions = configuration.baseOptions;
|
|
12820
|
+
}
|
|
12821
|
+
|
|
12822
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
12823
|
+
const localVarHeaderParameter = {} as any;
|
|
12824
|
+
const localVarQueryParameter = {} as any;
|
|
12825
|
+
|
|
12826
|
+
// authentication apiToken required
|
|
12827
|
+
// http bearer authentication required
|
|
12828
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
12829
|
+
|
|
12830
|
+
|
|
12831
|
+
|
|
12832
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12833
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12834
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12835
|
+
|
|
12836
|
+
return {
|
|
12837
|
+
url: toPathString(localVarUrlObj),
|
|
12838
|
+
options: localVarRequestOptions,
|
|
12839
|
+
};
|
|
12840
|
+
},
|
|
12841
|
+
/**
|
|
12842
|
+
* Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
|
|
12843
|
+
* @summary Reset PHP extensions
|
|
12844
|
+
* @param {string} username
|
|
12845
|
+
* @param {string} domain Domain name
|
|
12846
|
+
* @param {*} [options] Override http request option.
|
|
12847
|
+
* @throws {RequiredError}
|
|
12848
|
+
*/
|
|
12849
|
+
resetPHPExtensionsV1: async (username: string, domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12850
|
+
// verify required parameter 'username' is not null or undefined
|
|
12851
|
+
assertParamExists('resetPHPExtensionsV1', 'username', username)
|
|
12852
|
+
// verify required parameter 'domain' is not null or undefined
|
|
12853
|
+
assertParamExists('resetPHPExtensionsV1', 'domain', domain)
|
|
12854
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/extensions/reset`
|
|
12855
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12856
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
12857
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12858
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12859
|
+
let baseOptions;
|
|
12860
|
+
if (configuration) {
|
|
12861
|
+
baseOptions = configuration.baseOptions;
|
|
12862
|
+
}
|
|
12863
|
+
|
|
12864
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
12865
|
+
const localVarHeaderParameter = {} as any;
|
|
12866
|
+
const localVarQueryParameter = {} as any;
|
|
12867
|
+
|
|
12868
|
+
// authentication apiToken required
|
|
12869
|
+
// http bearer authentication required
|
|
12870
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
12871
|
+
|
|
12872
|
+
|
|
12873
|
+
|
|
12874
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12875
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12876
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12877
|
+
|
|
12878
|
+
return {
|
|
12879
|
+
url: toPathString(localVarUrlObj),
|
|
12880
|
+
options: localVarRequestOptions,
|
|
12881
|
+
};
|
|
12882
|
+
},
|
|
12883
|
+
/**
|
|
12884
|
+
* Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
|
|
12885
|
+
* @summary Update PHP extensions
|
|
12886
|
+
* @param {string} username
|
|
12887
|
+
* @param {string} domain Domain name
|
|
12888
|
+
* @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
|
|
12889
|
+
* @param {*} [options] Override http request option.
|
|
12890
|
+
* @throws {RequiredError}
|
|
12891
|
+
*/
|
|
12892
|
+
updatePHPExtensionsV1: async (username: string, domain: string, hostingV1PhpUpdatePhpExtensionsRequest: HostingV1PhpUpdatePhpExtensionsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12893
|
+
// verify required parameter 'username' is not null or undefined
|
|
12894
|
+
assertParamExists('updatePHPExtensionsV1', 'username', username)
|
|
12895
|
+
// verify required parameter 'domain' is not null or undefined
|
|
12896
|
+
assertParamExists('updatePHPExtensionsV1', 'domain', domain)
|
|
12897
|
+
// verify required parameter 'hostingV1PhpUpdatePhpExtensionsRequest' is not null or undefined
|
|
12898
|
+
assertParamExists('updatePHPExtensionsV1', 'hostingV1PhpUpdatePhpExtensionsRequest', hostingV1PhpUpdatePhpExtensionsRequest)
|
|
12899
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/extensions`
|
|
12900
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12901
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
12902
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12903
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12904
|
+
let baseOptions;
|
|
12905
|
+
if (configuration) {
|
|
12906
|
+
baseOptions = configuration.baseOptions;
|
|
12907
|
+
}
|
|
12908
|
+
|
|
12909
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
12910
|
+
const localVarHeaderParameter = {} as any;
|
|
12911
|
+
const localVarQueryParameter = {} as any;
|
|
12912
|
+
|
|
12913
|
+
// authentication apiToken required
|
|
12914
|
+
// http bearer authentication required
|
|
12915
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
12916
|
+
|
|
12917
|
+
|
|
12918
|
+
|
|
12919
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12920
|
+
|
|
12921
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12922
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12923
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12924
|
+
localVarRequestOptions.data = serializeDataIfNeeded(hostingV1PhpUpdatePhpExtensionsRequest, localVarRequestOptions, configuration)
|
|
12925
|
+
|
|
12926
|
+
return {
|
|
12927
|
+
url: toPathString(localVarUrlObj),
|
|
12928
|
+
options: localVarRequestOptions,
|
|
12929
|
+
};
|
|
12930
|
+
},
|
|
12931
|
+
/**
|
|
12932
|
+
* Updates PHP options for the website (e.g. `memory_limit`, `max_execution_time`, `upload_max_filesize`). Only provide the options you want to change, inside the `options` object. Values above the account plan limit are silently capped to that limit, so the request can succeed with a smaller applied value. Call the Get PHP details endpoint afterwards to read the applied value.
|
|
12933
|
+
* @summary Update PHP options
|
|
12934
|
+
* @param {string} username
|
|
12935
|
+
* @param {string} domain Domain name
|
|
12936
|
+
* @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
|
|
12937
|
+
* @param {*} [options] Override http request option.
|
|
12938
|
+
* @throws {RequiredError}
|
|
12939
|
+
*/
|
|
12940
|
+
updatePHPOptionsV1: async (username: string, domain: string, hostingV1PhpUpdatePhpOptionsRequest: HostingV1PhpUpdatePhpOptionsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12941
|
+
// verify required parameter 'username' is not null or undefined
|
|
12942
|
+
assertParamExists('updatePHPOptionsV1', 'username', username)
|
|
12943
|
+
// verify required parameter 'domain' is not null or undefined
|
|
12944
|
+
assertParamExists('updatePHPOptionsV1', 'domain', domain)
|
|
12945
|
+
// verify required parameter 'hostingV1PhpUpdatePhpOptionsRequest' is not null or undefined
|
|
12946
|
+
assertParamExists('updatePHPOptionsV1', 'hostingV1PhpUpdatePhpOptionsRequest', hostingV1PhpUpdatePhpOptionsRequest)
|
|
12947
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/options`
|
|
12948
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12949
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
12950
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12951
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12952
|
+
let baseOptions;
|
|
12953
|
+
if (configuration) {
|
|
12954
|
+
baseOptions = configuration.baseOptions;
|
|
12955
|
+
}
|
|
12956
|
+
|
|
12957
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
12958
|
+
const localVarHeaderParameter = {} as any;
|
|
12959
|
+
const localVarQueryParameter = {} as any;
|
|
12960
|
+
|
|
12961
|
+
// authentication apiToken required
|
|
12962
|
+
// http bearer authentication required
|
|
12963
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
12964
|
+
|
|
12965
|
+
|
|
12966
|
+
|
|
12967
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12968
|
+
|
|
12969
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12970
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12971
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12972
|
+
localVarRequestOptions.data = serializeDataIfNeeded(hostingV1PhpUpdatePhpOptionsRequest, localVarRequestOptions, configuration)
|
|
12973
|
+
|
|
12974
|
+
return {
|
|
12975
|
+
url: toPathString(localVarUrlObj),
|
|
12976
|
+
options: localVarRequestOptions,
|
|
12977
|
+
};
|
|
12978
|
+
},
|
|
12979
|
+
/**
|
|
12980
|
+
* Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
|
|
12981
|
+
* @summary Update PHP version
|
|
12982
|
+
* @param {string} username
|
|
12983
|
+
* @param {string} domain Domain name
|
|
12984
|
+
* @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
|
|
12985
|
+
* @param {*} [options] Override http request option.
|
|
12986
|
+
* @throws {RequiredError}
|
|
12987
|
+
*/
|
|
12988
|
+
updatePHPVersionV1: async (username: string, domain: string, hostingV1PhpUpdatePhpVersionRequest: HostingV1PhpUpdatePhpVersionRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12989
|
+
// verify required parameter 'username' is not null or undefined
|
|
12990
|
+
assertParamExists('updatePHPVersionV1', 'username', username)
|
|
12991
|
+
// verify required parameter 'domain' is not null or undefined
|
|
12992
|
+
assertParamExists('updatePHPVersionV1', 'domain', domain)
|
|
12993
|
+
// verify required parameter 'hostingV1PhpUpdatePhpVersionRequest' is not null or undefined
|
|
12994
|
+
assertParamExists('updatePHPVersionV1', 'hostingV1PhpUpdatePhpVersionRequest', hostingV1PhpUpdatePhpVersionRequest)
|
|
12995
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/php/version`
|
|
12996
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
12997
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
12998
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12999
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13000
|
+
let baseOptions;
|
|
13001
|
+
if (configuration) {
|
|
13002
|
+
baseOptions = configuration.baseOptions;
|
|
13003
|
+
}
|
|
13004
|
+
|
|
13005
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
13006
|
+
const localVarHeaderParameter = {} as any;
|
|
13007
|
+
const localVarQueryParameter = {} as any;
|
|
13008
|
+
|
|
13009
|
+
// authentication apiToken required
|
|
13010
|
+
// http bearer authentication required
|
|
13011
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
13012
|
+
|
|
13013
|
+
|
|
13014
|
+
|
|
13015
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13016
|
+
|
|
13017
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13018
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13019
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13020
|
+
localVarRequestOptions.data = serializeDataIfNeeded(hostingV1PhpUpdatePhpVersionRequest, localVarRequestOptions, configuration)
|
|
13021
|
+
|
|
13022
|
+
return {
|
|
13023
|
+
url: toPathString(localVarUrlObj),
|
|
13024
|
+
options: localVarRequestOptions,
|
|
13025
|
+
};
|
|
13026
|
+
},
|
|
13027
|
+
}
|
|
13028
|
+
};
|
|
13029
|
+
|
|
13030
|
+
/**
|
|
13031
|
+
* HostingPHPApi - functional programming interface
|
|
13032
|
+
* @export
|
|
13033
|
+
*/
|
|
13034
|
+
export const HostingPHPApiFp = function(configuration?: Configuration) {
|
|
13035
|
+
const localVarAxiosParamCreator = HostingPHPApiAxiosParamCreator(configuration)
|
|
13036
|
+
return {
|
|
13037
|
+
/**
|
|
13038
|
+
* Returns the full PHP configuration for the website: current version, available versions (supported and unsupported), enabled/disabled extensions, options with their current value, default, type and the plan limit (`max`), and conflicting extension groups. Use it to check the current PHP setup before updating the version, extensions or options.
|
|
13039
|
+
* @summary Get PHP details
|
|
13040
|
+
* @param {string} username
|
|
13041
|
+
* @param {string} domain Domain name
|
|
13042
|
+
* @param {*} [options] Override http request option.
|
|
13043
|
+
* @throws {RequiredError}
|
|
13044
|
+
*/
|
|
13045
|
+
async getPHPDetailsV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1PhpPhpDetailsResource>> {
|
|
13046
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPHPDetailsV1(username, domain, options);
|
|
13047
|
+
const localVarOperationServerBasePath = operationServerMap['HostingPHPApi.getPHPDetailsV1']?.[0]?.url;
|
|
13048
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13049
|
+
},
|
|
13050
|
+
/**
|
|
13051
|
+
* Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
|
|
13052
|
+
* @summary Get PHP info
|
|
13053
|
+
* @param {string} username
|
|
13054
|
+
* @param {string} domain Domain name
|
|
13055
|
+
* @param {*} [options] Override http request option.
|
|
13056
|
+
* @throws {RequiredError}
|
|
13057
|
+
*/
|
|
13058
|
+
async getPHPInfoV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1PhpPhpInfoResource>> {
|
|
13059
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPHPInfoV1(username, domain, options);
|
|
13060
|
+
const localVarOperationServerBasePath = operationServerMap['HostingPHPApi.getPHPInfoV1']?.[0]?.url;
|
|
13061
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13062
|
+
},
|
|
13063
|
+
/**
|
|
13064
|
+
* Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
|
|
13065
|
+
* @summary Reset PHP extensions
|
|
13066
|
+
* @param {string} username
|
|
13067
|
+
* @param {string} domain Domain name
|
|
13068
|
+
* @param {*} [options] Override http request option.
|
|
13069
|
+
* @throws {RequiredError}
|
|
13070
|
+
*/
|
|
13071
|
+
async resetPHPExtensionsV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
13072
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resetPHPExtensionsV1(username, domain, options);
|
|
13073
|
+
const localVarOperationServerBasePath = operationServerMap['HostingPHPApi.resetPHPExtensionsV1']?.[0]?.url;
|
|
13074
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13075
|
+
},
|
|
13076
|
+
/**
|
|
13077
|
+
* Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
|
|
13078
|
+
* @summary Update PHP extensions
|
|
13079
|
+
* @param {string} username
|
|
13080
|
+
* @param {string} domain Domain name
|
|
13081
|
+
* @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
|
|
13082
|
+
* @param {*} [options] Override http request option.
|
|
13083
|
+
* @throws {RequiredError}
|
|
13084
|
+
*/
|
|
13085
|
+
async updatePHPExtensionsV1(username: string, domain: string, hostingV1PhpUpdatePhpExtensionsRequest: HostingV1PhpUpdatePhpExtensionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
13086
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options);
|
|
13087
|
+
const localVarOperationServerBasePath = operationServerMap['HostingPHPApi.updatePHPExtensionsV1']?.[0]?.url;
|
|
13088
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13089
|
+
},
|
|
13090
|
+
/**
|
|
13091
|
+
* Updates PHP options for the website (e.g. `memory_limit`, `max_execution_time`, `upload_max_filesize`). Only provide the options you want to change, inside the `options` object. Values above the account plan limit are silently capped to that limit, so the request can succeed with a smaller applied value. Call the Get PHP details endpoint afterwards to read the applied value.
|
|
13092
|
+
* @summary Update PHP options
|
|
13093
|
+
* @param {string} username
|
|
13094
|
+
* @param {string} domain Domain name
|
|
13095
|
+
* @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
|
|
13096
|
+
* @param {*} [options] Override http request option.
|
|
13097
|
+
* @throws {RequiredError}
|
|
13098
|
+
*/
|
|
13099
|
+
async updatePHPOptionsV1(username: string, domain: string, hostingV1PhpUpdatePhpOptionsRequest: HostingV1PhpUpdatePhpOptionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
13100
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options);
|
|
13101
|
+
const localVarOperationServerBasePath = operationServerMap['HostingPHPApi.updatePHPOptionsV1']?.[0]?.url;
|
|
13102
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13103
|
+
},
|
|
13104
|
+
/**
|
|
13105
|
+
* Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
|
|
13106
|
+
* @summary Update PHP version
|
|
13107
|
+
* @param {string} username
|
|
13108
|
+
* @param {string} domain Domain name
|
|
13109
|
+
* @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
|
|
13110
|
+
* @param {*} [options] Override http request option.
|
|
13111
|
+
* @throws {RequiredError}
|
|
13112
|
+
*/
|
|
13113
|
+
async updatePHPVersionV1(username: string, domain: string, hostingV1PhpUpdatePhpVersionRequest: HostingV1PhpUpdatePhpVersionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
13114
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options);
|
|
13115
|
+
const localVarOperationServerBasePath = operationServerMap['HostingPHPApi.updatePHPVersionV1']?.[0]?.url;
|
|
13116
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13117
|
+
},
|
|
13118
|
+
}
|
|
13119
|
+
};
|
|
13120
|
+
|
|
13121
|
+
/**
|
|
13122
|
+
* HostingPHPApi - factory interface
|
|
13123
|
+
* @export
|
|
13124
|
+
*/
|
|
13125
|
+
export const HostingPHPApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
13126
|
+
const localVarFp = HostingPHPApiFp(configuration)
|
|
13127
|
+
return {
|
|
13128
|
+
/**
|
|
13129
|
+
* Returns the full PHP configuration for the website: current version, available versions (supported and unsupported), enabled/disabled extensions, options with their current value, default, type and the plan limit (`max`), and conflicting extension groups. Use it to check the current PHP setup before updating the version, extensions or options.
|
|
13130
|
+
* @summary Get PHP details
|
|
13131
|
+
* @param {string} username
|
|
13132
|
+
* @param {string} domain Domain name
|
|
13133
|
+
* @param {*} [options] Override http request option.
|
|
13134
|
+
* @throws {RequiredError}
|
|
13135
|
+
*/
|
|
13136
|
+
getPHPDetailsV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1PhpPhpDetailsResource> {
|
|
13137
|
+
return localVarFp.getPHPDetailsV1(username, domain, options).then((request) => request(axios, basePath));
|
|
13138
|
+
},
|
|
13139
|
+
/**
|
|
13140
|
+
* Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
|
|
13141
|
+
* @summary Get PHP info
|
|
13142
|
+
* @param {string} username
|
|
13143
|
+
* @param {string} domain Domain name
|
|
13144
|
+
* @param {*} [options] Override http request option.
|
|
13145
|
+
* @throws {RequiredError}
|
|
13146
|
+
*/
|
|
13147
|
+
getPHPInfoV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1PhpPhpInfoResource> {
|
|
13148
|
+
return localVarFp.getPHPInfoV1(username, domain, options).then((request) => request(axios, basePath));
|
|
13149
|
+
},
|
|
13150
|
+
/**
|
|
13151
|
+
* Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
|
|
13152
|
+
* @summary Reset PHP extensions
|
|
13153
|
+
* @param {string} username
|
|
13154
|
+
* @param {string} domain Domain name
|
|
13155
|
+
* @param {*} [options] Override http request option.
|
|
13156
|
+
* @throws {RequiredError}
|
|
13157
|
+
*/
|
|
13158
|
+
resetPHPExtensionsV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
13159
|
+
return localVarFp.resetPHPExtensionsV1(username, domain, options).then((request) => request(axios, basePath));
|
|
13160
|
+
},
|
|
13161
|
+
/**
|
|
13162
|
+
* Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
|
|
13163
|
+
* @summary Update PHP extensions
|
|
13164
|
+
* @param {string} username
|
|
13165
|
+
* @param {string} domain Domain name
|
|
13166
|
+
* @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
|
|
13167
|
+
* @param {*} [options] Override http request option.
|
|
13168
|
+
* @throws {RequiredError}
|
|
13169
|
+
*/
|
|
13170
|
+
updatePHPExtensionsV1(username: string, domain: string, hostingV1PhpUpdatePhpExtensionsRequest: HostingV1PhpUpdatePhpExtensionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
13171
|
+
return localVarFp.updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options).then((request) => request(axios, basePath));
|
|
13172
|
+
},
|
|
13173
|
+
/**
|
|
13174
|
+
* Updates PHP options for the website (e.g. `memory_limit`, `max_execution_time`, `upload_max_filesize`). Only provide the options you want to change, inside the `options` object. Values above the account plan limit are silently capped to that limit, so the request can succeed with a smaller applied value. Call the Get PHP details endpoint afterwards to read the applied value.
|
|
13175
|
+
* @summary Update PHP options
|
|
13176
|
+
* @param {string} username
|
|
13177
|
+
* @param {string} domain Domain name
|
|
13178
|
+
* @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
|
|
13179
|
+
* @param {*} [options] Override http request option.
|
|
13180
|
+
* @throws {RequiredError}
|
|
13181
|
+
*/
|
|
13182
|
+
updatePHPOptionsV1(username: string, domain: string, hostingV1PhpUpdatePhpOptionsRequest: HostingV1PhpUpdatePhpOptionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
13183
|
+
return localVarFp.updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options).then((request) => request(axios, basePath));
|
|
13184
|
+
},
|
|
13185
|
+
/**
|
|
13186
|
+
* Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
|
|
13187
|
+
* @summary Update PHP version
|
|
13188
|
+
* @param {string} username
|
|
13189
|
+
* @param {string} domain Domain name
|
|
13190
|
+
* @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
|
|
13191
|
+
* @param {*} [options] Override http request option.
|
|
13192
|
+
* @throws {RequiredError}
|
|
13193
|
+
*/
|
|
13194
|
+
updatePHPVersionV1(username: string, domain: string, hostingV1PhpUpdatePhpVersionRequest: HostingV1PhpUpdatePhpVersionRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
13195
|
+
return localVarFp.updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options).then((request) => request(axios, basePath));
|
|
13196
|
+
},
|
|
13197
|
+
};
|
|
13198
|
+
};
|
|
13199
|
+
|
|
13200
|
+
/**
|
|
13201
|
+
* HostingPHPApi - object-oriented interface
|
|
13202
|
+
* @export
|
|
13203
|
+
* @class HostingPHPApi
|
|
13204
|
+
* @extends {BaseAPI}
|
|
13205
|
+
*/
|
|
13206
|
+
export class HostingPHPApi extends BaseAPI {
|
|
13207
|
+
/**
|
|
13208
|
+
* Returns the full PHP configuration for the website: current version, available versions (supported and unsupported), enabled/disabled extensions, options with their current value, default, type and the plan limit (`max`), and conflicting extension groups. Use it to check the current PHP setup before updating the version, extensions or options.
|
|
13209
|
+
* @summary Get PHP details
|
|
13210
|
+
* @param {string} username
|
|
13211
|
+
* @param {string} domain Domain name
|
|
13212
|
+
* @param {*} [options] Override http request option.
|
|
13213
|
+
* @throws {RequiredError}
|
|
13214
|
+
* @memberof HostingPHPApi
|
|
13215
|
+
*/
|
|
13216
|
+
public getPHPDetailsV1(username: string, domain: string, options?: RawAxiosRequestConfig) {
|
|
13217
|
+
return HostingPHPApiFp(this.configuration).getPHPDetailsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
13218
|
+
}
|
|
13219
|
+
|
|
13220
|
+
/**
|
|
13221
|
+
* Returns the full phpinfo page (HTML) for the website. Use it to debug PHP issues or inspect the complete PHP environment of the website.
|
|
13222
|
+
* @summary Get PHP info
|
|
13223
|
+
* @param {string} username
|
|
13224
|
+
* @param {string} domain Domain name
|
|
13225
|
+
* @param {*} [options] Override http request option.
|
|
13226
|
+
* @throws {RequiredError}
|
|
13227
|
+
* @memberof HostingPHPApi
|
|
13228
|
+
*/
|
|
13229
|
+
public getPHPInfoV1(username: string, domain: string, options?: RawAxiosRequestConfig) {
|
|
13230
|
+
return HostingPHPApiFp(this.configuration).getPHPInfoV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
13231
|
+
}
|
|
13232
|
+
|
|
13233
|
+
/**
|
|
13234
|
+
* Resets all PHP extensions of the website to their default state. Use it to recover from extension conflicts or restore the original configuration.
|
|
13235
|
+
* @summary Reset PHP extensions
|
|
13236
|
+
* @param {string} username
|
|
13237
|
+
* @param {string} domain Domain name
|
|
13238
|
+
* @param {*} [options] Override http request option.
|
|
13239
|
+
* @throws {RequiredError}
|
|
13240
|
+
* @memberof HostingPHPApi
|
|
13241
|
+
*/
|
|
13242
|
+
public resetPHPExtensionsV1(username: string, domain: string, options?: RawAxiosRequestConfig) {
|
|
13243
|
+
return HostingPHPApiFp(this.configuration).resetPHPExtensionsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
13244
|
+
}
|
|
13245
|
+
|
|
13246
|
+
/**
|
|
13247
|
+
* Enables or disables PHP extensions (modules) for the website. Use the Get PHP details endpoint to check the current extension states before changing them.
|
|
13248
|
+
* @summary Update PHP extensions
|
|
13249
|
+
* @param {string} username
|
|
13250
|
+
* @param {string} domain Domain name
|
|
13251
|
+
* @param {HostingV1PhpUpdatePhpExtensionsRequest} hostingV1PhpUpdatePhpExtensionsRequest
|
|
13252
|
+
* @param {*} [options] Override http request option.
|
|
13253
|
+
* @throws {RequiredError}
|
|
13254
|
+
* @memberof HostingPHPApi
|
|
13255
|
+
*/
|
|
13256
|
+
public updatePHPExtensionsV1(username: string, domain: string, hostingV1PhpUpdatePhpExtensionsRequest: HostingV1PhpUpdatePhpExtensionsRequest, options?: RawAxiosRequestConfig) {
|
|
13257
|
+
return HostingPHPApiFp(this.configuration).updatePHPExtensionsV1(username, domain, hostingV1PhpUpdatePhpExtensionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13258
|
+
}
|
|
13259
|
+
|
|
13260
|
+
/**
|
|
13261
|
+
* Updates PHP options for the website (e.g. `memory_limit`, `max_execution_time`, `upload_max_filesize`). Only provide the options you want to change, inside the `options` object. Values above the account plan limit are silently capped to that limit, so the request can succeed with a smaller applied value. Call the Get PHP details endpoint afterwards to read the applied value.
|
|
13262
|
+
* @summary Update PHP options
|
|
13263
|
+
* @param {string} username
|
|
13264
|
+
* @param {string} domain Domain name
|
|
13265
|
+
* @param {HostingV1PhpUpdatePhpOptionsRequest} hostingV1PhpUpdatePhpOptionsRequest
|
|
13266
|
+
* @param {*} [options] Override http request option.
|
|
13267
|
+
* @throws {RequiredError}
|
|
13268
|
+
* @memberof HostingPHPApi
|
|
13269
|
+
*/
|
|
13270
|
+
public updatePHPOptionsV1(username: string, domain: string, hostingV1PhpUpdatePhpOptionsRequest: HostingV1PhpUpdatePhpOptionsRequest, options?: RawAxiosRequestConfig) {
|
|
13271
|
+
return HostingPHPApiFp(this.configuration).updatePHPOptionsV1(username, domain, hostingV1PhpUpdatePhpOptionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13272
|
+
}
|
|
13273
|
+
|
|
13274
|
+
/**
|
|
13275
|
+
* Changes the PHP version of the website. Use the Get PHP details endpoint to see the versions available for the website.
|
|
13276
|
+
* @summary Update PHP version
|
|
13277
|
+
* @param {string} username
|
|
13278
|
+
* @param {string} domain Domain name
|
|
13279
|
+
* @param {HostingV1PhpUpdatePhpVersionRequest} hostingV1PhpUpdatePhpVersionRequest
|
|
13280
|
+
* @param {*} [options] Override http request option.
|
|
13281
|
+
* @throws {RequiredError}
|
|
13282
|
+
* @memberof HostingPHPApi
|
|
13283
|
+
*/
|
|
13284
|
+
public updatePHPVersionV1(username: string, domain: string, hostingV1PhpUpdatePhpVersionRequest: HostingV1PhpUpdatePhpVersionRequest, options?: RawAxiosRequestConfig) {
|
|
13285
|
+
return HostingPHPApiFp(this.configuration).updatePHPVersionV1(username, domain, hostingV1PhpUpdatePhpVersionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13286
|
+
}
|
|
13287
|
+
}
|
|
13288
|
+
|
|
13289
|
+
|
|
13290
|
+
|
|
12582
13291
|
/**
|
|
12583
13292
|
* HostingWebsitesApi - axios parameter creator
|
|
12584
13293
|
* @export
|