/** * 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 { ApiAutoPolicyWaiverDTO, ApiAutoPolicyWaiverStatusDTO } from '../models/index'; export interface AutoPolicyWaiversApiAddAutoPolicyWaiverRequest { ownerType: AddAutoPolicyWaiverOwnerTypeEnum; ownerId: string; apiAutoPolicyWaiverDTO: ApiAutoPolicyWaiverDTO; } export interface AutoPolicyWaiversApiAddAutoPolicyWaiversRequest { ownerType: AddAutoPolicyWaiversOwnerTypeEnum; ownerId: string; apiAutoPolicyWaiverDTO: Array; } export interface AutoPolicyWaiversApiDeleteAutoPolicyWaiverRequest { ownerType: DeleteAutoPolicyWaiverOwnerTypeEnum; ownerId: string; autoPolicyWaiverId: string; } export interface AutoPolicyWaiversApiGetApplicableAutoWaiversRequest { ownerType: GetApplicableAutoWaiversOwnerTypeEnum; ownerId: string; } export interface AutoPolicyWaiversApiGetAutoPolicyWaiverRequest { ownerType: GetAutoPolicyWaiverOwnerTypeEnum; ownerId: string; autoPolicyWaiverId: string; } export interface AutoPolicyWaiversApiGetAutoPolicyWaiverStatusRequest { ownerType: GetAutoPolicyWaiverStatusOwnerTypeEnum; ownerId: string; } export interface AutoPolicyWaiversApiGetAutoPolicyWaiversRequest { ownerType: GetAutoPolicyWaiversOwnerTypeEnum; ownerId: string; } export interface AutoPolicyWaiversApiUpdateAutoPolicyWaiverRequest { ownerType: UpdateAutoPolicyWaiverOwnerTypeEnum; ownerId: string; autoPolicyWaiverId: string; apiAutoPolicyWaiverDTO: ApiAutoPolicyWaiverDTO; } /** * AutoPolicyWaiversApi - interface * * @export * @interface AutoPolicyWaiversApiInterface */ export interface AutoPolicyWaiversApiInterface { /** * Use this method to create an auto policy waiver configuration. Only one configuration can exist at a time for a given application or organization. Permissions required: Waive Policy Violations * @param {'application' | 'organization'} ownerType Enter the ownerType to specify the scope. The response will contain the details for waivers within the scope. * @param {string} ownerId Enter the corresponding id for the ownerType specified above. * @param {ApiAutoPolicyWaiverDTO} apiAutoPolicyWaiverDTO The request JSON can include the fields<ol><li>threatLevel</li><li>pathForward</li><li>reachable</li></ol> * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AutoPolicyWaiversApiInterface */ addAutoPolicyWaiverRaw(requestParameters: AutoPolicyWaiversApiAddAutoPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to create an auto policy waiver configuration. Only one configuration can exist at a time for a given application or organization. Permissions required: Waive Policy Violations */ addAutoPolicyWaiver(requestParameters: AutoPolicyWaiversApiAddAutoPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to create an auto policy waiver configuration. Only three configurations can exist at a time for a given application or organization. With different combinations for reachable/pathForward Permissions required: Waive Policy Violations * @param {'application' | 'organization'} ownerType Enter the ownerType to specify the scope. The response will contain the details for waivers within the scope. * @param {string} ownerId Enter the corresponding id for the ownerType specified above. * @param {Array} apiAutoPolicyWaiverDTO The request JSON can be an array that include the fields<ol><li>threatLevel</li><li>pathForward</li><li>reachable</li></ol> * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AutoPolicyWaiversApiInterface */ addAutoPolicyWaiversRaw(requestParameters: AutoPolicyWaiversApiAddAutoPolicyWaiversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** * Use this method to create an auto policy waiver configuration. Only three configurations can exist at a time for a given application or organization. With different combinations for reachable/pathForward Permissions required: Waive Policy Violations */ addAutoPolicyWaivers(requestParameters: AutoPolicyWaiversApiAddAutoPolicyWaiversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to delete an auto policy waiver, specified by the autoPolicyWaiverId. Permissions required: Waive Policy Violations * @param {'application' | 'organization'} ownerType Enter the ownerType to specify the scope. A waiver corresponding to the autoPolicyWaiverId provided and within the scope specified will be deleted. * @param {string} ownerId Enter the corresponding id for the ownerType specified above. * @param {string} autoPolicyWaiverId Enter the autoPolicyWaiverId to be deleted * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AutoPolicyWaiversApiInterface */ deleteAutoPolicyWaiverRaw(requestParameters: AutoPolicyWaiversApiDeleteAutoPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to delete an auto policy waiver, specified by the autoPolicyWaiverId. Permissions required: Waive Policy Violations */ deleteAutoPolicyWaiver(requestParameters: AutoPolicyWaiversApiDeleteAutoPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to retrieve all applicable auto waivers for the scope specified. You can specify the scope by using the parameters ownerType and ownerId. Permissions required: View IQ Elements * @param {'application' | 'organization'} ownerType Enter the ownerType to specify the scope. The response will contain applicable auto policy waivers, if any, that are within the scope specified. * @param {string} ownerId Enter the corresponding id for the ownerType. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AutoPolicyWaiversApiInterface */ getApplicableAutoWaiversRaw(requestParameters: AutoPolicyWaiversApiGetApplicableAutoWaiversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** * Use this method to retrieve all applicable auto waivers for the scope specified. You can specify the scope by using the parameters ownerType and ownerId. Permissions required: View IQ Elements */ getApplicableAutoWaivers(requestParameters: AutoPolicyWaiversApiGetApplicableAutoWaiversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to retrieve auto policy waiver details for the autoPolicyWaiverId specified. Permissions required: View IQ Elements * @param {'application' | 'organization'} ownerType Enter the ownerType to specify the scope. The response will contain the details for waivers within the scope. * @param {string} ownerId Enter the corresponding id for the ownerType specified above. * @param {string} autoPolicyWaiverId Enter the autoPolicyWaiverId for which you want to retrieve the auto policy waiver details. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AutoPolicyWaiversApiInterface */ getAutoPolicyWaiverRaw(requestParameters: AutoPolicyWaiversApiGetAutoPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to retrieve auto policy waiver details for the autoPolicyWaiverId specified. Permissions required: View IQ Elements */ getAutoPolicyWaiver(requestParameters: AutoPolicyWaiversApiGetAutoPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to retrieve status details for any auto policy waiver enabled for the scope specified. You can specify the scope by using the parameters ownerType and ownerId. Permissions required: View IQ Elements * @param {'application' | 'organization'} ownerType Enter the ownerType to specify the scope. The response will contain status details for the active auto policy waiver, if any, that is within the scope specified. * @param {string} ownerId Enter the corresponding id for the ownerType specified above. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AutoPolicyWaiversApiInterface */ getAutoPolicyWaiverStatusRaw(requestParameters: AutoPolicyWaiversApiGetAutoPolicyWaiverStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to retrieve status details for any auto policy waiver enabled for the scope specified. You can specify the scope by using the parameters ownerType and ownerId. Permissions required: View IQ Elements */ getAutoPolicyWaiverStatus(requestParameters: AutoPolicyWaiversApiGetAutoPolicyWaiverStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to retrieve waiver details for all auto policy waivers for the scope specified. You can specify the scope by using the parameters ownerType and ownerId. Permissions required: View IQ Elements * @param {'application' | 'organization'} ownerType Enter the ownerType to specify the scope. The response will contain waivers that are within the scope specified. * @param {string} ownerId Enter the corresponding id for the ownerType specified above. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AutoPolicyWaiversApiInterface */ getAutoPolicyWaiversRaw(requestParameters: AutoPolicyWaiversApiGetAutoPolicyWaiversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** * Use this method to retrieve waiver details for all auto policy waivers for the scope specified. You can specify the scope by using the parameters ownerType and ownerId. Permissions required: View IQ Elements */ getAutoPolicyWaivers(requestParameters: AutoPolicyWaiversApiGetAutoPolicyWaiversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to update an auto policy waiver, specified by the autoPolicyWaiverId. Permissions required: Write IQ Elements * @param {'application' | 'organization'} ownerType Enter the ownerType to specify the scope. The response will contain the details for waivers within the scope. * @param {string} ownerId Enter the corresponding id for the ownerType specified above. * @param {string} autoPolicyWaiverId Enter the autoPolicyWaiverId to be updated. * @param {ApiAutoPolicyWaiverDTO} apiAutoPolicyWaiverDTO The request JSON can include the fields<ol><li>autoPolicyWaiverId</li><li>threatLevel</li><li>pathForward</li><li>reachable</li></ol> * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AutoPolicyWaiversApiInterface */ updateAutoPolicyWaiverRaw(requestParameters: AutoPolicyWaiversApiUpdateAutoPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to update an auto policy waiver, specified by the autoPolicyWaiverId. Permissions required: Write IQ Elements */ updateAutoPolicyWaiver(requestParameters: AutoPolicyWaiversApiUpdateAutoPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } /** * */ export declare class AutoPolicyWaiversApi extends runtime.BaseAPI implements AutoPolicyWaiversApiInterface { /** * Use this method to create an auto policy waiver configuration. Only one configuration can exist at a time for a given application or organization. Permissions required: Waive Policy Violations */ addAutoPolicyWaiverRaw(requestParameters: AutoPolicyWaiversApiAddAutoPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to create an auto policy waiver configuration. Only one configuration can exist at a time for a given application or organization. Permissions required: Waive Policy Violations */ addAutoPolicyWaiver(requestParameters: AutoPolicyWaiversApiAddAutoPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to create an auto policy waiver configuration. Only three configurations can exist at a time for a given application or organization. With different combinations for reachable/pathForward Permissions required: Waive Policy Violations */ addAutoPolicyWaiversRaw(requestParameters: AutoPolicyWaiversApiAddAutoPolicyWaiversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** * Use this method to create an auto policy waiver configuration. Only three configurations can exist at a time for a given application or organization. With different combinations for reachable/pathForward Permissions required: Waive Policy Violations */ addAutoPolicyWaivers(requestParameters: AutoPolicyWaiversApiAddAutoPolicyWaiversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to delete an auto policy waiver, specified by the autoPolicyWaiverId. Permissions required: Waive Policy Violations */ deleteAutoPolicyWaiverRaw(requestParameters: AutoPolicyWaiversApiDeleteAutoPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to delete an auto policy waiver, specified by the autoPolicyWaiverId. Permissions required: Waive Policy Violations */ deleteAutoPolicyWaiver(requestParameters: AutoPolicyWaiversApiDeleteAutoPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to retrieve all applicable auto waivers for the scope specified. You can specify the scope by using the parameters ownerType and ownerId. Permissions required: View IQ Elements */ getApplicableAutoWaiversRaw(requestParameters: AutoPolicyWaiversApiGetApplicableAutoWaiversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** * Use this method to retrieve all applicable auto waivers for the scope specified. You can specify the scope by using the parameters ownerType and ownerId. Permissions required: View IQ Elements */ getApplicableAutoWaivers(requestParameters: AutoPolicyWaiversApiGetApplicableAutoWaiversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to retrieve auto policy waiver details for the autoPolicyWaiverId specified. Permissions required: View IQ Elements */ getAutoPolicyWaiverRaw(requestParameters: AutoPolicyWaiversApiGetAutoPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to retrieve auto policy waiver details for the autoPolicyWaiverId specified. Permissions required: View IQ Elements */ getAutoPolicyWaiver(requestParameters: AutoPolicyWaiversApiGetAutoPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to retrieve status details for any auto policy waiver enabled for the scope specified. You can specify the scope by using the parameters ownerType and ownerId. Permissions required: View IQ Elements */ getAutoPolicyWaiverStatusRaw(requestParameters: AutoPolicyWaiversApiGetAutoPolicyWaiverStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to retrieve status details for any auto policy waiver enabled for the scope specified. You can specify the scope by using the parameters ownerType and ownerId. Permissions required: View IQ Elements */ getAutoPolicyWaiverStatus(requestParameters: AutoPolicyWaiversApiGetAutoPolicyWaiverStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to retrieve waiver details for all auto policy waivers for the scope specified. You can specify the scope by using the parameters ownerType and ownerId. Permissions required: View IQ Elements */ getAutoPolicyWaiversRaw(requestParameters: AutoPolicyWaiversApiGetAutoPolicyWaiversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** * Use this method to retrieve waiver details for all auto policy waivers for the scope specified. You can specify the scope by using the parameters ownerType and ownerId. Permissions required: View IQ Elements */ getAutoPolicyWaivers(requestParameters: AutoPolicyWaiversApiGetAutoPolicyWaiversRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to update an auto policy waiver, specified by the autoPolicyWaiverId. Permissions required: Write IQ Elements */ updateAutoPolicyWaiverRaw(requestParameters: AutoPolicyWaiversApiUpdateAutoPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to update an auto policy waiver, specified by the autoPolicyWaiverId. Permissions required: Write IQ Elements */ updateAutoPolicyWaiver(requestParameters: AutoPolicyWaiversApiUpdateAutoPolicyWaiverRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } /** * @export */ export declare const AddAutoPolicyWaiverOwnerTypeEnum: { readonly Application: "application"; readonly Organization: "organization"; }; export type AddAutoPolicyWaiverOwnerTypeEnum = typeof AddAutoPolicyWaiverOwnerTypeEnum[keyof typeof AddAutoPolicyWaiverOwnerTypeEnum]; /** * @export */ export declare const AddAutoPolicyWaiversOwnerTypeEnum: { readonly Application: "application"; readonly Organization: "organization"; }; export type AddAutoPolicyWaiversOwnerTypeEnum = typeof AddAutoPolicyWaiversOwnerTypeEnum[keyof typeof AddAutoPolicyWaiversOwnerTypeEnum]; /** * @export */ export declare const DeleteAutoPolicyWaiverOwnerTypeEnum: { readonly Application: "application"; readonly Organization: "organization"; }; export type DeleteAutoPolicyWaiverOwnerTypeEnum = typeof DeleteAutoPolicyWaiverOwnerTypeEnum[keyof typeof DeleteAutoPolicyWaiverOwnerTypeEnum]; /** * @export */ export declare const GetApplicableAutoWaiversOwnerTypeEnum: { readonly Application: "application"; readonly Organization: "organization"; }; export type GetApplicableAutoWaiversOwnerTypeEnum = typeof GetApplicableAutoWaiversOwnerTypeEnum[keyof typeof GetApplicableAutoWaiversOwnerTypeEnum]; /** * @export */ export declare const GetAutoPolicyWaiverOwnerTypeEnum: { readonly Application: "application"; readonly Organization: "organization"; }; export type GetAutoPolicyWaiverOwnerTypeEnum = typeof GetAutoPolicyWaiverOwnerTypeEnum[keyof typeof GetAutoPolicyWaiverOwnerTypeEnum]; /** * @export */ export declare const GetAutoPolicyWaiverStatusOwnerTypeEnum: { readonly Application: "application"; readonly Organization: "organization"; }; export type GetAutoPolicyWaiverStatusOwnerTypeEnum = typeof GetAutoPolicyWaiverStatusOwnerTypeEnum[keyof typeof GetAutoPolicyWaiverStatusOwnerTypeEnum]; /** * @export */ export declare const GetAutoPolicyWaiversOwnerTypeEnum: { readonly Application: "application"; readonly Organization: "organization"; }; export type GetAutoPolicyWaiversOwnerTypeEnum = typeof GetAutoPolicyWaiversOwnerTypeEnum[keyof typeof GetAutoPolicyWaiversOwnerTypeEnum]; /** * @export */ export declare const UpdateAutoPolicyWaiverOwnerTypeEnum: { readonly Application: "application"; readonly Organization: "organization"; }; export type UpdateAutoPolicyWaiverOwnerTypeEnum = typeof UpdateAutoPolicyWaiverOwnerTypeEnum[keyof typeof UpdateAutoPolicyWaiverOwnerTypeEnum];