/* tslint:disable */ /* eslint-disable */ /** * Identity Security Cloud API - Managed Clusters * 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 ArrayInner */ export interface ArrayInner { } /** * Client Runtime Logging Configuration * @export * @interface ClientLogConfiguration */ export interface ClientLogConfiguration { /** * Log configuration\'s client ID * @type {string} * @memberof ClientLogConfiguration */ 'clientId'?: string; /** * Duration in minutes for log configuration to remain in effect before resetting to defaults. * @type {number} * @memberof ClientLogConfiguration */ 'durationMinutes'?: number; /** * Expiration date-time of the log configuration request. Can be no greater than 24 hours from current date-time. * @type {string} * @memberof ClientLogConfiguration */ 'expiration'?: string; /** * * @type {StandardLevel} * @memberof ClientLogConfiguration */ 'rootLevel': StandardLevel; /** * Mapping of identifiers to Standard Log Level values * @type {{ [key: string]: StandardLevel; }} * @memberof ClientLogConfiguration */ 'logLevels'?: { [key: string]: StandardLevel; }; } /** * Client Runtime Logging Configuration * @export * @interface ClientLogConfigurationDurationMinutes */ export interface ClientLogConfigurationDurationMinutes { /** * Log configuration\'s client ID * @type {string} * @memberof ClientLogConfigurationDurationMinutes */ 'clientId'?: string; /** * Duration in minutes for log configuration to remain in effect before resetting to defaults. * @type {number} * @memberof ClientLogConfigurationDurationMinutes */ 'durationMinutes'?: number; /** * * @type {StandardLevel} * @memberof ClientLogConfigurationDurationMinutes */ 'rootLevel': StandardLevel; /** * Mapping of identifiers to Standard Log Level values * @type {{ [key: string]: StandardLevel; }} * @memberof ClientLogConfigurationDurationMinutes */ 'logLevels'?: { [key: string]: StandardLevel; }; } /** * Client Runtime Logging Configuration * @export * @interface ClientLogConfigurationExpiration */ export interface ClientLogConfigurationExpiration { /** * Log configuration\'s client ID * @type {string} * @memberof ClientLogConfigurationExpiration */ 'clientId'?: string; /** * Expiration date-time of the log configuration request. Can be no greater than 24 hours from current date-time. * @type {string} * @memberof ClientLogConfigurationExpiration */ 'expiration'?: string; /** * * @type {StandardLevel} * @memberof ClientLogConfigurationExpiration */ 'rootLevel': StandardLevel; /** * Mapping of identifiers to Standard Log Level values * @type {{ [key: string]: StandardLevel; }} * @memberof ClientLogConfigurationExpiration */ 'logLevels'?: { [key: string]: StandardLevel; }; } /** * Manual Upgrade Job Response * @export * @interface ClusterManualUpgrade */ export interface ClusterManualUpgrade { /** * List of job objects for the upgrade request. * @type {Array} * @memberof ClusterManualUpgrade */ 'jobs'?: Array; } /** * * @export * @interface ClusterManualUpgradeJobsInner */ export interface ClusterManualUpgradeJobsInner { /** * Unique identifier for the upgrade job. * @type {string} * @memberof ClusterManualUpgradeJobsInner */ 'uuid': string; /** * Identifier for the cookbook used in the upgrade job. * @type {string} * @memberof ClusterManualUpgradeJobsInner */ 'cookbook': string; /** * Current state of the upgrade job. * @type {string} * @memberof ClusterManualUpgradeJobsInner */ 'state': string; /** * The type of upgrade job (e.g., VA_UPGRADE). * @type {string} * @memberof ClusterManualUpgradeJobsInner */ 'type': string; /** * Unique identifier of the target for the upgrade job. * @type {string} * @memberof ClusterManualUpgradeJobsInner */ 'targetId': string; /** * * @type {ClusterManualUpgradeJobsInnerManagedProcessConfiguration} * @memberof ClusterManualUpgradeJobsInner */ 'managedProcessConfiguration': ClusterManualUpgradeJobsInnerManagedProcessConfiguration; } /** * Configuration of the managed processes involved in the upgrade. * @export * @interface ClusterManualUpgradeJobsInnerManagedProcessConfiguration */ export interface ClusterManualUpgradeJobsInnerManagedProcessConfiguration { /** * * @type {ClusterManualUpgradeJobsInnerManagedProcessConfigurationCharon} * @memberof ClusterManualUpgradeJobsInnerManagedProcessConfiguration */ 'charon'?: ClusterManualUpgradeJobsInnerManagedProcessConfigurationCharon; /** * * @type {ClusterManualUpgradeJobsInnerManagedProcessConfigurationCcg} * @memberof ClusterManualUpgradeJobsInnerManagedProcessConfiguration */ 'ccg'?: ClusterManualUpgradeJobsInnerManagedProcessConfigurationCcg; /** * * @type {ClusterManualUpgradeJobsInnerManagedProcessConfigurationOtelAgent} * @memberof ClusterManualUpgradeJobsInnerManagedProcessConfiguration */ 'otel_agent'?: ClusterManualUpgradeJobsInnerManagedProcessConfigurationOtelAgent; /** * * @type {ClusterManualUpgradeJobsInnerManagedProcessConfigurationRelay} * @memberof ClusterManualUpgradeJobsInnerManagedProcessConfiguration */ 'relay'?: ClusterManualUpgradeJobsInnerManagedProcessConfigurationRelay; /** * * @type {ClusterManualUpgradeJobsInnerManagedProcessConfigurationToolbox} * @memberof ClusterManualUpgradeJobsInnerManagedProcessConfiguration */ 'toolbox'?: ClusterManualUpgradeJobsInnerManagedProcessConfigurationToolbox; } /** * Configuration details for the \'ccg\' process. * @export * @interface ClusterManualUpgradeJobsInnerManagedProcessConfigurationCcg */ export interface ClusterManualUpgradeJobsInnerManagedProcessConfigurationCcg { /** * Version of the \'ccg\' process. * @type {string} * @memberof ClusterManualUpgradeJobsInnerManagedProcessConfigurationCcg */ 'version': string; /** * Path to the \'ccg\' process. * @type {string} * @memberof ClusterManualUpgradeJobsInnerManagedProcessConfigurationCcg */ 'path': string; /** * A brief description of the \'ccg\' process. * @type {string} * @memberof ClusterManualUpgradeJobsInnerManagedProcessConfigurationCcg */ 'description': string; /** * Indicates whether the process needs to be restarted. * @type {boolean} * @memberof ClusterManualUpgradeJobsInnerManagedProcessConfigurationCcg */ 'restartNeeded': boolean; /** * A map of dependencies for the \'ccg\' process. * @type {{ [key: string]: string; }} * @memberof ClusterManualUpgradeJobsInnerManagedProcessConfigurationCcg */ 'dependencies': { [key: string]: string; }; } /** * Configuration details for the \'charon\' process. * @export * @interface ClusterManualUpgradeJobsInnerManagedProcessConfigurationCharon */ export interface ClusterManualUpgradeJobsInnerManagedProcessConfigurationCharon { /** * Version of the \'charon\' process. * @type {string} * @memberof ClusterManualUpgradeJobsInnerManagedProcessConfigurationCharon */ 'version': string; /** * Path to the \'charon\' process. * @type {string} * @memberof ClusterManualUpgradeJobsInnerManagedProcessConfigurationCharon */ 'path': string; /** * A brief description of the \'charon\' process. * @type {string} * @memberof ClusterManualUpgradeJobsInnerManagedProcessConfigurationCharon */ 'description': string; /** * Indicates whether the process needs to be restarted. * @type {boolean} * @memberof ClusterManualUpgradeJobsInnerManagedProcessConfigurationCharon */ 'restartNeeded': boolean; } /** * Configuration details for the \'otel_agent\' process. * @export * @interface ClusterManualUpgradeJobsInnerManagedProcessConfigurationOtelAgent */ export interface ClusterManualUpgradeJobsInnerManagedProcessConfigurationOtelAgent { /** * Version of the \'otel_agent\' process. * @type {string} * @memberof ClusterManualUpgradeJobsInnerManagedProcessConfigurationOtelAgent */ 'version': string; /** * Path to the \'otel_agent\' process. * @type {string} * @memberof ClusterManualUpgradeJobsInnerManagedProcessConfigurationOtelAgent */ 'path': string; /** * A brief description of the \'otel_agent\' process. * @type {string} * @memberof ClusterManualUpgradeJobsInnerManagedProcessConfigurationOtelAgent */ 'description': string; /** * Indicates whether the process needs to be restarted. * @type {boolean} * @memberof ClusterManualUpgradeJobsInnerManagedProcessConfigurationOtelAgent */ 'restartNeeded': boolean; } /** * Configuration details for the \'relay\' process. * @export * @interface ClusterManualUpgradeJobsInnerManagedProcessConfigurationRelay */ export interface ClusterManualUpgradeJobsInnerManagedProcessConfigurationRelay { /** * Version of the \'relay\' process. * @type {string} * @memberof ClusterManualUpgradeJobsInnerManagedProcessConfigurationRelay */ 'version': string; /** * Path to the \'relay\' process. * @type {string} * @memberof ClusterManualUpgradeJobsInnerManagedProcessConfigurationRelay */ 'path': string; /** * A brief description of the \'relay\' process. * @type {string} * @memberof ClusterManualUpgradeJobsInnerManagedProcessConfigurationRelay */ 'description': string; /** * Indicates whether the process needs to be restarted. * @type {boolean} * @memberof ClusterManualUpgradeJobsInnerManagedProcessConfigurationRelay */ 'restartNeeded': boolean; } /** * Configuration details for the \'toolbox\' process. * @export * @interface ClusterManualUpgradeJobsInnerManagedProcessConfigurationToolbox */ export interface ClusterManualUpgradeJobsInnerManagedProcessConfigurationToolbox { /** * Version of the \'toolbox\' process. * @type {string} * @memberof ClusterManualUpgradeJobsInnerManagedProcessConfigurationToolbox */ 'version': string; /** * Path to the \'toolbox\' process. * @type {string} * @memberof ClusterManualUpgradeJobsInnerManagedProcessConfigurationToolbox */ 'path': string; /** * A brief description of the \'toolbox\' process. * @type {string} * @memberof ClusterManualUpgradeJobsInnerManagedProcessConfigurationToolbox */ 'description': string; /** * Indicates whether the process needs to be restarted. * @type {boolean} * @memberof ClusterManualUpgradeJobsInnerManagedProcessConfigurationToolbox */ 'restartNeeded': boolean; } /** * * @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 GetManagedClustersV1401Response */ export interface GetManagedClustersV1401Response { /** * A message describing the error * @type {any} * @memberof GetManagedClustersV1401Response */ 'error'?: any; } /** * * @export * @interface GetManagedClustersV1429Response */ export interface GetManagedClustersV1429Response { /** * A message describing the error * @type {any} * @memberof GetManagedClustersV1429Response */ 'message'?: any; } /** * A JSONPatch Operation as defined by [RFC 6902 - JSON Patch](https://tools.ietf.org/html/rfc6902) * @export * @interface JsonPatchOperation */ export interface JsonPatchOperation { /** * The operation to be performed * @type {string} * @memberof JsonPatchOperation */ 'op': JsonPatchOperationOpEnum; /** * A string JSON Pointer representing the target path to an element to be affected by the operation * @type {string} * @memberof JsonPatchOperation */ 'path': string; /** * * @type {JsonPatchOperationValue} * @memberof JsonPatchOperation */ 'value'?: JsonPatchOperationValue; } export const JsonPatchOperationOpEnum = { Add: 'add', Remove: 'remove', Replace: 'replace', Move: 'move', Copy: 'copy', Test: 'test' } as const; export type JsonPatchOperationOpEnum = typeof JsonPatchOperationOpEnum[keyof typeof JsonPatchOperationOpEnum]; /** * @type JsonPatchOperationValue * The value to be used for the operation, required for \"add\" and \"replace\" operations * @export */ export type JsonPatchOperationValue = Array | boolean | number | object | string; /** * 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]; /** * Managed Client type * @export * @enum {string} */ export const ManagedClientType = { Ccg: 'CCG', Va: 'VA', Internal: 'INTERNAL', IiqHarvester: 'IIQ_HARVESTER' } as const; export type ManagedClientType = typeof ManagedClientType[keyof typeof ManagedClientType]; /** * Managed Cluster * @export * @interface ManagedCluster */ export interface ManagedCluster { /** * ManagedCluster ID * @type {string} * @memberof ManagedCluster */ 'id': string; /** * ManagedCluster name * @type {string} * @memberof ManagedCluster */ 'name'?: string; /** * ManagedCluster pod * @type {string} * @memberof ManagedCluster */ 'pod'?: string; /** * ManagedCluster org * @type {string} * @memberof ManagedCluster */ 'org'?: string; /** * * @type {ManagedClusterTypes} * @memberof ManagedCluster */ 'type'?: ManagedClusterTypes; /** * ManagedProcess configuration map * @type {{ [key: string]: string | null; }} * @memberof ManagedCluster */ 'configuration'?: { [key: string]: string | null; }; /** * * @type {ManagedClusterKeyPair} * @memberof ManagedCluster */ 'keyPair'?: ManagedClusterKeyPair; /** * * @type {ManagedClusterAttributes} * @memberof ManagedCluster */ 'attributes'?: ManagedClusterAttributes; /** * ManagedCluster description * @type {string} * @memberof ManagedCluster */ 'description'?: string; /** * * @type {ManagedClusterRedis} * @memberof ManagedCluster */ 'redis'?: ManagedClusterRedis; /** * * @type {ManagedClientType} * @memberof ManagedCluster */ 'clientType': ManagedClientType | null; /** * CCG version used by the ManagedCluster * @type {string} * @memberof ManagedCluster */ 'ccgVersion': string; /** * boolean flag indicating whether or not the cluster configuration is pinned * @type {boolean} * @memberof ManagedCluster */ 'pinnedConfig'?: boolean; /** * * @type {ClientLogConfiguration} * @memberof ManagedCluster */ 'logConfiguration'?: ClientLogConfiguration | null; /** * Whether or not the cluster is operational or not * @type {boolean} * @memberof ManagedCluster */ 'operational'?: boolean; /** * Cluster status * @type {string} * @memberof ManagedCluster */ 'status'?: ManagedClusterStatusEnum; /** * Public key certificate * @type {string} * @memberof ManagedCluster */ 'publicKeyCertificate'?: string | null; /** * Public key thumbprint * @type {string} * @memberof ManagedCluster */ 'publicKeyThumbprint'?: string | null; /** * Public key * @type {string} * @memberof ManagedCluster */ 'publicKey'?: string | null; /** * * @type {ManagedClusterEncryptionConfig} * @memberof ManagedCluster */ 'encryptionConfiguration'?: ManagedClusterEncryptionConfig; /** * Key describing any immediate cluster alerts * @type {string} * @memberof ManagedCluster */ 'alertKey'?: string; /** * List of clients in a cluster * @type {Array} * @memberof ManagedCluster */ 'clientIds'?: Array; /** * Number of services bound to a cluster * @type {number} * @memberof ManagedCluster */ 'serviceCount'?: number; /** * CC ID only used in calling CC, will be removed without notice when Migration to CEGS is finished * @type {string} * @memberof ManagedCluster */ 'ccId'?: string; /** * The date/time this cluster was created * @type {string} * @memberof ManagedCluster */ 'createdAt'?: string | null; /** * The date/time this cluster was last updated * @type {string} * @memberof ManagedCluster */ 'updatedAt'?: string | null; /** * The date/time this cluster was notified for the last release * @type {string} * @memberof ManagedCluster */ 'lastReleaseNotifiedAt'?: string | null; /** * * @type {ManagedClusterUpdatePreferences} * @memberof ManagedCluster */ 'updatePreferences'?: ManagedClusterUpdatePreferences; /** * The current installed release on the Managed cluster * @type {string} * @memberof ManagedCluster */ 'currentInstalledReleaseVersion'?: string | null; /** * New available updates for the Managed cluster * @type {string} * @memberof ManagedCluster */ 'updatePackage'?: string | null; /** * The time at which out of date notification was sent for the Managed cluster * @type {string} * @memberof ManagedCluster */ 'isOutOfDateNotifiedAt'?: string | null; /** * The consolidated Health Status for the Managed cluster * @type {string} * @memberof ManagedCluster */ 'consolidatedHealthIndicatorsStatus'?: ManagedClusterConsolidatedHealthIndicatorsStatusEnum | null; } export const ManagedClusterStatusEnum = { Configuring: 'CONFIGURING', Failed: 'FAILED', NoClients: 'NO_CLIENTS', Normal: 'NORMAL', Warning: 'WARNING' } as const; export type ManagedClusterStatusEnum = typeof ManagedClusterStatusEnum[keyof typeof ManagedClusterStatusEnum]; export const ManagedClusterConsolidatedHealthIndicatorsStatusEnum = { Normal: 'NORMAL', Warning: 'WARNING', Error: 'ERROR' } as const; export type ManagedClusterConsolidatedHealthIndicatorsStatusEnum = typeof ManagedClusterConsolidatedHealthIndicatorsStatusEnum[keyof typeof ManagedClusterConsolidatedHealthIndicatorsStatusEnum]; /** * Managed Cluster Attributes for Cluster Configuration. Supported Cluster Types [sqsCluster, spConnectCluster] * @export * @interface ManagedClusterAttributes */ export interface ManagedClusterAttributes { /** * * @type {ManagedClusterQueue} * @memberof ManagedClusterAttributes */ 'queue'?: ManagedClusterQueue; /** * ManagedCluster keystore for spConnectCluster type * @type {string} * @memberof ManagedClusterAttributes */ 'keystore'?: string | null; } /** * Defines the encryption settings for a managed cluster, including the format used for storing and processing encrypted data. * @export * @interface ManagedClusterEncryptionConfig */ export interface ManagedClusterEncryptionConfig { /** * Specifies the format used for encrypted data, such as secrets. The format determines how the encrypted data is structured and processed. * @type {string} * @memberof ManagedClusterEncryptionConfig */ 'format'?: ManagedClusterEncryptionConfigFormatEnum; } export const ManagedClusterEncryptionConfigFormatEnum = { V2: 'V2', V3: 'V3' } as const; export type ManagedClusterEncryptionConfigFormatEnum = typeof ManagedClusterEncryptionConfigFormatEnum[keyof typeof ManagedClusterEncryptionConfigFormatEnum]; /** * Managed Cluster key pair for Cluster * @export * @interface ManagedClusterKeyPair */ export interface ManagedClusterKeyPair { /** * ManagedCluster publicKey * @type {string} * @memberof ManagedClusterKeyPair */ 'publicKey'?: string | null; /** * ManagedCluster publicKeyThumbprint * @type {string} * @memberof ManagedClusterKeyPair */ 'publicKeyThumbprint'?: string | null; /** * ManagedCluster publicKeyCertificate * @type {string} * @memberof ManagedClusterKeyPair */ 'publicKeyCertificate'?: string | null; } /** * Managed Cluster key pair for Cluster * @export * @interface ManagedClusterQueue */ export interface ManagedClusterQueue { /** * ManagedCluster queue name * @type {string} * @memberof ManagedClusterQueue */ 'name'?: string; /** * ManagedCluster queue aws region * @type {string} * @memberof ManagedClusterQueue */ 'region'?: string; } /** * Managed Cluster Redis Configuration * @export * @interface ManagedClusterRedis */ export interface ManagedClusterRedis { /** * ManagedCluster redisHost * @type {string} * @memberof ManagedClusterRedis */ 'redisHost'?: string; /** * ManagedCluster redisPort * @type {number} * @memberof ManagedClusterRedis */ 'redisPort'?: number; } /** * Request to create Managed Cluster * @export * @interface ManagedClusterRequest */ export interface ManagedClusterRequest { /** * ManagedCluster name * @type {string} * @memberof ManagedClusterRequest */ 'name': string; /** * * @type {ManagedClusterTypes} * @memberof ManagedClusterRequest */ 'type'?: ManagedClusterTypes; /** * ManagedProcess configuration map * @type {{ [key: string]: string; }} * @memberof ManagedClusterRequest */ 'configuration'?: { [key: string]: string; }; /** * ManagedCluster description * @type {string} * @memberof ManagedClusterRequest */ 'description'?: string | null; } /** * The Type of Cluster: * `idn` - IDN VA type * `iai` - IAI harvester VA * `spConnectCluster` - Saas 2.0 connector cluster (this should be one per org) * `sqsCluster` - This should be unused * `das-rc` - Data Access Security Resources Collector * `das-pc` - Data Access Security Permissions Collector * `das-dc` - Data Access Security Data Classification Collector * `pag` - Privilege Action Gateway VA * `das-am` - Data Access Security Activity Monitor * `standard` - Standard Cluster type for running multiple products * @export * @enum {string} */ export const ManagedClusterTypes = { Idn: 'idn', Iai: 'iai', SpConnectCluster: 'spConnectCluster', SqsCluster: 'sqsCluster', DasRc: 'das-rc', DasPc: 'das-pc', DasDc: 'das-dc', Pag: 'pag', DasAm: 'das-am', Standard: 'standard' } as const; export type ManagedClusterTypes = typeof ManagedClusterTypes[keyof typeof ManagedClusterTypes]; /** * The preference for applying updates for the cluster * @export * @interface ManagedClusterUpdatePreferences */ export interface ManagedClusterUpdatePreferences { /** * The processGroups for updatePreferences * @type {string} * @memberof ManagedClusterUpdatePreferences */ 'processGroups'?: string | null; /** * The current updateState for the cluster * @type {string} * @memberof ManagedClusterUpdatePreferences */ 'updateState'?: ManagedClusterUpdatePreferencesUpdateStateEnum | null; /** * The mail id to which new releases will be notified * @type {string} * @memberof ManagedClusterUpdatePreferences */ 'notificationEmail'?: string | null; } export const ManagedClusterUpdatePreferencesUpdateStateEnum = { Auto: 'AUTO', Disabled: 'DISABLED' } as const; export type ManagedClusterUpdatePreferencesUpdateStateEnum = typeof ManagedClusterUpdatePreferencesUpdateStateEnum[keyof typeof ManagedClusterUpdatePreferencesUpdateStateEnum]; /** * @type PutClientLogConfigurationV1Request * @export */ export type PutClientLogConfigurationV1Request = ClientLogConfigurationDurationMinutes | ClientLogConfigurationExpiration; /** * Standard Log4j log level * @export * @enum {string} */ export const StandardLevel = { Off: 'OFF', Fatal: 'FATAL', Error: 'ERROR', Warn: 'WARN', Info: 'INFO', Debug: 'DEBUG', Trace: 'TRACE' } as const; export type StandardLevel = typeof StandardLevel[keyof typeof StandardLevel]; /** * ManagedClustersApi - axios parameter creator * @export */ export const ManagedClustersApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Create a new Managed Cluster. The API returns a result that includes the managed cluster ID. * @summary Create create managed cluster * @param {ManagedClusterRequest} managedClusterRequest * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createManagedClusterV1: async (managedClusterRequest: ManagedClusterRequest, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'managedClusterRequest' is not null or undefined assertParamExists('createManagedClusterV1', 'managedClusterRequest', managedClusterRequest) const localVarPath = `/managed-clusters/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(managedClusterRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Delete an existing managed cluster. * @summary Delete managed cluster * @param {string} id Managed cluster ID. * @param {boolean} [removeClients] Flag to determine the need to delete a cluster with clients. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteManagedClusterV1: async (id: string, removeClients?: boolean, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deleteManagedClusterV1', 'id', id) const localVarPath = `/managed-clusters/v1/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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; if (removeClients !== undefined) { localVarQueryParameter['removeClients'] = removeClients; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Get a managed cluster\'s log configuration. * @summary Get managed cluster log configuration * @param {string} id ID of managed cluster to get log configuration for. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getClientLogConfigurationV1: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getClientLogConfigurationV1', 'id', id) const localVarPath = `/managed-clusters/v1/{id}/log-config` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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, }; }, /** * Get a managed cluster by ID. * @summary Get managed cluster * @param {string} id Managed cluster ID. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getManagedClusterV1: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getManagedClusterV1', 'id', id) const localVarPath = `/managed-clusters/v1/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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, }; }, /** * List current organization\'s managed clusters, based on request context. * @summary Get managed clusters * @param {number} [offset] Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {number} [limit] Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {boolean} [count] If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @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: **operational**: *eq* **name**: *eq* **type**: *eq* **status**: *eq* * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getManagedClustersV1: async (offset?: number, limit?: number, count?: boolean, filters?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/managed-clusters/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 (offset !== undefined) { localVarQueryParameter['offset'] = offset; } if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (count !== undefined) { localVarQueryParameter['count'] = count; } if (filters !== undefined) { localVarQueryParameter['filters'] = filters; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update a managed cluster\'s log configuration. You may only specify one of `durationMinutes` or `expiration`, up to 1440 minutes (24 hours) in the future. If neither is specified, the default value for `durationMinutes` is 240. * @summary Update managed cluster log configuration * @param {string} id ID of the managed cluster to update the log configuration for. * @param {PutClientLogConfigurationV1Request} putClientLogConfigurationV1Request Client log configuration for the given managed cluster. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ putClientLogConfigurationV1: async (id: string, putClientLogConfigurationV1Request: PutClientLogConfigurationV1Request, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('putClientLogConfigurationV1', 'id', id) // verify required parameter 'putClientLogConfigurationV1Request' is not null or undefined assertParamExists('putClientLogConfigurationV1', 'putClientLogConfigurationV1Request', putClientLogConfigurationV1Request) const localVarPath = `/managed-clusters/v1/{id}/log-config` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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(putClientLogConfigurationV1Request, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Update an existing managed cluster. * @summary Update managed cluster * @param {string} id Managed cluster ID. * @param {Array} jsonPatchOperation JSONPatch payload used to update the object. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updateManagedClusterV1: async (id: string, jsonPatchOperation: Array, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateManagedClusterV1', 'id', id) // verify required parameter 'jsonPatchOperation' is not null or undefined assertParamExists('updateManagedClusterV1', 'jsonPatchOperation', jsonPatchOperation) const localVarPath = `/managed-clusters/v1/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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: 'PATCH', ...baseOptions, ...axiosOptions}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json-patch+json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers}; localVarRequestOptions.data = serializeDataIfNeeded(jsonPatchOperation, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Trigger Manual Upgrade for Managed Cluster. AMS Security: API, Internal A token with SYSTEM_ADMINISTRATOR authority is required to call this API. * @summary Trigger manual upgrade for managed cluster * @param {string} id ID of managed cluster to trigger manual upgrade. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updateV1: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateV1', 'id', id) const localVarPath = `/managed-clusters/v1/{id}/manualUpgrade` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // 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, }; }, } }; /** * ManagedClustersApi - functional programming interface * @export */ export const ManagedClustersApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = ManagedClustersApiAxiosParamCreator(configuration) return { /** * Create a new Managed Cluster. The API returns a result that includes the managed cluster ID. * @summary Create create managed cluster * @param {ManagedClusterRequest} managedClusterRequest * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createManagedClusterV1(managedClusterRequest: ManagedClusterRequest, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createManagedClusterV1(managedClusterRequest, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ManagedClustersApi.createManagedClusterV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete an existing managed cluster. * @summary Delete managed cluster * @param {string} id Managed cluster ID. * @param {boolean} [removeClients] Flag to determine the need to delete a cluster with clients. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async deleteManagedClusterV1(id: string, removeClients?: boolean, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteManagedClusterV1(id, removeClients, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ManagedClustersApi.deleteManagedClusterV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get a managed cluster\'s log configuration. * @summary Get managed cluster log configuration * @param {string} id ID of managed cluster to get log configuration for. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getClientLogConfigurationV1(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getClientLogConfigurationV1(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ManagedClustersApi.getClientLogConfigurationV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get a managed cluster by ID. * @summary Get managed cluster * @param {string} id Managed cluster ID. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getManagedClusterV1(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getManagedClusterV1(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ManagedClustersApi.getManagedClusterV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * List current organization\'s managed clusters, based on request context. * @summary Get managed clusters * @param {number} [offset] Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {number} [limit] Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @param {boolean} [count] If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @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: **operational**: *eq* **name**: *eq* **type**: *eq* **status**: *eq* * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getManagedClustersV1(offset?: number, limit?: number, count?: boolean, filters?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getManagedClustersV1(offset, limit, count, filters, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ManagedClustersApi.getManagedClustersV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update a managed cluster\'s log configuration. You may only specify one of `durationMinutes` or `expiration`, up to 1440 minutes (24 hours) in the future. If neither is specified, the default value for `durationMinutes` is 240. * @summary Update managed cluster log configuration * @param {string} id ID of the managed cluster to update the log configuration for. * @param {PutClientLogConfigurationV1Request} putClientLogConfigurationV1Request Client log configuration for the given managed cluster. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async putClientLogConfigurationV1(id: string, putClientLogConfigurationV1Request: PutClientLogConfigurationV1Request, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.putClientLogConfigurationV1(id, putClientLogConfigurationV1Request, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ManagedClustersApi.putClientLogConfigurationV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update an existing managed cluster. * @summary Update managed cluster * @param {string} id Managed cluster ID. * @param {Array} jsonPatchOperation JSONPatch payload used to update the object. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async updateManagedClusterV1(id: string, jsonPatchOperation: Array, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateManagedClusterV1(id, jsonPatchOperation, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ManagedClustersApi.updateManagedClusterV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Trigger Manual Upgrade for Managed Cluster. AMS Security: API, Internal A token with SYSTEM_ADMINISTRATOR authority is required to call this API. * @summary Trigger manual upgrade for managed cluster * @param {string} id ID of managed cluster to trigger manual upgrade. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async updateV1(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateV1(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ManagedClustersApi.updateV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * ManagedClustersApi - factory interface * @export */ export const ManagedClustersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = ManagedClustersApiFp(configuration) return { /** * Create a new Managed Cluster. The API returns a result that includes the managed cluster ID. * @summary Create create managed cluster * @param {ManagedClustersApiCreateManagedClusterV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createManagedClusterV1(requestParameters: ManagedClustersApiCreateManagedClusterV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createManagedClusterV1(requestParameters.managedClusterRequest, axiosOptions).then((request) => request(axios, basePath)); }, /** * Delete an existing managed cluster. * @summary Delete managed cluster * @param {ManagedClustersApiDeleteManagedClusterV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteManagedClusterV1(requestParameters: ManagedClustersApiDeleteManagedClusterV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteManagedClusterV1(requestParameters.id, requestParameters.removeClients, axiosOptions).then((request) => request(axios, basePath)); }, /** * Get a managed cluster\'s log configuration. * @summary Get managed cluster log configuration * @param {ManagedClustersApiGetClientLogConfigurationV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getClientLogConfigurationV1(requestParameters: ManagedClustersApiGetClientLogConfigurationV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getClientLogConfigurationV1(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Get a managed cluster by ID. * @summary Get managed cluster * @param {ManagedClustersApiGetManagedClusterV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getManagedClusterV1(requestParameters: ManagedClustersApiGetManagedClusterV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getManagedClusterV1(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * List current organization\'s managed clusters, based on request context. * @summary Get managed clusters * @param {ManagedClustersApiGetManagedClustersV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getManagedClustersV1(requestParameters: ManagedClustersApiGetManagedClustersV1Request = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getManagedClustersV1(requestParameters.offset, requestParameters.limit, requestParameters.count, requestParameters.filters, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update a managed cluster\'s log configuration. You may only specify one of `durationMinutes` or `expiration`, up to 1440 minutes (24 hours) in the future. If neither is specified, the default value for `durationMinutes` is 240. * @summary Update managed cluster log configuration * @param {ManagedClustersApiPutClientLogConfigurationV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ putClientLogConfigurationV1(requestParameters: ManagedClustersApiPutClientLogConfigurationV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.putClientLogConfigurationV1(requestParameters.id, requestParameters.putClientLogConfigurationV1Request, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update an existing managed cluster. * @summary Update managed cluster * @param {ManagedClustersApiUpdateManagedClusterV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updateManagedClusterV1(requestParameters: ManagedClustersApiUpdateManagedClusterV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateManagedClusterV1(requestParameters.id, requestParameters.jsonPatchOperation, axiosOptions).then((request) => request(axios, basePath)); }, /** * Trigger Manual Upgrade for Managed Cluster. AMS Security: API, Internal A token with SYSTEM_ADMINISTRATOR authority is required to call this API. * @summary Trigger manual upgrade for managed cluster * @param {ManagedClustersApiUpdateV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updateV1(requestParameters: ManagedClustersApiUpdateV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateV1(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for createManagedClusterV1 operation in ManagedClustersApi. * @export * @interface ManagedClustersApiCreateManagedClusterV1Request */ export interface ManagedClustersApiCreateManagedClusterV1Request { /** * * @type {ManagedClusterRequest} * @memberof ManagedClustersApiCreateManagedClusterV1 */ readonly managedClusterRequest: ManagedClusterRequest } /** * Request parameters for deleteManagedClusterV1 operation in ManagedClustersApi. * @export * @interface ManagedClustersApiDeleteManagedClusterV1Request */ export interface ManagedClustersApiDeleteManagedClusterV1Request { /** * Managed cluster ID. * @type {string} * @memberof ManagedClustersApiDeleteManagedClusterV1 */ readonly id: string /** * Flag to determine the need to delete a cluster with clients. * @type {boolean} * @memberof ManagedClustersApiDeleteManagedClusterV1 */ readonly removeClients?: boolean } /** * Request parameters for getClientLogConfigurationV1 operation in ManagedClustersApi. * @export * @interface ManagedClustersApiGetClientLogConfigurationV1Request */ export interface ManagedClustersApiGetClientLogConfigurationV1Request { /** * ID of managed cluster to get log configuration for. * @type {string} * @memberof ManagedClustersApiGetClientLogConfigurationV1 */ readonly id: string } /** * Request parameters for getManagedClusterV1 operation in ManagedClustersApi. * @export * @interface ManagedClustersApiGetManagedClusterV1Request */ export interface ManagedClustersApiGetManagedClusterV1Request { /** * Managed cluster ID. * @type {string} * @memberof ManagedClustersApiGetManagedClusterV1 */ readonly id: string } /** * Request parameters for getManagedClustersV1 operation in ManagedClustersApi. * @export * @interface ManagedClustersApiGetManagedClustersV1Request */ export interface ManagedClustersApiGetManagedClustersV1Request { /** * Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @type {number} * @memberof ManagedClustersApiGetManagedClustersV1 */ readonly offset?: number /** * Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @type {number} * @memberof ManagedClustersApiGetManagedClustersV1 */ readonly limit?: number /** * If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. * @type {boolean} * @memberof ManagedClustersApiGetManagedClustersV1 */ readonly count?: boolean /** * 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: **operational**: *eq* **name**: *eq* **type**: *eq* **status**: *eq* * @type {string} * @memberof ManagedClustersApiGetManagedClustersV1 */ readonly filters?: string } /** * Request parameters for putClientLogConfigurationV1 operation in ManagedClustersApi. * @export * @interface ManagedClustersApiPutClientLogConfigurationV1Request */ export interface ManagedClustersApiPutClientLogConfigurationV1Request { /** * ID of the managed cluster to update the log configuration for. * @type {string} * @memberof ManagedClustersApiPutClientLogConfigurationV1 */ readonly id: string /** * Client log configuration for the given managed cluster. * @type {PutClientLogConfigurationV1Request} * @memberof ManagedClustersApiPutClientLogConfigurationV1 */ readonly putClientLogConfigurationV1Request: PutClientLogConfigurationV1Request } /** * Request parameters for updateManagedClusterV1 operation in ManagedClustersApi. * @export * @interface ManagedClustersApiUpdateManagedClusterV1Request */ export interface ManagedClustersApiUpdateManagedClusterV1Request { /** * Managed cluster ID. * @type {string} * @memberof ManagedClustersApiUpdateManagedClusterV1 */ readonly id: string /** * JSONPatch payload used to update the object. * @type {Array} * @memberof ManagedClustersApiUpdateManagedClusterV1 */ readonly jsonPatchOperation: Array } /** * Request parameters for updateV1 operation in ManagedClustersApi. * @export * @interface ManagedClustersApiUpdateV1Request */ export interface ManagedClustersApiUpdateV1Request { /** * ID of managed cluster to trigger manual upgrade. * @type {string} * @memberof ManagedClustersApiUpdateV1 */ readonly id: string } /** * ManagedClustersApi - object-oriented interface * @export * @class ManagedClustersApi * @extends {BaseAPI} */ export class ManagedClustersApi extends BaseAPI { /** * Create a new Managed Cluster. The API returns a result that includes the managed cluster ID. * @summary Create create managed cluster * @param {ManagedClustersApiCreateManagedClusterV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ManagedClustersApi */ public createManagedClusterV1(requestParameters: ManagedClustersApiCreateManagedClusterV1Request, axiosOptions?: RawAxiosRequestConfig) { return ManagedClustersApiFp(this.configuration).createManagedClusterV1(requestParameters.managedClusterRequest, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Delete an existing managed cluster. * @summary Delete managed cluster * @param {ManagedClustersApiDeleteManagedClusterV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ManagedClustersApi */ public deleteManagedClusterV1(requestParameters: ManagedClustersApiDeleteManagedClusterV1Request, axiosOptions?: RawAxiosRequestConfig) { return ManagedClustersApiFp(this.configuration).deleteManagedClusterV1(requestParameters.id, requestParameters.removeClients, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Get a managed cluster\'s log configuration. * @summary Get managed cluster log configuration * @param {ManagedClustersApiGetClientLogConfigurationV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ManagedClustersApi */ public getClientLogConfigurationV1(requestParameters: ManagedClustersApiGetClientLogConfigurationV1Request, axiosOptions?: RawAxiosRequestConfig) { return ManagedClustersApiFp(this.configuration).getClientLogConfigurationV1(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Get a managed cluster by ID. * @summary Get managed cluster * @param {ManagedClustersApiGetManagedClusterV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ManagedClustersApi */ public getManagedClusterV1(requestParameters: ManagedClustersApiGetManagedClusterV1Request, axiosOptions?: RawAxiosRequestConfig) { return ManagedClustersApiFp(this.configuration).getManagedClusterV1(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * List current organization\'s managed clusters, based on request context. * @summary Get managed clusters * @param {ManagedClustersApiGetManagedClustersV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ManagedClustersApi */ public getManagedClustersV1(requestParameters: ManagedClustersApiGetManagedClustersV1Request = {}, axiosOptions?: RawAxiosRequestConfig) { return ManagedClustersApiFp(this.configuration).getManagedClustersV1(requestParameters.offset, requestParameters.limit, requestParameters.count, requestParameters.filters, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update a managed cluster\'s log configuration. You may only specify one of `durationMinutes` or `expiration`, up to 1440 minutes (24 hours) in the future. If neither is specified, the default value for `durationMinutes` is 240. * @summary Update managed cluster log configuration * @param {ManagedClustersApiPutClientLogConfigurationV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ManagedClustersApi */ public putClientLogConfigurationV1(requestParameters: ManagedClustersApiPutClientLogConfigurationV1Request, axiosOptions?: RawAxiosRequestConfig) { return ManagedClustersApiFp(this.configuration).putClientLogConfigurationV1(requestParameters.id, requestParameters.putClientLogConfigurationV1Request, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update an existing managed cluster. * @summary Update managed cluster * @param {ManagedClustersApiUpdateManagedClusterV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ManagedClustersApi */ public updateManagedClusterV1(requestParameters: ManagedClustersApiUpdateManagedClusterV1Request, axiosOptions?: RawAxiosRequestConfig) { return ManagedClustersApiFp(this.configuration).updateManagedClusterV1(requestParameters.id, requestParameters.jsonPatchOperation, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Trigger Manual Upgrade for Managed Cluster. AMS Security: API, Internal A token with SYSTEM_ADMINISTRATOR authority is required to call this API. * @summary Trigger manual upgrade for managed cluster * @param {ManagedClustersApiUpdateV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ManagedClustersApi */ public updateV1(requestParameters: ManagedClustersApiUpdateV1Request, axiosOptions?: RawAxiosRequestConfig) { return ManagedClustersApiFp(this.configuration).updateV1(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } }