// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class DescribeLockedSnapshotsRequest extends $dara.Model { /** * @remarks * Specifies whether to perform a dry run. Valid values: * * - true: performs a dry run without performing the actual operation. The system checks for required parameters, the request format, and business constraints. If the request fails the dry run, an error message is returned. If the request passes the dry run, the DryRunOperation error code is returned. * * - false (default): performs a dry run and performs the actual operation if the request passes the dry run. * * @example * false */ dryRun?: boolean; /** * @remarks * The lock status. Valid values: * * - compliance-cooloff: The snapshot is locked in compliance mode and is within its cool-off period. The snapshot cannot be deleted. Users with the required RAM permissions can unlock the snapshot, extend or shorten the cool-off period, and extend or shorten the lock duration. * * - compliance: The snapshot is locked in compliance mode and the cool-off period has ended. The snapshot cannot be unlocked or deleted. Users with the required RAM permissions can extend the lock duration. * * - expired: The lock on the snapshot has expired. The snapshot is no longer locked and can be deleted. * * @example * compliance-cooloff */ lockStatus?: string; /** * @remarks * The number of entries per page. Maximum value: 100. * * Default value: * * - If you do not specify this parameter or you specify a value smaller than 10, the default value is 10. * * - If you specify a value larger than 100, the value is capped at 100. * * @example * 10 */ maxResults?: number; /** * @remarks * The pagination token that is used in the next request to retrieve a new page of results. It is the `NextToken` value from a previous response. * * @example * caeba0bbb2be03f84eb48b699f0a**** */ nextToken?: string; /** * @example * 158704318252**** */ ownerAccount?: string; /** * @example * 158704318252**** */ ownerId?: number; /** * @remarks * The region ID. You can call [DescribeRegions](https://help.aliyun.com/zh/ecs/developer-reference/api-ecs-2014-05-26-describeregions?spm=a2c4g.11186623.0.i2) to view the latest list of Alibaba Cloud regions. * * This parameter is required. * * @example * cn-hangzhou */ regionId?: string; /** * @example * 158704318252**** */ resourceOwnerAccount?: string; /** * @example * 158704318252**** */ resourceOwnerId?: number; /** * @remarks * An array of one to 100 snapshot IDs. */ snapshotIds?: string[]; static names(): { [key: string]: string } { return { dryRun: 'DryRun', lockStatus: 'LockStatus', maxResults: 'MaxResults', nextToken: 'NextToken', ownerAccount: 'OwnerAccount', ownerId: 'OwnerId', regionId: 'RegionId', resourceOwnerAccount: 'ResourceOwnerAccount', resourceOwnerId: 'ResourceOwnerId', snapshotIds: 'SnapshotIds', }; } static types(): { [key: string]: any } { return { dryRun: 'boolean', lockStatus: 'string', maxResults: 'number', nextToken: 'string', ownerAccount: 'string', ownerId: 'number', regionId: 'string', resourceOwnerAccount: 'string', resourceOwnerId: 'number', snapshotIds: { 'type': 'array', 'itemType': 'string' }, }; } validate() { if(Array.isArray(this.snapshotIds)) { $dara.Model.validateArray(this.snapshotIds); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }