@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.
Files changed (122) hide show
  1. package/README.md +49 -72
  2. package/dist/api/apis.d.ts +32 -0
  3. package/dist/api/apis.js +50 -0
  4. package/dist/api/applicationsApi.d.ts +104 -0
  5. package/dist/api/applicationsApi.js +431 -0
  6. package/dist/api/backupManagementApi.d.ts +106 -0
  7. package/dist/api/backupManagementApi.js +440 -0
  8. package/dist/api/commandsApi.d.ts +80 -0
  9. package/dist/api/commandsApi.js +316 -0
  10. package/dist/api/composeApi.d.ts +66 -0
  11. package/dist/api/composeApi.js +236 -0
  12. package/dist/api/containersApi.d.ts +67 -0
  13. package/dist/api/containersApi.js +236 -0
  14. package/dist/api/cronApi.d.ts +151 -0
  15. package/dist/api/cronApi.js +681 -0
  16. package/dist/api/environmentsApi.d.ts +194 -0
  17. package/dist/api/environmentsApi.js +861 -0
  18. package/dist/api/sSHAccessApi.d.ts +50 -0
  19. package/dist/api/sSHAccessApi.js +162 -0
  20. package/dist/api/scalingPolicyApi.d.ts +82 -0
  21. package/dist/api/scalingPolicyApi.js +307 -0
  22. package/dist/api/variablesApi.d.ts +83 -0
  23. package/dist/api/variablesApi.js +313 -0
  24. package/dist/api/volumesApi.d.ts +97 -0
  25. package/dist/api/volumesApi.js +405 -0
  26. package/dist/api.d.ts +2 -0
  27. package/dist/api.js +19 -0
  28. package/dist/model/application.d.ts +38 -0
  29. package/dist/model/application.js +93 -0
  30. package/dist/model/command.d.ts +34 -0
  31. package/dist/model/command.js +73 -0
  32. package/dist/model/compose.d.ts +32 -0
  33. package/dist/model/compose.js +58 -0
  34. package/dist/model/configuration.d.ts +26 -0
  35. package/dist/model/configuration.js +30 -0
  36. package/dist/model/container.d.ts +38 -0
  37. package/dist/model/container.js +78 -0
  38. package/dist/model/containerEnvironmentInner.d.ts +26 -0
  39. package/dist/model/containerEnvironmentInner.js +33 -0
  40. package/dist/model/containerImageReference.d.ts +28 -0
  41. package/dist/model/containerImageReference.js +43 -0
  42. package/dist/model/containerMountPointsInner.d.ts +27 -0
  43. package/dist/model/containerMountPointsInner.js +38 -0
  44. package/dist/model/createApplicationRequest.d.ts +28 -0
  45. package/dist/model/createApplicationRequest.js +43 -0
  46. package/dist/model/createBackup202Response.d.ts +27 -0
  47. package/dist/model/createBackup202Response.js +38 -0
  48. package/dist/model/createBackupRequest.d.ts +32 -0
  49. package/dist/model/createBackupRequest.js +33 -0
  50. package/dist/model/createCommandRequest.d.ts +25 -0
  51. package/dist/model/createCommandRequest.js +28 -0
  52. package/dist/model/createCronJob422Response.d.ts +26 -0
  53. package/dist/model/createCronJob422Response.js +33 -0
  54. package/dist/model/createCronJobRequest.d.ts +30 -0
  55. package/dist/model/createCronJobRequest.js +56 -0
  56. package/dist/model/createEnvironmentRequest.d.ts +34 -0
  57. package/dist/model/createEnvironmentRequest.js +53 -0
  58. package/dist/model/cron.d.ts +27 -0
  59. package/dist/model/cron.js +38 -0
  60. package/dist/model/cronRun.d.ts +48 -0
  61. package/dist/model/cronRun.js +89 -0
  62. package/dist/model/deleteBackup200Response.d.ts +26 -0
  63. package/dist/model/deleteBackup200Response.js +33 -0
  64. package/dist/model/downloadBackup200Response.d.ts +36 -0
  65. package/dist/model/downloadBackup200Response.js +38 -0
  66. package/dist/model/environment.d.ts +45 -0
  67. package/dist/model/environment.js +103 -0
  68. package/dist/model/getEcrLoginCredentials200Response.d.ts +28 -0
  69. package/dist/model/getEcrLoginCredentials200Response.js +43 -0
  70. package/dist/model/getScalingPolicies200Response.d.ts +26 -0
  71. package/dist/model/getScalingPolicies200Response.js +28 -0
  72. package/dist/model/getSshAccessCredentials200Response.d.ts +34 -0
  73. package/dist/model/getSshAccessCredentials200Response.js +68 -0
  74. package/dist/model/getSshAccessCredentials200ResponseCredentials.d.ts +28 -0
  75. package/dist/model/getSshAccessCredentials200ResponseCredentials.js +43 -0
  76. package/dist/model/listBackups200Response.d.ts +26 -0
  77. package/dist/model/listBackups200Response.js +28 -0
  78. package/dist/model/listBackups200ResponseBackupsInner.d.ts +29 -0
  79. package/dist/model/listBackups200ResponseBackupsInner.js +48 -0
  80. package/dist/model/models.d.ts +84 -0
  81. package/dist/model/models.js +370 -0
  82. package/dist/model/scalingPolicy.d.ts +35 -0
  83. package/dist/model/scalingPolicy.js +51 -0
  84. package/dist/model/syncOperation.d.ts +31 -0
  85. package/dist/model/syncOperation.js +58 -0
  86. package/dist/model/syncToEnvironmentRequest.d.ts +25 -0
  87. package/dist/model/syncToEnvironmentRequest.js +28 -0
  88. package/dist/model/updateComposeRequest.d.ts +26 -0
  89. package/dist/model/updateComposeRequest.js +28 -0
  90. package/dist/model/updateCronJobRequest.d.ts +29 -0
  91. package/dist/model/updateCronJobRequest.js +48 -0
  92. package/dist/model/updateEnvironmentComposeRequest.d.ts +26 -0
  93. package/dist/model/updateEnvironmentComposeRequest.js +28 -0
  94. package/dist/model/updateEnvironmentRequest.d.ts +26 -0
  95. package/dist/model/updateEnvironmentRequest.js +28 -0
  96. package/dist/model/updateEnvironmentStateRequest.d.ts +26 -0
  97. package/dist/model/updateEnvironmentStateRequest.js +33 -0
  98. package/dist/model/updateEnvironmentVariableRequest.d.ts +25 -0
  99. package/dist/model/updateEnvironmentVariableRequest.js +28 -0
  100. package/dist/model/validateCompose200Response.d.ts +27 -0
  101. package/dist/model/validateCompose200Response.js +38 -0
  102. package/dist/model/validateComposeRequest.d.ts +25 -0
  103. package/dist/model/validateComposeRequest.js +28 -0
  104. package/dist/model/variable.d.ts +26 -0
  105. package/dist/model/variable.js +33 -0
  106. package/dist/model/volume.d.ts +32 -0
  107. package/dist/model/volume.js +63 -0
  108. package/package.json +21 -40
  109. package/dist/src/client.d.ts +0 -15
  110. package/dist/src/client.js +0 -380
  111. package/dist/src/index.d.ts +0 -2
  112. package/dist/src/index.js +0 -42
  113. package/dist/src/interfaces.d.ts +0 -34
  114. package/dist/src/interfaces.js +0 -2
  115. package/dist/src/response.d.ts +0 -15
  116. package/dist/src/response.js +0 -103
  117. package/dist/src/types.d.ts +0 -68
  118. package/dist/src/types.js +0 -8
  119. package/dist/tests/client.test.d.ts +0 -1
  120. package/dist/tests/client.test.js +0 -191
  121. package/dist/tests/response.test.d.ts +0 -1
  122. package/dist/tests/response.test.js +0 -133
@@ -0,0 +1,370 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.VoidAuth = exports.OAuth = exports.ApiKeyAuth = exports.HttpBearerAuth = exports.HttpBasicAuth = exports.ObjectSerializer = void 0;
18
+ __exportStar(require("./application"), exports);
19
+ __exportStar(require("./command"), exports);
20
+ __exportStar(require("./compose"), exports);
21
+ __exportStar(require("./container"), exports);
22
+ __exportStar(require("./containerEnvironmentInner"), exports);
23
+ __exportStar(require("./containerImageReference"), exports);
24
+ __exportStar(require("./containerMountPointsInner"), exports);
25
+ __exportStar(require("./createBackup202Response"), exports);
26
+ __exportStar(require("./createBackupRequest"), exports);
27
+ __exportStar(require("./createCommandRequest"), exports);
28
+ __exportStar(require("./createCronJob422Response"), exports);
29
+ __exportStar(require("./createCronJobRequest"), exports);
30
+ __exportStar(require("./createEnvironmentRequest"), exports);
31
+ __exportStar(require("./cron"), exports);
32
+ __exportStar(require("./cronRun"), exports);
33
+ __exportStar(require("./deleteBackup200Response"), exports);
34
+ __exportStar(require("./downloadBackup200Response"), exports);
35
+ __exportStar(require("./environment"), exports);
36
+ __exportStar(require("./getEcrLoginCredentials200Response"), exports);
37
+ __exportStar(require("./getSshAccessCredentials200Response"), exports);
38
+ __exportStar(require("./getSshAccessCredentials200ResponseCredentials"), exports);
39
+ __exportStar(require("./listBackups200Response"), exports);
40
+ __exportStar(require("./listBackups200ResponseBackupsInner"), exports);
41
+ __exportStar(require("./scalingPolicy"), exports);
42
+ __exportStar(require("./syncOperation"), exports);
43
+ __exportStar(require("./syncToEnvironmentRequest"), exports);
44
+ __exportStar(require("./updateCronJobRequest"), exports);
45
+ __exportStar(require("./updateEnvironmentRequest"), exports);
46
+ __exportStar(require("./updateEnvironmentStateRequest"), exports);
47
+ __exportStar(require("./updateEnvironmentVariableRequest"), exports);
48
+ __exportStar(require("./validateCompose200Response"), exports);
49
+ __exportStar(require("./validateComposeRequest"), exports);
50
+ __exportStar(require("./variable"), exports);
51
+ __exportStar(require("./volume"), exports);
52
+ const application_1 = require("./application");
53
+ const command_1 = require("./command");
54
+ const compose_1 = require("./compose");
55
+ const container_1 = require("./container");
56
+ const containerEnvironmentInner_1 = require("./containerEnvironmentInner");
57
+ const containerImageReference_1 = require("./containerImageReference");
58
+ const containerMountPointsInner_1 = require("./containerMountPointsInner");
59
+ const createBackup202Response_1 = require("./createBackup202Response");
60
+ const createBackupRequest_1 = require("./createBackupRequest");
61
+ const createCommandRequest_1 = require("./createCommandRequest");
62
+ const createCronJob422Response_1 = require("./createCronJob422Response");
63
+ const createCronJobRequest_1 = require("./createCronJobRequest");
64
+ const createEnvironmentRequest_1 = require("./createEnvironmentRequest");
65
+ const cron_1 = require("./cron");
66
+ const cronRun_1 = require("./cronRun");
67
+ const deleteBackup200Response_1 = require("./deleteBackup200Response");
68
+ const downloadBackup200Response_1 = require("./downloadBackup200Response");
69
+ const environment_1 = require("./environment");
70
+ const getEcrLoginCredentials200Response_1 = require("./getEcrLoginCredentials200Response");
71
+ const getSshAccessCredentials200Response_1 = require("./getSshAccessCredentials200Response");
72
+ const getSshAccessCredentials200ResponseCredentials_1 = require("./getSshAccessCredentials200ResponseCredentials");
73
+ const listBackups200Response_1 = require("./listBackups200Response");
74
+ const listBackups200ResponseBackupsInner_1 = require("./listBackups200ResponseBackupsInner");
75
+ const scalingPolicy_1 = require("./scalingPolicy");
76
+ const syncOperation_1 = require("./syncOperation");
77
+ const syncToEnvironmentRequest_1 = require("./syncToEnvironmentRequest");
78
+ const updateCronJobRequest_1 = require("./updateCronJobRequest");
79
+ const updateEnvironmentRequest_1 = require("./updateEnvironmentRequest");
80
+ const updateEnvironmentStateRequest_1 = require("./updateEnvironmentStateRequest");
81
+ const updateEnvironmentVariableRequest_1 = require("./updateEnvironmentVariableRequest");
82
+ const validateCompose200Response_1 = require("./validateCompose200Response");
83
+ const validateComposeRequest_1 = require("./validateComposeRequest");
84
+ const variable_1 = require("./variable");
85
+ const volume_1 = require("./volume");
86
+ /* tslint:disable:no-unused-variable */
87
+ let primitives = [
88
+ "string",
89
+ "boolean",
90
+ "double",
91
+ "integer",
92
+ "long",
93
+ "float",
94
+ "number",
95
+ "any"
96
+ ];
97
+ let enumsMap = {
98
+ "CronRun.RunTypeEnum": cronRun_1.CronRun.RunTypeEnum,
99
+ "CronRun.StatusEnum": cronRun_1.CronRun.StatusEnum,
100
+ "ScalingPolicy.MetricEnum": scalingPolicy_1.ScalingPolicy.MetricEnum,
101
+ };
102
+ let typeMap = {
103
+ "Application": application_1.Application,
104
+ "Command": command_1.Command,
105
+ "Compose": compose_1.Compose,
106
+ "Container": container_1.Container,
107
+ "ContainerEnvironmentInner": containerEnvironmentInner_1.ContainerEnvironmentInner,
108
+ "ContainerImageReference": containerImageReference_1.ContainerImageReference,
109
+ "ContainerMountPointsInner": containerMountPointsInner_1.ContainerMountPointsInner,
110
+ "CreateBackup202Response": createBackup202Response_1.CreateBackup202Response,
111
+ "CreateBackupRequest": createBackupRequest_1.CreateBackupRequest,
112
+ "CreateCommandRequest": createCommandRequest_1.CreateCommandRequest,
113
+ "CreateCronJob422Response": createCronJob422Response_1.CreateCronJob422Response,
114
+ "CreateCronJobRequest": createCronJobRequest_1.CreateCronJobRequest,
115
+ "CreateEnvironmentRequest": createEnvironmentRequest_1.CreateEnvironmentRequest,
116
+ "Cron": cron_1.Cron,
117
+ "CronRun": cronRun_1.CronRun,
118
+ "DeleteBackup200Response": deleteBackup200Response_1.DeleteBackup200Response,
119
+ "DownloadBackup200Response": downloadBackup200Response_1.DownloadBackup200Response,
120
+ "Environment": environment_1.Environment,
121
+ "GetEcrLoginCredentials200Response": getEcrLoginCredentials200Response_1.GetEcrLoginCredentials200Response,
122
+ "GetSshAccessCredentials200Response": getSshAccessCredentials200Response_1.GetSshAccessCredentials200Response,
123
+ "GetSshAccessCredentials200ResponseCredentials": getSshAccessCredentials200ResponseCredentials_1.GetSshAccessCredentials200ResponseCredentials,
124
+ "ListBackups200Response": listBackups200Response_1.ListBackups200Response,
125
+ "ListBackups200ResponseBackupsInner": listBackups200ResponseBackupsInner_1.ListBackups200ResponseBackupsInner,
126
+ "ScalingPolicy": scalingPolicy_1.ScalingPolicy,
127
+ "SyncOperation": syncOperation_1.SyncOperation,
128
+ "SyncToEnvironmentRequest": syncToEnvironmentRequest_1.SyncToEnvironmentRequest,
129
+ "UpdateCronJobRequest": updateCronJobRequest_1.UpdateCronJobRequest,
130
+ "UpdateEnvironmentRequest": updateEnvironmentRequest_1.UpdateEnvironmentRequest,
131
+ "UpdateEnvironmentStateRequest": updateEnvironmentStateRequest_1.UpdateEnvironmentStateRequest,
132
+ "UpdateEnvironmentVariableRequest": updateEnvironmentVariableRequest_1.UpdateEnvironmentVariableRequest,
133
+ "ValidateCompose200Response": validateCompose200Response_1.ValidateCompose200Response,
134
+ "ValidateComposeRequest": validateComposeRequest_1.ValidateComposeRequest,
135
+ "Variable": variable_1.Variable,
136
+ "Volume": volume_1.Volume,
137
+ };
138
+ // Check if a string starts with another string without using es6 features
139
+ function startsWith(str, match) {
140
+ return str.substring(0, match.length) === match;
141
+ }
142
+ // Check if a string ends with another string without using es6 features
143
+ function endsWith(str, match) {
144
+ return str.length >= match.length && str.substring(str.length - match.length) === match;
145
+ }
146
+ const nullableSuffix = " | null";
147
+ const optionalSuffix = " | undefined";
148
+ const arrayPrefix = "Array<";
149
+ const arraySuffix = ">";
150
+ const mapPrefix = "{ [key: string]: ";
151
+ const mapSuffix = "; }";
152
+ class ObjectSerializer {
153
+ static findCorrectType(data, expectedType) {
154
+ if (data == undefined) {
155
+ return expectedType;
156
+ }
157
+ else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) {
158
+ return expectedType;
159
+ }
160
+ else if (expectedType === "Date") {
161
+ return expectedType;
162
+ }
163
+ else {
164
+ if (enumsMap[expectedType]) {
165
+ return expectedType;
166
+ }
167
+ if (!typeMap[expectedType]) {
168
+ return expectedType; // w/e we don't know the type
169
+ }
170
+ // Check the discriminator
171
+ let discriminatorProperty = typeMap[expectedType].discriminator;
172
+ if (discriminatorProperty == null) {
173
+ return expectedType; // the type does not have a discriminator. use it.
174
+ }
175
+ else {
176
+ if (data[discriminatorProperty]) {
177
+ var discriminatorType = data[discriminatorProperty];
178
+ if (typeMap[discriminatorType]) {
179
+ return discriminatorType; // use the type given in the discriminator
180
+ }
181
+ else {
182
+ return expectedType; // discriminator did not map to a type
183
+ }
184
+ }
185
+ else {
186
+ return expectedType; // discriminator was not present (or an empty string)
187
+ }
188
+ }
189
+ }
190
+ }
191
+ static serialize(data, type) {
192
+ if (data == undefined) {
193
+ return data;
194
+ }
195
+ else if (primitives.indexOf(type.toLowerCase()) !== -1) {
196
+ return data;
197
+ }
198
+ else if (endsWith(type, nullableSuffix)) {
199
+ let subType = type.slice(0, -nullableSuffix.length); // Type | null => Type
200
+ return ObjectSerializer.serialize(data, subType);
201
+ }
202
+ else if (endsWith(type, optionalSuffix)) {
203
+ let subType = type.slice(0, -optionalSuffix.length); // Type | undefined => Type
204
+ return ObjectSerializer.serialize(data, subType);
205
+ }
206
+ else if (startsWith(type, arrayPrefix)) {
207
+ let subType = type.slice(arrayPrefix.length, -arraySuffix.length); // Array<Type> => Type
208
+ let transformedData = [];
209
+ for (let index = 0; index < data.length; index++) {
210
+ let datum = data[index];
211
+ transformedData.push(ObjectSerializer.serialize(datum, subType));
212
+ }
213
+ return transformedData;
214
+ }
215
+ else if (startsWith(type, mapPrefix)) {
216
+ let subType = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type
217
+ let transformedData = {};
218
+ for (let key in data) {
219
+ transformedData[key] = ObjectSerializer.serialize(data[key], subType);
220
+ }
221
+ return transformedData;
222
+ }
223
+ else if (type === "Date") {
224
+ return data.toISOString();
225
+ }
226
+ else {
227
+ if (enumsMap[type]) {
228
+ return data;
229
+ }
230
+ if (!typeMap[type]) { // in case we dont know the type
231
+ return data;
232
+ }
233
+ // Get the actual type of this object
234
+ type = this.findCorrectType(data, type);
235
+ // get the map for the correct type.
236
+ let attributeTypes = typeMap[type].getAttributeTypeMap();
237
+ let instance = {};
238
+ for (let index = 0; index < attributeTypes.length; index++) {
239
+ let attributeType = attributeTypes[index];
240
+ instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type);
241
+ }
242
+ return instance;
243
+ }
244
+ }
245
+ static deserialize(data, type) {
246
+ // polymorphism may change the actual type.
247
+ type = ObjectSerializer.findCorrectType(data, type);
248
+ if (data == undefined) {
249
+ return data;
250
+ }
251
+ else if (primitives.indexOf(type.toLowerCase()) !== -1) {
252
+ return data;
253
+ }
254
+ else if (endsWith(type, nullableSuffix)) {
255
+ let subType = type.slice(0, -nullableSuffix.length); // Type | null => Type
256
+ return ObjectSerializer.deserialize(data, subType);
257
+ }
258
+ else if (endsWith(type, optionalSuffix)) {
259
+ let subType = type.slice(0, -optionalSuffix.length); // Type | undefined => Type
260
+ return ObjectSerializer.deserialize(data, subType);
261
+ }
262
+ else if (startsWith(type, arrayPrefix)) {
263
+ let subType = type.slice(arrayPrefix.length, -arraySuffix.length); // Array<Type> => Type
264
+ let transformedData = [];
265
+ for (let index = 0; index < data.length; index++) {
266
+ let datum = data[index];
267
+ transformedData.push(ObjectSerializer.deserialize(datum, subType));
268
+ }
269
+ return transformedData;
270
+ }
271
+ else if (startsWith(type, mapPrefix)) {
272
+ let subType = type.slice(mapPrefix.length, -mapSuffix.length); // { [key: string]: Type; } => Type
273
+ let transformedData = {};
274
+ for (let key in data) {
275
+ transformedData[key] = ObjectSerializer.deserialize(data[key], subType);
276
+ }
277
+ return transformedData;
278
+ }
279
+ else if (type === "Date") {
280
+ return new Date(data);
281
+ }
282
+ else {
283
+ if (enumsMap[type]) { // is Enum
284
+ return data;
285
+ }
286
+ if (!typeMap[type]) { // dont know the type
287
+ return data;
288
+ }
289
+ let instance = new typeMap[type]();
290
+ let attributeTypes = typeMap[type].getAttributeTypeMap();
291
+ for (let index = 0; index < attributeTypes.length; index++) {
292
+ let attributeType = attributeTypes[index];
293
+ instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type);
294
+ }
295
+ return instance;
296
+ }
297
+ }
298
+ }
299
+ exports.ObjectSerializer = ObjectSerializer;
300
+ class HttpBasicAuth {
301
+ constructor() {
302
+ this.username = '';
303
+ this.password = '';
304
+ }
305
+ applyToRequest(requestOptions) {
306
+ requestOptions.auth = {
307
+ username: this.username, password: this.password
308
+ };
309
+ }
310
+ }
311
+ exports.HttpBasicAuth = HttpBasicAuth;
312
+ class HttpBearerAuth {
313
+ constructor() {
314
+ this.accessToken = '';
315
+ }
316
+ applyToRequest(requestOptions) {
317
+ if (requestOptions && requestOptions.headers) {
318
+ const accessToken = typeof this.accessToken === 'function'
319
+ ? this.accessToken()
320
+ : this.accessToken;
321
+ requestOptions.headers["Authorization"] = "Bearer " + accessToken;
322
+ }
323
+ }
324
+ }
325
+ exports.HttpBearerAuth = HttpBearerAuth;
326
+ class ApiKeyAuth {
327
+ constructor(location, paramName) {
328
+ this.location = location;
329
+ this.paramName = paramName;
330
+ this.apiKey = '';
331
+ }
332
+ applyToRequest(requestOptions) {
333
+ if (this.location == "query") {
334
+ requestOptions.qs[this.paramName] = this.apiKey;
335
+ }
336
+ else if (this.location == "header" && requestOptions && requestOptions.headers) {
337
+ requestOptions.headers[this.paramName] = this.apiKey;
338
+ }
339
+ else if (this.location == 'cookie' && requestOptions && requestOptions.headers) {
340
+ if (requestOptions.headers['Cookie']) {
341
+ requestOptions.headers['Cookie'] += '; ' + this.paramName + '=' + encodeURIComponent(this.apiKey);
342
+ }
343
+ else {
344
+ requestOptions.headers['Cookie'] = this.paramName + '=' + encodeURIComponent(this.apiKey);
345
+ }
346
+ }
347
+ }
348
+ }
349
+ exports.ApiKeyAuth = ApiKeyAuth;
350
+ class OAuth {
351
+ constructor() {
352
+ this.accessToken = '';
353
+ }
354
+ applyToRequest(requestOptions) {
355
+ if (requestOptions && requestOptions.headers) {
356
+ requestOptions.headers["Authorization"] = "Bearer " + this.accessToken;
357
+ }
358
+ }
359
+ }
360
+ exports.OAuth = OAuth;
361
+ class VoidAuth {
362
+ constructor() {
363
+ this.username = '';
364
+ this.password = '';
365
+ }
366
+ applyToRequest(_) {
367
+ // Do nothing
368
+ }
369
+ }
370
+ exports.VoidAuth = VoidAuth;
@@ -0,0 +1,35 @@
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 ScalingPolicy {
13
+ 'metric'?: ScalingPolicy.MetricEnum;
14
+ 'targetValue'?: number;
15
+ 'scaleInCooldownSeconds'?: number;
16
+ 'scaleOutCooldownSeconds'?: number;
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
+ }
29
+ export declare namespace ScalingPolicy {
30
+ enum MetricEnum {
31
+ CpuUtilization,
32
+ MemoryUtilization,
33
+ Rps
34
+ }
35
+ }
@@ -0,0 +1,51 @@
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.ScalingPolicy = void 0;
15
+ class ScalingPolicy {
16
+ static getAttributeTypeMap() {
17
+ return ScalingPolicy.attributeTypeMap;
18
+ }
19
+ }
20
+ exports.ScalingPolicy = ScalingPolicy;
21
+ ScalingPolicy.discriminator = undefined;
22
+ ScalingPolicy.attributeTypeMap = [
23
+ {
24
+ "name": "metric",
25
+ "baseName": "metric",
26
+ "type": "ScalingPolicy.MetricEnum"
27
+ },
28
+ {
29
+ "name": "targetValue",
30
+ "baseName": "targetValue",
31
+ "type": "number"
32
+ },
33
+ {
34
+ "name": "scaleInCooldownSeconds",
35
+ "baseName": "scaleInCooldownSeconds",
36
+ "type": "number"
37
+ },
38
+ {
39
+ "name": "scaleOutCooldownSeconds",
40
+ "baseName": "scaleOutCooldownSeconds",
41
+ "type": "number"
42
+ }
43
+ ];
44
+ (function (ScalingPolicy) {
45
+ let MetricEnum;
46
+ (function (MetricEnum) {
47
+ MetricEnum[MetricEnum["CpuUtilization"] = 'CPUUtilization'] = "CpuUtilization";
48
+ MetricEnum[MetricEnum["MemoryUtilization"] = 'MemoryUtilization'] = "MemoryUtilization";
49
+ MetricEnum[MetricEnum["Rps"] = 'RPS'] = "Rps";
50
+ })(MetricEnum = ScalingPolicy.MetricEnum || (ScalingPolicy.MetricEnum = {}));
51
+ })(ScalingPolicy = exports.ScalingPolicy || (exports.ScalingPolicy = {}));
@@ -0,0 +1,31 @@
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 SyncOperation {
13
+ 'syncId'?: string;
14
+ 'syncType'?: string;
15
+ 'sourceEnvironment'?: string;
16
+ 'targetEnvironment'?: string;
17
+ 'status'?: string;
18
+ 'createdAt'?: string;
19
+ 'completedAt'?: string;
20
+ static discriminator: string | undefined;
21
+ static attributeTypeMap: Array<{
22
+ name: string;
23
+ baseName: string;
24
+ type: string;
25
+ }>;
26
+ static getAttributeTypeMap(): {
27
+ name: string;
28
+ baseName: string;
29
+ type: string;
30
+ }[];
31
+ }
@@ -0,0 +1,58 @@
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.SyncOperation = void 0;
15
+ class SyncOperation {
16
+ static getAttributeTypeMap() {
17
+ return SyncOperation.attributeTypeMap;
18
+ }
19
+ }
20
+ exports.SyncOperation = SyncOperation;
21
+ SyncOperation.discriminator = undefined;
22
+ SyncOperation.attributeTypeMap = [
23
+ {
24
+ "name": "syncId",
25
+ "baseName": "syncId",
26
+ "type": "string"
27
+ },
28
+ {
29
+ "name": "syncType",
30
+ "baseName": "syncType",
31
+ "type": "string"
32
+ },
33
+ {
34
+ "name": "sourceEnvironment",
35
+ "baseName": "sourceEnvironment",
36
+ "type": "string"
37
+ },
38
+ {
39
+ "name": "targetEnvironment",
40
+ "baseName": "targetEnvironment",
41
+ "type": "string"
42
+ },
43
+ {
44
+ "name": "status",
45
+ "baseName": "status",
46
+ "type": "string"
47
+ },
48
+ {
49
+ "name": "createdAt",
50
+ "baseName": "createdAt",
51
+ "type": "string"
52
+ },
53
+ {
54
+ "name": "completedAt",
55
+ "baseName": "completedAt",
56
+ "type": "string"
57
+ }
58
+ ];
@@ -0,0 +1,25 @@
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 SyncToEnvironmentRequest {
13
+ 'sourceEnvironment'?: string;
14
+ static discriminator: string | undefined;
15
+ static attributeTypeMap: Array<{
16
+ name: string;
17
+ baseName: string;
18
+ type: string;
19
+ }>;
20
+ static getAttributeTypeMap(): {
21
+ name: string;
22
+ baseName: string;
23
+ type: string;
24
+ }[];
25
+ }
@@ -0,0 +1,28 @@
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.SyncToEnvironmentRequest = void 0;
15
+ class SyncToEnvironmentRequest {
16
+ static getAttributeTypeMap() {
17
+ return SyncToEnvironmentRequest.attributeTypeMap;
18
+ }
19
+ }
20
+ exports.SyncToEnvironmentRequest = SyncToEnvironmentRequest;
21
+ SyncToEnvironmentRequest.discriminator = undefined;
22
+ SyncToEnvironmentRequest.attributeTypeMap = [
23
+ {
24
+ "name": "sourceEnvironment",
25
+ "baseName": "sourceEnvironment",
26
+ "type": "string"
27
+ }
28
+ ];
@@ -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
+ import { Compose } from './compose';
13
+ export declare class UpdateComposeRequest {
14
+ 'composeDefinition'?: Compose;
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,28 @@
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.UpdateComposeRequest = void 0;
15
+ class UpdateComposeRequest {
16
+ static getAttributeTypeMap() {
17
+ return UpdateComposeRequest.attributeTypeMap;
18
+ }
19
+ }
20
+ exports.UpdateComposeRequest = UpdateComposeRequest;
21
+ UpdateComposeRequest.discriminator = undefined;
22
+ UpdateComposeRequest.attributeTypeMap = [
23
+ {
24
+ "name": "composeDefinition",
25
+ "baseName": "composeDefinition",
26
+ "type": "Compose"
27
+ }
28
+ ];