/** * 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. */ 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