@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,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.UpdateJobEnvironmentEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Sets the environment variables for the given job. */
|
|
22
|
-
var UpdateJobEnvironmentEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(UpdateJobEnvironmentEndpoint, _super);
|
|
24
|
-
function UpdateJobEnvironmentEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Sets the environment variables for the given job.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/jobs/" + opts.parameters.jobId + "/environment";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function (payload) { return JSON.stringify(payload.data); };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return UpdateJobEnvironmentEndpoint;
|
|
35
|
-
}(api_endpoint_1.PostApiEndpoint));
|
|
36
|
-
exports.UpdateJobEnvironmentEndpoint = UpdateJobEnvironmentEndpoint;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type UpdateJobHealthchecksResult = any;
|
|
4
|
-
export declare type UpdateJobHealthchecksCall = (opts: UpdateJobHealthchecksRequest) => Promise<ApiCallResponse<UpdateJobHealthchecksResult>>;
|
|
5
|
-
export declare type UpdateJobHealthchecksRequest = {
|
|
6
|
-
parameters: UpdateJobHealthchecksParameters;
|
|
7
|
-
data: UpdateJobHealthchecksData;
|
|
8
|
-
};
|
|
9
|
-
export declare type UpdateJobHealthchecksParameters = {
|
|
10
|
-
/** ID of the project */ 'projectId': string;
|
|
11
|
-
/** ID of the job */
|
|
12
|
-
'jobId': string;
|
|
13
|
-
};
|
|
14
|
-
export declare type UpdateJobHealthchecksData = {
|
|
15
|
-
/** An array of health checks */
|
|
16
|
-
'healthChecks': {
|
|
17
|
-
/** The protocol to access the health check with. Example: "HTTP" */
|
|
18
|
-
'protocol': 'HTTP' | 'CMD';
|
|
19
|
-
/** The type of health check. Example: "readinessProbe" */
|
|
20
|
-
'type': 'livenessProbe' | 'readinessProbe';
|
|
21
|
-
/** The path of the health check endpoint. Required when protocol is HTTP. */
|
|
22
|
-
'path'?: string;
|
|
23
|
-
/** The command to run for the health check. Required when protocol is CMD */
|
|
24
|
-
'cmd'?: string;
|
|
25
|
-
/** Port number for the health check endpoint. Required when protocol is HTTP. */
|
|
26
|
-
'port'?: number;
|
|
27
|
-
/** Initial delay, in seconds, before the health check is first run. Example: 10 */
|
|
28
|
-
'initialDelaySeconds': number;
|
|
29
|
-
/** The time between each check, in seconds. Example: 60 */
|
|
30
|
-
'periodSeconds': number;
|
|
31
|
-
'timeoutSeconds': number;
|
|
32
|
-
/** The maximum number of allowed failures. Example: 3 */
|
|
33
|
-
'failureThreshold': number;
|
|
34
|
-
/** The number of successes required to mark the health check as a success. */
|
|
35
|
-
'successThreshold'?: number;
|
|
36
|
-
}[];
|
|
37
|
-
};
|
|
38
|
-
/** Updates health checks for the given job. */
|
|
39
|
-
export declare class UpdateJobHealthchecksEndpoint extends PostApiEndpoint<UpdateJobHealthchecksRequest, UpdateJobHealthchecksResult> {
|
|
40
|
-
description: string;
|
|
41
|
-
withAuth: boolean;
|
|
42
|
-
endpointUrl: (opts: UpdateJobHealthchecksRequest) => string;
|
|
43
|
-
body: (payload: UpdateJobHealthchecksRequest) => string;
|
|
44
|
-
}
|
|
@@ -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.UpdateJobHealthchecksEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Updates health checks for the given job. */
|
|
22
|
-
var UpdateJobHealthchecksEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(UpdateJobHealthchecksEndpoint, _super);
|
|
24
|
-
function UpdateJobHealthchecksEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Updates health checks for the given job.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/jobs/" + opts.parameters.jobId + "/health-checks";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function (payload) { return JSON.stringify(payload.data); };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return UpdateJobHealthchecksEndpoint;
|
|
35
|
-
}(api_endpoint_1.PostApiEndpoint));
|
|
36
|
-
exports.UpdateJobHealthchecksEndpoint = UpdateJobHealthchecksEndpoint;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type UpdateJobSettingsResult = any;
|
|
4
|
-
export declare type UpdateJobSettingsCall = (opts: UpdateJobSettingsRequest) => Promise<ApiCallResponse<UpdateJobSettingsResult>>;
|
|
5
|
-
export declare type UpdateJobSettingsRequest = {
|
|
6
|
-
parameters: UpdateJobSettingsParameters;
|
|
7
|
-
data: UpdateJobSettingsData;
|
|
8
|
-
};
|
|
9
|
-
export declare type UpdateJobSettingsParameters = {
|
|
10
|
-
/** ID of the project */ 'projectId': string;
|
|
11
|
-
/** ID of the job */
|
|
12
|
-
'jobId': string;
|
|
13
|
-
};
|
|
14
|
-
export declare type UpdateJobSettingsData = {
|
|
15
|
-
/** The number of attempts to rerun a job before it is marked as failed. */
|
|
16
|
-
'backoffLimit'?: number;
|
|
17
|
-
/** The maximum amount of time, in seconds, for a job to run before it is marked as failed. Example: 600 */
|
|
18
|
-
'activeDeadlineSeconds'?: number;
|
|
19
|
-
/** The cron timer scheduling when to run the job. Required for cron jobs and unavailable for other job types. Example: "30 8 * * *" */
|
|
20
|
-
'schedule'?: string;
|
|
21
|
-
/** Whether this job should run when another instance of the job is already running. Only available for cron jobs. `allow` will enable multiple instances of this job to run. `forbid` will keep the current instance of the job running and stop a new instance from being run. `replace` will terminate any currently running instance of the job and start a new one. Example: "allow" */
|
|
22
|
-
'concurrencyPolicy'?: 'allow' | 'forbid' | 'replace';
|
|
23
|
-
};
|
|
24
|
-
/** Updates settings for the job */
|
|
25
|
-
export declare class UpdateJobSettingsEndpoint extends PostApiEndpoint<UpdateJobSettingsRequest, UpdateJobSettingsResult> {
|
|
26
|
-
description: string;
|
|
27
|
-
withAuth: boolean;
|
|
28
|
-
endpointUrl: (opts: UpdateJobSettingsRequest) => string;
|
|
29
|
-
body: (payload: UpdateJobSettingsRequest) => string;
|
|
30
|
-
}
|
|
@@ -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.UpdateJobSettingsEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Updates settings for the job */
|
|
22
|
-
var UpdateJobSettingsEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(UpdateJobSettingsEndpoint, _super);
|
|
24
|
-
function UpdateJobSettingsEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Updates settings for the job';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/jobs/" + opts.parameters.jobId + "/settings";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function (payload) { return JSON.stringify(payload.data); };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return UpdateJobSettingsEndpoint;
|
|
35
|
-
}(api_endpoint_1.PostApiEndpoint));
|
|
36
|
-
exports.UpdateJobSettingsEndpoint = UpdateJobSettingsEndpoint;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../api-endpoint';
|
|
3
|
-
export declare type UpdateRegistrycredentialsResult = any;
|
|
4
|
-
export declare type UpdateRegistrycredentialsCall = (opts: UpdateRegistrycredentialsRequest) => Promise<ApiCallResponse<UpdateRegistrycredentialsResult>>;
|
|
5
|
-
export declare type UpdateRegistrycredentialsRequest = {
|
|
6
|
-
parameters: UpdateRegistrycredentialsParameters;
|
|
7
|
-
data: UpdateRegistrycredentialsData;
|
|
8
|
-
};
|
|
9
|
-
export declare type UpdateRegistrycredentialsParameters = {
|
|
10
|
-
/** ID of the registry credential */ 'credentialId': string;
|
|
11
|
-
};
|
|
12
|
-
export declare type UpdateRegistrycredentialsData = {
|
|
13
|
-
/** Description of the credentials. Example: "This is a set of saved credentials." */
|
|
14
|
-
'description'?: string;
|
|
15
|
-
/** Data about whether the credentials are restricted to certain projects. */
|
|
16
|
-
'restrictions'?: {
|
|
17
|
-
/** Whether the credentials are restricted to specific projects. Example: true */
|
|
18
|
-
'restricted': boolean;
|
|
19
|
-
/** An array of projects the credentials are restricted to, if applicable. */
|
|
20
|
-
'projects'?: string[];
|
|
21
|
-
};
|
|
22
|
-
/** The registry credential data to save. Example: {"auths":{"https://index.docker.io/v1/":{"auth":"[YOUR AUTH KEY]"}}} */
|
|
23
|
-
'data'?: any;
|
|
24
|
-
};
|
|
25
|
-
/** Updates a set of registry credential data. */
|
|
26
|
-
export declare class UpdateRegistrycredentialsEndpoint extends PostApiEndpoint<UpdateRegistrycredentialsRequest, UpdateRegistrycredentialsResult> {
|
|
27
|
-
description: string;
|
|
28
|
-
withAuth: boolean;
|
|
29
|
-
endpointUrl: (opts: UpdateRegistrycredentialsRequest) => string;
|
|
30
|
-
body: (payload: UpdateRegistrycredentialsRequest) => string;
|
|
31
|
-
}
|
|
@@ -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.UpdateRegistrycredentialsEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../api-endpoint");
|
|
21
|
-
/** Updates a set of registry credential data. */
|
|
22
|
-
var UpdateRegistrycredentialsEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(UpdateRegistrycredentialsEndpoint, _super);
|
|
24
|
-
function UpdateRegistrycredentialsEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Updates a set of registry credential data.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/registry-credentials/" + opts.parameters.credentialId + "/modify";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function (payload) { return JSON.stringify(payload.data); };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return UpdateRegistrycredentialsEndpoint;
|
|
35
|
-
}(api_endpoint_1.PostApiEndpoint));
|
|
36
|
-
exports.UpdateRegistrycredentialsEndpoint = UpdateRegistrycredentialsEndpoint;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../api-endpoint';
|
|
3
|
-
export declare type UpdateSecretResult = any;
|
|
4
|
-
export declare type UpdateSecretCall = (opts: UpdateSecretRequest) => Promise<ApiCallResponse<UpdateSecretResult>>;
|
|
5
|
-
export declare type UpdateSecretRequest = {
|
|
6
|
-
parameters: UpdateSecretParameters;
|
|
7
|
-
data: UpdateSecretData;
|
|
8
|
-
};
|
|
9
|
-
export declare type UpdateSecretParameters = {
|
|
10
|
-
/** ID of the project */ 'projectId': string;
|
|
11
|
-
/** ID of the secret */
|
|
12
|
-
'secretId': string;
|
|
13
|
-
};
|
|
14
|
-
export declare type UpdateSecretData = {
|
|
15
|
-
/** A description of the secret. Example: "A description" */
|
|
16
|
-
'description'?: string;
|
|
17
|
-
/** The priority with which different secrets will be merged. Example: 10 */
|
|
18
|
-
'priority'?: number;
|
|
19
|
-
/** Restriction settings of the secret */
|
|
20
|
-
'restrictions'?: {
|
|
21
|
-
/** Is the secret restricted Example: true */
|
|
22
|
-
'restricted'?: boolean;
|
|
23
|
-
/** List of Northflank services & jobs the secret is restricted to */
|
|
24
|
-
'nfObjects'?: {
|
|
25
|
-
/** ID of the entity the secret is restricted to. Example: "example-service" */
|
|
26
|
-
'id': string;
|
|
27
|
-
/** Type of the entity the secret is restricted to. Example: "service" */
|
|
28
|
-
'type': string;
|
|
29
|
-
}[];
|
|
30
|
-
};
|
|
31
|
-
/** An array of addons to link to this secret group. If provided, this will overwrite any existing linked addons. */
|
|
32
|
-
'addonDependencies'?: {
|
|
33
|
-
/** The internal id of the addon to link. Example: "example-addon" */
|
|
34
|
-
'addonId'?: string;
|
|
35
|
-
/** An array of objects containing details about the keys to link to this secret group. */
|
|
36
|
-
'keys'?: {
|
|
37
|
-
/** The name of the key to link. Example: "username" */
|
|
38
|
-
'keyName': string;
|
|
39
|
-
/** An array of aliases for the key. */
|
|
40
|
-
'aliases'?: string[];
|
|
41
|
-
}[];
|
|
42
|
-
}[];
|
|
43
|
-
/** The type of the created secret Example: "environment" */
|
|
44
|
-
'secretType'?: 'environment' | 'arguments';
|
|
45
|
-
/** Secret contents as JSON object, encrypted at rest Example: {"NODE_ENV":"production","MONGO_DB":"some_connection_string"} */
|
|
46
|
-
'data'?: any;
|
|
47
|
-
};
|
|
48
|
-
/** Update a secret */
|
|
49
|
-
export declare class UpdateSecretEndpoint extends PostApiEndpoint<UpdateSecretRequest, UpdateSecretResult> {
|
|
50
|
-
description: string;
|
|
51
|
-
withAuth: boolean;
|
|
52
|
-
endpointUrl: (opts: UpdateSecretRequest) => string;
|
|
53
|
-
body: (payload: UpdateSecretRequest) => string;
|
|
54
|
-
}
|
|
@@ -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.UpdateSecretEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../api-endpoint");
|
|
21
|
-
/** Update a secret */
|
|
22
|
-
var UpdateSecretEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(UpdateSecretEndpoint, _super);
|
|
24
|
-
function UpdateSecretEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Update 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 (payload) { return JSON.stringify(payload.data); };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return UpdateSecretEndpoint;
|
|
35
|
-
}(api_endpoint_1.PostApiEndpoint));
|
|
36
|
-
exports.UpdateSecretEndpoint = UpdateSecretEndpoint;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../api-endpoint';
|
|
3
|
-
export declare type UpdateSecretlinkResult = {
|
|
4
|
-
/** An array of objects containing details about the keys linked to this secret group. */
|
|
5
|
-
'keys': {
|
|
6
|
-
/** The name of the key to link. Example: "username" */
|
|
7
|
-
'keyName': string;
|
|
8
|
-
/** An array of aliases for the key. */
|
|
9
|
-
'aliases'?: string[];
|
|
10
|
-
'defaultKey': string;
|
|
11
|
-
}[];
|
|
12
|
-
};
|
|
13
|
-
export declare type UpdateSecretlinkCall = (opts: UpdateSecretlinkRequest) => Promise<ApiCallResponse<UpdateSecretlinkResult>>;
|
|
14
|
-
export declare type UpdateSecretlinkRequest = {
|
|
15
|
-
parameters: UpdateSecretlinkParameters;
|
|
16
|
-
data: UpdateSecretlinkData;
|
|
17
|
-
};
|
|
18
|
-
export declare type UpdateSecretlinkParameters = {
|
|
19
|
-
/** ID of the project */ 'projectId': string;
|
|
20
|
-
/** ID of the secret */
|
|
21
|
-
'secretId': string;
|
|
22
|
-
/** ID of the addon */
|
|
23
|
-
'addonId': string;
|
|
24
|
-
};
|
|
25
|
-
export declare type UpdateSecretlinkData = {
|
|
26
|
-
/** An array of objects containing details about the keys to link to this secret group. */
|
|
27
|
-
'keys': {
|
|
28
|
-
/** The name of the key to link. Example: "username" */
|
|
29
|
-
'keyName': string;
|
|
30
|
-
/** An array of aliases for the key. */
|
|
31
|
-
'aliases'?: string[];
|
|
32
|
-
}[];
|
|
33
|
-
};
|
|
34
|
-
/** Link an addon to the secret group or edit the settings of the linked addon. */
|
|
35
|
-
export declare class UpdateSecretlinkEndpoint extends PostApiEndpoint<UpdateSecretlinkRequest, UpdateSecretlinkResult> {
|
|
36
|
-
description: string;
|
|
37
|
-
withAuth: boolean;
|
|
38
|
-
endpointUrl: (opts: UpdateSecretlinkRequest) => string;
|
|
39
|
-
body: (payload: UpdateSecretlinkRequest) => string;
|
|
40
|
-
}
|
|
@@ -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.UpdateSecretlinkEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../api-endpoint");
|
|
21
|
-
/** Link an addon to the secret group or edit the settings of the linked addon. */
|
|
22
|
-
var UpdateSecretlinkEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(UpdateSecretlinkEndpoint, _super);
|
|
24
|
-
function UpdateSecretlinkEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Link an addon to the secret group or edit the settings of the linked addon.';
|
|
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 (payload) { return JSON.stringify(payload.data); };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return UpdateSecretlinkEndpoint;
|
|
35
|
-
}(api_endpoint_1.PostApiEndpoint));
|
|
36
|
-
exports.UpdateSecretlinkEndpoint = UpdateSecretlinkEndpoint;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type UpdateServiceBuildargumentsResult = any;
|
|
4
|
-
export declare type UpdateServiceBuildargumentsCall = (opts: UpdateServiceBuildargumentsRequest) => Promise<ApiCallResponse<UpdateServiceBuildargumentsResult>>;
|
|
5
|
-
export declare type UpdateServiceBuildargumentsRequest = {
|
|
6
|
-
parameters: UpdateServiceBuildargumentsParameters;
|
|
7
|
-
data: UpdateServiceBuildargumentsData;
|
|
8
|
-
};
|
|
9
|
-
export declare type UpdateServiceBuildargumentsParameters = {
|
|
10
|
-
/** ID of the project */ 'projectId': string;
|
|
11
|
-
/** ID of the service */
|
|
12
|
-
'serviceId': string;
|
|
13
|
-
};
|
|
14
|
-
export declare type UpdateServiceBuildargumentsData = {
|
|
15
|
-
/** An object containing the all of the build arguments to set for the service Example: {"ARGUMENT_1":"abcdef","ARGUMENT_2":"12345"} */
|
|
16
|
-
'buildParameters': any;
|
|
17
|
-
};
|
|
18
|
-
/** Sets the build arguments for the given service. */
|
|
19
|
-
export declare class UpdateServiceBuildargumentsEndpoint extends PostApiEndpoint<UpdateServiceBuildargumentsRequest, UpdateServiceBuildargumentsResult> {
|
|
20
|
-
description: string;
|
|
21
|
-
withAuth: boolean;
|
|
22
|
-
endpointUrl: (opts: UpdateServiceBuildargumentsRequest) => string;
|
|
23
|
-
body: (payload: UpdateServiceBuildargumentsRequest) => 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.UpdateServiceBuildargumentsEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Sets the build arguments for the given service. */
|
|
22
|
-
var UpdateServiceBuildargumentsEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(UpdateServiceBuildargumentsEndpoint, _super);
|
|
24
|
-
function UpdateServiceBuildargumentsEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Sets the build arguments for the given service.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/services/" + opts.parameters.serviceId + "/build-arguments";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function (payload) { return JSON.stringify(payload.data); };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return UpdateServiceBuildargumentsEndpoint;
|
|
35
|
-
}(api_endpoint_1.PostApiEndpoint));
|
|
36
|
-
exports.UpdateServiceBuildargumentsEndpoint = UpdateServiceBuildargumentsEndpoint;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type UpdateServiceBuildoptionsResult = any;
|
|
4
|
-
export declare type UpdateServiceBuildoptionsCall = (opts: UpdateServiceBuildoptionsRequest) => Promise<ApiCallResponse<UpdateServiceBuildoptionsResult>>;
|
|
5
|
-
export declare type UpdateServiceBuildoptionsRequest = {
|
|
6
|
-
parameters: UpdateServiceBuildoptionsParameters;
|
|
7
|
-
data: UpdateServiceBuildoptionsData;
|
|
8
|
-
};
|
|
9
|
-
export declare type UpdateServiceBuildoptionsParameters = {
|
|
10
|
-
/** ID of the project */ 'projectId': string;
|
|
11
|
-
/** ID of the service */
|
|
12
|
-
'serviceId': string;
|
|
13
|
-
};
|
|
14
|
-
export declare type UpdateServiceBuildoptionsData = {
|
|
15
|
-
'dockerfile'?: {
|
|
16
|
-
/** Build engine to use. Defaults to recommended build engine `kaniko` Example: "kaniko" */
|
|
17
|
-
'buildEngine'?: 'kaniko' | 'buildkit';
|
|
18
|
-
/** The file path of the Dockerfile. Example: "/Dockerfile" */
|
|
19
|
-
'dockerFilePath'?: string;
|
|
20
|
-
/** The working directory of the Dockerfile. Example: "/" */
|
|
21
|
-
'dockerWorkDir'?: string;
|
|
22
|
-
};
|
|
23
|
-
'prRestrictions'?: string[];
|
|
24
|
-
'branchRestrictions'?: string[];
|
|
25
|
-
} | {
|
|
26
|
-
'buildpack'?: {
|
|
27
|
-
/** Buildpack stack to use. Defaults to recommended stack `HEROKU_20`. Example: "HEROKU_20" */
|
|
28
|
-
'builder'?: 'HEROKU_20' | 'HEROKU_18' | 'GOOGLE_V1' | 'CNB_ALPINE' | 'CNB_BIONIC' | 'PAKETO_TINY';
|
|
29
|
-
/** Array of custom buildpacks to use. */
|
|
30
|
-
'buildpackLocators'?: string[];
|
|
31
|
-
/** The working directory to build in. Example: "/" */
|
|
32
|
-
'buildContext'?: string;
|
|
33
|
-
};
|
|
34
|
-
'prRestrictions'?: string[];
|
|
35
|
-
'branchRestrictions'?: string[];
|
|
36
|
-
};
|
|
37
|
-
/** Updates the build options for a given service. */
|
|
38
|
-
export declare class UpdateServiceBuildoptionsEndpoint extends PostApiEndpoint<UpdateServiceBuildoptionsRequest, UpdateServiceBuildoptionsResult> {
|
|
39
|
-
description: string;
|
|
40
|
-
withAuth: boolean;
|
|
41
|
-
endpointUrl: (opts: UpdateServiceBuildoptionsRequest) => string;
|
|
42
|
-
body: (payload: UpdateServiceBuildoptionsRequest) => string;
|
|
43
|
-
}
|
|
@@ -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.UpdateServiceBuildoptionsEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Updates the build options for a given service. */
|
|
22
|
-
var UpdateServiceBuildoptionsEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(UpdateServiceBuildoptionsEndpoint, _super);
|
|
24
|
-
function UpdateServiceBuildoptionsEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Updates the build options for a given service.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/services/" + opts.parameters.serviceId + "/build-options";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function (payload) { return JSON.stringify(payload.data); };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return UpdateServiceBuildoptionsEndpoint;
|
|
35
|
-
}(api_endpoint_1.PostApiEndpoint));
|
|
36
|
-
exports.UpdateServiceBuildoptionsEndpoint = UpdateServiceBuildoptionsEndpoint;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type UpdateServiceCmdoverrideResult = any;
|
|
4
|
-
export declare type UpdateServiceCmdoverrideCall = (opts: UpdateServiceCmdoverrideRequest) => Promise<ApiCallResponse<UpdateServiceCmdoverrideResult>>;
|
|
5
|
-
export declare type UpdateServiceCmdoverrideRequest = {
|
|
6
|
-
parameters: UpdateServiceCmdoverrideParameters;
|
|
7
|
-
data: UpdateServiceCmdoverrideData;
|
|
8
|
-
};
|
|
9
|
-
export declare type UpdateServiceCmdoverrideParameters = {
|
|
10
|
-
/** ID of the project */ 'projectId': string;
|
|
11
|
-
/** ID of the service */
|
|
12
|
-
'serviceId': string;
|
|
13
|
-
};
|
|
14
|
-
export declare type UpdateServiceCmdoverrideData = {
|
|
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 service. */
|
|
19
|
-
export declare class UpdateServiceCmdoverrideEndpoint extends PostApiEndpoint<UpdateServiceCmdoverrideRequest, UpdateServiceCmdoverrideResult> {
|
|
20
|
-
description: string;
|
|
21
|
-
withAuth: boolean;
|
|
22
|
-
endpointUrl: (opts: UpdateServiceCmdoverrideRequest) => string;
|
|
23
|
-
body: (payload: UpdateServiceCmdoverrideRequest) => 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.UpdateServiceCmdoverrideEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Sets the Docker CMD override for the given service. */
|
|
22
|
-
var UpdateServiceCmdoverrideEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(UpdateServiceCmdoverrideEndpoint, _super);
|
|
24
|
-
function UpdateServiceCmdoverrideEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Sets the Docker CMD override for the given service.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/services/" + opts.parameters.serviceId + "/cmd-override";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function (payload) { return JSON.stringify(payload.data); };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return UpdateServiceCmdoverrideEndpoint;
|
|
35
|
-
}(api_endpoint_1.PostApiEndpoint));
|
|
36
|
-
exports.UpdateServiceCmdoverrideEndpoint = UpdateServiceCmdoverrideEndpoint;
|