qovery-ws-typescript-axios 0.1.619 → 0.1.621
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/api.ts +361 -0
- package/dist/api.d.ts +235 -0
- package/dist/api.js +249 -2
- package/dist/esm/api.d.ts +235 -0
- package/dist/esm/api.js +239 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -89,6 +89,124 @@ export interface ArgoCdAppStatusDto {
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
|
|
92
|
+
/**
|
|
93
|
+
* @type BlueprintPreviewResult
|
|
94
|
+
* Final result of a blueprint update preview. Exactly one frame is sent, then the connection closes. The `type` field selects the variant.
|
|
95
|
+
* @export
|
|
96
|
+
*/
|
|
97
|
+
export type BlueprintPreviewResult = BlueprintPreviewResultOneOf | BlueprintPreviewResultOneOf1 | BlueprintPreviewResultOneOf2 | BlueprintPreviewResultOneOf3;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* The preview succeeded. `payload` is the human-readable list of changes; `service_type` e.g. \"TERRAFORM\".
|
|
101
|
+
* @export
|
|
102
|
+
* @interface BlueprintPreviewResultOneOf
|
|
103
|
+
*/
|
|
104
|
+
export interface BlueprintPreviewResultOneOf {
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {string}
|
|
108
|
+
* @memberof BlueprintPreviewResultOneOf
|
|
109
|
+
*/
|
|
110
|
+
'payload': string;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof BlueprintPreviewResultOneOf
|
|
115
|
+
*/
|
|
116
|
+
'service_type': string;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @type {string}
|
|
120
|
+
* @memberof BlueprintPreviewResultOneOf
|
|
121
|
+
*/
|
|
122
|
+
'type': BlueprintPreviewResultOneOfTypeEnum;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export const BlueprintPreviewResultOneOfTypeEnum = {
|
|
126
|
+
DIFF: 'diff'
|
|
127
|
+
} as const;
|
|
128
|
+
|
|
129
|
+
export type BlueprintPreviewResultOneOfTypeEnum = typeof BlueprintPreviewResultOneOfTypeEnum[keyof typeof BlueprintPreviewResultOneOfTypeEnum];
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* The preview failed. `message` explains why.
|
|
133
|
+
* @export
|
|
134
|
+
* @interface BlueprintPreviewResultOneOf1
|
|
135
|
+
*/
|
|
136
|
+
export interface BlueprintPreviewResultOneOf1 {
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @type {string}
|
|
140
|
+
* @memberof BlueprintPreviewResultOneOf1
|
|
141
|
+
*/
|
|
142
|
+
'message': string;
|
|
143
|
+
/**
|
|
144
|
+
*
|
|
145
|
+
* @type {string}
|
|
146
|
+
* @memberof BlueprintPreviewResultOneOf1
|
|
147
|
+
*/
|
|
148
|
+
'type': BlueprintPreviewResultOneOf1TypeEnum;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export const BlueprintPreviewResultOneOf1TypeEnum = {
|
|
152
|
+
ERROR: 'error'
|
|
153
|
+
} as const;
|
|
154
|
+
|
|
155
|
+
export type BlueprintPreviewResultOneOf1TypeEnum = typeof BlueprintPreviewResultOneOf1TypeEnum[keyof typeof BlueprintPreviewResultOneOf1TypeEnum];
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* The preview was cancelled.
|
|
159
|
+
* @export
|
|
160
|
+
* @interface BlueprintPreviewResultOneOf2
|
|
161
|
+
*/
|
|
162
|
+
export interface BlueprintPreviewResultOneOf2 {
|
|
163
|
+
/**
|
|
164
|
+
*
|
|
165
|
+
* @type {string}
|
|
166
|
+
* @memberof BlueprintPreviewResultOneOf2
|
|
167
|
+
*/
|
|
168
|
+
'type': BlueprintPreviewResultOneOf2TypeEnum;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export const BlueprintPreviewResultOneOf2TypeEnum = {
|
|
172
|
+
CANCELLED: 'cancelled'
|
|
173
|
+
} as const;
|
|
174
|
+
|
|
175
|
+
export type BlueprintPreviewResultOneOf2TypeEnum = typeof BlueprintPreviewResultOneOf2TypeEnum[keyof typeof BlueprintPreviewResultOneOf2TypeEnum];
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* The preview did not complete in time.
|
|
179
|
+
* @export
|
|
180
|
+
* @interface BlueprintPreviewResultOneOf3
|
|
181
|
+
*/
|
|
182
|
+
export interface BlueprintPreviewResultOneOf3 {
|
|
183
|
+
/**
|
|
184
|
+
*
|
|
185
|
+
* @type {string}
|
|
186
|
+
* @memberof BlueprintPreviewResultOneOf3
|
|
187
|
+
*/
|
|
188
|
+
'type': BlueprintPreviewResultOneOf3TypeEnum;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export const BlueprintPreviewResultOneOf3TypeEnum = {
|
|
192
|
+
TIMEOUT: 'timeout'
|
|
193
|
+
} as const;
|
|
194
|
+
|
|
195
|
+
export type BlueprintPreviewResultOneOf3TypeEnum = typeof BlueprintPreviewResultOneOf3TypeEnum[keyof typeof BlueprintPreviewResultOneOf3TypeEnum];
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* One blueprint service-created event. The stream emits these until the connection closes.
|
|
199
|
+
* @export
|
|
200
|
+
* @interface BlueprintServiceCreatedEvent
|
|
201
|
+
*/
|
|
202
|
+
export interface BlueprintServiceCreatedEvent {
|
|
203
|
+
/**
|
|
204
|
+
* Id of the blueprint whose service was created.
|
|
205
|
+
* @type {string}
|
|
206
|
+
* @memberof BlueprintServiceCreatedEvent
|
|
207
|
+
*/
|
|
208
|
+
'blueprint_id': string;
|
|
209
|
+
}
|
|
92
210
|
/**
|
|
93
211
|
*
|
|
94
212
|
* @export
|
|
@@ -2079,6 +2197,249 @@ export type UnitDto = typeof UnitDto[keyof typeof UnitDto];
|
|
|
2079
2197
|
|
|
2080
2198
|
|
|
2081
2199
|
|
|
2200
|
+
/**
|
|
2201
|
+
* BlueprintPreviewApi - axios parameter creator
|
|
2202
|
+
* @export
|
|
2203
|
+
*/
|
|
2204
|
+
export const BlueprintPreviewApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2205
|
+
return {
|
|
2206
|
+
/**
|
|
2207
|
+
*
|
|
2208
|
+
* @param {string} organization Organization id — for permission scoping. Frontend already has it.
|
|
2209
|
+
* @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
|
|
2210
|
+
* @param {string} previewId Preview id — the UUIDv7 q-core returned from `POST /api/blueprint/{id}/update/preview`. Doubles as the Pub/Sub channel suffix: `core.blueprint.preview.{preview_id}`.
|
|
2211
|
+
* @param {*} [options] Override http request option.
|
|
2212
|
+
* @throws {RequiredError}
|
|
2213
|
+
*/
|
|
2214
|
+
handleBlueprintPreviewRequest: async (organization: string, cluster: string, previewId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2215
|
+
// verify required parameter 'organization' is not null or undefined
|
|
2216
|
+
assertParamExists('handleBlueprintPreviewRequest', 'organization', organization)
|
|
2217
|
+
// verify required parameter 'cluster' is not null or undefined
|
|
2218
|
+
assertParamExists('handleBlueprintPreviewRequest', 'cluster', cluster)
|
|
2219
|
+
// verify required parameter 'previewId' is not null or undefined
|
|
2220
|
+
assertParamExists('handleBlueprintPreviewRequest', 'previewId', previewId)
|
|
2221
|
+
const localVarPath = `/blueprint/preview`
|
|
2222
|
+
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
|
|
2223
|
+
.replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)))
|
|
2224
|
+
.replace(`{${"preview_id"}}`, encodeURIComponent(String(previewId)));
|
|
2225
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2226
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2227
|
+
let baseOptions;
|
|
2228
|
+
if (configuration) {
|
|
2229
|
+
baseOptions = configuration.baseOptions;
|
|
2230
|
+
}
|
|
2231
|
+
|
|
2232
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2233
|
+
const localVarHeaderParameter = {} as any;
|
|
2234
|
+
const localVarQueryParameter = {} as any;
|
|
2235
|
+
|
|
2236
|
+
|
|
2237
|
+
|
|
2238
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2239
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2240
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2241
|
+
|
|
2242
|
+
return {
|
|
2243
|
+
url: toPathString(localVarUrlObj),
|
|
2244
|
+
options: localVarRequestOptions,
|
|
2245
|
+
};
|
|
2246
|
+
},
|
|
2247
|
+
}
|
|
2248
|
+
};
|
|
2249
|
+
|
|
2250
|
+
/**
|
|
2251
|
+
* BlueprintPreviewApi - functional programming interface
|
|
2252
|
+
* @export
|
|
2253
|
+
*/
|
|
2254
|
+
export const BlueprintPreviewApiFp = function(configuration?: Configuration) {
|
|
2255
|
+
const localVarAxiosParamCreator = BlueprintPreviewApiAxiosParamCreator(configuration)
|
|
2256
|
+
return {
|
|
2257
|
+
/**
|
|
2258
|
+
*
|
|
2259
|
+
* @param {string} organization Organization id — for permission scoping. Frontend already has it.
|
|
2260
|
+
* @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
|
|
2261
|
+
* @param {string} previewId Preview id — the UUIDv7 q-core returned from `POST /api/blueprint/{id}/update/preview`. Doubles as the Pub/Sub channel suffix: `core.blueprint.preview.{preview_id}`.
|
|
2262
|
+
* @param {*} [options] Override http request option.
|
|
2263
|
+
* @throws {RequiredError}
|
|
2264
|
+
*/
|
|
2265
|
+
async handleBlueprintPreviewRequest(organization: string, cluster: string, previewId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BlueprintPreviewResult>> {
|
|
2266
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.handleBlueprintPreviewRequest(organization, cluster, previewId, options);
|
|
2267
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2268
|
+
const localVarOperationServerBasePath = operationServerMap['BlueprintPreviewApi.handleBlueprintPreviewRequest']?.[localVarOperationServerIndex]?.url;
|
|
2269
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2270
|
+
},
|
|
2271
|
+
}
|
|
2272
|
+
};
|
|
2273
|
+
|
|
2274
|
+
/**
|
|
2275
|
+
* BlueprintPreviewApi - factory interface
|
|
2276
|
+
* @export
|
|
2277
|
+
*/
|
|
2278
|
+
export const BlueprintPreviewApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2279
|
+
const localVarFp = BlueprintPreviewApiFp(configuration)
|
|
2280
|
+
return {
|
|
2281
|
+
/**
|
|
2282
|
+
*
|
|
2283
|
+
* @param {string} organization Organization id — for permission scoping. Frontend already has it.
|
|
2284
|
+
* @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
|
|
2285
|
+
* @param {string} previewId Preview id — the UUIDv7 q-core returned from `POST /api/blueprint/{id}/update/preview`. Doubles as the Pub/Sub channel suffix: `core.blueprint.preview.{preview_id}`.
|
|
2286
|
+
* @param {*} [options] Override http request option.
|
|
2287
|
+
* @throws {RequiredError}
|
|
2288
|
+
*/
|
|
2289
|
+
handleBlueprintPreviewRequest(organization: string, cluster: string, previewId: string, options?: RawAxiosRequestConfig): AxiosPromise<BlueprintPreviewResult> {
|
|
2290
|
+
return localVarFp.handleBlueprintPreviewRequest(organization, cluster, previewId, options).then((request) => request(axios, basePath));
|
|
2291
|
+
},
|
|
2292
|
+
};
|
|
2293
|
+
};
|
|
2294
|
+
|
|
2295
|
+
/**
|
|
2296
|
+
* BlueprintPreviewApi - object-oriented interface
|
|
2297
|
+
* @export
|
|
2298
|
+
* @class BlueprintPreviewApi
|
|
2299
|
+
* @extends {BaseAPI}
|
|
2300
|
+
*/
|
|
2301
|
+
export class BlueprintPreviewApi extends BaseAPI {
|
|
2302
|
+
/**
|
|
2303
|
+
*
|
|
2304
|
+
* @param {string} organization Organization id — for permission scoping. Frontend already has it.
|
|
2305
|
+
* @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
|
|
2306
|
+
* @param {string} previewId Preview id — the UUIDv7 q-core returned from `POST /api/blueprint/{id}/update/preview`. Doubles as the Pub/Sub channel suffix: `core.blueprint.preview.{preview_id}`.
|
|
2307
|
+
* @param {*} [options] Override http request option.
|
|
2308
|
+
* @throws {RequiredError}
|
|
2309
|
+
* @memberof BlueprintPreviewApi
|
|
2310
|
+
*/
|
|
2311
|
+
public handleBlueprintPreviewRequest(organization: string, cluster: string, previewId: string, options?: RawAxiosRequestConfig) {
|
|
2312
|
+
return BlueprintPreviewApiFp(this.configuration).handleBlueprintPreviewRequest(organization, cluster, previewId, options).then((request) => request(this.axios, this.basePath));
|
|
2313
|
+
}
|
|
2314
|
+
}
|
|
2315
|
+
|
|
2316
|
+
|
|
2317
|
+
|
|
2318
|
+
/**
|
|
2319
|
+
* BlueprintServiceApi - axios parameter creator
|
|
2320
|
+
* @export
|
|
2321
|
+
*/
|
|
2322
|
+
export const BlueprintServiceApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2323
|
+
return {
|
|
2324
|
+
/**
|
|
2325
|
+
*
|
|
2326
|
+
* @param {string} organization
|
|
2327
|
+
* @param {string | null} cluster
|
|
2328
|
+
* @param {string} project
|
|
2329
|
+
* @param {string} environment
|
|
2330
|
+
* @param {*} [options] Override http request option.
|
|
2331
|
+
* @throws {RequiredError}
|
|
2332
|
+
*/
|
|
2333
|
+
handleBlueprintServiceCreatedRequest: async (organization: string, cluster: string | null, project: string, environment: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2334
|
+
// verify required parameter 'organization' is not null or undefined
|
|
2335
|
+
assertParamExists('handleBlueprintServiceCreatedRequest', 'organization', organization)
|
|
2336
|
+
// verify required parameter 'cluster' is not null or undefined
|
|
2337
|
+
assertParamExists('handleBlueprintServiceCreatedRequest', 'cluster', cluster)
|
|
2338
|
+
// verify required parameter 'project' is not null or undefined
|
|
2339
|
+
assertParamExists('handleBlueprintServiceCreatedRequest', 'project', project)
|
|
2340
|
+
// verify required parameter 'environment' is not null or undefined
|
|
2341
|
+
assertParamExists('handleBlueprintServiceCreatedRequest', 'environment', environment)
|
|
2342
|
+
const localVarPath = `/blueprint/service-created`
|
|
2343
|
+
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
|
|
2344
|
+
.replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)))
|
|
2345
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
2346
|
+
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)));
|
|
2347
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2348
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2349
|
+
let baseOptions;
|
|
2350
|
+
if (configuration) {
|
|
2351
|
+
baseOptions = configuration.baseOptions;
|
|
2352
|
+
}
|
|
2353
|
+
|
|
2354
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2355
|
+
const localVarHeaderParameter = {} as any;
|
|
2356
|
+
const localVarQueryParameter = {} as any;
|
|
2357
|
+
|
|
2358
|
+
|
|
2359
|
+
|
|
2360
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2361
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2362
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2363
|
+
|
|
2364
|
+
return {
|
|
2365
|
+
url: toPathString(localVarUrlObj),
|
|
2366
|
+
options: localVarRequestOptions,
|
|
2367
|
+
};
|
|
2368
|
+
},
|
|
2369
|
+
}
|
|
2370
|
+
};
|
|
2371
|
+
|
|
2372
|
+
/**
|
|
2373
|
+
* BlueprintServiceApi - functional programming interface
|
|
2374
|
+
* @export
|
|
2375
|
+
*/
|
|
2376
|
+
export const BlueprintServiceApiFp = function(configuration?: Configuration) {
|
|
2377
|
+
const localVarAxiosParamCreator = BlueprintServiceApiAxiosParamCreator(configuration)
|
|
2378
|
+
return {
|
|
2379
|
+
/**
|
|
2380
|
+
*
|
|
2381
|
+
* @param {string} organization
|
|
2382
|
+
* @param {string | null} cluster
|
|
2383
|
+
* @param {string} project
|
|
2384
|
+
* @param {string} environment
|
|
2385
|
+
* @param {*} [options] Override http request option.
|
|
2386
|
+
* @throws {RequiredError}
|
|
2387
|
+
*/
|
|
2388
|
+
async handleBlueprintServiceCreatedRequest(organization: string, cluster: string | null, project: string, environment: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BlueprintServiceCreatedEvent>> {
|
|
2389
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.handleBlueprintServiceCreatedRequest(organization, cluster, project, environment, options);
|
|
2390
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2391
|
+
const localVarOperationServerBasePath = operationServerMap['BlueprintServiceApi.handleBlueprintServiceCreatedRequest']?.[localVarOperationServerIndex]?.url;
|
|
2392
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2393
|
+
},
|
|
2394
|
+
}
|
|
2395
|
+
};
|
|
2396
|
+
|
|
2397
|
+
/**
|
|
2398
|
+
* BlueprintServiceApi - factory interface
|
|
2399
|
+
* @export
|
|
2400
|
+
*/
|
|
2401
|
+
export const BlueprintServiceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2402
|
+
const localVarFp = BlueprintServiceApiFp(configuration)
|
|
2403
|
+
return {
|
|
2404
|
+
/**
|
|
2405
|
+
*
|
|
2406
|
+
* @param {string} organization
|
|
2407
|
+
* @param {string | null} cluster
|
|
2408
|
+
* @param {string} project
|
|
2409
|
+
* @param {string} environment
|
|
2410
|
+
* @param {*} [options] Override http request option.
|
|
2411
|
+
* @throws {RequiredError}
|
|
2412
|
+
*/
|
|
2413
|
+
handleBlueprintServiceCreatedRequest(organization: string, cluster: string | null, project: string, environment: string, options?: RawAxiosRequestConfig): AxiosPromise<BlueprintServiceCreatedEvent> {
|
|
2414
|
+
return localVarFp.handleBlueprintServiceCreatedRequest(organization, cluster, project, environment, options).then((request) => request(axios, basePath));
|
|
2415
|
+
},
|
|
2416
|
+
};
|
|
2417
|
+
};
|
|
2418
|
+
|
|
2419
|
+
/**
|
|
2420
|
+
* BlueprintServiceApi - object-oriented interface
|
|
2421
|
+
* @export
|
|
2422
|
+
* @class BlueprintServiceApi
|
|
2423
|
+
* @extends {BaseAPI}
|
|
2424
|
+
*/
|
|
2425
|
+
export class BlueprintServiceApi extends BaseAPI {
|
|
2426
|
+
/**
|
|
2427
|
+
*
|
|
2428
|
+
* @param {string} organization
|
|
2429
|
+
* @param {string | null} cluster
|
|
2430
|
+
* @param {string} project
|
|
2431
|
+
* @param {string} environment
|
|
2432
|
+
* @param {*} [options] Override http request option.
|
|
2433
|
+
* @throws {RequiredError}
|
|
2434
|
+
* @memberof BlueprintServiceApi
|
|
2435
|
+
*/
|
|
2436
|
+
public handleBlueprintServiceCreatedRequest(organization: string, cluster: string | null, project: string, environment: string, options?: RawAxiosRequestConfig) {
|
|
2437
|
+
return BlueprintServiceApiFp(this.configuration).handleBlueprintServiceCreatedRequest(organization, cluster, project, environment, options).then((request) => request(this.axios, this.basePath));
|
|
2438
|
+
}
|
|
2439
|
+
}
|
|
2440
|
+
|
|
2441
|
+
|
|
2442
|
+
|
|
2082
2443
|
/**
|
|
2083
2444
|
* ClusterListNodesApi - axios parameter creator
|
|
2084
2445
|
* @export
|
package/dist/api.d.ts
CHANGED
|
@@ -75,6 +75,111 @@ export interface ArgoCdAppStatusDto {
|
|
|
75
75
|
*/
|
|
76
76
|
'state': ServiceStateDto;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* @type BlueprintPreviewResult
|
|
80
|
+
* Final result of a blueprint update preview. Exactly one frame is sent, then the connection closes. The `type` field selects the variant.
|
|
81
|
+
* @export
|
|
82
|
+
*/
|
|
83
|
+
export type BlueprintPreviewResult = BlueprintPreviewResultOneOf | BlueprintPreviewResultOneOf1 | BlueprintPreviewResultOneOf2 | BlueprintPreviewResultOneOf3;
|
|
84
|
+
/**
|
|
85
|
+
* The preview succeeded. `payload` is the human-readable list of changes; `service_type` e.g. \"TERRAFORM\".
|
|
86
|
+
* @export
|
|
87
|
+
* @interface BlueprintPreviewResultOneOf
|
|
88
|
+
*/
|
|
89
|
+
export interface BlueprintPreviewResultOneOf {
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof BlueprintPreviewResultOneOf
|
|
94
|
+
*/
|
|
95
|
+
'payload': string;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof BlueprintPreviewResultOneOf
|
|
100
|
+
*/
|
|
101
|
+
'service_type': string;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof BlueprintPreviewResultOneOf
|
|
106
|
+
*/
|
|
107
|
+
'type': BlueprintPreviewResultOneOfTypeEnum;
|
|
108
|
+
}
|
|
109
|
+
export declare const BlueprintPreviewResultOneOfTypeEnum: {
|
|
110
|
+
readonly DIFF: "diff";
|
|
111
|
+
};
|
|
112
|
+
export type BlueprintPreviewResultOneOfTypeEnum = typeof BlueprintPreviewResultOneOfTypeEnum[keyof typeof BlueprintPreviewResultOneOfTypeEnum];
|
|
113
|
+
/**
|
|
114
|
+
* The preview failed. `message` explains why.
|
|
115
|
+
* @export
|
|
116
|
+
* @interface BlueprintPreviewResultOneOf1
|
|
117
|
+
*/
|
|
118
|
+
export interface BlueprintPreviewResultOneOf1 {
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {string}
|
|
122
|
+
* @memberof BlueprintPreviewResultOneOf1
|
|
123
|
+
*/
|
|
124
|
+
'message': string;
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @type {string}
|
|
128
|
+
* @memberof BlueprintPreviewResultOneOf1
|
|
129
|
+
*/
|
|
130
|
+
'type': BlueprintPreviewResultOneOf1TypeEnum;
|
|
131
|
+
}
|
|
132
|
+
export declare const BlueprintPreviewResultOneOf1TypeEnum: {
|
|
133
|
+
readonly ERROR: "error";
|
|
134
|
+
};
|
|
135
|
+
export type BlueprintPreviewResultOneOf1TypeEnum = typeof BlueprintPreviewResultOneOf1TypeEnum[keyof typeof BlueprintPreviewResultOneOf1TypeEnum];
|
|
136
|
+
/**
|
|
137
|
+
* The preview was cancelled.
|
|
138
|
+
* @export
|
|
139
|
+
* @interface BlueprintPreviewResultOneOf2
|
|
140
|
+
*/
|
|
141
|
+
export interface BlueprintPreviewResultOneOf2 {
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @type {string}
|
|
145
|
+
* @memberof BlueprintPreviewResultOneOf2
|
|
146
|
+
*/
|
|
147
|
+
'type': BlueprintPreviewResultOneOf2TypeEnum;
|
|
148
|
+
}
|
|
149
|
+
export declare const BlueprintPreviewResultOneOf2TypeEnum: {
|
|
150
|
+
readonly CANCELLED: "cancelled";
|
|
151
|
+
};
|
|
152
|
+
export type BlueprintPreviewResultOneOf2TypeEnum = typeof BlueprintPreviewResultOneOf2TypeEnum[keyof typeof BlueprintPreviewResultOneOf2TypeEnum];
|
|
153
|
+
/**
|
|
154
|
+
* The preview did not complete in time.
|
|
155
|
+
* @export
|
|
156
|
+
* @interface BlueprintPreviewResultOneOf3
|
|
157
|
+
*/
|
|
158
|
+
export interface BlueprintPreviewResultOneOf3 {
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* @type {string}
|
|
162
|
+
* @memberof BlueprintPreviewResultOneOf3
|
|
163
|
+
*/
|
|
164
|
+
'type': BlueprintPreviewResultOneOf3TypeEnum;
|
|
165
|
+
}
|
|
166
|
+
export declare const BlueprintPreviewResultOneOf3TypeEnum: {
|
|
167
|
+
readonly TIMEOUT: "timeout";
|
|
168
|
+
};
|
|
169
|
+
export type BlueprintPreviewResultOneOf3TypeEnum = typeof BlueprintPreviewResultOneOf3TypeEnum[keyof typeof BlueprintPreviewResultOneOf3TypeEnum];
|
|
170
|
+
/**
|
|
171
|
+
* One blueprint service-created event. The stream emits these until the connection closes.
|
|
172
|
+
* @export
|
|
173
|
+
* @interface BlueprintServiceCreatedEvent
|
|
174
|
+
*/
|
|
175
|
+
export interface BlueprintServiceCreatedEvent {
|
|
176
|
+
/**
|
|
177
|
+
* Id of the blueprint whose service was created.
|
|
178
|
+
* @type {string}
|
|
179
|
+
* @memberof BlueprintServiceCreatedEvent
|
|
180
|
+
*/
|
|
181
|
+
'blueprint_id': string;
|
|
182
|
+
}
|
|
78
183
|
/**
|
|
79
184
|
*
|
|
80
185
|
* @export
|
|
@@ -2018,6 +2123,136 @@ export declare const UnitDto: {
|
|
|
2018
2123
|
readonly GI_B: "GiB";
|
|
2019
2124
|
};
|
|
2020
2125
|
export type UnitDto = typeof UnitDto[keyof typeof UnitDto];
|
|
2126
|
+
/**
|
|
2127
|
+
* BlueprintPreviewApi - axios parameter creator
|
|
2128
|
+
* @export
|
|
2129
|
+
*/
|
|
2130
|
+
export declare const BlueprintPreviewApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2131
|
+
/**
|
|
2132
|
+
*
|
|
2133
|
+
* @param {string} organization Organization id — for permission scoping. Frontend already has it.
|
|
2134
|
+
* @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
|
|
2135
|
+
* @param {string} previewId Preview id — the UUIDv7 q-core returned from `POST /api/blueprint/{id}/update/preview`. Doubles as the Pub/Sub channel suffix: `core.blueprint.preview.{preview_id}`.
|
|
2136
|
+
* @param {*} [options] Override http request option.
|
|
2137
|
+
* @throws {RequiredError}
|
|
2138
|
+
*/
|
|
2139
|
+
handleBlueprintPreviewRequest: (organization: string, cluster: string, previewId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2140
|
+
};
|
|
2141
|
+
/**
|
|
2142
|
+
* BlueprintPreviewApi - functional programming interface
|
|
2143
|
+
* @export
|
|
2144
|
+
*/
|
|
2145
|
+
export declare const BlueprintPreviewApiFp: (configuration?: Configuration) => {
|
|
2146
|
+
/**
|
|
2147
|
+
*
|
|
2148
|
+
* @param {string} organization Organization id — for permission scoping. Frontend already has it.
|
|
2149
|
+
* @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
|
|
2150
|
+
* @param {string} previewId Preview id — the UUIDv7 q-core returned from `POST /api/blueprint/{id}/update/preview`. Doubles as the Pub/Sub channel suffix: `core.blueprint.preview.{preview_id}`.
|
|
2151
|
+
* @param {*} [options] Override http request option.
|
|
2152
|
+
* @throws {RequiredError}
|
|
2153
|
+
*/
|
|
2154
|
+
handleBlueprintPreviewRequest(organization: string, cluster: string, previewId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BlueprintPreviewResult>>;
|
|
2155
|
+
};
|
|
2156
|
+
/**
|
|
2157
|
+
* BlueprintPreviewApi - factory interface
|
|
2158
|
+
* @export
|
|
2159
|
+
*/
|
|
2160
|
+
export declare const BlueprintPreviewApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2161
|
+
/**
|
|
2162
|
+
*
|
|
2163
|
+
* @param {string} organization Organization id — for permission scoping. Frontend already has it.
|
|
2164
|
+
* @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
|
|
2165
|
+
* @param {string} previewId Preview id — the UUIDv7 q-core returned from `POST /api/blueprint/{id}/update/preview`. Doubles as the Pub/Sub channel suffix: `core.blueprint.preview.{preview_id}`.
|
|
2166
|
+
* @param {*} [options] Override http request option.
|
|
2167
|
+
* @throws {RequiredError}
|
|
2168
|
+
*/
|
|
2169
|
+
handleBlueprintPreviewRequest(organization: string, cluster: string, previewId: string, options?: RawAxiosRequestConfig): AxiosPromise<BlueprintPreviewResult>;
|
|
2170
|
+
};
|
|
2171
|
+
/**
|
|
2172
|
+
* BlueprintPreviewApi - object-oriented interface
|
|
2173
|
+
* @export
|
|
2174
|
+
* @class BlueprintPreviewApi
|
|
2175
|
+
* @extends {BaseAPI}
|
|
2176
|
+
*/
|
|
2177
|
+
export declare class BlueprintPreviewApi extends BaseAPI {
|
|
2178
|
+
/**
|
|
2179
|
+
*
|
|
2180
|
+
* @param {string} organization Organization id — for permission scoping. Frontend already has it.
|
|
2181
|
+
* @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
|
|
2182
|
+
* @param {string} previewId Preview id — the UUIDv7 q-core returned from `POST /api/blueprint/{id}/update/preview`. Doubles as the Pub/Sub channel suffix: `core.blueprint.preview.{preview_id}`.
|
|
2183
|
+
* @param {*} [options] Override http request option.
|
|
2184
|
+
* @throws {RequiredError}
|
|
2185
|
+
* @memberof BlueprintPreviewApi
|
|
2186
|
+
*/
|
|
2187
|
+
handleBlueprintPreviewRequest(organization: string, cluster: string, previewId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BlueprintPreviewResult, any, {}>>;
|
|
2188
|
+
}
|
|
2189
|
+
/**
|
|
2190
|
+
* BlueprintServiceApi - axios parameter creator
|
|
2191
|
+
* @export
|
|
2192
|
+
*/
|
|
2193
|
+
export declare const BlueprintServiceApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2194
|
+
/**
|
|
2195
|
+
*
|
|
2196
|
+
* @param {string} organization
|
|
2197
|
+
* @param {string | null} cluster
|
|
2198
|
+
* @param {string} project
|
|
2199
|
+
* @param {string} environment
|
|
2200
|
+
* @param {*} [options] Override http request option.
|
|
2201
|
+
* @throws {RequiredError}
|
|
2202
|
+
*/
|
|
2203
|
+
handleBlueprintServiceCreatedRequest: (organization: string, cluster: string | null, project: string, environment: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
2204
|
+
};
|
|
2205
|
+
/**
|
|
2206
|
+
* BlueprintServiceApi - functional programming interface
|
|
2207
|
+
* @export
|
|
2208
|
+
*/
|
|
2209
|
+
export declare const BlueprintServiceApiFp: (configuration?: Configuration) => {
|
|
2210
|
+
/**
|
|
2211
|
+
*
|
|
2212
|
+
* @param {string} organization
|
|
2213
|
+
* @param {string | null} cluster
|
|
2214
|
+
* @param {string} project
|
|
2215
|
+
* @param {string} environment
|
|
2216
|
+
* @param {*} [options] Override http request option.
|
|
2217
|
+
* @throws {RequiredError}
|
|
2218
|
+
*/
|
|
2219
|
+
handleBlueprintServiceCreatedRequest(organization: string, cluster: string | null, project: string, environment: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BlueprintServiceCreatedEvent>>;
|
|
2220
|
+
};
|
|
2221
|
+
/**
|
|
2222
|
+
* BlueprintServiceApi - factory interface
|
|
2223
|
+
* @export
|
|
2224
|
+
*/
|
|
2225
|
+
export declare const BlueprintServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2226
|
+
/**
|
|
2227
|
+
*
|
|
2228
|
+
* @param {string} organization
|
|
2229
|
+
* @param {string | null} cluster
|
|
2230
|
+
* @param {string} project
|
|
2231
|
+
* @param {string} environment
|
|
2232
|
+
* @param {*} [options] Override http request option.
|
|
2233
|
+
* @throws {RequiredError}
|
|
2234
|
+
*/
|
|
2235
|
+
handleBlueprintServiceCreatedRequest(organization: string, cluster: string | null, project: string, environment: string, options?: RawAxiosRequestConfig): AxiosPromise<BlueprintServiceCreatedEvent>;
|
|
2236
|
+
};
|
|
2237
|
+
/**
|
|
2238
|
+
* BlueprintServiceApi - object-oriented interface
|
|
2239
|
+
* @export
|
|
2240
|
+
* @class BlueprintServiceApi
|
|
2241
|
+
* @extends {BaseAPI}
|
|
2242
|
+
*/
|
|
2243
|
+
export declare class BlueprintServiceApi extends BaseAPI {
|
|
2244
|
+
/**
|
|
2245
|
+
*
|
|
2246
|
+
* @param {string} organization
|
|
2247
|
+
* @param {string | null} cluster
|
|
2248
|
+
* @param {string} project
|
|
2249
|
+
* @param {string} environment
|
|
2250
|
+
* @param {*} [options] Override http request option.
|
|
2251
|
+
* @throws {RequiredError}
|
|
2252
|
+
* @memberof BlueprintServiceApi
|
|
2253
|
+
*/
|
|
2254
|
+
handleBlueprintServiceCreatedRequest(organization: string, cluster: string | null, project: string, environment: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BlueprintServiceCreatedEvent, any, {}>>;
|
|
2255
|
+
}
|
|
2021
2256
|
/**
|
|
2022
2257
|
* ClusterListNodesApi - axios parameter creator
|
|
2023
2258
|
* @export
|