Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
132 changes: 111 additions & 21 deletions packages/vulnerabilities/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Vulnerability Engine Manager
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.70.8
* The version of the OpenAPI document: 2.75.8
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -436,48 +436,61 @@ export interface CvesWithoutErrataIn {
export interface CvesWithoutErrataOut {
/**
*
* @type {CvesWithoutErrataOutUpdated}
* @type {CvesWithoutErrataOutCvesWithoutErrata}
* @memberof CvesWithoutErrataOut
*/
updated: CvesWithoutErrataOutUpdated;
cves_without_errata: CvesWithoutErrataOutCvesWithoutErrata;
}
/**
*
* @export
* @interface CvesWithoutErrataOutCvesWithoutErrata
*/
export interface CvesWithoutErrataOutCvesWithoutErrata {
/**
*
* @type {MetaPermissions}
* @memberof CvesWithoutErrataOut
* @type {boolean}
* @memberof CvesWithoutErrataOutCvesWithoutErrata
*/
meta: MetaPermissions;
enabled?: boolean;
}
/**
*
* @export
* @interface CvesWithoutErrataOutUpdated
* @interface CvesWithoutErrataPatchOut
*/
export interface CvesWithoutErrataOutUpdated {
export interface CvesWithoutErrataPatchOut {
/**
*
* @type {string}
* @memberof CvesWithoutErrataOutUpdated
* @type {CvesWithoutErrataPatchOutUpdated}
* @memberof CvesWithoutErrataPatchOut
*/
org_id?: string;
updated: CvesWithoutErrataPatchOutUpdated;
/**
*
* @type {CvesWithoutErrataOutUpdatedCvesWithoutErrata}
* @memberof CvesWithoutErrataOutUpdated
* @type {MetaPermissions}
* @memberof CvesWithoutErrataPatchOut
*/
cves_without_errata?: CvesWithoutErrataOutUpdatedCvesWithoutErrata;
meta: MetaPermissions;
}
/**
*
* @export
* @interface CvesWithoutErrataOutUpdatedCvesWithoutErrata
* @interface CvesWithoutErrataPatchOutUpdated
*/
export interface CvesWithoutErrataOutUpdatedCvesWithoutErrata {
export interface CvesWithoutErrataPatchOutUpdated {
/**
*
* @type {boolean}
* @memberof CvesWithoutErrataOutUpdatedCvesWithoutErrata
* @type {string}
* @memberof CvesWithoutErrataPatchOutUpdated
*/
enabled?: boolean;
org_id?: string;
/**
*
* @type {CvesWithoutErrataOutCvesWithoutErrata}
* @memberof CvesWithoutErrataPatchOutUpdated
*/
cves_without_errata?: CvesWithoutErrataOutCvesWithoutErrata;
}
/**
*
Expand Down Expand Up @@ -4146,6 +4159,50 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
options: localVarRequestOptions,
};
},
/**
* Use this endpoint to get an enablement status of reporting CVEs that do not have advisories (errata) for your customer account. If the feature is disabled, CVEs without advisories will be hidden in outputs of all endpoints.
* @summary Get a feature flag status for CVEs without errata
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCvesWithoutErrata: async (options: any = {}): Promise<RequestArgs> => {
const localVarPath = `/feature/cves_without_errata`;
const localVarUrlObj = globalImportUrl.parse(localVarPath, true);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;

// authentication ApiKeyAuth required
if (configuration && configuration.apiKey) {
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
? await configuration.apiKey("x-rh-identity")
: await configuration.apiKey;
localVarHeaderParameter["x-rh-identity"] = localVarApiKeyValue;
}

// authentication BasicAuth required
// http basic authentication required
if (configuration && (configuration.username || configuration.password)) {
localVarRequestOptions["auth"] = { username: configuration.username, password: configuration.password };
}



localVarUrlObj.query = {...localVarUrlObj.query, ...localVarQueryParameter, ...options.query};
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
delete localVarUrlObj.search;
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};

return {
url: globalImportUrl.format(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
* These are aggregations summarizing your account such as number of unique CVEs, list of security rules, CVEs by severity and more. Use this endpoint to obtain a snapshot of all the CVES and details about their prevalence, severity and other details.
* @summary Get aggregations for the dashbar
Expand Down Expand Up @@ -5439,6 +5496,19 @@ export const DefaultApiFp = function(configuration?: Configuration) {
return axios.request(axiosRequestArgs);
};
},
/**
* Use this endpoint to get an enablement status of reporting CVEs that do not have advisories (errata) for your customer account. If the feature is disabled, CVEs without advisories will be hidden in outputs of all endpoints.
* @summary Get a feature flag status for CVEs without errata
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getCvesWithoutErrata(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CvesWithoutErrataOut>> {
const localVarAxiosArgs = await DefaultApiAxiosParamCreator(configuration).getCvesWithoutErrata(options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
return axios.request(axiosRequestArgs);
};
},
/**
* These are aggregations summarizing your account such as number of unique CVEs, list of security rules, CVEs by severity and more. Use this endpoint to obtain a snapshot of all the CVES and details about their prevalence, severity and other details.
* @summary Get aggregations for the dashbar
Expand Down Expand Up @@ -5657,7 +5727,7 @@ export const DefaultApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async setCvesWithoutErrata(cvesWithoutErrataIn: CvesWithoutErrataIn, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CvesWithoutErrataOut>> {
async setCvesWithoutErrata(cvesWithoutErrataIn: CvesWithoutErrataIn, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CvesWithoutErrataPatchOut>> {
const localVarAxiosArgs = await DefaultApiAxiosParamCreator(configuration).setCvesWithoutErrata(cvesWithoutErrataIn, options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
const axiosRequestArgs = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
Expand Down Expand Up @@ -5979,6 +6049,15 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
getCveList_1(vulnerabilitiesPostIn: VulnerabilitiesPostIn, filter?: string, limit?: number, offset?: number, page?: number, pageSize?: number, sort?: string, options?: any): AxiosPromise<VulnerabilitiesPostOut> {
return DefaultApiFp(configuration).getCveList_1(vulnerabilitiesPostIn, filter, limit, offset, page, pageSize, sort, options).then((request) => request(axios, basePath));
},
/**
* Use this endpoint to get an enablement status of reporting CVEs that do not have advisories (errata) for your customer account. If the feature is disabled, CVEs without advisories will be hidden in outputs of all endpoints.
* @summary Get a feature flag status for CVEs without errata
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCvesWithoutErrata(options?: any): AxiosPromise<CvesWithoutErrataOut> {
return DefaultApiFp(configuration).getCvesWithoutErrata(options).then((request) => request(axios, basePath));
},
/**
* These are aggregations summarizing your account such as number of unique CVEs, list of security rules, CVEs by severity and more. Use this endpoint to obtain a snapshot of all the CVES and details about their prevalence, severity and other details.
* @summary Get aggregations for the dashbar
Expand Down Expand Up @@ -6149,7 +6228,7 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
setCvesWithoutErrata(cvesWithoutErrataIn: CvesWithoutErrataIn, options?: any): AxiosPromise<CvesWithoutErrataOut> {
setCvesWithoutErrata(cvesWithoutErrataIn: CvesWithoutErrataIn, options?: any): AxiosPromise<CvesWithoutErrataPatchOut> {
return DefaultApiFp(configuration).setCvesWithoutErrata(cvesWithoutErrataIn, options).then((request) => request(axios, basePath));
},
/**
Expand Down Expand Up @@ -6484,6 +6563,17 @@ export class DefaultApi extends BaseAPI {
return DefaultApiFp(this.configuration).getCveList_1(vulnerabilitiesPostIn, filter, limit, offset, page, pageSize, sort, options).then((request) => request(this.axios, this.basePath));
}

/**
* Use this endpoint to get an enablement status of reporting CVEs that do not have advisories (errata) for your customer account. If the feature is disabled, CVEs without advisories will be hidden in outputs of all endpoints.
* @summary Get a feature flag status for CVEs without errata
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DefaultApi
*/
public getCvesWithoutErrata(options?: any) {
return DefaultApiFp(this.configuration).getCvesWithoutErrata(options).then((request) => request(this.axios, this.basePath));
}

/**
* These are aggregations summarizing your account such as number of unique CVEs, list of security rules, CVEs by severity and more. Use this endpoint to obtain a snapshot of all the CVES and details about their prevalence, severity and other details.
* @summary Get aggregations for the dashbar
Expand Down
2 changes: 1 addition & 1 deletion packages/vulnerabilities/apiSpec.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/vulnerabilities/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Vulnerability Engine Manager
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.70.8
* The version of the OpenAPI document: 2.75.8
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion packages/vulnerabilities/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Vulnerability Engine Manager
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.70.8
* The version of the OpenAPI document: 2.75.8
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Loading
Loading