/** * 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 { PolicyExportResult } from '../models/index'; export interface PolicyExportApiExportPoliciesRequest { ownerType: ExportPoliciesOwnerTypeEnum; ownerId: string; includeInherited?: boolean; } /** * PolicyExportApi - interface * * @export * @interface PolicyExportApiInterface */ export interface PolicyExportApiInterface { /** * Exports policy configurations including policy rules, conditions, labels, license threat groups, and tags for the specified owner (organization, application, or repository). Use the `includeInherited` parameter to include policies from parent levels in the hierarchy. **Permissions required**: View IQ Elements (READ permission on the specified owner) **Export scope**: - Policy rules and conditions - Policy assignments (via ownerId on each policy) - Component labels - License threat groups - Application categories (tags) for organizations **Note**: Waivers are not included in the export. * @summary Export policy configuration * @param {'application' | 'organization' | 'repository'} ownerType Type of owner (organization, application, or repository) * @param {string} ownerId Internal ID of the owner * @param {boolean} [includeInherited] If true, include policies from parent levels in the hierarchy. For repositories, includes policies from the repository, RepositoryManager, RepositoryContainer, and parent organization. For applications, includes policies from the application and parent organization(s). For organizations, includes policies from the organization and any parent organizations. Default: false (direct policies only) * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PolicyExportApiInterface */ exportPoliciesRaw(requestParameters: PolicyExportApiExportPoliciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Exports policy configurations including policy rules, conditions, labels, license threat groups, and tags for the specified owner (organization, application, or repository). Use the `includeInherited` parameter to include policies from parent levels in the hierarchy. **Permissions required**: View IQ Elements (READ permission on the specified owner) **Export scope**: - Policy rules and conditions - Policy assignments (via ownerId on each policy) - Component labels - License threat groups - Application categories (tags) for organizations **Note**: Waivers are not included in the export. * Export policy configuration */ exportPolicies(requestParameters: PolicyExportApiExportPoliciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } /** * */ export declare class PolicyExportApi extends runtime.BaseAPI implements PolicyExportApiInterface { /** * Exports policy configurations including policy rules, conditions, labels, license threat groups, and tags for the specified owner (organization, application, or repository). Use the `includeInherited` parameter to include policies from parent levels in the hierarchy. **Permissions required**: View IQ Elements (READ permission on the specified owner) **Export scope**: - Policy rules and conditions - Policy assignments (via ownerId on each policy) - Component labels - License threat groups - Application categories (tags) for organizations **Note**: Waivers are not included in the export. * Export policy configuration */ exportPoliciesRaw(requestParameters: PolicyExportApiExportPoliciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Exports policy configurations including policy rules, conditions, labels, license threat groups, and tags for the specified owner (organization, application, or repository). Use the `includeInherited` parameter to include policies from parent levels in the hierarchy. **Permissions required**: View IQ Elements (READ permission on the specified owner) **Export scope**: - Policy rules and conditions - Policy assignments (via ownerId on each policy) - Component labels - License threat groups - Application categories (tags) for organizations **Note**: Waivers are not included in the export. * Export policy configuration */ exportPolicies(requestParameters: PolicyExportApiExportPoliciesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } /** * @export */ export declare const ExportPoliciesOwnerTypeEnum: { readonly Application: "application"; readonly Organization: "organization"; readonly Repository: "repository"; }; export type ExportPoliciesOwnerTypeEnum = typeof ExportPoliciesOwnerTypeEnum[keyof typeof ExportPoliciesOwnerTypeEnum];