@hostinger/sdk 1.52.1 → 1.52.2
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 +450 -18
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +317 -16
- package/dist/api.js +250 -15
- 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 +317 -16
- package/dist/esm/api.js +250 -15
- 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/HostingGitApi.md +178 -2
- package/docs/HostingNodeJSApi.md +1 -1
- package/docs/HostingV1GitGitAutoDeploymentSettingsResource.md +31 -0
- package/docs/HostingV1GitGitCommitAuthorResource.md +22 -0
- package/docs/HostingV1GitGitCommitResource.md +24 -0
- package/docs/HostingV1GitUpdateGitAutoDeploymentSettingsRequest.md +30 -0
- package/docs/HostingV1NodeJsSourceOptionsResource.md +11 -0
- package/docs/HostingV1NodeJsStartBuildRequest.md +1 -1
- package/docs/HostingV1NodeJsStartBuildRequestSourceOptions.md +9 -1
- 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.52.
|
|
6
|
+
* API Version: 1.52.2
|
|
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
|
|
@@ -7358,6 +7358,93 @@ export interface HostingV1FilesUploadUrlResource {
|
|
|
7358
7358
|
*/
|
|
7359
7359
|
'rest_auth_key': string;
|
|
7360
7360
|
}
|
|
7361
|
+
/**
|
|
7362
|
+
* Every field is null when the website has no Git auto-deployment configured.
|
|
7363
|
+
* @export
|
|
7364
|
+
* @interface HostingV1GitGitAutoDeploymentSettingsResource
|
|
7365
|
+
*/
|
|
7366
|
+
export interface HostingV1GitGitAutoDeploymentSettingsResource {
|
|
7367
|
+
/**
|
|
7368
|
+
* Git installation the repository is accessed through
|
|
7369
|
+
* @type {string}
|
|
7370
|
+
* @memberof HostingV1GitGitAutoDeploymentSettingsResource
|
|
7371
|
+
*/
|
|
7372
|
+
'installation_uuid': string | null;
|
|
7373
|
+
/**
|
|
7374
|
+
* Whether pushes to the branch deploy automatically
|
|
7375
|
+
* @type {boolean}
|
|
7376
|
+
* @memberof HostingV1GitGitAutoDeploymentSettingsResource
|
|
7377
|
+
*/
|
|
7378
|
+
'is_enabled': boolean | null;
|
|
7379
|
+
/**
|
|
7380
|
+
* Repository owner login
|
|
7381
|
+
* @type {string}
|
|
7382
|
+
* @memberof HostingV1GitGitAutoDeploymentSettingsResource
|
|
7383
|
+
*/
|
|
7384
|
+
'owner': string | null;
|
|
7385
|
+
/**
|
|
7386
|
+
* Repository name
|
|
7387
|
+
* @type {string}
|
|
7388
|
+
* @memberof HostingV1GitGitAutoDeploymentSettingsResource
|
|
7389
|
+
*/
|
|
7390
|
+
'repository': string | null;
|
|
7391
|
+
/**
|
|
7392
|
+
* Branch that is deployed
|
|
7393
|
+
* @type {string}
|
|
7394
|
+
* @memberof HostingV1GitGitAutoDeploymentSettingsResource
|
|
7395
|
+
*/
|
|
7396
|
+
'branch': string | null;
|
|
7397
|
+
/**
|
|
7398
|
+
* Subdirectory under the website document root the repository deploys into. Empty means the document root.
|
|
7399
|
+
* @type {string}
|
|
7400
|
+
* @memberof HostingV1GitGitAutoDeploymentSettingsResource
|
|
7401
|
+
*/
|
|
7402
|
+
'directory': string | null;
|
|
7403
|
+
}
|
|
7404
|
+
/**
|
|
7405
|
+
*
|
|
7406
|
+
* @export
|
|
7407
|
+
* @interface HostingV1GitGitCommitAuthorResource
|
|
7408
|
+
*/
|
|
7409
|
+
export interface HostingV1GitGitCommitAuthorResource {
|
|
7410
|
+
/**
|
|
7411
|
+
* Author name as recorded in the commit
|
|
7412
|
+
* @type {string}
|
|
7413
|
+
* @memberof HostingV1GitGitCommitAuthorResource
|
|
7414
|
+
*/
|
|
7415
|
+
'name': string;
|
|
7416
|
+
/**
|
|
7417
|
+
* Avatar URL of the author on the Git provider
|
|
7418
|
+
* @type {string}
|
|
7419
|
+
* @memberof HostingV1GitGitCommitAuthorResource
|
|
7420
|
+
*/
|
|
7421
|
+
'avatar_url': string | null;
|
|
7422
|
+
}
|
|
7423
|
+
/**
|
|
7424
|
+
*
|
|
7425
|
+
* @export
|
|
7426
|
+
* @interface HostingV1GitGitCommitResource
|
|
7427
|
+
*/
|
|
7428
|
+
export interface HostingV1GitGitCommitResource {
|
|
7429
|
+
/**
|
|
7430
|
+
* Full commit SHA
|
|
7431
|
+
* @type {string}
|
|
7432
|
+
* @memberof HostingV1GitGitCommitResource
|
|
7433
|
+
*/
|
|
7434
|
+
'hash': string;
|
|
7435
|
+
/**
|
|
7436
|
+
* Commit message
|
|
7437
|
+
* @type {string}
|
|
7438
|
+
* @memberof HostingV1GitGitCommitResource
|
|
7439
|
+
*/
|
|
7440
|
+
'message': string;
|
|
7441
|
+
/**
|
|
7442
|
+
*
|
|
7443
|
+
* @type {HostingV1GitGitCommitAuthorResource}
|
|
7444
|
+
* @memberof HostingV1GitGitCommitResource
|
|
7445
|
+
*/
|
|
7446
|
+
'author': HostingV1GitGitCommitAuthorResource;
|
|
7447
|
+
}
|
|
7361
7448
|
/**
|
|
7362
7449
|
*
|
|
7363
7450
|
* @export
|
|
@@ -7496,6 +7583,49 @@ export interface HostingV1GitGitRepositoryResource {
|
|
|
7496
7583
|
*/
|
|
7497
7584
|
'default_branch': string;
|
|
7498
7585
|
}
|
|
7586
|
+
/**
|
|
7587
|
+
*
|
|
7588
|
+
* @export
|
|
7589
|
+
* @interface HostingV1GitUpdateGitAutoDeploymentSettingsRequest
|
|
7590
|
+
*/
|
|
7591
|
+
export interface HostingV1GitUpdateGitAutoDeploymentSettingsRequest {
|
|
7592
|
+
/**
|
|
7593
|
+
* Active Git installation from `List Git installations`
|
|
7594
|
+
* @type {string}
|
|
7595
|
+
* @memberof HostingV1GitUpdateGitAutoDeploymentSettingsRequest
|
|
7596
|
+
*/
|
|
7597
|
+
'installation_uuid': string;
|
|
7598
|
+
/**
|
|
7599
|
+
* Repository owner login, as returned by `List Git installation repositories`. GitLab group paths use slashes.
|
|
7600
|
+
* @type {string}
|
|
7601
|
+
* @memberof HostingV1GitUpdateGitAutoDeploymentSettingsRequest
|
|
7602
|
+
*/
|
|
7603
|
+
'owner': string;
|
|
7604
|
+
/**
|
|
7605
|
+
* Repository name without the .git suffix
|
|
7606
|
+
* @type {string}
|
|
7607
|
+
* @memberof HostingV1GitUpdateGitAutoDeploymentSettingsRequest
|
|
7608
|
+
*/
|
|
7609
|
+
'repository': string;
|
|
7610
|
+
/**
|
|
7611
|
+
* Branch to deploy
|
|
7612
|
+
* @type {string}
|
|
7613
|
+
* @memberof HostingV1GitUpdateGitAutoDeploymentSettingsRequest
|
|
7614
|
+
*/
|
|
7615
|
+
'branch': string;
|
|
7616
|
+
/**
|
|
7617
|
+
* Subdirectory under the website document root to deploy into. Empty, null or omitted means the document root.
|
|
7618
|
+
* @type {string}
|
|
7619
|
+
* @memberof HostingV1GitUpdateGitAutoDeploymentSettingsRequest
|
|
7620
|
+
*/
|
|
7621
|
+
'directory': string | null;
|
|
7622
|
+
/**
|
|
7623
|
+
* Whether pushes to the branch deploy automatically
|
|
7624
|
+
* @type {boolean}
|
|
7625
|
+
* @memberof HostingV1GitUpdateGitAutoDeploymentSettingsRequest
|
|
7626
|
+
*/
|
|
7627
|
+
'is_enabled': boolean;
|
|
7628
|
+
}
|
|
7499
7629
|
/**
|
|
7500
7630
|
*
|
|
7501
7631
|
* @export
|
|
@@ -7627,7 +7757,8 @@ export const HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = {
|
|
|
7627
7757
|
|
|
7628
7758
|
export type HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = typeof HostingV1NodeJsBuildOptionsResourcePackageManagerEnum[keyof typeof HostingV1NodeJsBuildOptionsResourcePackageManagerEnum];
|
|
7629
7759
|
export const HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = {
|
|
7630
|
-
Archive: 'archive'
|
|
7760
|
+
Archive: 'archive',
|
|
7761
|
+
Git: 'git'
|
|
7631
7762
|
} as const;
|
|
7632
7763
|
|
|
7633
7764
|
export type HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = typeof HostingV1NodeJsBuildOptionsResourceSourceTypeEnum[keyof typeof HostingV1NodeJsBuildOptionsResourceSourceTypeEnum];
|
|
@@ -8026,7 +8157,7 @@ export interface HostingV1NodeJsSetBuildEnvVarsRequestEnvVarsInner {
|
|
|
8026
8157
|
'value': string;
|
|
8027
8158
|
}
|
|
8028
8159
|
/**
|
|
8029
|
-
*
|
|
8160
|
+
* Which keys carry values depends on the parent source_type; the others are null.
|
|
8030
8161
|
* @export
|
|
8031
8162
|
* @interface HostingV1NodeJsSourceOptionsResource
|
|
8032
8163
|
*/
|
|
@@ -8037,6 +8168,36 @@ export interface HostingV1NodeJsSourceOptionsResource {
|
|
|
8037
8168
|
* @memberof HostingV1NodeJsSourceOptionsResource
|
|
8038
8169
|
*/
|
|
8039
8170
|
'archive_path': string | null;
|
|
8171
|
+
/**
|
|
8172
|
+
* Repository owner login (present if source_type is \"git\")
|
|
8173
|
+
* @type {string}
|
|
8174
|
+
* @memberof HostingV1NodeJsSourceOptionsResource
|
|
8175
|
+
*/
|
|
8176
|
+
'owner': string | null;
|
|
8177
|
+
/**
|
|
8178
|
+
* Repository name without the .git suffix (present if source_type is \"git\")
|
|
8179
|
+
* @type {string}
|
|
8180
|
+
* @memberof HostingV1NodeJsSourceOptionsResource
|
|
8181
|
+
*/
|
|
8182
|
+
'repository': string | null;
|
|
8183
|
+
/**
|
|
8184
|
+
* Branch that was built (present if source_type is \"git\")
|
|
8185
|
+
* @type {string}
|
|
8186
|
+
* @memberof HostingV1NodeJsSourceOptionsResource
|
|
8187
|
+
*/
|
|
8188
|
+
'branch': string | null;
|
|
8189
|
+
/**
|
|
8190
|
+
* Git installation used to access the repository (present if source_type is \"git\")
|
|
8191
|
+
* @type {string}
|
|
8192
|
+
* @memberof HostingV1NodeJsSourceOptionsResource
|
|
8193
|
+
*/
|
|
8194
|
+
'installation_uuid': string | null;
|
|
8195
|
+
/**
|
|
8196
|
+
*
|
|
8197
|
+
* @type {HostingV1GitGitCommitResource}
|
|
8198
|
+
* @memberof HostingV1NodeJsSourceOptionsResource
|
|
8199
|
+
*/
|
|
8200
|
+
'commit': HostingV1GitGitCommitResource | null;
|
|
8040
8201
|
}
|
|
8041
8202
|
/**
|
|
8042
8203
|
*
|
|
@@ -8087,7 +8248,7 @@ export interface HostingV1NodeJsStartBuildRequest {
|
|
|
8087
8248
|
*/
|
|
8088
8249
|
'package_manager': HostingV1NodeJsStartBuildRequestPackageManagerEnum | null;
|
|
8089
8250
|
/**
|
|
8090
|
-
*
|
|
8251
|
+
* Where the files come from: `archive` (an uploaded archive on the website) or `git` (a branch of a repository reachable through a Git installation).
|
|
8091
8252
|
* @type {string}
|
|
8092
8253
|
* @memberof HostingV1NodeJsStartBuildRequest
|
|
8093
8254
|
*/
|
|
@@ -8139,13 +8300,14 @@ export const HostingV1NodeJsStartBuildRequestPackageManagerEnum = {
|
|
|
8139
8300
|
|
|
8140
8301
|
export type HostingV1NodeJsStartBuildRequestPackageManagerEnum = typeof HostingV1NodeJsStartBuildRequestPackageManagerEnum[keyof typeof HostingV1NodeJsStartBuildRequestPackageManagerEnum];
|
|
8141
8302
|
export const HostingV1NodeJsStartBuildRequestSourceTypeEnum = {
|
|
8142
|
-
Archive: 'archive'
|
|
8303
|
+
Archive: 'archive',
|
|
8304
|
+
Git: 'git'
|
|
8143
8305
|
} as const;
|
|
8144
8306
|
|
|
8145
8307
|
export type HostingV1NodeJsStartBuildRequestSourceTypeEnum = typeof HostingV1NodeJsStartBuildRequestSourceTypeEnum[keyof typeof HostingV1NodeJsStartBuildRequestSourceTypeEnum];
|
|
8146
8308
|
|
|
8147
8309
|
/**
|
|
8148
|
-
* Source-specific options
|
|
8310
|
+
* Source-specific options. For `archive` send `archive_path`. For `git` send `owner`, `repository`, `branch` and `installation_uuid`, taken from `List Git installations` and `List Git installation repositories`.
|
|
8149
8311
|
* @export
|
|
8150
8312
|
* @interface HostingV1NodeJsStartBuildRequestSourceOptions
|
|
8151
8313
|
*/
|
|
@@ -8156,6 +8318,30 @@ export interface HostingV1NodeJsStartBuildRequestSourceOptions {
|
|
|
8156
8318
|
* @memberof HostingV1NodeJsStartBuildRequestSourceOptions
|
|
8157
8319
|
*/
|
|
8158
8320
|
'archive_path': string;
|
|
8321
|
+
/**
|
|
8322
|
+
* Repository owner login (required if source is \"git\"). GitLab group paths use slashes.
|
|
8323
|
+
* @type {string}
|
|
8324
|
+
* @memberof HostingV1NodeJsStartBuildRequestSourceOptions
|
|
8325
|
+
*/
|
|
8326
|
+
'owner': string;
|
|
8327
|
+
/**
|
|
8328
|
+
* Repository name without the .git suffix (required if source is \"git\")
|
|
8329
|
+
* @type {string}
|
|
8330
|
+
* @memberof HostingV1NodeJsStartBuildRequestSourceOptions
|
|
8331
|
+
*/
|
|
8332
|
+
'repository': string;
|
|
8333
|
+
/**
|
|
8334
|
+
* Branch to build (required if source is \"git\")
|
|
8335
|
+
* @type {string}
|
|
8336
|
+
* @memberof HostingV1NodeJsStartBuildRequestSourceOptions
|
|
8337
|
+
*/
|
|
8338
|
+
'branch': string;
|
|
8339
|
+
/**
|
|
8340
|
+
* Git installation used to access the repository (required if source is \"git\")
|
|
8341
|
+
* @type {string}
|
|
8342
|
+
* @memberof HostingV1NodeJsStartBuildRequestSourceOptions
|
|
8343
|
+
*/
|
|
8344
|
+
'installation_uuid': string;
|
|
8159
8345
|
}
|
|
8160
8346
|
/**
|
|
8161
8347
|
*
|
|
@@ -30812,7 +30998,91 @@ export type ListWebsiteFilesAndDirectoriesV1FileTypesEnum = typeof ListWebsiteFi
|
|
|
30812
30998
|
export const HostingGitApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
30813
30999
|
return {
|
|
30814
31000
|
/**
|
|
30815
|
-
*
|
|
31001
|
+
* Removes the Git auto-deployment settings of the website. Files already deployed stay on the website; pushes stop deploying until settings are saved again. Succeeds also when nothing is configured.
|
|
31002
|
+
* @summary Delete Git auto-deployment settings
|
|
31003
|
+
* @param {string} username
|
|
31004
|
+
* @param {string} domain Domain name
|
|
31005
|
+
* @param {*} [options] Override http request option.
|
|
31006
|
+
* @throws {RequiredError}
|
|
31007
|
+
*/
|
|
31008
|
+
deleteGitAutoDeploymentSettingsV1: async (username: string, domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
31009
|
+
// verify required parameter 'username' is not null or undefined
|
|
31010
|
+
assertParamExists('deleteGitAutoDeploymentSettingsV1', 'username', username)
|
|
31011
|
+
// verify required parameter 'domain' is not null or undefined
|
|
31012
|
+
assertParamExists('deleteGitAutoDeploymentSettingsV1', 'domain', domain)
|
|
31013
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/git/auto-deployments/settings`
|
|
31014
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
31015
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
31016
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
31017
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
31018
|
+
let baseOptions;
|
|
31019
|
+
if (configuration) {
|
|
31020
|
+
baseOptions = configuration.baseOptions;
|
|
31021
|
+
}
|
|
31022
|
+
|
|
31023
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
31024
|
+
const localVarHeaderParameter = {} as any;
|
|
31025
|
+
const localVarQueryParameter = {} as any;
|
|
31026
|
+
|
|
31027
|
+
// authentication apiToken required
|
|
31028
|
+
// http bearer authentication required
|
|
31029
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
31030
|
+
|
|
31031
|
+
|
|
31032
|
+
|
|
31033
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
31034
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
31035
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
31036
|
+
|
|
31037
|
+
return {
|
|
31038
|
+
url: toPathString(localVarUrlObj),
|
|
31039
|
+
options: localVarRequestOptions,
|
|
31040
|
+
};
|
|
31041
|
+
},
|
|
31042
|
+
/**
|
|
31043
|
+
* Returns the Git auto-deployment settings of the website: which repository and branch deploy into which directory, and whether pushes trigger a deployment. `is_enabled` false keeps the repository link but ignores pushes. When the website has no auto-deployment configured every field is null. Save settings with `Update Git auto-deployment settings`.
|
|
31044
|
+
* @summary Get Git auto-deployment settings
|
|
31045
|
+
* @param {string} username
|
|
31046
|
+
* @param {string} domain Domain name
|
|
31047
|
+
* @param {*} [options] Override http request option.
|
|
31048
|
+
* @throws {RequiredError}
|
|
31049
|
+
*/
|
|
31050
|
+
getGitAutoDeploymentSettingsV1: async (username: string, domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
31051
|
+
// verify required parameter 'username' is not null or undefined
|
|
31052
|
+
assertParamExists('getGitAutoDeploymentSettingsV1', 'username', username)
|
|
31053
|
+
// verify required parameter 'domain' is not null or undefined
|
|
31054
|
+
assertParamExists('getGitAutoDeploymentSettingsV1', 'domain', domain)
|
|
31055
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/git/auto-deployments/settings`
|
|
31056
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
31057
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
31058
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
31059
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
31060
|
+
let baseOptions;
|
|
31061
|
+
if (configuration) {
|
|
31062
|
+
baseOptions = configuration.baseOptions;
|
|
31063
|
+
}
|
|
31064
|
+
|
|
31065
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
31066
|
+
const localVarHeaderParameter = {} as any;
|
|
31067
|
+
const localVarQueryParameter = {} as any;
|
|
31068
|
+
|
|
31069
|
+
// authentication apiToken required
|
|
31070
|
+
// http bearer authentication required
|
|
31071
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
31072
|
+
|
|
31073
|
+
|
|
31074
|
+
|
|
31075
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
31076
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
31077
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
31078
|
+
|
|
31079
|
+
return {
|
|
31080
|
+
url: toPathString(localVarUrlObj),
|
|
31081
|
+
options: localVarRequestOptions,
|
|
31082
|
+
};
|
|
31083
|
+
},
|
|
31084
|
+
/**
|
|
31085
|
+
* Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and a branch (`default_branch` or another one) go into `source_options` of `Start Node.js build` or into `Update Git auto-deployment settings`. Returns 404 when the installation does not belong to the customer. Limited to 10 calls per minute per API client (429 above that).
|
|
30816
31086
|
* @summary List Git installation repositories
|
|
30817
31087
|
* @param {string} uuid Git installation UUID from the List Git installations endpoint
|
|
30818
31088
|
* @param {*} [options] Override http request option.
|
|
@@ -30850,7 +31120,7 @@ export const HostingGitApiAxiosParamCreator = function (configuration?: Configur
|
|
|
30850
31120
|
};
|
|
30851
31121
|
},
|
|
30852
31122
|
/**
|
|
30853
|
-
* Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, GitHub has to be connected once in hPanel (Websites, Manage, Advanced, Git
|
|
31123
|
+
* Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, a Git provider (GitHub or GitLab) has to be connected once in hPanel (Websites, Manage, Advanced, Git; or Add Website, Node.js Web App, Import Git Repository); this endpoint then lists the new installation. Use `uuid` as the path parameter of `List Git installation repositories`, and as `installation_uuid` in `Start Node.js build` with `source_type` `git` and in `Update Git auto-deployment settings`.
|
|
30854
31124
|
* @summary List Git installations
|
|
30855
31125
|
* @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
|
|
30856
31126
|
* @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
|
|
@@ -30888,6 +31158,54 @@ export const HostingGitApiAxiosParamCreator = function (configuration?: Configur
|
|
|
30888
31158
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30889
31159
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
30890
31160
|
|
|
31161
|
+
return {
|
|
31162
|
+
url: toPathString(localVarUrlObj),
|
|
31163
|
+
options: localVarRequestOptions,
|
|
31164
|
+
};
|
|
31165
|
+
},
|
|
31166
|
+
/**
|
|
31167
|
+
* Creates or replaces the Git auto-deployment settings of the website: repository, branch, the directory under the document root to deploy into, and `is_enabled`. Send the full set; `is_enabled` defaults to true and `directory` to the document root. `installation_uuid` must be an installation from `List Git installations` that belongs to the same customer as the website. For PHP and static websites, saving with `is_enabled` true deploys the branch right away and every later push to that branch deploys again. For Node.js and Website Builder websites saving does not clone anything. On a Node.js website start the first deploy with `Start Node.js build` using `source_type` `git`; pushes then trigger new builds with the build settings stored for the website.
|
|
31168
|
+
* @summary Update Git auto-deployment settings
|
|
31169
|
+
* @param {string} username
|
|
31170
|
+
* @param {string} domain Domain name
|
|
31171
|
+
* @param {HostingV1GitUpdateGitAutoDeploymentSettingsRequest} hostingV1GitUpdateGitAutoDeploymentSettingsRequest
|
|
31172
|
+
* @param {*} [options] Override http request option.
|
|
31173
|
+
* @throws {RequiredError}
|
|
31174
|
+
*/
|
|
31175
|
+
updateGitAutoDeploymentSettingsV1: async (username: string, domain: string, hostingV1GitUpdateGitAutoDeploymentSettingsRequest: HostingV1GitUpdateGitAutoDeploymentSettingsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
31176
|
+
// verify required parameter 'username' is not null or undefined
|
|
31177
|
+
assertParamExists('updateGitAutoDeploymentSettingsV1', 'username', username)
|
|
31178
|
+
// verify required parameter 'domain' is not null or undefined
|
|
31179
|
+
assertParamExists('updateGitAutoDeploymentSettingsV1', 'domain', domain)
|
|
31180
|
+
// verify required parameter 'hostingV1GitUpdateGitAutoDeploymentSettingsRequest' is not null or undefined
|
|
31181
|
+
assertParamExists('updateGitAutoDeploymentSettingsV1', 'hostingV1GitUpdateGitAutoDeploymentSettingsRequest', hostingV1GitUpdateGitAutoDeploymentSettingsRequest)
|
|
31182
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/git/auto-deployments/settings`
|
|
31183
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
31184
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
31185
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
31186
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
31187
|
+
let baseOptions;
|
|
31188
|
+
if (configuration) {
|
|
31189
|
+
baseOptions = configuration.baseOptions;
|
|
31190
|
+
}
|
|
31191
|
+
|
|
31192
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
31193
|
+
const localVarHeaderParameter = {} as any;
|
|
31194
|
+
const localVarQueryParameter = {} as any;
|
|
31195
|
+
|
|
31196
|
+
// authentication apiToken required
|
|
31197
|
+
// http bearer authentication required
|
|
31198
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
31199
|
+
|
|
31200
|
+
|
|
31201
|
+
|
|
31202
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
31203
|
+
|
|
31204
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
31205
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
31206
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
31207
|
+
localVarRequestOptions.data = serializeDataIfNeeded(hostingV1GitUpdateGitAutoDeploymentSettingsRequest, localVarRequestOptions, configuration)
|
|
31208
|
+
|
|
30891
31209
|
return {
|
|
30892
31210
|
url: toPathString(localVarUrlObj),
|
|
30893
31211
|
options: localVarRequestOptions,
|
|
@@ -30904,7 +31222,33 @@ export const HostingGitApiFp = function(configuration?: Configuration) {
|
|
|
30904
31222
|
const localVarAxiosParamCreator = HostingGitApiAxiosParamCreator(configuration)
|
|
30905
31223
|
return {
|
|
30906
31224
|
/**
|
|
30907
|
-
*
|
|
31225
|
+
* Removes the Git auto-deployment settings of the website. Files already deployed stay on the website; pushes stop deploying until settings are saved again. Succeeds also when nothing is configured.
|
|
31226
|
+
* @summary Delete Git auto-deployment settings
|
|
31227
|
+
* @param {string} username
|
|
31228
|
+
* @param {string} domain Domain name
|
|
31229
|
+
* @param {*} [options] Override http request option.
|
|
31230
|
+
* @throws {RequiredError}
|
|
31231
|
+
*/
|
|
31232
|
+
async deleteGitAutoDeploymentSettingsV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
31233
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteGitAutoDeploymentSettingsV1(username, domain, options);
|
|
31234
|
+
const localVarOperationServerBasePath = operationServerMap['HostingGitApi.deleteGitAutoDeploymentSettingsV1']?.[0]?.url;
|
|
31235
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
31236
|
+
},
|
|
31237
|
+
/**
|
|
31238
|
+
* Returns the Git auto-deployment settings of the website: which repository and branch deploy into which directory, and whether pushes trigger a deployment. `is_enabled` false keeps the repository link but ignores pushes. When the website has no auto-deployment configured every field is null. Save settings with `Update Git auto-deployment settings`.
|
|
31239
|
+
* @summary Get Git auto-deployment settings
|
|
31240
|
+
* @param {string} username
|
|
31241
|
+
* @param {string} domain Domain name
|
|
31242
|
+
* @param {*} [options] Override http request option.
|
|
31243
|
+
* @throws {RequiredError}
|
|
31244
|
+
*/
|
|
31245
|
+
async getGitAutoDeploymentSettingsV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1GitGitAutoDeploymentSettingsResource>> {
|
|
31246
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGitAutoDeploymentSettingsV1(username, domain, options);
|
|
31247
|
+
const localVarOperationServerBasePath = operationServerMap['HostingGitApi.getGitAutoDeploymentSettingsV1']?.[0]?.url;
|
|
31248
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
31249
|
+
},
|
|
31250
|
+
/**
|
|
31251
|
+
* Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and a branch (`default_branch` or another one) go into `source_options` of `Start Node.js build` or into `Update Git auto-deployment settings`. Returns 404 when the installation does not belong to the customer. Limited to 10 calls per minute per API client (429 above that).
|
|
30908
31252
|
* @summary List Git installation repositories
|
|
30909
31253
|
* @param {string} uuid Git installation UUID from the List Git installations endpoint
|
|
30910
31254
|
* @param {*} [options] Override http request option.
|
|
@@ -30916,7 +31260,7 @@ export const HostingGitApiFp = function(configuration?: Configuration) {
|
|
|
30916
31260
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30917
31261
|
},
|
|
30918
31262
|
/**
|
|
30919
|
-
* Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, GitHub has to be connected once in hPanel (Websites, Manage, Advanced, Git
|
|
31263
|
+
* Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, a Git provider (GitHub or GitLab) has to be connected once in hPanel (Websites, Manage, Advanced, Git; or Add Website, Node.js Web App, Import Git Repository); this endpoint then lists the new installation. Use `uuid` as the path parameter of `List Git installation repositories`, and as `installation_uuid` in `Start Node.js build` with `source_type` `git` and in `Update Git auto-deployment settings`.
|
|
30920
31264
|
* @summary List Git installations
|
|
30921
31265
|
* @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
|
|
30922
31266
|
* @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
|
|
@@ -30928,6 +31272,20 @@ export const HostingGitApiFp = function(configuration?: Configuration) {
|
|
|
30928
31272
|
const localVarOperationServerBasePath = operationServerMap['HostingGitApi.listGitInstallationsV1']?.[0]?.url;
|
|
30929
31273
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30930
31274
|
},
|
|
31275
|
+
/**
|
|
31276
|
+
* Creates or replaces the Git auto-deployment settings of the website: repository, branch, the directory under the document root to deploy into, and `is_enabled`. Send the full set; `is_enabled` defaults to true and `directory` to the document root. `installation_uuid` must be an installation from `List Git installations` that belongs to the same customer as the website. For PHP and static websites, saving with `is_enabled` true deploys the branch right away and every later push to that branch deploys again. For Node.js and Website Builder websites saving does not clone anything. On a Node.js website start the first deploy with `Start Node.js build` using `source_type` `git`; pushes then trigger new builds with the build settings stored for the website.
|
|
31277
|
+
* @summary Update Git auto-deployment settings
|
|
31278
|
+
* @param {string} username
|
|
31279
|
+
* @param {string} domain Domain name
|
|
31280
|
+
* @param {HostingV1GitUpdateGitAutoDeploymentSettingsRequest} hostingV1GitUpdateGitAutoDeploymentSettingsRequest
|
|
31281
|
+
* @param {*} [options] Override http request option.
|
|
31282
|
+
* @throws {RequiredError}
|
|
31283
|
+
*/
|
|
31284
|
+
async updateGitAutoDeploymentSettingsV1(username: string, domain: string, hostingV1GitUpdateGitAutoDeploymentSettingsRequest: HostingV1GitUpdateGitAutoDeploymentSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
31285
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateGitAutoDeploymentSettingsV1(username, domain, hostingV1GitUpdateGitAutoDeploymentSettingsRequest, options);
|
|
31286
|
+
const localVarOperationServerBasePath = operationServerMap['HostingGitApi.updateGitAutoDeploymentSettingsV1']?.[0]?.url;
|
|
31287
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
31288
|
+
},
|
|
30931
31289
|
}
|
|
30932
31290
|
};
|
|
30933
31291
|
|
|
@@ -30939,7 +31297,29 @@ export const HostingGitApiFactory = function (configuration?: Configuration, bas
|
|
|
30939
31297
|
const localVarFp = HostingGitApiFp(configuration)
|
|
30940
31298
|
return {
|
|
30941
31299
|
/**
|
|
30942
|
-
*
|
|
31300
|
+
* Removes the Git auto-deployment settings of the website. Files already deployed stay on the website; pushes stop deploying until settings are saved again. Succeeds also when nothing is configured.
|
|
31301
|
+
* @summary Delete Git auto-deployment settings
|
|
31302
|
+
* @param {string} username
|
|
31303
|
+
* @param {string} domain Domain name
|
|
31304
|
+
* @param {*} [options] Override http request option.
|
|
31305
|
+
* @throws {RequiredError}
|
|
31306
|
+
*/
|
|
31307
|
+
deleteGitAutoDeploymentSettingsV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
31308
|
+
return localVarFp.deleteGitAutoDeploymentSettingsV1(username, domain, options).then((request) => request(axios, basePath));
|
|
31309
|
+
},
|
|
31310
|
+
/**
|
|
31311
|
+
* Returns the Git auto-deployment settings of the website: which repository and branch deploy into which directory, and whether pushes trigger a deployment. `is_enabled` false keeps the repository link but ignores pushes. When the website has no auto-deployment configured every field is null. Save settings with `Update Git auto-deployment settings`.
|
|
31312
|
+
* @summary Get Git auto-deployment settings
|
|
31313
|
+
* @param {string} username
|
|
31314
|
+
* @param {string} domain Domain name
|
|
31315
|
+
* @param {*} [options] Override http request option.
|
|
31316
|
+
* @throws {RequiredError}
|
|
31317
|
+
*/
|
|
31318
|
+
getGitAutoDeploymentSettingsV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1GitGitAutoDeploymentSettingsResource> {
|
|
31319
|
+
return localVarFp.getGitAutoDeploymentSettingsV1(username, domain, options).then((request) => request(axios, basePath));
|
|
31320
|
+
},
|
|
31321
|
+
/**
|
|
31322
|
+
* Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and a branch (`default_branch` or another one) go into `source_options` of `Start Node.js build` or into `Update Git auto-deployment settings`. Returns 404 when the installation does not belong to the customer. Limited to 10 calls per minute per API client (429 above that).
|
|
30943
31323
|
* @summary List Git installation repositories
|
|
30944
31324
|
* @param {string} uuid Git installation UUID from the List Git installations endpoint
|
|
30945
31325
|
* @param {*} [options] Override http request option.
|
|
@@ -30949,7 +31329,7 @@ export const HostingGitApiFactory = function (configuration?: Configuration, bas
|
|
|
30949
31329
|
return localVarFp.listGitInstallationRepositoriesV1(uuid, options).then((request) => request(axios, basePath));
|
|
30950
31330
|
},
|
|
30951
31331
|
/**
|
|
30952
|
-
* Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, GitHub has to be connected once in hPanel (Websites, Manage, Advanced, Git
|
|
31332
|
+
* Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, a Git provider (GitHub or GitLab) has to be connected once in hPanel (Websites, Manage, Advanced, Git; or Add Website, Node.js Web App, Import Git Repository); this endpoint then lists the new installation. Use `uuid` as the path parameter of `List Git installation repositories`, and as `installation_uuid` in `Start Node.js build` with `source_type` `git` and in `Update Git auto-deployment settings`.
|
|
30953
31333
|
* @summary List Git installations
|
|
30954
31334
|
* @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
|
|
30955
31335
|
* @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
|
|
@@ -30959,6 +31339,18 @@ export const HostingGitApiFactory = function (configuration?: Configuration, bas
|
|
|
30959
31339
|
listGitInstallationsV1(provider?: ListGitInstallationsV1ProviderEnum, status?: ListGitInstallationsV1StatusEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<HostingV1GitGitInstallationResource>> {
|
|
30960
31340
|
return localVarFp.listGitInstallationsV1(provider, status, options).then((request) => request(axios, basePath));
|
|
30961
31341
|
},
|
|
31342
|
+
/**
|
|
31343
|
+
* Creates or replaces the Git auto-deployment settings of the website: repository, branch, the directory under the document root to deploy into, and `is_enabled`. Send the full set; `is_enabled` defaults to true and `directory` to the document root. `installation_uuid` must be an installation from `List Git installations` that belongs to the same customer as the website. For PHP and static websites, saving with `is_enabled` true deploys the branch right away and every later push to that branch deploys again. For Node.js and Website Builder websites saving does not clone anything. On a Node.js website start the first deploy with `Start Node.js build` using `source_type` `git`; pushes then trigger new builds with the build settings stored for the website.
|
|
31344
|
+
* @summary Update Git auto-deployment settings
|
|
31345
|
+
* @param {string} username
|
|
31346
|
+
* @param {string} domain Domain name
|
|
31347
|
+
* @param {HostingV1GitUpdateGitAutoDeploymentSettingsRequest} hostingV1GitUpdateGitAutoDeploymentSettingsRequest
|
|
31348
|
+
* @param {*} [options] Override http request option.
|
|
31349
|
+
* @throws {RequiredError}
|
|
31350
|
+
*/
|
|
31351
|
+
updateGitAutoDeploymentSettingsV1(username: string, domain: string, hostingV1GitUpdateGitAutoDeploymentSettingsRequest: HostingV1GitUpdateGitAutoDeploymentSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
31352
|
+
return localVarFp.updateGitAutoDeploymentSettingsV1(username, domain, hostingV1GitUpdateGitAutoDeploymentSettingsRequest, options).then((request) => request(axios, basePath));
|
|
31353
|
+
},
|
|
30962
31354
|
};
|
|
30963
31355
|
};
|
|
30964
31356
|
|
|
@@ -30970,7 +31362,33 @@ export const HostingGitApiFactory = function (configuration?: Configuration, bas
|
|
|
30970
31362
|
*/
|
|
30971
31363
|
export class HostingGitApi extends BaseAPI {
|
|
30972
31364
|
/**
|
|
30973
|
-
*
|
|
31365
|
+
* Removes the Git auto-deployment settings of the website. Files already deployed stay on the website; pushes stop deploying until settings are saved again. Succeeds also when nothing is configured.
|
|
31366
|
+
* @summary Delete Git auto-deployment settings
|
|
31367
|
+
* @param {string} username
|
|
31368
|
+
* @param {string} domain Domain name
|
|
31369
|
+
* @param {*} [options] Override http request option.
|
|
31370
|
+
* @throws {RequiredError}
|
|
31371
|
+
* @memberof HostingGitApi
|
|
31372
|
+
*/
|
|
31373
|
+
public deleteGitAutoDeploymentSettingsV1(username: string, domain: string, options?: RawAxiosRequestConfig) {
|
|
31374
|
+
return HostingGitApiFp(this.configuration).deleteGitAutoDeploymentSettingsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
31375
|
+
}
|
|
31376
|
+
|
|
31377
|
+
/**
|
|
31378
|
+
* Returns the Git auto-deployment settings of the website: which repository and branch deploy into which directory, and whether pushes trigger a deployment. `is_enabled` false keeps the repository link but ignores pushes. When the website has no auto-deployment configured every field is null. Save settings with `Update Git auto-deployment settings`.
|
|
31379
|
+
* @summary Get Git auto-deployment settings
|
|
31380
|
+
* @param {string} username
|
|
31381
|
+
* @param {string} domain Domain name
|
|
31382
|
+
* @param {*} [options] Override http request option.
|
|
31383
|
+
* @throws {RequiredError}
|
|
31384
|
+
* @memberof HostingGitApi
|
|
31385
|
+
*/
|
|
31386
|
+
public getGitAutoDeploymentSettingsV1(username: string, domain: string, options?: RawAxiosRequestConfig) {
|
|
31387
|
+
return HostingGitApiFp(this.configuration).getGitAutoDeploymentSettingsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
31388
|
+
}
|
|
31389
|
+
|
|
31390
|
+
/**
|
|
31391
|
+
* Lists the repositories the Git installation can access, read live from the provider. Works for github and gitlab installations. Use an active installation: a suspended or pending one is still queried and the call fails with whatever the provider answers. The list is cut at the first 500 repositories in the order the provider returns them; when the account has more, name the repository directly instead of searching this list. `owner`, `name` and a branch (`default_branch` or another one) go into `source_options` of `Start Node.js build` or into `Update Git auto-deployment settings`. Returns 404 when the installation does not belong to the customer. Limited to 10 calls per minute per API client (429 above that).
|
|
30974
31392
|
* @summary List Git installation repositories
|
|
30975
31393
|
* @param {string} uuid Git installation UUID from the List Git installations endpoint
|
|
30976
31394
|
* @param {*} [options] Override http request option.
|
|
@@ -30982,7 +31400,7 @@ export class HostingGitApi extends BaseAPI {
|
|
|
30982
31400
|
}
|
|
30983
31401
|
|
|
30984
31402
|
/**
|
|
30985
|
-
* Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, GitHub has to be connected once in hPanel (Websites, Manage, Advanced, Git
|
|
31403
|
+
* Lists the Git provider accounts the customer has connected. Only installations with status `active` are returned unless the `status` filter says otherwise. An empty list means the customer has no active installation. Check `status=suspended` and `status=pending` as well. If there is none at all, a Git provider (GitHub or GitLab) has to be connected once in hPanel (Websites, Manage, Advanced, Git; or Add Website, Node.js Web App, Import Git Repository); this endpoint then lists the new installation. Use `uuid` as the path parameter of `List Git installation repositories`, and as `installation_uuid` in `Start Node.js build` with `source_type` `git` and in `Update Git auto-deployment settings`.
|
|
30986
31404
|
* @summary List Git installations
|
|
30987
31405
|
* @param {ListGitInstallationsV1ProviderEnum} [provider] Filter by Git provider
|
|
30988
31406
|
* @param {ListGitInstallationsV1StatusEnum} [status] Filter by installation status
|
|
@@ -30993,6 +31411,20 @@ export class HostingGitApi extends BaseAPI {
|
|
|
30993
31411
|
public listGitInstallationsV1(provider?: ListGitInstallationsV1ProviderEnum, status?: ListGitInstallationsV1StatusEnum, options?: RawAxiosRequestConfig) {
|
|
30994
31412
|
return HostingGitApiFp(this.configuration).listGitInstallationsV1(provider, status, options).then((request) => request(this.axios, this.basePath));
|
|
30995
31413
|
}
|
|
31414
|
+
|
|
31415
|
+
/**
|
|
31416
|
+
* Creates or replaces the Git auto-deployment settings of the website: repository, branch, the directory under the document root to deploy into, and `is_enabled`. Send the full set; `is_enabled` defaults to true and `directory` to the document root. `installation_uuid` must be an installation from `List Git installations` that belongs to the same customer as the website. For PHP and static websites, saving with `is_enabled` true deploys the branch right away and every later push to that branch deploys again. For Node.js and Website Builder websites saving does not clone anything. On a Node.js website start the first deploy with `Start Node.js build` using `source_type` `git`; pushes then trigger new builds with the build settings stored for the website.
|
|
31417
|
+
* @summary Update Git auto-deployment settings
|
|
31418
|
+
* @param {string} username
|
|
31419
|
+
* @param {string} domain Domain name
|
|
31420
|
+
* @param {HostingV1GitUpdateGitAutoDeploymentSettingsRequest} hostingV1GitUpdateGitAutoDeploymentSettingsRequest
|
|
31421
|
+
* @param {*} [options] Override http request option.
|
|
31422
|
+
* @throws {RequiredError}
|
|
31423
|
+
* @memberof HostingGitApi
|
|
31424
|
+
*/
|
|
31425
|
+
public updateGitAutoDeploymentSettingsV1(username: string, domain: string, hostingV1GitUpdateGitAutoDeploymentSettingsRequest: HostingV1GitUpdateGitAutoDeploymentSettingsRequest, options?: RawAxiosRequestConfig) {
|
|
31426
|
+
return HostingGitApiFp(this.configuration).updateGitAutoDeploymentSettingsV1(username, domain, hostingV1GitUpdateGitAutoDeploymentSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
31427
|
+
}
|
|
30996
31428
|
}
|
|
30997
31429
|
|
|
30998
31430
|
/**
|
|
@@ -31644,7 +32076,7 @@ export const HostingNodeJSApiAxiosParamCreator = function (configuration?: Confi
|
|
|
31644
32076
|
};
|
|
31645
32077
|
},
|
|
31646
32078
|
/**
|
|
31647
|
-
* Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint.
|
|
32079
|
+
* Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
31648
32080
|
* @summary Start Node.js build
|
|
31649
32081
|
* @param {string} username
|
|
31650
32082
|
* @param {string} domain Domain name
|
|
@@ -31934,7 +32366,7 @@ export const HostingNodeJSApiFp = function(configuration?: Configuration) {
|
|
|
31934
32366
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
31935
32367
|
},
|
|
31936
32368
|
/**
|
|
31937
|
-
* Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint.
|
|
32369
|
+
* Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
31938
32370
|
* @summary Start Node.js build
|
|
31939
32371
|
* @param {string} username
|
|
31940
32372
|
* @param {string} domain Domain name
|
|
@@ -32130,7 +32562,7 @@ export const HostingNodeJSApiFactory = function (configuration?: Configuration,
|
|
|
32130
32562
|
return localVarFp.restartNodeJsApplicationV1(username, domain, options).then((request) => request(axios, basePath));
|
|
32131
32563
|
},
|
|
32132
32564
|
/**
|
|
32133
|
-
* Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint.
|
|
32565
|
+
* Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
32134
32566
|
* @summary Start Node.js build
|
|
32135
32567
|
* @param {string} username
|
|
32136
32568
|
* @param {string} domain Domain name
|
|
@@ -32348,7 +32780,7 @@ export class HostingNodeJSApi extends BaseAPI {
|
|
|
32348
32780
|
}
|
|
32349
32781
|
|
|
32350
32782
|
/**
|
|
32351
|
-
* Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint.
|
|
32783
|
+
* Start a Node.js build process using files already present on the website\'s file storage. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. With `source_type` `archive`, `source_options.archive_path` must point to an existing archive file on the server (relative to the website document root). Use the `Generate Upload URL` endpoint to obtain credentials and upload the archive first. To auto-detect build settings from an archive before starting, first call the `Get Node.js Build Settings from Archive` endpoint. With `source_type` `git`, `source_options` carries `owner`, `repository`, `branch` and `installation_uuid`. Take the installation from `List Git installations` and the owner and repository from `List Git installation repositories`; the branch is cloned at its current head. The installation must belong to the same customer as the website. The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
32352
32784
|
* @summary Start Node.js build
|
|
32353
32785
|
* @param {string} username
|
|
32354
32786
|
* @param {string} domain Domain name
|