/* tslint:disable */ /* eslint-disable */ /** * Identity Security Cloud API - Launchers * Use these APIs to interact with the Identity Security Cloud platform to achieve repeatable, automated processes with greater scalability. We encourage you to join the SailPoint Developer Community forum at https://developer.sailpoint.com/discuss to connect with other developers using our APIs. * * The version of the OpenAPI document: v1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Configuration } from '../configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common'; import type { RequestArgs } from './base'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base'; /** * * @export * @interface ErrorMessageDto */ export interface ErrorMessageDto { /** * The locale for the message text, a BCP 47 language tag. * @type {string} * @memberof ErrorMessageDto */ 'locale'?: string | null; /** * * @type {LocaleOrigin} * @memberof ErrorMessageDto */ 'localeOrigin'?: LocaleOrigin | null; /** * Actual text of the error message in the indicated locale. * @type {string} * @memberof ErrorMessageDto */ 'text'?: string; } /** * * @export * @interface ErrorResponseDto */ export interface ErrorResponseDto { /** * Fine-grained error code providing more detail of the error. * @type {string} * @memberof ErrorResponseDto */ 'detailCode'?: string; /** * Unique tracking id for the error. * @type {string} * @memberof ErrorResponseDto */ 'trackingId'?: string; /** * Generic localized reason for error * @type {Array} * @memberof ErrorResponseDto */ 'messages'?: Array; /** * Plain-text descriptive reasons to provide additional detail to the text provided in the messages field * @type {Array} * @memberof ErrorResponseDto */ 'causes'?: Array; } /** * * @export * @interface GetLaunchersV1200Response */ export interface GetLaunchersV1200Response { /** * Pagination marker * @type {string} * @memberof GetLaunchersV1200Response */ 'next'?: string; /** * * @type {Array} * @memberof GetLaunchersV1200Response */ 'items'?: Array; } /** * * @export * @interface GetLaunchersV1401Response */ export interface GetLaunchersV1401Response { /** * A message describing the error * @type {any} * @memberof GetLaunchersV1401Response */ 'error'?: any; } /** * * @export * @interface GetLaunchersV1429Response */ export interface GetLaunchersV1429Response { /** * A message describing the error * @type {any} * @memberof GetLaunchersV1429Response */ 'message'?: any; } /** * * @export * @interface Launcher */ export interface Launcher { /** * ID of the Launcher * @type {string} * @memberof Launcher */ 'id': string; /** * Date the Launcher was created * @type {string} * @memberof Launcher */ 'created': string; /** * Date the Launcher was last modified * @type {string} * @memberof Launcher */ 'modified': string; /** * * @type {LauncherOwner} * @memberof Launcher */ 'owner': LauncherOwner; /** * Name of the Launcher, limited to 255 characters * @type {string} * @memberof Launcher */ 'name': string; /** * Description of the Launcher, limited to 2000 characters * @type {string} * @memberof Launcher */ 'description': string; /** * Launcher type * @type {string} * @memberof Launcher */ 'type': LauncherTypeEnum; /** * State of the Launcher * @type {boolean} * @memberof Launcher */ 'disabled': boolean; /** * * @type {LauncherReference} * @memberof Launcher */ 'reference'?: LauncherReference; /** * JSON configuration associated with this Launcher, restricted to a max size of 4KB * @type {string} * @memberof Launcher */ 'config': string; } export const LauncherTypeEnum = { InteractiveProcess: 'INTERACTIVE_PROCESS' } as const; export type LauncherTypeEnum = typeof LauncherTypeEnum[keyof typeof LauncherTypeEnum]; /** * Owner of the Launcher * @export * @interface LauncherOwner */ export interface LauncherOwner { /** * Owner type * @type {string} * @memberof LauncherOwner */ 'type': string; /** * Owner ID * @type {string} * @memberof LauncherOwner */ 'id': string; } /** * * @export * @interface LauncherReference */ export interface LauncherReference { /** * Type of Launcher reference * @type {string} * @memberof LauncherReference */ 'type'?: LauncherReferenceTypeEnum; /** * ID of Launcher reference * @type {string} * @memberof LauncherReference */ 'id'?: string; } export const LauncherReferenceTypeEnum = { Workflow: 'WORKFLOW' } as const; export type LauncherReferenceTypeEnum = typeof LauncherReferenceTypeEnum[keyof typeof LauncherReferenceTypeEnum]; /** * * @export * @interface LauncherRequest */ export interface LauncherRequest { /** * Name of the Launcher, limited to 255 characters * @type {string} * @memberof LauncherRequest */ 'name': string; /** * Description of the Launcher, limited to 2000 characters * @type {string} * @memberof LauncherRequest */ 'description': string; /** * Launcher type * @type {string} * @memberof LauncherRequest */ 'type': LauncherRequestTypeEnum; /** * State of the Launcher * @type {boolean} * @memberof LauncherRequest */ 'disabled': boolean; /** * * @type {LauncherRequestReference} * @memberof LauncherRequest */ 'reference'?: LauncherRequestReference; /** * JSON configuration associated with this Launcher, restricted to a max size of 4KB * @type {string} * @memberof LauncherRequest */ 'config': string; } export const LauncherRequestTypeEnum = { InteractiveProcess: 'INTERACTIVE_PROCESS' } as const; export type LauncherRequestTypeEnum = typeof LauncherRequestTypeEnum[keyof typeof LauncherRequestTypeEnum]; /** * * @export * @interface LauncherRequestReference */ export interface LauncherRequestReference { /** * Type of Launcher reference * @type {string} * @memberof LauncherRequestReference */ 'type': LauncherRequestReferenceTypeEnum; /** * ID of Launcher reference * @type {string} * @memberof LauncherRequestReference */ 'id': string; } export const LauncherRequestReferenceTypeEnum = { Workflow: 'WORKFLOW' } as const; export type LauncherRequestReferenceTypeEnum = typeof LauncherRequestReferenceTypeEnum[keyof typeof LauncherRequestReferenceTypeEnum]; /** * An indicator of how the locale was selected. *DEFAULT* means the locale is the system default. *REQUEST* means the locale was selected from the request context (i.e., best match based on the *Accept-Language* header). Additional values may be added in the future without notice. * @export * @enum {string} */ export const LocaleOrigin = { Default: 'DEFAULT', Request: 'REQUEST' } as const; export type LocaleOrigin = typeof LocaleOrigin[keyof typeof LocaleOrigin]; /** * * @export * @interface StartLauncherV1200Response */ export interface StartLauncherV1200Response { /** * ID of the Interactive Process that was launched * @type {string} * @memberof StartLauncherV1200Response */ 'interactiveProcessId': string; } /** * LaunchersApi - axios parameter creator * @export */ export const LaunchersApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Create a Launcher with given information * @summary Create launcher * @param {LauncherRequest} launcherRequest Payload to create a Launcher * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createLauncherV1: async (launcherRequest: LauncherRequest, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'launcherRequest' is not null or undefined assertParamExists('createLauncherV1', 'launcherRequest', launcherRequest) const localVarPath = `/launchers/v1`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(launcherRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Delete the given Launcher ID * @summary Delete launcher * @param {string} launcherID ID of the Launcher to be deleted * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteLauncherV1: async (launcherID: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'launcherID' is not null or undefined assertParamExists('deleteLauncherV1', 'launcherID', launcherID) const localVarPath = `/launchers/v1/{launcherID}` .replace(`{${"launcherID"}}`, encodeURIComponent(String(launcherID))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Get details for the given Launcher ID * @summary Get launcher by id * @param {string} launcherID ID of the Launcher to be retrieved * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getLauncherV1: async (launcherID: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'launcherID' is not null or undefined assertParamExists('getLauncherV1', 'launcherID', launcherID) const localVarPath = `/launchers/v1/{launcherID}` .replace(`{${"launcherID"}}`, encodeURIComponent(String(launcherID))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Return a list of Launchers for the authenticated tenant * @summary List all launchers for tenant * @param {string} [filters] Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **description**: *sw* **disabled**: *eq* **name**: *sw* * @param {string} [next] Pagination marker * @param {number} [limit] Number of Launchers to return * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getLaunchersV1: async (filters?: string, next?: string, limit?: number, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/launchers/v1`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (filters !== undefined) { localVarQueryParameter['filters'] = filters; } if (next !== undefined) { localVarQueryParameter['next'] = next; } if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Replace the given Launcher ID with given payload * @summary Replace launcher * @param {string} launcherID ID of the Launcher to be replaced * @param {LauncherRequest} launcherRequest Payload to replace Launcher * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ putLauncherV1: async (launcherID: string, launcherRequest: LauncherRequest, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'launcherID' is not null or undefined assertParamExists('putLauncherV1', 'launcherID', launcherID) // verify required parameter 'launcherRequest' is not null or undefined assertParamExists('putLauncherV1', 'launcherRequest', launcherRequest) const localVarPath = `/launchers/v1/{launcherID}` .replace(`{${"launcherID"}}`, encodeURIComponent(String(launcherID))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(launcherRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Launch the given Launcher ID * @summary Launch a launcher * @param {string} launcherID ID of the Launcher to be launched * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ startLauncherV1: async (launcherID: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'launcherID' is not null or undefined assertParamExists('startLauncherV1', 'launcherID', launcherID) const localVarPath = `/launchers/v1/{launcherID}/launch` .replace(`{${"launcherID"}}`, encodeURIComponent(String(launcherID))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * LaunchersApi - functional programming interface * @export */ export const LaunchersApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = LaunchersApiAxiosParamCreator(configuration) return { /** * Create a Launcher with given information * @summary Create launcher * @param {LauncherRequest} launcherRequest Payload to create a Launcher * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createLauncherV1(launcherRequest: LauncherRequest, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createLauncherV1(launcherRequest, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['LaunchersApi.createLauncherV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete the given Launcher ID * @summary Delete launcher * @param {string} launcherID ID of the Launcher to be deleted * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async deleteLauncherV1(launcherID: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLauncherV1(launcherID, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['LaunchersApi.deleteLauncherV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get details for the given Launcher ID * @summary Get launcher by id * @param {string} launcherID ID of the Launcher to be retrieved * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getLauncherV1(launcherID: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getLauncherV1(launcherID, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['LaunchersApi.getLauncherV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Return a list of Launchers for the authenticated tenant * @summary List all launchers for tenant * @param {string} [filters] Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **description**: *sw* **disabled**: *eq* **name**: *sw* * @param {string} [next] Pagination marker * @param {number} [limit] Number of Launchers to return * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getLaunchersV1(filters?: string, next?: string, limit?: number, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getLaunchersV1(filters, next, limit, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['LaunchersApi.getLaunchersV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Replace the given Launcher ID with given payload * @summary Replace launcher * @param {string} launcherID ID of the Launcher to be replaced * @param {LauncherRequest} launcherRequest Payload to replace Launcher * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async putLauncherV1(launcherID: string, launcherRequest: LauncherRequest, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.putLauncherV1(launcherID, launcherRequest, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['LaunchersApi.putLauncherV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Launch the given Launcher ID * @summary Launch a launcher * @param {string} launcherID ID of the Launcher to be launched * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async startLauncherV1(launcherID: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.startLauncherV1(launcherID, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['LaunchersApi.startLauncherV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * LaunchersApi - factory interface * @export */ export const LaunchersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = LaunchersApiFp(configuration) return { /** * Create a Launcher with given information * @summary Create launcher * @param {LaunchersApiCreateLauncherV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createLauncherV1(requestParameters: LaunchersApiCreateLauncherV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createLauncherV1(requestParameters.launcherRequest, axiosOptions).then((request) => request(axios, basePath)); }, /** * Delete the given Launcher ID * @summary Delete launcher * @param {LaunchersApiDeleteLauncherV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteLauncherV1(requestParameters: LaunchersApiDeleteLauncherV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteLauncherV1(requestParameters.launcherID, axiosOptions).then((request) => request(axios, basePath)); }, /** * Get details for the given Launcher ID * @summary Get launcher by id * @param {LaunchersApiGetLauncherV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getLauncherV1(requestParameters: LaunchersApiGetLauncherV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getLauncherV1(requestParameters.launcherID, axiosOptions).then((request) => request(axios, basePath)); }, /** * Return a list of Launchers for the authenticated tenant * @summary List all launchers for tenant * @param {LaunchersApiGetLaunchersV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getLaunchersV1(requestParameters: LaunchersApiGetLaunchersV1Request = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getLaunchersV1(requestParameters.filters, requestParameters.next, requestParameters.limit, axiosOptions).then((request) => request(axios, basePath)); }, /** * Replace the given Launcher ID with given payload * @summary Replace launcher * @param {LaunchersApiPutLauncherV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ putLauncherV1(requestParameters: LaunchersApiPutLauncherV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.putLauncherV1(requestParameters.launcherID, requestParameters.launcherRequest, axiosOptions).then((request) => request(axios, basePath)); }, /** * Launch the given Launcher ID * @summary Launch a launcher * @param {LaunchersApiStartLauncherV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ startLauncherV1(requestParameters: LaunchersApiStartLauncherV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.startLauncherV1(requestParameters.launcherID, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for createLauncherV1 operation in LaunchersApi. * @export * @interface LaunchersApiCreateLauncherV1Request */ export interface LaunchersApiCreateLauncherV1Request { /** * Payload to create a Launcher * @type {LauncherRequest} * @memberof LaunchersApiCreateLauncherV1 */ readonly launcherRequest: LauncherRequest } /** * Request parameters for deleteLauncherV1 operation in LaunchersApi. * @export * @interface LaunchersApiDeleteLauncherV1Request */ export interface LaunchersApiDeleteLauncherV1Request { /** * ID of the Launcher to be deleted * @type {string} * @memberof LaunchersApiDeleteLauncherV1 */ readonly launcherID: string } /** * Request parameters for getLauncherV1 operation in LaunchersApi. * @export * @interface LaunchersApiGetLauncherV1Request */ export interface LaunchersApiGetLauncherV1Request { /** * ID of the Launcher to be retrieved * @type {string} * @memberof LaunchersApiGetLauncherV1 */ readonly launcherID: string } /** * Request parameters for getLaunchersV1 operation in LaunchersApi. * @export * @interface LaunchersApiGetLaunchersV1Request */ export interface LaunchersApiGetLaunchersV1Request { /** * Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **description**: *sw* **disabled**: *eq* **name**: *sw* * @type {string} * @memberof LaunchersApiGetLaunchersV1 */ readonly filters?: string /** * Pagination marker * @type {string} * @memberof LaunchersApiGetLaunchersV1 */ readonly next?: string /** * Number of Launchers to return * @type {number} * @memberof LaunchersApiGetLaunchersV1 */ readonly limit?: number } /** * Request parameters for putLauncherV1 operation in LaunchersApi. * @export * @interface LaunchersApiPutLauncherV1Request */ export interface LaunchersApiPutLauncherV1Request { /** * ID of the Launcher to be replaced * @type {string} * @memberof LaunchersApiPutLauncherV1 */ readonly launcherID: string /** * Payload to replace Launcher * @type {LauncherRequest} * @memberof LaunchersApiPutLauncherV1 */ readonly launcherRequest: LauncherRequest } /** * Request parameters for startLauncherV1 operation in LaunchersApi. * @export * @interface LaunchersApiStartLauncherV1Request */ export interface LaunchersApiStartLauncherV1Request { /** * ID of the Launcher to be launched * @type {string} * @memberof LaunchersApiStartLauncherV1 */ readonly launcherID: string } /** * LaunchersApi - object-oriented interface * @export * @class LaunchersApi * @extends {BaseAPI} */ export class LaunchersApi extends BaseAPI { /** * Create a Launcher with given information * @summary Create launcher * @param {LaunchersApiCreateLauncherV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof LaunchersApi */ public createLauncherV1(requestParameters: LaunchersApiCreateLauncherV1Request, axiosOptions?: RawAxiosRequestConfig) { return LaunchersApiFp(this.configuration).createLauncherV1(requestParameters.launcherRequest, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Delete the given Launcher ID * @summary Delete launcher * @param {LaunchersApiDeleteLauncherV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof LaunchersApi */ public deleteLauncherV1(requestParameters: LaunchersApiDeleteLauncherV1Request, axiosOptions?: RawAxiosRequestConfig) { return LaunchersApiFp(this.configuration).deleteLauncherV1(requestParameters.launcherID, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Get details for the given Launcher ID * @summary Get launcher by id * @param {LaunchersApiGetLauncherV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof LaunchersApi */ public getLauncherV1(requestParameters: LaunchersApiGetLauncherV1Request, axiosOptions?: RawAxiosRequestConfig) { return LaunchersApiFp(this.configuration).getLauncherV1(requestParameters.launcherID, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Return a list of Launchers for the authenticated tenant * @summary List all launchers for tenant * @param {LaunchersApiGetLaunchersV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof LaunchersApi */ public getLaunchersV1(requestParameters: LaunchersApiGetLaunchersV1Request = {}, axiosOptions?: RawAxiosRequestConfig) { return LaunchersApiFp(this.configuration).getLaunchersV1(requestParameters.filters, requestParameters.next, requestParameters.limit, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Replace the given Launcher ID with given payload * @summary Replace launcher * @param {LaunchersApiPutLauncherV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof LaunchersApi */ public putLauncherV1(requestParameters: LaunchersApiPutLauncherV1Request, axiosOptions?: RawAxiosRequestConfig) { return LaunchersApiFp(this.configuration).putLauncherV1(requestParameters.launcherID, requestParameters.launcherRequest, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Launch the given Launcher ID * @summary Launch a launcher * @param {LaunchersApiStartLauncherV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof LaunchersApi */ public startLauncherV1(requestParameters: LaunchersApiStartLauncherV1Request, axiosOptions?: RawAxiosRequestConfig) { return LaunchersApiFp(this.configuration).startLauncherV1(requestParameters.launcherID, axiosOptions).then((request) => request(this.axios, this.basePath)); } }