/** * 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 { ApiApplicationDTO, ApiApplicationListDTO, ApiMoveApplicationResponseDTOV2 } from '../models/index'; export interface ApplicationsApiAddApplicationRequest { apiApplicationDTO?: ApiApplicationDTO; } export interface ApplicationsApiCloneApplicationRequest { sourceApplicationId: string; clonedApplicationName?: string; clonedApplicationPublicId?: string; } export interface ApplicationsApiDeleteApplicationRequest { applicationId: string; } export interface ApplicationsApiGetApplicationRequest { applicationId: string; } export interface ApplicationsApiGetApplicationsRequest { publicId?: Set; includeCategories?: boolean; } export interface ApplicationsApiGetApplicationsByOrganizationIdRequest { organizationId: string; } export interface ApplicationsApiMoveApplicationRequest { applicationId: string; organizationId: string; } export interface ApplicationsApiUpdateApplicationRequest { applicationId: string; apiApplicationDTO?: ApiApplicationDTO; } /** * ApplicationsApi - interface * * @export * @interface ApplicationsApiInterface */ export interface ApplicationsApiInterface { /** * Use this method to create an application under an organization. Use the Organization REST API to obtain organizationId. Permissions required: Add Application (on parent organization) * @param {ApiApplicationDTO} [apiApplicationDTO] Specify the applicationId, application name and the organizationId under which the application should be created. `contactUserName` corresponds to the \'contact\' field in the UI and represents the user name. If LDAP is used for authentication, you can use LDAP usernames.`tagId` is the internal identifier for the Application Category that you want to apply to the application. Use the Application Categories REST API for the available categories and the corresponding tagIds. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApplicationsApiInterface */ addApplicationRaw(requestParameters: ApplicationsApiAddApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to create an application under an organization. Use the Organization REST API to obtain organizationId. Permissions required: Add Application (on parent organization) */ addApplication(requestParameters: ApplicationsApiAddApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to clone an existing application. Permissions required: Add Application (on the parent organization) * @param {string} sourceApplicationId Enter the applicationId for the application to be cloned. * @param {string} [clonedApplicationName] Enter the application name for the new cloned application. * @param {string} [clonedApplicationPublicId] Enter the applicationPublicId for the cloned application. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApplicationsApiInterface */ cloneApplicationRaw(requestParameters: ApplicationsApiCloneApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to clone an existing application. Permissions required: Add Application (on the parent organization) */ cloneApplication(requestParameters: ApplicationsApiCloneApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to permanently delete an existing application and all data associated with it. This action cannot be un-done. Before deleting, confirm that the application being deleted does not impact any integrations that could depend on it. Permissions required: Edit IQ Elements * @param {string} applicationId Enter the applicationId to be deleted. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApplicationsApiInterface */ deleteApplicationRaw(requestParameters: ApplicationsApiDeleteApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to permanently delete an existing application and all data associated with it. This action cannot be un-done. Before deleting, confirm that the application being deleted does not impact any integrations that could depend on it. Permissions required: Edit IQ Elements */ deleteApplication(requestParameters: ApplicationsApiDeleteApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to retrieve the application details, by providing the applicationId. Permissions required: View IQ Elements * @param {string} applicationId Enter the applicationId. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApplicationsApiInterface */ getApplicationRaw(requestParameters: ApplicationsApiGetApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to retrieve the application details, by providing the applicationId. Permissions required: View IQ Elements */ getApplication(requestParameters: ApplicationsApiGetApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to retrieve the application details for the applicationId(s) provided. Permissions required: View IQ Elements * @param {Set} [publicId] Enter the applicationId. * @param {boolean} [includeCategories] Set this parameter to `true` to obtain the application tags (application categories) in the response. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApplicationsApiInterface */ getApplicationsRaw(requestParameters: ApplicationsApiGetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to retrieve the application details for the applicationId(s) provided. Permissions required: View IQ Elements */ getApplications(requestParameters: ApplicationsApiGetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to retrieve application details for all applications under the organizationId provided. Permissions required: View IQ Elements * @param {string} organizationId Enter the organizationId. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApplicationsApiInterface */ getApplicationsByOrganizationIdRaw(requestParameters: ApplicationsApiGetApplicationsByOrganizationIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to retrieve application details for all applications under the organizationId provided. Permissions required: View IQ Elements */ getApplicationsByOrganizationId(requestParameters: ApplicationsApiGetApplicationsByOrganizationIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to move an application from one organization to another. Permissions required: Edit IQ Elements * @param {string} applicationId Enter the applicationId of the application to be moved. * @param {string} organizationId Enter the organizationId of the destination organization. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApplicationsApiInterface */ moveApplicationRaw(requestParameters: ApplicationsApiMoveApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to move an application from one organization to another. Permissions required: Edit IQ Elements */ moveApplication(requestParameters: ApplicationsApiMoveApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to update the application name, application tags or the contact user name for an existing application by providing the applicationId. NOTE: This method cannot be used to change the organizationId of an application. Permissions required: Edit IQ Elements * @param {string} applicationId * @param {ApiApplicationDTO} [apiApplicationDTO] Specify the applicationId, application name and the organizationId under which the application exists. `contactUserName` corresponds to the \'contact\' field in the UI and represents the user name. If LDAP is used for authentication, you can use LDAP usernames.`tagId` is the internal identifier for the Application Category that you want to apply to the application. . Use the Application Categories REST API for the available categories and the corresponding tagIds. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApplicationsApiInterface */ updateApplicationRaw(requestParameters: ApplicationsApiUpdateApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to update the application name, application tags or the contact user name for an existing application by providing the applicationId. NOTE: This method cannot be used to change the organizationId of an application. Permissions required: Edit IQ Elements */ updateApplication(requestParameters: ApplicationsApiUpdateApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } /** * */ export declare class ApplicationsApi extends runtime.BaseAPI implements ApplicationsApiInterface { /** * Use this method to create an application under an organization. Use the Organization REST API to obtain organizationId. Permissions required: Add Application (on parent organization) */ addApplicationRaw(requestParameters: ApplicationsApiAddApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to create an application under an organization. Use the Organization REST API to obtain organizationId. Permissions required: Add Application (on parent organization) */ addApplication(requestParameters?: ApplicationsApiAddApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to clone an existing application. Permissions required: Add Application (on the parent organization) */ cloneApplicationRaw(requestParameters: ApplicationsApiCloneApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to clone an existing application. Permissions required: Add Application (on the parent organization) */ cloneApplication(requestParameters: ApplicationsApiCloneApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to permanently delete an existing application and all data associated with it. This action cannot be un-done. Before deleting, confirm that the application being deleted does not impact any integrations that could depend on it. Permissions required: Edit IQ Elements */ deleteApplicationRaw(requestParameters: ApplicationsApiDeleteApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to permanently delete an existing application and all data associated with it. This action cannot be un-done. Before deleting, confirm that the application being deleted does not impact any integrations that could depend on it. Permissions required: Edit IQ Elements */ deleteApplication(requestParameters: ApplicationsApiDeleteApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to retrieve the application details, by providing the applicationId. Permissions required: View IQ Elements */ getApplicationRaw(requestParameters: ApplicationsApiGetApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to retrieve the application details, by providing the applicationId. Permissions required: View IQ Elements */ getApplication(requestParameters: ApplicationsApiGetApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to retrieve the application details for the applicationId(s) provided. Permissions required: View IQ Elements */ getApplicationsRaw(requestParameters: ApplicationsApiGetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to retrieve the application details for the applicationId(s) provided. Permissions required: View IQ Elements */ getApplications(requestParameters?: ApplicationsApiGetApplicationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to retrieve application details for all applications under the organizationId provided. Permissions required: View IQ Elements */ getApplicationsByOrganizationIdRaw(requestParameters: ApplicationsApiGetApplicationsByOrganizationIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to retrieve application details for all applications under the organizationId provided. Permissions required: View IQ Elements */ getApplicationsByOrganizationId(requestParameters: ApplicationsApiGetApplicationsByOrganizationIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to move an application from one organization to another. Permissions required: Edit IQ Elements */ moveApplicationRaw(requestParameters: ApplicationsApiMoveApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to move an application from one organization to another. Permissions required: Edit IQ Elements */ moveApplication(requestParameters: ApplicationsApiMoveApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Use this method to update the application name, application tags or the contact user name for an existing application by providing the applicationId. NOTE: This method cannot be used to change the organizationId of an application. Permissions required: Edit IQ Elements */ updateApplicationRaw(requestParameters: ApplicationsApiUpdateApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Use this method to update the application name, application tags or the contact user name for an existing application by providing the applicationId. NOTE: This method cannot be used to change the organizationId of an application. Permissions required: Edit IQ Elements */ updateApplication(requestParameters: ApplicationsApiUpdateApplicationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; }