hostinger-api-sdk 1.33.1 → 1.34.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 +727 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +420 -1
- package/dist/api.js +558 -11
- 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 +420 -1
- package/dist/esm/api.js +544 -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/AgencyHostingPHPApi.md +400 -0
- package/docs/AgencyHostingV1PhpExtensionResource.md +24 -0
- package/docs/AgencyHostingV1PhpOptionResource.md +30 -0
- package/docs/AgencyHostingV1PhpUpdateExtensionsRequest.md +20 -0
- package/docs/AgencyHostingV1PhpUpdateOptionsRequest.md +20 -0
- package/docs/AgencyHostingV1PhpUpdateOptionsRequestOptionsInner.md +22 -0
- package/docs/AgencyHostingV1PhpUpdateVersionRequest.md +20 -0
- package/docs/AgencyHostingV1PhpVersionResource.md +20 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/base.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.36.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/common.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.36.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/configuration.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.36.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -48,7 +48,7 @@ export class Configuration {
|
|
|
48
48
|
this.baseOptions = {
|
|
49
49
|
...param.baseOptions,
|
|
50
50
|
headers: {
|
|
51
|
-
'User-Agent': "hostinger-typescript-sdk/1.
|
|
51
|
+
'User-Agent': "hostinger-typescript-sdk/1.34.0",
|
|
52
52
|
...param.baseOptions?.headers,
|
|
53
53
|
},
|
|
54
54
|
};
|
package/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.36.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -312,6 +312,156 @@ export interface AgencyHostingV1OrdersPlanResource {
|
|
|
312
312
|
*/
|
|
313
313
|
'key': string | null;
|
|
314
314
|
}
|
|
315
|
+
/**
|
|
316
|
+
*
|
|
317
|
+
* @export
|
|
318
|
+
* @interface AgencyHostingV1PhpExtensionResource
|
|
319
|
+
*/
|
|
320
|
+
export interface AgencyHostingV1PhpExtensionResource {
|
|
321
|
+
/**
|
|
322
|
+
* PHP extension name.
|
|
323
|
+
* @type {string}
|
|
324
|
+
* @memberof AgencyHostingV1PhpExtensionResource
|
|
325
|
+
*/
|
|
326
|
+
'name': string;
|
|
327
|
+
/**
|
|
328
|
+
* What the extension provides.
|
|
329
|
+
* @type {string}
|
|
330
|
+
* @memberof AgencyHostingV1PhpExtensionResource
|
|
331
|
+
*/
|
|
332
|
+
'description': string;
|
|
333
|
+
/**
|
|
334
|
+
* Whether the extension is currently enabled. Extensions in the \"built-in\" state are compiled into PHP and cannot be turned off.
|
|
335
|
+
* @type {string}
|
|
336
|
+
* @memberof AgencyHostingV1PhpExtensionResource
|
|
337
|
+
*/
|
|
338
|
+
'state': AgencyHostingV1PhpExtensionResourceStateEnum;
|
|
339
|
+
}
|
|
340
|
+
export declare const AgencyHostingV1PhpExtensionResourceStateEnum: {
|
|
341
|
+
readonly Enabled: "enabled";
|
|
342
|
+
readonly Disabled: "disabled";
|
|
343
|
+
readonly BuiltIn: "built-in";
|
|
344
|
+
};
|
|
345
|
+
export type AgencyHostingV1PhpExtensionResourceStateEnum = typeof AgencyHostingV1PhpExtensionResourceStateEnum[keyof typeof AgencyHostingV1PhpExtensionResourceStateEnum];
|
|
346
|
+
/**
|
|
347
|
+
*
|
|
348
|
+
* @export
|
|
349
|
+
* @interface AgencyHostingV1PhpOptionResource
|
|
350
|
+
*/
|
|
351
|
+
export interface AgencyHostingV1PhpOptionResource {
|
|
352
|
+
/**
|
|
353
|
+
* php.ini directive name.
|
|
354
|
+
* @type {string}
|
|
355
|
+
* @memberof AgencyHostingV1PhpOptionResource
|
|
356
|
+
*/
|
|
357
|
+
'name': string;
|
|
358
|
+
/**
|
|
359
|
+
* What the directive controls.
|
|
360
|
+
* @type {string}
|
|
361
|
+
* @memberof AgencyHostingV1PhpOptionResource
|
|
362
|
+
*/
|
|
363
|
+
'description': string;
|
|
364
|
+
/**
|
|
365
|
+
* Value applied when no custom value is set.
|
|
366
|
+
* @type {string}
|
|
367
|
+
* @memberof AgencyHostingV1PhpOptionResource
|
|
368
|
+
*/
|
|
369
|
+
'default_value': string;
|
|
370
|
+
/**
|
|
371
|
+
* Values this option accepts. Null when the option accepts any value of its type.
|
|
372
|
+
* @type {Array<string>}
|
|
373
|
+
* @memberof AgencyHostingV1PhpOptionResource
|
|
374
|
+
*/
|
|
375
|
+
'allowed_values': Array<string> | null;
|
|
376
|
+
/**
|
|
377
|
+
* Value currently in effect for the website.
|
|
378
|
+
* @type {string}
|
|
379
|
+
* @memberof AgencyHostingV1PhpOptionResource
|
|
380
|
+
*/
|
|
381
|
+
'value': string;
|
|
382
|
+
/**
|
|
383
|
+
* Whether the option takes a single value or a list of values.
|
|
384
|
+
* @type {string}
|
|
385
|
+
* @memberof AgencyHostingV1PhpOptionResource
|
|
386
|
+
*/
|
|
387
|
+
'type': AgencyHostingV1PhpOptionResourceTypeEnum;
|
|
388
|
+
}
|
|
389
|
+
export declare const AgencyHostingV1PhpOptionResourceTypeEnum: {
|
|
390
|
+
readonly Value: "value";
|
|
391
|
+
readonly List: "list";
|
|
392
|
+
};
|
|
393
|
+
export type AgencyHostingV1PhpOptionResourceTypeEnum = typeof AgencyHostingV1PhpOptionResourceTypeEnum[keyof typeof AgencyHostingV1PhpOptionResourceTypeEnum];
|
|
394
|
+
/**
|
|
395
|
+
*
|
|
396
|
+
* @export
|
|
397
|
+
* @interface AgencyHostingV1PhpUpdateExtensionsRequest
|
|
398
|
+
*/
|
|
399
|
+
export interface AgencyHostingV1PhpUpdateExtensionsRequest {
|
|
400
|
+
/**
|
|
401
|
+
* Extension names, exactly as returned by the extensions endpoint.
|
|
402
|
+
* @type {Array<string>}
|
|
403
|
+
* @memberof AgencyHostingV1PhpUpdateExtensionsRequest
|
|
404
|
+
*/
|
|
405
|
+
'extensions': Array<string>;
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
*
|
|
409
|
+
* @export
|
|
410
|
+
* @interface AgencyHostingV1PhpUpdateOptionsRequest
|
|
411
|
+
*/
|
|
412
|
+
export interface AgencyHostingV1PhpUpdateOptionsRequest {
|
|
413
|
+
/**
|
|
414
|
+
* Option names and values. Each name must be one of the options returned by the options endpoint, and each value must satisfy that option\'s allowed_values when it declares them.
|
|
415
|
+
* @type {Array<AgencyHostingV1PhpUpdateOptionsRequestOptionsInner>}
|
|
416
|
+
* @memberof AgencyHostingV1PhpUpdateOptionsRequest
|
|
417
|
+
*/
|
|
418
|
+
'options': Array<AgencyHostingV1PhpUpdateOptionsRequestOptionsInner>;
|
|
419
|
+
}
|
|
420
|
+
/**
|
|
421
|
+
*
|
|
422
|
+
* @export
|
|
423
|
+
* @interface AgencyHostingV1PhpUpdateOptionsRequestOptionsInner
|
|
424
|
+
*/
|
|
425
|
+
export interface AgencyHostingV1PhpUpdateOptionsRequestOptionsInner {
|
|
426
|
+
/**
|
|
427
|
+
* php.ini directive name.
|
|
428
|
+
* @type {string}
|
|
429
|
+
* @memberof AgencyHostingV1PhpUpdateOptionsRequestOptionsInner
|
|
430
|
+
*/
|
|
431
|
+
'name': string;
|
|
432
|
+
/**
|
|
433
|
+
* Value to apply.
|
|
434
|
+
* @type {string}
|
|
435
|
+
* @memberof AgencyHostingV1PhpUpdateOptionsRequestOptionsInner
|
|
436
|
+
*/
|
|
437
|
+
'value': string;
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
*
|
|
441
|
+
* @export
|
|
442
|
+
* @interface AgencyHostingV1PhpUpdateVersionRequest
|
|
443
|
+
*/
|
|
444
|
+
export interface AgencyHostingV1PhpUpdateVersionRequest {
|
|
445
|
+
/**
|
|
446
|
+
* PHP version to switch the website to, as major.minor. Must be one of the versions returned by the available versions endpoint.
|
|
447
|
+
* @type {string}
|
|
448
|
+
* @memberof AgencyHostingV1PhpUpdateVersionRequest
|
|
449
|
+
*/
|
|
450
|
+
'version': string;
|
|
451
|
+
}
|
|
452
|
+
/**
|
|
453
|
+
*
|
|
454
|
+
* @export
|
|
455
|
+
* @interface AgencyHostingV1PhpVersionResource
|
|
456
|
+
*/
|
|
457
|
+
export interface AgencyHostingV1PhpVersionResource {
|
|
458
|
+
/**
|
|
459
|
+
* PHP version available for the website.
|
|
460
|
+
* @type {string}
|
|
461
|
+
* @memberof AgencyHostingV1PhpVersionResource
|
|
462
|
+
*/
|
|
463
|
+
'version': string;
|
|
464
|
+
}
|
|
315
465
|
/**
|
|
316
466
|
* Create a new Agency Plan website setup on the given order
|
|
317
467
|
* @export
|
|
@@ -13352,6 +13502,275 @@ export declare class AgencyHostingOrdersApi extends BaseAPI {
|
|
|
13352
13502
|
*/
|
|
13353
13503
|
listOrdersV1(page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgencyHostingListOrdersV1200Response, any, {}, any>>;
|
|
13354
13504
|
}
|
|
13505
|
+
/**
|
|
13506
|
+
* AgencyHostingPHPApi - axios parameter creator
|
|
13507
|
+
* @export
|
|
13508
|
+
*/
|
|
13509
|
+
export declare const AgencyHostingPHPApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
13510
|
+
/**
|
|
13511
|
+
* Lists the PHP versions an Agency Plan website can be switched to. The version the website is currently running is returned as settings.php.version by the website details endpoint.
|
|
13512
|
+
* @summary List available PHP versions for a website
|
|
13513
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
13514
|
+
* @param {*} [options] Override http request option.
|
|
13515
|
+
* @throws {RequiredError}
|
|
13516
|
+
*/
|
|
13517
|
+
listAvailablePHPVersionsForAWebsiteV1: (websiteUid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13518
|
+
/**
|
|
13519
|
+
* Lists the PHP versions available to websites created under an Agency Plan order, determined by the server the order is hosted on. Use this before creating a website; for a website that already exists, call the website-scoped versions endpoint instead.
|
|
13520
|
+
* @summary List available PHP versions for an order
|
|
13521
|
+
* @param {number} orderId Agency Plan order ID
|
|
13522
|
+
* @param {*} [options] Override http request option.
|
|
13523
|
+
* @throws {RequiredError}
|
|
13524
|
+
*/
|
|
13525
|
+
listAvailablePHPVersionsForAnOrderV1: (orderId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13526
|
+
/**
|
|
13527
|
+
* Lists every PHP extension available to an Agency Plan website and whether it is currently enabled.
|
|
13528
|
+
* @summary List PHP extensions for a website
|
|
13529
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
13530
|
+
* @param {*} [options] Override http request option.
|
|
13531
|
+
* @throws {RequiredError}
|
|
13532
|
+
*/
|
|
13533
|
+
listPHPExtensionsForAWebsiteV1: (websiteUid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13534
|
+
/**
|
|
13535
|
+
* Lists the php.ini directives that can be configured for an Agency Plan website, each with its default, the value currently in effect, and the values it accepts.
|
|
13536
|
+
* @summary List PHP options for a website
|
|
13537
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
13538
|
+
* @param {*} [options] Override http request option.
|
|
13539
|
+
* @throws {RequiredError}
|
|
13540
|
+
*/
|
|
13541
|
+
listPHPOptionsForAWebsiteV1: (websiteUid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13542
|
+
/**
|
|
13543
|
+
* Replaces the set of PHP extensions enabled on an Agency Plan website with the ones provided. Any toggleable extension not in the request is disabled, so call the extensions endpoint first and send the full desired set. Extensions compiled into PHP, reported with the \"built-in\" state, are always active and are unaffected.
|
|
13544
|
+
* @summary Replace website PHP extensions
|
|
13545
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
13546
|
+
* @param {AgencyHostingV1PhpUpdateExtensionsRequest} agencyHostingV1PhpUpdateExtensionsRequest
|
|
13547
|
+
* @param {*} [options] Override http request option.
|
|
13548
|
+
* @throws {RequiredError}
|
|
13549
|
+
*/
|
|
13550
|
+
replaceWebsitePHPExtensionsV1: (websiteUid: string, agencyHostingV1PhpUpdateExtensionsRequest: AgencyHostingV1PhpUpdateExtensionsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13551
|
+
/**
|
|
13552
|
+
* Replaces the custom php.ini values on an Agency Plan website with the ones provided. Any option not in the request is reset to its default, so call the options endpoint first and send the full desired set. Sending an empty array resets every option to its default.
|
|
13553
|
+
* @summary Replace website PHP options
|
|
13554
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
13555
|
+
* @param {AgencyHostingV1PhpUpdateOptionsRequest} agencyHostingV1PhpUpdateOptionsRequest
|
|
13556
|
+
* @param {*} [options] Override http request option.
|
|
13557
|
+
* @throws {RequiredError}
|
|
13558
|
+
*/
|
|
13559
|
+
replaceWebsitePHPOptionsV1: (websiteUid: string, agencyHostingV1PhpUpdateOptionsRequest: AgencyHostingV1PhpUpdateOptionsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13560
|
+
/**
|
|
13561
|
+
* Switches an Agency Plan website to a different PHP version. Call the available versions endpoint first to see which versions can be selected. The website restarts on the new version, so requests served during the switch may fail and code that is incompatible with the target version will break.
|
|
13562
|
+
* @summary Update website PHP version
|
|
13563
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
13564
|
+
* @param {AgencyHostingV1PhpUpdateVersionRequest} agencyHostingV1PhpUpdateVersionRequest
|
|
13565
|
+
* @param {*} [options] Override http request option.
|
|
13566
|
+
* @throws {RequiredError}
|
|
13567
|
+
*/
|
|
13568
|
+
updateWebsitePHPVersionV1: (websiteUid: string, agencyHostingV1PhpUpdateVersionRequest: AgencyHostingV1PhpUpdateVersionRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13569
|
+
};
|
|
13570
|
+
/**
|
|
13571
|
+
* AgencyHostingPHPApi - functional programming interface
|
|
13572
|
+
* @export
|
|
13573
|
+
*/
|
|
13574
|
+
export declare const AgencyHostingPHPApiFp: (configuration?: Configuration) => {
|
|
13575
|
+
/**
|
|
13576
|
+
* Lists the PHP versions an Agency Plan website can be switched to. The version the website is currently running is returned as settings.php.version by the website details endpoint.
|
|
13577
|
+
* @summary List available PHP versions for a website
|
|
13578
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
13579
|
+
* @param {*} [options] Override http request option.
|
|
13580
|
+
* @throws {RequiredError}
|
|
13581
|
+
*/
|
|
13582
|
+
listAvailablePHPVersionsForAWebsiteV1(websiteUid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AgencyHostingV1PhpVersionResource>>>;
|
|
13583
|
+
/**
|
|
13584
|
+
* Lists the PHP versions available to websites created under an Agency Plan order, determined by the server the order is hosted on. Use this before creating a website; for a website that already exists, call the website-scoped versions endpoint instead.
|
|
13585
|
+
* @summary List available PHP versions for an order
|
|
13586
|
+
* @param {number} orderId Agency Plan order ID
|
|
13587
|
+
* @param {*} [options] Override http request option.
|
|
13588
|
+
* @throws {RequiredError}
|
|
13589
|
+
*/
|
|
13590
|
+
listAvailablePHPVersionsForAnOrderV1(orderId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AgencyHostingV1PhpVersionResource>>>;
|
|
13591
|
+
/**
|
|
13592
|
+
* Lists every PHP extension available to an Agency Plan website and whether it is currently enabled.
|
|
13593
|
+
* @summary List PHP extensions for a website
|
|
13594
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
13595
|
+
* @param {*} [options] Override http request option.
|
|
13596
|
+
* @throws {RequiredError}
|
|
13597
|
+
*/
|
|
13598
|
+
listPHPExtensionsForAWebsiteV1(websiteUid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AgencyHostingV1PhpExtensionResource>>>;
|
|
13599
|
+
/**
|
|
13600
|
+
* Lists the php.ini directives that can be configured for an Agency Plan website, each with its default, the value currently in effect, and the values it accepts.
|
|
13601
|
+
* @summary List PHP options for a website
|
|
13602
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
13603
|
+
* @param {*} [options] Override http request option.
|
|
13604
|
+
* @throws {RequiredError}
|
|
13605
|
+
*/
|
|
13606
|
+
listPHPOptionsForAWebsiteV1(websiteUid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AgencyHostingV1PhpOptionResource>>>;
|
|
13607
|
+
/**
|
|
13608
|
+
* Replaces the set of PHP extensions enabled on an Agency Plan website with the ones provided. Any toggleable extension not in the request is disabled, so call the extensions endpoint first and send the full desired set. Extensions compiled into PHP, reported with the \"built-in\" state, are always active and are unaffected.
|
|
13609
|
+
* @summary Replace website PHP extensions
|
|
13610
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
13611
|
+
* @param {AgencyHostingV1PhpUpdateExtensionsRequest} agencyHostingV1PhpUpdateExtensionsRequest
|
|
13612
|
+
* @param {*} [options] Override http request option.
|
|
13613
|
+
* @throws {RequiredError}
|
|
13614
|
+
*/
|
|
13615
|
+
replaceWebsitePHPExtensionsV1(websiteUid: string, agencyHostingV1PhpUpdateExtensionsRequest: AgencyHostingV1PhpUpdateExtensionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
13616
|
+
/**
|
|
13617
|
+
* Replaces the custom php.ini values on an Agency Plan website with the ones provided. Any option not in the request is reset to its default, so call the options endpoint first and send the full desired set. Sending an empty array resets every option to its default.
|
|
13618
|
+
* @summary Replace website PHP options
|
|
13619
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
13620
|
+
* @param {AgencyHostingV1PhpUpdateOptionsRequest} agencyHostingV1PhpUpdateOptionsRequest
|
|
13621
|
+
* @param {*} [options] Override http request option.
|
|
13622
|
+
* @throws {RequiredError}
|
|
13623
|
+
*/
|
|
13624
|
+
replaceWebsitePHPOptionsV1(websiteUid: string, agencyHostingV1PhpUpdateOptionsRequest: AgencyHostingV1PhpUpdateOptionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
13625
|
+
/**
|
|
13626
|
+
* Switches an Agency Plan website to a different PHP version. Call the available versions endpoint first to see which versions can be selected. The website restarts on the new version, so requests served during the switch may fail and code that is incompatible with the target version will break.
|
|
13627
|
+
* @summary Update website PHP version
|
|
13628
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
13629
|
+
* @param {AgencyHostingV1PhpUpdateVersionRequest} agencyHostingV1PhpUpdateVersionRequest
|
|
13630
|
+
* @param {*} [options] Override http request option.
|
|
13631
|
+
* @throws {RequiredError}
|
|
13632
|
+
*/
|
|
13633
|
+
updateWebsitePHPVersionV1(websiteUid: string, agencyHostingV1PhpUpdateVersionRequest: AgencyHostingV1PhpUpdateVersionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
13634
|
+
};
|
|
13635
|
+
/**
|
|
13636
|
+
* AgencyHostingPHPApi - factory interface
|
|
13637
|
+
* @export
|
|
13638
|
+
*/
|
|
13639
|
+
export declare const AgencyHostingPHPApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
13640
|
+
/**
|
|
13641
|
+
* Lists the PHP versions an Agency Plan website can be switched to. The version the website is currently running is returned as settings.php.version by the website details endpoint.
|
|
13642
|
+
* @summary List available PHP versions for a website
|
|
13643
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
13644
|
+
* @param {*} [options] Override http request option.
|
|
13645
|
+
* @throws {RequiredError}
|
|
13646
|
+
*/
|
|
13647
|
+
listAvailablePHPVersionsForAWebsiteV1(websiteUid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AgencyHostingV1PhpVersionResource>>;
|
|
13648
|
+
/**
|
|
13649
|
+
* Lists the PHP versions available to websites created under an Agency Plan order, determined by the server the order is hosted on. Use this before creating a website; for a website that already exists, call the website-scoped versions endpoint instead.
|
|
13650
|
+
* @summary List available PHP versions for an order
|
|
13651
|
+
* @param {number} orderId Agency Plan order ID
|
|
13652
|
+
* @param {*} [options] Override http request option.
|
|
13653
|
+
* @throws {RequiredError}
|
|
13654
|
+
*/
|
|
13655
|
+
listAvailablePHPVersionsForAnOrderV1(orderId: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<AgencyHostingV1PhpVersionResource>>;
|
|
13656
|
+
/**
|
|
13657
|
+
* Lists every PHP extension available to an Agency Plan website and whether it is currently enabled.
|
|
13658
|
+
* @summary List PHP extensions for a website
|
|
13659
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
13660
|
+
* @param {*} [options] Override http request option.
|
|
13661
|
+
* @throws {RequiredError}
|
|
13662
|
+
*/
|
|
13663
|
+
listPHPExtensionsForAWebsiteV1(websiteUid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AgencyHostingV1PhpExtensionResource>>;
|
|
13664
|
+
/**
|
|
13665
|
+
* Lists the php.ini directives that can be configured for an Agency Plan website, each with its default, the value currently in effect, and the values it accepts.
|
|
13666
|
+
* @summary List PHP options for a website
|
|
13667
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
13668
|
+
* @param {*} [options] Override http request option.
|
|
13669
|
+
* @throws {RequiredError}
|
|
13670
|
+
*/
|
|
13671
|
+
listPHPOptionsForAWebsiteV1(websiteUid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AgencyHostingV1PhpOptionResource>>;
|
|
13672
|
+
/**
|
|
13673
|
+
* Replaces the set of PHP extensions enabled on an Agency Plan website with the ones provided. Any toggleable extension not in the request is disabled, so call the extensions endpoint first and send the full desired set. Extensions compiled into PHP, reported with the \"built-in\" state, are always active and are unaffected.
|
|
13674
|
+
* @summary Replace website PHP extensions
|
|
13675
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
13676
|
+
* @param {AgencyHostingV1PhpUpdateExtensionsRequest} agencyHostingV1PhpUpdateExtensionsRequest
|
|
13677
|
+
* @param {*} [options] Override http request option.
|
|
13678
|
+
* @throws {RequiredError}
|
|
13679
|
+
*/
|
|
13680
|
+
replaceWebsitePHPExtensionsV1(websiteUid: string, agencyHostingV1PhpUpdateExtensionsRequest: AgencyHostingV1PhpUpdateExtensionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
13681
|
+
/**
|
|
13682
|
+
* Replaces the custom php.ini values on an Agency Plan website with the ones provided. Any option not in the request is reset to its default, so call the options endpoint first and send the full desired set. Sending an empty array resets every option to its default.
|
|
13683
|
+
* @summary Replace website PHP options
|
|
13684
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
13685
|
+
* @param {AgencyHostingV1PhpUpdateOptionsRequest} agencyHostingV1PhpUpdateOptionsRequest
|
|
13686
|
+
* @param {*} [options] Override http request option.
|
|
13687
|
+
* @throws {RequiredError}
|
|
13688
|
+
*/
|
|
13689
|
+
replaceWebsitePHPOptionsV1(websiteUid: string, agencyHostingV1PhpUpdateOptionsRequest: AgencyHostingV1PhpUpdateOptionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
13690
|
+
/**
|
|
13691
|
+
* Switches an Agency Plan website to a different PHP version. Call the available versions endpoint first to see which versions can be selected. The website restarts on the new version, so requests served during the switch may fail and code that is incompatible with the target version will break.
|
|
13692
|
+
* @summary Update website PHP version
|
|
13693
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
13694
|
+
* @param {AgencyHostingV1PhpUpdateVersionRequest} agencyHostingV1PhpUpdateVersionRequest
|
|
13695
|
+
* @param {*} [options] Override http request option.
|
|
13696
|
+
* @throws {RequiredError}
|
|
13697
|
+
*/
|
|
13698
|
+
updateWebsitePHPVersionV1(websiteUid: string, agencyHostingV1PhpUpdateVersionRequest: AgencyHostingV1PhpUpdateVersionRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
13699
|
+
};
|
|
13700
|
+
/**
|
|
13701
|
+
* AgencyHostingPHPApi - object-oriented interface
|
|
13702
|
+
* @export
|
|
13703
|
+
* @class AgencyHostingPHPApi
|
|
13704
|
+
* @extends {BaseAPI}
|
|
13705
|
+
*/
|
|
13706
|
+
export declare class AgencyHostingPHPApi extends BaseAPI {
|
|
13707
|
+
/**
|
|
13708
|
+
* Lists the PHP versions an Agency Plan website can be switched to. The version the website is currently running is returned as settings.php.version by the website details endpoint.
|
|
13709
|
+
* @summary List available PHP versions for a website
|
|
13710
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
13711
|
+
* @param {*} [options] Override http request option.
|
|
13712
|
+
* @throws {RequiredError}
|
|
13713
|
+
* @memberof AgencyHostingPHPApi
|
|
13714
|
+
*/
|
|
13715
|
+
listAvailablePHPVersionsForAWebsiteV1(websiteUid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgencyHostingV1PhpVersionResource[], any, {}, any>>;
|
|
13716
|
+
/**
|
|
13717
|
+
* Lists the PHP versions available to websites created under an Agency Plan order, determined by the server the order is hosted on. Use this before creating a website; for a website that already exists, call the website-scoped versions endpoint instead.
|
|
13718
|
+
* @summary List available PHP versions for an order
|
|
13719
|
+
* @param {number} orderId Agency Plan order ID
|
|
13720
|
+
* @param {*} [options] Override http request option.
|
|
13721
|
+
* @throws {RequiredError}
|
|
13722
|
+
* @memberof AgencyHostingPHPApi
|
|
13723
|
+
*/
|
|
13724
|
+
listAvailablePHPVersionsForAnOrderV1(orderId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgencyHostingV1PhpVersionResource[], any, {}, any>>;
|
|
13725
|
+
/**
|
|
13726
|
+
* Lists every PHP extension available to an Agency Plan website and whether it is currently enabled.
|
|
13727
|
+
* @summary List PHP extensions for a website
|
|
13728
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
13729
|
+
* @param {*} [options] Override http request option.
|
|
13730
|
+
* @throws {RequiredError}
|
|
13731
|
+
* @memberof AgencyHostingPHPApi
|
|
13732
|
+
*/
|
|
13733
|
+
listPHPExtensionsForAWebsiteV1(websiteUid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgencyHostingV1PhpExtensionResource[], any, {}, any>>;
|
|
13734
|
+
/**
|
|
13735
|
+
* Lists the php.ini directives that can be configured for an Agency Plan website, each with its default, the value currently in effect, and the values it accepts.
|
|
13736
|
+
* @summary List PHP options for a website
|
|
13737
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
13738
|
+
* @param {*} [options] Override http request option.
|
|
13739
|
+
* @throws {RequiredError}
|
|
13740
|
+
* @memberof AgencyHostingPHPApi
|
|
13741
|
+
*/
|
|
13742
|
+
listPHPOptionsForAWebsiteV1(websiteUid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgencyHostingV1PhpOptionResource[], any, {}, any>>;
|
|
13743
|
+
/**
|
|
13744
|
+
* Replaces the set of PHP extensions enabled on an Agency Plan website with the ones provided. Any toggleable extension not in the request is disabled, so call the extensions endpoint first and send the full desired set. Extensions compiled into PHP, reported with the \"built-in\" state, are always active and are unaffected.
|
|
13745
|
+
* @summary Replace website PHP extensions
|
|
13746
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
13747
|
+
* @param {AgencyHostingV1PhpUpdateExtensionsRequest} agencyHostingV1PhpUpdateExtensionsRequest
|
|
13748
|
+
* @param {*} [options] Override http request option.
|
|
13749
|
+
* @throws {RequiredError}
|
|
13750
|
+
* @memberof AgencyHostingPHPApi
|
|
13751
|
+
*/
|
|
13752
|
+
replaceWebsitePHPExtensionsV1(websiteUid: string, agencyHostingV1PhpUpdateExtensionsRequest: AgencyHostingV1PhpUpdateExtensionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
13753
|
+
/**
|
|
13754
|
+
* Replaces the custom php.ini values on an Agency Plan website with the ones provided. Any option not in the request is reset to its default, so call the options endpoint first and send the full desired set. Sending an empty array resets every option to its default.
|
|
13755
|
+
* @summary Replace website PHP options
|
|
13756
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
13757
|
+
* @param {AgencyHostingV1PhpUpdateOptionsRequest} agencyHostingV1PhpUpdateOptionsRequest
|
|
13758
|
+
* @param {*} [options] Override http request option.
|
|
13759
|
+
* @throws {RequiredError}
|
|
13760
|
+
* @memberof AgencyHostingPHPApi
|
|
13761
|
+
*/
|
|
13762
|
+
replaceWebsitePHPOptionsV1(websiteUid: string, agencyHostingV1PhpUpdateOptionsRequest: AgencyHostingV1PhpUpdateOptionsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
13763
|
+
/**
|
|
13764
|
+
* Switches an Agency Plan website to a different PHP version. Call the available versions endpoint first to see which versions can be selected. The website restarts on the new version, so requests served during the switch may fail and code that is incompatible with the target version will break.
|
|
13765
|
+
* @summary Update website PHP version
|
|
13766
|
+
* @param {string} websiteUid Agency Plan website UID
|
|
13767
|
+
* @param {AgencyHostingV1PhpUpdateVersionRequest} agencyHostingV1PhpUpdateVersionRequest
|
|
13768
|
+
* @param {*} [options] Override http request option.
|
|
13769
|
+
* @throws {RequiredError}
|
|
13770
|
+
* @memberof AgencyHostingPHPApi
|
|
13771
|
+
*/
|
|
13772
|
+
updateWebsitePHPVersionV1(websiteUid: string, agencyHostingV1PhpUpdateVersionRequest: AgencyHostingV1PhpUpdateVersionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
13773
|
+
}
|
|
13355
13774
|
/**
|
|
13356
13775
|
* AgencyHostingWebsiteSetupsApi - axios parameter creator
|
|
13357
13776
|
* @export
|