/** * Sonatype Lifecycle Public REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.207.0-01 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import type { ScanHealthConfigDTO } from '../models/index'; export interface ScanHealthConfigurationApiDeleteConfiguration6Request { ownerType: DeleteConfiguration6OwnerTypeEnum; ownerId: string; } export interface ScanHealthConfigurationApiGetConfiguration6Request { ownerType: GetConfiguration6OwnerTypeEnum; ownerId: string; } export interface ScanHealthConfigurationApiSaveConfigurationRequest { ownerType: SaveConfigurationOwnerTypeEnum; ownerId: string; scanHealthConfigDTO?: ScanHealthConfigDTO; } /** * ScanHealthConfigurationApi - interface * * @export * @interface ScanHealthConfigurationApiInterface */ export interface ScanHealthConfigurationApiInterface { /** * Use this method to delete Scan Health configuration for the specified owner. After deletion, the configuration will be inherited from the parent organization or default to disabled. Permissions required: Edit IQ Elements * @param {'application' | 'organization'} ownerType The owner type (application or organization) * @param {string} ownerId The internal ID of the owner * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ScanHealthConfigurationApiInterface */ deleteConfiguration6Raw(requestParameters: ScanHealthConfigurationApiDeleteConfiguration6Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to delete Scan Health configuration for the specified owner. After deletion, the configuration will be inherited from the parent organization or default to disabled. Permissions required: Edit IQ Elements */ deleteConfiguration6(requestParameters: ScanHealthConfigurationApiDeleteConfiguration6Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to retrieve Scan Health configuration for the specified owner. The response includes the `failOnZeroComponents` setting. A null value indicates the setting is inherited from the parent organization (or default disabled if no parent configuration exists). Permissions required: View IQ Elements * @param {'application' | 'organization'} ownerType The owner type (application or organization) * @param {string} ownerId The internal ID of the owner * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ScanHealthConfigurationApiInterface */ getConfiguration6Raw(requestParameters: ScanHealthConfigurationApiGetConfiguration6Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to retrieve Scan Health configuration for the specified owner. The response includes the `failOnZeroComponents` setting. A null value indicates the setting is inherited from the parent organization (or default disabled if no parent configuration exists). Permissions required: View IQ Elements */ getConfiguration6(requestParameters: ScanHealthConfigurationApiGetConfiguration6Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to create or update Scan Health configuration for the specified owner. Set `failOnZeroComponents` to `true` to fail scans that detect zero components. Set to `false` to explicitly disable this check. Set to `null` to inherit from the parent organization. Permissions required: Edit IQ Elements * @param {'application' | 'organization'} ownerType The owner type (application or organization) * @param {string} ownerId The internal ID of the owner * @param {ScanHealthConfigDTO} [scanHealthConfigDTO] The Scan Health configuration to save. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ScanHealthConfigurationApiInterface */ saveConfigurationRaw(requestParameters: ScanHealthConfigurationApiSaveConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to create or update Scan Health configuration for the specified owner. Set `failOnZeroComponents` to `true` to fail scans that detect zero components. Set to `false` to explicitly disable this check. Set to `null` to inherit from the parent organization. Permissions required: Edit IQ Elements */ saveConfiguration(requestParameters: ScanHealthConfigurationApiSaveConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } /** * */ export declare class ScanHealthConfigurationApi extends runtime.BaseAPI implements ScanHealthConfigurationApiInterface { /** * Use this method to delete Scan Health configuration for the specified owner. After deletion, the configuration will be inherited from the parent organization or default to disabled. Permissions required: Edit IQ Elements */ deleteConfiguration6Raw(requestParameters: ScanHealthConfigurationApiDeleteConfiguration6Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to delete Scan Health configuration for the specified owner. After deletion, the configuration will be inherited from the parent organization or default to disabled. Permissions required: Edit IQ Elements */ deleteConfiguration6(requestParameters: ScanHealthConfigurationApiDeleteConfiguration6Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to retrieve Scan Health configuration for the specified owner. The response includes the `failOnZeroComponents` setting. A null value indicates the setting is inherited from the parent organization (or default disabled if no parent configuration exists). Permissions required: View IQ Elements */ getConfiguration6Raw(requestParameters: ScanHealthConfigurationApiGetConfiguration6Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to retrieve Scan Health configuration for the specified owner. The response includes the `failOnZeroComponents` setting. A null value indicates the setting is inherited from the parent organization (or default disabled if no parent configuration exists). Permissions required: View IQ Elements */ getConfiguration6(requestParameters: ScanHealthConfigurationApiGetConfiguration6Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to create or update Scan Health configuration for the specified owner. Set `failOnZeroComponents` to `true` to fail scans that detect zero components. Set to `false` to explicitly disable this check. Set to `null` to inherit from the parent organization. Permissions required: Edit IQ Elements */ saveConfigurationRaw(requestParameters: ScanHealthConfigurationApiSaveConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to create or update Scan Health configuration for the specified owner. Set `failOnZeroComponents` to `true` to fail scans that detect zero components. Set to `false` to explicitly disable this check. Set to `null` to inherit from the parent organization. Permissions required: Edit IQ Elements */ saveConfiguration(requestParameters: ScanHealthConfigurationApiSaveConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } /** * @export */ export declare const DeleteConfiguration6OwnerTypeEnum: { readonly Application: "application"; readonly Organization: "organization"; }; export type DeleteConfiguration6OwnerTypeEnum = typeof DeleteConfiguration6OwnerTypeEnum[keyof typeof DeleteConfiguration6OwnerTypeEnum]; /** * @export */ export declare const GetConfiguration6OwnerTypeEnum: { readonly Application: "application"; readonly Organization: "organization"; }; export type GetConfiguration6OwnerTypeEnum = typeof GetConfiguration6OwnerTypeEnum[keyof typeof GetConfiguration6OwnerTypeEnum]; /** * @export */ export declare const SaveConfigurationOwnerTypeEnum: { readonly Application: "application"; readonly Organization: "organization"; }; export type SaveConfigurationOwnerTypeEnum = typeof SaveConfigurationOwnerTypeEnum[keyof typeof SaveConfigurationOwnerTypeEnum];