@northflank/js-client 0.3.4 → 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/README.md +2 -2
- 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 +13 -20
- package/dist/api-client.d.ts +0 -497
- package/dist/api-client.js +0 -625
- 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 -136
- 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/run.d.ts +0 -21
- package/dist/endpoints/abort/job/run.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 -25
- package/dist/endpoints/assign/subdomain/service.js +0 -36
- package/dist/endpoints/backup/addon.d.ts +0 -24
- 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 -155
- package/dist/endpoints/create/job/cron.js +0 -36
- package/dist/endpoints/create/job/normal.d.ts +0 -145
- package/dist/endpoints/create/job/normal.js +0 -36
- package/dist/endpoints/create/project.d.ts +0 -24
- 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 -112
- package/dist/endpoints/create/service/build.js +0 -36
- package/dist/endpoints/create/service/combined.d.ts +0 -168
- package/dist/endpoints/create/service/combined.js +0 -36
- package/dist/endpoints/create/service/deployment.d.ts +0 -141
- 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/details.d.ts +0 -39
- package/dist/endpoints/get/addon/backup/details.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/backups.d.ts +0 -47
- 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/details.d.ts +0 -69
- package/dist/endpoints/get/addon/details.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/dnsId.d.ts +0 -15
- package/dist/endpoints/get/dnsId.js +0 -36
- package/dist/endpoints/get/domain/details.d.ts +0 -33
- package/dist/endpoints/get/domain/details.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/details.d.ts +0 -84
- package/dist/endpoints/get/job/details.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/project/details.d.ts +0 -72
- package/dist/endpoints/get/project/details.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/details.d.ts +0 -101
- package/dist/endpoints/get/service/details.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 -34
- package/dist/endpoints/get/service/ports.js +0 -36
- package/dist/endpoints/get/service/security.d.ts +0 -40
- package/dist/endpoints/get/service/security.js +0 -36
- package/dist/endpoints/get/subdomain/details.d.ts +0 -30
- package/dist/endpoints/get/subdomain/details.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/addon.d.ts +0 -45
- package/dist/endpoints/list/addon.js +0 -39
- package/dist/endpoints/list/domain.d.ts +0 -34
- package/dist/endpoints/list/domain.js +0 -39
- package/dist/endpoints/list/job.d.ts +0 -44
- package/dist/endpoints/list/job.js +0 -39
- package/dist/endpoints/list/plan.d.ts +0 -30
- package/dist/endpoints/list/plan.js +0 -36
- package/dist/endpoints/list/project.d.ts +0 -32
- package/dist/endpoints/list/project.js +0 -39
- package/dist/endpoints/list/region.d.ts +0 -18
- package/dist/endpoints/list/region.js +0 -36
- package/dist/endpoints/list/registryCredentials.d.ts +0 -41
- package/dist/endpoints/list/registryCredentials.js +0 -39
- package/dist/endpoints/list/secret.d.ts +0 -52
- package/dist/endpoints/list/secret.js +0 -39
- package/dist/endpoints/list/service.d.ts +0 -44
- package/dist/endpoints/list/service.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 -24
- 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 -44
- 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 -43
- 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 -44
- package/dist/endpoints/update/service/healthChecks.js +0 -36
- package/dist/endpoints/update/service/ports.d.ts +0 -37
- package/dist/endpoints/update/service/ports.js +0 -36
- package/dist/endpoints/update/service/security.d.ts +0 -42
- package/dist/endpoints/update/service/security.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 -79
- package/dist/port-forward/client/port-forwarder.js +0 -569
- 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 -7
- package/dist/utils.js +0 -46
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type StartJobRunResult = {
|
|
4
|
-
/** The ID of the job run Example: "d34582a4-35bd-4c71-8e7c-e36999b88723" */
|
|
5
|
-
'id': string;
|
|
6
|
-
/** The name of the job run Example: "example-job-5fcf67bc56e1913e21d49504" */
|
|
7
|
-
'runName': string;
|
|
8
|
-
};
|
|
9
|
-
export declare type StartJobRunCall = (opts: StartJobRunRequest) => Promise<ApiCallResponse<StartJobRunResult>>;
|
|
10
|
-
export declare type StartJobRunRequest = {
|
|
11
|
-
parameters: StartJobRunParameters;
|
|
12
|
-
};
|
|
13
|
-
export declare type StartJobRunParameters = {
|
|
14
|
-
/** ID of the project */ 'projectId': string;
|
|
15
|
-
/** ID of the job */
|
|
16
|
-
'jobId': string;
|
|
17
|
-
};
|
|
18
|
-
/** Starts a new job run for the given job */
|
|
19
|
-
export declare class StartJobRunEndpoint extends PostApiEndpoint<StartJobRunRequest, StartJobRunResult> {
|
|
20
|
-
description: string;
|
|
21
|
-
withAuth: boolean;
|
|
22
|
-
endpointUrl: (opts: StartJobRunRequest) => 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.StartJobRunEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Starts a new job run for the given job */
|
|
22
|
-
var StartJobRunEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(StartJobRunEndpoint, _super);
|
|
24
|
-
function StartJobRunEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Starts a new job run for the given job';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/jobs/" + opts.parameters.jobId + "/runs";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function () { return undefined; };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return StartJobRunEndpoint;
|
|
35
|
-
}(api_endpoint_1.PostApiEndpoint));
|
|
36
|
-
exports.StartJobRunEndpoint = StartJobRunEndpoint;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type StartServiceBuildResult = {
|
|
4
|
-
/** Name of the branch the built commit belongs to. Example: "main" */
|
|
5
|
-
'branch'?: string;
|
|
6
|
-
/** ID of the pull request the commit belongs to. */
|
|
7
|
-
'pullRequestId'?: number;
|
|
8
|
-
/** The sha of the built commit. Example: "12c15e7ee25fd78f567ebf87f9178b8ad70025b3" */
|
|
9
|
-
'sha'?: string;
|
|
10
|
-
/** Timestamp of the build initiation. Example: "2021-07-28T15:55:38.296Z" */
|
|
11
|
-
'createdAt'?: string;
|
|
12
|
-
/** The status of the build. Example: "PENDING" */
|
|
13
|
-
'status'?: string;
|
|
14
|
-
/** Whether the build has finished. */
|
|
15
|
-
'concluded'?: boolean;
|
|
16
|
-
};
|
|
17
|
-
export declare type StartServiceBuildCall = (opts: StartServiceBuildRequest) => Promise<ApiCallResponse<StartServiceBuildResult>>;
|
|
18
|
-
export declare type StartServiceBuildRequest = {
|
|
19
|
-
parameters: StartServiceBuildParameters;
|
|
20
|
-
data: StartServiceBuildData;
|
|
21
|
-
};
|
|
22
|
-
export declare type StartServiceBuildParameters = {
|
|
23
|
-
/** ID of the project */ 'projectId': string;
|
|
24
|
-
/** ID of the service */
|
|
25
|
-
'serviceId': string;
|
|
26
|
-
};
|
|
27
|
-
export declare type StartServiceBuildData = {
|
|
28
|
-
/** Commit sha to build. Example: "262ed9817b3cad5142fbceabe0c9e371e390d616" */
|
|
29
|
-
'sha'?: string;
|
|
30
|
-
/** Branch to build from. If sha is missing, the latest commit of this branch will be built. Only supported by build services. */
|
|
31
|
-
'branch'?: string;
|
|
32
|
-
/** ID of a pull request to build from. If sha is missing, the latest commit of this pull request will be built. Only supported by build services. */
|
|
33
|
-
'pullRequestId'?: number;
|
|
34
|
-
};
|
|
35
|
-
/** Start a new build for the given combined or build service. If given a commit sha, it will build that commit. If given a branch name or pull request ID, it will build the most recent commit from that branch or PR (build services only). */
|
|
36
|
-
export declare class StartServiceBuildEndpoint extends PostApiEndpoint<StartServiceBuildRequest, StartServiceBuildResult> {
|
|
37
|
-
description: string;
|
|
38
|
-
withAuth: boolean;
|
|
39
|
-
endpointUrl: (opts: StartServiceBuildRequest) => string;
|
|
40
|
-
body: (payload: StartServiceBuildRequest) => string;
|
|
41
|
-
}
|
|
@@ -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.StartServiceBuildEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Start a new build for the given combined or build service. If given a commit sha, it will build that commit. If given a branch name or pull request ID, it will build the most recent commit from that branch or PR (build services only). */
|
|
22
|
-
var StartServiceBuildEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(StartServiceBuildEndpoint, _super);
|
|
24
|
-
function StartServiceBuildEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Start a new build for the given combined or build service. If given a commit sha, it will build that commit. If given a branch name or pull request ID, it will build the most recent commit from that branch or PR (build services only).';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/services/" + opts.parameters.serviceId + "/build";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function (payload) { return JSON.stringify(payload.data); };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return StartServiceBuildEndpoint;
|
|
35
|
-
}(api_endpoint_1.PostApiEndpoint));
|
|
36
|
-
exports.StartServiceBuildEndpoint = StartServiceBuildEndpoint;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, DeleteApiEndpoint } from '../../api-endpoint';
|
|
3
|
-
export declare type UnassignSubdomainResult = any;
|
|
4
|
-
export declare type UnassignSubdomainCall = (opts: UnassignSubdomainRequest) => Promise<ApiCallResponse<UnassignSubdomainResult>>;
|
|
5
|
-
export declare type UnassignSubdomainRequest = {
|
|
6
|
-
parameters: UnassignSubdomainParameters;
|
|
7
|
-
};
|
|
8
|
-
export declare type UnassignSubdomainParameters = {
|
|
9
|
-
/** Name of the domain */ 'domain': string;
|
|
10
|
-
/** Name of the subdomain */
|
|
11
|
-
'subdomain': string;
|
|
12
|
-
};
|
|
13
|
-
/** Removes a subdomain from its assigned service */
|
|
14
|
-
export declare class UnassignSubdomainEndpoint extends DeleteApiEndpoint<UnassignSubdomainRequest, UnassignSubdomainResult> {
|
|
15
|
-
description: string;
|
|
16
|
-
withAuth: boolean;
|
|
17
|
-
endpointUrl: (opts: UnassignSubdomainRequest) => 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.UnassignSubdomainEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../api-endpoint");
|
|
21
|
-
/** Removes a subdomain from its assigned service */
|
|
22
|
-
var UnassignSubdomainEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(UnassignSubdomainEndpoint, _super);
|
|
24
|
-
function UnassignSubdomainEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Removes a subdomain from its assigned service';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/domains/" + opts.parameters.domain + "/subdomains/" + opts.parameters.subdomain + "/assign";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function () { return undefined; };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return UnassignSubdomainEndpoint;
|
|
35
|
-
}(api_endpoint_1.DeleteApiEndpoint));
|
|
36
|
-
exports.UnassignSubdomainEndpoint = UnassignSubdomainEndpoint;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type UpdateAddonNetworksettingsResult = any;
|
|
4
|
-
export declare type UpdateAddonNetworksettingsCall = (opts: UpdateAddonNetworksettingsRequest) => Promise<ApiCallResponse<UpdateAddonNetworksettingsResult>>;
|
|
5
|
-
export declare type UpdateAddonNetworksettingsRequest = {
|
|
6
|
-
parameters: UpdateAddonNetworksettingsParameters;
|
|
7
|
-
data: UpdateAddonNetworksettingsData;
|
|
8
|
-
};
|
|
9
|
-
export declare type UpdateAddonNetworksettingsParameters = {
|
|
10
|
-
/** ID of the project */ 'projectId': string;
|
|
11
|
-
/** ID of the addon */
|
|
12
|
-
'addonId': string;
|
|
13
|
-
};
|
|
14
|
-
export declare type UpdateAddonNetworksettingsData = {
|
|
15
|
-
/** If `true`, a TLS certificate will be provisioned for the addon. Example: true */
|
|
16
|
-
'tlsEnabled'?: boolean;
|
|
17
|
-
/** If `true`, the addon will be given a public URL and will be accessible from the internet. `tlsEnabled` must be `true` to set this as `true`. Example: true */
|
|
18
|
-
'externalAccessEnabled'?: boolean;
|
|
19
|
-
};
|
|
20
|
-
/** Updates the network settings for the addon. */
|
|
21
|
-
export declare class UpdateAddonNetworksettingsEndpoint extends PostApiEndpoint<UpdateAddonNetworksettingsRequest, UpdateAddonNetworksettingsResult> {
|
|
22
|
-
description: string;
|
|
23
|
-
withAuth: boolean;
|
|
24
|
-
endpointUrl: (opts: UpdateAddonNetworksettingsRequest) => string;
|
|
25
|
-
body: (payload: UpdateAddonNetworksettingsRequest) => string;
|
|
26
|
-
}
|
|
@@ -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.UpdateAddonNetworksettingsEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Updates the network settings for the addon. */
|
|
22
|
-
var UpdateAddonNetworksettingsEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(UpdateAddonNetworksettingsEndpoint, _super);
|
|
24
|
-
function UpdateAddonNetworksettingsEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Updates the network settings for the addon.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/addons/" + opts.parameters.addonId + "/network-settings";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function (payload) { return JSON.stringify(payload.data); };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return UpdateAddonNetworksettingsEndpoint;
|
|
35
|
-
}(api_endpoint_1.PostApiEndpoint));
|
|
36
|
-
exports.UpdateAddonNetworksettingsEndpoint = UpdateAddonNetworksettingsEndpoint;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type UpdateAddonSecurityResult = any;
|
|
4
|
-
export declare type UpdateAddonSecurityCall = (opts: UpdateAddonSecurityRequest) => Promise<ApiCallResponse<UpdateAddonSecurityResult>>;
|
|
5
|
-
export declare type UpdateAddonSecurityRequest = {
|
|
6
|
-
parameters: UpdateAddonSecurityParameters;
|
|
7
|
-
data: UpdateAddonSecurityData;
|
|
8
|
-
};
|
|
9
|
-
export declare type UpdateAddonSecurityParameters = {
|
|
10
|
-
/** ID of the project */ 'projectId': string;
|
|
11
|
-
/** ID of the addon */
|
|
12
|
-
'addonId': string;
|
|
13
|
-
};
|
|
14
|
-
export declare type UpdateAddonSecurityData = {
|
|
15
|
-
/** An array of IP policy rules. */
|
|
16
|
-
'ipPolicies': {
|
|
17
|
-
/** An IP address used by this rule. Example: "127.0.0.1" */
|
|
18
|
-
'address': string;
|
|
19
|
-
/** The action for this rule. Example: "ALLOW" */
|
|
20
|
-
'action'?: 'ALLOW' | 'DENY';
|
|
21
|
-
}[];
|
|
22
|
-
};
|
|
23
|
-
/** Updates the security rules for the addon. */
|
|
24
|
-
export declare class UpdateAddonSecurityEndpoint extends PostApiEndpoint<UpdateAddonSecurityRequest, UpdateAddonSecurityResult> {
|
|
25
|
-
description: string;
|
|
26
|
-
withAuth: boolean;
|
|
27
|
-
endpointUrl: (opts: UpdateAddonSecurityRequest) => string;
|
|
28
|
-
body: (payload: UpdateAddonSecurityRequest) => string;
|
|
29
|
-
}
|
|
@@ -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.UpdateAddonSecurityEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Updates the security rules for the addon. */
|
|
22
|
-
var UpdateAddonSecurityEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(UpdateAddonSecurityEndpoint, _super);
|
|
24
|
-
function UpdateAddonSecurityEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Updates the security rules for the addon.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/addons/" + opts.parameters.addonId + "/security";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function (payload) { return JSON.stringify(payload.data); };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return UpdateAddonSecurityEndpoint;
|
|
35
|
-
}(api_endpoint_1.PostApiEndpoint));
|
|
36
|
-
exports.UpdateAddonSecurityEndpoint = UpdateAddonSecurityEndpoint;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type UpdateAddonVersionResult = any;
|
|
4
|
-
export declare type UpdateAddonVersionCall = (opts: UpdateAddonVersionRequest) => Promise<ApiCallResponse<UpdateAddonVersionResult>>;
|
|
5
|
-
export declare type UpdateAddonVersionRequest = {
|
|
6
|
-
parameters: UpdateAddonVersionParameters;
|
|
7
|
-
data: UpdateAddonVersionData;
|
|
8
|
-
};
|
|
9
|
-
export declare type UpdateAddonVersionParameters = {
|
|
10
|
-
/** ID of the project */ 'projectId': string;
|
|
11
|
-
/** ID of the addon */
|
|
12
|
-
'addonId': string;
|
|
13
|
-
};
|
|
14
|
-
export declare type UpdateAddonVersionData = {
|
|
15
|
-
/** The version to upgrade the addon to. Example: "4.2.15" */
|
|
16
|
-
'version': string;
|
|
17
|
-
};
|
|
18
|
-
/** Upgrades the addon to a new version. */
|
|
19
|
-
export declare class UpdateAddonVersionEndpoint extends PostApiEndpoint<UpdateAddonVersionRequest, UpdateAddonVersionResult> {
|
|
20
|
-
description: string;
|
|
21
|
-
withAuth: boolean;
|
|
22
|
-
endpointUrl: (opts: UpdateAddonVersionRequest) => string;
|
|
23
|
-
body: (payload: UpdateAddonVersionRequest) => string;
|
|
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.UpdateAddonVersionEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Upgrades the addon to a new version. */
|
|
22
|
-
var UpdateAddonVersionEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(UpdateAddonVersionEndpoint, _super);
|
|
24
|
-
function UpdateAddonVersionEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Upgrades the addon to a new version.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/addons/" + opts.parameters.addonId + "/version";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function (payload) { return JSON.stringify(payload.data); };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return UpdateAddonVersionEndpoint;
|
|
35
|
-
}(api_endpoint_1.PostApiEndpoint));
|
|
36
|
-
exports.UpdateAddonVersionEndpoint = UpdateAddonVersionEndpoint;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type UpdateJobBuildargumentsResult = any;
|
|
4
|
-
export declare type UpdateJobBuildargumentsCall = (opts: UpdateJobBuildargumentsRequest) => Promise<ApiCallResponse<UpdateJobBuildargumentsResult>>;
|
|
5
|
-
export declare type UpdateJobBuildargumentsRequest = {
|
|
6
|
-
parameters: UpdateJobBuildargumentsParameters;
|
|
7
|
-
data: UpdateJobBuildargumentsData;
|
|
8
|
-
};
|
|
9
|
-
export declare type UpdateJobBuildargumentsParameters = {
|
|
10
|
-
/** ID of the project */ 'projectId': string;
|
|
11
|
-
/** ID of the job */
|
|
12
|
-
'jobId': string;
|
|
13
|
-
};
|
|
14
|
-
export declare type UpdateJobBuildargumentsData = {
|
|
15
|
-
/** An object containing the all of the build arguments to set for the service Example: {"ARGUMENT_1":"abcdef","ARGUMENT_2":"12345"} */
|
|
16
|
-
'buildArguments': any;
|
|
17
|
-
};
|
|
18
|
-
/** Sets build arguments for the given job. */
|
|
19
|
-
export declare class UpdateJobBuildargumentsEndpoint extends PostApiEndpoint<UpdateJobBuildargumentsRequest, UpdateJobBuildargumentsResult> {
|
|
20
|
-
description: string;
|
|
21
|
-
withAuth: boolean;
|
|
22
|
-
endpointUrl: (opts: UpdateJobBuildargumentsRequest) => string;
|
|
23
|
-
body: (payload: UpdateJobBuildargumentsRequest) => string;
|
|
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.UpdateJobBuildargumentsEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Sets build arguments for the given job. */
|
|
22
|
-
var UpdateJobBuildargumentsEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(UpdateJobBuildargumentsEndpoint, _super);
|
|
24
|
-
function UpdateJobBuildargumentsEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Sets build arguments for the given job.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/jobs/" + opts.parameters.jobId + "/build-arguments";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function (payload) { return JSON.stringify(payload.data); };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return UpdateJobBuildargumentsEndpoint;
|
|
35
|
-
}(api_endpoint_1.PostApiEndpoint));
|
|
36
|
-
exports.UpdateJobBuildargumentsEndpoint = UpdateJobBuildargumentsEndpoint;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type UpdateJobCmdoverrideResult = any;
|
|
4
|
-
export declare type UpdateJobCmdoverrideCall = (opts: UpdateJobCmdoverrideRequest) => Promise<ApiCallResponse<UpdateJobCmdoverrideResult>>;
|
|
5
|
-
export declare type UpdateJobCmdoverrideRequest = {
|
|
6
|
-
parameters: UpdateJobCmdoverrideParameters;
|
|
7
|
-
data: UpdateJobCmdoverrideData;
|
|
8
|
-
};
|
|
9
|
-
export declare type UpdateJobCmdoverrideParameters = {
|
|
10
|
-
/** ID of the project */ 'projectId': string;
|
|
11
|
-
/** ID of the job */
|
|
12
|
-
'jobId': string;
|
|
13
|
-
};
|
|
14
|
-
export declare type UpdateJobCmdoverrideData = {
|
|
15
|
-
/** The CMD to run, or null to disable the override. Example: "nginx -g" */
|
|
16
|
-
'cmd': string;
|
|
17
|
-
};
|
|
18
|
-
/** Sets the Docker CMD override for the given job. */
|
|
19
|
-
export declare class UpdateJobCmdoverrideEndpoint extends PostApiEndpoint<UpdateJobCmdoverrideRequest, UpdateJobCmdoverrideResult> {
|
|
20
|
-
description: string;
|
|
21
|
-
withAuth: boolean;
|
|
22
|
-
endpointUrl: (opts: UpdateJobCmdoverrideRequest) => string;
|
|
23
|
-
body: (payload: UpdateJobCmdoverrideRequest) => string;
|
|
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.UpdateJobCmdoverrideEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Sets the Docker CMD override for the given job. */
|
|
22
|
-
var UpdateJobCmdoverrideEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(UpdateJobCmdoverrideEndpoint, _super);
|
|
24
|
-
function UpdateJobCmdoverrideEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Sets the Docker CMD override for the given job.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/jobs/" + opts.parameters.jobId + "/cmd-override";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function (payload) { return JSON.stringify(payload.data); };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return UpdateJobCmdoverrideEndpoint;
|
|
35
|
-
}(api_endpoint_1.PostApiEndpoint));
|
|
36
|
-
exports.UpdateJobCmdoverrideEndpoint = UpdateJobCmdoverrideEndpoint;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type UpdateJobDeploymentResult = any;
|
|
4
|
-
export declare type UpdateJobDeploymentCall = (opts: UpdateJobDeploymentRequest) => Promise<ApiCallResponse<UpdateJobDeploymentResult>>;
|
|
5
|
-
export declare type UpdateJobDeploymentRequest = {
|
|
6
|
-
parameters: UpdateJobDeploymentParameters;
|
|
7
|
-
data: UpdateJobDeploymentData;
|
|
8
|
-
};
|
|
9
|
-
export declare type UpdateJobDeploymentParameters = {
|
|
10
|
-
/** ID of the project */ 'projectId': string;
|
|
11
|
-
/** ID of the job */
|
|
12
|
-
'jobId': string;
|
|
13
|
-
};
|
|
14
|
-
export declare type UpdateJobDeploymentData = {
|
|
15
|
-
'external'?: {
|
|
16
|
-
/** Path of the external image excluding the hostname Example: "nginx:latest" */
|
|
17
|
-
'imagePath': string;
|
|
18
|
-
/** ID of the saved credentials to use to access this external image. Example: "example-credentials" */
|
|
19
|
-
'credentials'?: string;
|
|
20
|
-
};
|
|
21
|
-
} | {
|
|
22
|
-
'internal'?: {
|
|
23
|
-
/** ID of the build service to deploy Example: "example-build-service" */
|
|
24
|
-
'id'?: string;
|
|
25
|
-
/** Branch to deploy Example: "master" */
|
|
26
|
-
'branch'?: string;
|
|
27
|
-
/** Commit SHA to deploy, or 'latest' to deploy the most recent commit Example: "latest" */
|
|
28
|
-
'buildSHA'?: any;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
/** Updates the deployment settings of the given job. */
|
|
32
|
-
export declare class UpdateJobDeploymentEndpoint extends PostApiEndpoint<UpdateJobDeploymentRequest, UpdateJobDeploymentResult> {
|
|
33
|
-
description: string;
|
|
34
|
-
withAuth: boolean;
|
|
35
|
-
endpointUrl: (opts: UpdateJobDeploymentRequest) => string;
|
|
36
|
-
body: (payload: UpdateJobDeploymentRequest) => string;
|
|
37
|
-
}
|
|
@@ -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.UpdateJobDeploymentEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Updates the deployment settings of the given job. */
|
|
22
|
-
var UpdateJobDeploymentEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(UpdateJobDeploymentEndpoint, _super);
|
|
24
|
-
function UpdateJobDeploymentEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Updates the deployment settings of the given job.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/jobs/" + opts.parameters.jobId + "/deployment";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function (payload) { return JSON.stringify(payload.data); };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return UpdateJobDeploymentEndpoint;
|
|
35
|
-
}(api_endpoint_1.PostApiEndpoint));
|
|
36
|
-
exports.UpdateJobDeploymentEndpoint = UpdateJobDeploymentEndpoint;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type UpdateJobEnvironmentResult = any;
|
|
4
|
-
export declare type UpdateJobEnvironmentCall = (opts: UpdateJobEnvironmentRequest) => Promise<ApiCallResponse<UpdateJobEnvironmentResult>>;
|
|
5
|
-
export declare type UpdateJobEnvironmentRequest = {
|
|
6
|
-
parameters: UpdateJobEnvironmentParameters;
|
|
7
|
-
data: UpdateJobEnvironmentData;
|
|
8
|
-
};
|
|
9
|
-
export declare type UpdateJobEnvironmentParameters = {
|
|
10
|
-
/** ID of the project */ 'projectId': string;
|
|
11
|
-
/** ID of the job */
|
|
12
|
-
'jobId': string;
|
|
13
|
-
};
|
|
14
|
-
export declare type UpdateJobEnvironmentData = {
|
|
15
|
-
/** An object containing the all of the environment variables to set for the service Example: {"VARIABLE_1":"abcdef","VARIABLE_2":"12345"} */
|
|
16
|
-
'runtimeEnvironment': any;
|
|
17
|
-
};
|
|
18
|
-
/** Sets the environment variables for the given job. */
|
|
19
|
-
export declare class UpdateJobEnvironmentEndpoint extends PostApiEndpoint<UpdateJobEnvironmentRequest, UpdateJobEnvironmentResult> {
|
|
20
|
-
description: string;
|
|
21
|
-
withAuth: boolean;
|
|
22
|
-
endpointUrl: (opts: UpdateJobEnvironmentRequest) => string;
|
|
23
|
-
body: (payload: UpdateJobEnvironmentRequest) => string;
|
|
24
|
-
}
|