@northflank/js-client 0.4.1 → 0.5.0-beta.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/dist/cjs/api-client.d.ts +6013 -0
- package/dist/cjs/api-client.js +1 -0
- package/dist/cjs/package.json +3 -0
- package/dist/esm/api-client.d.ts +6013 -0
- package/dist/esm/api-client.js +15 -0
- package/dist/esm/package.json +3 -0
- package/package.json +12 -19
- package/dist/api-client.d.ts +0 -481
- package/dist/api-client.js +0 -748
- package/dist/api-endpoint.d.ts +0 -63
- package/dist/api-endpoint.js +0 -216
- package/dist/context/api-client-context-provider.d.ts +0 -47
- package/dist/context/api-client-context-provider.js +0 -332
- package/dist/context/api-client-file-context-provider.d.ts +0 -11
- package/dist/context/api-client-file-context-provider.js +0 -138
- package/dist/context/api-client-in-memory-context-provider.d.ts +0 -6
- package/dist/context/api-client-in-memory-context-provider.js +0 -82
- package/dist/context/index.d.ts +0 -3
- package/dist/context/index.js +0 -15
- package/dist/endpoints/abort/addon/backup.d.ts +0 -21
- package/dist/endpoints/abort/addon/backup.js +0 -36
- package/dist/endpoints/abort/addon/restore.d.ts +0 -26
- package/dist/endpoints/abort/addon/restore.js +0 -36
- package/dist/endpoints/abort/job/build.d.ts +0 -21
- package/dist/endpoints/abort/job/build.js +0 -36
- package/dist/endpoints/abort/job/run.d.ts +0 -21
- package/dist/endpoints/abort/job/run.js +0 -36
- package/dist/endpoints/abort/service/build.d.ts +0 -21
- package/dist/endpoints/abort/service/build.js +0 -36
- package/dist/endpoints/add/domain/subdomain.d.ts +0 -33
- package/dist/endpoints/add/domain/subdomain.js +0 -36
- package/dist/endpoints/add/registryCredentials.d.ts +0 -47
- package/dist/endpoints/add/registryCredentials.js +0 -36
- package/dist/endpoints/assign/subdomain/service.d.ts +0 -28
- package/dist/endpoints/assign/subdomain/service.js +0 -36
- package/dist/endpoints/backup/addon.d.ts +0 -51
- package/dist/endpoints/backup/addon.js +0 -36
- package/dist/endpoints/create/addon.d.ts +0 -90
- package/dist/endpoints/create/addon.js +0 -36
- package/dist/endpoints/create/domain.d.ts +0 -27
- package/dist/endpoints/create/domain.js +0 -36
- package/dist/endpoints/create/job/cron.d.ts +0 -157
- package/dist/endpoints/create/job/cron.js +0 -36
- package/dist/endpoints/create/job/manual.d.ts +0 -147
- package/dist/endpoints/create/job/manual.js +0 -36
- package/dist/endpoints/create/project.d.ts +0 -29
- package/dist/endpoints/create/project.js +0 -36
- package/dist/endpoints/create/secret.d.ts +0 -79
- package/dist/endpoints/create/secret.js +0 -36
- package/dist/endpoints/create/service/build.d.ts +0 -116
- package/dist/endpoints/create/service/build.js +0 -36
- package/dist/endpoints/create/service/combined.d.ts +0 -166
- package/dist/endpoints/create/service/combined.js +0 -36
- package/dist/endpoints/create/service/deployment.d.ts +0 -137
- package/dist/endpoints/create/service/deployment.js +0 -36
- package/dist/endpoints/delete/addon.d.ts +0 -19
- package/dist/endpoints/delete/addon.js +0 -36
- package/dist/endpoints/delete/backup.d.ts +0 -21
- package/dist/endpoints/delete/backup.js +0 -36
- package/dist/endpoints/delete/domain.d.ts +0 -17
- package/dist/endpoints/delete/domain.js +0 -36
- package/dist/endpoints/delete/job.d.ts +0 -19
- package/dist/endpoints/delete/job.js +0 -36
- package/dist/endpoints/delete/project.d.ts +0 -17
- package/dist/endpoints/delete/project.js +0 -36
- package/dist/endpoints/delete/registryCredentials.d.ts +0 -17
- package/dist/endpoints/delete/registryCredentials.js +0 -36
- package/dist/endpoints/delete/secret.d.ts +0 -19
- package/dist/endpoints/delete/secret.js +0 -36
- package/dist/endpoints/delete/secretLink.d.ts +0 -21
- package/dist/endpoints/delete/secretLink.js +0 -36
- package/dist/endpoints/delete/service.d.ts +0 -19
- package/dist/endpoints/delete/service.js +0 -36
- package/dist/endpoints/delete/subdomain.d.ts +0 -19
- package/dist/endpoints/delete/subdomain.js +0 -36
- package/dist/endpoints/get/addon/backup/download.d.ts +0 -24
- package/dist/endpoints/get/addon/backup/download.js +0 -36
- package/dist/endpoints/get/addon/backup.d.ts +0 -46
- package/dist/endpoints/get/addon/backup.js +0 -36
- package/dist/endpoints/get/addon/backups.d.ts +0 -54
- package/dist/endpoints/get/addon/backups.js +0 -40
- package/dist/endpoints/get/addon/containers.d.ts +0 -40
- package/dist/endpoints/get/addon/containers.js +0 -40
- package/dist/endpoints/get/addon/credentials.d.ts +0 -24
- package/dist/endpoints/get/addon/credentials.js +0 -36
- package/dist/endpoints/get/addon/types.d.ts +0 -48
- package/dist/endpoints/get/addon/types.js +0 -36
- package/dist/endpoints/get/addon/version.d.ts +0 -53
- package/dist/endpoints/get/addon/version.js +0 -36
- package/dist/endpoints/get/addon.d.ts +0 -69
- package/dist/endpoints/get/addon.js +0 -36
- package/dist/endpoints/get/dnsId.d.ts +0 -15
- package/dist/endpoints/get/dnsId.js +0 -36
- package/dist/endpoints/get/domain.d.ts +0 -33
- package/dist/endpoints/get/domain.js +0 -36
- package/dist/endpoints/get/job/buildArguments.d.ts +0 -19
- package/dist/endpoints/get/job/buildArguments.js +0 -36
- package/dist/endpoints/get/job/builds.d.ts +0 -50
- package/dist/endpoints/get/job/builds.js +0 -39
- package/dist/endpoints/get/job/containers.d.ts +0 -40
- package/dist/endpoints/get/job/containers.js +0 -40
- package/dist/endpoints/get/job/deployment.d.ts +0 -51
- package/dist/endpoints/get/job/deployment.js +0 -36
- package/dist/endpoints/get/job/environment.d.ts +0 -24
- package/dist/endpoints/get/job/environment.js +0 -40
- package/dist/endpoints/get/job/environmentDetails.d.ts +0 -42
- package/dist/endpoints/get/job/environmentDetails.js +0 -36
- package/dist/endpoints/get/job/healthChecks.d.ts +0 -44
- package/dist/endpoints/get/job/healthChecks.js +0 -36
- package/dist/endpoints/get/job/run.d.ts +0 -42
- package/dist/endpoints/get/job/run.js +0 -36
- package/dist/endpoints/get/job/runs.d.ts +0 -52
- package/dist/endpoints/get/job/runs.js +0 -39
- package/dist/endpoints/get/job.d.ts +0 -86
- package/dist/endpoints/get/job.js +0 -36
- package/dist/endpoints/get/project.d.ts +0 -72
- package/dist/endpoints/get/project.js +0 -36
- package/dist/endpoints/get/registryCredentials.d.ts +0 -34
- package/dist/endpoints/get/registryCredentials.js +0 -36
- package/dist/endpoints/get/secret.d.ts +0 -55
- package/dist/endpoints/get/secret.js +0 -39
- package/dist/endpoints/get/secretDetails.d.ts +0 -63
- package/dist/endpoints/get/secretDetails.js +0 -36
- package/dist/endpoints/get/secretLink.d.ts +0 -44
- package/dist/endpoints/get/secretLink.js +0 -36
- package/dist/endpoints/get/service/buildArguments.d.ts +0 -19
- package/dist/endpoints/get/service/buildArguments.js +0 -36
- package/dist/endpoints/get/service/builds.d.ts +0 -50
- package/dist/endpoints/get/service/builds.js +0 -40
- package/dist/endpoints/get/service/containers.d.ts +0 -40
- package/dist/endpoints/get/service/containers.js +0 -40
- package/dist/endpoints/get/service/deployment.d.ts +0 -51
- package/dist/endpoints/get/service/deployment.js +0 -36
- package/dist/endpoints/get/service/environmentVariableDetails.d.ts +0 -42
- package/dist/endpoints/get/service/environmentVariableDetails.js +0 -36
- package/dist/endpoints/get/service/environmentVariables.d.ts +0 -24
- package/dist/endpoints/get/service/environmentVariables.js +0 -40
- package/dist/endpoints/get/service/healthChecks.d.ts +0 -44
- package/dist/endpoints/get/service/healthChecks.js +0 -36
- package/dist/endpoints/get/service/ports.d.ts +0 -35
- package/dist/endpoints/get/service/ports.js +0 -36
- package/dist/endpoints/get/service.d.ts +0 -103
- package/dist/endpoints/get/service.js +0 -36
- package/dist/endpoints/get/subdomain.d.ts +0 -30
- package/dist/endpoints/get/subdomain.js +0 -36
- package/dist/endpoints/import/addon/backup.d.ts +0 -31
- package/dist/endpoints/import/addon/backup.js +0 -36
- package/dist/endpoints/list/addons.d.ts +0 -45
- package/dist/endpoints/list/addons.js +0 -39
- package/dist/endpoints/list/domains.d.ts +0 -34
- package/dist/endpoints/list/domains.js +0 -39
- package/dist/endpoints/list/jobs.d.ts +0 -44
- package/dist/endpoints/list/jobs.js +0 -39
- package/dist/endpoints/list/plans.d.ts +0 -30
- package/dist/endpoints/list/plans.js +0 -36
- package/dist/endpoints/list/projects.d.ts +0 -32
- package/dist/endpoints/list/projects.js +0 -39
- package/dist/endpoints/list/regions.d.ts +0 -18
- package/dist/endpoints/list/regions.js +0 -36
- package/dist/endpoints/list/registryCredentials.d.ts +0 -41
- package/dist/endpoints/list/registryCredentials.js +0 -39
- package/dist/endpoints/list/secrets.d.ts +0 -52
- package/dist/endpoints/list/secrets.js +0 -39
- package/dist/endpoints/list/services.d.ts +0 -44
- package/dist/endpoints/list/services.js +0 -39
- package/dist/endpoints/list/vcs.d.ts +0 -51
- package/dist/endpoints/list/vcs.js +0 -36
- package/dist/endpoints/pause/addon.d.ts +0 -19
- package/dist/endpoints/pause/addon.js +0 -36
- package/dist/endpoints/pause/service.d.ts +0 -19
- package/dist/endpoints/pause/service.js +0 -36
- package/dist/endpoints/restart/addon.d.ts +0 -19
- package/dist/endpoints/restart/addon.js +0 -36
- package/dist/endpoints/restart/service.d.ts +0 -19
- package/dist/endpoints/restart/service.js +0 -36
- package/dist/endpoints/restore/addon/backup.d.ts +0 -21
- package/dist/endpoints/restore/addon/backup.js +0 -36
- package/dist/endpoints/resume/addon.d.ts +0 -19
- package/dist/endpoints/resume/addon.js +0 -36
- package/dist/endpoints/resume/service.d.ts +0 -24
- package/dist/endpoints/resume/service.js +0 -36
- package/dist/endpoints/scale/addon.d.ts +0 -28
- package/dist/endpoints/scale/addon.js +0 -36
- package/dist/endpoints/scale/service.d.ts +0 -26
- package/dist/endpoints/scale/service.js +0 -36
- package/dist/endpoints/start/job/build.d.ts +0 -37
- package/dist/endpoints/start/job/build.js +0 -36
- package/dist/endpoints/start/job/run.d.ts +0 -37
- package/dist/endpoints/start/job/run.js +0 -36
- package/dist/endpoints/start/service/build.d.ts +0 -41
- package/dist/endpoints/start/service/build.js +0 -36
- package/dist/endpoints/unassign/subdomain.d.ts +0 -19
- package/dist/endpoints/unassign/subdomain.js +0 -36
- package/dist/endpoints/update/addon/networkSettings.d.ts +0 -26
- package/dist/endpoints/update/addon/networkSettings.js +0 -36
- package/dist/endpoints/update/addon/security.d.ts +0 -29
- package/dist/endpoints/update/addon/security.js +0 -36
- package/dist/endpoints/update/addon/version.d.ts +0 -24
- package/dist/endpoints/update/addon/version.js +0 -36
- package/dist/endpoints/update/job/buildArguments.d.ts +0 -24
- package/dist/endpoints/update/job/buildArguments.js +0 -36
- package/dist/endpoints/update/job/cmdOverride.d.ts +0 -24
- package/dist/endpoints/update/job/cmdOverride.js +0 -36
- package/dist/endpoints/update/job/deployment.d.ts +0 -37
- package/dist/endpoints/update/job/deployment.js +0 -36
- package/dist/endpoints/update/job/environment.d.ts +0 -24
- package/dist/endpoints/update/job/environment.js +0 -36
- package/dist/endpoints/update/job/healthChecks.d.ts +0 -45
- package/dist/endpoints/update/job/healthChecks.js +0 -36
- package/dist/endpoints/update/job/settings.d.ts +0 -30
- package/dist/endpoints/update/job/settings.js +0 -36
- package/dist/endpoints/update/registryCredentials.d.ts +0 -31
- package/dist/endpoints/update/registryCredentials.js +0 -36
- package/dist/endpoints/update/secret.d.ts +0 -54
- package/dist/endpoints/update/secret.js +0 -36
- package/dist/endpoints/update/secretLink.d.ts +0 -40
- package/dist/endpoints/update/secretLink.js +0 -36
- package/dist/endpoints/update/service/buildArguments.d.ts +0 -24
- package/dist/endpoints/update/service/buildArguments.js +0 -36
- package/dist/endpoints/update/service/buildOptions.d.ts +0 -52
- package/dist/endpoints/update/service/buildOptions.js +0 -36
- package/dist/endpoints/update/service/cmdOverride.d.ts +0 -24
- package/dist/endpoints/update/service/cmdOverride.js +0 -36
- package/dist/endpoints/update/service/deployment.d.ts +0 -37
- package/dist/endpoints/update/service/deployment.js +0 -36
- package/dist/endpoints/update/service/environmentVariables.d.ts +0 -29
- package/dist/endpoints/update/service/environmentVariables.js +0 -36
- package/dist/endpoints/update/service/healthChecks.d.ts +0 -45
- package/dist/endpoints/update/service/healthChecks.js +0 -36
- package/dist/endpoints/update/service/ports.d.ts +0 -55
- package/dist/endpoints/update/service/ports.js +0 -36
- package/dist/endpoints/verify/domain.d.ts +0 -17
- package/dist/endpoints/verify/domain.js +0 -36
- package/dist/endpoints/verify/subdomain.d.ts +0 -19
- package/dist/endpoints/verify/subdomain.js +0 -36
- package/dist/port-forward/client/api-helper.d.ts +0 -30
- package/dist/port-forward/client/api-helper.js +0 -102
- package/dist/port-forward/client/atomic-write.d.ts +0 -3
- package/dist/port-forward/client/atomic-write.js +0 -95
- package/dist/port-forward/client/host-file-ast.d.ts +0 -52
- package/dist/port-forward/client/host-file-ast.js +0 -279
- package/dist/port-forward/client/host-file.d.ts +0 -26
- package/dist/port-forward/client/host-file.js +0 -226
- package/dist/port-forward/client/loopback.d.ts +0 -4
- package/dist/port-forward/client/loopback.js +0 -219
- package/dist/port-forward/client/port-forwarder.d.ts +0 -86
- package/dist/port-forward/client/port-forwarder.js +0 -593
- package/dist/port-forward/client/port-tunnel-tcp.d.ts +0 -34
- package/dist/port-forward/client/port-tunnel-tcp.js +0 -209
- package/dist/port-forward/client/port-tunnel-udp.d.ts +0 -25
- package/dist/port-forward/client/port-tunnel-udp.js +0 -147
- package/dist/port-forward/client/port-tunnel.d.ts +0 -32
- package/dist/port-forward/client/port-tunnel.js +0 -2
- package/dist/port-forward/client/promise-mutex.d.ts +0 -4
- package/dist/port-forward/client/promise-mutex.js +0 -62
- package/dist/utils.d.ts +0 -8
- package/dist/utils.js +0 -97
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
3
|
-
var __extends = (this && this.__extends) || (function () {
|
|
4
|
-
var extendStatics = function (d, b) {
|
|
5
|
-
extendStatics = Object.setPrototypeOf ||
|
|
6
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
8
|
-
return extendStatics(d, b);
|
|
9
|
-
};
|
|
10
|
-
return function (d, b) {
|
|
11
|
-
if (typeof b !== "function" && b !== null)
|
|
12
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13
|
-
extendStatics(d, b);
|
|
14
|
-
function __() { this.constructor = d; }
|
|
15
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16
|
-
};
|
|
17
|
-
})();
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.DeleteProjectEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../api-endpoint");
|
|
21
|
-
/** Delete the given project. Fails if the project isn't empty. */
|
|
22
|
-
var DeleteProjectEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(DeleteProjectEndpoint, _super);
|
|
24
|
-
function DeleteProjectEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = "Delete the given project. Fails if the project isn't empty.";
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId;
|
|
30
|
-
};
|
|
31
|
-
_this.body = function () { return undefined; };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return DeleteProjectEndpoint;
|
|
35
|
-
}(api_endpoint_1.DeleteApiEndpoint));
|
|
36
|
-
exports.DeleteProjectEndpoint = DeleteProjectEndpoint;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, DeleteApiEndpoint } from '../../api-endpoint';
|
|
3
|
-
export declare type DeleteRegistrycredentialsResult = any;
|
|
4
|
-
export declare type DeleteRegistrycredentialsCall = (opts: DeleteRegistrycredentialsRequest) => Promise<ApiCallResponse<DeleteRegistrycredentialsResult>>;
|
|
5
|
-
export declare type DeleteRegistrycredentialsRequest = {
|
|
6
|
-
parameters: DeleteRegistrycredentialsParameters;
|
|
7
|
-
};
|
|
8
|
-
export declare type DeleteRegistrycredentialsParameters = {
|
|
9
|
-
/** ID of the registry credential */ 'credentialId': string;
|
|
10
|
-
};
|
|
11
|
-
/** Deletes a set of registry credential data. */
|
|
12
|
-
export declare class DeleteRegistrycredentialsEndpoint extends DeleteApiEndpoint<DeleteRegistrycredentialsRequest, DeleteRegistrycredentialsResult> {
|
|
13
|
-
description: string;
|
|
14
|
-
withAuth: boolean;
|
|
15
|
-
endpointUrl: (opts: DeleteRegistrycredentialsRequest) => string;
|
|
16
|
-
body: () => undefined;
|
|
17
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
3
|
-
var __extends = (this && this.__extends) || (function () {
|
|
4
|
-
var extendStatics = function (d, b) {
|
|
5
|
-
extendStatics = Object.setPrototypeOf ||
|
|
6
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
8
|
-
return extendStatics(d, b);
|
|
9
|
-
};
|
|
10
|
-
return function (d, b) {
|
|
11
|
-
if (typeof b !== "function" && b !== null)
|
|
12
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13
|
-
extendStatics(d, b);
|
|
14
|
-
function __() { this.constructor = d; }
|
|
15
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16
|
-
};
|
|
17
|
-
})();
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.DeleteRegistrycredentialsEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../api-endpoint");
|
|
21
|
-
/** Deletes a set of registry credential data. */
|
|
22
|
-
var DeleteRegistrycredentialsEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(DeleteRegistrycredentialsEndpoint, _super);
|
|
24
|
-
function DeleteRegistrycredentialsEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Deletes a set of registry credential data.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/registry-credentials/" + opts.parameters.credentialId;
|
|
30
|
-
};
|
|
31
|
-
_this.body = function () { return undefined; };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return DeleteRegistrycredentialsEndpoint;
|
|
35
|
-
}(api_endpoint_1.DeleteApiEndpoint));
|
|
36
|
-
exports.DeleteRegistrycredentialsEndpoint = DeleteRegistrycredentialsEndpoint;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, DeleteApiEndpoint } from '../../api-endpoint';
|
|
3
|
-
export declare type DeleteSecretResult = any;
|
|
4
|
-
export declare type DeleteSecretCall = (opts: DeleteSecretRequest) => Promise<ApiCallResponse<DeleteSecretResult>>;
|
|
5
|
-
export declare type DeleteSecretRequest = {
|
|
6
|
-
parameters: DeleteSecretParameters;
|
|
7
|
-
};
|
|
8
|
-
export declare type DeleteSecretParameters = {
|
|
9
|
-
/** ID of the project */ 'projectId': string;
|
|
10
|
-
/** ID of the secret */
|
|
11
|
-
'secretId': string;
|
|
12
|
-
};
|
|
13
|
-
/** Delete a secret */
|
|
14
|
-
export declare class DeleteSecretEndpoint extends DeleteApiEndpoint<DeleteSecretRequest, DeleteSecretResult> {
|
|
15
|
-
description: string;
|
|
16
|
-
withAuth: boolean;
|
|
17
|
-
endpointUrl: (opts: DeleteSecretRequest) => string;
|
|
18
|
-
body: () => undefined;
|
|
19
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
3
|
-
var __extends = (this && this.__extends) || (function () {
|
|
4
|
-
var extendStatics = function (d, b) {
|
|
5
|
-
extendStatics = Object.setPrototypeOf ||
|
|
6
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
8
|
-
return extendStatics(d, b);
|
|
9
|
-
};
|
|
10
|
-
return function (d, b) {
|
|
11
|
-
if (typeof b !== "function" && b !== null)
|
|
12
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13
|
-
extendStatics(d, b);
|
|
14
|
-
function __() { this.constructor = d; }
|
|
15
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16
|
-
};
|
|
17
|
-
})();
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.DeleteSecretEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../api-endpoint");
|
|
21
|
-
/** Delete a secret */
|
|
22
|
-
var DeleteSecretEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(DeleteSecretEndpoint, _super);
|
|
24
|
-
function DeleteSecretEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Delete a secret';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/secrets/" + opts.parameters.secretId;
|
|
30
|
-
};
|
|
31
|
-
_this.body = function () { return undefined; };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return DeleteSecretEndpoint;
|
|
35
|
-
}(api_endpoint_1.DeleteApiEndpoint));
|
|
36
|
-
exports.DeleteSecretEndpoint = DeleteSecretEndpoint;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, DeleteApiEndpoint } from '../../api-endpoint';
|
|
3
|
-
export declare type DeleteSecretlinkResult = any;
|
|
4
|
-
export declare type DeleteSecretlinkCall = (opts: DeleteSecretlinkRequest) => Promise<ApiCallResponse<DeleteSecretlinkResult>>;
|
|
5
|
-
export declare type DeleteSecretlinkRequest = {
|
|
6
|
-
parameters: DeleteSecretlinkParameters;
|
|
7
|
-
};
|
|
8
|
-
export declare type DeleteSecretlinkParameters = {
|
|
9
|
-
/** ID of the project */ 'projectId': string;
|
|
10
|
-
/** ID of the secret */
|
|
11
|
-
'secretId': string;
|
|
12
|
-
/** ID of the addon */
|
|
13
|
-
'addonId': string;
|
|
14
|
-
};
|
|
15
|
-
/** Unlinks an addon from the secret group. */
|
|
16
|
-
export declare class DeleteSecretlinkEndpoint extends DeleteApiEndpoint<DeleteSecretlinkRequest, DeleteSecretlinkResult> {
|
|
17
|
-
description: string;
|
|
18
|
-
withAuth: boolean;
|
|
19
|
-
endpointUrl: (opts: DeleteSecretlinkRequest) => string;
|
|
20
|
-
body: () => undefined;
|
|
21
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
3
|
-
var __extends = (this && this.__extends) || (function () {
|
|
4
|
-
var extendStatics = function (d, b) {
|
|
5
|
-
extendStatics = Object.setPrototypeOf ||
|
|
6
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
8
|
-
return extendStatics(d, b);
|
|
9
|
-
};
|
|
10
|
-
return function (d, b) {
|
|
11
|
-
if (typeof b !== "function" && b !== null)
|
|
12
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13
|
-
extendStatics(d, b);
|
|
14
|
-
function __() { this.constructor = d; }
|
|
15
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16
|
-
};
|
|
17
|
-
})();
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.DeleteSecretlinkEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../api-endpoint");
|
|
21
|
-
/** Unlinks an addon from the secret group. */
|
|
22
|
-
var DeleteSecretlinkEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(DeleteSecretlinkEndpoint, _super);
|
|
24
|
-
function DeleteSecretlinkEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Unlinks an addon from the secret group.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/secrets/" + opts.parameters.secretId + "/addons/" + opts.parameters.addonId;
|
|
30
|
-
};
|
|
31
|
-
_this.body = function () { return undefined; };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return DeleteSecretlinkEndpoint;
|
|
35
|
-
}(api_endpoint_1.DeleteApiEndpoint));
|
|
36
|
-
exports.DeleteSecretlinkEndpoint = DeleteSecretlinkEndpoint;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, DeleteApiEndpoint } from '../../api-endpoint';
|
|
3
|
-
export declare type DeleteServiceResult = any;
|
|
4
|
-
export declare type DeleteServiceCall = (opts: DeleteServiceRequest) => Promise<ApiCallResponse<DeleteServiceResult>>;
|
|
5
|
-
export declare type DeleteServiceRequest = {
|
|
6
|
-
parameters: DeleteServiceParameters;
|
|
7
|
-
};
|
|
8
|
-
export declare type DeleteServiceParameters = {
|
|
9
|
-
/** ID of the project */ 'projectId': string;
|
|
10
|
-
/** ID of the service */
|
|
11
|
-
'serviceId': string;
|
|
12
|
-
};
|
|
13
|
-
/** Deletes the given service. */
|
|
14
|
-
export declare class DeleteServiceEndpoint extends DeleteApiEndpoint<DeleteServiceRequest, DeleteServiceResult> {
|
|
15
|
-
description: string;
|
|
16
|
-
withAuth: boolean;
|
|
17
|
-
endpointUrl: (opts: DeleteServiceRequest) => string;
|
|
18
|
-
body: () => undefined;
|
|
19
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
3
|
-
var __extends = (this && this.__extends) || (function () {
|
|
4
|
-
var extendStatics = function (d, b) {
|
|
5
|
-
extendStatics = Object.setPrototypeOf ||
|
|
6
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
8
|
-
return extendStatics(d, b);
|
|
9
|
-
};
|
|
10
|
-
return function (d, b) {
|
|
11
|
-
if (typeof b !== "function" && b !== null)
|
|
12
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13
|
-
extendStatics(d, b);
|
|
14
|
-
function __() { this.constructor = d; }
|
|
15
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16
|
-
};
|
|
17
|
-
})();
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.DeleteServiceEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../api-endpoint");
|
|
21
|
-
/** Deletes the given service. */
|
|
22
|
-
var DeleteServiceEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(DeleteServiceEndpoint, _super);
|
|
24
|
-
function DeleteServiceEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Deletes the given service.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/services/" + opts.parameters.serviceId;
|
|
30
|
-
};
|
|
31
|
-
_this.body = function () { return undefined; };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return DeleteServiceEndpoint;
|
|
35
|
-
}(api_endpoint_1.DeleteApiEndpoint));
|
|
36
|
-
exports.DeleteServiceEndpoint = DeleteServiceEndpoint;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, DeleteApiEndpoint } from '../../api-endpoint';
|
|
3
|
-
export declare type DeleteSubdomainResult = any | any;
|
|
4
|
-
export declare type DeleteSubdomainCall = (opts: DeleteSubdomainRequest) => Promise<ApiCallResponse<DeleteSubdomainResult>>;
|
|
5
|
-
export declare type DeleteSubdomainRequest = {
|
|
6
|
-
parameters: DeleteSubdomainParameters;
|
|
7
|
-
};
|
|
8
|
-
export declare type DeleteSubdomainParameters = {
|
|
9
|
-
/** Name of the domain */ 'domain': string;
|
|
10
|
-
/** Name of the subdomain */
|
|
11
|
-
'subdomain': string;
|
|
12
|
-
};
|
|
13
|
-
/** Removes a subdomain from a domain. */
|
|
14
|
-
export declare class DeleteSubdomainEndpoint extends DeleteApiEndpoint<DeleteSubdomainRequest, DeleteSubdomainResult> {
|
|
15
|
-
description: string;
|
|
16
|
-
withAuth: boolean;
|
|
17
|
-
endpointUrl: (opts: DeleteSubdomainRequest) => string;
|
|
18
|
-
body: () => undefined;
|
|
19
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
3
|
-
var __extends = (this && this.__extends) || (function () {
|
|
4
|
-
var extendStatics = function (d, b) {
|
|
5
|
-
extendStatics = Object.setPrototypeOf ||
|
|
6
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
8
|
-
return extendStatics(d, b);
|
|
9
|
-
};
|
|
10
|
-
return function (d, b) {
|
|
11
|
-
if (typeof b !== "function" && b !== null)
|
|
12
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13
|
-
extendStatics(d, b);
|
|
14
|
-
function __() { this.constructor = d; }
|
|
15
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16
|
-
};
|
|
17
|
-
})();
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.DeleteSubdomainEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../api-endpoint");
|
|
21
|
-
/** Removes a subdomain from a domain. */
|
|
22
|
-
var DeleteSubdomainEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(DeleteSubdomainEndpoint, _super);
|
|
24
|
-
function DeleteSubdomainEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Removes a subdomain from a domain.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/domains/" + opts.parameters.domain + "/subdomains/" + opts.parameters.subdomain;
|
|
30
|
-
};
|
|
31
|
-
_this.body = function () { return undefined; };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return DeleteSubdomainEndpoint;
|
|
35
|
-
}(api_endpoint_1.DeleteApiEndpoint));
|
|
36
|
-
exports.DeleteSubdomainEndpoint = DeleteSubdomainEndpoint;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, GetApiEndpoint } from '../../../../api-endpoint';
|
|
3
|
-
export declare type GetAddonBackupDownloadResult = {
|
|
4
|
-
/** The url to download the backup from. Example: "https://storage.googleapis.com/..." */
|
|
5
|
-
'downloadLink': string;
|
|
6
|
-
};
|
|
7
|
-
export declare type GetAddonBackupDownloadCall = (opts: GetAddonBackupDownloadRequest) => Promise<ApiCallResponse<GetAddonBackupDownloadResult>>;
|
|
8
|
-
export declare type GetAddonBackupDownloadRequest = {
|
|
9
|
-
parameters: GetAddonBackupDownloadParameters;
|
|
10
|
-
};
|
|
11
|
-
export declare type GetAddonBackupDownloadParameters = {
|
|
12
|
-
/** ID of the project */ 'projectId': string;
|
|
13
|
-
/** ID of the addon */
|
|
14
|
-
'addonId': string;
|
|
15
|
-
/** ID of the backup */
|
|
16
|
-
'backupId': string;
|
|
17
|
-
};
|
|
18
|
-
/** Generates a temporary download link for downloading the given backup. */
|
|
19
|
-
export declare class GetAddonBackupDownloadEndpoint extends GetApiEndpoint<GetAddonBackupDownloadRequest, GetAddonBackupDownloadResult> {
|
|
20
|
-
description: string;
|
|
21
|
-
withAuth: boolean;
|
|
22
|
-
endpointUrl: (opts: GetAddonBackupDownloadRequest) => string;
|
|
23
|
-
body: () => undefined;
|
|
24
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
3
|
-
var __extends = (this && this.__extends) || (function () {
|
|
4
|
-
var extendStatics = function (d, b) {
|
|
5
|
-
extendStatics = Object.setPrototypeOf ||
|
|
6
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
8
|
-
return extendStatics(d, b);
|
|
9
|
-
};
|
|
10
|
-
return function (d, b) {
|
|
11
|
-
if (typeof b !== "function" && b !== null)
|
|
12
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13
|
-
extendStatics(d, b);
|
|
14
|
-
function __() { this.constructor = d; }
|
|
15
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16
|
-
};
|
|
17
|
-
})();
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.GetAddonBackupDownloadEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../../api-endpoint");
|
|
21
|
-
/** Generates a temporary download link for downloading the given backup. */
|
|
22
|
-
var GetAddonBackupDownloadEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(GetAddonBackupDownloadEndpoint, _super);
|
|
24
|
-
function GetAddonBackupDownloadEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Generates a temporary download link for downloading the given backup.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/addons/" + opts.parameters.addonId + "/backups/" + opts.parameters.backupId + "/download-link";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function () { return undefined; };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return GetAddonBackupDownloadEndpoint;
|
|
35
|
-
}(api_endpoint_1.GetApiEndpoint));
|
|
36
|
-
exports.GetAddonBackupDownloadEndpoint = GetAddonBackupDownloadEndpoint;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, GetApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type GetAddonBackupResult = {
|
|
4
|
-
/** The identifier for the backup. Example: "example-backup" */
|
|
5
|
-
'id': string;
|
|
6
|
-
/** The name of the backup. Example: "Example Backup" */
|
|
7
|
-
'name': string;
|
|
8
|
-
/** The current status of the backup. Example: "completed" */
|
|
9
|
-
'status': 'scheduled' | 'in-progress' | 'completed' | 'aborting' | 'aborted' | 'failed' | 'not-supported';
|
|
10
|
-
/** The time the backup was initiated. Example: "2021-01-20T11:19:53.175Z" */
|
|
11
|
-
'createdAt': string;
|
|
12
|
-
/** The time the backup was completed. Example: "2021-01-20T11:19:54.494Z" */
|
|
13
|
-
'completedAt': string;
|
|
14
|
-
/** Data about the backup configuration. */
|
|
15
|
-
'config': {
|
|
16
|
-
/** Data about the source of the backup. */
|
|
17
|
-
'source'?: {
|
|
18
|
-
/** The type of backup. Example: "snapshot" */
|
|
19
|
-
'type'?: 'fileUpload' | 'liveInstance' | 'snapshot' | 'externalDump' | 'sameAddon';
|
|
20
|
-
};
|
|
21
|
-
/** The size of the backup, in bytes Example: "1234" */
|
|
22
|
-
'size': string;
|
|
23
|
-
/** The version of the addon at the time of the backup. If the backup type is `snapshot`, the addon will be restored to this version when the backup is restored. Example: "4.4.8" */
|
|
24
|
-
'addonVersion'?: string;
|
|
25
|
-
};
|
|
26
|
-
/** An object containing the restore history for the given backup. Example: {"1611305397038":{"restoreTimestamp":"2021-01-22T08:49:57.038Z","status":"completed","completedAt":"2021-01-22T08:50:30.749Z"}} */
|
|
27
|
-
'restores': any;
|
|
28
|
-
};
|
|
29
|
-
export declare type GetAddonBackupCall = (opts: GetAddonBackupRequest) => Promise<ApiCallResponse<GetAddonBackupResult>>;
|
|
30
|
-
export declare type GetAddonBackupRequest = {
|
|
31
|
-
parameters: GetAddonBackupParameters;
|
|
32
|
-
};
|
|
33
|
-
export declare type GetAddonBackupParameters = {
|
|
34
|
-
/** ID of the project */ 'projectId': string;
|
|
35
|
-
/** ID of the addon */
|
|
36
|
-
'addonId': string;
|
|
37
|
-
/** ID of the backup */
|
|
38
|
-
'backupId': string;
|
|
39
|
-
};
|
|
40
|
-
/** Gets details about a given backup including restore history */
|
|
41
|
-
export declare class GetAddonBackupEndpoint extends GetApiEndpoint<GetAddonBackupRequest, GetAddonBackupResult> {
|
|
42
|
-
description: string;
|
|
43
|
-
withAuth: boolean;
|
|
44
|
-
endpointUrl: (opts: GetAddonBackupRequest) => string;
|
|
45
|
-
body: () => undefined;
|
|
46
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
3
|
-
var __extends = (this && this.__extends) || (function () {
|
|
4
|
-
var extendStatics = function (d, b) {
|
|
5
|
-
extendStatics = Object.setPrototypeOf ||
|
|
6
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
8
|
-
return extendStatics(d, b);
|
|
9
|
-
};
|
|
10
|
-
return function (d, b) {
|
|
11
|
-
if (typeof b !== "function" && b !== null)
|
|
12
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13
|
-
extendStatics(d, b);
|
|
14
|
-
function __() { this.constructor = d; }
|
|
15
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16
|
-
};
|
|
17
|
-
})();
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.GetAddonBackupEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Gets details about a given backup including restore history */
|
|
22
|
-
var GetAddonBackupEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(GetAddonBackupEndpoint, _super);
|
|
24
|
-
function GetAddonBackupEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Gets details about a given backup including restore history';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/addons/" + opts.parameters.addonId + "/backups/" + opts.parameters.backupId;
|
|
30
|
-
};
|
|
31
|
-
_this.body = function () { return undefined; };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return GetAddonBackupEndpoint;
|
|
35
|
-
}(api_endpoint_1.GetApiEndpoint));
|
|
36
|
-
exports.GetAddonBackupEndpoint = GetAddonBackupEndpoint;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, GetApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type GetAddonBackupsResult = {
|
|
4
|
-
/** A list of backups for the given addon. */
|
|
5
|
-
'backups': {
|
|
6
|
-
/** The identifier for the backup. Example: "example-backup" */
|
|
7
|
-
'id': string;
|
|
8
|
-
/** The name of the backup. Example: "Example Backup" */
|
|
9
|
-
'name': string;
|
|
10
|
-
/** The current status of the backup. Example: "completed" */
|
|
11
|
-
'status': 'scheduled' | 'in-progress' | 'completed' | 'aborting' | 'aborted' | 'failed' | 'not-supported';
|
|
12
|
-
/** The time the backup was initiated. Example: "2021-01-20T11:19:53.175Z" */
|
|
13
|
-
'createdAt': string;
|
|
14
|
-
/** The time the backup was completed. Example: "2021-01-20T11:19:54.494Z" */
|
|
15
|
-
'completedAt': string;
|
|
16
|
-
/** Data about the backup configuration. */
|
|
17
|
-
'config': {
|
|
18
|
-
/** Data about the source of the backup. */
|
|
19
|
-
'source'?: {
|
|
20
|
-
/** The type of backup. Example: "snapshot" */
|
|
21
|
-
'type'?: 'fileUpload' | 'liveInstance' | 'snapshot' | 'externalDump' | 'sameAddon';
|
|
22
|
-
};
|
|
23
|
-
/** The size of the backup, in bytes Example: "1234" */
|
|
24
|
-
'size': string;
|
|
25
|
-
/** The version of the addon at the time of the backup. If the backup type is `snapshot`, the addon will be restored to this version when the backup is restored. Example: "4.4.8" */
|
|
26
|
-
'addonVersion'?: string;
|
|
27
|
-
};
|
|
28
|
-
}[];
|
|
29
|
-
};
|
|
30
|
-
export declare type GetAddonBackupsCall = (opts: GetAddonBackupsRequest) => Promise<ApiCallResponse<GetAddonBackupsResult>>;
|
|
31
|
-
export declare type GetAddonBackupsRequest = {
|
|
32
|
-
parameters: GetAddonBackupsParameters;
|
|
33
|
-
options?: GetAddonBackupsOptions;
|
|
34
|
-
};
|
|
35
|
-
export declare type GetAddonBackupsParameters = {
|
|
36
|
-
/** ID of the project */ 'projectId': string;
|
|
37
|
-
/** ID of the addon */
|
|
38
|
-
'addonId': string;
|
|
39
|
-
};
|
|
40
|
-
export declare type GetAddonBackupsOptions = {
|
|
41
|
-
/** The number of results to display per request. Maximum of 100 results per page. */
|
|
42
|
-
'per_page'?: number;
|
|
43
|
-
/** The page number to access. */
|
|
44
|
-
'page'?: number;
|
|
45
|
-
/** The cursor returned from the previous page of results, used to request the next page. */
|
|
46
|
-
'cursor'?: string;
|
|
47
|
-
};
|
|
48
|
-
/** Returns a list of backups for the given addon. */
|
|
49
|
-
export declare class GetAddonBackupsEndpoint extends GetApiEndpoint<GetAddonBackupsRequest, GetAddonBackupsResult> {
|
|
50
|
-
description: string;
|
|
51
|
-
withAuth: boolean;
|
|
52
|
-
endpointUrl: (opts: GetAddonBackupsRequest) => string;
|
|
53
|
-
body: () => undefined;
|
|
54
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
3
|
-
var __extends = (this && this.__extends) || (function () {
|
|
4
|
-
var extendStatics = function (d, b) {
|
|
5
|
-
extendStatics = Object.setPrototypeOf ||
|
|
6
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
8
|
-
return extendStatics(d, b);
|
|
9
|
-
};
|
|
10
|
-
return function (d, b) {
|
|
11
|
-
if (typeof b !== "function" && b !== null)
|
|
12
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13
|
-
extendStatics(d, b);
|
|
14
|
-
function __() { this.constructor = d; }
|
|
15
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16
|
-
};
|
|
17
|
-
})();
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.GetAddonBackupsEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Returns a list of backups for the given addon. */
|
|
22
|
-
var GetAddonBackupsEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(GetAddonBackupsEndpoint, _super);
|
|
24
|
-
function GetAddonBackupsEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Returns a list of backups for the given addon.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
var _a;
|
|
30
|
-
var optionEntries = Object.entries((_a = opts === null || opts === void 0 ? void 0 : opts.options) !== null && _a !== void 0 ? _a : {});
|
|
31
|
-
var optionStr = optionEntries.length > 0 ? '?' + optionEntries.map(function (a) { return a[0] + '=' + a[1]; }).join('&') : '';
|
|
32
|
-
return ("/v1/projects/" + opts.parameters.projectId + "/addons/" + opts.parameters.addonId + "/backups" +
|
|
33
|
-
optionStr);
|
|
34
|
-
};
|
|
35
|
-
_this.body = function () { return undefined; };
|
|
36
|
-
return _this;
|
|
37
|
-
}
|
|
38
|
-
return GetAddonBackupsEndpoint;
|
|
39
|
-
}(api_endpoint_1.GetApiEndpoint));
|
|
40
|
-
exports.GetAddonBackupsEndpoint = GetAddonBackupsEndpoint;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, GetApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type GetAddonContainersResult = {
|
|
4
|
-
/** An array of containers. */
|
|
5
|
-
'pods': {
|
|
6
|
-
/** The timestamp the pod was created. Example: 1611241087 */
|
|
7
|
-
'createdAt': number;
|
|
8
|
-
/** The name of the pod. Example: "example-service-78b4d4459d-sbtn8" */
|
|
9
|
-
'podName': string;
|
|
10
|
-
/** The region where the pod is deployed. Example: "europe-west" */
|
|
11
|
-
'region': string;
|
|
12
|
-
/** The current status of the pod. Example: "TASK_RUNNING" */
|
|
13
|
-
'status': 'TASK_RUNNING' | 'TASK_STARTING' | 'TASK_STAGING' | 'TASK_KILLING' | 'TASK_KILLED' | 'TASK_FAILED' | 'TASK_FINISHED';
|
|
14
|
-
}[];
|
|
15
|
-
};
|
|
16
|
-
export declare type GetAddonContainersCall = (opts: GetAddonContainersRequest) => Promise<ApiCallResponse<GetAddonContainersResult>>;
|
|
17
|
-
export declare type GetAddonContainersRequest = {
|
|
18
|
-
parameters: GetAddonContainersParameters;
|
|
19
|
-
options?: GetAddonContainersOptions;
|
|
20
|
-
};
|
|
21
|
-
export declare type GetAddonContainersParameters = {
|
|
22
|
-
/** ID of the project */ 'projectId': string;
|
|
23
|
-
/** ID of the addon */
|
|
24
|
-
'addonId': string;
|
|
25
|
-
};
|
|
26
|
-
export declare type GetAddonContainersOptions = {
|
|
27
|
-
/** The number of results to display per request. Maximum of 100 results per page. */
|
|
28
|
-
'per_page'?: number;
|
|
29
|
-
/** The page number to access. */
|
|
30
|
-
'page'?: number;
|
|
31
|
-
/** The cursor returned from the previous page of results, used to request the next page. */
|
|
32
|
-
'cursor'?: string;
|
|
33
|
-
};
|
|
34
|
-
/** Gets a list of containers for the given addon. */
|
|
35
|
-
export declare class GetAddonContainersEndpoint extends GetApiEndpoint<GetAddonContainersRequest, GetAddonContainersResult> {
|
|
36
|
-
description: string;
|
|
37
|
-
withAuth: boolean;
|
|
38
|
-
endpointUrl: (opts: GetAddonContainersRequest) => string;
|
|
39
|
-
body: () => undefined;
|
|
40
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
3
|
-
var __extends = (this && this.__extends) || (function () {
|
|
4
|
-
var extendStatics = function (d, b) {
|
|
5
|
-
extendStatics = Object.setPrototypeOf ||
|
|
6
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
8
|
-
return extendStatics(d, b);
|
|
9
|
-
};
|
|
10
|
-
return function (d, b) {
|
|
11
|
-
if (typeof b !== "function" && b !== null)
|
|
12
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13
|
-
extendStatics(d, b);
|
|
14
|
-
function __() { this.constructor = d; }
|
|
15
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16
|
-
};
|
|
17
|
-
})();
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.GetAddonContainersEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Gets a list of containers for the given addon. */
|
|
22
|
-
var GetAddonContainersEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(GetAddonContainersEndpoint, _super);
|
|
24
|
-
function GetAddonContainersEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Gets a list of containers for the given addon.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
var _a;
|
|
30
|
-
var optionEntries = Object.entries((_a = opts === null || opts === void 0 ? void 0 : opts.options) !== null && _a !== void 0 ? _a : {});
|
|
31
|
-
var optionStr = optionEntries.length > 0 ? '?' + optionEntries.map(function (a) { return a[0] + '=' + a[1]; }).join('&') : '';
|
|
32
|
-
return ("/v1/projects/" + opts.parameters.projectId + "/addons/" + opts.parameters.addonId + "/containers" +
|
|
33
|
-
optionStr);
|
|
34
|
-
};
|
|
35
|
-
_this.body = function () { return undefined; };
|
|
36
|
-
return _this;
|
|
37
|
-
}
|
|
38
|
-
return GetAddonContainersEndpoint;
|
|
39
|
-
}(api_endpoint_1.GetApiEndpoint));
|
|
40
|
-
exports.GetAddonContainersEndpoint = GetAddonContainersEndpoint;
|