@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,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': string;
|
|
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;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, GetApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type GetServiceBuildsResult = {
|
|
4
|
-
/** An array of builds. */
|
|
5
|
-
'builds': {
|
|
6
|
-
/** Name of the branch the built commit belongs to. Example: "main" */
|
|
7
|
-
'branch'?: string;
|
|
8
|
-
/** ID of the pull request the commit belongs to. */
|
|
9
|
-
'pullRequestId'?: number;
|
|
10
|
-
/** The status of the build. Example: "SUCCESS" */
|
|
11
|
-
'status'?: string;
|
|
12
|
-
/** The sha of the built commit. Example: "12c15e7ee25fd78f567ebf87f9178b8ad70025b3" */
|
|
13
|
-
'sha'?: string;
|
|
14
|
-
/** Whether the build has finished. Example: true */
|
|
15
|
-
'concluded'?: boolean;
|
|
16
|
-
/** Timestamp of the build initiation. Example: "2021-07-28T15:55:38.296Z" */
|
|
17
|
-
'createdAt'?: string;
|
|
18
|
-
/** Whether the build was successful. Example: true */
|
|
19
|
-
'success'?: boolean;
|
|
20
|
-
/** Description of the build status. Example: "Image successfully built" */
|
|
21
|
-
'message'?: string;
|
|
22
|
-
/** Timestamp of the build concluding. Example: 1606237973 */
|
|
23
|
-
'buildConcludedAt'?: number;
|
|
24
|
-
}[];
|
|
25
|
-
};
|
|
26
|
-
export declare type GetServiceBuildsCall = (opts: GetServiceBuildsRequest) => Promise<ApiCallResponse<GetServiceBuildsResult>>;
|
|
27
|
-
export declare type GetServiceBuildsRequest = {
|
|
28
|
-
parameters: GetServiceBuildsParameters;
|
|
29
|
-
options?: GetServiceBuildsOptions;
|
|
30
|
-
};
|
|
31
|
-
export declare type GetServiceBuildsParameters = {
|
|
32
|
-
/** ID of the project */ 'projectId': string;
|
|
33
|
-
/** ID of the service */
|
|
34
|
-
'serviceId': string;
|
|
35
|
-
};
|
|
36
|
-
export declare type GetServiceBuildsOptions = {
|
|
37
|
-
/** The number of results to display per request. Maximum of 100 results per page. */
|
|
38
|
-
'per_page'?: number;
|
|
39
|
-
/** The page number to access. */
|
|
40
|
-
'page'?: number;
|
|
41
|
-
/** The cursor returned from the previous page of results, used to request the next page. */
|
|
42
|
-
'cursor'?: string;
|
|
43
|
-
};
|
|
44
|
-
/** Lists the builds for the service */
|
|
45
|
-
export declare class GetServiceBuildsEndpoint extends GetApiEndpoint<GetServiceBuildsRequest, GetServiceBuildsResult> {
|
|
46
|
-
description: string;
|
|
47
|
-
withAuth: boolean;
|
|
48
|
-
endpointUrl: (opts: GetServiceBuildsRequest) => string;
|
|
49
|
-
body: () => undefined;
|
|
50
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
3
|
-
var __extends = (this && this.__extends) || (function () {
|
|
4
|
-
var extendStatics = function (d, b) {
|
|
5
|
-
extendStatics = Object.setPrototypeOf ||
|
|
6
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
8
|
-
return extendStatics(d, b);
|
|
9
|
-
};
|
|
10
|
-
return function (d, b) {
|
|
11
|
-
if (typeof b !== "function" && b !== null)
|
|
12
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13
|
-
extendStatics(d, b);
|
|
14
|
-
function __() { this.constructor = d; }
|
|
15
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16
|
-
};
|
|
17
|
-
})();
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.GetServiceBuildsEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Lists the builds for the service */
|
|
22
|
-
var GetServiceBuildsEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(GetServiceBuildsEndpoint, _super);
|
|
24
|
-
function GetServiceBuildsEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Lists the builds for the service';
|
|
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 + "/services/" + opts.parameters.serviceId + "/build" +
|
|
33
|
-
optionStr);
|
|
34
|
-
};
|
|
35
|
-
_this.body = function () { return undefined; };
|
|
36
|
-
return _this;
|
|
37
|
-
}
|
|
38
|
-
return GetServiceBuildsEndpoint;
|
|
39
|
-
}(api_endpoint_1.GetApiEndpoint));
|
|
40
|
-
exports.GetServiceBuildsEndpoint = GetServiceBuildsEndpoint;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, GetApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type GetServiceContainersResult = {
|
|
4
|
-
/** An array of containers. */
|
|
5
|
-
'pods': {
|
|
6
|
-
/** The timestamp the pod was created. Example: 1611241087 */
|
|
7
|
-
'createdAt': number;
|
|
8
|
-
/** The name of the pod. Example: "example-service-78b4d4459d-sbtn8" */
|
|
9
|
-
'podName': string;
|
|
10
|
-
/** The region where the pod is deployed. Example: "europe-west" */
|
|
11
|
-
'region': string;
|
|
12
|
-
/** The current status of the pod. Example: "TASK_RUNNING" */
|
|
13
|
-
'status': 'TASK_RUNNING' | 'TASK_STARTING' | 'TASK_STAGING' | 'TASK_KILLING' | 'TASK_KILLED' | 'TASK_FAILED' | 'TASK_FINISHED';
|
|
14
|
-
}[];
|
|
15
|
-
};
|
|
16
|
-
export declare type GetServiceContainersCall = (opts: GetServiceContainersRequest) => Promise<ApiCallResponse<GetServiceContainersResult>>;
|
|
17
|
-
export declare type GetServiceContainersRequest = {
|
|
18
|
-
parameters: GetServiceContainersParameters;
|
|
19
|
-
options?: GetServiceContainersOptions;
|
|
20
|
-
};
|
|
21
|
-
export declare type GetServiceContainersParameters = {
|
|
22
|
-
/** ID of the project */ 'projectId': string;
|
|
23
|
-
/** ID of the service */
|
|
24
|
-
'serviceId': string;
|
|
25
|
-
};
|
|
26
|
-
export declare type GetServiceContainersOptions = {
|
|
27
|
-
/** The number of results to display per request. Maximum of 100 results per page. */
|
|
28
|
-
'per_page'?: number;
|
|
29
|
-
/** The page number to access. */
|
|
30
|
-
'page'?: number;
|
|
31
|
-
/** The cursor returned from the previous page of results, used to request the next page. */
|
|
32
|
-
'cursor'?: string;
|
|
33
|
-
};
|
|
34
|
-
/** Gets a list of containers for the given service. */
|
|
35
|
-
export declare class GetServiceContainersEndpoint extends GetApiEndpoint<GetServiceContainersRequest, GetServiceContainersResult> {
|
|
36
|
-
description: string;
|
|
37
|
-
withAuth: boolean;
|
|
38
|
-
endpointUrl: (opts: GetServiceContainersRequest) => string;
|
|
39
|
-
body: () => undefined;
|
|
40
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
3
|
-
var __extends = (this && this.__extends) || (function () {
|
|
4
|
-
var extendStatics = function (d, b) {
|
|
5
|
-
extendStatics = Object.setPrototypeOf ||
|
|
6
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
8
|
-
return extendStatics(d, b);
|
|
9
|
-
};
|
|
10
|
-
return function (d, b) {
|
|
11
|
-
if (typeof b !== "function" && b !== null)
|
|
12
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13
|
-
extendStatics(d, b);
|
|
14
|
-
function __() { this.constructor = d; }
|
|
15
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16
|
-
};
|
|
17
|
-
})();
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.GetServiceContainersEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Gets a list of containers for the given service. */
|
|
22
|
-
var GetServiceContainersEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(GetServiceContainersEndpoint, _super);
|
|
24
|
-
function GetServiceContainersEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Gets a list of containers for the given service.';
|
|
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 + "/services/" + opts.parameters.serviceId + "/containers" +
|
|
33
|
-
optionStr);
|
|
34
|
-
};
|
|
35
|
-
_this.body = function () { return undefined; };
|
|
36
|
-
return _this;
|
|
37
|
-
}
|
|
38
|
-
return GetServiceContainersEndpoint;
|
|
39
|
-
}(api_endpoint_1.GetApiEndpoint));
|
|
40
|
-
exports.GetServiceContainersEndpoint = GetServiceContainersEndpoint;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, GetApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type GetServiceDeploymentResult = {
|
|
4
|
-
/** Region where this service is deployed and/or built Example: "europe-west" */
|
|
5
|
-
'region'?: string;
|
|
6
|
-
/** Number of instances/replicas running Example: 1 */
|
|
7
|
-
'instances'?: number;
|
|
8
|
-
'internal': {
|
|
9
|
-
/** Full identifier of deployed entity Example: "/example-user/default-project/example-service" */
|
|
10
|
-
'appId': string;
|
|
11
|
-
/** ID of deployed entity Example: "example-service" */
|
|
12
|
-
'nfObjectId': string;
|
|
13
|
-
/** Type of deployed entity Example: "service" */
|
|
14
|
-
'nfObjectType': string;
|
|
15
|
-
/** URL of the repository being deployed Example: "https://github.com/northflank/gatsby-with-northflank" */
|
|
16
|
-
'repository': string;
|
|
17
|
-
/** Branch of the repo being deployed Example: "master" */
|
|
18
|
-
'branch': string;
|
|
19
|
-
/** Commit SHA being deployed. 'latest' means the latest commit is automatically being deployed. Example: "latest" */
|
|
20
|
-
'buildSHA': string;
|
|
21
|
-
};
|
|
22
|
-
} | {
|
|
23
|
-
/** Region where this service is deployed and/or built Example: "europe-west" */
|
|
24
|
-
'region'?: string;
|
|
25
|
-
/** Number of instances/replicas running Example: 1 */
|
|
26
|
-
'instances'?: number;
|
|
27
|
-
'external': {
|
|
28
|
-
/** Path of the external image excluding the hostname Example: "nginx:latest" */
|
|
29
|
-
'imagePath': string;
|
|
30
|
-
/** Registry provider hosting the external image Example: "dockerhub" */
|
|
31
|
-
'registryProvider': 'dockerhub' | 'gcr-eu' | 'gcr-us' | 'gitlab' | 'github' | 'custom';
|
|
32
|
-
/** Does the image require authentication */
|
|
33
|
-
'privateImage': boolean;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
export declare type GetServiceDeploymentCall = (opts: GetServiceDeploymentRequest) => Promise<ApiCallResponse<GetServiceDeploymentResult>>;
|
|
37
|
-
export declare type GetServiceDeploymentRequest = {
|
|
38
|
-
parameters: GetServiceDeploymentParameters;
|
|
39
|
-
};
|
|
40
|
-
export declare type GetServiceDeploymentParameters = {
|
|
41
|
-
/** ID of the project */ 'projectId': string;
|
|
42
|
-
/** ID of the service */
|
|
43
|
-
'serviceId': string;
|
|
44
|
-
};
|
|
45
|
-
/** Gets information about the deployment of the given service. */
|
|
46
|
-
export declare class GetServiceDeploymentEndpoint extends GetApiEndpoint<GetServiceDeploymentRequest, GetServiceDeploymentResult> {
|
|
47
|
-
description: string;
|
|
48
|
-
withAuth: boolean;
|
|
49
|
-
endpointUrl: (opts: GetServiceDeploymentRequest) => string;
|
|
50
|
-
body: () => undefined;
|
|
51
|
-
}
|
|
@@ -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.GetServiceDeploymentEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Gets information about the deployment of the given service. */
|
|
22
|
-
var GetServiceDeploymentEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(GetServiceDeploymentEndpoint, _super);
|
|
24
|
-
function GetServiceDeploymentEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Gets information about the deployment of the given service.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/services/" + opts.parameters.serviceId + "/deployment";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function () { return undefined; };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return GetServiceDeploymentEndpoint;
|
|
35
|
-
}(api_endpoint_1.GetApiEndpoint));
|
|
36
|
-
exports.GetServiceDeploymentEndpoint = GetServiceDeploymentEndpoint;
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, GetApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type GetServiceDetailsResult = {
|
|
4
|
-
/** Identifier for the service Example: "example-service" */
|
|
5
|
-
'id': string;
|
|
6
|
-
/** Full identifier used for service deployment Example: "/example-user/default-project/example-service" */
|
|
7
|
-
'appId': string;
|
|
8
|
-
/** Service name Example: "Example Service" */
|
|
9
|
-
'name': string;
|
|
10
|
-
/** A short description of the service Example: "This is the service description" */
|
|
11
|
-
'description'?: string;
|
|
12
|
-
/** ID of the project that the service belongs to Example: "default-project" */
|
|
13
|
-
'projectId': string;
|
|
14
|
-
/** Type of the service (combined, build or deployment) Example: "combined" */
|
|
15
|
-
'serviceType': 'combined' | 'build' | 'deployment';
|
|
16
|
-
/** The time the service was created. Example: "2021-01-20T11:19:53.175Z" */
|
|
17
|
-
'createdAt': string;
|
|
18
|
-
/** Whether Continuous Integration is disabled */
|
|
19
|
-
'disabledCI': boolean;
|
|
20
|
-
/** Whether Continuous Deployment is disabled */
|
|
21
|
-
'disabledCD': boolean;
|
|
22
|
-
'billing': {
|
|
23
|
-
/** ID of the billing plan used by this service Example: "nf-compute-20" */
|
|
24
|
-
'deploymentPlan': string;
|
|
25
|
-
};
|
|
26
|
-
'vcsData'?: {
|
|
27
|
-
/** URL of the repository being built Example: "https://github.com/northflank/gatsby-with-northflank" */
|
|
28
|
-
'projectUrl': string;
|
|
29
|
-
/** VCS provider for the repo being built Example: "github" */
|
|
30
|
-
'projectType': string;
|
|
31
|
-
/** ID of the self-hosted VCS, if applicable. Example: "example-team/self-hosted-vcs" */
|
|
32
|
-
'vcsId'?: string;
|
|
33
|
-
/** Branch of the repo being built Example: "master" */
|
|
34
|
-
'projectBranch'?: string;
|
|
35
|
-
/** Working directory used by the dockerfile Example: "/" */
|
|
36
|
-
'dockerWorkDir': string;
|
|
37
|
-
/** File path of the Dockerfile Example: "/Dockerfile" */
|
|
38
|
-
'dockerFilePath': string;
|
|
39
|
-
};
|
|
40
|
-
'deployment'?: {
|
|
41
|
-
/** Region where this service is deployed and/or built Example: "europe-west" */
|
|
42
|
-
'region'?: string;
|
|
43
|
-
/** Number of instances/replicas running Example: 1 */
|
|
44
|
-
'instances'?: number;
|
|
45
|
-
/** Data about a deployment from an external registry. */
|
|
46
|
-
'external'?: {
|
|
47
|
-
/** Path of the external image excluding the hostname */
|
|
48
|
-
'imagePath': string;
|
|
49
|
-
/** Registry provider hosting the external image */
|
|
50
|
-
'registryProvider': 'dockerhub' | 'gcr-eu' | 'gcr-us' | 'gitlab' | 'github' | 'custom';
|
|
51
|
-
/** Does the image require authentication */
|
|
52
|
-
'privateImage': boolean;
|
|
53
|
-
};
|
|
54
|
-
'internal'?: {
|
|
55
|
-
/** Full identifier of deployed entity Example: "/example-user/default-project/example-service" */
|
|
56
|
-
'appId': string;
|
|
57
|
-
/** Database ID of deployed entity Example: "5f3bd676b84798d54472d1cc" */
|
|
58
|
-
'nfObjectId': string;
|
|
59
|
-
/** Type of deployed entity Example: "service" */
|
|
60
|
-
'nfObjectType': string;
|
|
61
|
-
/** URL of the repository being deployed Example: "https://github.com/northflank/gatsby-with-northflank" */
|
|
62
|
-
'repository': string;
|
|
63
|
-
/** Branch of the repo being deployed Example: "master" */
|
|
64
|
-
'branch': string;
|
|
65
|
-
/** Commit SHA to be deployed. 'latest' means the latest commit is automatically being deployed. Example: "latest" */
|
|
66
|
-
'buildSHA': string;
|
|
67
|
-
/** Currently deployed commit SHA. If buildSHA is set to 'latest', this will show the SHA of the latest commit. Example: "262ed9817b3cad5142fbceabe0c9e371e390d616" */
|
|
68
|
-
'deployedSHA': string;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
'buildConfiguration'?: {
|
|
72
|
-
'branchRestrictions': string[];
|
|
73
|
-
'prRestrictions': string[];
|
|
74
|
-
};
|
|
75
|
-
'buildEngineConfiguration'?: {
|
|
76
|
-
/** The build engine used. Example: "buildpack" */
|
|
77
|
-
'builder'?: 'buildpack' | 'kaniko' | 'buildkit';
|
|
78
|
-
'buildpack'?: {
|
|
79
|
-
/** The Buildpack stack used. Example: "HEROKU_20" */
|
|
80
|
-
'builder'?: 'HEROKU_20' | 'HEROKU_18' | 'GOOGLE_V1' | 'CNB_ALPINE' | 'CNB_BIONIC' | 'PAKETO_TINY';
|
|
81
|
-
/** Array of custom Buildpacks used. */
|
|
82
|
-
'buildpackLocators'?: string[];
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
export declare type GetServiceDetailsCall = (opts: GetServiceDetailsRequest) => Promise<ApiCallResponse<GetServiceDetailsResult>>;
|
|
87
|
-
export declare type GetServiceDetailsRequest = {
|
|
88
|
-
parameters: GetServiceDetailsParameters;
|
|
89
|
-
};
|
|
90
|
-
export declare type GetServiceDetailsParameters = {
|
|
91
|
-
/** ID of the project */ 'projectId': string;
|
|
92
|
-
/** ID of the service */
|
|
93
|
-
'serviceId': string;
|
|
94
|
-
};
|
|
95
|
-
/** Gets information about the given service. */
|
|
96
|
-
export declare class GetServiceDetailsEndpoint extends GetApiEndpoint<GetServiceDetailsRequest, GetServiceDetailsResult> {
|
|
97
|
-
description: string;
|
|
98
|
-
withAuth: boolean;
|
|
99
|
-
endpointUrl: (opts: GetServiceDetailsRequest) => string;
|
|
100
|
-
body: () => undefined;
|
|
101
|
-
}
|
|
@@ -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.GetServiceDetailsEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Gets information about the given service. */
|
|
22
|
-
var GetServiceDetailsEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(GetServiceDetailsEndpoint, _super);
|
|
24
|
-
function GetServiceDetailsEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Gets information about the given service.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/services/" + opts.parameters.serviceId;
|
|
30
|
-
};
|
|
31
|
-
_this.body = function () { return undefined; };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return GetServiceDetailsEndpoint;
|
|
35
|
-
}(api_endpoint_1.GetApiEndpoint));
|
|
36
|
-
exports.GetServiceDetailsEndpoint = GetServiceDetailsEndpoint;
|