"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.DescribeDisksResponseBody = exports.DescribeDisksResponseBodyDisks = exports.DescribeDisksResponseBodyDisksDisk = exports.DescribeDisksResponseBodyDisksDiskTags = exports.DescribeDisksResponseBodyDisksDiskTagsTag = exports.DescribeDisksResponseBodyDisksDiskPlacement = exports.DescribeDisksResponseBodyDisksDiskOperationLocks = exports.DescribeDisksResponseBodyDisksDiskOperationLocksOperationLock = exports.DescribeDisksResponseBodyDisksDiskMountInstances = exports.DescribeDisksResponseBodyDisksDiskMountInstancesMountInstance = exports.DescribeDisksResponseBodyDisksDiskAttachments = exports.DescribeDisksResponseBodyDisksDiskAttachmentsAttachment = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class DescribeDisksResponseBodyDisksDiskAttachmentsAttachment extends $dara.Model {
    static names() {
        return {
            attachedTime: 'AttachedTime',
            device: 'Device',
            instanceId: 'InstanceId',
        };
    }
    static types() {
        return {
            attachedTime: 'string',
            device: 'string',
            instanceId: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeDisksResponseBodyDisksDiskAttachmentsAttachment = DescribeDisksResponseBodyDisksDiskAttachmentsAttachment;
class DescribeDisksResponseBodyDisksDiskAttachments extends $dara.Model {
    static names() {
        return {
            attachment: 'Attachment',
        };
    }
    static types() {
        return {
            attachment: { 'type': 'array', 'itemType': DescribeDisksResponseBodyDisksDiskAttachmentsAttachment },
        };
    }
    validate() {
        if (Array.isArray(this.attachment)) {
            $dara.Model.validateArray(this.attachment);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeDisksResponseBodyDisksDiskAttachments = DescribeDisksResponseBodyDisksDiskAttachments;
class DescribeDisksResponseBodyDisksDiskMountInstancesMountInstance extends $dara.Model {
    static names() {
        return {
            attachedTime: 'AttachedTime',
            device: 'Device',
            instanceId: 'InstanceId',
        };
    }
    static types() {
        return {
            attachedTime: 'string',
            device: 'string',
            instanceId: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeDisksResponseBodyDisksDiskMountInstancesMountInstance = DescribeDisksResponseBodyDisksDiskMountInstancesMountInstance;
class DescribeDisksResponseBodyDisksDiskMountInstances extends $dara.Model {
    static names() {
        return {
            mountInstance: 'MountInstance',
        };
    }
    static types() {
        return {
            mountInstance: { 'type': 'array', 'itemType': DescribeDisksResponseBodyDisksDiskMountInstancesMountInstance },
        };
    }
    validate() {
        if (Array.isArray(this.mountInstance)) {
            $dara.Model.validateArray(this.mountInstance);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeDisksResponseBodyDisksDiskMountInstances = DescribeDisksResponseBodyDisksDiskMountInstances;
class DescribeDisksResponseBodyDisksDiskOperationLocksOperationLock extends $dara.Model {
    static names() {
        return {
            lockReason: 'LockReason',
        };
    }
    static types() {
        return {
            lockReason: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeDisksResponseBodyDisksDiskOperationLocksOperationLock = DescribeDisksResponseBodyDisksDiskOperationLocksOperationLock;
class DescribeDisksResponseBodyDisksDiskOperationLocks extends $dara.Model {
    static names() {
        return {
            operationLock: 'OperationLock',
        };
    }
    static types() {
        return {
            operationLock: { 'type': 'array', 'itemType': DescribeDisksResponseBodyDisksDiskOperationLocksOperationLock },
        };
    }
    validate() {
        if (Array.isArray(this.operationLock)) {
            $dara.Model.validateArray(this.operationLock);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeDisksResponseBodyDisksDiskOperationLocks = DescribeDisksResponseBodyDisksDiskOperationLocks;
class DescribeDisksResponseBodyDisksDiskPlacement extends $dara.Model {
    static names() {
        return {
            zoneIds: 'ZoneIds',
        };
    }
    static types() {
        return {
            zoneIds: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeDisksResponseBodyDisksDiskPlacement = DescribeDisksResponseBodyDisksDiskPlacement;
class DescribeDisksResponseBodyDisksDiskTagsTag extends $dara.Model {
    static names() {
        return {
            tagKey: 'TagKey',
            tagValue: 'TagValue',
        };
    }
    static types() {
        return {
            tagKey: 'string',
            tagValue: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeDisksResponseBodyDisksDiskTagsTag = DescribeDisksResponseBodyDisksDiskTagsTag;
class DescribeDisksResponseBodyDisksDiskTags extends $dara.Model {
    static names() {
        return {
            tag: 'Tag',
        };
    }
    static types() {
        return {
            tag: { 'type': 'array', 'itemType': DescribeDisksResponseBodyDisksDiskTagsTag },
        };
    }
    validate() {
        if (Array.isArray(this.tag)) {
            $dara.Model.validateArray(this.tag);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeDisksResponseBodyDisksDiskTags = DescribeDisksResponseBodyDisksDiskTags;
class DescribeDisksResponseBodyDisksDisk extends $dara.Model {
    static names() {
        return {
            attachedTime: 'AttachedTime',
            attachments: 'Attachments',
            autoSnapshotPolicyId: 'AutoSnapshotPolicyId',
            bdfId: 'BdfId',
            burstingEnabled: 'BurstingEnabled',
            category: 'Category',
            creationTime: 'CreationTime',
            deleteAutoSnapshot: 'DeleteAutoSnapshot',
            deleteWithInstance: 'DeleteWithInstance',
            description: 'Description',
            detachedTime: 'DetachedTime',
            device: 'Device',
            diskChargeType: 'DiskChargeType',
            diskId: 'DiskId',
            diskName: 'DiskName',
            enableAutoSnapshot: 'EnableAutoSnapshot',
            enableAutomatedSnapshotPolicy: 'EnableAutomatedSnapshotPolicy',
            encrypted: 'Encrypted',
            expiredTime: 'ExpiredTime',
            IOPS: 'IOPS',
            IOPSRead: 'IOPSRead',
            IOPSWrite: 'IOPSWrite',
            imageId: 'ImageId',
            instanceId: 'InstanceId',
            KMSKeyId: 'KMSKeyId',
            mountInstanceNum: 'MountInstanceNum',
            mountInstances: 'MountInstances',
            multiAttach: 'MultiAttach',
            operationLocks: 'OperationLocks',
            performanceLevel: 'PerformanceLevel',
            placement: 'Placement',
            portable: 'Portable',
            productCode: 'ProductCode',
            provisionedIops: 'ProvisionedIops',
            regionId: 'RegionId',
            resourceGroupId: 'ResourceGroupId',
            serialNumber: 'SerialNumber',
            size: 'Size',
            sourceDiskId: 'SourceDiskId',
            sourceSnapshotId: 'SourceSnapshotId',
            status: 'Status',
            storageClusterId: 'StorageClusterId',
            storageSetId: 'StorageSetId',
            storageSetPartitionNumber: 'StorageSetPartitionNumber',
            tags: 'Tags',
            throughput: 'Throughput',
            throughputRead: 'ThroughputRead',
            throughputWrite: 'ThroughputWrite',
            type: 'Type',
            zoneId: 'ZoneId',
        };
    }
    static types() {
        return {
            attachedTime: 'string',
            attachments: DescribeDisksResponseBodyDisksDiskAttachments,
            autoSnapshotPolicyId: 'string',
            bdfId: 'string',
            burstingEnabled: 'boolean',
            category: 'string',
            creationTime: 'string',
            deleteAutoSnapshot: 'boolean',
            deleteWithInstance: 'boolean',
            description: 'string',
            detachedTime: 'string',
            device: 'string',
            diskChargeType: 'string',
            diskId: 'string',
            diskName: 'string',
            enableAutoSnapshot: 'boolean',
            enableAutomatedSnapshotPolicy: 'boolean',
            encrypted: 'boolean',
            expiredTime: 'string',
            IOPS: 'number',
            IOPSRead: 'number',
            IOPSWrite: 'number',
            imageId: 'string',
            instanceId: 'string',
            KMSKeyId: 'string',
            mountInstanceNum: 'number',
            mountInstances: DescribeDisksResponseBodyDisksDiskMountInstances,
            multiAttach: 'string',
            operationLocks: DescribeDisksResponseBodyDisksDiskOperationLocks,
            performanceLevel: 'string',
            placement: DescribeDisksResponseBodyDisksDiskPlacement,
            portable: 'boolean',
            productCode: 'string',
            provisionedIops: 'number',
            regionId: 'string',
            resourceGroupId: 'string',
            serialNumber: 'string',
            size: 'number',
            sourceDiskId: 'string',
            sourceSnapshotId: 'string',
            status: 'string',
            storageClusterId: 'string',
            storageSetId: 'string',
            storageSetPartitionNumber: 'number',
            tags: DescribeDisksResponseBodyDisksDiskTags,
            throughput: 'number',
            throughputRead: 'number',
            throughputWrite: 'number',
            type: 'string',
            zoneId: 'string',
        };
    }
    validate() {
        if (this.attachments && typeof this.attachments.validate === 'function') {
            this.attachments.validate();
        }
        if (this.mountInstances && typeof this.mountInstances.validate === 'function') {
            this.mountInstances.validate();
        }
        if (this.operationLocks && typeof this.operationLocks.validate === 'function') {
            this.operationLocks.validate();
        }
        if (this.placement && typeof this.placement.validate === 'function') {
            this.placement.validate();
        }
        if (this.tags && typeof this.tags.validate === 'function') {
            this.tags.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeDisksResponseBodyDisksDisk = DescribeDisksResponseBodyDisksDisk;
class DescribeDisksResponseBodyDisks extends $dara.Model {
    static names() {
        return {
            disk: 'Disk',
        };
    }
    static types() {
        return {
            disk: { 'type': 'array', 'itemType': DescribeDisksResponseBodyDisksDisk },
        };
    }
    validate() {
        if (Array.isArray(this.disk)) {
            $dara.Model.validateArray(this.disk);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeDisksResponseBodyDisks = DescribeDisksResponseBodyDisks;
class DescribeDisksResponseBody extends $dara.Model {
    static names() {
        return {
            disks: 'Disks',
            nextToken: 'NextToken',
            pageNumber: 'PageNumber',
            pageSize: 'PageSize',
            requestId: 'RequestId',
            totalCount: 'TotalCount',
        };
    }
    static types() {
        return {
            disks: DescribeDisksResponseBodyDisks,
            nextToken: 'string',
            pageNumber: 'number',
            pageSize: 'number',
            requestId: 'string',
            totalCount: 'number',
        };
    }
    validate() {
        if (this.disks && typeof this.disks.validate === 'function') {
            this.disks.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeDisksResponseBody = DescribeDisksResponseBody;
//# sourceMappingURL=DescribeDisksResponseBody.js.map