@quantcdn/quant-client 2.0.13 → 3.0.1
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 +32 -0
- package/dist/api/apis.js +50 -0
- package/dist/api/applicationsApi.d.ts +104 -0
- package/dist/api/applicationsApi.js +431 -0
- package/dist/api/backupManagementApi.d.ts +106 -0
- package/dist/api/backupManagementApi.js +440 -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/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/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/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/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/listBackups200Response.d.ts +26 -0
- package/dist/model/listBackups200Response.js +28 -0
- package/dist/model/listBackups200ResponseBackupsInner.d.ts +29 -0
- package/dist/model/listBackups200ResponseBackupsInner.js +48 -0
- package/dist/model/models.d.ts +84 -0
- package/dist/model/models.js +370 -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,194 @@
|
|
|
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 { CreateEnvironmentRequest } from '../model/createEnvironmentRequest';
|
|
15
|
+
import { Environment } from '../model/environment';
|
|
16
|
+
import { SyncOperation } from '../model/syncOperation';
|
|
17
|
+
import { SyncToEnvironmentRequest } from '../model/syncToEnvironmentRequest';
|
|
18
|
+
import { UpdateEnvironmentRequest } from '../model/updateEnvironmentRequest';
|
|
19
|
+
import { UpdateEnvironmentStateRequest } from '../model/updateEnvironmentStateRequest';
|
|
20
|
+
import { Authentication, Interceptor } from '../model/models';
|
|
21
|
+
export declare enum EnvironmentsApiApiKeys {
|
|
22
|
+
}
|
|
23
|
+
export declare class EnvironmentsApi {
|
|
24
|
+
protected _basePath: string;
|
|
25
|
+
protected _defaultHeaders: any;
|
|
26
|
+
protected _useQuerystring: boolean;
|
|
27
|
+
protected authentications: {
|
|
28
|
+
default: Authentication;
|
|
29
|
+
};
|
|
30
|
+
protected interceptors: Interceptor[];
|
|
31
|
+
constructor(basePath?: string);
|
|
32
|
+
set useQuerystring(value: boolean);
|
|
33
|
+
set basePath(basePath: string);
|
|
34
|
+
set defaultHeaders(defaultHeaders: any);
|
|
35
|
+
get defaultHeaders(): any;
|
|
36
|
+
get basePath(): string;
|
|
37
|
+
setDefaultAuthentication(auth: Authentication): void;
|
|
38
|
+
setApiKey(key: EnvironmentsApiApiKeys, value: string): void;
|
|
39
|
+
addInterceptor(interceptor: Interceptor): void;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @summary Create a new environment
|
|
43
|
+
* @param organisation The organisation ID
|
|
44
|
+
* @param application The application ID
|
|
45
|
+
* @param createEnvironmentRequest
|
|
46
|
+
*/
|
|
47
|
+
createEnvironment(organisation: string, application: string, createEnvironmentRequest: CreateEnvironmentRequest, options?: {
|
|
48
|
+
headers: {
|
|
49
|
+
[name: string]: string;
|
|
50
|
+
};
|
|
51
|
+
}): Promise<{
|
|
52
|
+
response: http.IncomingMessage;
|
|
53
|
+
body: Environment;
|
|
54
|
+
}>;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @summary Delete an environment
|
|
58
|
+
* @param organisation The organisation ID
|
|
59
|
+
* @param application The application ID
|
|
60
|
+
* @param environment The environment ID
|
|
61
|
+
*/
|
|
62
|
+
deleteEnvironment(organisation: string, application: string, environment: 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 single environment
|
|
73
|
+
* @param organisation The organisation ID
|
|
74
|
+
* @param application The application ID
|
|
75
|
+
* @param environment The environment ID
|
|
76
|
+
*/
|
|
77
|
+
getEnvironment(organisation: string, application: string, environment: string, options?: {
|
|
78
|
+
headers: {
|
|
79
|
+
[name: string]: string;
|
|
80
|
+
};
|
|
81
|
+
}): Promise<{
|
|
82
|
+
response: http.IncomingMessage;
|
|
83
|
+
body: Environment;
|
|
84
|
+
}>;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @summary Get the logs for an environment
|
|
88
|
+
* @param organisation The organisation ID
|
|
89
|
+
* @param application The application ID
|
|
90
|
+
* @param environment The environment ID
|
|
91
|
+
*/
|
|
92
|
+
getEnvironmentLogs(organisation: string, application: string, environment: string, options?: {
|
|
93
|
+
headers: {
|
|
94
|
+
[name: string]: string;
|
|
95
|
+
};
|
|
96
|
+
}): Promise<{
|
|
97
|
+
response: http.IncomingMessage;
|
|
98
|
+
body?: any;
|
|
99
|
+
}>;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @summary Get the metrics for an environment
|
|
103
|
+
* @param organisation The organisation ID
|
|
104
|
+
* @param application The application ID
|
|
105
|
+
* @param environment The environment ID
|
|
106
|
+
*/
|
|
107
|
+
getEnvironmentMetrics(organisation: string, application: string, environment: string, options?: {
|
|
108
|
+
headers: {
|
|
109
|
+
[name: string]: string;
|
|
110
|
+
};
|
|
111
|
+
}): Promise<{
|
|
112
|
+
response: http.IncomingMessage;
|
|
113
|
+
body?: any;
|
|
114
|
+
}>;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @summary Get all environments for an application
|
|
118
|
+
* @param organisation The organisation ID
|
|
119
|
+
* @param application The application ID
|
|
120
|
+
*/
|
|
121
|
+
listEnvironments(organisation: string, application: string, options?: {
|
|
122
|
+
headers: {
|
|
123
|
+
[name: string]: string;
|
|
124
|
+
};
|
|
125
|
+
}): Promise<{
|
|
126
|
+
response: http.IncomingMessage;
|
|
127
|
+
body: Array<Environment>;
|
|
128
|
+
}>;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @summary List the sync operations for an environment
|
|
132
|
+
* @param organisation The organisation ID
|
|
133
|
+
* @param application The application ID
|
|
134
|
+
* @param environment The environment ID
|
|
135
|
+
* @param type The sync type
|
|
136
|
+
*/
|
|
137
|
+
listSyncOperations(organisation: string, application: string, environment: string, type: 'database' | 'filesystem', options?: {
|
|
138
|
+
headers: {
|
|
139
|
+
[name: string]: string;
|
|
140
|
+
};
|
|
141
|
+
}): Promise<{
|
|
142
|
+
response: http.IncomingMessage;
|
|
143
|
+
body: Array<SyncOperation>;
|
|
144
|
+
}>;
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
* @summary Perform a sync operation from a source environment to the current environment
|
|
148
|
+
* @param organisation The organisation ID
|
|
149
|
+
* @param application The application ID
|
|
150
|
+
* @param environment The environment ID
|
|
151
|
+
* @param type The sync type
|
|
152
|
+
* @param syncToEnvironmentRequest
|
|
153
|
+
*/
|
|
154
|
+
syncToEnvironment(organisation: string, application: string, environment: string, type: 'database' | 'filesystem', syncToEnvironmentRequest: SyncToEnvironmentRequest, options?: {
|
|
155
|
+
headers: {
|
|
156
|
+
[name: string]: string;
|
|
157
|
+
};
|
|
158
|
+
}): Promise<{
|
|
159
|
+
response: http.IncomingMessage;
|
|
160
|
+
body: SyncOperation;
|
|
161
|
+
}>;
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
* @summary Update the compose for an environment
|
|
165
|
+
* @param organisation The organisation ID
|
|
166
|
+
* @param application The application ID
|
|
167
|
+
* @param environment The environment ID
|
|
168
|
+
* @param updateEnvironmentRequest
|
|
169
|
+
*/
|
|
170
|
+
updateEnvironment(organisation: string, application: string, environment: string, updateEnvironmentRequest: UpdateEnvironmentRequest, options?: {
|
|
171
|
+
headers: {
|
|
172
|
+
[name: string]: string;
|
|
173
|
+
};
|
|
174
|
+
}): Promise<{
|
|
175
|
+
response: http.IncomingMessage;
|
|
176
|
+
body?: any;
|
|
177
|
+
}>;
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
* @summary Update the state of an environment
|
|
181
|
+
* @param organisation The organisation ID
|
|
182
|
+
* @param application The application ID
|
|
183
|
+
* @param environment The environment ID
|
|
184
|
+
* @param updateEnvironmentStateRequest
|
|
185
|
+
*/
|
|
186
|
+
updateEnvironmentState(organisation: string, application: string, environment: string, updateEnvironmentStateRequest: UpdateEnvironmentStateRequest, options?: {
|
|
187
|
+
headers: {
|
|
188
|
+
[name: string]: string;
|
|
189
|
+
};
|
|
190
|
+
}): Promise<{
|
|
191
|
+
response: http.IncomingMessage;
|
|
192
|
+
body?: any;
|
|
193
|
+
}>;
|
|
194
|
+
}
|