@quantcdn/quant-client 3.0.4 → 4.1.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 +147 -18
- package/api.ts +26156 -0
- package/base.ts +89 -0
- package/common.ts +150 -0
- package/configuration.ts +115 -0
- package/dist/api.d.ts +18714 -2
- package/dist/api.js +13862 -16
- package/dist/base.d.ts +66 -0
- package/dist/base.js +68 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +161 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +44 -0
- package/dist/esm/api.d.ts +18714 -0
- package/dist/esm/api.js +13756 -0
- package/dist/esm/base.d.ts +66 -0
- package/dist/esm/base.js +63 -0
- package/dist/esm/common.d.ts +65 -0
- package/dist/esm/common.js +149 -0
- package/dist/esm/configuration.d.ts +91 -0
- package/dist/esm/configuration.js +40 -0
- package/dist/esm/examples/basic-usage.d.ts +4 -0
- package/dist/esm/examples/basic-usage.js +93 -0
- package/dist/esm/index.d.ts +13 -0
- package/dist/esm/index.js +15 -0
- package/dist/examples/basic-usage.d.ts +4 -0
- package/dist/examples/basic-usage.js +95 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/index.ts +18 -0
- package/package.json +44 -22
- package/tsconfig.json +20 -0
- package/dist/api/apis.d.ts +0 -32
- package/dist/api/apis.js +0 -50
- package/dist/api/applicationsApi.d.ts +0 -104
- package/dist/api/applicationsApi.js +0 -431
- package/dist/api/backupManagementApi.d.ts +0 -112
- package/dist/api/backupManagementApi.js +0 -464
- package/dist/api/commandsApi.d.ts +0 -80
- package/dist/api/commandsApi.js +0 -316
- package/dist/api/composeApi.d.ts +0 -67
- package/dist/api/composeApi.js +0 -240
- package/dist/api/containersApi.d.ts +0 -67
- package/dist/api/containersApi.js +0 -236
- package/dist/api/cronApi.d.ts +0 -151
- package/dist/api/cronApi.js +0 -681
- package/dist/api/environmentsApi.d.ts +0 -194
- package/dist/api/environmentsApi.js +0 -869
- package/dist/api/sSHAccessApi.d.ts +0 -50
- package/dist/api/sSHAccessApi.js +0 -162
- package/dist/api/scalingPolicyApi.d.ts +0 -82
- package/dist/api/scalingPolicyApi.js +0 -307
- package/dist/api/variablesApi.d.ts +0 -83
- package/dist/api/variablesApi.js +0 -313
- package/dist/api/volumesApi.d.ts +0 -97
- package/dist/api/volumesApi.js +0 -405
- package/dist/model/application.d.ts +0 -38
- package/dist/model/application.js +0 -93
- package/dist/model/command.d.ts +0 -34
- package/dist/model/command.js +0 -73
- package/dist/model/compose.d.ts +0 -32
- package/dist/model/compose.js +0 -58
- package/dist/model/configuration.d.ts +0 -26
- package/dist/model/configuration.js +0 -30
- package/dist/model/container.d.ts +0 -75
- package/dist/model/container.js +0 -121
- package/dist/model/containerDependsOnInner.d.ts +0 -40
- package/dist/model/containerDependsOnInner.js +0 -42
- package/dist/model/containerEnvironmentInner.d.ts +0 -32
- package/dist/model/containerEnvironmentInner.js +0 -33
- package/dist/model/containerHealthCheck.d.ts +0 -47
- package/dist/model/containerHealthCheck.js +0 -65
- package/dist/model/containerImageReference.d.ts +0 -38
- package/dist/model/containerImageReference.js +0 -40
- package/dist/model/containerMountPointsInner.d.ts +0 -33
- package/dist/model/containerMountPointsInner.js +0 -41
- package/dist/model/containerSecretsInner.d.ts +0 -32
- package/dist/model/containerSecretsInner.js +0 -33
- package/dist/model/createApplicationRequest.d.ts +0 -28
- package/dist/model/createApplicationRequest.js +0 -43
- package/dist/model/createBackup202Response.d.ts +0 -27
- package/dist/model/createBackup202Response.js +0 -38
- package/dist/model/createBackupRequest.d.ts +0 -32
- package/dist/model/createBackupRequest.js +0 -33
- package/dist/model/createCommandRequest.d.ts +0 -25
- package/dist/model/createCommandRequest.js +0 -28
- package/dist/model/createCronJob422Response.d.ts +0 -26
- package/dist/model/createCronJob422Response.js +0 -33
- package/dist/model/createCronJobRequest.d.ts +0 -30
- package/dist/model/createCronJobRequest.js +0 -56
- package/dist/model/createEnvironmentRequest.d.ts +0 -34
- package/dist/model/createEnvironmentRequest.js +0 -53
- package/dist/model/cron.d.ts +0 -27
- package/dist/model/cron.js +0 -38
- package/dist/model/cronRun.d.ts +0 -48
- package/dist/model/cronRun.js +0 -89
- package/dist/model/deleteBackup200Response.d.ts +0 -26
- package/dist/model/deleteBackup200Response.js +0 -33
- package/dist/model/downloadBackup200Response.d.ts +0 -36
- package/dist/model/downloadBackup200Response.js +0 -38
- package/dist/model/environment.d.ts +0 -45
- package/dist/model/environment.js +0 -103
- package/dist/model/getEcrLoginCredentials200Response.d.ts +0 -28
- package/dist/model/getEcrLoginCredentials200Response.js +0 -43
- package/dist/model/getScalingPolicies200Response.d.ts +0 -26
- package/dist/model/getScalingPolicies200Response.js +0 -28
- package/dist/model/getSshAccessCredentials200Response.d.ts +0 -34
- package/dist/model/getSshAccessCredentials200Response.js +0 -68
- package/dist/model/getSshAccessCredentials200ResponseCredentials.d.ts +0 -28
- package/dist/model/getSshAccessCredentials200ResponseCredentials.js +0 -43
- package/dist/model/listBackups200Response.d.ts +0 -32
- package/dist/model/listBackups200Response.js +0 -43
- package/dist/model/listBackups200ResponseBackupsInner.d.ts +0 -37
- package/dist/model/listBackups200ResponseBackupsInner.js +0 -88
- package/dist/model/listBackups422Response.d.ts +0 -25
- package/dist/model/listBackups422Response.js +0 -28
- package/dist/model/models.d.ts +0 -89
- package/dist/model/models.js +0 -387
- package/dist/model/scalingPolicy.d.ts +0 -35
- package/dist/model/scalingPolicy.js +0 -51
- package/dist/model/syncOperation.d.ts +0 -31
- package/dist/model/syncOperation.js +0 -58
- package/dist/model/syncToEnvironmentRequest.d.ts +0 -25
- package/dist/model/syncToEnvironmentRequest.js +0 -28
- package/dist/model/updateComposeRequest.d.ts +0 -26
- package/dist/model/updateComposeRequest.js +0 -28
- package/dist/model/updateCronJobRequest.d.ts +0 -29
- package/dist/model/updateCronJobRequest.js +0 -48
- package/dist/model/updateEnvironmentComposeRequest.d.ts +0 -26
- package/dist/model/updateEnvironmentComposeRequest.js +0 -28
- package/dist/model/updateEnvironmentRequest.d.ts +0 -34
- package/dist/model/updateEnvironmentRequest.js +0 -38
- package/dist/model/updateEnvironmentStateRequest.d.ts +0 -26
- package/dist/model/updateEnvironmentStateRequest.js +0 -33
- package/dist/model/updateEnvironmentVariableRequest.d.ts +0 -25
- package/dist/model/updateEnvironmentVariableRequest.js +0 -28
- package/dist/model/validateCompose200Response.d.ts +0 -33
- package/dist/model/validateCompose200Response.js +0 -38
- package/dist/model/validateCompose422Response.d.ts +0 -25
- package/dist/model/validateCompose422Response.js +0 -28
- package/dist/model/validateComposeRequest.d.ts +0 -36
- package/dist/model/validateComposeRequest.js +0 -38
- package/dist/model/variable.d.ts +0 -26
- package/dist/model/variable.js +0 -33
- package/dist/model/volume.d.ts +0 -32
- package/dist/model/volume.js +0 -63
package/dist/api/volumesApi.js
DELETED
|
@@ -1,405 +0,0 @@
|
|
|
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.VolumesApi = exports.VolumesApiApiKeys = 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 VolumesApiApiKeys;
|
|
35
|
-
(function (VolumesApiApiKeys) {
|
|
36
|
-
})(VolumesApiApiKeys = exports.VolumesApiApiKeys || (exports.VolumesApiApiKeys = {}));
|
|
37
|
-
class VolumesApi {
|
|
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[VolumesApiApiKeys[key]].apiKey = value;
|
|
77
|
-
}
|
|
78
|
-
addInterceptor(interceptor) {
|
|
79
|
-
this.interceptors.push(interceptor);
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
*
|
|
83
|
-
* @summary Create a new volume
|
|
84
|
-
* @param organisation The organisation ID
|
|
85
|
-
* @param application The application ID
|
|
86
|
-
* @param environment The environment ID
|
|
87
|
-
*/
|
|
88
|
-
createVolume(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}/volumes'
|
|
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
|
-
const produces = ['application/json'];
|
|
97
|
-
// give precedence to 'application/json'
|
|
98
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
99
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
100
|
-
}
|
|
101
|
-
else {
|
|
102
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
103
|
-
}
|
|
104
|
-
let localVarFormParams = {};
|
|
105
|
-
// verify required parameter 'organisation' is not null or undefined
|
|
106
|
-
if (organisation === null || organisation === undefined) {
|
|
107
|
-
throw new Error('Required parameter organisation was null or undefined when calling createVolume.');
|
|
108
|
-
}
|
|
109
|
-
// verify required parameter 'application' is not null or undefined
|
|
110
|
-
if (application === null || application === undefined) {
|
|
111
|
-
throw new Error('Required parameter application was null or undefined when calling createVolume.');
|
|
112
|
-
}
|
|
113
|
-
// verify required parameter 'environment' is not null or undefined
|
|
114
|
-
if (environment === null || environment === undefined) {
|
|
115
|
-
throw new Error('Required parameter environment was null or undefined when calling createVolume.');
|
|
116
|
-
}
|
|
117
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
118
|
-
let localVarUseFormData = false;
|
|
119
|
-
let localVarRequestOptions = {
|
|
120
|
-
method: 'POST',
|
|
121
|
-
qs: localVarQueryParameters,
|
|
122
|
-
headers: localVarHeaderParams,
|
|
123
|
-
uri: localVarPath,
|
|
124
|
-
useQuerystring: this._useQuerystring,
|
|
125
|
-
json: true,
|
|
126
|
-
};
|
|
127
|
-
let authenticationPromise = Promise.resolve();
|
|
128
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
129
|
-
let interceptorPromise = authenticationPromise;
|
|
130
|
-
for (const interceptor of this.interceptors) {
|
|
131
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
132
|
-
}
|
|
133
|
-
return interceptorPromise.then(() => {
|
|
134
|
-
if (Object.keys(localVarFormParams).length) {
|
|
135
|
-
if (localVarUseFormData) {
|
|
136
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
137
|
-
}
|
|
138
|
-
else {
|
|
139
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
return new Promise((resolve, reject) => {
|
|
143
|
-
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
144
|
-
if (error) {
|
|
145
|
-
reject(error);
|
|
146
|
-
}
|
|
147
|
-
else {
|
|
148
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
149
|
-
body = models_1.ObjectSerializer.deserialize(body, "Volume");
|
|
150
|
-
resolve({ response: response, body: body });
|
|
151
|
-
}
|
|
152
|
-
else {
|
|
153
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
});
|
|
158
|
-
});
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
*
|
|
163
|
-
* @summary Delete a volume
|
|
164
|
-
* @param organisation The organisation ID
|
|
165
|
-
* @param application The application ID
|
|
166
|
-
* @param environment The environment ID
|
|
167
|
-
* @param volume The volume ID
|
|
168
|
-
*/
|
|
169
|
-
deleteVolume(organisation, application, environment, volume, options = { headers: {} }) {
|
|
170
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
171
|
-
const localVarPath = this.basePath + '/organisations/{organisation}/applications/{application}/environments/{environment}/volumes/{volume}'
|
|
172
|
-
.replace('{' + 'organisation' + '}', encodeURIComponent(String(organisation)))
|
|
173
|
-
.replace('{' + 'application' + '}', encodeURIComponent(String(application)))
|
|
174
|
-
.replace('{' + 'environment' + '}', encodeURIComponent(String(environment)))
|
|
175
|
-
.replace('{' + 'volume' + '}', encodeURIComponent(String(volume)));
|
|
176
|
-
let localVarQueryParameters = {};
|
|
177
|
-
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
178
|
-
let localVarFormParams = {};
|
|
179
|
-
// verify required parameter 'organisation' is not null or undefined
|
|
180
|
-
if (organisation === null || organisation === undefined) {
|
|
181
|
-
throw new Error('Required parameter organisation was null or undefined when calling deleteVolume.');
|
|
182
|
-
}
|
|
183
|
-
// verify required parameter 'application' is not null or undefined
|
|
184
|
-
if (application === null || application === undefined) {
|
|
185
|
-
throw new Error('Required parameter application was null or undefined when calling deleteVolume.');
|
|
186
|
-
}
|
|
187
|
-
// verify required parameter 'environment' is not null or undefined
|
|
188
|
-
if (environment === null || environment === undefined) {
|
|
189
|
-
throw new Error('Required parameter environment was null or undefined when calling deleteVolume.');
|
|
190
|
-
}
|
|
191
|
-
// verify required parameter 'volume' is not null or undefined
|
|
192
|
-
if (volume === null || volume === undefined) {
|
|
193
|
-
throw new Error('Required parameter volume was null or undefined when calling deleteVolume.');
|
|
194
|
-
}
|
|
195
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
196
|
-
let localVarUseFormData = false;
|
|
197
|
-
let localVarRequestOptions = {
|
|
198
|
-
method: 'DELETE',
|
|
199
|
-
qs: localVarQueryParameters,
|
|
200
|
-
headers: localVarHeaderParams,
|
|
201
|
-
uri: localVarPath,
|
|
202
|
-
useQuerystring: this._useQuerystring,
|
|
203
|
-
json: true,
|
|
204
|
-
};
|
|
205
|
-
let authenticationPromise = Promise.resolve();
|
|
206
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
207
|
-
let interceptorPromise = authenticationPromise;
|
|
208
|
-
for (const interceptor of this.interceptors) {
|
|
209
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
210
|
-
}
|
|
211
|
-
return interceptorPromise.then(() => {
|
|
212
|
-
if (Object.keys(localVarFormParams).length) {
|
|
213
|
-
if (localVarUseFormData) {
|
|
214
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
215
|
-
}
|
|
216
|
-
else {
|
|
217
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
return new Promise((resolve, reject) => {
|
|
221
|
-
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
222
|
-
if (error) {
|
|
223
|
-
reject(error);
|
|
224
|
-
}
|
|
225
|
-
else {
|
|
226
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
227
|
-
resolve({ response: response, body: body });
|
|
228
|
-
}
|
|
229
|
-
else {
|
|
230
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
});
|
|
234
|
-
});
|
|
235
|
-
});
|
|
236
|
-
});
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
*
|
|
240
|
-
* @summary Get a volume
|
|
241
|
-
* @param organisation The organisation ID
|
|
242
|
-
* @param application The application ID
|
|
243
|
-
* @param environment The environment ID
|
|
244
|
-
* @param volume The volume ID
|
|
245
|
-
*/
|
|
246
|
-
getVolume(organisation, application, environment, volume, options = { headers: {} }) {
|
|
247
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
248
|
-
const localVarPath = this.basePath + '/organisations/{organisation}/applications/{application}/environments/{environment}/volumes/{volume}'
|
|
249
|
-
.replace('{' + 'organisation' + '}', encodeURIComponent(String(organisation)))
|
|
250
|
-
.replace('{' + 'application' + '}', encodeURIComponent(String(application)))
|
|
251
|
-
.replace('{' + 'environment' + '}', encodeURIComponent(String(environment)))
|
|
252
|
-
.replace('{' + 'volume' + '}', encodeURIComponent(String(volume)));
|
|
253
|
-
let localVarQueryParameters = {};
|
|
254
|
-
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
255
|
-
const produces = ['application/json'];
|
|
256
|
-
// give precedence to 'application/json'
|
|
257
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
258
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
259
|
-
}
|
|
260
|
-
else {
|
|
261
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
262
|
-
}
|
|
263
|
-
let localVarFormParams = {};
|
|
264
|
-
// verify required parameter 'organisation' is not null or undefined
|
|
265
|
-
if (organisation === null || organisation === undefined) {
|
|
266
|
-
throw new Error('Required parameter organisation was null or undefined when calling getVolume.');
|
|
267
|
-
}
|
|
268
|
-
// verify required parameter 'application' is not null or undefined
|
|
269
|
-
if (application === null || application === undefined) {
|
|
270
|
-
throw new Error('Required parameter application was null or undefined when calling getVolume.');
|
|
271
|
-
}
|
|
272
|
-
// verify required parameter 'environment' is not null or undefined
|
|
273
|
-
if (environment === null || environment === undefined) {
|
|
274
|
-
throw new Error('Required parameter environment was null or undefined when calling getVolume.');
|
|
275
|
-
}
|
|
276
|
-
// verify required parameter 'volume' is not null or undefined
|
|
277
|
-
if (volume === null || volume === undefined) {
|
|
278
|
-
throw new Error('Required parameter volume was null or undefined when calling getVolume.');
|
|
279
|
-
}
|
|
280
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
281
|
-
let localVarUseFormData = false;
|
|
282
|
-
let localVarRequestOptions = {
|
|
283
|
-
method: 'GET',
|
|
284
|
-
qs: localVarQueryParameters,
|
|
285
|
-
headers: localVarHeaderParams,
|
|
286
|
-
uri: localVarPath,
|
|
287
|
-
useQuerystring: this._useQuerystring,
|
|
288
|
-
json: true,
|
|
289
|
-
};
|
|
290
|
-
let authenticationPromise = Promise.resolve();
|
|
291
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
292
|
-
let interceptorPromise = authenticationPromise;
|
|
293
|
-
for (const interceptor of this.interceptors) {
|
|
294
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
295
|
-
}
|
|
296
|
-
return interceptorPromise.then(() => {
|
|
297
|
-
if (Object.keys(localVarFormParams).length) {
|
|
298
|
-
if (localVarUseFormData) {
|
|
299
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
300
|
-
}
|
|
301
|
-
else {
|
|
302
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
return new Promise((resolve, reject) => {
|
|
306
|
-
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
307
|
-
if (error) {
|
|
308
|
-
reject(error);
|
|
309
|
-
}
|
|
310
|
-
else {
|
|
311
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
312
|
-
body = models_1.ObjectSerializer.deserialize(body, "Volume");
|
|
313
|
-
resolve({ response: response, body: body });
|
|
314
|
-
}
|
|
315
|
-
else {
|
|
316
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
});
|
|
320
|
-
});
|
|
321
|
-
});
|
|
322
|
-
});
|
|
323
|
-
}
|
|
324
|
-
/**
|
|
325
|
-
*
|
|
326
|
-
* @summary Get all volumes for an environment
|
|
327
|
-
* @param organisation The organisation ID
|
|
328
|
-
* @param application The application ID
|
|
329
|
-
* @param environment The environment ID
|
|
330
|
-
*/
|
|
331
|
-
listVolumes(organisation, application, environment, options = { headers: {} }) {
|
|
332
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
333
|
-
const localVarPath = this.basePath + '/organisations/{organisation}/applications/{application}/environments/{environment}/volumes'
|
|
334
|
-
.replace('{' + 'organisation' + '}', encodeURIComponent(String(organisation)))
|
|
335
|
-
.replace('{' + 'application' + '}', encodeURIComponent(String(application)))
|
|
336
|
-
.replace('{' + 'environment' + '}', encodeURIComponent(String(environment)));
|
|
337
|
-
let localVarQueryParameters = {};
|
|
338
|
-
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
339
|
-
const produces = ['application/json'];
|
|
340
|
-
// give precedence to 'application/json'
|
|
341
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
342
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
343
|
-
}
|
|
344
|
-
else {
|
|
345
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
346
|
-
}
|
|
347
|
-
let localVarFormParams = {};
|
|
348
|
-
// verify required parameter 'organisation' is not null or undefined
|
|
349
|
-
if (organisation === null || organisation === undefined) {
|
|
350
|
-
throw new Error('Required parameter organisation was null or undefined when calling listVolumes.');
|
|
351
|
-
}
|
|
352
|
-
// verify required parameter 'application' is not null or undefined
|
|
353
|
-
if (application === null || application === undefined) {
|
|
354
|
-
throw new Error('Required parameter application was null or undefined when calling listVolumes.');
|
|
355
|
-
}
|
|
356
|
-
// verify required parameter 'environment' is not null or undefined
|
|
357
|
-
if (environment === null || environment === undefined) {
|
|
358
|
-
throw new Error('Required parameter environment was null or undefined when calling listVolumes.');
|
|
359
|
-
}
|
|
360
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
361
|
-
let localVarUseFormData = false;
|
|
362
|
-
let localVarRequestOptions = {
|
|
363
|
-
method: 'GET',
|
|
364
|
-
qs: localVarQueryParameters,
|
|
365
|
-
headers: localVarHeaderParams,
|
|
366
|
-
uri: localVarPath,
|
|
367
|
-
useQuerystring: this._useQuerystring,
|
|
368
|
-
json: true,
|
|
369
|
-
};
|
|
370
|
-
let authenticationPromise = Promise.resolve();
|
|
371
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
372
|
-
let interceptorPromise = authenticationPromise;
|
|
373
|
-
for (const interceptor of this.interceptors) {
|
|
374
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
375
|
-
}
|
|
376
|
-
return interceptorPromise.then(() => {
|
|
377
|
-
if (Object.keys(localVarFormParams).length) {
|
|
378
|
-
if (localVarUseFormData) {
|
|
379
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
380
|
-
}
|
|
381
|
-
else {
|
|
382
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
return new Promise((resolve, reject) => {
|
|
386
|
-
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
387
|
-
if (error) {
|
|
388
|
-
reject(error);
|
|
389
|
-
}
|
|
390
|
-
else {
|
|
391
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
392
|
-
body = models_1.ObjectSerializer.deserialize(body, "Volume");
|
|
393
|
-
resolve({ response: response, body: body });
|
|
394
|
-
}
|
|
395
|
-
else {
|
|
396
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
});
|
|
400
|
-
});
|
|
401
|
-
});
|
|
402
|
-
});
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
exports.VolumesApi = VolumesApi;
|
|
@@ -1,38 +0,0 @@
|
|
|
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
|
-
export declare class Application {
|
|
13
|
-
'appName': string;
|
|
14
|
-
'organisation': string;
|
|
15
|
-
'database'?: object;
|
|
16
|
-
'filesystem'?: object;
|
|
17
|
-
'composeDefinition'?: object;
|
|
18
|
-
'status'?: object;
|
|
19
|
-
'deploymentInformation'?: object;
|
|
20
|
-
'imageReference'?: object;
|
|
21
|
-
'containerNames'?: Array<string>;
|
|
22
|
-
'minCapacity'?: number;
|
|
23
|
-
'maxCapacity'?: number;
|
|
24
|
-
'desiredCount'?: object;
|
|
25
|
-
'runningCount'?: object;
|
|
26
|
-
'environments'?: object;
|
|
27
|
-
static discriminator: string | undefined;
|
|
28
|
-
static attributeTypeMap: Array<{
|
|
29
|
-
name: string;
|
|
30
|
-
baseName: string;
|
|
31
|
-
type: string;
|
|
32
|
-
}>;
|
|
33
|
-
static getAttributeTypeMap(): {
|
|
34
|
-
name: string;
|
|
35
|
-
baseName: string;
|
|
36
|
-
type: string;
|
|
37
|
-
}[];
|
|
38
|
-
}
|
|
@@ -1,93 +0,0 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.Application = void 0;
|
|
15
|
-
class Application {
|
|
16
|
-
static getAttributeTypeMap() {
|
|
17
|
-
return Application.attributeTypeMap;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.Application = Application;
|
|
21
|
-
Application.discriminator = undefined;
|
|
22
|
-
Application.attributeTypeMap = [
|
|
23
|
-
{
|
|
24
|
-
"name": "appName",
|
|
25
|
-
"baseName": "appName",
|
|
26
|
-
"type": "string"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "organisation",
|
|
30
|
-
"baseName": "organisation",
|
|
31
|
-
"type": "string"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"name": "database",
|
|
35
|
-
"baseName": "database",
|
|
36
|
-
"type": "object"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"name": "filesystem",
|
|
40
|
-
"baseName": "filesystem",
|
|
41
|
-
"type": "object"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"name": "composeDefinition",
|
|
45
|
-
"baseName": "composeDefinition",
|
|
46
|
-
"type": "object"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"name": "status",
|
|
50
|
-
"baseName": "status",
|
|
51
|
-
"type": "object"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"name": "deploymentInformation",
|
|
55
|
-
"baseName": "deploymentInformation",
|
|
56
|
-
"type": "object"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"name": "imageReference",
|
|
60
|
-
"baseName": "imageReference",
|
|
61
|
-
"type": "object"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "containerNames",
|
|
65
|
-
"baseName": "containerNames",
|
|
66
|
-
"type": "Array<string>"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"name": "minCapacity",
|
|
70
|
-
"baseName": "minCapacity",
|
|
71
|
-
"type": "number"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"name": "maxCapacity",
|
|
75
|
-
"baseName": "maxCapacity",
|
|
76
|
-
"type": "number"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"name": "desiredCount",
|
|
80
|
-
"baseName": "desiredCount",
|
|
81
|
-
"type": "object"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"name": "runningCount",
|
|
85
|
-
"baseName": "runningCount",
|
|
86
|
-
"type": "object"
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"name": "environments",
|
|
90
|
-
"baseName": "environments",
|
|
91
|
-
"type": "object"
|
|
92
|
-
}
|
|
93
|
-
];
|
package/dist/model/command.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
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
|
-
export declare class Command {
|
|
13
|
-
'runId'?: string;
|
|
14
|
-
'runType'?: string;
|
|
15
|
-
'command'?: string;
|
|
16
|
-
'status'?: string;
|
|
17
|
-
'startTime'?: string;
|
|
18
|
-
'endTime'?: string;
|
|
19
|
-
'exitCode'?: number;
|
|
20
|
-
'output'?: Array<string>;
|
|
21
|
-
'scheduleName'?: string;
|
|
22
|
-
'targetContainerName'?: string;
|
|
23
|
-
static discriminator: string | undefined;
|
|
24
|
-
static attributeTypeMap: Array<{
|
|
25
|
-
name: string;
|
|
26
|
-
baseName: string;
|
|
27
|
-
type: string;
|
|
28
|
-
}>;
|
|
29
|
-
static getAttributeTypeMap(): {
|
|
30
|
-
name: string;
|
|
31
|
-
baseName: string;
|
|
32
|
-
type: string;
|
|
33
|
-
}[];
|
|
34
|
-
}
|
package/dist/model/command.js
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.Command = void 0;
|
|
15
|
-
class Command {
|
|
16
|
-
static getAttributeTypeMap() {
|
|
17
|
-
return Command.attributeTypeMap;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.Command = Command;
|
|
21
|
-
Command.discriminator = undefined;
|
|
22
|
-
Command.attributeTypeMap = [
|
|
23
|
-
{
|
|
24
|
-
"name": "runId",
|
|
25
|
-
"baseName": "runId",
|
|
26
|
-
"type": "string"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "runType",
|
|
30
|
-
"baseName": "runType",
|
|
31
|
-
"type": "string"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"name": "command",
|
|
35
|
-
"baseName": "command",
|
|
36
|
-
"type": "string"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"name": "status",
|
|
40
|
-
"baseName": "status",
|
|
41
|
-
"type": "string"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"name": "startTime",
|
|
45
|
-
"baseName": "startTime",
|
|
46
|
-
"type": "string"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"name": "endTime",
|
|
50
|
-
"baseName": "endTime",
|
|
51
|
-
"type": "string"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"name": "exitCode",
|
|
55
|
-
"baseName": "exitCode",
|
|
56
|
-
"type": "number"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"name": "output",
|
|
60
|
-
"baseName": "output",
|
|
61
|
-
"type": "Array<string>"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "scheduleName",
|
|
65
|
-
"baseName": "scheduleName",
|
|
66
|
-
"type": "string"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"name": "targetContainerName",
|
|
70
|
-
"baseName": "targetContainerName",
|
|
71
|
-
"type": "string"
|
|
72
|
-
}
|
|
73
|
-
];
|
package/dist/model/compose.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
import { Container } from './container';
|
|
13
|
-
export declare class Compose {
|
|
14
|
-
'containers'?: Array<Container>;
|
|
15
|
-
'architecture'?: string;
|
|
16
|
-
'taskCpu'?: number;
|
|
17
|
-
'taskMemory'?: number;
|
|
18
|
-
'taskRoleArn'?: string;
|
|
19
|
-
'minCapacity'?: number;
|
|
20
|
-
'maxCapacity'?: number;
|
|
21
|
-
static discriminator: string | undefined;
|
|
22
|
-
static attributeTypeMap: Array<{
|
|
23
|
-
name: string;
|
|
24
|
-
baseName: string;
|
|
25
|
-
type: string;
|
|
26
|
-
}>;
|
|
27
|
-
static getAttributeTypeMap(): {
|
|
28
|
-
name: string;
|
|
29
|
-
baseName: string;
|
|
30
|
-
type: string;
|
|
31
|
-
}[];
|
|
32
|
-
}
|