"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.DescribeImageFromFamilyResponseBody = exports.DescribeImageFromFamilyResponseBodyImage = exports.DescribeImageFromFamilyResponseBodyImageTags = exports.DescribeImageFromFamilyResponseBodyImageTagsTag = exports.DescribeImageFromFamilyResponseBodyImageDiskDeviceMappings = exports.DescribeImageFromFamilyResponseBodyImageDiskDeviceMappingsDiskDeviceMapping = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class DescribeImageFromFamilyResponseBodyImageDiskDeviceMappingsDiskDeviceMapping extends $dara.Model {
    static names() {
        return {
            device: 'Device',
            format: 'Format',
            importOSSBucket: 'ImportOSSBucket',
            importOSSObject: 'ImportOSSObject',
            size: 'Size',
            snapshotId: 'SnapshotId',
            type: 'Type',
        };
    }
    static types() {
        return {
            device: 'string',
            format: 'string',
            importOSSBucket: 'string',
            importOSSObject: 'string',
            size: 'string',
            snapshotId: 'string',
            type: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeImageFromFamilyResponseBodyImageDiskDeviceMappingsDiskDeviceMapping = DescribeImageFromFamilyResponseBodyImageDiskDeviceMappingsDiskDeviceMapping;
class DescribeImageFromFamilyResponseBodyImageDiskDeviceMappings extends $dara.Model {
    static names() {
        return {
            diskDeviceMapping: 'DiskDeviceMapping',
        };
    }
    static types() {
        return {
            diskDeviceMapping: { 'type': 'array', 'itemType': DescribeImageFromFamilyResponseBodyImageDiskDeviceMappingsDiskDeviceMapping },
        };
    }
    validate() {
        if (Array.isArray(this.diskDeviceMapping)) {
            $dara.Model.validateArray(this.diskDeviceMapping);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeImageFromFamilyResponseBodyImageDiskDeviceMappings = DescribeImageFromFamilyResponseBodyImageDiskDeviceMappings;
class DescribeImageFromFamilyResponseBodyImageTagsTag 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.DescribeImageFromFamilyResponseBodyImageTagsTag = DescribeImageFromFamilyResponseBodyImageTagsTag;
class DescribeImageFromFamilyResponseBodyImageTags extends $dara.Model {
    static names() {
        return {
            tag: 'Tag',
        };
    }
    static types() {
        return {
            tag: { 'type': 'array', 'itemType': DescribeImageFromFamilyResponseBodyImageTagsTag },
        };
    }
    validate() {
        if (Array.isArray(this.tag)) {
            $dara.Model.validateArray(this.tag);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeImageFromFamilyResponseBodyImageTags = DescribeImageFromFamilyResponseBodyImageTags;
class DescribeImageFromFamilyResponseBodyImage extends $dara.Model {
    static names() {
        return {
            architecture: 'Architecture',
            creationTime: 'CreationTime',
            description: 'Description',
            diskDeviceMappings: 'DiskDeviceMappings',
            imageFamily: 'ImageFamily',
            imageId: 'ImageId',
            imageName: 'ImageName',
            imageOwnerAlias: 'ImageOwnerAlias',
            imageVersion: 'ImageVersion',
            isCopied: 'IsCopied',
            isSelfShared: 'IsSelfShared',
            isSubscribed: 'IsSubscribed',
            isSupportCloudinit: 'IsSupportCloudinit',
            isSupportIoOptimized: 'IsSupportIoOptimized',
            OSName: 'OSName',
            OSType: 'OSType',
            platform: 'Platform',
            productCode: 'ProductCode',
            progress: 'Progress',
            size: 'Size',
            status: 'Status',
            tags: 'Tags',
            usage: 'Usage',
        };
    }
    static types() {
        return {
            architecture: 'string',
            creationTime: 'string',
            description: 'string',
            diskDeviceMappings: DescribeImageFromFamilyResponseBodyImageDiskDeviceMappings,
            imageFamily: 'string',
            imageId: 'string',
            imageName: 'string',
            imageOwnerAlias: 'string',
            imageVersion: 'string',
            isCopied: 'boolean',
            isSelfShared: 'string',
            isSubscribed: 'boolean',
            isSupportCloudinit: 'boolean',
            isSupportIoOptimized: 'boolean',
            OSName: 'string',
            OSType: 'string',
            platform: 'string',
            productCode: 'string',
            progress: 'string',
            size: 'number',
            status: 'string',
            tags: DescribeImageFromFamilyResponseBodyImageTags,
            usage: 'string',
        };
    }
    validate() {
        if (this.diskDeviceMappings && typeof this.diskDeviceMappings.validate === 'function') {
            this.diskDeviceMappings.validate();
        }
        if (this.tags && typeof this.tags.validate === 'function') {
            this.tags.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeImageFromFamilyResponseBodyImage = DescribeImageFromFamilyResponseBodyImage;
class DescribeImageFromFamilyResponseBody extends $dara.Model {
    static names() {
        return {
            image: 'Image',
            requestId: 'RequestId',
        };
    }
    static types() {
        return {
            image: DescribeImageFromFamilyResponseBodyImage,
            requestId: 'string',
        };
    }
    validate() {
        if (this.image && typeof this.image.validate === 'function') {
            this.image.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeImageFromFamilyResponseBody = DescribeImageFromFamilyResponseBody;
//# sourceMappingURL=DescribeImageFromFamilyResponseBody.js.map