@quantcdn/quant-client 3.0.0 → 3.0.2
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/api/apis.d.ts +3 -1
- package/dist/api/apis.js +3 -1
- package/dist/api/backupManagementApi.d.ts +106 -0
- package/dist/api/backupManagementApi.js +440 -0
- package/dist/api/sSHAccessApi.d.ts +3 -3
- package/dist/api/sSHAccessApi.js +3 -3
- package/dist/model/createBackup202Response.d.ts +27 -0
- package/dist/model/createBackup202Response.js +38 -0
- package/dist/model/createBackupRequest.d.ts +32 -0
- package/dist/model/createBackupRequest.js +33 -0
- package/dist/model/deleteBackup200Response.d.ts +26 -0
- package/dist/model/deleteBackup200Response.js +33 -0
- package/dist/model/downloadBackup200Response.d.ts +36 -0
- package/dist/model/downloadBackup200Response.js +38 -0
- package/dist/model/listBackups200Response.d.ts +28 -0
- package/dist/model/listBackups200Response.js +38 -0
- package/dist/model/listBackups200ResponseBackupsInner.d.ts +37 -0
- package/dist/model/listBackups200ResponseBackupsInner.js +88 -0
- package/dist/model/models.d.ts +6 -0
- package/dist/model/models.js +18 -0
- package/package.json +3 -3
package/dist/api/apis.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
export * from './applicationsApi';
|
|
3
3
|
import { ApplicationsApi } from './applicationsApi';
|
|
4
|
+
export * from './backupManagementApi';
|
|
5
|
+
import { BackupManagementApi } from './backupManagementApi';
|
|
4
6
|
export * from './commandsApi';
|
|
5
7
|
import { CommandsApi } from './commandsApi';
|
|
6
8
|
export * from './composeApi';
|
|
@@ -27,4 +29,4 @@ export declare class HttpError extends Error {
|
|
|
27
29
|
constructor(response: http.IncomingMessage, body: any, statusCode?: number | undefined);
|
|
28
30
|
}
|
|
29
31
|
export { RequestFile } from '../model/models';
|
|
30
|
-
export declare const APIS: (typeof ApplicationsApi | typeof CommandsApi | typeof ComposeApi | typeof ContainersApi | typeof CronApi | typeof EnvironmentsApi | typeof SSHAccessApi | typeof ScalingPolicyApi | typeof VariablesApi | typeof VolumesApi)[];
|
|
32
|
+
export declare const APIS: (typeof ApplicationsApi | typeof BackupManagementApi | typeof CommandsApi | typeof ComposeApi | typeof ContainersApi | typeof CronApi | typeof EnvironmentsApi | typeof SSHAccessApi | typeof ScalingPolicyApi | typeof VariablesApi | typeof VolumesApi)[];
|
package/dist/api/apis.js
CHANGED
|
@@ -17,6 +17,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
exports.APIS = exports.HttpError = void 0;
|
|
18
18
|
__exportStar(require("./applicationsApi"), exports);
|
|
19
19
|
const applicationsApi_1 = require("./applicationsApi");
|
|
20
|
+
__exportStar(require("./backupManagementApi"), exports);
|
|
21
|
+
const backupManagementApi_1 = require("./backupManagementApi");
|
|
20
22
|
__exportStar(require("./commandsApi"), exports);
|
|
21
23
|
const commandsApi_1 = require("./commandsApi");
|
|
22
24
|
__exportStar(require("./composeApi"), exports);
|
|
@@ -45,4 +47,4 @@ class HttpError extends Error {
|
|
|
45
47
|
}
|
|
46
48
|
}
|
|
47
49
|
exports.HttpError = HttpError;
|
|
48
|
-
exports.APIS = [applicationsApi_1.ApplicationsApi, commandsApi_1.CommandsApi, composeApi_1.ComposeApi, containersApi_1.ContainersApi, cronApi_1.CronApi, environmentsApi_1.EnvironmentsApi, sSHAccessApi_1.SSHAccessApi, scalingPolicyApi_1.ScalingPolicyApi, variablesApi_1.VariablesApi, volumesApi_1.VolumesApi];
|
|
50
|
+
exports.APIS = [applicationsApi_1.ApplicationsApi, backupManagementApi_1.BackupManagementApi, commandsApi_1.CommandsApi, composeApi_1.ComposeApi, containersApi_1.ContainersApi, cronApi_1.CronApi, environmentsApi_1.EnvironmentsApi, sSHAccessApi_1.SSHAccessApi, scalingPolicyApi_1.ScalingPolicyApi, variablesApi_1.VariablesApi, volumesApi_1.VolumesApi];
|
|
@@ -0,0 +1,106 @@
|
|
|
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 { CreateBackup202Response } from '../model/createBackup202Response';
|
|
15
|
+
import { CreateBackupRequest } from '../model/createBackupRequest';
|
|
16
|
+
import { DeleteBackup200Response } from '../model/deleteBackup200Response';
|
|
17
|
+
import { DownloadBackup200Response } from '../model/downloadBackup200Response';
|
|
18
|
+
import { ListBackups200Response } from '../model/listBackups200Response';
|
|
19
|
+
import { Authentication, Interceptor } from '../model/models';
|
|
20
|
+
export declare enum BackupManagementApiApiKeys {
|
|
21
|
+
}
|
|
22
|
+
export declare class BackupManagementApi {
|
|
23
|
+
protected _basePath: string;
|
|
24
|
+
protected _defaultHeaders: any;
|
|
25
|
+
protected _useQuerystring: boolean;
|
|
26
|
+
protected authentications: {
|
|
27
|
+
default: Authentication;
|
|
28
|
+
};
|
|
29
|
+
protected interceptors: Interceptor[];
|
|
30
|
+
constructor(basePath?: string);
|
|
31
|
+
set useQuerystring(value: boolean);
|
|
32
|
+
set basePath(basePath: string);
|
|
33
|
+
set defaultHeaders(defaultHeaders: any);
|
|
34
|
+
get defaultHeaders(): any;
|
|
35
|
+
get basePath(): string;
|
|
36
|
+
setDefaultAuthentication(auth: Authentication): void;
|
|
37
|
+
setApiKey(key: BackupManagementApiApiKeys, value: string): void;
|
|
38
|
+
addInterceptor(interceptor: Interceptor): void;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @summary Create a backup for an environment
|
|
42
|
+
* @param organisation The organisation ID
|
|
43
|
+
* @param application The application ID
|
|
44
|
+
* @param environment The environment ID
|
|
45
|
+
* @param type The backup type
|
|
46
|
+
* @param createBackupRequest
|
|
47
|
+
*/
|
|
48
|
+
createBackup(organisation: string, application: string, environment: string, type: 'database' | 'filesystem', createBackupRequest?: CreateBackupRequest, options?: {
|
|
49
|
+
headers: {
|
|
50
|
+
[name: string]: string;
|
|
51
|
+
};
|
|
52
|
+
}): Promise<{
|
|
53
|
+
response: http.IncomingMessage;
|
|
54
|
+
body: CreateBackup202Response;
|
|
55
|
+
}>;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @summary Delete a backup
|
|
59
|
+
* @param organisation The organisation ID
|
|
60
|
+
* @param application The application ID
|
|
61
|
+
* @param environment The environment ID
|
|
62
|
+
* @param type The backup type
|
|
63
|
+
* @param backupId The backup ID
|
|
64
|
+
*/
|
|
65
|
+
deleteBackup(organisation: string, application: string, environment: string, type: 'database' | 'filesystem', backupId: string, options?: {
|
|
66
|
+
headers: {
|
|
67
|
+
[name: string]: string;
|
|
68
|
+
};
|
|
69
|
+
}): Promise<{
|
|
70
|
+
response: http.IncomingMessage;
|
|
71
|
+
body: DeleteBackup200Response;
|
|
72
|
+
}>;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @summary Generate a download URL for a backup
|
|
76
|
+
* @param organisation The organisation ID
|
|
77
|
+
* @param application The application ID
|
|
78
|
+
* @param environment The environment ID
|
|
79
|
+
* @param type The backup type
|
|
80
|
+
* @param backupId The backup ID
|
|
81
|
+
*/
|
|
82
|
+
downloadBackup(organisation: string, application: string, environment: string, type: 'database' | 'filesystem', backupId: string, options?: {
|
|
83
|
+
headers: {
|
|
84
|
+
[name: string]: string;
|
|
85
|
+
};
|
|
86
|
+
}): Promise<{
|
|
87
|
+
response: http.IncomingMessage;
|
|
88
|
+
body: DownloadBackup200Response;
|
|
89
|
+
}>;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @summary List backups for an environment
|
|
93
|
+
* @param organisation The organisation ID
|
|
94
|
+
* @param application The application ID
|
|
95
|
+
* @param environment The environment ID
|
|
96
|
+
* @param type The backup type
|
|
97
|
+
*/
|
|
98
|
+
listBackups(organisation: string, application: string, environment: string, type: 'database' | 'filesystem', options?: {
|
|
99
|
+
headers: {
|
|
100
|
+
[name: string]: string;
|
|
101
|
+
};
|
|
102
|
+
}): Promise<{
|
|
103
|
+
response: http.IncomingMessage;
|
|
104
|
+
body: ListBackups200Response;
|
|
105
|
+
}>;
|
|
106
|
+
}
|
|
@@ -0,0 +1,440 @@
|
|
|
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.BackupManagementApi = exports.BackupManagementApiApiKeys = 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 BackupManagementApiApiKeys;
|
|
35
|
+
(function (BackupManagementApiApiKeys) {
|
|
36
|
+
})(BackupManagementApiApiKeys = exports.BackupManagementApiApiKeys || (exports.BackupManagementApiApiKeys = {}));
|
|
37
|
+
class BackupManagementApi {
|
|
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[BackupManagementApiApiKeys[key]].apiKey = value;
|
|
77
|
+
}
|
|
78
|
+
addInterceptor(interceptor) {
|
|
79
|
+
this.interceptors.push(interceptor);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @summary Create a backup for an environment
|
|
84
|
+
* @param organisation The organisation ID
|
|
85
|
+
* @param application The application ID
|
|
86
|
+
* @param environment The environment ID
|
|
87
|
+
* @param type The backup type
|
|
88
|
+
* @param createBackupRequest
|
|
89
|
+
*/
|
|
90
|
+
createBackup(organisation, application, environment, type, createBackupRequest, options = { headers: {} }) {
|
|
91
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
+
const localVarPath = this.basePath + '/organisations/{organisation}/applications/{application}/environments/{environment}/backups/{type}'
|
|
93
|
+
.replace('{' + 'organisation' + '}', encodeURIComponent(String(organisation)))
|
|
94
|
+
.replace('{' + 'application' + '}', encodeURIComponent(String(application)))
|
|
95
|
+
.replace('{' + 'environment' + '}', encodeURIComponent(String(environment)))
|
|
96
|
+
.replace('{' + 'type' + '}', encodeURIComponent(String(type)));
|
|
97
|
+
let localVarQueryParameters = {};
|
|
98
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
99
|
+
const produces = ['application/json'];
|
|
100
|
+
// give precedence to 'application/json'
|
|
101
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
102
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
106
|
+
}
|
|
107
|
+
let localVarFormParams = {};
|
|
108
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
109
|
+
if (organisation === null || organisation === undefined) {
|
|
110
|
+
throw new Error('Required parameter organisation was null or undefined when calling createBackup.');
|
|
111
|
+
}
|
|
112
|
+
// verify required parameter 'application' is not null or undefined
|
|
113
|
+
if (application === null || application === undefined) {
|
|
114
|
+
throw new Error('Required parameter application was null or undefined when calling createBackup.');
|
|
115
|
+
}
|
|
116
|
+
// verify required parameter 'environment' is not null or undefined
|
|
117
|
+
if (environment === null || environment === undefined) {
|
|
118
|
+
throw new Error('Required parameter environment was null or undefined when calling createBackup.');
|
|
119
|
+
}
|
|
120
|
+
// verify required parameter 'type' is not null or undefined
|
|
121
|
+
if (type === null || type === undefined) {
|
|
122
|
+
throw new Error('Required parameter type was null or undefined when calling createBackup.');
|
|
123
|
+
}
|
|
124
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
125
|
+
let localVarUseFormData = false;
|
|
126
|
+
let localVarRequestOptions = {
|
|
127
|
+
method: 'POST',
|
|
128
|
+
qs: localVarQueryParameters,
|
|
129
|
+
headers: localVarHeaderParams,
|
|
130
|
+
uri: localVarPath,
|
|
131
|
+
useQuerystring: this._useQuerystring,
|
|
132
|
+
json: true,
|
|
133
|
+
body: models_1.ObjectSerializer.serialize(createBackupRequest, "CreateBackupRequest")
|
|
134
|
+
};
|
|
135
|
+
let authenticationPromise = Promise.resolve();
|
|
136
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
137
|
+
let interceptorPromise = authenticationPromise;
|
|
138
|
+
for (const interceptor of this.interceptors) {
|
|
139
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
140
|
+
}
|
|
141
|
+
return interceptorPromise.then(() => {
|
|
142
|
+
if (Object.keys(localVarFormParams).length) {
|
|
143
|
+
if (localVarUseFormData) {
|
|
144
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
return new Promise((resolve, reject) => {
|
|
151
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
152
|
+
if (error) {
|
|
153
|
+
reject(error);
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
157
|
+
body = models_1.ObjectSerializer.deserialize(body, "CreateBackup202Response");
|
|
158
|
+
resolve({ response: response, body: body });
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
});
|
|
166
|
+
});
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
* @summary Delete a backup
|
|
172
|
+
* @param organisation The organisation ID
|
|
173
|
+
* @param application The application ID
|
|
174
|
+
* @param environment The environment ID
|
|
175
|
+
* @param type The backup type
|
|
176
|
+
* @param backupId The backup ID
|
|
177
|
+
*/
|
|
178
|
+
deleteBackup(organisation, application, environment, type, backupId, options = { headers: {} }) {
|
|
179
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
180
|
+
const localVarPath = this.basePath + '/organisations/{organisation}/applications/{application}/environments/{environment}/backups/{type}/{backupId}'
|
|
181
|
+
.replace('{' + 'organisation' + '}', encodeURIComponent(String(organisation)))
|
|
182
|
+
.replace('{' + 'application' + '}', encodeURIComponent(String(application)))
|
|
183
|
+
.replace('{' + 'environment' + '}', encodeURIComponent(String(environment)))
|
|
184
|
+
.replace('{' + 'type' + '}', encodeURIComponent(String(type)))
|
|
185
|
+
.replace('{' + 'backupId' + '}', encodeURIComponent(String(backupId)));
|
|
186
|
+
let localVarQueryParameters = {};
|
|
187
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
188
|
+
const produces = ['application/json'];
|
|
189
|
+
// give precedence to 'application/json'
|
|
190
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
191
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
192
|
+
}
|
|
193
|
+
else {
|
|
194
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
195
|
+
}
|
|
196
|
+
let localVarFormParams = {};
|
|
197
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
198
|
+
if (organisation === null || organisation === undefined) {
|
|
199
|
+
throw new Error('Required parameter organisation was null or undefined when calling deleteBackup.');
|
|
200
|
+
}
|
|
201
|
+
// verify required parameter 'application' is not null or undefined
|
|
202
|
+
if (application === null || application === undefined) {
|
|
203
|
+
throw new Error('Required parameter application was null or undefined when calling deleteBackup.');
|
|
204
|
+
}
|
|
205
|
+
// verify required parameter 'environment' is not null or undefined
|
|
206
|
+
if (environment === null || environment === undefined) {
|
|
207
|
+
throw new Error('Required parameter environment was null or undefined when calling deleteBackup.');
|
|
208
|
+
}
|
|
209
|
+
// verify required parameter 'type' is not null or undefined
|
|
210
|
+
if (type === null || type === undefined) {
|
|
211
|
+
throw new Error('Required parameter type was null or undefined when calling deleteBackup.');
|
|
212
|
+
}
|
|
213
|
+
// verify required parameter 'backupId' is not null or undefined
|
|
214
|
+
if (backupId === null || backupId === undefined) {
|
|
215
|
+
throw new Error('Required parameter backupId was null or undefined when calling deleteBackup.');
|
|
216
|
+
}
|
|
217
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
218
|
+
let localVarUseFormData = false;
|
|
219
|
+
let localVarRequestOptions = {
|
|
220
|
+
method: 'DELETE',
|
|
221
|
+
qs: localVarQueryParameters,
|
|
222
|
+
headers: localVarHeaderParams,
|
|
223
|
+
uri: localVarPath,
|
|
224
|
+
useQuerystring: this._useQuerystring,
|
|
225
|
+
json: true,
|
|
226
|
+
};
|
|
227
|
+
let authenticationPromise = Promise.resolve();
|
|
228
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
229
|
+
let interceptorPromise = authenticationPromise;
|
|
230
|
+
for (const interceptor of this.interceptors) {
|
|
231
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
232
|
+
}
|
|
233
|
+
return interceptorPromise.then(() => {
|
|
234
|
+
if (Object.keys(localVarFormParams).length) {
|
|
235
|
+
if (localVarUseFormData) {
|
|
236
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
237
|
+
}
|
|
238
|
+
else {
|
|
239
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
return new Promise((resolve, reject) => {
|
|
243
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
244
|
+
if (error) {
|
|
245
|
+
reject(error);
|
|
246
|
+
}
|
|
247
|
+
else {
|
|
248
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
249
|
+
body = models_1.ObjectSerializer.deserialize(body, "DeleteBackup200Response");
|
|
250
|
+
resolve({ response: response, body: body });
|
|
251
|
+
}
|
|
252
|
+
else {
|
|
253
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
});
|
|
258
|
+
});
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
*
|
|
263
|
+
* @summary Generate a download URL for a backup
|
|
264
|
+
* @param organisation The organisation ID
|
|
265
|
+
* @param application The application ID
|
|
266
|
+
* @param environment The environment ID
|
|
267
|
+
* @param type The backup type
|
|
268
|
+
* @param backupId The backup ID
|
|
269
|
+
*/
|
|
270
|
+
downloadBackup(organisation, application, environment, type, backupId, options = { headers: {} }) {
|
|
271
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
272
|
+
const localVarPath = this.basePath + '/organisations/{organisation}/applications/{application}/environments/{environment}/backups/{type}/{backupId}/download'
|
|
273
|
+
.replace('{' + 'organisation' + '}', encodeURIComponent(String(organisation)))
|
|
274
|
+
.replace('{' + 'application' + '}', encodeURIComponent(String(application)))
|
|
275
|
+
.replace('{' + 'environment' + '}', encodeURIComponent(String(environment)))
|
|
276
|
+
.replace('{' + 'type' + '}', encodeURIComponent(String(type)))
|
|
277
|
+
.replace('{' + 'backupId' + '}', encodeURIComponent(String(backupId)));
|
|
278
|
+
let localVarQueryParameters = {};
|
|
279
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
280
|
+
const produces = ['application/json'];
|
|
281
|
+
// give precedence to 'application/json'
|
|
282
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
283
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
284
|
+
}
|
|
285
|
+
else {
|
|
286
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
287
|
+
}
|
|
288
|
+
let localVarFormParams = {};
|
|
289
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
290
|
+
if (organisation === null || organisation === undefined) {
|
|
291
|
+
throw new Error('Required parameter organisation was null or undefined when calling downloadBackup.');
|
|
292
|
+
}
|
|
293
|
+
// verify required parameter 'application' is not null or undefined
|
|
294
|
+
if (application === null || application === undefined) {
|
|
295
|
+
throw new Error('Required parameter application was null or undefined when calling downloadBackup.');
|
|
296
|
+
}
|
|
297
|
+
// verify required parameter 'environment' is not null or undefined
|
|
298
|
+
if (environment === null || environment === undefined) {
|
|
299
|
+
throw new Error('Required parameter environment was null or undefined when calling downloadBackup.');
|
|
300
|
+
}
|
|
301
|
+
// verify required parameter 'type' is not null or undefined
|
|
302
|
+
if (type === null || type === undefined) {
|
|
303
|
+
throw new Error('Required parameter type was null or undefined when calling downloadBackup.');
|
|
304
|
+
}
|
|
305
|
+
// verify required parameter 'backupId' is not null or undefined
|
|
306
|
+
if (backupId === null || backupId === undefined) {
|
|
307
|
+
throw new Error('Required parameter backupId was null or undefined when calling downloadBackup.');
|
|
308
|
+
}
|
|
309
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
310
|
+
let localVarUseFormData = false;
|
|
311
|
+
let localVarRequestOptions = {
|
|
312
|
+
method: 'GET',
|
|
313
|
+
qs: localVarQueryParameters,
|
|
314
|
+
headers: localVarHeaderParams,
|
|
315
|
+
uri: localVarPath,
|
|
316
|
+
useQuerystring: this._useQuerystring,
|
|
317
|
+
json: true,
|
|
318
|
+
};
|
|
319
|
+
let authenticationPromise = Promise.resolve();
|
|
320
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
321
|
+
let interceptorPromise = authenticationPromise;
|
|
322
|
+
for (const interceptor of this.interceptors) {
|
|
323
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
324
|
+
}
|
|
325
|
+
return interceptorPromise.then(() => {
|
|
326
|
+
if (Object.keys(localVarFormParams).length) {
|
|
327
|
+
if (localVarUseFormData) {
|
|
328
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
329
|
+
}
|
|
330
|
+
else {
|
|
331
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
return new Promise((resolve, reject) => {
|
|
335
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
336
|
+
if (error) {
|
|
337
|
+
reject(error);
|
|
338
|
+
}
|
|
339
|
+
else {
|
|
340
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
341
|
+
body = models_1.ObjectSerializer.deserialize(body, "DownloadBackup200Response");
|
|
342
|
+
resolve({ response: response, body: body });
|
|
343
|
+
}
|
|
344
|
+
else {
|
|
345
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
});
|
|
350
|
+
});
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
*
|
|
355
|
+
* @summary List backups for an environment
|
|
356
|
+
* @param organisation The organisation ID
|
|
357
|
+
* @param application The application ID
|
|
358
|
+
* @param environment The environment ID
|
|
359
|
+
* @param type The backup type
|
|
360
|
+
*/
|
|
361
|
+
listBackups(organisation, application, environment, type, options = { headers: {} }) {
|
|
362
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
363
|
+
const localVarPath = this.basePath + '/organisations/{organisation}/applications/{application}/environments/{environment}/backups/{type}'
|
|
364
|
+
.replace('{' + 'organisation' + '}', encodeURIComponent(String(organisation)))
|
|
365
|
+
.replace('{' + 'application' + '}', encodeURIComponent(String(application)))
|
|
366
|
+
.replace('{' + 'environment' + '}', encodeURIComponent(String(environment)))
|
|
367
|
+
.replace('{' + 'type' + '}', encodeURIComponent(String(type)));
|
|
368
|
+
let localVarQueryParameters = {};
|
|
369
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
370
|
+
const produces = ['application/json'];
|
|
371
|
+
// give precedence to 'application/json'
|
|
372
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
373
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
374
|
+
}
|
|
375
|
+
else {
|
|
376
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
377
|
+
}
|
|
378
|
+
let localVarFormParams = {};
|
|
379
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
380
|
+
if (organisation === null || organisation === undefined) {
|
|
381
|
+
throw new Error('Required parameter organisation was null or undefined when calling listBackups.');
|
|
382
|
+
}
|
|
383
|
+
// verify required parameter 'application' is not null or undefined
|
|
384
|
+
if (application === null || application === undefined) {
|
|
385
|
+
throw new Error('Required parameter application was null or undefined when calling listBackups.');
|
|
386
|
+
}
|
|
387
|
+
// verify required parameter 'environment' is not null or undefined
|
|
388
|
+
if (environment === null || environment === undefined) {
|
|
389
|
+
throw new Error('Required parameter environment was null or undefined when calling listBackups.');
|
|
390
|
+
}
|
|
391
|
+
// verify required parameter 'type' is not null or undefined
|
|
392
|
+
if (type === null || type === undefined) {
|
|
393
|
+
throw new Error('Required parameter type was null or undefined when calling listBackups.');
|
|
394
|
+
}
|
|
395
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
396
|
+
let localVarUseFormData = false;
|
|
397
|
+
let localVarRequestOptions = {
|
|
398
|
+
method: 'GET',
|
|
399
|
+
qs: localVarQueryParameters,
|
|
400
|
+
headers: localVarHeaderParams,
|
|
401
|
+
uri: localVarPath,
|
|
402
|
+
useQuerystring: this._useQuerystring,
|
|
403
|
+
json: true,
|
|
404
|
+
};
|
|
405
|
+
let authenticationPromise = Promise.resolve();
|
|
406
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
407
|
+
let interceptorPromise = authenticationPromise;
|
|
408
|
+
for (const interceptor of this.interceptors) {
|
|
409
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
410
|
+
}
|
|
411
|
+
return interceptorPromise.then(() => {
|
|
412
|
+
if (Object.keys(localVarFormParams).length) {
|
|
413
|
+
if (localVarUseFormData) {
|
|
414
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
415
|
+
}
|
|
416
|
+
else {
|
|
417
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
return new Promise((resolve, reject) => {
|
|
421
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
422
|
+
if (error) {
|
|
423
|
+
reject(error);
|
|
424
|
+
}
|
|
425
|
+
else {
|
|
426
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
427
|
+
body = models_1.ObjectSerializer.deserialize(body, "ListBackups200Response");
|
|
428
|
+
resolve({ response: response, body: body });
|
|
429
|
+
}
|
|
430
|
+
else {
|
|
431
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
});
|
|
435
|
+
});
|
|
436
|
+
});
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
exports.BackupManagementApi = BackupManagementApi;
|
|
@@ -35,9 +35,9 @@ export declare class SSHAccessApi {
|
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
37
|
* @summary Get SSH access credentials for an environment
|
|
38
|
-
* @param organisation The organisation
|
|
39
|
-
* @param application The application
|
|
40
|
-
* @param environment The environment
|
|
38
|
+
* @param organisation The organisation machine name
|
|
39
|
+
* @param application The application name
|
|
40
|
+
* @param environment The environment name
|
|
41
41
|
*/
|
|
42
42
|
getSshAccessCredentials(organisation: string, application: string, environment: string, options?: {
|
|
43
43
|
headers: {
|
package/dist/api/sSHAccessApi.js
CHANGED
|
@@ -81,9 +81,9 @@ class SSHAccessApi {
|
|
|
81
81
|
/**
|
|
82
82
|
*
|
|
83
83
|
* @summary Get SSH access credentials for an environment
|
|
84
|
-
* @param organisation The organisation
|
|
85
|
-
* @param application The application
|
|
86
|
-
* @param environment The environment
|
|
84
|
+
* @param organisation The organisation machine name
|
|
85
|
+
* @param application The application name
|
|
86
|
+
* @param environment The environment name
|
|
87
87
|
*/
|
|
88
88
|
getSshAccessCredentials(organisation, application, environment, options = { headers: {} }) {
|
|
89
89
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -0,0 +1,27 @@
|
|
|
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 CreateBackup202Response {
|
|
13
|
+
'backupId'?: string;
|
|
14
|
+
'status'?: string;
|
|
15
|
+
'message'?: string;
|
|
16
|
+
static discriminator: string | undefined;
|
|
17
|
+
static attributeTypeMap: Array<{
|
|
18
|
+
name: string;
|
|
19
|
+
baseName: string;
|
|
20
|
+
type: string;
|
|
21
|
+
}>;
|
|
22
|
+
static getAttributeTypeMap(): {
|
|
23
|
+
name: string;
|
|
24
|
+
baseName: string;
|
|
25
|
+
type: string;
|
|
26
|
+
}[];
|
|
27
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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.CreateBackup202Response = void 0;
|
|
15
|
+
class CreateBackup202Response {
|
|
16
|
+
static getAttributeTypeMap() {
|
|
17
|
+
return CreateBackup202Response.attributeTypeMap;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.CreateBackup202Response = CreateBackup202Response;
|
|
21
|
+
CreateBackup202Response.discriminator = undefined;
|
|
22
|
+
CreateBackup202Response.attributeTypeMap = [
|
|
23
|
+
{
|
|
24
|
+
"name": "backupId",
|
|
25
|
+
"baseName": "backupId",
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "status",
|
|
30
|
+
"baseName": "status",
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "message",
|
|
35
|
+
"baseName": "message",
|
|
36
|
+
"type": "string"
|
|
37
|
+
}
|
|
38
|
+
];
|
|
@@ -0,0 +1,32 @@
|
|
|
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 CreateBackupRequest {
|
|
13
|
+
/**
|
|
14
|
+
* Optional backup description
|
|
15
|
+
*/
|
|
16
|
+
'description'?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Optional retention period in days
|
|
19
|
+
*/
|
|
20
|
+
'retentionDays'?: 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
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.CreateBackupRequest = void 0;
|
|
15
|
+
class CreateBackupRequest {
|
|
16
|
+
static getAttributeTypeMap() {
|
|
17
|
+
return CreateBackupRequest.attributeTypeMap;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.CreateBackupRequest = CreateBackupRequest;
|
|
21
|
+
CreateBackupRequest.discriminator = undefined;
|
|
22
|
+
CreateBackupRequest.attributeTypeMap = [
|
|
23
|
+
{
|
|
24
|
+
"name": "description",
|
|
25
|
+
"baseName": "description",
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "retentionDays",
|
|
30
|
+
"baseName": "retentionDays",
|
|
31
|
+
"type": "number"
|
|
32
|
+
}
|
|
33
|
+
];
|
|
@@ -0,0 +1,26 @@
|
|
|
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 DeleteBackup200Response {
|
|
13
|
+
'message'?: string;
|
|
14
|
+
'backupId'?: string;
|
|
15
|
+
static discriminator: string | undefined;
|
|
16
|
+
static attributeTypeMap: Array<{
|
|
17
|
+
name: string;
|
|
18
|
+
baseName: string;
|
|
19
|
+
type: string;
|
|
20
|
+
}>;
|
|
21
|
+
static getAttributeTypeMap(): {
|
|
22
|
+
name: string;
|
|
23
|
+
baseName: string;
|
|
24
|
+
type: string;
|
|
25
|
+
}[];
|
|
26
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.DeleteBackup200Response = void 0;
|
|
15
|
+
class DeleteBackup200Response {
|
|
16
|
+
static getAttributeTypeMap() {
|
|
17
|
+
return DeleteBackup200Response.attributeTypeMap;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.DeleteBackup200Response = DeleteBackup200Response;
|
|
21
|
+
DeleteBackup200Response.discriminator = undefined;
|
|
22
|
+
DeleteBackup200Response.attributeTypeMap = [
|
|
23
|
+
{
|
|
24
|
+
"name": "message",
|
|
25
|
+
"baseName": "message",
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "backupId",
|
|
30
|
+
"baseName": "backupId",
|
|
31
|
+
"type": "string"
|
|
32
|
+
}
|
|
33
|
+
];
|
|
@@ -0,0 +1,36 @@
|
|
|
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 DownloadBackup200Response {
|
|
13
|
+
/**
|
|
14
|
+
* Pre-signed S3 URL for download
|
|
15
|
+
*/
|
|
16
|
+
'downloadUrl'?: string;
|
|
17
|
+
/**
|
|
18
|
+
* URL expiration time
|
|
19
|
+
*/
|
|
20
|
+
'expiresAt'?: Date;
|
|
21
|
+
/**
|
|
22
|
+
* Suggested filename for download
|
|
23
|
+
*/
|
|
24
|
+
'filename'?: string;
|
|
25
|
+
static discriminator: string | undefined;
|
|
26
|
+
static attributeTypeMap: Array<{
|
|
27
|
+
name: string;
|
|
28
|
+
baseName: string;
|
|
29
|
+
type: string;
|
|
30
|
+
}>;
|
|
31
|
+
static getAttributeTypeMap(): {
|
|
32
|
+
name: string;
|
|
33
|
+
baseName: string;
|
|
34
|
+
type: string;
|
|
35
|
+
}[];
|
|
36
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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.DownloadBackup200Response = void 0;
|
|
15
|
+
class DownloadBackup200Response {
|
|
16
|
+
static getAttributeTypeMap() {
|
|
17
|
+
return DownloadBackup200Response.attributeTypeMap;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.DownloadBackup200Response = DownloadBackup200Response;
|
|
21
|
+
DownloadBackup200Response.discriminator = undefined;
|
|
22
|
+
DownloadBackup200Response.attributeTypeMap = [
|
|
23
|
+
{
|
|
24
|
+
"name": "downloadUrl",
|
|
25
|
+
"baseName": "downloadUrl",
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "expiresAt",
|
|
30
|
+
"baseName": "expiresAt",
|
|
31
|
+
"type": "Date"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "filename",
|
|
35
|
+
"baseName": "filename",
|
|
36
|
+
"type": "string"
|
|
37
|
+
}
|
|
38
|
+
];
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { ListBackups200ResponseBackupsInner } from './listBackups200ResponseBackupsInner';
|
|
13
|
+
export declare class ListBackups200Response {
|
|
14
|
+
'backups'?: Array<ListBackups200ResponseBackupsInner>;
|
|
15
|
+
'count'?: number;
|
|
16
|
+
'message'?: string;
|
|
17
|
+
static discriminator: string | undefined;
|
|
18
|
+
static attributeTypeMap: Array<{
|
|
19
|
+
name: string;
|
|
20
|
+
baseName: string;
|
|
21
|
+
type: string;
|
|
22
|
+
}>;
|
|
23
|
+
static getAttributeTypeMap(): {
|
|
24
|
+
name: string;
|
|
25
|
+
baseName: string;
|
|
26
|
+
type: string;
|
|
27
|
+
}[];
|
|
28
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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.ListBackups200Response = void 0;
|
|
15
|
+
class ListBackups200Response {
|
|
16
|
+
static getAttributeTypeMap() {
|
|
17
|
+
return ListBackups200Response.attributeTypeMap;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.ListBackups200Response = ListBackups200Response;
|
|
21
|
+
ListBackups200Response.discriminator = undefined;
|
|
22
|
+
ListBackups200Response.attributeTypeMap = [
|
|
23
|
+
{
|
|
24
|
+
"name": "backups",
|
|
25
|
+
"baseName": "backups",
|
|
26
|
+
"type": "Array<ListBackups200ResponseBackupsInner>"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "count",
|
|
30
|
+
"baseName": "count",
|
|
31
|
+
"type": "number"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "message",
|
|
35
|
+
"baseName": "message",
|
|
36
|
+
"type": "string"
|
|
37
|
+
}
|
|
38
|
+
];
|
|
@@ -0,0 +1,37 @@
|
|
|
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 ListBackups200ResponseBackupsInner {
|
|
13
|
+
'backupId'?: string;
|
|
14
|
+
'status'?: string;
|
|
15
|
+
'type'?: string;
|
|
16
|
+
'engine'?: string;
|
|
17
|
+
'description'?: string;
|
|
18
|
+
'createdAt'?: Date;
|
|
19
|
+
'updatedAt'?: Date;
|
|
20
|
+
'taskArn'?: string;
|
|
21
|
+
's3Key'?: string;
|
|
22
|
+
'bucketName'?: string;
|
|
23
|
+
'size'?: number;
|
|
24
|
+
'sizeFormatted'?: string;
|
|
25
|
+
'fileExists'?: boolean;
|
|
26
|
+
static discriminator: string | undefined;
|
|
27
|
+
static attributeTypeMap: Array<{
|
|
28
|
+
name: string;
|
|
29
|
+
baseName: string;
|
|
30
|
+
type: string;
|
|
31
|
+
}>;
|
|
32
|
+
static getAttributeTypeMap(): {
|
|
33
|
+
name: string;
|
|
34
|
+
baseName: string;
|
|
35
|
+
type: string;
|
|
36
|
+
}[];
|
|
37
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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.ListBackups200ResponseBackupsInner = void 0;
|
|
15
|
+
class ListBackups200ResponseBackupsInner {
|
|
16
|
+
static getAttributeTypeMap() {
|
|
17
|
+
return ListBackups200ResponseBackupsInner.attributeTypeMap;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.ListBackups200ResponseBackupsInner = ListBackups200ResponseBackupsInner;
|
|
21
|
+
ListBackups200ResponseBackupsInner.discriminator = undefined;
|
|
22
|
+
ListBackups200ResponseBackupsInner.attributeTypeMap = [
|
|
23
|
+
{
|
|
24
|
+
"name": "backupId",
|
|
25
|
+
"baseName": "backupId",
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "status",
|
|
30
|
+
"baseName": "status",
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "type",
|
|
35
|
+
"baseName": "type",
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "engine",
|
|
40
|
+
"baseName": "engine",
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "description",
|
|
45
|
+
"baseName": "description",
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "createdAt",
|
|
50
|
+
"baseName": "createdAt",
|
|
51
|
+
"type": "Date"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "updatedAt",
|
|
55
|
+
"baseName": "updatedAt",
|
|
56
|
+
"type": "Date"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "taskArn",
|
|
60
|
+
"baseName": "taskArn",
|
|
61
|
+
"type": "string"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "s3Key",
|
|
65
|
+
"baseName": "s3Key",
|
|
66
|
+
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "bucketName",
|
|
70
|
+
"baseName": "bucketName",
|
|
71
|
+
"type": "string"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "size",
|
|
75
|
+
"baseName": "size",
|
|
76
|
+
"type": "number"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "sizeFormatted",
|
|
80
|
+
"baseName": "sizeFormatted",
|
|
81
|
+
"type": "string"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "fileExists",
|
|
85
|
+
"baseName": "fileExists",
|
|
86
|
+
"type": "boolean"
|
|
87
|
+
}
|
|
88
|
+
];
|
package/dist/model/models.d.ts
CHANGED
|
@@ -9,16 +9,22 @@ export * from './container';
|
|
|
9
9
|
export * from './containerEnvironmentInner';
|
|
10
10
|
export * from './containerImageReference';
|
|
11
11
|
export * from './containerMountPointsInner';
|
|
12
|
+
export * from './createBackup202Response';
|
|
13
|
+
export * from './createBackupRequest';
|
|
12
14
|
export * from './createCommandRequest';
|
|
13
15
|
export * from './createCronJob422Response';
|
|
14
16
|
export * from './createCronJobRequest';
|
|
15
17
|
export * from './createEnvironmentRequest';
|
|
16
18
|
export * from './cron';
|
|
17
19
|
export * from './cronRun';
|
|
20
|
+
export * from './deleteBackup200Response';
|
|
21
|
+
export * from './downloadBackup200Response';
|
|
18
22
|
export * from './environment';
|
|
19
23
|
export * from './getEcrLoginCredentials200Response';
|
|
20
24
|
export * from './getSshAccessCredentials200Response';
|
|
21
25
|
export * from './getSshAccessCredentials200ResponseCredentials';
|
|
26
|
+
export * from './listBackups200Response';
|
|
27
|
+
export * from './listBackups200ResponseBackupsInner';
|
|
22
28
|
export * from './scalingPolicy';
|
|
23
29
|
export * from './syncOperation';
|
|
24
30
|
export * from './syncToEnvironmentRequest';
|
package/dist/model/models.js
CHANGED
|
@@ -22,16 +22,22 @@ __exportStar(require("./container"), exports);
|
|
|
22
22
|
__exportStar(require("./containerEnvironmentInner"), exports);
|
|
23
23
|
__exportStar(require("./containerImageReference"), exports);
|
|
24
24
|
__exportStar(require("./containerMountPointsInner"), exports);
|
|
25
|
+
__exportStar(require("./createBackup202Response"), exports);
|
|
26
|
+
__exportStar(require("./createBackupRequest"), exports);
|
|
25
27
|
__exportStar(require("./createCommandRequest"), exports);
|
|
26
28
|
__exportStar(require("./createCronJob422Response"), exports);
|
|
27
29
|
__exportStar(require("./createCronJobRequest"), exports);
|
|
28
30
|
__exportStar(require("./createEnvironmentRequest"), exports);
|
|
29
31
|
__exportStar(require("./cron"), exports);
|
|
30
32
|
__exportStar(require("./cronRun"), exports);
|
|
33
|
+
__exportStar(require("./deleteBackup200Response"), exports);
|
|
34
|
+
__exportStar(require("./downloadBackup200Response"), exports);
|
|
31
35
|
__exportStar(require("./environment"), exports);
|
|
32
36
|
__exportStar(require("./getEcrLoginCredentials200Response"), exports);
|
|
33
37
|
__exportStar(require("./getSshAccessCredentials200Response"), exports);
|
|
34
38
|
__exportStar(require("./getSshAccessCredentials200ResponseCredentials"), exports);
|
|
39
|
+
__exportStar(require("./listBackups200Response"), exports);
|
|
40
|
+
__exportStar(require("./listBackups200ResponseBackupsInner"), exports);
|
|
35
41
|
__exportStar(require("./scalingPolicy"), exports);
|
|
36
42
|
__exportStar(require("./syncOperation"), exports);
|
|
37
43
|
__exportStar(require("./syncToEnvironmentRequest"), exports);
|
|
@@ -50,16 +56,22 @@ const container_1 = require("./container");
|
|
|
50
56
|
const containerEnvironmentInner_1 = require("./containerEnvironmentInner");
|
|
51
57
|
const containerImageReference_1 = require("./containerImageReference");
|
|
52
58
|
const containerMountPointsInner_1 = require("./containerMountPointsInner");
|
|
59
|
+
const createBackup202Response_1 = require("./createBackup202Response");
|
|
60
|
+
const createBackupRequest_1 = require("./createBackupRequest");
|
|
53
61
|
const createCommandRequest_1 = require("./createCommandRequest");
|
|
54
62
|
const createCronJob422Response_1 = require("./createCronJob422Response");
|
|
55
63
|
const createCronJobRequest_1 = require("./createCronJobRequest");
|
|
56
64
|
const createEnvironmentRequest_1 = require("./createEnvironmentRequest");
|
|
57
65
|
const cron_1 = require("./cron");
|
|
58
66
|
const cronRun_1 = require("./cronRun");
|
|
67
|
+
const deleteBackup200Response_1 = require("./deleteBackup200Response");
|
|
68
|
+
const downloadBackup200Response_1 = require("./downloadBackup200Response");
|
|
59
69
|
const environment_1 = require("./environment");
|
|
60
70
|
const getEcrLoginCredentials200Response_1 = require("./getEcrLoginCredentials200Response");
|
|
61
71
|
const getSshAccessCredentials200Response_1 = require("./getSshAccessCredentials200Response");
|
|
62
72
|
const getSshAccessCredentials200ResponseCredentials_1 = require("./getSshAccessCredentials200ResponseCredentials");
|
|
73
|
+
const listBackups200Response_1 = require("./listBackups200Response");
|
|
74
|
+
const listBackups200ResponseBackupsInner_1 = require("./listBackups200ResponseBackupsInner");
|
|
63
75
|
const scalingPolicy_1 = require("./scalingPolicy");
|
|
64
76
|
const syncOperation_1 = require("./syncOperation");
|
|
65
77
|
const syncToEnvironmentRequest_1 = require("./syncToEnvironmentRequest");
|
|
@@ -95,16 +107,22 @@ let typeMap = {
|
|
|
95
107
|
"ContainerEnvironmentInner": containerEnvironmentInner_1.ContainerEnvironmentInner,
|
|
96
108
|
"ContainerImageReference": containerImageReference_1.ContainerImageReference,
|
|
97
109
|
"ContainerMountPointsInner": containerMountPointsInner_1.ContainerMountPointsInner,
|
|
110
|
+
"CreateBackup202Response": createBackup202Response_1.CreateBackup202Response,
|
|
111
|
+
"CreateBackupRequest": createBackupRequest_1.CreateBackupRequest,
|
|
98
112
|
"CreateCommandRequest": createCommandRequest_1.CreateCommandRequest,
|
|
99
113
|
"CreateCronJob422Response": createCronJob422Response_1.CreateCronJob422Response,
|
|
100
114
|
"CreateCronJobRequest": createCronJobRequest_1.CreateCronJobRequest,
|
|
101
115
|
"CreateEnvironmentRequest": createEnvironmentRequest_1.CreateEnvironmentRequest,
|
|
102
116
|
"Cron": cron_1.Cron,
|
|
103
117
|
"CronRun": cronRun_1.CronRun,
|
|
118
|
+
"DeleteBackup200Response": deleteBackup200Response_1.DeleteBackup200Response,
|
|
119
|
+
"DownloadBackup200Response": downloadBackup200Response_1.DownloadBackup200Response,
|
|
104
120
|
"Environment": environment_1.Environment,
|
|
105
121
|
"GetEcrLoginCredentials200Response": getEcrLoginCredentials200Response_1.GetEcrLoginCredentials200Response,
|
|
106
122
|
"GetSshAccessCredentials200Response": getSshAccessCredentials200Response_1.GetSshAccessCredentials200Response,
|
|
107
123
|
"GetSshAccessCredentials200ResponseCredentials": getSshAccessCredentials200ResponseCredentials_1.GetSshAccessCredentials200ResponseCredentials,
|
|
124
|
+
"ListBackups200Response": listBackups200Response_1.ListBackups200Response,
|
|
125
|
+
"ListBackups200ResponseBackupsInner": listBackups200ResponseBackupsInner_1.ListBackups200ResponseBackupsInner,
|
|
108
126
|
"ScalingPolicy": scalingPolicy_1.ScalingPolicy,
|
|
109
127
|
"SyncOperation": syncOperation_1.SyncOperation,
|
|
110
128
|
"SyncToEnvironmentRequest": syncToEnvironmentRequest_1.SyncToEnvironmentRequest,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quantcdn/quant-client",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "TypeScript client for Quant Cloud API",
|
|
5
5
|
"main": "dist/api.js",
|
|
6
6
|
"types": "dist/api.d.ts",
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"typescript": "^4.9.5",
|
|
24
24
|
"@types/node": "^18.14.0",
|
|
25
|
-
"@types/request": "^2.48.
|
|
25
|
+
"@types/request": "^2.48.13"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"axios": "^1.3.4",
|
|
29
29
|
"request": "^2.88.2"
|
|
30
30
|
}
|
|
31
|
-
}
|
|
31
|
+
}
|