qovery-typescript-axios 1.1.965 → 1.1.967
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 +343 -0
- package/dist/api.d.ts +242 -0
- package/dist/api.js +183 -13
- package/dist/esm/api.d.ts +242 -0
- package/dist/esm/api.js +170 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -4071,6 +4071,49 @@ export interface BlueprintCreateRequest {
|
|
|
4071
4071
|
*/
|
|
4072
4072
|
'spec_overrides'?: BlueprintSpecOverrides;
|
|
4073
4073
|
}
|
|
4074
|
+
/**
|
|
4075
|
+
* Answer to a blueprint creation: the blueprint exists and an engine dispatch was started. The service it should materialize does not exist yet.
|
|
4076
|
+
* @export
|
|
4077
|
+
* @interface BlueprintCreationResponse
|
|
4078
|
+
*/
|
|
4079
|
+
export interface BlueprintCreationResponse {
|
|
4080
|
+
/**
|
|
4081
|
+
*
|
|
4082
|
+
* @type {string}
|
|
4083
|
+
* @memberof BlueprintCreationResponse
|
|
4084
|
+
*/
|
|
4085
|
+
'id': string;
|
|
4086
|
+
/**
|
|
4087
|
+
* URL to the blueprint catalog entry
|
|
4088
|
+
* @type {string}
|
|
4089
|
+
* @memberof BlueprintCreationResponse
|
|
4090
|
+
*/
|
|
4091
|
+
'catalog_url': string;
|
|
4092
|
+
/**
|
|
4093
|
+
*
|
|
4094
|
+
* @type {string}
|
|
4095
|
+
* @memberof BlueprintCreationResponse
|
|
4096
|
+
*/
|
|
4097
|
+
'tag': string;
|
|
4098
|
+
/**
|
|
4099
|
+
*
|
|
4100
|
+
* @type {string}
|
|
4101
|
+
* @memberof BlueprintCreationResponse
|
|
4102
|
+
*/
|
|
4103
|
+
'environment_id': string;
|
|
4104
|
+
/**
|
|
4105
|
+
* Identifier of the dispatch started by this creation. Resolve its status with GET /blueprint/{blueprintId}, and match it against `latest_deployment.id` there to confirm that dispatch is this one rather than a later re-dispatch.
|
|
4106
|
+
* @type {string}
|
|
4107
|
+
* @memberof BlueprintCreationResponse
|
|
4108
|
+
*/
|
|
4109
|
+
'deployment_id': string;
|
|
4110
|
+
/**
|
|
4111
|
+
* Engine execution identifier for this dispatch
|
|
4112
|
+
* @type {string}
|
|
4113
|
+
* @memberof BlueprintCreationResponse
|
|
4114
|
+
*/
|
|
4115
|
+
'execution_id': string;
|
|
4116
|
+
}
|
|
4074
4117
|
/**
|
|
4075
4118
|
*
|
|
4076
4119
|
* @export
|
|
@@ -4090,6 +4133,125 @@ export interface BlueprintDeploymentAckResponse {
|
|
|
4090
4133
|
*/
|
|
4091
4134
|
'execution_id': string;
|
|
4092
4135
|
}
|
|
4136
|
+
/**
|
|
4137
|
+
*
|
|
4138
|
+
* @export
|
|
4139
|
+
* @interface BlueprintDeploymentStatusResponse
|
|
4140
|
+
*/
|
|
4141
|
+
export interface BlueprintDeploymentStatusResponse {
|
|
4142
|
+
/**
|
|
4143
|
+
*
|
|
4144
|
+
* @type {string}
|
|
4145
|
+
* @memberof BlueprintDeploymentStatusResponse
|
|
4146
|
+
*/
|
|
4147
|
+
'id': string;
|
|
4148
|
+
/**
|
|
4149
|
+
* Engine execution identifier for this dispatch
|
|
4150
|
+
* @type {string}
|
|
4151
|
+
* @memberof BlueprintDeploymentStatusResponse
|
|
4152
|
+
*/
|
|
4153
|
+
'execution_id': string;
|
|
4154
|
+
/**
|
|
4155
|
+
* Status of the dispatch. Only the states a blueprint dispatch can reach, which is a subset of the deployment statuses used elsewhere in the API.
|
|
4156
|
+
* @type {string}
|
|
4157
|
+
* @memberof BlueprintDeploymentStatusResponse
|
|
4158
|
+
*/
|
|
4159
|
+
'status': BlueprintDeploymentStatusResponseStatusEnum;
|
|
4160
|
+
/**
|
|
4161
|
+
*
|
|
4162
|
+
* @type {string}
|
|
4163
|
+
* @memberof BlueprintDeploymentStatusResponse
|
|
4164
|
+
*/
|
|
4165
|
+
'started_at': string;
|
|
4166
|
+
/**
|
|
4167
|
+
* When the dispatch reached a terminal state. Null while it is still running.
|
|
4168
|
+
* @type {string}
|
|
4169
|
+
* @memberof BlueprintDeploymentStatusResponse
|
|
4170
|
+
*/
|
|
4171
|
+
'terminated_at': string | null;
|
|
4172
|
+
/**
|
|
4173
|
+
* The engine\'s failure message. Null unless the dispatch failed.
|
|
4174
|
+
* @type {string}
|
|
4175
|
+
* @memberof BlueprintDeploymentStatusResponse
|
|
4176
|
+
*/
|
|
4177
|
+
'error_message': string | null;
|
|
4178
|
+
}
|
|
4179
|
+
|
|
4180
|
+
export const BlueprintDeploymentStatusResponseStatusEnum = {
|
|
4181
|
+
WAITING_RUNNING: 'WAITING_RUNNING',
|
|
4182
|
+
DEPLOYING: 'DEPLOYING',
|
|
4183
|
+
RUNNING: 'RUNNING',
|
|
4184
|
+
FAILED: 'FAILED',
|
|
4185
|
+
CANCELING: 'CANCELING',
|
|
4186
|
+
CANCELED: 'CANCELED',
|
|
4187
|
+
INTERNAL_ERROR: 'INTERNAL_ERROR'
|
|
4188
|
+
} as const;
|
|
4189
|
+
|
|
4190
|
+
export type BlueprintDeploymentStatusResponseStatusEnum = typeof BlueprintDeploymentStatusResponseStatusEnum[keyof typeof BlueprintDeploymentStatusResponseStatusEnum];
|
|
4191
|
+
|
|
4192
|
+
/**
|
|
4193
|
+
*
|
|
4194
|
+
* @export
|
|
4195
|
+
* @interface BlueprintDetailsResponse
|
|
4196
|
+
*/
|
|
4197
|
+
export interface BlueprintDetailsResponse {
|
|
4198
|
+
/**
|
|
4199
|
+
*
|
|
4200
|
+
* @type {string}
|
|
4201
|
+
* @memberof BlueprintDetailsResponse
|
|
4202
|
+
*/
|
|
4203
|
+
'id': string;
|
|
4204
|
+
/**
|
|
4205
|
+
*
|
|
4206
|
+
* @type {string}
|
|
4207
|
+
* @memberof BlueprintDetailsResponse
|
|
4208
|
+
*/
|
|
4209
|
+
'name': string;
|
|
4210
|
+
/**
|
|
4211
|
+
* URL to the blueprint catalog entry
|
|
4212
|
+
* @type {string}
|
|
4213
|
+
* @memberof BlueprintDetailsResponse
|
|
4214
|
+
*/
|
|
4215
|
+
'catalog_url': string;
|
|
4216
|
+
/**
|
|
4217
|
+
*
|
|
4218
|
+
* @type {string}
|
|
4219
|
+
* @memberof BlueprintDetailsResponse
|
|
4220
|
+
*/
|
|
4221
|
+
'tag': string;
|
|
4222
|
+
/**
|
|
4223
|
+
*
|
|
4224
|
+
* @type {string}
|
|
4225
|
+
* @memberof BlueprintDetailsResponse
|
|
4226
|
+
*/
|
|
4227
|
+
'environment_id': string;
|
|
4228
|
+
/**
|
|
4229
|
+
* Type of the underlying service backing this blueprint
|
|
4230
|
+
* @type {string}
|
|
4231
|
+
* @memberof BlueprintDetailsResponse
|
|
4232
|
+
*/
|
|
4233
|
+
'service_type': BlueprintDetailsResponseServiceTypeEnum;
|
|
4234
|
+
/**
|
|
4235
|
+
* The service the dispatch produced. Null while the dispatch is still running, and null if it failed.
|
|
4236
|
+
* @type {string}
|
|
4237
|
+
* @memberof BlueprintDetailsResponse
|
|
4238
|
+
*/
|
|
4239
|
+
'service_id': string | null;
|
|
4240
|
+
/**
|
|
4241
|
+
* Latest dispatch for this blueprint. Null if it was never dispatched.
|
|
4242
|
+
* @type {BlueprintDeploymentStatusResponse}
|
|
4243
|
+
* @memberof BlueprintDetailsResponse
|
|
4244
|
+
*/
|
|
4245
|
+
'latest_deployment': BlueprintDeploymentStatusResponse | null;
|
|
4246
|
+
}
|
|
4247
|
+
|
|
4248
|
+
export const BlueprintDetailsResponseServiceTypeEnum = {
|
|
4249
|
+
HELM: 'HELM',
|
|
4250
|
+
TERRAFORM: 'TERRAFORM'
|
|
4251
|
+
} as const;
|
|
4252
|
+
|
|
4253
|
+
export type BlueprintDetailsResponseServiceTypeEnum = typeof BlueprintDetailsResponseServiceTypeEnum[keyof typeof BlueprintDetailsResponseServiceTypeEnum];
|
|
4254
|
+
|
|
4093
4255
|
/**
|
|
4094
4256
|
*
|
|
4095
4257
|
* @export
|
|
@@ -4102,6 +4264,12 @@ export interface BlueprintItem {
|
|
|
4102
4264
|
* @memberof BlueprintItem
|
|
4103
4265
|
*/
|
|
4104
4266
|
'name': string;
|
|
4267
|
+
/**
|
|
4268
|
+
* Customer-facing name for the blueprint.
|
|
4269
|
+
* @type {string}
|
|
4270
|
+
* @memberof BlueprintItem
|
|
4271
|
+
*/
|
|
4272
|
+
'displayName': string;
|
|
4105
4273
|
/**
|
|
4106
4274
|
*
|
|
4107
4275
|
* @type {string}
|
|
@@ -4126,6 +4294,12 @@ export interface BlueprintItem {
|
|
|
4126
4294
|
* @memberof BlueprintItem
|
|
4127
4295
|
*/
|
|
4128
4296
|
'categories': Array<string>;
|
|
4297
|
+
/**
|
|
4298
|
+
* Customer-facing category used to group blueprints in the service catalog.
|
|
4299
|
+
* @type {string}
|
|
4300
|
+
* @memberof BlueprintItem
|
|
4301
|
+
*/
|
|
4302
|
+
'primaryCategory': string;
|
|
4129
4303
|
/**
|
|
4130
4304
|
*
|
|
4131
4305
|
* @type {string}
|
|
@@ -36390,6 +36564,58 @@ export const BlueprintMainCallsApiAxiosParamCreator = function (configuration?:
|
|
|
36390
36564
|
|
|
36391
36565
|
|
|
36392
36566
|
|
|
36567
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
36568
|
+
|
|
36569
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
36570
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
36571
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
36572
|
+
localVarRequestOptions.data = serializeDataIfNeeded(blueprintCreateRequest, localVarRequestOptions, configuration)
|
|
36573
|
+
|
|
36574
|
+
return {
|
|
36575
|
+
url: toPathString(localVarUrlObj),
|
|
36576
|
+
options: localVarRequestOptions,
|
|
36577
|
+
};
|
|
36578
|
+
},
|
|
36579
|
+
/**
|
|
36580
|
+
* Instantiates a blueprint from the service catalog into the given environment and returns the ids of the engine dispatch it started. Pass `deploy=true` to trigger an immediate deployment after creation. Takes the same request as POST /environment/{environmentId}/blueprint. That endpoint answers 201, which claims a service that does not exist yet: the dispatch creating the underlying Helm/Terraform service runs on a background executor after the transaction commits. This one always answers 202 and hands back `deployment_id` and `execution_id`, which GET /blueprint/{blueprintId} resolves.
|
|
36581
|
+
* @summary Create a blueprint service and report the dispatch it started
|
|
36582
|
+
* @param {string} environmentId Environment ID
|
|
36583
|
+
* @param {BlueprintCreateRequest} blueprintCreateRequest
|
|
36584
|
+
* @param {boolean} [deploy] Trigger a deployment immediately after creation
|
|
36585
|
+
* @param {*} [options] Override http request option.
|
|
36586
|
+
* @throws {RequiredError}
|
|
36587
|
+
*/
|
|
36588
|
+
createBlueprintDeployment: async (environmentId: string, blueprintCreateRequest: BlueprintCreateRequest, deploy?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
36589
|
+
// verify required parameter 'environmentId' is not null or undefined
|
|
36590
|
+
assertParamExists('createBlueprintDeployment', 'environmentId', environmentId)
|
|
36591
|
+
// verify required parameter 'blueprintCreateRequest' is not null or undefined
|
|
36592
|
+
assertParamExists('createBlueprintDeployment', 'blueprintCreateRequest', blueprintCreateRequest)
|
|
36593
|
+
const localVarPath = `/environment/{environmentId}/blueprintDeployment`
|
|
36594
|
+
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
36595
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
36596
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
36597
|
+
let baseOptions;
|
|
36598
|
+
if (configuration) {
|
|
36599
|
+
baseOptions = configuration.baseOptions;
|
|
36600
|
+
}
|
|
36601
|
+
|
|
36602
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
36603
|
+
const localVarHeaderParameter = {} as any;
|
|
36604
|
+
const localVarQueryParameter = {} as any;
|
|
36605
|
+
|
|
36606
|
+
// authentication ApiKeyAuth required
|
|
36607
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
36608
|
+
|
|
36609
|
+
// authentication bearerAuth required
|
|
36610
|
+
// http bearer authentication required
|
|
36611
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
36612
|
+
|
|
36613
|
+
if (deploy !== undefined) {
|
|
36614
|
+
localVarQueryParameter['deploy'] = deploy;
|
|
36615
|
+
}
|
|
36616
|
+
|
|
36617
|
+
|
|
36618
|
+
|
|
36393
36619
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
36394
36620
|
|
|
36395
36621
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -36434,6 +36660,47 @@ export const BlueprintMainCallsApiAxiosParamCreator = function (configuration?:
|
|
|
36434
36660
|
|
|
36435
36661
|
|
|
36436
36662
|
|
|
36663
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
36664
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
36665
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
36666
|
+
|
|
36667
|
+
return {
|
|
36668
|
+
url: toPathString(localVarUrlObj),
|
|
36669
|
+
options: localVarRequestOptions,
|
|
36670
|
+
};
|
|
36671
|
+
},
|
|
36672
|
+
/**
|
|
36673
|
+
* Returns the blueprint, the Helm/Terraform service its dispatch produced once that service exists, and the latest dispatch with its status and the engine\'s error message. This is the only way to learn that a dispatch failed. Success is pushed over the `/blueprint/service-created` websocket, but there is no failure counterpart, so a client that only listens on the websocket waits forever on a dispatch that errored.
|
|
36674
|
+
* @summary Get a blueprint service and the status of its latest dispatch
|
|
36675
|
+
* @param {string} blueprintId Blueprint ID
|
|
36676
|
+
* @param {*} [options] Override http request option.
|
|
36677
|
+
* @throws {RequiredError}
|
|
36678
|
+
*/
|
|
36679
|
+
getBlueprint: async (blueprintId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
36680
|
+
// verify required parameter 'blueprintId' is not null or undefined
|
|
36681
|
+
assertParamExists('getBlueprint', 'blueprintId', blueprintId)
|
|
36682
|
+
const localVarPath = `/blueprint/{blueprintId}`
|
|
36683
|
+
.replace(`{${"blueprintId"}}`, encodeURIComponent(String(blueprintId)));
|
|
36684
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
36685
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
36686
|
+
let baseOptions;
|
|
36687
|
+
if (configuration) {
|
|
36688
|
+
baseOptions = configuration.baseOptions;
|
|
36689
|
+
}
|
|
36690
|
+
|
|
36691
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
36692
|
+
const localVarHeaderParameter = {} as any;
|
|
36693
|
+
const localVarQueryParameter = {} as any;
|
|
36694
|
+
|
|
36695
|
+
// authentication ApiKeyAuth required
|
|
36696
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
36697
|
+
|
|
36698
|
+
// authentication bearerAuth required
|
|
36699
|
+
// http bearer authentication required
|
|
36700
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
36701
|
+
|
|
36702
|
+
|
|
36703
|
+
|
|
36437
36704
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
36438
36705
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
36439
36706
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -36616,6 +36883,21 @@ export const BlueprintMainCallsApiFp = function(configuration?: Configuration) {
|
|
|
36616
36883
|
const localVarOperationServerBasePath = operationServerMap['BlueprintMainCallsApi.createBlueprint']?.[localVarOperationServerIndex]?.url;
|
|
36617
36884
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
36618
36885
|
},
|
|
36886
|
+
/**
|
|
36887
|
+
* Instantiates a blueprint from the service catalog into the given environment and returns the ids of the engine dispatch it started. Pass `deploy=true` to trigger an immediate deployment after creation. Takes the same request as POST /environment/{environmentId}/blueprint. That endpoint answers 201, which claims a service that does not exist yet: the dispatch creating the underlying Helm/Terraform service runs on a background executor after the transaction commits. This one always answers 202 and hands back `deployment_id` and `execution_id`, which GET /blueprint/{blueprintId} resolves.
|
|
36888
|
+
* @summary Create a blueprint service and report the dispatch it started
|
|
36889
|
+
* @param {string} environmentId Environment ID
|
|
36890
|
+
* @param {BlueprintCreateRequest} blueprintCreateRequest
|
|
36891
|
+
* @param {boolean} [deploy] Trigger a deployment immediately after creation
|
|
36892
|
+
* @param {*} [options] Override http request option.
|
|
36893
|
+
* @throws {RequiredError}
|
|
36894
|
+
*/
|
|
36895
|
+
async createBlueprintDeployment(environmentId: string, blueprintCreateRequest: BlueprintCreateRequest, deploy?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BlueprintCreationResponse>> {
|
|
36896
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBlueprintDeployment(environmentId, blueprintCreateRequest, deploy, options);
|
|
36897
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
36898
|
+
const localVarOperationServerBasePath = operationServerMap['BlueprintMainCallsApi.createBlueprintDeployment']?.[localVarOperationServerIndex]?.url;
|
|
36899
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
36900
|
+
},
|
|
36619
36901
|
/**
|
|
36620
36902
|
* Deploys the blueprint\'s currently saved settings to its service. Call this after saving changes with PATCH /blueprint/{blueprintId} (and, optionally, previewing them) to roll them out. No request body: it deploys whatever is currently saved on the blueprint.
|
|
36621
36903
|
* @summary Deploy (apply) the current blueprint spec
|
|
@@ -36629,6 +36911,19 @@ export const BlueprintMainCallsApiFp = function(configuration?: Configuration) {
|
|
|
36629
36911
|
const localVarOperationServerBasePath = operationServerMap['BlueprintMainCallsApi.deployBlueprint']?.[localVarOperationServerIndex]?.url;
|
|
36630
36912
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
36631
36913
|
},
|
|
36914
|
+
/**
|
|
36915
|
+
* Returns the blueprint, the Helm/Terraform service its dispatch produced once that service exists, and the latest dispatch with its status and the engine\'s error message. This is the only way to learn that a dispatch failed. Success is pushed over the `/blueprint/service-created` websocket, but there is no failure counterpart, so a client that only listens on the websocket waits forever on a dispatch that errored.
|
|
36916
|
+
* @summary Get a blueprint service and the status of its latest dispatch
|
|
36917
|
+
* @param {string} blueprintId Blueprint ID
|
|
36918
|
+
* @param {*} [options] Override http request option.
|
|
36919
|
+
* @throws {RequiredError}
|
|
36920
|
+
*/
|
|
36921
|
+
async getBlueprint(blueprintId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BlueprintDetailsResponse>> {
|
|
36922
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBlueprint(blueprintId, options);
|
|
36923
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
36924
|
+
const localVarOperationServerBasePath = operationServerMap['BlueprintMainCallsApi.getBlueprint']?.[localVarOperationServerIndex]?.url;
|
|
36925
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
36926
|
+
},
|
|
36632
36927
|
/**
|
|
36633
36928
|
* Retrieves the Qovery service catalog from the public GitHub repository (Qovery/service-catalog). The catalog lists all available blueprints that can be deployed.
|
|
36634
36929
|
* @summary Get the blueprint service catalog
|
|
@@ -36702,6 +36997,18 @@ export const BlueprintMainCallsApiFactory = function (configuration?: Configurat
|
|
|
36702
36997
|
createBlueprint(environmentId: string, blueprintCreateRequest: BlueprintCreateRequest, deploy?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<BlueprintResponse> {
|
|
36703
36998
|
return localVarFp.createBlueprint(environmentId, blueprintCreateRequest, deploy, options).then((request) => request(axios, basePath));
|
|
36704
36999
|
},
|
|
37000
|
+
/**
|
|
37001
|
+
* Instantiates a blueprint from the service catalog into the given environment and returns the ids of the engine dispatch it started. Pass `deploy=true` to trigger an immediate deployment after creation. Takes the same request as POST /environment/{environmentId}/blueprint. That endpoint answers 201, which claims a service that does not exist yet: the dispatch creating the underlying Helm/Terraform service runs on a background executor after the transaction commits. This one always answers 202 and hands back `deployment_id` and `execution_id`, which GET /blueprint/{blueprintId} resolves.
|
|
37002
|
+
* @summary Create a blueprint service and report the dispatch it started
|
|
37003
|
+
* @param {string} environmentId Environment ID
|
|
37004
|
+
* @param {BlueprintCreateRequest} blueprintCreateRequest
|
|
37005
|
+
* @param {boolean} [deploy] Trigger a deployment immediately after creation
|
|
37006
|
+
* @param {*} [options] Override http request option.
|
|
37007
|
+
* @throws {RequiredError}
|
|
37008
|
+
*/
|
|
37009
|
+
createBlueprintDeployment(environmentId: string, blueprintCreateRequest: BlueprintCreateRequest, deploy?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<BlueprintCreationResponse> {
|
|
37010
|
+
return localVarFp.createBlueprintDeployment(environmentId, blueprintCreateRequest, deploy, options).then((request) => request(axios, basePath));
|
|
37011
|
+
},
|
|
36705
37012
|
/**
|
|
36706
37013
|
* Deploys the blueprint\'s currently saved settings to its service. Call this after saving changes with PATCH /blueprint/{blueprintId} (and, optionally, previewing them) to roll them out. No request body: it deploys whatever is currently saved on the blueprint.
|
|
36707
37014
|
* @summary Deploy (apply) the current blueprint spec
|
|
@@ -36712,6 +37019,16 @@ export const BlueprintMainCallsApiFactory = function (configuration?: Configurat
|
|
|
36712
37019
|
deployBlueprint(blueprintId: string, options?: RawAxiosRequestConfig): AxiosPromise<BlueprintDeploymentAckResponse> {
|
|
36713
37020
|
return localVarFp.deployBlueprint(blueprintId, options).then((request) => request(axios, basePath));
|
|
36714
37021
|
},
|
|
37022
|
+
/**
|
|
37023
|
+
* Returns the blueprint, the Helm/Terraform service its dispatch produced once that service exists, and the latest dispatch with its status and the engine\'s error message. This is the only way to learn that a dispatch failed. Success is pushed over the `/blueprint/service-created` websocket, but there is no failure counterpart, so a client that only listens on the websocket waits forever on a dispatch that errored.
|
|
37024
|
+
* @summary Get a blueprint service and the status of its latest dispatch
|
|
37025
|
+
* @param {string} blueprintId Blueprint ID
|
|
37026
|
+
* @param {*} [options] Override http request option.
|
|
37027
|
+
* @throws {RequiredError}
|
|
37028
|
+
*/
|
|
37029
|
+
getBlueprint(blueprintId: string, options?: RawAxiosRequestConfig): AxiosPromise<BlueprintDetailsResponse> {
|
|
37030
|
+
return localVarFp.getBlueprint(blueprintId, options).then((request) => request(axios, basePath));
|
|
37031
|
+
},
|
|
36715
37032
|
/**
|
|
36716
37033
|
* Retrieves the Qovery service catalog from the public GitHub repository (Qovery/service-catalog). The catalog lists all available blueprints that can be deployed.
|
|
36717
37034
|
* @summary Get the blueprint service catalog
|
|
@@ -36780,6 +37097,20 @@ export class BlueprintMainCallsApi extends BaseAPI {
|
|
|
36780
37097
|
return BlueprintMainCallsApiFp(this.configuration).createBlueprint(environmentId, blueprintCreateRequest, deploy, options).then((request) => request(this.axios, this.basePath));
|
|
36781
37098
|
}
|
|
36782
37099
|
|
|
37100
|
+
/**
|
|
37101
|
+
* Instantiates a blueprint from the service catalog into the given environment and returns the ids of the engine dispatch it started. Pass `deploy=true` to trigger an immediate deployment after creation. Takes the same request as POST /environment/{environmentId}/blueprint. That endpoint answers 201, which claims a service that does not exist yet: the dispatch creating the underlying Helm/Terraform service runs on a background executor after the transaction commits. This one always answers 202 and hands back `deployment_id` and `execution_id`, which GET /blueprint/{blueprintId} resolves.
|
|
37102
|
+
* @summary Create a blueprint service and report the dispatch it started
|
|
37103
|
+
* @param {string} environmentId Environment ID
|
|
37104
|
+
* @param {BlueprintCreateRequest} blueprintCreateRequest
|
|
37105
|
+
* @param {boolean} [deploy] Trigger a deployment immediately after creation
|
|
37106
|
+
* @param {*} [options] Override http request option.
|
|
37107
|
+
* @throws {RequiredError}
|
|
37108
|
+
* @memberof BlueprintMainCallsApi
|
|
37109
|
+
*/
|
|
37110
|
+
public createBlueprintDeployment(environmentId: string, blueprintCreateRequest: BlueprintCreateRequest, deploy?: boolean, options?: RawAxiosRequestConfig) {
|
|
37111
|
+
return BlueprintMainCallsApiFp(this.configuration).createBlueprintDeployment(environmentId, blueprintCreateRequest, deploy, options).then((request) => request(this.axios, this.basePath));
|
|
37112
|
+
}
|
|
37113
|
+
|
|
36783
37114
|
/**
|
|
36784
37115
|
* Deploys the blueprint\'s currently saved settings to its service. Call this after saving changes with PATCH /blueprint/{blueprintId} (and, optionally, previewing them) to roll them out. No request body: it deploys whatever is currently saved on the blueprint.
|
|
36785
37116
|
* @summary Deploy (apply) the current blueprint spec
|
|
@@ -36792,6 +37123,18 @@ export class BlueprintMainCallsApi extends BaseAPI {
|
|
|
36792
37123
|
return BlueprintMainCallsApiFp(this.configuration).deployBlueprint(blueprintId, options).then((request) => request(this.axios, this.basePath));
|
|
36793
37124
|
}
|
|
36794
37125
|
|
|
37126
|
+
/**
|
|
37127
|
+
* Returns the blueprint, the Helm/Terraform service its dispatch produced once that service exists, and the latest dispatch with its status and the engine\'s error message. This is the only way to learn that a dispatch failed. Success is pushed over the `/blueprint/service-created` websocket, but there is no failure counterpart, so a client that only listens on the websocket waits forever on a dispatch that errored.
|
|
37128
|
+
* @summary Get a blueprint service and the status of its latest dispatch
|
|
37129
|
+
* @param {string} blueprintId Blueprint ID
|
|
37130
|
+
* @param {*} [options] Override http request option.
|
|
37131
|
+
* @throws {RequiredError}
|
|
37132
|
+
* @memberof BlueprintMainCallsApi
|
|
37133
|
+
*/
|
|
37134
|
+
public getBlueprint(blueprintId: string, options?: RawAxiosRequestConfig) {
|
|
37135
|
+
return BlueprintMainCallsApiFp(this.configuration).getBlueprint(blueprintId, options).then((request) => request(this.axios, this.basePath));
|
|
37136
|
+
}
|
|
37137
|
+
|
|
36795
37138
|
/**
|
|
36796
37139
|
* Retrieves the Qovery service catalog from the public GitHub repository (Qovery/service-catalog). The catalog lists all available blueprints that can be deployed.
|
|
36797
37140
|
* @summary Get the blueprint service catalog
|