/* tslint:disable */ /* eslint-disable */ /** * Identity Security Cloud API - Managed Cluster Types * 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 { } /** * * @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 GetManagedClusterTypesV1401Response */ export interface GetManagedClusterTypesV1401Response { /** * A message describing the error * @type {any} * @memberof GetManagedClusterTypesV1401Response */ 'error'?: any; } /** * * @export * @interface GetManagedClusterTypesV1429Response */ export interface GetManagedClusterTypesV1429Response { /** * A message describing the error * @type {any} * @memberof GetManagedClusterTypesV1429Response */ 'message'?: any; } /** * A JSONPatch document as defined by [RFC 6902 - JSON Patch](https://tools.ietf.org/html/rfc6902) * @export * @interface JsonPatch */ export interface JsonPatch { /** * Operations to be applied * @type {Array} * @memberof JsonPatch */ 'operations'?: Array; } /** * 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 Cluster Type for Cluster upgrade configuration information * @export * @interface ManagedClusterType */ export interface ManagedClusterType { /** * ManagedClusterType ID * @type {string} * @memberof ManagedClusterType */ 'id'?: string; /** * ManagedClusterType type name * @type {string} * @memberof ManagedClusterType */ 'type': string; /** * ManagedClusterType pod * @type {string} * @memberof ManagedClusterType */ 'pod': string; /** * ManagedClusterType org * @type {string} * @memberof ManagedClusterType */ 'org': string; /** * List of processes for the cluster type * @type {Array} * @memberof ManagedClusterType */ 'managedProcessIds'?: Array; } /** * ManagedClusterTypesApi - axios parameter creator * @export */ export const ManagedClusterTypesApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Create a new Managed Cluster Type. The API returns a result that includes the Managed Cluster Type ID * @summary Create new managed cluster type * @param {ManagedClusterType} managedClusterType * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createManagedClusterTypeV1: async (managedClusterType: ManagedClusterType, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'managedClusterType' is not null or undefined assertParamExists('createManagedClusterTypeV1', 'managedClusterType', managedClusterType) const localVarPath = `/managed-cluster-types/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(managedClusterType, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, /** * Delete an existing Managed Cluster Type. * @summary Delete a managed cluster type * @param {string} id The Managed Cluster Type ID * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteManagedClusterTypeV1: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deleteManagedClusterTypeV1', 'id', id) const localVarPath = `/managed-cluster-types/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; 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 Type. * @summary Get a managed cluster type * @param {string} id The Managed Cluster Type ID * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getManagedClusterTypeV1: async (id: string, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getManagedClusterTypeV1', 'id', id) const localVarPath = `/managed-cluster-types/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, }; }, /** * Get a list of Managed Cluster Types. * @summary List managed cluster types * @param {string} [type] Type descriptor * @param {string} [pod] Pinned pod (or default) * @param {string} [org] Pinned org (or default) * @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 {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getManagedClusterTypesV1: async (type?: string, pod?: string, org?: string, offset?: number, limit?: number, axiosOptions: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/managed-cluster-types/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 (type !== undefined) { localVarQueryParameter['type'] = type; } if (pod !== undefined) { localVarQueryParameter['pod'] = pod; } if (org !== undefined) { localVarQueryParameter['org'] = org; } if (offset !== undefined) { localVarQueryParameter['offset'] = offset; } 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, }; }, /** * Update an existing Managed Cluster Type. * @summary Update a managed cluster type * @param {string} id The Managed Cluster Type ID * @param {JsonPatch} jsonPatch The JSONPatch payload used to update the schema. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updateManagedClusterTypeV1: async (id: string, jsonPatch: JsonPatch, axiosOptions: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateManagedClusterTypeV1', 'id', id) // verify required parameter 'jsonPatch' is not null or undefined assertParamExists('updateManagedClusterTypeV1', 'jsonPatch', jsonPatch) const localVarPath = `/managed-cluster-types/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(jsonPatch, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), axiosOptions: localVarRequestOptions, }; }, } }; /** * ManagedClusterTypesApi - functional programming interface * @export */ export const ManagedClusterTypesApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = ManagedClusterTypesApiAxiosParamCreator(configuration) return { /** * Create a new Managed Cluster Type. The API returns a result that includes the Managed Cluster Type ID * @summary Create new managed cluster type * @param {ManagedClusterType} managedClusterType * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async createManagedClusterTypeV1(managedClusterType: ManagedClusterType, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createManagedClusterTypeV1(managedClusterType, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ManagedClusterTypesApi.createManagedClusterTypeV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Delete an existing Managed Cluster Type. * @summary Delete a managed cluster type * @param {string} id The Managed Cluster Type ID * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async deleteManagedClusterTypeV1(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteManagedClusterTypeV1(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ManagedClusterTypesApi.deleteManagedClusterTypeV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get a Managed Cluster Type. * @summary Get a managed cluster type * @param {string} id The Managed Cluster Type ID * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getManagedClusterTypeV1(id: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getManagedClusterTypeV1(id, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ManagedClusterTypesApi.getManagedClusterTypeV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get a list of Managed Cluster Types. * @summary List managed cluster types * @param {string} [type] Type descriptor * @param {string} [pod] Pinned pod (or default) * @param {string} [org] Pinned org (or default) * @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 {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async getManagedClusterTypesV1(type?: string, pod?: string, org?: string, offset?: number, limit?: number, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getManagedClusterTypesV1(type, pod, org, offset, limit, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ManagedClusterTypesApi.getManagedClusterTypesV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Update an existing Managed Cluster Type. * @summary Update a managed cluster type * @param {string} id The Managed Cluster Type ID * @param {JsonPatch} jsonPatch The JSONPatch payload used to update the schema. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ async updateManagedClusterTypeV1(id: string, jsonPatch: JsonPatch, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateManagedClusterTypeV1(id, jsonPatch, axiosOptions); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['ManagedClusterTypesApi.updateManagedClusterTypeV1']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * ManagedClusterTypesApi - factory interface * @export */ export const ManagedClusterTypesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = ManagedClusterTypesApiFp(configuration) return { /** * Create a new Managed Cluster Type. The API returns a result that includes the Managed Cluster Type ID * @summary Create new managed cluster type * @param {ManagedClusterTypesApiCreateManagedClusterTypeV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ createManagedClusterTypeV1(requestParameters: ManagedClusterTypesApiCreateManagedClusterTypeV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createManagedClusterTypeV1(requestParameters.managedClusterType, axiosOptions).then((request) => request(axios, basePath)); }, /** * Delete an existing Managed Cluster Type. * @summary Delete a managed cluster type * @param {ManagedClusterTypesApiDeleteManagedClusterTypeV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ deleteManagedClusterTypeV1(requestParameters: ManagedClusterTypesApiDeleteManagedClusterTypeV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteManagedClusterTypeV1(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Get a Managed Cluster Type. * @summary Get a managed cluster type * @param {ManagedClusterTypesApiGetManagedClusterTypeV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getManagedClusterTypeV1(requestParameters: ManagedClusterTypesApiGetManagedClusterTypeV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getManagedClusterTypeV1(requestParameters.id, axiosOptions).then((request) => request(axios, basePath)); }, /** * Get a list of Managed Cluster Types. * @summary List managed cluster types * @param {ManagedClusterTypesApiGetManagedClusterTypesV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ getManagedClusterTypesV1(requestParameters: ManagedClusterTypesApiGetManagedClusterTypesV1Request = {}, axiosOptions?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getManagedClusterTypesV1(requestParameters.type, requestParameters.pod, requestParameters.org, requestParameters.offset, requestParameters.limit, axiosOptions).then((request) => request(axios, basePath)); }, /** * Update an existing Managed Cluster Type. * @summary Update a managed cluster type * @param {ManagedClusterTypesApiUpdateManagedClusterTypeV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} */ updateManagedClusterTypeV1(requestParameters: ManagedClusterTypesApiUpdateManagedClusterTypeV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateManagedClusterTypeV1(requestParameters.id, requestParameters.jsonPatch, axiosOptions).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for createManagedClusterTypeV1 operation in ManagedClusterTypesApi. * @export * @interface ManagedClusterTypesApiCreateManagedClusterTypeV1Request */ export interface ManagedClusterTypesApiCreateManagedClusterTypeV1Request { /** * * @type {ManagedClusterType} * @memberof ManagedClusterTypesApiCreateManagedClusterTypeV1 */ readonly managedClusterType: ManagedClusterType } /** * Request parameters for deleteManagedClusterTypeV1 operation in ManagedClusterTypesApi. * @export * @interface ManagedClusterTypesApiDeleteManagedClusterTypeV1Request */ export interface ManagedClusterTypesApiDeleteManagedClusterTypeV1Request { /** * The Managed Cluster Type ID * @type {string} * @memberof ManagedClusterTypesApiDeleteManagedClusterTypeV1 */ readonly id: string } /** * Request parameters for getManagedClusterTypeV1 operation in ManagedClusterTypesApi. * @export * @interface ManagedClusterTypesApiGetManagedClusterTypeV1Request */ export interface ManagedClusterTypesApiGetManagedClusterTypeV1Request { /** * The Managed Cluster Type ID * @type {string} * @memberof ManagedClusterTypesApiGetManagedClusterTypeV1 */ readonly id: string } /** * Request parameters for getManagedClusterTypesV1 operation in ManagedClusterTypesApi. * @export * @interface ManagedClusterTypesApiGetManagedClusterTypesV1Request */ export interface ManagedClusterTypesApiGetManagedClusterTypesV1Request { /** * Type descriptor * @type {string} * @memberof ManagedClusterTypesApiGetManagedClusterTypesV1 */ readonly type?: string /** * Pinned pod (or default) * @type {string} * @memberof ManagedClusterTypesApiGetManagedClusterTypesV1 */ readonly pod?: string /** * Pinned org (or default) * @type {string} * @memberof ManagedClusterTypesApiGetManagedClusterTypesV1 */ readonly org?: string /** * 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 ManagedClusterTypesApiGetManagedClusterTypesV1 */ 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 ManagedClusterTypesApiGetManagedClusterTypesV1 */ readonly limit?: number } /** * Request parameters for updateManagedClusterTypeV1 operation in ManagedClusterTypesApi. * @export * @interface ManagedClusterTypesApiUpdateManagedClusterTypeV1Request */ export interface ManagedClusterTypesApiUpdateManagedClusterTypeV1Request { /** * The Managed Cluster Type ID * @type {string} * @memberof ManagedClusterTypesApiUpdateManagedClusterTypeV1 */ readonly id: string /** * The JSONPatch payload used to update the schema. * @type {JsonPatch} * @memberof ManagedClusterTypesApiUpdateManagedClusterTypeV1 */ readonly jsonPatch: JsonPatch } /** * ManagedClusterTypesApi - object-oriented interface * @export * @class ManagedClusterTypesApi * @extends {BaseAPI} */ export class ManagedClusterTypesApi extends BaseAPI { /** * Create a new Managed Cluster Type. The API returns a result that includes the Managed Cluster Type ID * @summary Create new managed cluster type * @param {ManagedClusterTypesApiCreateManagedClusterTypeV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ManagedClusterTypesApi */ public createManagedClusterTypeV1(requestParameters: ManagedClusterTypesApiCreateManagedClusterTypeV1Request, axiosOptions?: RawAxiosRequestConfig) { return ManagedClusterTypesApiFp(this.configuration).createManagedClusterTypeV1(requestParameters.managedClusterType, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Delete an existing Managed Cluster Type. * @summary Delete a managed cluster type * @param {ManagedClusterTypesApiDeleteManagedClusterTypeV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ManagedClusterTypesApi */ public deleteManagedClusterTypeV1(requestParameters: ManagedClusterTypesApiDeleteManagedClusterTypeV1Request, axiosOptions?: RawAxiosRequestConfig) { return ManagedClusterTypesApiFp(this.configuration).deleteManagedClusterTypeV1(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Get a Managed Cluster Type. * @summary Get a managed cluster type * @param {ManagedClusterTypesApiGetManagedClusterTypeV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ManagedClusterTypesApi */ public getManagedClusterTypeV1(requestParameters: ManagedClusterTypesApiGetManagedClusterTypeV1Request, axiosOptions?: RawAxiosRequestConfig) { return ManagedClusterTypesApiFp(this.configuration).getManagedClusterTypeV1(requestParameters.id, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Get a list of Managed Cluster Types. * @summary List managed cluster types * @param {ManagedClusterTypesApiGetManagedClusterTypesV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ManagedClusterTypesApi */ public getManagedClusterTypesV1(requestParameters: ManagedClusterTypesApiGetManagedClusterTypesV1Request = {}, axiosOptions?: RawAxiosRequestConfig) { return ManagedClusterTypesApiFp(this.configuration).getManagedClusterTypesV1(requestParameters.type, requestParameters.pod, requestParameters.org, requestParameters.offset, requestParameters.limit, axiosOptions).then((request) => request(this.axios, this.basePath)); } /** * Update an existing Managed Cluster Type. * @summary Update a managed cluster type * @param {ManagedClusterTypesApiUpdateManagedClusterTypeV1Request} requestParameters Request parameters. * @param {*} [axiosOptions] Override http request option. * @throws {RequiredError} * @memberof ManagedClusterTypesApi */ public updateManagedClusterTypeV1(requestParameters: ManagedClusterTypesApiUpdateManagedClusterTypeV1Request, axiosOptions?: RawAxiosRequestConfig) { return ManagedClusterTypesApiFp(this.configuration).updateManagedClusterTypeV1(requestParameters.id, requestParameters.jsonPatch, axiosOptions).then((request) => request(this.axios, this.basePath)); } }