@quantcdn/quant-client 3.0.4 → 4.1.0

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