"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.CreateLaunchTemplateVersionRequest = exports.CreateLaunchTemplateVersionRequestTag = exports.CreateLaunchTemplateVersionRequestSecurityOptions = exports.CreateLaunchTemplateVersionRequestNetworkInterface = exports.CreateLaunchTemplateVersionRequestImageOptions = exports.CreateLaunchTemplateVersionRequestDataDisk = exports.CreateLaunchTemplateVersionRequestSystemDisk = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class CreateLaunchTemplateVersionRequestSystemDisk extends $dara.Model {
    static names() {
        return {
            autoSnapshotPolicyId: 'AutoSnapshotPolicyId',
            burstingEnabled: 'BurstingEnabled',
            category: 'Category',
            deleteWithInstance: 'DeleteWithInstance',
            description: 'Description',
            diskName: 'DiskName',
            encrypted: 'Encrypted',
            iops: 'Iops',
            KMSKeyId: 'KMSKeyId',
            performanceLevel: 'PerformanceLevel',
            provisionedIops: 'ProvisionedIops',
            size: 'Size',
        };
    }
    static types() {
        return {
            autoSnapshotPolicyId: 'string',
            burstingEnabled: 'boolean',
            category: 'string',
            deleteWithInstance: 'boolean',
            description: 'string',
            diskName: 'string',
            encrypted: 'string',
            iops: 'number',
            KMSKeyId: 'string',
            performanceLevel: 'string',
            provisionedIops: 'number',
            size: 'number',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateLaunchTemplateVersionRequestSystemDisk = CreateLaunchTemplateVersionRequestSystemDisk;
class CreateLaunchTemplateVersionRequestDataDisk extends $dara.Model {
    static names() {
        return {
            autoSnapshotPolicyId: 'AutoSnapshotPolicyId',
            burstingEnabled: 'BurstingEnabled',
            category: 'Category',
            deleteWithInstance: 'DeleteWithInstance',
            description: 'Description',
            device: 'Device',
            diskName: 'DiskName',
            encrypted: 'Encrypted',
            KMSKeyId: 'KMSKeyId',
            performanceLevel: 'PerformanceLevel',
            provisionedIops: 'ProvisionedIops',
            size: 'Size',
            snapshotId: 'SnapshotId',
        };
    }
    static types() {
        return {
            autoSnapshotPolicyId: 'string',
            burstingEnabled: 'boolean',
            category: 'string',
            deleteWithInstance: 'boolean',
            description: 'string',
            device: 'string',
            diskName: 'string',
            encrypted: 'string',
            KMSKeyId: 'string',
            performanceLevel: 'string',
            provisionedIops: 'number',
            size: 'number',
            snapshotId: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateLaunchTemplateVersionRequestDataDisk = CreateLaunchTemplateVersionRequestDataDisk;
class CreateLaunchTemplateVersionRequestImageOptions extends $dara.Model {
    static names() {
        return {
            loginAsNonRoot: 'LoginAsNonRoot',
        };
    }
    static types() {
        return {
            loginAsNonRoot: 'boolean',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateLaunchTemplateVersionRequestImageOptions = CreateLaunchTemplateVersionRequestImageOptions;
class CreateLaunchTemplateVersionRequestNetworkInterface extends $dara.Model {
    static names() {
        return {
            deleteOnRelease: 'DeleteOnRelease',
            description: 'Description',
            instanceType: 'InstanceType',
            networkInterfaceName: 'NetworkInterfaceName',
            networkInterfaceTrafficMode: 'NetworkInterfaceTrafficMode',
            primaryIpAddress: 'PrimaryIpAddress',
            securityGroupId: 'SecurityGroupId',
            securityGroupIds: 'SecurityGroupIds',
            vSwitchId: 'VSwitchId',
        };
    }
    static types() {
        return {
            deleteOnRelease: 'boolean',
            description: 'string',
            instanceType: 'string',
            networkInterfaceName: 'string',
            networkInterfaceTrafficMode: 'string',
            primaryIpAddress: 'string',
            securityGroupId: 'string',
            securityGroupIds: { 'type': 'array', 'itemType': 'string' },
            vSwitchId: 'string',
        };
    }
    validate() {
        if (Array.isArray(this.securityGroupIds)) {
            $dara.Model.validateArray(this.securityGroupIds);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateLaunchTemplateVersionRequestNetworkInterface = CreateLaunchTemplateVersionRequestNetworkInterface;
class CreateLaunchTemplateVersionRequestSecurityOptions extends $dara.Model {
    static names() {
        return {
            trustedSystemMode: 'TrustedSystemMode',
        };
    }
    static types() {
        return {
            trustedSystemMode: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateLaunchTemplateVersionRequestSecurityOptions = CreateLaunchTemplateVersionRequestSecurityOptions;
class CreateLaunchTemplateVersionRequestTag 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.CreateLaunchTemplateVersionRequestTag = CreateLaunchTemplateVersionRequestTag;
class CreateLaunchTemplateVersionRequest extends $dara.Model {
    static names() {
        return {
            systemDisk: 'SystemDisk',
            autoReleaseTime: 'AutoReleaseTime',
            autoRenew: 'AutoRenew',
            autoRenewPeriod: 'AutoRenewPeriod',
            creditSpecification: 'CreditSpecification',
            dataDisk: 'DataDisk',
            deletionProtection: 'DeletionProtection',
            deploymentSetId: 'DeploymentSetId',
            description: 'Description',
            enableVmOsConfig: 'EnableVmOsConfig',
            hostName: 'HostName',
            httpEndpoint: 'HttpEndpoint',
            httpPutResponseHopLimit: 'HttpPutResponseHopLimit',
            httpTokens: 'HttpTokens',
            imageId: 'ImageId',
            imageOptions: 'ImageOptions',
            imageOwnerAlias: 'ImageOwnerAlias',
            instanceChargeType: 'InstanceChargeType',
            instanceName: 'InstanceName',
            instanceType: 'InstanceType',
            internetChargeType: 'InternetChargeType',
            internetMaxBandwidthIn: 'InternetMaxBandwidthIn',
            internetMaxBandwidthOut: 'InternetMaxBandwidthOut',
            ioOptimized: 'IoOptimized',
            ipv6AddressCount: 'Ipv6AddressCount',
            keyPairName: 'KeyPairName',
            launchTemplateId: 'LaunchTemplateId',
            launchTemplateName: 'LaunchTemplateName',
            networkInterface: 'NetworkInterface',
            networkType: 'NetworkType',
            ownerAccount: 'OwnerAccount',
            ownerId: 'OwnerId',
            passwordInherit: 'PasswordInherit',
            period: 'Period',
            periodUnit: 'PeriodUnit',
            privateIpAddress: 'PrivateIpAddress',
            ramRoleName: 'RamRoleName',
            regionId: 'RegionId',
            resourceGroupId: 'ResourceGroupId',
            resourceOwnerAccount: 'ResourceOwnerAccount',
            resourceOwnerId: 'ResourceOwnerId',
            securityEnhancementStrategy: 'SecurityEnhancementStrategy',
            securityGroupId: 'SecurityGroupId',
            securityGroupIds: 'SecurityGroupIds',
            securityOptions: 'SecurityOptions',
            spotDuration: 'SpotDuration',
            spotPriceLimit: 'SpotPriceLimit',
            spotStrategy: 'SpotStrategy',
            tag: 'Tag',
            userData: 'UserData',
            vSwitchId: 'VSwitchId',
            versionDescription: 'VersionDescription',
            vpcId: 'VpcId',
            zoneId: 'ZoneId',
        };
    }
    static types() {
        return {
            systemDisk: CreateLaunchTemplateVersionRequestSystemDisk,
            autoReleaseTime: 'string',
            autoRenew: 'boolean',
            autoRenewPeriod: 'number',
            creditSpecification: 'string',
            dataDisk: { 'type': 'array', 'itemType': CreateLaunchTemplateVersionRequestDataDisk },
            deletionProtection: 'boolean',
            deploymentSetId: 'string',
            description: 'string',
            enableVmOsConfig: 'boolean',
            hostName: 'string',
            httpEndpoint: 'string',
            httpPutResponseHopLimit: 'number',
            httpTokens: 'string',
            imageId: 'string',
            imageOptions: CreateLaunchTemplateVersionRequestImageOptions,
            imageOwnerAlias: 'string',
            instanceChargeType: 'string',
            instanceName: 'string',
            instanceType: 'string',
            internetChargeType: 'string',
            internetMaxBandwidthIn: 'number',
            internetMaxBandwidthOut: 'number',
            ioOptimized: 'string',
            ipv6AddressCount: 'number',
            keyPairName: 'string',
            launchTemplateId: 'string',
            launchTemplateName: 'string',
            networkInterface: { 'type': 'array', 'itemType': CreateLaunchTemplateVersionRequestNetworkInterface },
            networkType: 'string',
            ownerAccount: 'string',
            ownerId: 'number',
            passwordInherit: 'boolean',
            period: 'number',
            periodUnit: 'string',
            privateIpAddress: 'string',
            ramRoleName: 'string',
            regionId: 'string',
            resourceGroupId: 'string',
            resourceOwnerAccount: 'string',
            resourceOwnerId: 'number',
            securityEnhancementStrategy: 'string',
            securityGroupId: 'string',
            securityGroupIds: { 'type': 'array', 'itemType': 'string' },
            securityOptions: CreateLaunchTemplateVersionRequestSecurityOptions,
            spotDuration: 'number',
            spotPriceLimit: 'number',
            spotStrategy: 'string',
            tag: { 'type': 'array', 'itemType': CreateLaunchTemplateVersionRequestTag },
            userData: 'string',
            vSwitchId: 'string',
            versionDescription: 'string',
            vpcId: 'string',
            zoneId: 'string',
        };
    }
    validate() {
        if (this.systemDisk && typeof this.systemDisk.validate === 'function') {
            this.systemDisk.validate();
        }
        if (Array.isArray(this.dataDisk)) {
            $dara.Model.validateArray(this.dataDisk);
        }
        if (this.imageOptions && typeof this.imageOptions.validate === 'function') {
            this.imageOptions.validate();
        }
        if (Array.isArray(this.networkInterface)) {
            $dara.Model.validateArray(this.networkInterface);
        }
        if (Array.isArray(this.securityGroupIds)) {
            $dara.Model.validateArray(this.securityGroupIds);
        }
        if (this.securityOptions && typeof this.securityOptions.validate === 'function') {
            this.securityOptions.validate();
        }
        if (Array.isArray(this.tag)) {
            $dara.Model.validateArray(this.tag);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.CreateLaunchTemplateVersionRequest = CreateLaunchTemplateVersionRequest;
//# sourceMappingURL=CreateLaunchTemplateVersionRequest.js.map