@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,26 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type UpdateAddonNetworksettingsResult = any;
|
|
4
|
-
export declare type UpdateAddonNetworksettingsCall = (opts: UpdateAddonNetworksettingsRequest) => Promise<ApiCallResponse<UpdateAddonNetworksettingsResult>>;
|
|
5
|
-
export declare type UpdateAddonNetworksettingsRequest = {
|
|
6
|
-
parameters: UpdateAddonNetworksettingsParameters;
|
|
7
|
-
data: UpdateAddonNetworksettingsData;
|
|
8
|
-
};
|
|
9
|
-
export declare type UpdateAddonNetworksettingsParameters = {
|
|
10
|
-
/** ID of the project */ 'projectId': string;
|
|
11
|
-
/** ID of the addon */
|
|
12
|
-
'addonId': string;
|
|
13
|
-
};
|
|
14
|
-
export declare type UpdateAddonNetworksettingsData = {
|
|
15
|
-
/** If `true`, a TLS certificate will be provisioned for the addon. Example: true */
|
|
16
|
-
'tlsEnabled'?: boolean;
|
|
17
|
-
/** If `true`, the addon will be given a public URL and will be accessible from the internet. `tlsEnabled` must be `true` to set this as `true`. Example: true */
|
|
18
|
-
'externalAccessEnabled'?: boolean;
|
|
19
|
-
};
|
|
20
|
-
/** Updates the network settings for the addon. */
|
|
21
|
-
export declare class UpdateAddonNetworksettingsEndpoint extends PostApiEndpoint<UpdateAddonNetworksettingsRequest, UpdateAddonNetworksettingsResult> {
|
|
22
|
-
description: string;
|
|
23
|
-
withAuth: boolean;
|
|
24
|
-
endpointUrl: (opts: UpdateAddonNetworksettingsRequest) => string;
|
|
25
|
-
body: (payload: UpdateAddonNetworksettingsRequest) => string;
|
|
26
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
3
|
-
var __extends = (this && this.__extends) || (function () {
|
|
4
|
-
var extendStatics = function (d, b) {
|
|
5
|
-
extendStatics = Object.setPrototypeOf ||
|
|
6
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
8
|
-
return extendStatics(d, b);
|
|
9
|
-
};
|
|
10
|
-
return function (d, b) {
|
|
11
|
-
if (typeof b !== "function" && b !== null)
|
|
12
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13
|
-
extendStatics(d, b);
|
|
14
|
-
function __() { this.constructor = d; }
|
|
15
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16
|
-
};
|
|
17
|
-
})();
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.UpdateAddonNetworksettingsEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Updates the network settings for the addon. */
|
|
22
|
-
var UpdateAddonNetworksettingsEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(UpdateAddonNetworksettingsEndpoint, _super);
|
|
24
|
-
function UpdateAddonNetworksettingsEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Updates the network settings for the addon.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/addons/" + opts.parameters.addonId + "/network-settings";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function (payload) { return JSON.stringify(payload.data); };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return UpdateAddonNetworksettingsEndpoint;
|
|
35
|
-
}(api_endpoint_1.PostApiEndpoint));
|
|
36
|
-
exports.UpdateAddonNetworksettingsEndpoint = UpdateAddonNetworksettingsEndpoint;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type UpdateAddonSecurityResult = any;
|
|
4
|
-
export declare type UpdateAddonSecurityCall = (opts: UpdateAddonSecurityRequest) => Promise<ApiCallResponse<UpdateAddonSecurityResult>>;
|
|
5
|
-
export declare type UpdateAddonSecurityRequest = {
|
|
6
|
-
parameters: UpdateAddonSecurityParameters;
|
|
7
|
-
data: UpdateAddonSecurityData;
|
|
8
|
-
};
|
|
9
|
-
export declare type UpdateAddonSecurityParameters = {
|
|
10
|
-
/** ID of the project */ 'projectId': string;
|
|
11
|
-
/** ID of the addon */
|
|
12
|
-
'addonId': string;
|
|
13
|
-
};
|
|
14
|
-
export declare type UpdateAddonSecurityData = {
|
|
15
|
-
/** An array of IP policy rules. */
|
|
16
|
-
'ipPolicies': {
|
|
17
|
-
/** An IP address used by this rule. Example: "127.0.0.1" */
|
|
18
|
-
'address': string;
|
|
19
|
-
/** The action for this rule. Example: "ALLOW" */
|
|
20
|
-
'action'?: 'ALLOW' | 'DENY';
|
|
21
|
-
}[];
|
|
22
|
-
};
|
|
23
|
-
/** Updates the security rules for the addon. */
|
|
24
|
-
export declare class UpdateAddonSecurityEndpoint extends PostApiEndpoint<UpdateAddonSecurityRequest, UpdateAddonSecurityResult> {
|
|
25
|
-
description: string;
|
|
26
|
-
withAuth: boolean;
|
|
27
|
-
endpointUrl: (opts: UpdateAddonSecurityRequest) => string;
|
|
28
|
-
body: (payload: UpdateAddonSecurityRequest) => string;
|
|
29
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
3
|
-
var __extends = (this && this.__extends) || (function () {
|
|
4
|
-
var extendStatics = function (d, b) {
|
|
5
|
-
extendStatics = Object.setPrototypeOf ||
|
|
6
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
8
|
-
return extendStatics(d, b);
|
|
9
|
-
};
|
|
10
|
-
return function (d, b) {
|
|
11
|
-
if (typeof b !== "function" && b !== null)
|
|
12
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13
|
-
extendStatics(d, b);
|
|
14
|
-
function __() { this.constructor = d; }
|
|
15
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16
|
-
};
|
|
17
|
-
})();
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.UpdateAddonSecurityEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Updates the security rules for the addon. */
|
|
22
|
-
var UpdateAddonSecurityEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(UpdateAddonSecurityEndpoint, _super);
|
|
24
|
-
function UpdateAddonSecurityEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Updates the security rules for the addon.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/addons/" + opts.parameters.addonId + "/security";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function (payload) { return JSON.stringify(payload.data); };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return UpdateAddonSecurityEndpoint;
|
|
35
|
-
}(api_endpoint_1.PostApiEndpoint));
|
|
36
|
-
exports.UpdateAddonSecurityEndpoint = UpdateAddonSecurityEndpoint;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type UpdateAddonVersionResult = any;
|
|
4
|
-
export declare type UpdateAddonVersionCall = (opts: UpdateAddonVersionRequest) => Promise<ApiCallResponse<UpdateAddonVersionResult>>;
|
|
5
|
-
export declare type UpdateAddonVersionRequest = {
|
|
6
|
-
parameters: UpdateAddonVersionParameters;
|
|
7
|
-
data: UpdateAddonVersionData;
|
|
8
|
-
};
|
|
9
|
-
export declare type UpdateAddonVersionParameters = {
|
|
10
|
-
/** ID of the project */ 'projectId': string;
|
|
11
|
-
/** ID of the addon */
|
|
12
|
-
'addonId': string;
|
|
13
|
-
};
|
|
14
|
-
export declare type UpdateAddonVersionData = {
|
|
15
|
-
/** The version to upgrade the addon to. Example: "4.2.15" */
|
|
16
|
-
'version': string;
|
|
17
|
-
};
|
|
18
|
-
/** Upgrades the addon to a new version. */
|
|
19
|
-
export declare class UpdateAddonVersionEndpoint extends PostApiEndpoint<UpdateAddonVersionRequest, UpdateAddonVersionResult> {
|
|
20
|
-
description: string;
|
|
21
|
-
withAuth: boolean;
|
|
22
|
-
endpointUrl: (opts: UpdateAddonVersionRequest) => string;
|
|
23
|
-
body: (payload: UpdateAddonVersionRequest) => string;
|
|
24
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
3
|
-
var __extends = (this && this.__extends) || (function () {
|
|
4
|
-
var extendStatics = function (d, b) {
|
|
5
|
-
extendStatics = Object.setPrototypeOf ||
|
|
6
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
8
|
-
return extendStatics(d, b);
|
|
9
|
-
};
|
|
10
|
-
return function (d, b) {
|
|
11
|
-
if (typeof b !== "function" && b !== null)
|
|
12
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13
|
-
extendStatics(d, b);
|
|
14
|
-
function __() { this.constructor = d; }
|
|
15
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16
|
-
};
|
|
17
|
-
})();
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.UpdateAddonVersionEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Upgrades the addon to a new version. */
|
|
22
|
-
var UpdateAddonVersionEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(UpdateAddonVersionEndpoint, _super);
|
|
24
|
-
function UpdateAddonVersionEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Upgrades the addon to a new version.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/addons/" + opts.parameters.addonId + "/version";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function (payload) { return JSON.stringify(payload.data); };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return UpdateAddonVersionEndpoint;
|
|
35
|
-
}(api_endpoint_1.PostApiEndpoint));
|
|
36
|
-
exports.UpdateAddonVersionEndpoint = UpdateAddonVersionEndpoint;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type UpdateJobBuildargumentsResult = any;
|
|
4
|
-
export declare type UpdateJobBuildargumentsCall = (opts: UpdateJobBuildargumentsRequest) => Promise<ApiCallResponse<UpdateJobBuildargumentsResult>>;
|
|
5
|
-
export declare type UpdateJobBuildargumentsRequest = {
|
|
6
|
-
parameters: UpdateJobBuildargumentsParameters;
|
|
7
|
-
data: UpdateJobBuildargumentsData;
|
|
8
|
-
};
|
|
9
|
-
export declare type UpdateJobBuildargumentsParameters = {
|
|
10
|
-
/** ID of the project */ 'projectId': string;
|
|
11
|
-
/** ID of the job */
|
|
12
|
-
'jobId': string;
|
|
13
|
-
};
|
|
14
|
-
export declare type UpdateJobBuildargumentsData = {
|
|
15
|
-
/** An object containing the all of the build arguments to set for the service Example: {"ARGUMENT_1":"abcdef","ARGUMENT_2":"12345"} */
|
|
16
|
-
'buildArguments': any;
|
|
17
|
-
};
|
|
18
|
-
/** Sets build arguments for the given job. */
|
|
19
|
-
export declare class UpdateJobBuildargumentsEndpoint extends PostApiEndpoint<UpdateJobBuildargumentsRequest, UpdateJobBuildargumentsResult> {
|
|
20
|
-
description: string;
|
|
21
|
-
withAuth: boolean;
|
|
22
|
-
endpointUrl: (opts: UpdateJobBuildargumentsRequest) => string;
|
|
23
|
-
body: (payload: UpdateJobBuildargumentsRequest) => string;
|
|
24
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
3
|
-
var __extends = (this && this.__extends) || (function () {
|
|
4
|
-
var extendStatics = function (d, b) {
|
|
5
|
-
extendStatics = Object.setPrototypeOf ||
|
|
6
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
8
|
-
return extendStatics(d, b);
|
|
9
|
-
};
|
|
10
|
-
return function (d, b) {
|
|
11
|
-
if (typeof b !== "function" && b !== null)
|
|
12
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13
|
-
extendStatics(d, b);
|
|
14
|
-
function __() { this.constructor = d; }
|
|
15
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16
|
-
};
|
|
17
|
-
})();
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.UpdateJobBuildargumentsEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Sets build arguments for the given job. */
|
|
22
|
-
var UpdateJobBuildargumentsEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(UpdateJobBuildargumentsEndpoint, _super);
|
|
24
|
-
function UpdateJobBuildargumentsEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Sets build arguments for the given job.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/jobs/" + opts.parameters.jobId + "/build-arguments";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function (payload) { return JSON.stringify(payload.data); };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return UpdateJobBuildargumentsEndpoint;
|
|
35
|
-
}(api_endpoint_1.PostApiEndpoint));
|
|
36
|
-
exports.UpdateJobBuildargumentsEndpoint = UpdateJobBuildargumentsEndpoint;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type UpdateJobCmdoverrideResult = any;
|
|
4
|
-
export declare type UpdateJobCmdoverrideCall = (opts: UpdateJobCmdoverrideRequest) => Promise<ApiCallResponse<UpdateJobCmdoverrideResult>>;
|
|
5
|
-
export declare type UpdateJobCmdoverrideRequest = {
|
|
6
|
-
parameters: UpdateJobCmdoverrideParameters;
|
|
7
|
-
data: UpdateJobCmdoverrideData;
|
|
8
|
-
};
|
|
9
|
-
export declare type UpdateJobCmdoverrideParameters = {
|
|
10
|
-
/** ID of the project */ 'projectId': string;
|
|
11
|
-
/** ID of the job */
|
|
12
|
-
'jobId': string;
|
|
13
|
-
};
|
|
14
|
-
export declare type UpdateJobCmdoverrideData = {
|
|
15
|
-
/** The CMD to run, or null to disable the override. Example: "nginx -g" */
|
|
16
|
-
'cmd': string;
|
|
17
|
-
};
|
|
18
|
-
/** Sets the Docker CMD override for the given job. */
|
|
19
|
-
export declare class UpdateJobCmdoverrideEndpoint extends PostApiEndpoint<UpdateJobCmdoverrideRequest, UpdateJobCmdoverrideResult> {
|
|
20
|
-
description: string;
|
|
21
|
-
withAuth: boolean;
|
|
22
|
-
endpointUrl: (opts: UpdateJobCmdoverrideRequest) => string;
|
|
23
|
-
body: (payload: UpdateJobCmdoverrideRequest) => string;
|
|
24
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
3
|
-
var __extends = (this && this.__extends) || (function () {
|
|
4
|
-
var extendStatics = function (d, b) {
|
|
5
|
-
extendStatics = Object.setPrototypeOf ||
|
|
6
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
8
|
-
return extendStatics(d, b);
|
|
9
|
-
};
|
|
10
|
-
return function (d, b) {
|
|
11
|
-
if (typeof b !== "function" && b !== null)
|
|
12
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13
|
-
extendStatics(d, b);
|
|
14
|
-
function __() { this.constructor = d; }
|
|
15
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16
|
-
};
|
|
17
|
-
})();
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.UpdateJobCmdoverrideEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Sets the Docker CMD override for the given job. */
|
|
22
|
-
var UpdateJobCmdoverrideEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(UpdateJobCmdoverrideEndpoint, _super);
|
|
24
|
-
function UpdateJobCmdoverrideEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Sets the Docker CMD override for the given job.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/jobs/" + opts.parameters.jobId + "/cmd-override";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function (payload) { return JSON.stringify(payload.data); };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return UpdateJobCmdoverrideEndpoint;
|
|
35
|
-
}(api_endpoint_1.PostApiEndpoint));
|
|
36
|
-
exports.UpdateJobCmdoverrideEndpoint = UpdateJobCmdoverrideEndpoint;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type UpdateJobDeploymentResult = any;
|
|
4
|
-
export declare type UpdateJobDeploymentCall = (opts: UpdateJobDeploymentRequest) => Promise<ApiCallResponse<UpdateJobDeploymentResult>>;
|
|
5
|
-
export declare type UpdateJobDeploymentRequest = {
|
|
6
|
-
parameters: UpdateJobDeploymentParameters;
|
|
7
|
-
data: UpdateJobDeploymentData;
|
|
8
|
-
};
|
|
9
|
-
export declare type UpdateJobDeploymentParameters = {
|
|
10
|
-
/** ID of the project */ 'projectId': string;
|
|
11
|
-
/** ID of the job */
|
|
12
|
-
'jobId': string;
|
|
13
|
-
};
|
|
14
|
-
export declare type UpdateJobDeploymentData = {
|
|
15
|
-
'external': {
|
|
16
|
-
/** Path of the external image excluding the hostname Example: "nginx:latest" */
|
|
17
|
-
'imagePath': string;
|
|
18
|
-
/** ID of the saved credentials to use to access this external image. Example: "example-credentials" */
|
|
19
|
-
'credentials'?: string;
|
|
20
|
-
};
|
|
21
|
-
} | {
|
|
22
|
-
'internal': {
|
|
23
|
-
/** ID of the build service to deploy Example: "example-build-service" */
|
|
24
|
-
'id'?: string;
|
|
25
|
-
/** Branch to deploy Example: "master" */
|
|
26
|
-
'branch'?: string;
|
|
27
|
-
/** Commit SHA to deploy, or 'latest' to deploy the most recent commit Example: "latest" */
|
|
28
|
-
'buildSHA'?: any;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
/** Updates the deployment settings of the given job. */
|
|
32
|
-
export declare class UpdateJobDeploymentEndpoint extends PostApiEndpoint<UpdateJobDeploymentRequest, UpdateJobDeploymentResult> {
|
|
33
|
-
description: string;
|
|
34
|
-
withAuth: boolean;
|
|
35
|
-
endpointUrl: (opts: UpdateJobDeploymentRequest) => string;
|
|
36
|
-
body: (payload: UpdateJobDeploymentRequest) => string;
|
|
37
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
3
|
-
var __extends = (this && this.__extends) || (function () {
|
|
4
|
-
var extendStatics = function (d, b) {
|
|
5
|
-
extendStatics = Object.setPrototypeOf ||
|
|
6
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
8
|
-
return extendStatics(d, b);
|
|
9
|
-
};
|
|
10
|
-
return function (d, b) {
|
|
11
|
-
if (typeof b !== "function" && b !== null)
|
|
12
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13
|
-
extendStatics(d, b);
|
|
14
|
-
function __() { this.constructor = d; }
|
|
15
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16
|
-
};
|
|
17
|
-
})();
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.UpdateJobDeploymentEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Updates the deployment settings of the given job. */
|
|
22
|
-
var UpdateJobDeploymentEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(UpdateJobDeploymentEndpoint, _super);
|
|
24
|
-
function UpdateJobDeploymentEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Updates the deployment settings of the given job.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/jobs/" + opts.parameters.jobId + "/deployment";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function (payload) { return JSON.stringify(payload.data); };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return UpdateJobDeploymentEndpoint;
|
|
35
|
-
}(api_endpoint_1.PostApiEndpoint));
|
|
36
|
-
exports.UpdateJobDeploymentEndpoint = UpdateJobDeploymentEndpoint;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type UpdateJobEnvironmentResult = any;
|
|
4
|
-
export declare type UpdateJobEnvironmentCall = (opts: UpdateJobEnvironmentRequest) => Promise<ApiCallResponse<UpdateJobEnvironmentResult>>;
|
|
5
|
-
export declare type UpdateJobEnvironmentRequest = {
|
|
6
|
-
parameters: UpdateJobEnvironmentParameters;
|
|
7
|
-
data: UpdateJobEnvironmentData;
|
|
8
|
-
};
|
|
9
|
-
export declare type UpdateJobEnvironmentParameters = {
|
|
10
|
-
/** ID of the project */ 'projectId': string;
|
|
11
|
-
/** ID of the job */
|
|
12
|
-
'jobId': string;
|
|
13
|
-
};
|
|
14
|
-
export declare type UpdateJobEnvironmentData = {
|
|
15
|
-
/** An object containing the all of the environment variables to set for the service Example: {"VARIABLE_1":"abcdef","VARIABLE_2":"12345"} */
|
|
16
|
-
'runtimeEnvironment': any;
|
|
17
|
-
};
|
|
18
|
-
/** Sets the environment variables for the given job. */
|
|
19
|
-
export declare class UpdateJobEnvironmentEndpoint extends PostApiEndpoint<UpdateJobEnvironmentRequest, UpdateJobEnvironmentResult> {
|
|
20
|
-
description: string;
|
|
21
|
-
withAuth: boolean;
|
|
22
|
-
endpointUrl: (opts: UpdateJobEnvironmentRequest) => string;
|
|
23
|
-
body: (payload: UpdateJobEnvironmentRequest) => string;
|
|
24
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
3
|
-
var __extends = (this && this.__extends) || (function () {
|
|
4
|
-
var extendStatics = function (d, b) {
|
|
5
|
-
extendStatics = Object.setPrototypeOf ||
|
|
6
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
8
|
-
return extendStatics(d, b);
|
|
9
|
-
};
|
|
10
|
-
return function (d, b) {
|
|
11
|
-
if (typeof b !== "function" && b !== null)
|
|
12
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13
|
-
extendStatics(d, b);
|
|
14
|
-
function __() { this.constructor = d; }
|
|
15
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16
|
-
};
|
|
17
|
-
})();
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.UpdateJobEnvironmentEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Sets the environment variables for the given job. */
|
|
22
|
-
var UpdateJobEnvironmentEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(UpdateJobEnvironmentEndpoint, _super);
|
|
24
|
-
function UpdateJobEnvironmentEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Sets the environment variables for the given job.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/jobs/" + opts.parameters.jobId + "/environment";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function (payload) { return JSON.stringify(payload.data); };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return UpdateJobEnvironmentEndpoint;
|
|
35
|
-
}(api_endpoint_1.PostApiEndpoint));
|
|
36
|
-
exports.UpdateJobEnvironmentEndpoint = UpdateJobEnvironmentEndpoint;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type UpdateJobHealthchecksResult = any;
|
|
4
|
-
export declare type UpdateJobHealthchecksCall = (opts: UpdateJobHealthchecksRequest) => Promise<ApiCallResponse<UpdateJobHealthchecksResult>>;
|
|
5
|
-
export declare type UpdateJobHealthchecksRequest = {
|
|
6
|
-
parameters: UpdateJobHealthchecksParameters;
|
|
7
|
-
data: UpdateJobHealthchecksData;
|
|
8
|
-
};
|
|
9
|
-
export declare type UpdateJobHealthchecksParameters = {
|
|
10
|
-
/** ID of the project */ 'projectId': string;
|
|
11
|
-
/** ID of the job */
|
|
12
|
-
'jobId': string;
|
|
13
|
-
};
|
|
14
|
-
export declare type UpdateJobHealthchecksData = {
|
|
15
|
-
/** An array of health checks */
|
|
16
|
-
'healthChecks': {
|
|
17
|
-
/** The protocol to access the health check with. Example: "HTTP" */
|
|
18
|
-
'protocol': 'HTTP' | 'CMD';
|
|
19
|
-
/** The type of health check. Example: "readinessProbe" */
|
|
20
|
-
'type': 'livenessProbe' | 'readinessProbe' | 'startupProbe';
|
|
21
|
-
/** The path of the health check endpoint. Required when protocol is HTTP. Example: "/health-check" */
|
|
22
|
-
'path'?: string;
|
|
23
|
-
/** The command to run for the health check. Required when protocol is CMD */
|
|
24
|
-
'cmd'?: string;
|
|
25
|
-
/** Port number for the health check endpoint. Required when protocol is HTTP. Example: 3000 */
|
|
26
|
-
'port'?: number;
|
|
27
|
-
/** Initial delay, in seconds, before the health check is first run. Example: 10 */
|
|
28
|
-
'initialDelaySeconds': number;
|
|
29
|
-
/** The time between each check, in seconds. Example: 60 */
|
|
30
|
-
'periodSeconds': number;
|
|
31
|
-
/** The time to wait for a response before marking the health check as a failure. Example: 1 */
|
|
32
|
-
'timeoutSeconds': number;
|
|
33
|
-
/** The maximum number of allowed failures. Example: 3 */
|
|
34
|
-
'failureThreshold': number;
|
|
35
|
-
/** The number of successes required to mark the health check as a success. Example: 1 */
|
|
36
|
-
'successThreshold'?: number;
|
|
37
|
-
}[];
|
|
38
|
-
};
|
|
39
|
-
/** Updates health checks for the given job. */
|
|
40
|
-
export declare class UpdateJobHealthchecksEndpoint extends PostApiEndpoint<UpdateJobHealthchecksRequest, UpdateJobHealthchecksResult> {
|
|
41
|
-
description: string;
|
|
42
|
-
withAuth: boolean;
|
|
43
|
-
endpointUrl: (opts: UpdateJobHealthchecksRequest) => string;
|
|
44
|
-
body: (payload: UpdateJobHealthchecksRequest) => string;
|
|
45
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
3
|
-
var __extends = (this && this.__extends) || (function () {
|
|
4
|
-
var extendStatics = function (d, b) {
|
|
5
|
-
extendStatics = Object.setPrototypeOf ||
|
|
6
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
8
|
-
return extendStatics(d, b);
|
|
9
|
-
};
|
|
10
|
-
return function (d, b) {
|
|
11
|
-
if (typeof b !== "function" && b !== null)
|
|
12
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13
|
-
extendStatics(d, b);
|
|
14
|
-
function __() { this.constructor = d; }
|
|
15
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16
|
-
};
|
|
17
|
-
})();
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.UpdateJobHealthchecksEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Updates health checks for the given job. */
|
|
22
|
-
var UpdateJobHealthchecksEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(UpdateJobHealthchecksEndpoint, _super);
|
|
24
|
-
function UpdateJobHealthchecksEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Updates health checks for the given job.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/jobs/" + opts.parameters.jobId + "/health-checks";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function (payload) { return JSON.stringify(payload.data); };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return UpdateJobHealthchecksEndpoint;
|
|
35
|
-
}(api_endpoint_1.PostApiEndpoint));
|
|
36
|
-
exports.UpdateJobHealthchecksEndpoint = UpdateJobHealthchecksEndpoint;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type UpdateJobSettingsResult = any;
|
|
4
|
-
export declare type UpdateJobSettingsCall = (opts: UpdateJobSettingsRequest) => Promise<ApiCallResponse<UpdateJobSettingsResult>>;
|
|
5
|
-
export declare type UpdateJobSettingsRequest = {
|
|
6
|
-
parameters: UpdateJobSettingsParameters;
|
|
7
|
-
data: UpdateJobSettingsData;
|
|
8
|
-
};
|
|
9
|
-
export declare type UpdateJobSettingsParameters = {
|
|
10
|
-
/** ID of the project */ 'projectId': string;
|
|
11
|
-
/** ID of the job */
|
|
12
|
-
'jobId': string;
|
|
13
|
-
};
|
|
14
|
-
export declare type UpdateJobSettingsData = {
|
|
15
|
-
/** The number of attempts to rerun a job before it is marked as failed. */
|
|
16
|
-
'backoffLimit'?: number;
|
|
17
|
-
/** The maximum amount of time, in seconds, for a job to run before it is marked as failed. Example: 600 */
|
|
18
|
-
'activeDeadlineSeconds'?: number;
|
|
19
|
-
/** The cron timer scheduling when to run the job. Required for cron jobs and unavailable for other job types. Example: "30 8 * * *" */
|
|
20
|
-
'schedule'?: string;
|
|
21
|
-
/** Whether this job should run when another instance of the job is already running. Only available for cron jobs. `allow` will enable multiple instances of this job to run. `forbid` will keep the current instance of the job running and stop a new instance from being run. `replace` will terminate any currently running instance of the job and start a new one. Example: "allow" */
|
|
22
|
-
'concurrencyPolicy'?: 'allow' | 'forbid' | 'replace';
|
|
23
|
-
};
|
|
24
|
-
/** Updates settings for the job */
|
|
25
|
-
export declare class UpdateJobSettingsEndpoint extends PostApiEndpoint<UpdateJobSettingsRequest, UpdateJobSettingsResult> {
|
|
26
|
-
description: string;
|
|
27
|
-
withAuth: boolean;
|
|
28
|
-
endpointUrl: (opts: UpdateJobSettingsRequest) => string;
|
|
29
|
-
body: (payload: UpdateJobSettingsRequest) => string;
|
|
30
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
3
|
-
var __extends = (this && this.__extends) || (function () {
|
|
4
|
-
var extendStatics = function (d, b) {
|
|
5
|
-
extendStatics = Object.setPrototypeOf ||
|
|
6
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
7
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
8
|
-
return extendStatics(d, b);
|
|
9
|
-
};
|
|
10
|
-
return function (d, b) {
|
|
11
|
-
if (typeof b !== "function" && b !== null)
|
|
12
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13
|
-
extendStatics(d, b);
|
|
14
|
-
function __() { this.constructor = d; }
|
|
15
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16
|
-
};
|
|
17
|
-
})();
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.UpdateJobSettingsEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Updates settings for the job */
|
|
22
|
-
var UpdateJobSettingsEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(UpdateJobSettingsEndpoint, _super);
|
|
24
|
-
function UpdateJobSettingsEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Updates settings for the job';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/jobs/" + opts.parameters.jobId + "/settings";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function (payload) { return JSON.stringify(payload.data); };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return UpdateJobSettingsEndpoint;
|
|
35
|
-
}(api_endpoint_1.PostApiEndpoint));
|
|
36
|
-
exports.UpdateJobSettingsEndpoint = UpdateJobSettingsEndpoint;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../api-endpoint';
|
|
3
|
-
export declare type UpdateRegistrycredentialsResult = any;
|
|
4
|
-
export declare type UpdateRegistrycredentialsCall = (opts: UpdateRegistrycredentialsRequest) => Promise<ApiCallResponse<UpdateRegistrycredentialsResult>>;
|
|
5
|
-
export declare type UpdateRegistrycredentialsRequest = {
|
|
6
|
-
parameters: UpdateRegistrycredentialsParameters;
|
|
7
|
-
data: UpdateRegistrycredentialsData;
|
|
8
|
-
};
|
|
9
|
-
export declare type UpdateRegistrycredentialsParameters = {
|
|
10
|
-
/** ID of the registry credential */ 'credentialId': string;
|
|
11
|
-
};
|
|
12
|
-
export declare type UpdateRegistrycredentialsData = {
|
|
13
|
-
/** Description of the credentials. Example: "This is a set of saved credentials." */
|
|
14
|
-
'description'?: string;
|
|
15
|
-
/** Data about whether the credentials are restricted to certain projects. */
|
|
16
|
-
'restrictions'?: {
|
|
17
|
-
/** Whether the credentials are restricted to specific projects. Example: true */
|
|
18
|
-
'restricted': boolean;
|
|
19
|
-
/** An array of projects the credentials are restricted to, if applicable. */
|
|
20
|
-
'projects'?: string[];
|
|
21
|
-
};
|
|
22
|
-
/** The registry credential data to save. Example: {"auths":{"https://index.docker.io/v1/":{"auth":"[YOUR AUTH KEY]"}}} */
|
|
23
|
-
'data'?: any;
|
|
24
|
-
};
|
|
25
|
-
/** Updates a set of registry credential data. */
|
|
26
|
-
export declare class UpdateRegistrycredentialsEndpoint extends PostApiEndpoint<UpdateRegistrycredentialsRequest, UpdateRegistrycredentialsResult> {
|
|
27
|
-
description: string;
|
|
28
|
-
withAuth: boolean;
|
|
29
|
-
endpointUrl: (opts: UpdateRegistrycredentialsRequest) => string;
|
|
30
|
-
body: (payload: UpdateRegistrycredentialsRequest) => string;
|
|
31
|
-
}
|