Skip to content

Commit

Permalink
See Qovery/qovery-openapi-spec@9d88f8f from refs/heads/main
Browse files Browse the repository at this point in the history
  • Loading branch information
qovery committed Jan 28, 2025
1 parent d50c488 commit 940af36
Show file tree
Hide file tree
Showing 2 changed files with 229 additions and 1 deletion.
228 changes: 228 additions & 0 deletions api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14557,6 +14557,160 @@ export interface ProjectStatsResponseList {
*/
'results'?: Array<ProjectStats>;
}
/**
*
* @export
* @interface QueuedDeploymentRequestWithStages
*/
export interface QueuedDeploymentRequestWithStages {
/**
*
* @type {QueuedDeploymentRequestWithStagesIdentifier}
* @memberof QueuedDeploymentRequestWithStages
*/
'identifier': QueuedDeploymentRequestWithStagesIdentifier;
/**
*
* @type {QueuedDeploymentRequestWithStagesAuditingData}
* @memberof QueuedDeploymentRequestWithStages
*/
'auditing_data': QueuedDeploymentRequestWithStagesAuditingData;
/**
*
* @type {DeploymentHistoryTriggerAction}
* @memberof QueuedDeploymentRequestWithStages
*/
'trigger_action': DeploymentHistoryTriggerAction;
/**
*
* @type {QueuedDeploymentRequestWithStagesStages}
* @memberof QueuedDeploymentRequestWithStages
*/
'stages': QueuedDeploymentRequestWithStagesStages;
}


/**
*
* @export
* @interface QueuedDeploymentRequestWithStagesAuditingData
*/
export interface QueuedDeploymentRequestWithStagesAuditingData {
/**
*
* @type {string}
* @memberof QueuedDeploymentRequestWithStagesAuditingData
*/
'triggered_by': string;
/**
*
* @type {OrganizationEventOrigin}
* @memberof QueuedDeploymentRequestWithStagesAuditingData
*/
'origin'?: OrganizationEventOrigin;
}


/**
*
* @export
* @interface QueuedDeploymentRequestWithStagesIdentifier
*/
export interface QueuedDeploymentRequestWithStagesIdentifier {
/**
*
* @type {string}
* @memberof QueuedDeploymentRequestWithStagesIdentifier
*/
'deployment_request_id': string;
/**
*
* @type {string}
* @memberof QueuedDeploymentRequestWithStagesIdentifier
*/
'environment_id': string;
}
/**
*
* @export
* @interface QueuedDeploymentRequestWithStagesStages
*/
export interface QueuedDeploymentRequestWithStagesStages {
/**
*
* @type {string}
* @memberof QueuedDeploymentRequestWithStagesStages
*/
'name': string;
/**
*
* @type {StageStatusEnum}
* @memberof QueuedDeploymentRequestWithStagesStages
*/
'status': StageStatusEnum;
/**
*
* @type {Array<QueuedDeploymentRequestWithStagesStagesServicesInner>}
* @memberof QueuedDeploymentRequestWithStagesStages
*/
'services': Array<QueuedDeploymentRequestWithStagesStagesServicesInner>;
}


/**
*
* @export
* @interface QueuedDeploymentRequestWithStagesStagesServicesInner
*/
export interface QueuedDeploymentRequestWithStagesStagesServicesInner {
/**
*
* @type {QueuedDeploymentRequestWithStagesStagesServicesInnerIdentifier}
* @memberof QueuedDeploymentRequestWithStagesStagesServicesInner
*/
'identifier': QueuedDeploymentRequestWithStagesStagesServicesInnerIdentifier;
/**
*
* @type {StageStatusEnum}
* @memberof QueuedDeploymentRequestWithStagesStagesServicesInner
*/
'status': StageStatusEnum;
/**
*
* @type {string}
* @memberof QueuedDeploymentRequestWithStagesStagesServicesInner
*/
'icon_uri'?: string;
}


/**
*
* @export
* @interface QueuedDeploymentRequestWithStagesStagesServicesInnerIdentifier
*/
export interface QueuedDeploymentRequestWithStagesStagesServicesInnerIdentifier {
/**
*
* @type {string}
* @memberof QueuedDeploymentRequestWithStagesStagesServicesInnerIdentifier
*/
'service_id': string;
/**
*
* @type {ServiceTypeEnum}
* @memberof QueuedDeploymentRequestWithStagesStagesServicesInnerIdentifier
*/
'service_type': ServiceTypeEnum;
/**
*
* @type {string}
* @memberof QueuedDeploymentRequestWithStagesStagesServicesInnerIdentifier
*/
'name': string;
}


/**
*
* @export
Expand Down Expand Up @@ -33620,6 +33774,47 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati



setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};

return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
*
* @summary Get Deployment Queue By EnvironmentId
* @param {string} environmentId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getEnvironmentDeploymentQueue: async (environmentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'environmentId' is not null or undefined
assertParamExists('getEnvironmentDeploymentQueue', 'environmentId', environmentId)
const localVarPath = `/environment/{environmentId}/deploymentQueue`
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}

const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;

// authentication ApiKeyAuth required
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)

// authentication bearerAuth required
// http bearer authentication required
await setBearerAuthToObject(localVarHeaderParameter, configuration)



setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
Expand Down Expand Up @@ -33712,6 +33907,17 @@ export const DefaultApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.getDeploymentStatusByDeploymentRequestId(deploymentRequestId, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
* @summary Get Deployment Queue By EnvironmentId
* @param {string} environmentId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getEnvironmentDeploymentQueue(environmentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QueuedDeploymentRequestWithStages>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getEnvironmentDeploymentQueue(environmentId, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
* @summary List Services By OrganizationId
Expand Down Expand Up @@ -33755,6 +33961,16 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
getDeploymentStatusByDeploymentRequestId(deploymentRequestId: string, options?: any): AxiosPromise<EnvDeploymentStatus> {
return localVarFp.getDeploymentStatusByDeploymentRequestId(deploymentRequestId, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Get Deployment Queue By EnvironmentId
* @param {string} environmentId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getEnvironmentDeploymentQueue(environmentId: string, options?: any): AxiosPromise<QueuedDeploymentRequestWithStages> {
return localVarFp.getEnvironmentDeploymentQueue(environmentId, options).then((request) => request(axios, basePath));
},
/**
*
* @summary List Services By OrganizationId
Expand Down Expand Up @@ -33801,6 +34017,18 @@ export class DefaultApi extends BaseAPI {
return DefaultApiFp(this.configuration).getDeploymentStatusByDeploymentRequestId(deploymentRequestId, options).then((request) => request(this.axios, this.basePath));
}

/**
*
* @summary Get Deployment Queue By EnvironmentId
* @param {string} environmentId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DefaultApi
*/
public getEnvironmentDeploymentQueue(environmentId: string, options?: AxiosRequestConfig) {
return DefaultApiFp(this.configuration).getEnvironmentDeploymentQueue(environmentId, options).then((request) => request(this.axios, this.basePath));
}

/**
*
* @summary List Services By OrganizationId
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qovery-typescript-axios",
"version": "v1.1.534",
"version": "1.0.3",
"description": "OpenAPI client for qovery-typescript-axios",
"author": "OpenAPI-Generator Contributors",
"repository": {
Expand Down

0 comments on commit 940af36

Please sign in to comment.