@northflank/js-client 0.4.1 → 0.5.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api-client.d.ts +6013 -0
- package/dist/cjs/api-client.js +1 -0
- package/dist/cjs/package.json +3 -0
- package/dist/esm/api-client.d.ts +6013 -0
- package/dist/esm/api-client.js +15 -0
- package/dist/esm/package.json +3 -0
- package/package.json +12 -19
- package/dist/api-client.d.ts +0 -481
- package/dist/api-client.js +0 -748
- package/dist/api-endpoint.d.ts +0 -63
- package/dist/api-endpoint.js +0 -216
- package/dist/context/api-client-context-provider.d.ts +0 -47
- package/dist/context/api-client-context-provider.js +0 -332
- package/dist/context/api-client-file-context-provider.d.ts +0 -11
- package/dist/context/api-client-file-context-provider.js +0 -138
- package/dist/context/api-client-in-memory-context-provider.d.ts +0 -6
- package/dist/context/api-client-in-memory-context-provider.js +0 -82
- package/dist/context/index.d.ts +0 -3
- package/dist/context/index.js +0 -15
- package/dist/endpoints/abort/addon/backup.d.ts +0 -21
- package/dist/endpoints/abort/addon/backup.js +0 -36
- package/dist/endpoints/abort/addon/restore.d.ts +0 -26
- package/dist/endpoints/abort/addon/restore.js +0 -36
- package/dist/endpoints/abort/job/build.d.ts +0 -21
- package/dist/endpoints/abort/job/build.js +0 -36
- package/dist/endpoints/abort/job/run.d.ts +0 -21
- package/dist/endpoints/abort/job/run.js +0 -36
- package/dist/endpoints/abort/service/build.d.ts +0 -21
- package/dist/endpoints/abort/service/build.js +0 -36
- package/dist/endpoints/add/domain/subdomain.d.ts +0 -33
- package/dist/endpoints/add/domain/subdomain.js +0 -36
- package/dist/endpoints/add/registryCredentials.d.ts +0 -47
- package/dist/endpoints/add/registryCredentials.js +0 -36
- package/dist/endpoints/assign/subdomain/service.d.ts +0 -28
- package/dist/endpoints/assign/subdomain/service.js +0 -36
- package/dist/endpoints/backup/addon.d.ts +0 -51
- package/dist/endpoints/backup/addon.js +0 -36
- package/dist/endpoints/create/addon.d.ts +0 -90
- package/dist/endpoints/create/addon.js +0 -36
- package/dist/endpoints/create/domain.d.ts +0 -27
- package/dist/endpoints/create/domain.js +0 -36
- package/dist/endpoints/create/job/cron.d.ts +0 -157
- package/dist/endpoints/create/job/cron.js +0 -36
- package/dist/endpoints/create/job/manual.d.ts +0 -147
- package/dist/endpoints/create/job/manual.js +0 -36
- package/dist/endpoints/create/project.d.ts +0 -29
- package/dist/endpoints/create/project.js +0 -36
- package/dist/endpoints/create/secret.d.ts +0 -79
- package/dist/endpoints/create/secret.js +0 -36
- package/dist/endpoints/create/service/build.d.ts +0 -116
- package/dist/endpoints/create/service/build.js +0 -36
- package/dist/endpoints/create/service/combined.d.ts +0 -166
- package/dist/endpoints/create/service/combined.js +0 -36
- package/dist/endpoints/create/service/deployment.d.ts +0 -137
- package/dist/endpoints/create/service/deployment.js +0 -36
- package/dist/endpoints/delete/addon.d.ts +0 -19
- package/dist/endpoints/delete/addon.js +0 -36
- package/dist/endpoints/delete/backup.d.ts +0 -21
- package/dist/endpoints/delete/backup.js +0 -36
- package/dist/endpoints/delete/domain.d.ts +0 -17
- package/dist/endpoints/delete/domain.js +0 -36
- package/dist/endpoints/delete/job.d.ts +0 -19
- package/dist/endpoints/delete/job.js +0 -36
- package/dist/endpoints/delete/project.d.ts +0 -17
- package/dist/endpoints/delete/project.js +0 -36
- package/dist/endpoints/delete/registryCredentials.d.ts +0 -17
- package/dist/endpoints/delete/registryCredentials.js +0 -36
- package/dist/endpoints/delete/secret.d.ts +0 -19
- package/dist/endpoints/delete/secret.js +0 -36
- package/dist/endpoints/delete/secretLink.d.ts +0 -21
- package/dist/endpoints/delete/secretLink.js +0 -36
- package/dist/endpoints/delete/service.d.ts +0 -19
- package/dist/endpoints/delete/service.js +0 -36
- package/dist/endpoints/delete/subdomain.d.ts +0 -19
- package/dist/endpoints/delete/subdomain.js +0 -36
- package/dist/endpoints/get/addon/backup/download.d.ts +0 -24
- package/dist/endpoints/get/addon/backup/download.js +0 -36
- package/dist/endpoints/get/addon/backup.d.ts +0 -46
- package/dist/endpoints/get/addon/backup.js +0 -36
- package/dist/endpoints/get/addon/backups.d.ts +0 -54
- package/dist/endpoints/get/addon/backups.js +0 -40
- package/dist/endpoints/get/addon/containers.d.ts +0 -40
- package/dist/endpoints/get/addon/containers.js +0 -40
- package/dist/endpoints/get/addon/credentials.d.ts +0 -24
- package/dist/endpoints/get/addon/credentials.js +0 -36
- package/dist/endpoints/get/addon/types.d.ts +0 -48
- package/dist/endpoints/get/addon/types.js +0 -36
- package/dist/endpoints/get/addon/version.d.ts +0 -53
- package/dist/endpoints/get/addon/version.js +0 -36
- package/dist/endpoints/get/addon.d.ts +0 -69
- package/dist/endpoints/get/addon.js +0 -36
- package/dist/endpoints/get/dnsId.d.ts +0 -15
- package/dist/endpoints/get/dnsId.js +0 -36
- package/dist/endpoints/get/domain.d.ts +0 -33
- package/dist/endpoints/get/domain.js +0 -36
- package/dist/endpoints/get/job/buildArguments.d.ts +0 -19
- package/dist/endpoints/get/job/buildArguments.js +0 -36
- package/dist/endpoints/get/job/builds.d.ts +0 -50
- package/dist/endpoints/get/job/builds.js +0 -39
- package/dist/endpoints/get/job/containers.d.ts +0 -40
- package/dist/endpoints/get/job/containers.js +0 -40
- package/dist/endpoints/get/job/deployment.d.ts +0 -51
- package/dist/endpoints/get/job/deployment.js +0 -36
- package/dist/endpoints/get/job/environment.d.ts +0 -24
- package/dist/endpoints/get/job/environment.js +0 -40
- package/dist/endpoints/get/job/environmentDetails.d.ts +0 -42
- package/dist/endpoints/get/job/environmentDetails.js +0 -36
- package/dist/endpoints/get/job/healthChecks.d.ts +0 -44
- package/dist/endpoints/get/job/healthChecks.js +0 -36
- package/dist/endpoints/get/job/run.d.ts +0 -42
- package/dist/endpoints/get/job/run.js +0 -36
- package/dist/endpoints/get/job/runs.d.ts +0 -52
- package/dist/endpoints/get/job/runs.js +0 -39
- package/dist/endpoints/get/job.d.ts +0 -86
- package/dist/endpoints/get/job.js +0 -36
- package/dist/endpoints/get/project.d.ts +0 -72
- package/dist/endpoints/get/project.js +0 -36
- package/dist/endpoints/get/registryCredentials.d.ts +0 -34
- package/dist/endpoints/get/registryCredentials.js +0 -36
- package/dist/endpoints/get/secret.d.ts +0 -55
- package/dist/endpoints/get/secret.js +0 -39
- package/dist/endpoints/get/secretDetails.d.ts +0 -63
- package/dist/endpoints/get/secretDetails.js +0 -36
- package/dist/endpoints/get/secretLink.d.ts +0 -44
- package/dist/endpoints/get/secretLink.js +0 -36
- package/dist/endpoints/get/service/buildArguments.d.ts +0 -19
- package/dist/endpoints/get/service/buildArguments.js +0 -36
- package/dist/endpoints/get/service/builds.d.ts +0 -50
- package/dist/endpoints/get/service/builds.js +0 -40
- package/dist/endpoints/get/service/containers.d.ts +0 -40
- package/dist/endpoints/get/service/containers.js +0 -40
- package/dist/endpoints/get/service/deployment.d.ts +0 -51
- package/dist/endpoints/get/service/deployment.js +0 -36
- package/dist/endpoints/get/service/environmentVariableDetails.d.ts +0 -42
- package/dist/endpoints/get/service/environmentVariableDetails.js +0 -36
- package/dist/endpoints/get/service/environmentVariables.d.ts +0 -24
- package/dist/endpoints/get/service/environmentVariables.js +0 -40
- package/dist/endpoints/get/service/healthChecks.d.ts +0 -44
- package/dist/endpoints/get/service/healthChecks.js +0 -36
- package/dist/endpoints/get/service/ports.d.ts +0 -35
- package/dist/endpoints/get/service/ports.js +0 -36
- package/dist/endpoints/get/service.d.ts +0 -103
- package/dist/endpoints/get/service.js +0 -36
- package/dist/endpoints/get/subdomain.d.ts +0 -30
- package/dist/endpoints/get/subdomain.js +0 -36
- package/dist/endpoints/import/addon/backup.d.ts +0 -31
- package/dist/endpoints/import/addon/backup.js +0 -36
- package/dist/endpoints/list/addons.d.ts +0 -45
- package/dist/endpoints/list/addons.js +0 -39
- package/dist/endpoints/list/domains.d.ts +0 -34
- package/dist/endpoints/list/domains.js +0 -39
- package/dist/endpoints/list/jobs.d.ts +0 -44
- package/dist/endpoints/list/jobs.js +0 -39
- package/dist/endpoints/list/plans.d.ts +0 -30
- package/dist/endpoints/list/plans.js +0 -36
- package/dist/endpoints/list/projects.d.ts +0 -32
- package/dist/endpoints/list/projects.js +0 -39
- package/dist/endpoints/list/regions.d.ts +0 -18
- package/dist/endpoints/list/regions.js +0 -36
- package/dist/endpoints/list/registryCredentials.d.ts +0 -41
- package/dist/endpoints/list/registryCredentials.js +0 -39
- package/dist/endpoints/list/secrets.d.ts +0 -52
- package/dist/endpoints/list/secrets.js +0 -39
- package/dist/endpoints/list/services.d.ts +0 -44
- package/dist/endpoints/list/services.js +0 -39
- package/dist/endpoints/list/vcs.d.ts +0 -51
- package/dist/endpoints/list/vcs.js +0 -36
- package/dist/endpoints/pause/addon.d.ts +0 -19
- package/dist/endpoints/pause/addon.js +0 -36
- package/dist/endpoints/pause/service.d.ts +0 -19
- package/dist/endpoints/pause/service.js +0 -36
- package/dist/endpoints/restart/addon.d.ts +0 -19
- package/dist/endpoints/restart/addon.js +0 -36
- package/dist/endpoints/restart/service.d.ts +0 -19
- package/dist/endpoints/restart/service.js +0 -36
- package/dist/endpoints/restore/addon/backup.d.ts +0 -21
- package/dist/endpoints/restore/addon/backup.js +0 -36
- package/dist/endpoints/resume/addon.d.ts +0 -19
- package/dist/endpoints/resume/addon.js +0 -36
- package/dist/endpoints/resume/service.d.ts +0 -24
- package/dist/endpoints/resume/service.js +0 -36
- package/dist/endpoints/scale/addon.d.ts +0 -28
- package/dist/endpoints/scale/addon.js +0 -36
- package/dist/endpoints/scale/service.d.ts +0 -26
- package/dist/endpoints/scale/service.js +0 -36
- package/dist/endpoints/start/job/build.d.ts +0 -37
- package/dist/endpoints/start/job/build.js +0 -36
- package/dist/endpoints/start/job/run.d.ts +0 -37
- package/dist/endpoints/start/job/run.js +0 -36
- package/dist/endpoints/start/service/build.d.ts +0 -41
- package/dist/endpoints/start/service/build.js +0 -36
- package/dist/endpoints/unassign/subdomain.d.ts +0 -19
- package/dist/endpoints/unassign/subdomain.js +0 -36
- package/dist/endpoints/update/addon/networkSettings.d.ts +0 -26
- package/dist/endpoints/update/addon/networkSettings.js +0 -36
- package/dist/endpoints/update/addon/security.d.ts +0 -29
- package/dist/endpoints/update/addon/security.js +0 -36
- package/dist/endpoints/update/addon/version.d.ts +0 -24
- package/dist/endpoints/update/addon/version.js +0 -36
- package/dist/endpoints/update/job/buildArguments.d.ts +0 -24
- package/dist/endpoints/update/job/buildArguments.js +0 -36
- package/dist/endpoints/update/job/cmdOverride.d.ts +0 -24
- package/dist/endpoints/update/job/cmdOverride.js +0 -36
- package/dist/endpoints/update/job/deployment.d.ts +0 -37
- package/dist/endpoints/update/job/deployment.js +0 -36
- package/dist/endpoints/update/job/environment.d.ts +0 -24
- package/dist/endpoints/update/job/environment.js +0 -36
- package/dist/endpoints/update/job/healthChecks.d.ts +0 -45
- package/dist/endpoints/update/job/healthChecks.js +0 -36
- package/dist/endpoints/update/job/settings.d.ts +0 -30
- package/dist/endpoints/update/job/settings.js +0 -36
- package/dist/endpoints/update/registryCredentials.d.ts +0 -31
- package/dist/endpoints/update/registryCredentials.js +0 -36
- package/dist/endpoints/update/secret.d.ts +0 -54
- package/dist/endpoints/update/secret.js +0 -36
- package/dist/endpoints/update/secretLink.d.ts +0 -40
- package/dist/endpoints/update/secretLink.js +0 -36
- package/dist/endpoints/update/service/buildArguments.d.ts +0 -24
- package/dist/endpoints/update/service/buildArguments.js +0 -36
- package/dist/endpoints/update/service/buildOptions.d.ts +0 -52
- package/dist/endpoints/update/service/buildOptions.js +0 -36
- package/dist/endpoints/update/service/cmdOverride.d.ts +0 -24
- package/dist/endpoints/update/service/cmdOverride.js +0 -36
- package/dist/endpoints/update/service/deployment.d.ts +0 -37
- package/dist/endpoints/update/service/deployment.js +0 -36
- package/dist/endpoints/update/service/environmentVariables.d.ts +0 -29
- package/dist/endpoints/update/service/environmentVariables.js +0 -36
- package/dist/endpoints/update/service/healthChecks.d.ts +0 -45
- package/dist/endpoints/update/service/healthChecks.js +0 -36
- package/dist/endpoints/update/service/ports.d.ts +0 -55
- package/dist/endpoints/update/service/ports.js +0 -36
- package/dist/endpoints/verify/domain.d.ts +0 -17
- package/dist/endpoints/verify/domain.js +0 -36
- package/dist/endpoints/verify/subdomain.d.ts +0 -19
- package/dist/endpoints/verify/subdomain.js +0 -36
- package/dist/port-forward/client/api-helper.d.ts +0 -30
- package/dist/port-forward/client/api-helper.js +0 -102
- package/dist/port-forward/client/atomic-write.d.ts +0 -3
- package/dist/port-forward/client/atomic-write.js +0 -95
- package/dist/port-forward/client/host-file-ast.d.ts +0 -52
- package/dist/port-forward/client/host-file-ast.js +0 -279
- package/dist/port-forward/client/host-file.d.ts +0 -26
- package/dist/port-forward/client/host-file.js +0 -226
- package/dist/port-forward/client/loopback.d.ts +0 -4
- package/dist/port-forward/client/loopback.js +0 -219
- package/dist/port-forward/client/port-forwarder.d.ts +0 -86
- package/dist/port-forward/client/port-forwarder.js +0 -593
- package/dist/port-forward/client/port-tunnel-tcp.d.ts +0 -34
- package/dist/port-forward/client/port-tunnel-tcp.js +0 -209
- package/dist/port-forward/client/port-tunnel-udp.d.ts +0 -25
- package/dist/port-forward/client/port-tunnel-udp.js +0 -147
- package/dist/port-forward/client/port-tunnel.d.ts +0 -32
- package/dist/port-forward/client/port-tunnel.js +0 -2
- package/dist/port-forward/client/promise-mutex.d.ts +0 -4
- package/dist/port-forward/client/promise-mutex.js +0 -62
- package/dist/utils.d.ts +0 -8
- package/dist/utils.js +0 -97
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, GetApiEndpoint } from '../../api-endpoint';
|
|
3
|
-
export declare type GetJobResult = {
|
|
4
|
-
/** Identifier for the job Example: "example-job" */
|
|
5
|
-
'id': string;
|
|
6
|
-
/** Full identifier used for job deployment Example: "/example-user/default-project/example-job" */
|
|
7
|
-
'appId': string;
|
|
8
|
-
/** Job name Example: "Example Job" */
|
|
9
|
-
'name': string;
|
|
10
|
-
/** A short description of the job Example: "This is the job description" */
|
|
11
|
-
'description'?: string;
|
|
12
|
-
/** ID of the project that the service belongs to Example: "default-project" */
|
|
13
|
-
'projectId': string;
|
|
14
|
-
/** Type of the job (manual or cron) Example: "cron" */
|
|
15
|
-
'jobType': 'cron' | 'manual';
|
|
16
|
-
/** The time the job was created. Example: "2021-01-20T11:19:53.175Z" */
|
|
17
|
-
'createdAt': string;
|
|
18
|
-
'vcsData'?: {
|
|
19
|
-
/** URL of the repository being built Example: "https://github.com/northflank/gatsby-with-northflank" */
|
|
20
|
-
'projectUrl': string;
|
|
21
|
-
/** VCS provider for the repo being built Example: "github" */
|
|
22
|
-
'projectType': 'bitbucket' | 'gitlab' | 'github' | 'self-hosted';
|
|
23
|
-
/** ID of the self-hosted VCS, if applicable. Example: "example-team/self-hosted-vcs" */
|
|
24
|
-
'vcsId'?: string;
|
|
25
|
-
/** Branch of the repo being built Example: "master" */
|
|
26
|
-
'projectBranch'?: string;
|
|
27
|
-
/** Whether the repo is being accessed without authentication. */
|
|
28
|
-
'publicRepo'?: boolean;
|
|
29
|
-
/** Working directory used by the dockerfile Example: "/" */
|
|
30
|
-
'dockerWorkDir': string;
|
|
31
|
-
/** File path of the Dockerfile Example: "/Dockerfile" */
|
|
32
|
-
'dockerFilePath': string;
|
|
33
|
-
};
|
|
34
|
-
'buildEngineConfiguration'?: {
|
|
35
|
-
/** The build engine used. Example: "buildpack" */
|
|
36
|
-
'builder'?: 'buildpack' | 'kaniko' | 'buildkit';
|
|
37
|
-
'buildpack'?: {
|
|
38
|
-
/** The Buildpack stack used. Example: "HEROKU_20" */
|
|
39
|
-
'builder'?: 'HEROKU_20' | 'HEROKU_18' | 'GOOGLE_V1' | 'CNB_ALPINE' | 'CNB_BIONIC' | 'PAKETO_TINY';
|
|
40
|
-
/** Array of custom Buildpacks used. */
|
|
41
|
-
'buildpackLocators'?: string[];
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
/** Whether Continuous Integration is disabled */
|
|
45
|
-
'disabledCI': boolean;
|
|
46
|
-
/** Whether Continuous Deployment is disabled */
|
|
47
|
-
'disabledCD': boolean;
|
|
48
|
-
'deployment'?: {
|
|
49
|
-
/** Region where this job is deployed and built Example: "europe-west" */
|
|
50
|
-
'region'?: string;
|
|
51
|
-
};
|
|
52
|
-
'billing': {
|
|
53
|
-
/** ID of the billing plan used by this job Example: "nf-compute-20" */
|
|
54
|
-
'deploymentPlan': string;
|
|
55
|
-
};
|
|
56
|
-
/** Job settings */
|
|
57
|
-
'settings': {
|
|
58
|
-
/** Cron job specific settings */
|
|
59
|
-
'cron'?: {
|
|
60
|
-
/** The cron timer scheduling when to run the job. Example: "30 8 * * *" */
|
|
61
|
-
'schedule'?: string;
|
|
62
|
-
/** Whether this job should run when another instance of the job is already running. Example: "Allow" */
|
|
63
|
-
'concurrencyPolicy'?: 'Allow' | 'Forbid' | 'Replace';
|
|
64
|
-
};
|
|
65
|
-
/** The number of attempts to rerun a job before it is marked as failed. */
|
|
66
|
-
'backoffLimit': number;
|
|
67
|
-
/** The maximum amount of time, in seconds, for a job to run before it is marked as failed. Example: 600 */
|
|
68
|
-
'activeDeadlineSeconds': number;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
export declare type GetJobCall = (opts: GetJobRequest) => Promise<ApiCallResponse<GetJobResult>>;
|
|
72
|
-
export declare type GetJobRequest = {
|
|
73
|
-
parameters: GetJobParameters;
|
|
74
|
-
};
|
|
75
|
-
export declare type GetJobParameters = {
|
|
76
|
-
/** ID of the project */ 'projectId': string;
|
|
77
|
-
/** ID of the job */
|
|
78
|
-
'jobId': string;
|
|
79
|
-
};
|
|
80
|
-
/** Gets information about the given job */
|
|
81
|
-
export declare class GetJobEndpoint extends GetApiEndpoint<GetJobRequest, GetJobResult> {
|
|
82
|
-
description: string;
|
|
83
|
-
withAuth: boolean;
|
|
84
|
-
endpointUrl: (opts: GetJobRequest) => string;
|
|
85
|
-
body: () => undefined;
|
|
86
|
-
}
|
|
@@ -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.GetJobEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../api-endpoint");
|
|
21
|
-
/** Gets information about the given job */
|
|
22
|
-
var GetJobEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(GetJobEndpoint, _super);
|
|
24
|
-
function GetJobEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Gets information about the given job';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/jobs/" + opts.parameters.jobId;
|
|
30
|
-
};
|
|
31
|
-
_this.body = function () { return undefined; };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return GetJobEndpoint;
|
|
35
|
-
}(api_endpoint_1.GetApiEndpoint));
|
|
36
|
-
exports.GetJobEndpoint = GetJobEndpoint;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, GetApiEndpoint } from '../../api-endpoint';
|
|
3
|
-
export declare type GetProjectResult = {
|
|
4
|
-
/** Identifier for the project. Example: "default-project" */
|
|
5
|
-
'id': string;
|
|
6
|
-
/** The name of the project. Example: "Default Project" */
|
|
7
|
-
'name': string;
|
|
8
|
-
/** A short description of the project. Example: "The project description" */
|
|
9
|
-
'description'?: string;
|
|
10
|
-
'deployment': {
|
|
11
|
-
/** The region where the project's services, jobs and addons are deployed in. Example: "europe-west" */
|
|
12
|
-
'region': string;
|
|
13
|
-
};
|
|
14
|
-
/** The time the project was created. Example: "2021-01-20T11:19:53.175Z" */
|
|
15
|
-
'createdAt': string;
|
|
16
|
-
/** An array of services belonging to the project. */
|
|
17
|
-
'services': {
|
|
18
|
-
/** Identifier for the service. Example: "example-service" */
|
|
19
|
-
'id': string;
|
|
20
|
-
/** Full identifier used for service deployment Example: "/example-user/default-project/example-service" */
|
|
21
|
-
'appId': string;
|
|
22
|
-
/** The name of the service. Example: "Example Service" */
|
|
23
|
-
'name': string;
|
|
24
|
-
/** A short description of the service. Example: "This is the service description" */
|
|
25
|
-
'description'?: string;
|
|
26
|
-
/** Type of the service (combined, build or deployment) Example: "combined" */
|
|
27
|
-
'serviceType': 'combined' | 'build' | 'deployment';
|
|
28
|
-
}[];
|
|
29
|
-
/** An array of jobs belonging to the project. */
|
|
30
|
-
'jobs': {
|
|
31
|
-
/** Identifier for the job. Example: "example-job" */
|
|
32
|
-
'id': string;
|
|
33
|
-
/** Full identifier used for deployment Example: "/example-user/default-project/example-job" */
|
|
34
|
-
'appId': string;
|
|
35
|
-
/** The name of the job. Example: "Example Job" */
|
|
36
|
-
'name': string;
|
|
37
|
-
/** A short description of the job. Example: "This is the job description" */
|
|
38
|
-
'description'?: string;
|
|
39
|
-
/** Type of the service (manual or cron) Example: "cron" */
|
|
40
|
-
'jobType': 'manual' | 'cron';
|
|
41
|
-
}[];
|
|
42
|
-
/** An array of addons belonging to the project. */
|
|
43
|
-
'addons': {
|
|
44
|
-
/** Identifier for the addon. Example: "example-addon" */
|
|
45
|
-
'id': string;
|
|
46
|
-
/** Full identifier used for deployment Example: "/example-user/default-project/example-addon" */
|
|
47
|
-
'appId': string;
|
|
48
|
-
/** The name of the addon. Example: "Example Addon" */
|
|
49
|
-
'name': string;
|
|
50
|
-
/** A short description of the addon. Example: "This is the addon description" */
|
|
51
|
-
'description'?: string;
|
|
52
|
-
/** Details about the addon's specifications. */
|
|
53
|
-
'spec': {
|
|
54
|
-
/** The type of the addon Example: "mongodb" */
|
|
55
|
-
'type': string;
|
|
56
|
-
};
|
|
57
|
-
}[];
|
|
58
|
-
};
|
|
59
|
-
export declare type GetProjectCall = (opts: GetProjectRequest) => Promise<ApiCallResponse<GetProjectResult>>;
|
|
60
|
-
export declare type GetProjectRequest = {
|
|
61
|
-
parameters: GetProjectParameters;
|
|
62
|
-
};
|
|
63
|
-
export declare type GetProjectParameters = {
|
|
64
|
-
/** ID of the project */ 'projectId': string;
|
|
65
|
-
};
|
|
66
|
-
/** Get information about the given project */
|
|
67
|
-
export declare class GetProjectEndpoint extends GetApiEndpoint<GetProjectRequest, GetProjectResult> {
|
|
68
|
-
description: string;
|
|
69
|
-
withAuth: boolean;
|
|
70
|
-
endpointUrl: (opts: GetProjectRequest) => string;
|
|
71
|
-
body: () => undefined;
|
|
72
|
-
}
|
|
@@ -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.GetProjectEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../api-endpoint");
|
|
21
|
-
/** Get information about the given project */
|
|
22
|
-
var GetProjectEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(GetProjectEndpoint, _super);
|
|
24
|
-
function GetProjectEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Get information about the given project';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId;
|
|
30
|
-
};
|
|
31
|
-
_this.body = function () { return undefined; };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return GetProjectEndpoint;
|
|
35
|
-
}(api_endpoint_1.GetApiEndpoint));
|
|
36
|
-
exports.GetProjectEndpoint = GetProjectEndpoint;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, GetApiEndpoint } from '../../api-endpoint';
|
|
3
|
-
export declare type GetRegistrycredentialsResult = {
|
|
4
|
-
/** Identifier for the credentials. Example: "example-credentials" */
|
|
5
|
-
'id': string;
|
|
6
|
-
/** Name of the saved credentials. Example: "Example Credentials" */
|
|
7
|
-
'name': string;
|
|
8
|
-
/** Description of the saved credentials. Example: "This is a set of saved credentials." */
|
|
9
|
-
'description': string;
|
|
10
|
-
/** Data about whether the credentials are restricted to certain projects. */
|
|
11
|
-
'restrictions': {
|
|
12
|
-
/** Whether the credentials are restricted to specific projects. Example: true */
|
|
13
|
-
'restricted': boolean;
|
|
14
|
-
/** An array of projects the credentials are restricted to, if applicable. */
|
|
15
|
-
'projects': string[];
|
|
16
|
-
};
|
|
17
|
-
/** The registry provider associated with this set of credentials. Example: "dockerhub" */
|
|
18
|
-
'provider': 'dockerhub' | 'gcr-eu' | 'gcr-us' | 'gitlab' | 'github' | 'custom';
|
|
19
|
-
'data'?: any;
|
|
20
|
-
};
|
|
21
|
-
export declare type GetRegistrycredentialsCall = (opts: GetRegistrycredentialsRequest) => Promise<ApiCallResponse<GetRegistrycredentialsResult>>;
|
|
22
|
-
export declare type GetRegistrycredentialsRequest = {
|
|
23
|
-
parameters: GetRegistrycredentialsParameters;
|
|
24
|
-
};
|
|
25
|
-
export declare type GetRegistrycredentialsParameters = {
|
|
26
|
-
/** ID of the registry credential */ 'credentialId': string;
|
|
27
|
-
};
|
|
28
|
-
/** Views a set of registry credential data. */
|
|
29
|
-
export declare class GetRegistrycredentialsEndpoint extends GetApiEndpoint<GetRegistrycredentialsRequest, GetRegistrycredentialsResult> {
|
|
30
|
-
description: string;
|
|
31
|
-
withAuth: boolean;
|
|
32
|
-
endpointUrl: (opts: GetRegistrycredentialsRequest) => string;
|
|
33
|
-
body: () => undefined;
|
|
34
|
-
}
|
|
@@ -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.GetRegistrycredentialsEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../api-endpoint");
|
|
21
|
-
/** Views a set of registry credential data. */
|
|
22
|
-
var GetRegistrycredentialsEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(GetRegistrycredentialsEndpoint, _super);
|
|
24
|
-
function GetRegistrycredentialsEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Views a set of registry credential data.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/registry-credentials/" + opts.parameters.credentialId;
|
|
30
|
-
};
|
|
31
|
-
_this.body = function () { return undefined; };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return GetRegistrycredentialsEndpoint;
|
|
35
|
-
}(api_endpoint_1.GetApiEndpoint));
|
|
36
|
-
exports.GetRegistrycredentialsEndpoint = GetRegistrycredentialsEndpoint;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, GetApiEndpoint } from '../../api-endpoint';
|
|
3
|
-
export declare type GetSecretResult = {
|
|
4
|
-
/** Identifier for the secret group Example: "example-secret-group" */
|
|
5
|
-
'id': string;
|
|
6
|
-
/** Secret group name Example: "Example secret group" */
|
|
7
|
-
'name': string;
|
|
8
|
-
/** A short description of the secret group Example: "This is the secret group description" */
|
|
9
|
-
'description'?: string;
|
|
10
|
-
/** The type of the created secret group Example: "environment" */
|
|
11
|
-
'secretType': 'environment' | 'arguments';
|
|
12
|
-
/** ID of the project that the secret group belongs to Example: "default-project" */
|
|
13
|
-
'projectId': string;
|
|
14
|
-
/** The priority with which different secret groups will be merged Example: 10 */
|
|
15
|
-
'priority': number;
|
|
16
|
-
/** Restriction settings of the secret */
|
|
17
|
-
'restrictions': {
|
|
18
|
-
/** Is the secret restricted Example: true */
|
|
19
|
-
'restricted'?: boolean;
|
|
20
|
-
/** List of Northflank services & jobs the secret is restricted to */
|
|
21
|
-
'nfObjects'?: {
|
|
22
|
-
/** ID of the entity the secret is restricted to. Example: "example-service" */
|
|
23
|
-
'id': string;
|
|
24
|
-
/** Type of the entity the secret is restricted to. Example: "service" */
|
|
25
|
-
'type': 'service' | 'job';
|
|
26
|
-
}[];
|
|
27
|
-
};
|
|
28
|
-
/** The timestamp when the secret group was created at Example: "2021-01-01 12:00:00.000Z" */
|
|
29
|
-
'createdAt': string;
|
|
30
|
-
/** The timestamp the secret group was last updated at Example: "2021-01-01 12:00:00.000Z" */
|
|
31
|
-
'updatedAt': string;
|
|
32
|
-
/** Decrypted secret data. If the `show` parameter is set to `this`, this will only contain secrets saved to this group. If the `show` parameter is set to `inherited`, this will only contain secrets inherited from linked addons. Otherwise, this will contain both. Example: {"a_key":"a_secret","b_key":"b_secret"} */
|
|
33
|
-
'data': any;
|
|
34
|
-
};
|
|
35
|
-
export declare type GetSecretCall = (opts: GetSecretRequest) => Promise<ApiCallResponse<GetSecretResult>>;
|
|
36
|
-
export declare type GetSecretRequest = {
|
|
37
|
-
parameters: GetSecretParameters;
|
|
38
|
-
options?: GetSecretOptions;
|
|
39
|
-
};
|
|
40
|
-
export declare type GetSecretParameters = {
|
|
41
|
-
/** ID of the project */ 'projectId': string;
|
|
42
|
-
/** ID of the secret */
|
|
43
|
-
'secretId': string;
|
|
44
|
-
};
|
|
45
|
-
export declare type GetSecretOptions = {
|
|
46
|
-
/** Which secrets to display - if set to `this` only the group's secrets are displayed, if set to `inherited` only secrets from linked addons are displayed, if set to `all` or not provided, both are displayed. */
|
|
47
|
-
'show'?: string;
|
|
48
|
-
};
|
|
49
|
-
/** View a secret including its contents */
|
|
50
|
-
export declare class GetSecretEndpoint extends GetApiEndpoint<GetSecretRequest, GetSecretResult> {
|
|
51
|
-
description: string;
|
|
52
|
-
withAuth: boolean;
|
|
53
|
-
endpointUrl: (opts: GetSecretRequest) => string;
|
|
54
|
-
body: () => undefined;
|
|
55
|
-
}
|
|
@@ -1,39 +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.GetSecretEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../api-endpoint");
|
|
21
|
-
/** View a secret including its contents */
|
|
22
|
-
var GetSecretEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(GetSecretEndpoint, _super);
|
|
24
|
-
function GetSecretEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'View a secret including its contents';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
var _a;
|
|
30
|
-
var optionEntries = Object.entries((_a = opts === null || opts === void 0 ? void 0 : opts.options) !== null && _a !== void 0 ? _a : {});
|
|
31
|
-
var optionStr = optionEntries.length > 0 ? '?' + optionEntries.map(function (a) { return a[0] + '=' + a[1]; }).join('&') : '';
|
|
32
|
-
return ("/v1/projects/" + opts.parameters.projectId + "/secrets/" + opts.parameters.secretId + optionStr);
|
|
33
|
-
};
|
|
34
|
-
_this.body = function () { return undefined; };
|
|
35
|
-
return _this;
|
|
36
|
-
}
|
|
37
|
-
return GetSecretEndpoint;
|
|
38
|
-
}(api_endpoint_1.GetApiEndpoint));
|
|
39
|
-
exports.GetSecretEndpoint = GetSecretEndpoint;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, GetApiEndpoint } from '../../api-endpoint';
|
|
3
|
-
export declare type GetSecretdetailsResult = {
|
|
4
|
-
/** Identifier for the secret group Example: "example-secret-group" */
|
|
5
|
-
'id': string;
|
|
6
|
-
/** Secret group name Example: "Example secret group" */
|
|
7
|
-
'name': string;
|
|
8
|
-
/** A short description of the secret group Example: "This is the secret group description" */
|
|
9
|
-
'description'?: string;
|
|
10
|
-
/** The type of the created secret group Example: "environment" */
|
|
11
|
-
'secretType': 'environment' | 'arguments';
|
|
12
|
-
/** ID of the project that the secret group belongs to Example: "default-project" */
|
|
13
|
-
'projectId': string;
|
|
14
|
-
/** The priority with which different secret groups will be merged Example: 10 */
|
|
15
|
-
'priority': number;
|
|
16
|
-
/** Restriction settings of the secret */
|
|
17
|
-
'restrictions': {
|
|
18
|
-
/** Is the secret restricted Example: true */
|
|
19
|
-
'restricted'?: boolean;
|
|
20
|
-
/** List of Northflank services & jobs the secret is restricted to */
|
|
21
|
-
'nfObjects'?: {
|
|
22
|
-
/** ID of the entity the secret is restricted to. Example: "example-service" */
|
|
23
|
-
'id': string;
|
|
24
|
-
/** Type of the entity the secret is restricted to. Example: "service" */
|
|
25
|
-
'type': 'service' | 'job';
|
|
26
|
-
}[];
|
|
27
|
-
};
|
|
28
|
-
/** The timestamp when the secret group was created at Example: "2021-01-01 12:00:00.000Z" */
|
|
29
|
-
'createdAt': string;
|
|
30
|
-
/** The timestamp the secret group was last updated at Example: "2021-01-01 12:00:00.000Z" */
|
|
31
|
-
'updatedAt': string;
|
|
32
|
-
/** Decrypted secret data from secrets saved to this group. Example: {"a_key":"a_secret","b_key":"b_secret"} */
|
|
33
|
-
'data': any;
|
|
34
|
-
/** Details about linked addons. */
|
|
35
|
-
'addonSecrets': {
|
|
36
|
-
/** The ID of the linked addon Example: "example-addon" */
|
|
37
|
-
'id': string;
|
|
38
|
-
/** The name of the linked addon Example: "Example Addon" */
|
|
39
|
-
'name': string;
|
|
40
|
-
/** The addon type of the linked addon Example: "mongodb" */
|
|
41
|
-
'addonType': string;
|
|
42
|
-
/** The version of the linked addon Example: "4.4.1" */
|
|
43
|
-
'version': string;
|
|
44
|
-
/** Decrypted secret data. If the `show` parameter is set to `group`, this will only contain secrets saved to this group. If the `show` parameter is set to `inherited`, this will only contain secrets inherited from linked addons. Otherwise, this will contain both. Example: {"NF_MONGO_USERNAME":"0000000000000000","NF_MONGO_PASSWORD":"00000000000000000000000000000000"} */
|
|
45
|
-
'variables': any;
|
|
46
|
-
}[];
|
|
47
|
-
};
|
|
48
|
-
export declare type GetSecretdetailsCall = (opts: GetSecretdetailsRequest) => Promise<ApiCallResponse<GetSecretdetailsResult>>;
|
|
49
|
-
export declare type GetSecretdetailsRequest = {
|
|
50
|
-
parameters: GetSecretdetailsParameters;
|
|
51
|
-
};
|
|
52
|
-
export declare type GetSecretdetailsParameters = {
|
|
53
|
-
/** ID of the project */ 'projectId': string;
|
|
54
|
-
/** ID of the secret */
|
|
55
|
-
'secretId': string;
|
|
56
|
-
};
|
|
57
|
-
/** View a secret with details about its linked addons */
|
|
58
|
-
export declare class GetSecretdetailsEndpoint extends GetApiEndpoint<GetSecretdetailsRequest, GetSecretdetailsResult> {
|
|
59
|
-
description: string;
|
|
60
|
-
withAuth: boolean;
|
|
61
|
-
endpointUrl: (opts: GetSecretdetailsRequest) => string;
|
|
62
|
-
body: () => undefined;
|
|
63
|
-
}
|
|
@@ -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.GetSecretdetailsEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../api-endpoint");
|
|
21
|
-
/** View a secret with details about its linked addons */
|
|
22
|
-
var GetSecretdetailsEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(GetSecretdetailsEndpoint, _super);
|
|
24
|
-
function GetSecretdetailsEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'View a secret with details about its linked addons';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/secrets/" + opts.parameters.secretId + "/details";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function () { return undefined; };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return GetSecretdetailsEndpoint;
|
|
35
|
-
}(api_endpoint_1.GetApiEndpoint));
|
|
36
|
-
exports.GetSecretdetailsEndpoint = GetSecretdetailsEndpoint;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, GetApiEndpoint } from '../../api-endpoint';
|
|
3
|
-
export declare type GetSecretlinkResult = {
|
|
4
|
-
/** The name of the secret group Example: "Example secret group" */
|
|
5
|
-
'secretName': string;
|
|
6
|
-
/** Identifier for the secret group Example: "example-secret-group" */
|
|
7
|
-
'secretId': string;
|
|
8
|
-
/** The name of the linked addon Example: "Example Addon" */
|
|
9
|
-
'addonName': string;
|
|
10
|
-
/** The ID of the linked addon Example: "example-addon" */
|
|
11
|
-
'addonId': string;
|
|
12
|
-
/** The addon type of the linked addon Example: "mongodb" */
|
|
13
|
-
'addonType': string;
|
|
14
|
-
/** Is this addon currently linked to this secret group? Example: true */
|
|
15
|
-
'linked': boolean;
|
|
16
|
-
/** An array of objects containing details about the keys linked to this secret group. */
|
|
17
|
-
'linkedKeys'?: {
|
|
18
|
-
/** The name of the key to link. Example: "username" */
|
|
19
|
-
'keyName': string;
|
|
20
|
-
/** An array of aliases for the key. */
|
|
21
|
-
'aliases'?: string[];
|
|
22
|
-
'defaultKey': string;
|
|
23
|
-
}[];
|
|
24
|
-
/** A list of available keys for the given addon. */
|
|
25
|
-
'availableKeys': string[];
|
|
26
|
-
};
|
|
27
|
-
export declare type GetSecretlinkCall = (opts: GetSecretlinkRequest) => Promise<ApiCallResponse<GetSecretlinkResult>>;
|
|
28
|
-
export declare type GetSecretlinkRequest = {
|
|
29
|
-
parameters: GetSecretlinkParameters;
|
|
30
|
-
};
|
|
31
|
-
export declare type GetSecretlinkParameters = {
|
|
32
|
-
/** ID of the project */ 'projectId': string;
|
|
33
|
-
/** ID of the secret */
|
|
34
|
-
'secretId': string;
|
|
35
|
-
/** ID of the addon */
|
|
36
|
-
'addonId': string;
|
|
37
|
-
};
|
|
38
|
-
/** Get details about a given addon link. */
|
|
39
|
-
export declare class GetSecretlinkEndpoint extends GetApiEndpoint<GetSecretlinkRequest, GetSecretlinkResult> {
|
|
40
|
-
description: string;
|
|
41
|
-
withAuth: boolean;
|
|
42
|
-
endpointUrl: (opts: GetSecretlinkRequest) => string;
|
|
43
|
-
body: () => undefined;
|
|
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.GetSecretlinkEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../api-endpoint");
|
|
21
|
-
/** Get details about a given addon link. */
|
|
22
|
-
var GetSecretlinkEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(GetSecretlinkEndpoint, _super);
|
|
24
|
-
function GetSecretlinkEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Get details about a given addon link.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/secrets/" + opts.parameters.secretId + "/addons/" + opts.parameters.addonId;
|
|
30
|
-
};
|
|
31
|
-
_this.body = function () { return undefined; };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return GetSecretlinkEndpoint;
|
|
35
|
-
}(api_endpoint_1.GetApiEndpoint));
|
|
36
|
-
exports.GetSecretlinkEndpoint = GetSecretlinkEndpoint;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, GetApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type GetServiceBuildargumentsResult = any;
|
|
4
|
-
export declare type GetServiceBuildargumentsCall = (opts: GetServiceBuildargumentsRequest) => Promise<ApiCallResponse<GetServiceBuildargumentsResult>>;
|
|
5
|
-
export declare type GetServiceBuildargumentsRequest = {
|
|
6
|
-
parameters: GetServiceBuildargumentsParameters;
|
|
7
|
-
};
|
|
8
|
-
export declare type GetServiceBuildargumentsParameters = {
|
|
9
|
-
/** ID of the project */ 'projectId': string;
|
|
10
|
-
/** ID of the service */
|
|
11
|
-
'serviceId': string;
|
|
12
|
-
};
|
|
13
|
-
/** Gets information about the build arguments of the given service. */
|
|
14
|
-
export declare class GetServiceBuildargumentsEndpoint extends GetApiEndpoint<GetServiceBuildargumentsRequest, GetServiceBuildargumentsResult> {
|
|
15
|
-
description: string;
|
|
16
|
-
withAuth: boolean;
|
|
17
|
-
endpointUrl: (opts: GetServiceBuildargumentsRequest) => 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.GetServiceBuildargumentsEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Gets information about the build arguments of the given service. */
|
|
22
|
-
var GetServiceBuildargumentsEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(GetServiceBuildargumentsEndpoint, _super);
|
|
24
|
-
function GetServiceBuildargumentsEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Gets information about the build arguments of 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 () { return undefined; };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return GetServiceBuildargumentsEndpoint;
|
|
35
|
-
}(api_endpoint_1.GetApiEndpoint));
|
|
36
|
-
exports.GetServiceBuildargumentsEndpoint = GetServiceBuildargumentsEndpoint;
|