qovery-typescript-axios 1.1.904 → 1.1.905
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 +186 -0
- package/dist/api.d.ts +136 -0
- package/dist/api.js +86 -0
- package/dist/esm/api.d.ts +136 -0
- package/dist/esm/api.js +86 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -3473,6 +3473,43 @@ export interface BlueprintCatalogResponse {
|
|
|
3473
3473
|
*/
|
|
3474
3474
|
'blueprints': Array<BlueprintItem>;
|
|
3475
3475
|
}
|
|
3476
|
+
/**
|
|
3477
|
+
*
|
|
3478
|
+
* @export
|
|
3479
|
+
* @interface BlueprintCreateRequest
|
|
3480
|
+
*/
|
|
3481
|
+
export interface BlueprintCreateRequest {
|
|
3482
|
+
/**
|
|
3483
|
+
* Display name for the service
|
|
3484
|
+
* @type {string}
|
|
3485
|
+
* @memberof BlueprintCreateRequest
|
|
3486
|
+
*/
|
|
3487
|
+
'name': string;
|
|
3488
|
+
/**
|
|
3489
|
+
* Catalog tag identifying the blueprint version
|
|
3490
|
+
* @type {string}
|
|
3491
|
+
* @memberof BlueprintCreateRequest
|
|
3492
|
+
*/
|
|
3493
|
+
'tag': string;
|
|
3494
|
+
/**
|
|
3495
|
+
* Icon URL for the service
|
|
3496
|
+
* @type {string}
|
|
3497
|
+
* @memberof BlueprintCreateRequest
|
|
3498
|
+
*/
|
|
3499
|
+
'icon': string;
|
|
3500
|
+
/**
|
|
3501
|
+
* Variable overrides for the blueprint
|
|
3502
|
+
* @type {Array<BlueprintVariableRequest>}
|
|
3503
|
+
* @memberof BlueprintCreateRequest
|
|
3504
|
+
*/
|
|
3505
|
+
'variables'?: Array<BlueprintVariableRequest>;
|
|
3506
|
+
/**
|
|
3507
|
+
* Partial spec overrides merged on top of the blueprint manifest
|
|
3508
|
+
* @type {{ [key: string]: any; }}
|
|
3509
|
+
* @memberof BlueprintCreateRequest
|
|
3510
|
+
*/
|
|
3511
|
+
'specOverrides'?: { [key: string]: any; } | null;
|
|
3512
|
+
}
|
|
3476
3513
|
/**
|
|
3477
3514
|
*
|
|
3478
3515
|
* @export
|
|
@@ -3547,6 +3584,62 @@ export interface BlueprintMajorVersion {
|
|
|
3547
3584
|
*/
|
|
3548
3585
|
'latestTag': string;
|
|
3549
3586
|
}
|
|
3587
|
+
/**
|
|
3588
|
+
*
|
|
3589
|
+
* @export
|
|
3590
|
+
* @interface BlueprintResponse
|
|
3591
|
+
*/
|
|
3592
|
+
export interface BlueprintResponse {
|
|
3593
|
+
/**
|
|
3594
|
+
*
|
|
3595
|
+
* @type {string}
|
|
3596
|
+
* @memberof BlueprintResponse
|
|
3597
|
+
*/
|
|
3598
|
+
'id': string;
|
|
3599
|
+
/**
|
|
3600
|
+
* URL to the blueprint catalog entry
|
|
3601
|
+
* @type {string}
|
|
3602
|
+
* @memberof BlueprintResponse
|
|
3603
|
+
*/
|
|
3604
|
+
'catalogUrl': string;
|
|
3605
|
+
/**
|
|
3606
|
+
*
|
|
3607
|
+
* @type {string}
|
|
3608
|
+
* @memberof BlueprintResponse
|
|
3609
|
+
*/
|
|
3610
|
+
'tag': string;
|
|
3611
|
+
/**
|
|
3612
|
+
*
|
|
3613
|
+
* @type {string}
|
|
3614
|
+
* @memberof BlueprintResponse
|
|
3615
|
+
*/
|
|
3616
|
+
'environmentId': string;
|
|
3617
|
+
}
|
|
3618
|
+
/**
|
|
3619
|
+
*
|
|
3620
|
+
* @export
|
|
3621
|
+
* @interface BlueprintVariableRequest
|
|
3622
|
+
*/
|
|
3623
|
+
export interface BlueprintVariableRequest {
|
|
3624
|
+
/**
|
|
3625
|
+
*
|
|
3626
|
+
* @type {string}
|
|
3627
|
+
* @memberof BlueprintVariableRequest
|
|
3628
|
+
*/
|
|
3629
|
+
'name': string;
|
|
3630
|
+
/**
|
|
3631
|
+
*
|
|
3632
|
+
* @type {string}
|
|
3633
|
+
* @memberof BlueprintVariableRequest
|
|
3634
|
+
*/
|
|
3635
|
+
'value': string;
|
|
3636
|
+
/**
|
|
3637
|
+
*
|
|
3638
|
+
* @type {boolean}
|
|
3639
|
+
* @memberof BlueprintVariableRequest
|
|
3640
|
+
*/
|
|
3641
|
+
'isSecret'?: boolean;
|
|
3642
|
+
}
|
|
3550
3643
|
/**
|
|
3551
3644
|
*
|
|
3552
3645
|
* @export
|
|
@@ -32270,6 +32363,58 @@ export class BlueprintCatalogApi extends BaseAPI {
|
|
|
32270
32363
|
*/
|
|
32271
32364
|
export const BlueprintMainCallsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32272
32365
|
return {
|
|
32366
|
+
/**
|
|
32367
|
+
* Instantiates a blueprint from the service catalog into the given environment. Pass `deploy=true` to trigger an immediate deployment after creation.
|
|
32368
|
+
* @summary Create a blueprint service in an environment
|
|
32369
|
+
* @param {string} environmentId Environment ID
|
|
32370
|
+
* @param {BlueprintCreateRequest} blueprintCreateRequest
|
|
32371
|
+
* @param {boolean} [deploy] Trigger a deployment immediately after creation
|
|
32372
|
+
* @param {*} [options] Override http request option.
|
|
32373
|
+
* @throws {RequiredError}
|
|
32374
|
+
*/
|
|
32375
|
+
createBlueprint: async (environmentId: string, blueprintCreateRequest: BlueprintCreateRequest, deploy?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
32376
|
+
// verify required parameter 'environmentId' is not null or undefined
|
|
32377
|
+
assertParamExists('createBlueprint', 'environmentId', environmentId)
|
|
32378
|
+
// verify required parameter 'blueprintCreateRequest' is not null or undefined
|
|
32379
|
+
assertParamExists('createBlueprint', 'blueprintCreateRequest', blueprintCreateRequest)
|
|
32380
|
+
const localVarPath = `/environment/{environmentId}/blueprint`
|
|
32381
|
+
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
32382
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
32383
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
32384
|
+
let baseOptions;
|
|
32385
|
+
if (configuration) {
|
|
32386
|
+
baseOptions = configuration.baseOptions;
|
|
32387
|
+
}
|
|
32388
|
+
|
|
32389
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
32390
|
+
const localVarHeaderParameter = {} as any;
|
|
32391
|
+
const localVarQueryParameter = {} as any;
|
|
32392
|
+
|
|
32393
|
+
// authentication ApiKeyAuth required
|
|
32394
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
32395
|
+
|
|
32396
|
+
// authentication bearerAuth required
|
|
32397
|
+
// http bearer authentication required
|
|
32398
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
32399
|
+
|
|
32400
|
+
if (deploy !== undefined) {
|
|
32401
|
+
localVarQueryParameter['deploy'] = deploy;
|
|
32402
|
+
}
|
|
32403
|
+
|
|
32404
|
+
|
|
32405
|
+
|
|
32406
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
32407
|
+
|
|
32408
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32409
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32410
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
32411
|
+
localVarRequestOptions.data = serializeDataIfNeeded(blueprintCreateRequest, localVarRequestOptions, configuration)
|
|
32412
|
+
|
|
32413
|
+
return {
|
|
32414
|
+
url: toPathString(localVarUrlObj),
|
|
32415
|
+
options: localVarRequestOptions,
|
|
32416
|
+
};
|
|
32417
|
+
},
|
|
32273
32418
|
/**
|
|
32274
32419
|
* Retrieves the Qovery service catalog from the public GitHub repository (Qovery/service-catalog). The catalog lists all available blueprints that can be deployed.
|
|
32275
32420
|
* @summary Get the blueprint service catalog
|
|
@@ -32321,6 +32466,21 @@ export const BlueprintMainCallsApiAxiosParamCreator = function (configuration?:
|
|
|
32321
32466
|
export const BlueprintMainCallsApiFp = function(configuration?: Configuration) {
|
|
32322
32467
|
const localVarAxiosParamCreator = BlueprintMainCallsApiAxiosParamCreator(configuration)
|
|
32323
32468
|
return {
|
|
32469
|
+
/**
|
|
32470
|
+
* Instantiates a blueprint from the service catalog into the given environment. Pass `deploy=true` to trigger an immediate deployment after creation.
|
|
32471
|
+
* @summary Create a blueprint service in an environment
|
|
32472
|
+
* @param {string} environmentId Environment ID
|
|
32473
|
+
* @param {BlueprintCreateRequest} blueprintCreateRequest
|
|
32474
|
+
* @param {boolean} [deploy] Trigger a deployment immediately after creation
|
|
32475
|
+
* @param {*} [options] Override http request option.
|
|
32476
|
+
* @throws {RequiredError}
|
|
32477
|
+
*/
|
|
32478
|
+
async createBlueprint(environmentId: string, blueprintCreateRequest: BlueprintCreateRequest, deploy?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BlueprintResponse>> {
|
|
32479
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBlueprint(environmentId, blueprintCreateRequest, deploy, options);
|
|
32480
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
32481
|
+
const localVarOperationServerBasePath = operationServerMap['BlueprintMainCallsApi.createBlueprint']?.[localVarOperationServerIndex]?.url;
|
|
32482
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32483
|
+
},
|
|
32324
32484
|
/**
|
|
32325
32485
|
* Retrieves the Qovery service catalog from the public GitHub repository (Qovery/service-catalog). The catalog lists all available blueprints that can be deployed.
|
|
32326
32486
|
* @summary Get the blueprint service catalog
|
|
@@ -32344,6 +32504,18 @@ export const BlueprintMainCallsApiFp = function(configuration?: Configuration) {
|
|
|
32344
32504
|
export const BlueprintMainCallsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
32345
32505
|
const localVarFp = BlueprintMainCallsApiFp(configuration)
|
|
32346
32506
|
return {
|
|
32507
|
+
/**
|
|
32508
|
+
* Instantiates a blueprint from the service catalog into the given environment. Pass `deploy=true` to trigger an immediate deployment after creation.
|
|
32509
|
+
* @summary Create a blueprint service in an environment
|
|
32510
|
+
* @param {string} environmentId Environment ID
|
|
32511
|
+
* @param {BlueprintCreateRequest} blueprintCreateRequest
|
|
32512
|
+
* @param {boolean} [deploy] Trigger a deployment immediately after creation
|
|
32513
|
+
* @param {*} [options] Override http request option.
|
|
32514
|
+
* @throws {RequiredError}
|
|
32515
|
+
*/
|
|
32516
|
+
createBlueprint(environmentId: string, blueprintCreateRequest: BlueprintCreateRequest, deploy?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<BlueprintResponse> {
|
|
32517
|
+
return localVarFp.createBlueprint(environmentId, blueprintCreateRequest, deploy, options).then((request) => request(axios, basePath));
|
|
32518
|
+
},
|
|
32347
32519
|
/**
|
|
32348
32520
|
* Retrieves the Qovery service catalog from the public GitHub repository (Qovery/service-catalog). The catalog lists all available blueprints that can be deployed.
|
|
32349
32521
|
* @summary Get the blueprint service catalog
|
|
@@ -32364,6 +32536,20 @@ export const BlueprintMainCallsApiFactory = function (configuration?: Configurat
|
|
|
32364
32536
|
* @extends {BaseAPI}
|
|
32365
32537
|
*/
|
|
32366
32538
|
export class BlueprintMainCallsApi extends BaseAPI {
|
|
32539
|
+
/**
|
|
32540
|
+
* Instantiates a blueprint from the service catalog into the given environment. Pass `deploy=true` to trigger an immediate deployment after creation.
|
|
32541
|
+
* @summary Create a blueprint service in an environment
|
|
32542
|
+
* @param {string} environmentId Environment ID
|
|
32543
|
+
* @param {BlueprintCreateRequest} blueprintCreateRequest
|
|
32544
|
+
* @param {boolean} [deploy] Trigger a deployment immediately after creation
|
|
32545
|
+
* @param {*} [options] Override http request option.
|
|
32546
|
+
* @throws {RequiredError}
|
|
32547
|
+
* @memberof BlueprintMainCallsApi
|
|
32548
|
+
*/
|
|
32549
|
+
public createBlueprint(environmentId: string, blueprintCreateRequest: BlueprintCreateRequest, deploy?: boolean, options?: RawAxiosRequestConfig) {
|
|
32550
|
+
return BlueprintMainCallsApiFp(this.configuration).createBlueprint(environmentId, blueprintCreateRequest, deploy, options).then((request) => request(this.axios, this.basePath));
|
|
32551
|
+
}
|
|
32552
|
+
|
|
32367
32553
|
/**
|
|
32368
32554
|
* Retrieves the Qovery service catalog from the public GitHub repository (Qovery/service-catalog). The catalog lists all available blueprints that can be deployed.
|
|
32369
32555
|
* @summary Get the blueprint service catalog
|
package/dist/api.d.ts
CHANGED
|
@@ -3350,6 +3350,45 @@ export interface BlueprintCatalogResponse {
|
|
|
3350
3350
|
*/
|
|
3351
3351
|
'blueprints': Array<BlueprintItem>;
|
|
3352
3352
|
}
|
|
3353
|
+
/**
|
|
3354
|
+
*
|
|
3355
|
+
* @export
|
|
3356
|
+
* @interface BlueprintCreateRequest
|
|
3357
|
+
*/
|
|
3358
|
+
export interface BlueprintCreateRequest {
|
|
3359
|
+
/**
|
|
3360
|
+
* Display name for the service
|
|
3361
|
+
* @type {string}
|
|
3362
|
+
* @memberof BlueprintCreateRequest
|
|
3363
|
+
*/
|
|
3364
|
+
'name': string;
|
|
3365
|
+
/**
|
|
3366
|
+
* Catalog tag identifying the blueprint version
|
|
3367
|
+
* @type {string}
|
|
3368
|
+
* @memberof BlueprintCreateRequest
|
|
3369
|
+
*/
|
|
3370
|
+
'tag': string;
|
|
3371
|
+
/**
|
|
3372
|
+
* Icon URL for the service
|
|
3373
|
+
* @type {string}
|
|
3374
|
+
* @memberof BlueprintCreateRequest
|
|
3375
|
+
*/
|
|
3376
|
+
'icon': string;
|
|
3377
|
+
/**
|
|
3378
|
+
* Variable overrides for the blueprint
|
|
3379
|
+
* @type {Array<BlueprintVariableRequest>}
|
|
3380
|
+
* @memberof BlueprintCreateRequest
|
|
3381
|
+
*/
|
|
3382
|
+
'variables'?: Array<BlueprintVariableRequest>;
|
|
3383
|
+
/**
|
|
3384
|
+
* Partial spec overrides merged on top of the blueprint manifest
|
|
3385
|
+
* @type {{ [key: string]: any; }}
|
|
3386
|
+
* @memberof BlueprintCreateRequest
|
|
3387
|
+
*/
|
|
3388
|
+
'specOverrides'?: {
|
|
3389
|
+
[key: string]: any;
|
|
3390
|
+
} | null;
|
|
3391
|
+
}
|
|
3353
3392
|
/**
|
|
3354
3393
|
*
|
|
3355
3394
|
* @export
|
|
@@ -3424,6 +3463,62 @@ export interface BlueprintMajorVersion {
|
|
|
3424
3463
|
*/
|
|
3425
3464
|
'latestTag': string;
|
|
3426
3465
|
}
|
|
3466
|
+
/**
|
|
3467
|
+
*
|
|
3468
|
+
* @export
|
|
3469
|
+
* @interface BlueprintResponse
|
|
3470
|
+
*/
|
|
3471
|
+
export interface BlueprintResponse {
|
|
3472
|
+
/**
|
|
3473
|
+
*
|
|
3474
|
+
* @type {string}
|
|
3475
|
+
* @memberof BlueprintResponse
|
|
3476
|
+
*/
|
|
3477
|
+
'id': string;
|
|
3478
|
+
/**
|
|
3479
|
+
* URL to the blueprint catalog entry
|
|
3480
|
+
* @type {string}
|
|
3481
|
+
* @memberof BlueprintResponse
|
|
3482
|
+
*/
|
|
3483
|
+
'catalogUrl': string;
|
|
3484
|
+
/**
|
|
3485
|
+
*
|
|
3486
|
+
* @type {string}
|
|
3487
|
+
* @memberof BlueprintResponse
|
|
3488
|
+
*/
|
|
3489
|
+
'tag': string;
|
|
3490
|
+
/**
|
|
3491
|
+
*
|
|
3492
|
+
* @type {string}
|
|
3493
|
+
* @memberof BlueprintResponse
|
|
3494
|
+
*/
|
|
3495
|
+
'environmentId': string;
|
|
3496
|
+
}
|
|
3497
|
+
/**
|
|
3498
|
+
*
|
|
3499
|
+
* @export
|
|
3500
|
+
* @interface BlueprintVariableRequest
|
|
3501
|
+
*/
|
|
3502
|
+
export interface BlueprintVariableRequest {
|
|
3503
|
+
/**
|
|
3504
|
+
*
|
|
3505
|
+
* @type {string}
|
|
3506
|
+
* @memberof BlueprintVariableRequest
|
|
3507
|
+
*/
|
|
3508
|
+
'name': string;
|
|
3509
|
+
/**
|
|
3510
|
+
*
|
|
3511
|
+
* @type {string}
|
|
3512
|
+
* @memberof BlueprintVariableRequest
|
|
3513
|
+
*/
|
|
3514
|
+
'value': string;
|
|
3515
|
+
/**
|
|
3516
|
+
*
|
|
3517
|
+
* @type {boolean}
|
|
3518
|
+
* @memberof BlueprintVariableRequest
|
|
3519
|
+
*/
|
|
3520
|
+
'isSecret'?: boolean;
|
|
3521
|
+
}
|
|
3427
3522
|
/**
|
|
3428
3523
|
*
|
|
3429
3524
|
* @export
|
|
@@ -27162,6 +27257,16 @@ export declare class BlueprintCatalogApi extends BaseAPI {
|
|
|
27162
27257
|
* @export
|
|
27163
27258
|
*/
|
|
27164
27259
|
export declare const BlueprintMainCallsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
27260
|
+
/**
|
|
27261
|
+
* Instantiates a blueprint from the service catalog into the given environment. Pass `deploy=true` to trigger an immediate deployment after creation.
|
|
27262
|
+
* @summary Create a blueprint service in an environment
|
|
27263
|
+
* @param {string} environmentId Environment ID
|
|
27264
|
+
* @param {BlueprintCreateRequest} blueprintCreateRequest
|
|
27265
|
+
* @param {boolean} [deploy] Trigger a deployment immediately after creation
|
|
27266
|
+
* @param {*} [options] Override http request option.
|
|
27267
|
+
* @throws {RequiredError}
|
|
27268
|
+
*/
|
|
27269
|
+
createBlueprint: (environmentId: string, blueprintCreateRequest: BlueprintCreateRequest, deploy?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
27165
27270
|
/**
|
|
27166
27271
|
* Retrieves the Qovery service catalog from the public GitHub repository (Qovery/service-catalog). The catalog lists all available blueprints that can be deployed.
|
|
27167
27272
|
* @summary Get the blueprint service catalog
|
|
@@ -27176,6 +27281,16 @@ export declare const BlueprintMainCallsApiAxiosParamCreator: (configuration?: Co
|
|
|
27176
27281
|
* @export
|
|
27177
27282
|
*/
|
|
27178
27283
|
export declare const BlueprintMainCallsApiFp: (configuration?: Configuration) => {
|
|
27284
|
+
/**
|
|
27285
|
+
* Instantiates a blueprint from the service catalog into the given environment. Pass `deploy=true` to trigger an immediate deployment after creation.
|
|
27286
|
+
* @summary Create a blueprint service in an environment
|
|
27287
|
+
* @param {string} environmentId Environment ID
|
|
27288
|
+
* @param {BlueprintCreateRequest} blueprintCreateRequest
|
|
27289
|
+
* @param {boolean} [deploy] Trigger a deployment immediately after creation
|
|
27290
|
+
* @param {*} [options] Override http request option.
|
|
27291
|
+
* @throws {RequiredError}
|
|
27292
|
+
*/
|
|
27293
|
+
createBlueprint(environmentId: string, blueprintCreateRequest: BlueprintCreateRequest, deploy?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BlueprintResponse>>;
|
|
27179
27294
|
/**
|
|
27180
27295
|
* Retrieves the Qovery service catalog from the public GitHub repository (Qovery/service-catalog). The catalog lists all available blueprints that can be deployed.
|
|
27181
27296
|
* @summary Get the blueprint service catalog
|
|
@@ -27190,6 +27305,16 @@ export declare const BlueprintMainCallsApiFp: (configuration?: Configuration) =>
|
|
|
27190
27305
|
* @export
|
|
27191
27306
|
*/
|
|
27192
27307
|
export declare const BlueprintMainCallsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
27308
|
+
/**
|
|
27309
|
+
* Instantiates a blueprint from the service catalog into the given environment. Pass `deploy=true` to trigger an immediate deployment after creation.
|
|
27310
|
+
* @summary Create a blueprint service in an environment
|
|
27311
|
+
* @param {string} environmentId Environment ID
|
|
27312
|
+
* @param {BlueprintCreateRequest} blueprintCreateRequest
|
|
27313
|
+
* @param {boolean} [deploy] Trigger a deployment immediately after creation
|
|
27314
|
+
* @param {*} [options] Override http request option.
|
|
27315
|
+
* @throws {RequiredError}
|
|
27316
|
+
*/
|
|
27317
|
+
createBlueprint(environmentId: string, blueprintCreateRequest: BlueprintCreateRequest, deploy?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<BlueprintResponse>;
|
|
27193
27318
|
/**
|
|
27194
27319
|
* Retrieves the Qovery service catalog from the public GitHub repository (Qovery/service-catalog). The catalog lists all available blueprints that can be deployed.
|
|
27195
27320
|
* @summary Get the blueprint service catalog
|
|
@@ -27206,6 +27331,17 @@ export declare const BlueprintMainCallsApiFactory: (configuration?: Configuratio
|
|
|
27206
27331
|
* @extends {BaseAPI}
|
|
27207
27332
|
*/
|
|
27208
27333
|
export declare class BlueprintMainCallsApi extends BaseAPI {
|
|
27334
|
+
/**
|
|
27335
|
+
* Instantiates a blueprint from the service catalog into the given environment. Pass `deploy=true` to trigger an immediate deployment after creation.
|
|
27336
|
+
* @summary Create a blueprint service in an environment
|
|
27337
|
+
* @param {string} environmentId Environment ID
|
|
27338
|
+
* @param {BlueprintCreateRequest} blueprintCreateRequest
|
|
27339
|
+
* @param {boolean} [deploy] Trigger a deployment immediately after creation
|
|
27340
|
+
* @param {*} [options] Override http request option.
|
|
27341
|
+
* @throws {RequiredError}
|
|
27342
|
+
* @memberof BlueprintMainCallsApi
|
|
27343
|
+
*/
|
|
27344
|
+
createBlueprint(environmentId: string, blueprintCreateRequest: BlueprintCreateRequest, deploy?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BlueprintResponse, any, {}>>;
|
|
27209
27345
|
/**
|
|
27210
27346
|
* Retrieves the Qovery service catalog from the public GitHub repository (Qovery/service-catalog). The catalog lists all available blueprints that can be deployed.
|
|
27211
27347
|
* @summary Get the blueprint service catalog
|
package/dist/api.js
CHANGED
|
@@ -8972,6 +8972,49 @@ exports.BlueprintCatalogApi = BlueprintCatalogApi;
|
|
|
8972
8972
|
*/
|
|
8973
8973
|
const BlueprintMainCallsApiAxiosParamCreator = function (configuration) {
|
|
8974
8974
|
return {
|
|
8975
|
+
/**
|
|
8976
|
+
* Instantiates a blueprint from the service catalog into the given environment. Pass `deploy=true` to trigger an immediate deployment after creation.
|
|
8977
|
+
* @summary Create a blueprint service in an environment
|
|
8978
|
+
* @param {string} environmentId Environment ID
|
|
8979
|
+
* @param {BlueprintCreateRequest} blueprintCreateRequest
|
|
8980
|
+
* @param {boolean} [deploy] Trigger a deployment immediately after creation
|
|
8981
|
+
* @param {*} [options] Override http request option.
|
|
8982
|
+
* @throws {RequiredError}
|
|
8983
|
+
*/
|
|
8984
|
+
createBlueprint: (environmentId_1, blueprintCreateRequest_1, deploy_1, ...args_1) => __awaiter(this, [environmentId_1, blueprintCreateRequest_1, deploy_1, ...args_1], void 0, function* (environmentId, blueprintCreateRequest, deploy, options = {}) {
|
|
8985
|
+
// verify required parameter 'environmentId' is not null or undefined
|
|
8986
|
+
(0, common_1.assertParamExists)('createBlueprint', 'environmentId', environmentId);
|
|
8987
|
+
// verify required parameter 'blueprintCreateRequest' is not null or undefined
|
|
8988
|
+
(0, common_1.assertParamExists)('createBlueprint', 'blueprintCreateRequest', blueprintCreateRequest);
|
|
8989
|
+
const localVarPath = `/environment/{environmentId}/blueprint`
|
|
8990
|
+
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
8991
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8992
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8993
|
+
let baseOptions;
|
|
8994
|
+
if (configuration) {
|
|
8995
|
+
baseOptions = configuration.baseOptions;
|
|
8996
|
+
}
|
|
8997
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
8998
|
+
const localVarHeaderParameter = {};
|
|
8999
|
+
const localVarQueryParameter = {};
|
|
9000
|
+
// authentication ApiKeyAuth required
|
|
9001
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
9002
|
+
// authentication bearerAuth required
|
|
9003
|
+
// http bearer authentication required
|
|
9004
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
9005
|
+
if (deploy !== undefined) {
|
|
9006
|
+
localVarQueryParameter['deploy'] = deploy;
|
|
9007
|
+
}
|
|
9008
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9009
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9010
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9011
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9012
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(blueprintCreateRequest, localVarRequestOptions, configuration);
|
|
9013
|
+
return {
|
|
9014
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9015
|
+
options: localVarRequestOptions,
|
|
9016
|
+
};
|
|
9017
|
+
}),
|
|
8975
9018
|
/**
|
|
8976
9019
|
* Retrieves the Qovery service catalog from the public GitHub repository (Qovery/service-catalog). The catalog lists all available blueprints that can be deployed.
|
|
8977
9020
|
* @summary Get the blueprint service catalog
|
|
@@ -9016,6 +9059,24 @@ exports.BlueprintMainCallsApiAxiosParamCreator = BlueprintMainCallsApiAxiosParam
|
|
|
9016
9059
|
const BlueprintMainCallsApiFp = function (configuration) {
|
|
9017
9060
|
const localVarAxiosParamCreator = (0, exports.BlueprintMainCallsApiAxiosParamCreator)(configuration);
|
|
9018
9061
|
return {
|
|
9062
|
+
/**
|
|
9063
|
+
* Instantiates a blueprint from the service catalog into the given environment. Pass `deploy=true` to trigger an immediate deployment after creation.
|
|
9064
|
+
* @summary Create a blueprint service in an environment
|
|
9065
|
+
* @param {string} environmentId Environment ID
|
|
9066
|
+
* @param {BlueprintCreateRequest} blueprintCreateRequest
|
|
9067
|
+
* @param {boolean} [deploy] Trigger a deployment immediately after creation
|
|
9068
|
+
* @param {*} [options] Override http request option.
|
|
9069
|
+
* @throws {RequiredError}
|
|
9070
|
+
*/
|
|
9071
|
+
createBlueprint(environmentId, blueprintCreateRequest, deploy, options) {
|
|
9072
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9073
|
+
var _a, _b, _c;
|
|
9074
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBlueprint(environmentId, blueprintCreateRequest, deploy, options);
|
|
9075
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9076
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BlueprintMainCallsApi.createBlueprint']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9077
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9078
|
+
});
|
|
9079
|
+
},
|
|
9019
9080
|
/**
|
|
9020
9081
|
* Retrieves the Qovery service catalog from the public GitHub repository (Qovery/service-catalog). The catalog lists all available blueprints that can be deployed.
|
|
9021
9082
|
* @summary Get the blueprint service catalog
|
|
@@ -9042,6 +9103,18 @@ exports.BlueprintMainCallsApiFp = BlueprintMainCallsApiFp;
|
|
|
9042
9103
|
const BlueprintMainCallsApiFactory = function (configuration, basePath, axios) {
|
|
9043
9104
|
const localVarFp = (0, exports.BlueprintMainCallsApiFp)(configuration);
|
|
9044
9105
|
return {
|
|
9106
|
+
/**
|
|
9107
|
+
* Instantiates a blueprint from the service catalog into the given environment. Pass `deploy=true` to trigger an immediate deployment after creation.
|
|
9108
|
+
* @summary Create a blueprint service in an environment
|
|
9109
|
+
* @param {string} environmentId Environment ID
|
|
9110
|
+
* @param {BlueprintCreateRequest} blueprintCreateRequest
|
|
9111
|
+
* @param {boolean} [deploy] Trigger a deployment immediately after creation
|
|
9112
|
+
* @param {*} [options] Override http request option.
|
|
9113
|
+
* @throws {RequiredError}
|
|
9114
|
+
*/
|
|
9115
|
+
createBlueprint(environmentId, blueprintCreateRequest, deploy, options) {
|
|
9116
|
+
return localVarFp.createBlueprint(environmentId, blueprintCreateRequest, deploy, options).then((request) => request(axios, basePath));
|
|
9117
|
+
},
|
|
9045
9118
|
/**
|
|
9046
9119
|
* Retrieves the Qovery service catalog from the public GitHub repository (Qovery/service-catalog). The catalog lists all available blueprints that can be deployed.
|
|
9047
9120
|
* @summary Get the blueprint service catalog
|
|
@@ -9062,6 +9135,19 @@ exports.BlueprintMainCallsApiFactory = BlueprintMainCallsApiFactory;
|
|
|
9062
9135
|
* @extends {BaseAPI}
|
|
9063
9136
|
*/
|
|
9064
9137
|
class BlueprintMainCallsApi extends base_1.BaseAPI {
|
|
9138
|
+
/**
|
|
9139
|
+
* Instantiates a blueprint from the service catalog into the given environment. Pass `deploy=true` to trigger an immediate deployment after creation.
|
|
9140
|
+
* @summary Create a blueprint service in an environment
|
|
9141
|
+
* @param {string} environmentId Environment ID
|
|
9142
|
+
* @param {BlueprintCreateRequest} blueprintCreateRequest
|
|
9143
|
+
* @param {boolean} [deploy] Trigger a deployment immediately after creation
|
|
9144
|
+
* @param {*} [options] Override http request option.
|
|
9145
|
+
* @throws {RequiredError}
|
|
9146
|
+
* @memberof BlueprintMainCallsApi
|
|
9147
|
+
*/
|
|
9148
|
+
createBlueprint(environmentId, blueprintCreateRequest, deploy, options) {
|
|
9149
|
+
return (0, exports.BlueprintMainCallsApiFp)(this.configuration).createBlueprint(environmentId, blueprintCreateRequest, deploy, options).then((request) => request(this.axios, this.basePath));
|
|
9150
|
+
}
|
|
9065
9151
|
/**
|
|
9066
9152
|
* Retrieves the Qovery service catalog from the public GitHub repository (Qovery/service-catalog). The catalog lists all available blueprints that can be deployed.
|
|
9067
9153
|
* @summary Get the blueprint service catalog
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -3350,6 +3350,45 @@ export interface BlueprintCatalogResponse {
|
|
|
3350
3350
|
*/
|
|
3351
3351
|
'blueprints': Array<BlueprintItem>;
|
|
3352
3352
|
}
|
|
3353
|
+
/**
|
|
3354
|
+
*
|
|
3355
|
+
* @export
|
|
3356
|
+
* @interface BlueprintCreateRequest
|
|
3357
|
+
*/
|
|
3358
|
+
export interface BlueprintCreateRequest {
|
|
3359
|
+
/**
|
|
3360
|
+
* Display name for the service
|
|
3361
|
+
* @type {string}
|
|
3362
|
+
* @memberof BlueprintCreateRequest
|
|
3363
|
+
*/
|
|
3364
|
+
'name': string;
|
|
3365
|
+
/**
|
|
3366
|
+
* Catalog tag identifying the blueprint version
|
|
3367
|
+
* @type {string}
|
|
3368
|
+
* @memberof BlueprintCreateRequest
|
|
3369
|
+
*/
|
|
3370
|
+
'tag': string;
|
|
3371
|
+
/**
|
|
3372
|
+
* Icon URL for the service
|
|
3373
|
+
* @type {string}
|
|
3374
|
+
* @memberof BlueprintCreateRequest
|
|
3375
|
+
*/
|
|
3376
|
+
'icon': string;
|
|
3377
|
+
/**
|
|
3378
|
+
* Variable overrides for the blueprint
|
|
3379
|
+
* @type {Array<BlueprintVariableRequest>}
|
|
3380
|
+
* @memberof BlueprintCreateRequest
|
|
3381
|
+
*/
|
|
3382
|
+
'variables'?: Array<BlueprintVariableRequest>;
|
|
3383
|
+
/**
|
|
3384
|
+
* Partial spec overrides merged on top of the blueprint manifest
|
|
3385
|
+
* @type {{ [key: string]: any; }}
|
|
3386
|
+
* @memberof BlueprintCreateRequest
|
|
3387
|
+
*/
|
|
3388
|
+
'specOverrides'?: {
|
|
3389
|
+
[key: string]: any;
|
|
3390
|
+
} | null;
|
|
3391
|
+
}
|
|
3353
3392
|
/**
|
|
3354
3393
|
*
|
|
3355
3394
|
* @export
|
|
@@ -3424,6 +3463,62 @@ export interface BlueprintMajorVersion {
|
|
|
3424
3463
|
*/
|
|
3425
3464
|
'latestTag': string;
|
|
3426
3465
|
}
|
|
3466
|
+
/**
|
|
3467
|
+
*
|
|
3468
|
+
* @export
|
|
3469
|
+
* @interface BlueprintResponse
|
|
3470
|
+
*/
|
|
3471
|
+
export interface BlueprintResponse {
|
|
3472
|
+
/**
|
|
3473
|
+
*
|
|
3474
|
+
* @type {string}
|
|
3475
|
+
* @memberof BlueprintResponse
|
|
3476
|
+
*/
|
|
3477
|
+
'id': string;
|
|
3478
|
+
/**
|
|
3479
|
+
* URL to the blueprint catalog entry
|
|
3480
|
+
* @type {string}
|
|
3481
|
+
* @memberof BlueprintResponse
|
|
3482
|
+
*/
|
|
3483
|
+
'catalogUrl': string;
|
|
3484
|
+
/**
|
|
3485
|
+
*
|
|
3486
|
+
* @type {string}
|
|
3487
|
+
* @memberof BlueprintResponse
|
|
3488
|
+
*/
|
|
3489
|
+
'tag': string;
|
|
3490
|
+
/**
|
|
3491
|
+
*
|
|
3492
|
+
* @type {string}
|
|
3493
|
+
* @memberof BlueprintResponse
|
|
3494
|
+
*/
|
|
3495
|
+
'environmentId': string;
|
|
3496
|
+
}
|
|
3497
|
+
/**
|
|
3498
|
+
*
|
|
3499
|
+
* @export
|
|
3500
|
+
* @interface BlueprintVariableRequest
|
|
3501
|
+
*/
|
|
3502
|
+
export interface BlueprintVariableRequest {
|
|
3503
|
+
/**
|
|
3504
|
+
*
|
|
3505
|
+
* @type {string}
|
|
3506
|
+
* @memberof BlueprintVariableRequest
|
|
3507
|
+
*/
|
|
3508
|
+
'name': string;
|
|
3509
|
+
/**
|
|
3510
|
+
*
|
|
3511
|
+
* @type {string}
|
|
3512
|
+
* @memberof BlueprintVariableRequest
|
|
3513
|
+
*/
|
|
3514
|
+
'value': string;
|
|
3515
|
+
/**
|
|
3516
|
+
*
|
|
3517
|
+
* @type {boolean}
|
|
3518
|
+
* @memberof BlueprintVariableRequest
|
|
3519
|
+
*/
|
|
3520
|
+
'isSecret'?: boolean;
|
|
3521
|
+
}
|
|
3427
3522
|
/**
|
|
3428
3523
|
*
|
|
3429
3524
|
* @export
|
|
@@ -27162,6 +27257,16 @@ export declare class BlueprintCatalogApi extends BaseAPI {
|
|
|
27162
27257
|
* @export
|
|
27163
27258
|
*/
|
|
27164
27259
|
export declare const BlueprintMainCallsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
27260
|
+
/**
|
|
27261
|
+
* Instantiates a blueprint from the service catalog into the given environment. Pass `deploy=true` to trigger an immediate deployment after creation.
|
|
27262
|
+
* @summary Create a blueprint service in an environment
|
|
27263
|
+
* @param {string} environmentId Environment ID
|
|
27264
|
+
* @param {BlueprintCreateRequest} blueprintCreateRequest
|
|
27265
|
+
* @param {boolean} [deploy] Trigger a deployment immediately after creation
|
|
27266
|
+
* @param {*} [options] Override http request option.
|
|
27267
|
+
* @throws {RequiredError}
|
|
27268
|
+
*/
|
|
27269
|
+
createBlueprint: (environmentId: string, blueprintCreateRequest: BlueprintCreateRequest, deploy?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
27165
27270
|
/**
|
|
27166
27271
|
* Retrieves the Qovery service catalog from the public GitHub repository (Qovery/service-catalog). The catalog lists all available blueprints that can be deployed.
|
|
27167
27272
|
* @summary Get the blueprint service catalog
|
|
@@ -27176,6 +27281,16 @@ export declare const BlueprintMainCallsApiAxiosParamCreator: (configuration?: Co
|
|
|
27176
27281
|
* @export
|
|
27177
27282
|
*/
|
|
27178
27283
|
export declare const BlueprintMainCallsApiFp: (configuration?: Configuration) => {
|
|
27284
|
+
/**
|
|
27285
|
+
* Instantiates a blueprint from the service catalog into the given environment. Pass `deploy=true` to trigger an immediate deployment after creation.
|
|
27286
|
+
* @summary Create a blueprint service in an environment
|
|
27287
|
+
* @param {string} environmentId Environment ID
|
|
27288
|
+
* @param {BlueprintCreateRequest} blueprintCreateRequest
|
|
27289
|
+
* @param {boolean} [deploy] Trigger a deployment immediately after creation
|
|
27290
|
+
* @param {*} [options] Override http request option.
|
|
27291
|
+
* @throws {RequiredError}
|
|
27292
|
+
*/
|
|
27293
|
+
createBlueprint(environmentId: string, blueprintCreateRequest: BlueprintCreateRequest, deploy?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BlueprintResponse>>;
|
|
27179
27294
|
/**
|
|
27180
27295
|
* Retrieves the Qovery service catalog from the public GitHub repository (Qovery/service-catalog). The catalog lists all available blueprints that can be deployed.
|
|
27181
27296
|
* @summary Get the blueprint service catalog
|
|
@@ -27190,6 +27305,16 @@ export declare const BlueprintMainCallsApiFp: (configuration?: Configuration) =>
|
|
|
27190
27305
|
* @export
|
|
27191
27306
|
*/
|
|
27192
27307
|
export declare const BlueprintMainCallsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
27308
|
+
/**
|
|
27309
|
+
* Instantiates a blueprint from the service catalog into the given environment. Pass `deploy=true` to trigger an immediate deployment after creation.
|
|
27310
|
+
* @summary Create a blueprint service in an environment
|
|
27311
|
+
* @param {string} environmentId Environment ID
|
|
27312
|
+
* @param {BlueprintCreateRequest} blueprintCreateRequest
|
|
27313
|
+
* @param {boolean} [deploy] Trigger a deployment immediately after creation
|
|
27314
|
+
* @param {*} [options] Override http request option.
|
|
27315
|
+
* @throws {RequiredError}
|
|
27316
|
+
*/
|
|
27317
|
+
createBlueprint(environmentId: string, blueprintCreateRequest: BlueprintCreateRequest, deploy?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<BlueprintResponse>;
|
|
27193
27318
|
/**
|
|
27194
27319
|
* Retrieves the Qovery service catalog from the public GitHub repository (Qovery/service-catalog). The catalog lists all available blueprints that can be deployed.
|
|
27195
27320
|
* @summary Get the blueprint service catalog
|
|
@@ -27206,6 +27331,17 @@ export declare const BlueprintMainCallsApiFactory: (configuration?: Configuratio
|
|
|
27206
27331
|
* @extends {BaseAPI}
|
|
27207
27332
|
*/
|
|
27208
27333
|
export declare class BlueprintMainCallsApi extends BaseAPI {
|
|
27334
|
+
/**
|
|
27335
|
+
* Instantiates a blueprint from the service catalog into the given environment. Pass `deploy=true` to trigger an immediate deployment after creation.
|
|
27336
|
+
* @summary Create a blueprint service in an environment
|
|
27337
|
+
* @param {string} environmentId Environment ID
|
|
27338
|
+
* @param {BlueprintCreateRequest} blueprintCreateRequest
|
|
27339
|
+
* @param {boolean} [deploy] Trigger a deployment immediately after creation
|
|
27340
|
+
* @param {*} [options] Override http request option.
|
|
27341
|
+
* @throws {RequiredError}
|
|
27342
|
+
* @memberof BlueprintMainCallsApi
|
|
27343
|
+
*/
|
|
27344
|
+
createBlueprint(environmentId: string, blueprintCreateRequest: BlueprintCreateRequest, deploy?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BlueprintResponse, any, {}>>;
|
|
27209
27345
|
/**
|
|
27210
27346
|
* Retrieves the Qovery service catalog from the public GitHub repository (Qovery/service-catalog). The catalog lists all available blueprints that can be deployed.
|
|
27211
27347
|
* @summary Get the blueprint service catalog
|
package/dist/esm/api.js
CHANGED
|
@@ -8890,6 +8890,49 @@ export class BlueprintCatalogApi extends BaseAPI {
|
|
|
8890
8890
|
*/
|
|
8891
8891
|
export const BlueprintMainCallsApiAxiosParamCreator = function (configuration) {
|
|
8892
8892
|
return {
|
|
8893
|
+
/**
|
|
8894
|
+
* Instantiates a blueprint from the service catalog into the given environment. Pass `deploy=true` to trigger an immediate deployment after creation.
|
|
8895
|
+
* @summary Create a blueprint service in an environment
|
|
8896
|
+
* @param {string} environmentId Environment ID
|
|
8897
|
+
* @param {BlueprintCreateRequest} blueprintCreateRequest
|
|
8898
|
+
* @param {boolean} [deploy] Trigger a deployment immediately after creation
|
|
8899
|
+
* @param {*} [options] Override http request option.
|
|
8900
|
+
* @throws {RequiredError}
|
|
8901
|
+
*/
|
|
8902
|
+
createBlueprint: (environmentId_1, blueprintCreateRequest_1, deploy_1, ...args_1) => __awaiter(this, [environmentId_1, blueprintCreateRequest_1, deploy_1, ...args_1], void 0, function* (environmentId, blueprintCreateRequest, deploy, options = {}) {
|
|
8903
|
+
// verify required parameter 'environmentId' is not null or undefined
|
|
8904
|
+
assertParamExists('createBlueprint', 'environmentId', environmentId);
|
|
8905
|
+
// verify required parameter 'blueprintCreateRequest' is not null or undefined
|
|
8906
|
+
assertParamExists('createBlueprint', 'blueprintCreateRequest', blueprintCreateRequest);
|
|
8907
|
+
const localVarPath = `/environment/{environmentId}/blueprint`
|
|
8908
|
+
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
8909
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8910
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8911
|
+
let baseOptions;
|
|
8912
|
+
if (configuration) {
|
|
8913
|
+
baseOptions = configuration.baseOptions;
|
|
8914
|
+
}
|
|
8915
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
8916
|
+
const localVarHeaderParameter = {};
|
|
8917
|
+
const localVarQueryParameter = {};
|
|
8918
|
+
// authentication ApiKeyAuth required
|
|
8919
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
8920
|
+
// authentication bearerAuth required
|
|
8921
|
+
// http bearer authentication required
|
|
8922
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
8923
|
+
if (deploy !== undefined) {
|
|
8924
|
+
localVarQueryParameter['deploy'] = deploy;
|
|
8925
|
+
}
|
|
8926
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8927
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8928
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8929
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8930
|
+
localVarRequestOptions.data = serializeDataIfNeeded(blueprintCreateRequest, localVarRequestOptions, configuration);
|
|
8931
|
+
return {
|
|
8932
|
+
url: toPathString(localVarUrlObj),
|
|
8933
|
+
options: localVarRequestOptions,
|
|
8934
|
+
};
|
|
8935
|
+
}),
|
|
8893
8936
|
/**
|
|
8894
8937
|
* Retrieves the Qovery service catalog from the public GitHub repository (Qovery/service-catalog). The catalog lists all available blueprints that can be deployed.
|
|
8895
8938
|
* @summary Get the blueprint service catalog
|
|
@@ -8933,6 +8976,24 @@ export const BlueprintMainCallsApiAxiosParamCreator = function (configuration) {
|
|
|
8933
8976
|
export const BlueprintMainCallsApiFp = function (configuration) {
|
|
8934
8977
|
const localVarAxiosParamCreator = BlueprintMainCallsApiAxiosParamCreator(configuration);
|
|
8935
8978
|
return {
|
|
8979
|
+
/**
|
|
8980
|
+
* Instantiates a blueprint from the service catalog into the given environment. Pass `deploy=true` to trigger an immediate deployment after creation.
|
|
8981
|
+
* @summary Create a blueprint service in an environment
|
|
8982
|
+
* @param {string} environmentId Environment ID
|
|
8983
|
+
* @param {BlueprintCreateRequest} blueprintCreateRequest
|
|
8984
|
+
* @param {boolean} [deploy] Trigger a deployment immediately after creation
|
|
8985
|
+
* @param {*} [options] Override http request option.
|
|
8986
|
+
* @throws {RequiredError}
|
|
8987
|
+
*/
|
|
8988
|
+
createBlueprint(environmentId, blueprintCreateRequest, deploy, options) {
|
|
8989
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8990
|
+
var _a, _b, _c;
|
|
8991
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBlueprint(environmentId, blueprintCreateRequest, deploy, options);
|
|
8992
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8993
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BlueprintMainCallsApi.createBlueprint']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8994
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8995
|
+
});
|
|
8996
|
+
},
|
|
8936
8997
|
/**
|
|
8937
8998
|
* Retrieves the Qovery service catalog from the public GitHub repository (Qovery/service-catalog). The catalog lists all available blueprints that can be deployed.
|
|
8938
8999
|
* @summary Get the blueprint service catalog
|
|
@@ -8958,6 +9019,18 @@ export const BlueprintMainCallsApiFp = function (configuration) {
|
|
|
8958
9019
|
export const BlueprintMainCallsApiFactory = function (configuration, basePath, axios) {
|
|
8959
9020
|
const localVarFp = BlueprintMainCallsApiFp(configuration);
|
|
8960
9021
|
return {
|
|
9022
|
+
/**
|
|
9023
|
+
* Instantiates a blueprint from the service catalog into the given environment. Pass `deploy=true` to trigger an immediate deployment after creation.
|
|
9024
|
+
* @summary Create a blueprint service in an environment
|
|
9025
|
+
* @param {string} environmentId Environment ID
|
|
9026
|
+
* @param {BlueprintCreateRequest} blueprintCreateRequest
|
|
9027
|
+
* @param {boolean} [deploy] Trigger a deployment immediately after creation
|
|
9028
|
+
* @param {*} [options] Override http request option.
|
|
9029
|
+
* @throws {RequiredError}
|
|
9030
|
+
*/
|
|
9031
|
+
createBlueprint(environmentId, blueprintCreateRequest, deploy, options) {
|
|
9032
|
+
return localVarFp.createBlueprint(environmentId, blueprintCreateRequest, deploy, options).then((request) => request(axios, basePath));
|
|
9033
|
+
},
|
|
8961
9034
|
/**
|
|
8962
9035
|
* Retrieves the Qovery service catalog from the public GitHub repository (Qovery/service-catalog). The catalog lists all available blueprints that can be deployed.
|
|
8963
9036
|
* @summary Get the blueprint service catalog
|
|
@@ -8977,6 +9050,19 @@ export const BlueprintMainCallsApiFactory = function (configuration, basePath, a
|
|
|
8977
9050
|
* @extends {BaseAPI}
|
|
8978
9051
|
*/
|
|
8979
9052
|
export class BlueprintMainCallsApi extends BaseAPI {
|
|
9053
|
+
/**
|
|
9054
|
+
* Instantiates a blueprint from the service catalog into the given environment. Pass `deploy=true` to trigger an immediate deployment after creation.
|
|
9055
|
+
* @summary Create a blueprint service in an environment
|
|
9056
|
+
* @param {string} environmentId Environment ID
|
|
9057
|
+
* @param {BlueprintCreateRequest} blueprintCreateRequest
|
|
9058
|
+
* @param {boolean} [deploy] Trigger a deployment immediately after creation
|
|
9059
|
+
* @param {*} [options] Override http request option.
|
|
9060
|
+
* @throws {RequiredError}
|
|
9061
|
+
* @memberof BlueprintMainCallsApi
|
|
9062
|
+
*/
|
|
9063
|
+
createBlueprint(environmentId, blueprintCreateRequest, deploy, options) {
|
|
9064
|
+
return BlueprintMainCallsApiFp(this.configuration).createBlueprint(environmentId, blueprintCreateRequest, deploy, options).then((request) => request(this.axios, this.basePath));
|
|
9065
|
+
}
|
|
8980
9066
|
/**
|
|
8981
9067
|
* Retrieves the Qovery service catalog from the public GitHub repository (Qovery/service-catalog). The catalog lists all available blueprints that can be deployed.
|
|
8982
9068
|
* @summary Get the blueprint service catalog
|