/** * 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 { InstanceTemplateReplicas } from './instance-template-replicas'; import type { TaskSchedule } from './task-schedule'; /** * OpsHScale is the payload to horizontally scale a KubeBlocks cluster. Specify replicas or shards. Replica scaling requires explicit template targets when the current mode component declares instanceTemplate.ops hscale. * @export * @interface OpsHScale */ export interface OpsHScale { /** * component type * @type {string} * @memberof OpsHScale */ 'component': string; /** * name of the backup to restore from * @type {string} * @memberof OpsHScale */ 'backupName'?: string | null; /** * number of replicas * @type {number} * @memberof OpsHScale */ 'replicas'?: number | null; /** * Explicit template replica targets, required when the current mode component instanceTemplate.ops includes hscale. Otherwise omit for component-level scaling. Requires top-level replicas and every name from instanceTemplate.names, without missing, extra, or duplicate names. Template replica counts must sum to the component target; equal distribution is not required by the API. Component and template changes are sent together in one OpsRequest using current Cluster replicas to calculate scaleIn/scaleOut deltas. Shard-count scaling cannot include this list. * @type {Array} * @memberof OpsHScale */ 'instanceTemplates'?: Array; /** * List of online instance names to be switched to offline during scaling in. * @type {Array} * @memberof OpsHScale */ 'onlineInstancesToOffline'?: Array | null; /** * List of offline instance names to be switched to online during scaling out. * @type {Array} * @memberof OpsHScale */ 'OfflineInstancesToOnline'?: Array | null; /** * number of shards, mutually exclusive with replicas. * @type {number} * @memberof OpsHScale */ 'shards'?: number | null; /** * Specifies the maximum time in seconds that the OpsRequest will wait for its pre-conditions to be met before it aborts the operation * @type {number} * @memberof OpsHScale */ 'preConditionDeadlineSeconds'?: number | null; /** * force the scaling operation without pre-check * @type {boolean} * @memberof OpsHScale */ 'force'?: boolean; /** * * @type {TaskSchedule} * @memberof OpsHScale */ 'schedule'?: TaskSchedule; } //# sourceMappingURL=ops-hscale.d.ts.map