/** * 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 { ComponentNetwork } from './component-network'; import type { ComponentVolumeItem } from './component-volume-item'; 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; } //# sourceMappingURL=component-item-create.d.ts.map