@quantcdn/quant-client 2.0.12 → 3.0.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 +49 -72
- package/dist/api/apis.d.ts +30 -0
- package/dist/api/apis.js +48 -0
- package/dist/api/applicationsApi.d.ts +104 -0
- package/dist/api/applicationsApi.js +431 -0
- package/dist/api/commandsApi.d.ts +80 -0
- package/dist/api/commandsApi.js +316 -0
- package/dist/api/composeApi.d.ts +66 -0
- package/dist/api/composeApi.js +236 -0
- package/dist/api/containersApi.d.ts +67 -0
- package/dist/api/containersApi.js +236 -0
- package/dist/api/cronApi.d.ts +151 -0
- package/dist/api/cronApi.js +681 -0
- package/dist/api/environmentsApi.d.ts +194 -0
- package/dist/api/environmentsApi.js +861 -0
- package/dist/api/sSHAccessApi.d.ts +50 -0
- package/dist/api/sSHAccessApi.js +162 -0
- package/dist/api/scalingPolicyApi.d.ts +82 -0
- package/dist/api/scalingPolicyApi.js +307 -0
- package/dist/api/variablesApi.d.ts +83 -0
- package/dist/api/variablesApi.js +313 -0
- package/dist/api/volumesApi.d.ts +97 -0
- package/dist/api/volumesApi.js +405 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +19 -0
- package/dist/model/application.d.ts +38 -0
- package/dist/model/application.js +93 -0
- package/dist/model/command.d.ts +34 -0
- package/dist/model/command.js +73 -0
- package/dist/model/compose.d.ts +32 -0
- package/dist/model/compose.js +58 -0
- package/dist/model/configuration.d.ts +26 -0
- package/dist/model/configuration.js +30 -0
- package/dist/model/container.d.ts +38 -0
- package/dist/model/container.js +78 -0
- package/dist/model/containerEnvironmentInner.d.ts +26 -0
- package/dist/model/containerEnvironmentInner.js +33 -0
- package/dist/model/containerImageReference.d.ts +28 -0
- package/dist/model/containerImageReference.js +43 -0
- package/dist/model/containerMountPointsInner.d.ts +27 -0
- package/dist/model/containerMountPointsInner.js +38 -0
- package/dist/model/createApplicationRequest.d.ts +28 -0
- package/dist/model/createApplicationRequest.js +43 -0
- package/dist/model/createCommandRequest.d.ts +25 -0
- package/dist/model/createCommandRequest.js +28 -0
- package/dist/model/createCronJob422Response.d.ts +26 -0
- package/dist/model/createCronJob422Response.js +33 -0
- package/dist/model/createCronJobRequest.d.ts +30 -0
- package/dist/model/createCronJobRequest.js +56 -0
- package/dist/model/createEnvironmentRequest.d.ts +34 -0
- package/dist/model/createEnvironmentRequest.js +53 -0
- package/dist/model/cron.d.ts +27 -0
- package/dist/model/cron.js +38 -0
- package/dist/model/cronRun.d.ts +48 -0
- package/dist/model/cronRun.js +89 -0
- package/dist/model/environment.d.ts +45 -0
- package/dist/model/environment.js +103 -0
- package/dist/model/getEcrLoginCredentials200Response.d.ts +28 -0
- package/dist/model/getEcrLoginCredentials200Response.js +43 -0
- package/dist/model/getScalingPolicies200Response.d.ts +26 -0
- package/dist/model/getScalingPolicies200Response.js +28 -0
- package/dist/model/getSshAccessCredentials200Response.d.ts +34 -0
- package/dist/model/getSshAccessCredentials200Response.js +68 -0
- package/dist/model/getSshAccessCredentials200ResponseCredentials.d.ts +28 -0
- package/dist/model/getSshAccessCredentials200ResponseCredentials.js +43 -0
- package/dist/model/models.d.ts +78 -0
- package/dist/model/models.js +352 -0
- package/dist/model/scalingPolicy.d.ts +35 -0
- package/dist/model/scalingPolicy.js +51 -0
- package/dist/model/syncOperation.d.ts +31 -0
- package/dist/model/syncOperation.js +58 -0
- package/dist/model/syncToEnvironmentRequest.d.ts +25 -0
- package/dist/model/syncToEnvironmentRequest.js +28 -0
- package/dist/model/updateComposeRequest.d.ts +26 -0
- package/dist/model/updateComposeRequest.js +28 -0
- package/dist/model/updateCronJobRequest.d.ts +29 -0
- package/dist/model/updateCronJobRequest.js +48 -0
- package/dist/model/updateEnvironmentComposeRequest.d.ts +26 -0
- package/dist/model/updateEnvironmentComposeRequest.js +28 -0
- package/dist/model/updateEnvironmentRequest.d.ts +26 -0
- package/dist/model/updateEnvironmentRequest.js +28 -0
- package/dist/model/updateEnvironmentStateRequest.d.ts +26 -0
- package/dist/model/updateEnvironmentStateRequest.js +33 -0
- package/dist/model/updateEnvironmentVariableRequest.d.ts +25 -0
- package/dist/model/updateEnvironmentVariableRequest.js +28 -0
- package/dist/model/validateCompose200Response.d.ts +27 -0
- package/dist/model/validateCompose200Response.js +38 -0
- package/dist/model/validateComposeRequest.d.ts +25 -0
- package/dist/model/validateComposeRequest.js +28 -0
- package/dist/model/variable.d.ts +26 -0
- package/dist/model/variable.js +33 -0
- package/dist/model/volume.d.ts +32 -0
- package/dist/model/volume.js +63 -0
- package/package.json +21 -40
- package/dist/src/client.d.ts +0 -15
- package/dist/src/client.js +0 -380
- package/dist/src/index.d.ts +0 -2
- package/dist/src/index.js +0 -42
- package/dist/src/interfaces.d.ts +0 -34
- package/dist/src/interfaces.js +0 -2
- package/dist/src/response.d.ts +0 -15
- package/dist/src/response.js +0 -103
- package/dist/src/types.d.ts +0 -68
- package/dist/src/types.js +0 -8
- package/dist/tests/client.test.d.ts +0 -1
- package/dist/tests/client.test.js +0 -191
- package/dist/tests/response.test.d.ts +0 -1
- package/dist/tests/response.test.js +0 -133
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* QuantCloud API
|
|
4
|
+
* QuantCloud API
|
|
5
|
+
*
|
|
6
|
+
* The version of the OpenAPI document: 1.0.0
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* https://openapi-generator.tech
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
13
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
23
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.ContainersApi = exports.ContainersApiApiKeys = void 0;
|
|
27
|
+
const request_1 = __importDefault(require("request"));
|
|
28
|
+
const models_1 = require("../model/models");
|
|
29
|
+
const apis_1 = require("./apis");
|
|
30
|
+
let defaultBasePath = 'http://localhost';
|
|
31
|
+
// ===============================================
|
|
32
|
+
// This file is autogenerated - Please do not edit
|
|
33
|
+
// ===============================================
|
|
34
|
+
var ContainersApiApiKeys;
|
|
35
|
+
(function (ContainersApiApiKeys) {
|
|
36
|
+
})(ContainersApiApiKeys = exports.ContainersApiApiKeys || (exports.ContainersApiApiKeys = {}));
|
|
37
|
+
class ContainersApi {
|
|
38
|
+
constructor(basePathOrUsername, password, basePath) {
|
|
39
|
+
this._basePath = defaultBasePath;
|
|
40
|
+
this._defaultHeaders = {};
|
|
41
|
+
this._useQuerystring = false;
|
|
42
|
+
this.authentications = {
|
|
43
|
+
'default': new models_1.VoidAuth(),
|
|
44
|
+
};
|
|
45
|
+
this.interceptors = [];
|
|
46
|
+
if (password) {
|
|
47
|
+
if (basePath) {
|
|
48
|
+
this.basePath = basePath;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
if (basePathOrUsername) {
|
|
53
|
+
this.basePath = basePathOrUsername;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
set useQuerystring(value) {
|
|
58
|
+
this._useQuerystring = value;
|
|
59
|
+
}
|
|
60
|
+
set basePath(basePath) {
|
|
61
|
+
this._basePath = basePath;
|
|
62
|
+
}
|
|
63
|
+
set defaultHeaders(defaultHeaders) {
|
|
64
|
+
this._defaultHeaders = defaultHeaders;
|
|
65
|
+
}
|
|
66
|
+
get defaultHeaders() {
|
|
67
|
+
return this._defaultHeaders;
|
|
68
|
+
}
|
|
69
|
+
get basePath() {
|
|
70
|
+
return this._basePath;
|
|
71
|
+
}
|
|
72
|
+
setDefaultAuthentication(auth) {
|
|
73
|
+
this.authentications.default = auth;
|
|
74
|
+
}
|
|
75
|
+
setApiKey(key, value) {
|
|
76
|
+
this.authentications[ContainersApiApiKeys[key]].apiKey = value;
|
|
77
|
+
}
|
|
78
|
+
addInterceptor(interceptor) {
|
|
79
|
+
this.interceptors.push(interceptor);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @summary Get the containers in an environment
|
|
84
|
+
* @param organisation The organisation ID
|
|
85
|
+
* @param application The application ID
|
|
86
|
+
* @param environment The environment ID
|
|
87
|
+
*/
|
|
88
|
+
listContainers(organisation, application, environment, options = { headers: {} }) {
|
|
89
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
const localVarPath = this.basePath + '/organisations/{organisation}/applications/{application}/environments/{environment}/containers'
|
|
91
|
+
.replace('{' + 'organisation' + '}', encodeURIComponent(String(organisation)))
|
|
92
|
+
.replace('{' + 'application' + '}', encodeURIComponent(String(application)))
|
|
93
|
+
.replace('{' + 'environment' + '}', encodeURIComponent(String(environment)));
|
|
94
|
+
let localVarQueryParameters = {};
|
|
95
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
96
|
+
let localVarFormParams = {};
|
|
97
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
98
|
+
if (organisation === null || organisation === undefined) {
|
|
99
|
+
throw new Error('Required parameter organisation was null or undefined when calling listContainers.');
|
|
100
|
+
}
|
|
101
|
+
// verify required parameter 'application' is not null or undefined
|
|
102
|
+
if (application === null || application === undefined) {
|
|
103
|
+
throw new Error('Required parameter application was null or undefined when calling listContainers.');
|
|
104
|
+
}
|
|
105
|
+
// verify required parameter 'environment' is not null or undefined
|
|
106
|
+
if (environment === null || environment === undefined) {
|
|
107
|
+
throw new Error('Required parameter environment was null or undefined when calling listContainers.');
|
|
108
|
+
}
|
|
109
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
110
|
+
let localVarUseFormData = false;
|
|
111
|
+
let localVarRequestOptions = {
|
|
112
|
+
method: 'GET',
|
|
113
|
+
qs: localVarQueryParameters,
|
|
114
|
+
headers: localVarHeaderParams,
|
|
115
|
+
uri: localVarPath,
|
|
116
|
+
useQuerystring: this._useQuerystring,
|
|
117
|
+
json: true,
|
|
118
|
+
};
|
|
119
|
+
let authenticationPromise = Promise.resolve();
|
|
120
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
121
|
+
let interceptorPromise = authenticationPromise;
|
|
122
|
+
for (const interceptor of this.interceptors) {
|
|
123
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
124
|
+
}
|
|
125
|
+
return interceptorPromise.then(() => {
|
|
126
|
+
if (Object.keys(localVarFormParams).length) {
|
|
127
|
+
if (localVarUseFormData) {
|
|
128
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
return new Promise((resolve, reject) => {
|
|
135
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
136
|
+
if (error) {
|
|
137
|
+
reject(error);
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
141
|
+
resolve({ response: response, body: body });
|
|
142
|
+
}
|
|
143
|
+
else {
|
|
144
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
* @summary Update a container in an environment
|
|
155
|
+
* @param organisation The organisation ID
|
|
156
|
+
* @param application The application ID
|
|
157
|
+
* @param environment The environment ID
|
|
158
|
+
* @param container The container ID
|
|
159
|
+
* @param container2
|
|
160
|
+
*/
|
|
161
|
+
updateContainer(organisation, application, environment, container, container2, options = { headers: {} }) {
|
|
162
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
163
|
+
const localVarPath = this.basePath + '/organisations/{organisation}/applications/{application}/environments/{environment}/containers/{container}'
|
|
164
|
+
.replace('{' + 'organisation' + '}', encodeURIComponent(String(organisation)))
|
|
165
|
+
.replace('{' + 'application' + '}', encodeURIComponent(String(application)))
|
|
166
|
+
.replace('{' + 'environment' + '}', encodeURIComponent(String(environment)))
|
|
167
|
+
.replace('{' + 'container' + '}', encodeURIComponent(String(container)));
|
|
168
|
+
let localVarQueryParameters = {};
|
|
169
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
170
|
+
let localVarFormParams = {};
|
|
171
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
172
|
+
if (organisation === null || organisation === undefined) {
|
|
173
|
+
throw new Error('Required parameter organisation was null or undefined when calling updateContainer.');
|
|
174
|
+
}
|
|
175
|
+
// verify required parameter 'application' is not null or undefined
|
|
176
|
+
if (application === null || application === undefined) {
|
|
177
|
+
throw new Error('Required parameter application was null or undefined when calling updateContainer.');
|
|
178
|
+
}
|
|
179
|
+
// verify required parameter 'environment' is not null or undefined
|
|
180
|
+
if (environment === null || environment === undefined) {
|
|
181
|
+
throw new Error('Required parameter environment was null or undefined when calling updateContainer.');
|
|
182
|
+
}
|
|
183
|
+
// verify required parameter 'container' is not null or undefined
|
|
184
|
+
if (container === null || container === undefined) {
|
|
185
|
+
throw new Error('Required parameter container was null or undefined when calling updateContainer.');
|
|
186
|
+
}
|
|
187
|
+
// verify required parameter 'container2' is not null or undefined
|
|
188
|
+
if (container2 === null || container2 === undefined) {
|
|
189
|
+
throw new Error('Required parameter container2 was null or undefined when calling updateContainer.');
|
|
190
|
+
}
|
|
191
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
192
|
+
let localVarUseFormData = false;
|
|
193
|
+
let localVarRequestOptions = {
|
|
194
|
+
method: 'PUT',
|
|
195
|
+
qs: localVarQueryParameters,
|
|
196
|
+
headers: localVarHeaderParams,
|
|
197
|
+
uri: localVarPath,
|
|
198
|
+
useQuerystring: this._useQuerystring,
|
|
199
|
+
json: true,
|
|
200
|
+
body: models_1.ObjectSerializer.serialize(container2, "Container")
|
|
201
|
+
};
|
|
202
|
+
let authenticationPromise = Promise.resolve();
|
|
203
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
204
|
+
let interceptorPromise = authenticationPromise;
|
|
205
|
+
for (const interceptor of this.interceptors) {
|
|
206
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
207
|
+
}
|
|
208
|
+
return interceptorPromise.then(() => {
|
|
209
|
+
if (Object.keys(localVarFormParams).length) {
|
|
210
|
+
if (localVarUseFormData) {
|
|
211
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
return new Promise((resolve, reject) => {
|
|
218
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
219
|
+
if (error) {
|
|
220
|
+
reject(error);
|
|
221
|
+
}
|
|
222
|
+
else {
|
|
223
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
224
|
+
resolve({ response: response, body: body });
|
|
225
|
+
}
|
|
226
|
+
else {
|
|
227
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
});
|
|
232
|
+
});
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
exports.ContainersApi = ContainersApi;
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QuantCloud API
|
|
3
|
+
* QuantCloud API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/// <reference types="node" />
|
|
13
|
+
import http from 'http';
|
|
14
|
+
import { CreateCronJobRequest } from '../model/createCronJobRequest';
|
|
15
|
+
import { Cron } from '../model/cron';
|
|
16
|
+
import { CronRun } from '../model/cronRun';
|
|
17
|
+
import { UpdateCronJobRequest } from '../model/updateCronJobRequest';
|
|
18
|
+
import { Authentication, Interceptor } from '../model/models';
|
|
19
|
+
export declare enum CronApiApiKeys {
|
|
20
|
+
}
|
|
21
|
+
export declare class CronApi {
|
|
22
|
+
protected _basePath: string;
|
|
23
|
+
protected _defaultHeaders: any;
|
|
24
|
+
protected _useQuerystring: boolean;
|
|
25
|
+
protected authentications: {
|
|
26
|
+
default: Authentication;
|
|
27
|
+
};
|
|
28
|
+
protected interceptors: Interceptor[];
|
|
29
|
+
constructor(basePath?: string);
|
|
30
|
+
set useQuerystring(value: boolean);
|
|
31
|
+
set basePath(basePath: string);
|
|
32
|
+
set defaultHeaders(defaultHeaders: any);
|
|
33
|
+
get defaultHeaders(): any;
|
|
34
|
+
get basePath(): string;
|
|
35
|
+
setDefaultAuthentication(auth: Authentication): void;
|
|
36
|
+
setApiKey(key: CronApiApiKeys, value: string): void;
|
|
37
|
+
addInterceptor(interceptor: Interceptor): void;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @summary Create a new cron job
|
|
41
|
+
* @param organisation The organisation ID
|
|
42
|
+
* @param application The application ID
|
|
43
|
+
* @param environment The environment ID
|
|
44
|
+
* @param createCronJobRequest
|
|
45
|
+
*/
|
|
46
|
+
createCronJob(organisation: string, application: string, environment: string, createCronJobRequest: CreateCronJobRequest, options?: {
|
|
47
|
+
headers: {
|
|
48
|
+
[name: string]: string;
|
|
49
|
+
};
|
|
50
|
+
}): Promise<{
|
|
51
|
+
response: http.IncomingMessage;
|
|
52
|
+
body: Cron;
|
|
53
|
+
}>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @summary Delete a cron job
|
|
57
|
+
* @param organisation The organisation ID
|
|
58
|
+
* @param application The application ID
|
|
59
|
+
* @param environment The environment ID
|
|
60
|
+
* @param cron The cron job ID
|
|
61
|
+
*/
|
|
62
|
+
deleteCronJob(organisation: string, application: string, environment: string, cron: string, options?: {
|
|
63
|
+
headers: {
|
|
64
|
+
[name: string]: string;
|
|
65
|
+
};
|
|
66
|
+
}): Promise<{
|
|
67
|
+
response: http.IncomingMessage;
|
|
68
|
+
body?: any;
|
|
69
|
+
}>;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @summary Get a cron job
|
|
73
|
+
* @param organisation The organisation ID
|
|
74
|
+
* @param application The application ID
|
|
75
|
+
* @param environment The environment ID
|
|
76
|
+
* @param cron The cron job ID
|
|
77
|
+
*/
|
|
78
|
+
getCronJob(organisation: string, application: string, environment: string, cron: string, options?: {
|
|
79
|
+
headers: {
|
|
80
|
+
[name: string]: string;
|
|
81
|
+
};
|
|
82
|
+
}): Promise<{
|
|
83
|
+
response: http.IncomingMessage;
|
|
84
|
+
body: Cron;
|
|
85
|
+
}>;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @summary Get a cron run
|
|
89
|
+
* @param organisation The organisation ID
|
|
90
|
+
* @param application The application ID
|
|
91
|
+
* @param environment The environment ID
|
|
92
|
+
* @param cron The cron job ID
|
|
93
|
+
* @param run The cron run ID
|
|
94
|
+
*/
|
|
95
|
+
getCronRun(organisation: string, application: string, environment: string, cron: string, run: string, options?: {
|
|
96
|
+
headers: {
|
|
97
|
+
[name: string]: string;
|
|
98
|
+
};
|
|
99
|
+
}): Promise<{
|
|
100
|
+
response: http.IncomingMessage;
|
|
101
|
+
body: CronRun;
|
|
102
|
+
}>;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @summary Get all runs for a cron job
|
|
106
|
+
* @param organisation The organisation ID
|
|
107
|
+
* @param application The application ID
|
|
108
|
+
* @param environment The environment ID
|
|
109
|
+
* @param cron The cron job ID
|
|
110
|
+
*/
|
|
111
|
+
listCronJobRuns(organisation: string, application: string, environment: string, cron: string, options?: {
|
|
112
|
+
headers: {
|
|
113
|
+
[name: string]: string;
|
|
114
|
+
};
|
|
115
|
+
}): Promise<{
|
|
116
|
+
response: http.IncomingMessage;
|
|
117
|
+
body: Array<CronRun>;
|
|
118
|
+
}>;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @summary Get all cron jobs for an environment
|
|
122
|
+
* @param organisation The organisation ID
|
|
123
|
+
* @param application The application ID
|
|
124
|
+
* @param environment The environment ID
|
|
125
|
+
*/
|
|
126
|
+
listCronJobs(organisation: string, application: string, environment: string, options?: {
|
|
127
|
+
headers: {
|
|
128
|
+
[name: string]: string;
|
|
129
|
+
};
|
|
130
|
+
}): Promise<{
|
|
131
|
+
response: http.IncomingMessage;
|
|
132
|
+
body: Cron;
|
|
133
|
+
}>;
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* @summary Update a cron job
|
|
137
|
+
* @param organisation The organisation ID
|
|
138
|
+
* @param application The application ID
|
|
139
|
+
* @param environment The environment ID
|
|
140
|
+
* @param cron The cron job ID
|
|
141
|
+
* @param updateCronJobRequest
|
|
142
|
+
*/
|
|
143
|
+
updateCronJob(organisation: string, application: string, environment: string, cron: string, updateCronJobRequest: UpdateCronJobRequest, options?: {
|
|
144
|
+
headers: {
|
|
145
|
+
[name: string]: string;
|
|
146
|
+
};
|
|
147
|
+
}): Promise<{
|
|
148
|
+
response: http.IncomingMessage;
|
|
149
|
+
body: Cron;
|
|
150
|
+
}>;
|
|
151
|
+
}
|