/* tslint:disable */ /* eslint-disable */ /** * Admin API * The Admin API is used to manage the ApeCloud platform. * * 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. */ // May contain unused imports in some cases // @ts-ignore import type { ComponentNetwork } from './component-network'; // May contain unused imports in some cases // @ts-ignore import type { ComponentVolumeItem } from './component-volume-item'; // May contain unused imports in some cases // @ts-ignore import type { InstanceTemplateCreate } from './instance-template-create'; /** * ComponentItem is the information of a component * @export * @interface ComponentItemCreate */ export interface ComponentItemCreate { /** * User-provided component annotations, merged over chart defaults. Platform-managed keys cannot be overridden. Omitted or empty preserves defaults; empty string values are literal values, not deletions. * @type {{ [key: string]: string; }} * @memberof ComponentItemCreate */ 'annotations'?: { [key: string]: string; }; /** * User-provided component labels, merged over chart defaults. Key prefixes before / matching kubeblocks.io, kubernetes.io, k8s.io or any of their subdomains are reserved. Keys and values must satisfy Kubernetes label syntax. Omitted or empty preserves defaults; empty string values are literal values, not deletions. * @type {{ [key: string]: string; }} * @memberof ComponentItemCreate */ 'labels'?: { [key: string]: string; }; /** * Optional host group in this environment and the explicitly selected availabilityZone. Requires availabilityZone; no upper-level host group is inherited. * @type {string} * @memberof ComponentItemCreate */ 'nodeGroup'?: string; /** * Component AZ, enabled in the environment. Required when placementScope is component and this component has no templates; otherwise forbidden. An omitted nodeGroup does not inherit the cluster host group. * @type {string} * @memberof ComponentItemCreate */ 'availabilityZone'?: string; /** * component type, refer to componentDef and support NamePrefix * @type {string} * @memberof ComponentItemCreate */ 'component': string; /** * The number of components, if often used as shards number * @type {number} * @memberof ComponentItemCreate */ 'compNum'?: number; /** * The number of replicas, for standalone mode, the replicas is 1, for raftGroup mode, the default replicas is 3. When instanceTemplates is provided, this must equal the sum of all template replica counts. * @type {number} * @memberof ComponentItemCreate */ 'replicas'?: number; /** * Per-template replicas and optional overlays (env, availability zone, storage class). Required when the current mode component declares instanceTemplate in engine_options; otherwise omit. Names must exactly match all chart-rendered instances, without missing, extra, or duplicate names; order does not matter. Component replicas must equal the sum of all requested instance template replica counts. * @type {Array} * @memberof ComponentItemCreate */ 'instanceTemplates'?: Array; /** * Whether to skip resource constraint validation when creating cluster * @type {boolean} * @memberof ComponentItemCreate */ 'skipResourceConstraints'?: boolean; /** * * @type {string} * @memberof ComponentItemCreate */ 'classCode'?: string; /** * CPU cores. * @type {number} * @memberof ComponentItemCreate */ 'cpu'?: number; /** * Memory, the unit is Gi. * @type {number} * @memberof ComponentItemCreate */ 'memory'?: number; /** * StorageClass name * @type {string} * @memberof ComponentItemCreate */ 'storageClass'?: string; /** * * @type {Array} * @memberof ComponentItemCreate */ 'volumes'?: Array; /** * The name of the secret that contains the system account credentials * @type {string} * @memberof ComponentItemCreate */ 'systemAccountSecretName'?: string; /** * * @type {ComponentNetwork} * @memberof ComponentItemCreate */ 'network'?: ComponentNetwork; }