"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.CreateImagePipelineRequest = exports.CreateImagePipelineRequestTag = exports.CreateImagePipelineRequestImportImageOptions = exports.CreateImagePipelineRequestImportImageOptionsImportImageTags = exports.CreateImagePipelineRequestImportImageOptionsFeatures = exports.CreateImagePipelineRequestImportImageOptionsDiskDeviceMappings = exports.CreateImagePipelineRequestImageOptions = exports.CreateImagePipelineRequestImageOptionsImageTags = exports.CreateImagePipelineRequestImageOptionsImageFeatures = exports.CreateImagePipelineRequestAdvancedOptions = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class CreateImagePipelineRequestAdvancedOptions extends $dara.Model {
    static names() {
        return {
            imageNameSuffix: 'ImageNameSuffix',
            retainCloudAssistant: 'RetainCloudAssistant',
        };
    }
    static types() {
        return {
            imageNameSuffix: 'string',
            retainCloudAssistant: 'boolean',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateImagePipelineRequestAdvancedOptions = CreateImagePipelineRequestAdvancedOptions;
class CreateImagePipelineRequestImageOptionsImageFeatures extends $dara.Model {
    static names() {
        return {
            nvmeSupport: 'NvmeSupport',
        };
    }
    static types() {
        return {
            nvmeSupport: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateImagePipelineRequestImageOptionsImageFeatures = CreateImagePipelineRequestImageOptionsImageFeatures;
class CreateImagePipelineRequestImageOptionsImageTags extends $dara.Model {
    static names() {
        return {
            key: 'Key',
            value: 'Value',
        };
    }
    static types() {
        return {
            key: 'string',
            value: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateImagePipelineRequestImageOptionsImageTags = CreateImagePipelineRequestImageOptionsImageTags;
class CreateImagePipelineRequestImageOptions extends $dara.Model {
    static names() {
        return {
            description: 'Description',
            imageFamily: 'ImageFamily',
            imageFeatures: 'ImageFeatures',
            imageName: 'ImageName',
            imageTags: 'ImageTags',
        };
    }
    static types() {
        return {
            description: 'string',
            imageFamily: 'string',
            imageFeatures: CreateImagePipelineRequestImageOptionsImageFeatures,
            imageName: 'string',
            imageTags: { 'type': 'array', 'itemType': CreateImagePipelineRequestImageOptionsImageTags },
        };
    }
    validate() {
        if (this.imageFeatures && typeof this.imageFeatures.validate === 'function') {
            this.imageFeatures.validate();
        }
        if (Array.isArray(this.imageTags)) {
            $dara.Model.validateArray(this.imageTags);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateImagePipelineRequestImageOptions = CreateImagePipelineRequestImageOptions;
class CreateImagePipelineRequestImportImageOptionsDiskDeviceMappings extends $dara.Model {
    static names() {
        return {
            diskImageSize: 'DiskImageSize',
            format: 'Format',
            OSSBucket: 'OSSBucket',
            OSSObject: 'OSSObject',
        };
    }
    static types() {
        return {
            diskImageSize: 'number',
            format: 'string',
            OSSBucket: 'string',
            OSSObject: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateImagePipelineRequestImportImageOptionsDiskDeviceMappings = CreateImagePipelineRequestImportImageOptionsDiskDeviceMappings;
class CreateImagePipelineRequestImportImageOptionsFeatures extends $dara.Model {
    static names() {
        return {
            imdsSupport: 'ImdsSupport',
            nvmeSupport: 'NvmeSupport',
        };
    }
    static types() {
        return {
            imdsSupport: 'string',
            nvmeSupport: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateImagePipelineRequestImportImageOptionsFeatures = CreateImagePipelineRequestImportImageOptionsFeatures;
class CreateImagePipelineRequestImportImageOptionsImportImageTags extends $dara.Model {
    static names() {
        return {
            key: 'Key',
            value: 'Value',
        };
    }
    static types() {
        return {
            key: 'string',
            value: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateImagePipelineRequestImportImageOptionsImportImageTags = CreateImagePipelineRequestImportImageOptionsImportImageTags;
class CreateImagePipelineRequestImportImageOptions extends $dara.Model {
    static names() {
        return {
            architecture: 'Architecture',
            bootMode: 'BootMode',
            description: 'Description',
            diskDeviceMappings: 'DiskDeviceMappings',
            features: 'Features',
            imageName: 'ImageName',
            importImageTags: 'ImportImageTags',
            licenseType: 'LicenseType',
            OSType: 'OSType',
            platform: 'Platform',
            retainImportedImage: 'RetainImportedImage',
            retentionStrategy: 'RetentionStrategy',
            roleName: 'RoleName',
        };
    }
    static types() {
        return {
            architecture: 'string',
            bootMode: 'string',
            description: 'string',
            diskDeviceMappings: { 'type': 'array', 'itemType': CreateImagePipelineRequestImportImageOptionsDiskDeviceMappings },
            features: CreateImagePipelineRequestImportImageOptionsFeatures,
            imageName: 'string',
            importImageTags: { 'type': 'array', 'itemType': CreateImagePipelineRequestImportImageOptionsImportImageTags },
            licenseType: 'string',
            OSType: 'string',
            platform: 'string',
            retainImportedImage: 'boolean',
            retentionStrategy: 'string',
            roleName: 'string',
        };
    }
    validate() {
        if (Array.isArray(this.diskDeviceMappings)) {
            $dara.Model.validateArray(this.diskDeviceMappings);
        }
        if (this.features && typeof this.features.validate === 'function') {
            this.features.validate();
        }
        if (Array.isArray(this.importImageTags)) {
            $dara.Model.validateArray(this.importImageTags);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateImagePipelineRequestImportImageOptions = CreateImagePipelineRequestImportImageOptions;
class CreateImagePipelineRequestTag extends $dara.Model {
    static names() {
        return {
            key: 'Key',
            value: 'Value',
        };
    }
    static types() {
        return {
            key: 'string',
            value: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateImagePipelineRequestTag = CreateImagePipelineRequestTag;
class CreateImagePipelineRequest extends $dara.Model {
    static names() {
        return {
            addAccount: 'AddAccount',
            advancedOptions: 'AdvancedOptions',
            baseImage: 'BaseImage',
            baseImageType: 'BaseImageType',
            buildContent: 'BuildContent',
            clientToken: 'ClientToken',
            deleteInstanceOnFailure: 'DeleteInstanceOnFailure',
            description: 'Description',
            imageFamily: 'ImageFamily',
            imageName: 'ImageName',
            imageOptions: 'ImageOptions',
            importImageOptions: 'ImportImageOptions',
            instanceType: 'InstanceType',
            internetMaxBandwidthOut: 'InternetMaxBandwidthOut',
            name: 'Name',
            nvmeSupport: 'NvmeSupport',
            ownerAccount: 'OwnerAccount',
            ownerId: 'OwnerId',
            regionId: 'RegionId',
            repairMode: 'RepairMode',
            resourceGroupId: 'ResourceGroupId',
            resourceOwnerAccount: 'ResourceOwnerAccount',
            resourceOwnerId: 'ResourceOwnerId',
            systemDiskSize: 'SystemDiskSize',
            tag: 'Tag',
            testContent: 'TestContent',
            toRegionId: 'ToRegionId',
            vSwitchId: 'VSwitchId',
        };
    }
    static types() {
        return {
            addAccount: { 'type': 'array', 'itemType': 'number' },
            advancedOptions: CreateImagePipelineRequestAdvancedOptions,
            baseImage: 'string',
            baseImageType: 'string',
            buildContent: 'string',
            clientToken: 'string',
            deleteInstanceOnFailure: 'boolean',
            description: 'string',
            imageFamily: 'string',
            imageName: 'string',
            imageOptions: CreateImagePipelineRequestImageOptions,
            importImageOptions: CreateImagePipelineRequestImportImageOptions,
            instanceType: 'string',
            internetMaxBandwidthOut: 'number',
            name: 'string',
            nvmeSupport: 'string',
            ownerAccount: 'string',
            ownerId: 'number',
            regionId: 'string',
            repairMode: 'string',
            resourceGroupId: 'string',
            resourceOwnerAccount: 'string',
            resourceOwnerId: 'number',
            systemDiskSize: 'number',
            tag: { 'type': 'array', 'itemType': CreateImagePipelineRequestTag },
            testContent: 'string',
            toRegionId: { 'type': 'array', 'itemType': 'string' },
            vSwitchId: 'string',
        };
    }
    validate() {
        if (Array.isArray(this.addAccount)) {
            $dara.Model.validateArray(this.addAccount);
        }
        if (this.advancedOptions && typeof this.advancedOptions.validate === 'function') {
            this.advancedOptions.validate();
        }
        if (this.imageOptions && typeof this.imageOptions.validate === 'function') {
            this.imageOptions.validate();
        }
        if (this.importImageOptions && typeof this.importImageOptions.validate === 'function') {
            this.importImageOptions.validate();
        }
        if (Array.isArray(this.tag)) {
            $dara.Model.validateArray(this.tag);
        }
        if (Array.isArray(this.toRegionId)) {
            $dara.Model.validateArray(this.toRegionId);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateImagePipelineRequest = CreateImagePipelineRequest;
//# sourceMappingURL=CreateImagePipelineRequest.js.map