/** * KubeBlocks Cloud API * KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth. * * The version of the OpenAPI document: 1.0.0 * Contact: support@apecloud.com * * 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 { ModeServiceRefHelmValuePath } from './mode-service-ref-helm-value-path'; import type { ModeServiceRefVersionCompatibility } from './mode-service-ref-version-compatibility'; import type { ServiceDescriptorAddressStyle } from './service-descriptor-address-style'; import type { ServiceSelector } from './service-selector'; /** * Defines a ServiceRef for a cluster, enabling access to both external services and Services provided by other Clusters. The defined serviceRef must be provided when creating cluster. * @export * @interface ModeServiceRef */ export interface ModeServiceRef { /** * The name will be referenced in clusterCreate request. The name should also be defined in `.components` so that frontend can use it to get proper localized title. * @type {string} * @memberof ModeServiceRef */ 'name': string; /** * The localized title of the serviceRef. * @type {{ [key: string]: string; }} * @memberof ModeServiceRef */ 'title'?: { [key: string]: string; }; /** * whether this serviceRef is optional. If set to true, the cluster can be created without providing this serviceRef. * @type {boolean} * @memberof ModeServiceRef */ 'optional'?: boolean; /** * The default engine to be used in serviceRef. This field is used as the fallback engine filter and default create entry. * @type {string} * @memberof ModeServiceRef */ 'engineName': string; /** * The mode to be used in serviceRef. This field is used to filter clusters. If not set, it means all modes are supported. * @type {Array} * @memberof ModeServiceRef */ 'modes'?: Array; /** * * @type {ServiceDescriptorAddressStyle} * @memberof ModeServiceRef */ 'addressStyle': ServiceDescriptorAddressStyle; /** * whether to disable manual input of the service reference. If set to true, users can only select from the serviceRefs provided by list clusters api. * @type {boolean} * @memberof ModeServiceRef */ 'disableManualInput'?: boolean; /** * whether to disable auto creating the ServiceDescriptor object for this serviceRef. If set to false, the serviceDescriptor content (host/port/username/password) will be set directly into the helm values under the helmValuePath.serviceDescriptor path. If omitted, the generated ServiceDescriptor name will be set instead. * @type {boolean} * @memberof ModeServiceRef */ 'disableAutoCreateServiceDescriptor'?: boolean | null; /** * whether to disable selecting a related cluster created in the platform for this serviceRef. If set to true, the frontend should only allow manual input instead of selecting from the clusters provided by the list clusters api. * @type {boolean} * @memberof ModeServiceRef */ 'disableRelatedCluster'?: boolean; /** * Extra form field definitions for manual input of the serviceRef. The keys are the field names and the frontend renders them as input items. The user-entered values are passed in ClusterCreate serviceRefs[].extraForManualInput and mapped to helm values via helmValuePath.extraForManualInput. * @type {{ [key: string]: any; }} * @memberof ModeServiceRef */ 'extraForManualInput'?: { [key: string]: any; }; /** * * @type {ModeServiceRefHelmValuePath} * @memberof ModeServiceRef */ 'helmValuePath': ModeServiceRefHelmValuePath; /** * ServiceSelectors will map cluster\'s mode to a serviceSelector. The serviceSelector will be used to provide the corresponding helm values. If no serviceSelector is matched, the corresponding helm value will not be set. * @type {Array} * @memberof ModeServiceRef */ 'serviceSelectors'?: Array; /** * Service version compatibility rules for this serviceRef. The create API uses these rules to reject incompatible referenced clusters, and the frontend can use them to filter or explain selectable referenced clusters. * @type {Array} * @memberof ModeServiceRef */ 'serviceVersionCompatibility'?: Array; /** * whether the serviceRef can be updated. If set to false, the frontend should not allow users to update the serviceRef. * @type {boolean} * @memberof ModeServiceRef */ 'updatable'?: boolean; } //# sourceMappingURL=mode-service-ref.d.ts.map