@quantcdn/quant-client 3.0.4 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +148 -18
- package/api.ts +24933 -0
- package/base.ts +89 -0
- package/common.ts +150 -0
- package/configuration.ts +115 -0
- package/dist/api.d.ts +17980 -2
- package/dist/api.js +13594 -16
- package/dist/base.d.ts +66 -0
- package/dist/base.js +68 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +161 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +44 -0
- package/dist/esm/api.d.ts +17980 -0
- package/dist/esm/api.js +13455 -0
- package/dist/esm/base.d.ts +66 -0
- package/dist/esm/base.js +63 -0
- package/dist/esm/common.d.ts +65 -0
- package/dist/esm/common.js +149 -0
- package/dist/esm/configuration.d.ts +91 -0
- package/dist/esm/configuration.js +40 -0
- package/dist/esm/examples/basic-usage.d.ts +4 -0
- package/dist/esm/examples/basic-usage.js +93 -0
- package/dist/esm/index.d.ts +13 -0
- package/dist/esm/index.js +15 -0
- package/dist/examples/basic-usage.d.ts +4 -0
- package/dist/examples/basic-usage.js +95 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/index.ts +18 -0
- package/package.json +44 -22
- package/tsconfig.json +18 -0
- package/dist/api/apis.d.ts +0 -32
- package/dist/api/apis.js +0 -50
- package/dist/api/applicationsApi.d.ts +0 -104
- package/dist/api/applicationsApi.js +0 -431
- package/dist/api/backupManagementApi.d.ts +0 -112
- package/dist/api/backupManagementApi.js +0 -464
- package/dist/api/commandsApi.d.ts +0 -80
- package/dist/api/commandsApi.js +0 -316
- package/dist/api/composeApi.d.ts +0 -67
- package/dist/api/composeApi.js +0 -240
- package/dist/api/containersApi.d.ts +0 -67
- package/dist/api/containersApi.js +0 -236
- package/dist/api/cronApi.d.ts +0 -151
- package/dist/api/cronApi.js +0 -681
- package/dist/api/environmentsApi.d.ts +0 -194
- package/dist/api/environmentsApi.js +0 -869
- package/dist/api/sSHAccessApi.d.ts +0 -50
- package/dist/api/sSHAccessApi.js +0 -162
- package/dist/api/scalingPolicyApi.d.ts +0 -82
- package/dist/api/scalingPolicyApi.js +0 -307
- package/dist/api/variablesApi.d.ts +0 -83
- package/dist/api/variablesApi.js +0 -313
- package/dist/api/volumesApi.d.ts +0 -97
- package/dist/api/volumesApi.js +0 -405
- package/dist/model/application.d.ts +0 -38
- package/dist/model/application.js +0 -93
- package/dist/model/command.d.ts +0 -34
- package/dist/model/command.js +0 -73
- package/dist/model/compose.d.ts +0 -32
- package/dist/model/compose.js +0 -58
- package/dist/model/configuration.d.ts +0 -26
- package/dist/model/configuration.js +0 -30
- package/dist/model/container.d.ts +0 -75
- package/dist/model/container.js +0 -121
- package/dist/model/containerDependsOnInner.d.ts +0 -40
- package/dist/model/containerDependsOnInner.js +0 -42
- package/dist/model/containerEnvironmentInner.d.ts +0 -32
- package/dist/model/containerEnvironmentInner.js +0 -33
- package/dist/model/containerHealthCheck.d.ts +0 -47
- package/dist/model/containerHealthCheck.js +0 -65
- package/dist/model/containerImageReference.d.ts +0 -38
- package/dist/model/containerImageReference.js +0 -40
- package/dist/model/containerMountPointsInner.d.ts +0 -33
- package/dist/model/containerMountPointsInner.js +0 -41
- package/dist/model/containerSecretsInner.d.ts +0 -32
- package/dist/model/containerSecretsInner.js +0 -33
- package/dist/model/createApplicationRequest.d.ts +0 -28
- package/dist/model/createApplicationRequest.js +0 -43
- package/dist/model/createBackup202Response.d.ts +0 -27
- package/dist/model/createBackup202Response.js +0 -38
- package/dist/model/createBackupRequest.d.ts +0 -32
- package/dist/model/createBackupRequest.js +0 -33
- package/dist/model/createCommandRequest.d.ts +0 -25
- package/dist/model/createCommandRequest.js +0 -28
- package/dist/model/createCronJob422Response.d.ts +0 -26
- package/dist/model/createCronJob422Response.js +0 -33
- package/dist/model/createCronJobRequest.d.ts +0 -30
- package/dist/model/createCronJobRequest.js +0 -56
- package/dist/model/createEnvironmentRequest.d.ts +0 -34
- package/dist/model/createEnvironmentRequest.js +0 -53
- package/dist/model/cron.d.ts +0 -27
- package/dist/model/cron.js +0 -38
- package/dist/model/cronRun.d.ts +0 -48
- package/dist/model/cronRun.js +0 -89
- package/dist/model/deleteBackup200Response.d.ts +0 -26
- package/dist/model/deleteBackup200Response.js +0 -33
- package/dist/model/downloadBackup200Response.d.ts +0 -36
- package/dist/model/downloadBackup200Response.js +0 -38
- package/dist/model/environment.d.ts +0 -45
- package/dist/model/environment.js +0 -103
- package/dist/model/getEcrLoginCredentials200Response.d.ts +0 -28
- package/dist/model/getEcrLoginCredentials200Response.js +0 -43
- package/dist/model/getScalingPolicies200Response.d.ts +0 -26
- package/dist/model/getScalingPolicies200Response.js +0 -28
- package/dist/model/getSshAccessCredentials200Response.d.ts +0 -34
- package/dist/model/getSshAccessCredentials200Response.js +0 -68
- package/dist/model/getSshAccessCredentials200ResponseCredentials.d.ts +0 -28
- package/dist/model/getSshAccessCredentials200ResponseCredentials.js +0 -43
- package/dist/model/listBackups200Response.d.ts +0 -32
- package/dist/model/listBackups200Response.js +0 -43
- package/dist/model/listBackups200ResponseBackupsInner.d.ts +0 -37
- package/dist/model/listBackups200ResponseBackupsInner.js +0 -88
- package/dist/model/listBackups422Response.d.ts +0 -25
- package/dist/model/listBackups422Response.js +0 -28
- package/dist/model/models.d.ts +0 -89
- package/dist/model/models.js +0 -387
- package/dist/model/scalingPolicy.d.ts +0 -35
- package/dist/model/scalingPolicy.js +0 -51
- package/dist/model/syncOperation.d.ts +0 -31
- package/dist/model/syncOperation.js +0 -58
- package/dist/model/syncToEnvironmentRequest.d.ts +0 -25
- package/dist/model/syncToEnvironmentRequest.js +0 -28
- package/dist/model/updateComposeRequest.d.ts +0 -26
- package/dist/model/updateComposeRequest.js +0 -28
- package/dist/model/updateCronJobRequest.d.ts +0 -29
- package/dist/model/updateCronJobRequest.js +0 -48
- package/dist/model/updateEnvironmentComposeRequest.d.ts +0 -26
- package/dist/model/updateEnvironmentComposeRequest.js +0 -28
- package/dist/model/updateEnvironmentRequest.d.ts +0 -34
- package/dist/model/updateEnvironmentRequest.js +0 -38
- package/dist/model/updateEnvironmentStateRequest.d.ts +0 -26
- package/dist/model/updateEnvironmentStateRequest.js +0 -33
- package/dist/model/updateEnvironmentVariableRequest.d.ts +0 -25
- package/dist/model/updateEnvironmentVariableRequest.js +0 -28
- package/dist/model/validateCompose200Response.d.ts +0 -33
- package/dist/model/validateCompose200Response.js +0 -38
- package/dist/model/validateCompose422Response.d.ts +0 -25
- package/dist/model/validateCompose422Response.js +0 -28
- package/dist/model/validateComposeRequest.d.ts +0 -36
- package/dist/model/validateComposeRequest.js +0 -38
- package/dist/model/variable.d.ts +0 -26
- package/dist/model/variable.js +0 -33
- package/dist/model/volume.d.ts +0 -32
- package/dist/model/volume.js +0 -63
package/dist/model/models.js
DELETED
|
@@ -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
|
-
];
|