// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class ResetDisksRequestDisk extends $dara.Model { /** * @remarks * The ID of the disk to roll back. * * @example * d-j6cf7l0ewidb78lq**** */ diskId?: string; /** * @remarks * The ID of the snapshot from an instance snapshot that is used to roll back the disk. * * @example * s-j6cdofbycydvg7ey**** */ snapshotId?: string; static names(): { [key: string]: string } { return { diskId: 'DiskId', snapshotId: 'SnapshotId', }; } static types(): { [key: string]: any } { return { diskId: 'string', snapshotId: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ResetDisksRequest extends $dara.Model { /** * @remarks * The disks to roll back. You can specify up to 10 disks. * * This parameter is required. */ disk?: ResetDisksRequestDisk[]; /** * @remarks * Specifies whether to perform a dry run. Valid values: * * - true: performs a dry run to check the request. The disks are not rolled back. The check verifies required parameters, the request format, and resource states. If the request fails the check, the operation returns an error message. If the request passes the check, the operation returns the `DryRunOperation` error code. * * - false: sends a normal request. After the request passes the check, the operation rolls back the disks. * * Default value: false. * * @example * false */ dryRun?: boolean; ownerAccount?: string; ownerId?: number; /** * @remarks * The region ID. You can call the [DescribeRegions](https://help.aliyun.com/document_detail/25609.html) operation to query the latest Alibaba Cloud regions. * * This parameter is required. * * @example * cn-hangzhou */ regionId?: string; resourceOwnerAccount?: string; resourceOwnerId?: number; static names(): { [key: string]: string } { return { disk: 'Disk', dryRun: 'DryRun', ownerAccount: 'OwnerAccount', ownerId: 'OwnerId', regionId: 'RegionId', resourceOwnerAccount: 'ResourceOwnerAccount', resourceOwnerId: 'ResourceOwnerId', }; } static types(): { [key: string]: any } { return { disk: { 'type': 'array', 'itemType': ResetDisksRequestDisk }, dryRun: 'boolean', ownerAccount: 'string', ownerId: 'number', regionId: 'string', resourceOwnerAccount: 'string', resourceOwnerId: 'number', }; } validate() { if(Array.isArray(this.disk)) { $dara.Model.validateArray(this.disk); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }