// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class ModifySnapshotAttributeRequest extends $dara.Model { /** * @remarks * The snapshot description. It can be empty or up to 256 characters in length. It cannot start with http:// or https://. * * @example * testDescription */ description?: string; /** * @remarks * Specifies whether to disable the instant access feature. Valid values: * * * true * * false * * Default value: false. * * > This parameter is no longer used. By default, new standard snapshots of Enterprise SSDs (ESSDs) are upgraded to instant access snapshots free of charge without the need for additional configurations. For more information, see [Use the instant access feature](https://help.aliyun.com/document_detail/193667.html). * * @example * false */ disableInstantAccess?: boolean; ownerAccount?: string; ownerId?: number; resourceOwnerAccount?: string; resourceOwnerId?: number; /** * @remarks * The retention period of the snapshot. After you specify this parameter, the end time of the new retention period is the specified number of days apart from the **creation time** of the snapshot, which follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format and is displayed in UTC. Valid values: 1 to 65536. * * > You can extend the retention period of the snapshot and cannot shorten the retention period. * * @example * 10 */ retentionDays?: number; /** * @remarks * The ID of the snapshot. * * This parameter is required. * * @example * s-bp199lyny9bb47pa**** */ snapshotId?: string; /** * @remarks * The name of the snapshot. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-). * * The name cannot start with auto because snapshots whose names start with auto are recognized as automatic snapshots. * * @example * testSnapshotName */ snapshotName?: string; static names(): { [key: string]: string } { return { description: 'Description', disableInstantAccess: 'DisableInstantAccess', ownerAccount: 'OwnerAccount', ownerId: 'OwnerId', resourceOwnerAccount: 'ResourceOwnerAccount', resourceOwnerId: 'ResourceOwnerId', retentionDays: 'RetentionDays', snapshotId: 'SnapshotId', snapshotName: 'SnapshotName', }; } static types(): { [key: string]: any } { return { description: 'string', disableInstantAccess: 'boolean', ownerAccount: 'string', ownerId: 'number', resourceOwnerAccount: 'string', resourceOwnerId: 'number', retentionDays: 'number', snapshotId: 'string', snapshotName: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }