"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.RunInstancesRequest = exports.RunInstancesRequestTag = exports.RunInstancesRequestPrivateDnsNameOptions = exports.RunInstancesRequestNetworkOptions = exports.RunInstancesRequestNetworkInterface = exports.RunInstancesRequestImageOptions = exports.RunInstancesRequestDataDisk = exports.RunInstancesRequestClockOptions = exports.RunInstancesRequestArn = exports.RunInstancesRequestSystemDisk = exports.RunInstancesRequestSecurityOptions = exports.RunInstancesRequestSchedulerOptions = exports.RunInstancesRequestPrivatePoolOptions = exports.RunInstancesRequestHibernationOptions = exports.RunInstancesRequestCpuOptions = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class RunInstancesRequestCpuOptions extends $dara.Model {
    static names() {
        return {
            core: 'Core',
            numa: 'Numa',
            threadsPerCore: 'ThreadsPerCore',
            topologyType: 'TopologyType',
        };
    }
    static types() {
        return {
            core: 'number',
            numa: 'string',
            threadsPerCore: 'number',
            topologyType: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.RunInstancesRequestCpuOptions = RunInstancesRequestCpuOptions;
class RunInstancesRequestHibernationOptions extends $dara.Model {
    static names() {
        return {
            configured: 'Configured',
        };
    }
    static types() {
        return {
            configured: 'boolean',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.RunInstancesRequestHibernationOptions = RunInstancesRequestHibernationOptions;
class RunInstancesRequestPrivatePoolOptions extends $dara.Model {
    static names() {
        return {
            id: 'Id',
            matchCriteria: 'MatchCriteria',
        };
    }
    static types() {
        return {
            id: 'string',
            matchCriteria: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.RunInstancesRequestPrivatePoolOptions = RunInstancesRequestPrivatePoolOptions;
class RunInstancesRequestSchedulerOptions extends $dara.Model {
    static names() {
        return {
            dedicatedHostClusterId: 'DedicatedHostClusterId',
        };
    }
    static types() {
        return {
            dedicatedHostClusterId: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.RunInstancesRequestSchedulerOptions = RunInstancesRequestSchedulerOptions;
class RunInstancesRequestSecurityOptions extends $dara.Model {
    static names() {
        return {
            confidentialComputingMode: 'ConfidentialComputingMode',
            trustedSystemMode: 'TrustedSystemMode',
        };
    }
    static types() {
        return {
            confidentialComputingMode: 'string',
            trustedSystemMode: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.RunInstancesRequestSecurityOptions = RunInstancesRequestSecurityOptions;
class RunInstancesRequestSystemDisk extends $dara.Model {
    static names() {
        return {
            autoSnapshotPolicyId: 'AutoSnapshotPolicyId',
            category: 'Category',
            description: 'Description',
            diskName: 'DiskName',
            performanceLevel: 'PerformanceLevel',
            size: 'Size',
            burstingEnabled: 'BurstingEnabled',
            encryptAlgorithm: 'EncryptAlgorithm',
            encrypted: 'Encrypted',
            KMSKeyId: 'KMSKeyId',
            provisionedIops: 'ProvisionedIops',
            storageClusterId: 'StorageClusterId',
        };
    }
    static types() {
        return {
            autoSnapshotPolicyId: 'string',
            category: 'string',
            description: 'string',
            diskName: 'string',
            performanceLevel: 'string',
            size: 'string',
            burstingEnabled: 'boolean',
            encryptAlgorithm: 'string',
            encrypted: 'string',
            KMSKeyId: 'string',
            provisionedIops: 'number',
            storageClusterId: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.RunInstancesRequestSystemDisk = RunInstancesRequestSystemDisk;
class RunInstancesRequestArn extends $dara.Model {
    static names() {
        return {
            assumeRoleFor: 'AssumeRoleFor',
            roleType: 'RoleType',
            rolearn: 'Rolearn',
        };
    }
    static types() {
        return {
            assumeRoleFor: 'number',
            roleType: 'string',
            rolearn: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.RunInstancesRequestArn = RunInstancesRequestArn;
class RunInstancesRequestClockOptions extends $dara.Model {
    static names() {
        return {
            ptpStatus: 'PtpStatus',
        };
    }
    static types() {
        return {
            ptpStatus: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.RunInstancesRequestClockOptions = RunInstancesRequestClockOptions;
class RunInstancesRequestDataDisk extends $dara.Model {
    static names() {
        return {
            autoSnapshotPolicyId: 'AutoSnapshotPolicyId',
            burstingEnabled: 'BurstingEnabled',
            category: 'Category',
            deleteWithInstance: 'DeleteWithInstance',
            description: 'Description',
            device: 'Device',
            diskName: 'DiskName',
            encryptAlgorithm: 'EncryptAlgorithm',
            encrypted: 'Encrypted',
            KMSKeyId: 'KMSKeyId',
            performanceLevel: 'PerformanceLevel',
            provisionedIops: 'ProvisionedIops',
            size: 'Size',
            snapshotId: 'SnapshotId',
            storageClusterId: 'StorageClusterId',
        };
    }
    static types() {
        return {
            autoSnapshotPolicyId: 'string',
            burstingEnabled: 'boolean',
            category: 'string',
            deleteWithInstance: 'boolean',
            description: 'string',
            device: 'string',
            diskName: 'string',
            encryptAlgorithm: 'string',
            encrypted: 'string',
            KMSKeyId: 'string',
            performanceLevel: 'string',
            provisionedIops: 'number',
            size: 'number',
            snapshotId: 'string',
            storageClusterId: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.RunInstancesRequestDataDisk = RunInstancesRequestDataDisk;
class RunInstancesRequestImageOptions extends $dara.Model {
    static names() {
        return {
            loginAsNonRoot: 'LoginAsNonRoot',
        };
    }
    static types() {
        return {
            loginAsNonRoot: 'boolean',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.RunInstancesRequestImageOptions = RunInstancesRequestImageOptions;
class RunInstancesRequestNetworkInterface extends $dara.Model {
    static names() {
        return {
            deleteOnRelease: 'DeleteOnRelease',
            description: 'Description',
            instanceType: 'InstanceType',
            ipv6Address: 'Ipv6Address',
            ipv6AddressCount: 'Ipv6AddressCount',
            networkCardIndex: 'NetworkCardIndex',
            networkInterfaceId: 'NetworkInterfaceId',
            networkInterfaceName: 'NetworkInterfaceName',
            networkInterfaceTrafficMode: 'NetworkInterfaceTrafficMode',
            primaryIpAddress: 'PrimaryIpAddress',
            queueNumber: 'QueueNumber',
            queuePairNumber: 'QueuePairNumber',
            rxQueueSize: 'RxQueueSize',
            secondaryPrivateIpAddressCount: 'SecondaryPrivateIpAddressCount',
            securityGroupId: 'SecurityGroupId',
            securityGroupIds: 'SecurityGroupIds',
            sourceDestCheck: 'SourceDestCheck',
            txQueueSize: 'TxQueueSize',
            vSwitchId: 'VSwitchId',
        };
    }
    static types() {
        return {
            deleteOnRelease: 'boolean',
            description: 'string',
            instanceType: 'string',
            ipv6Address: { 'type': 'array', 'itemType': 'string' },
            ipv6AddressCount: 'number',
            networkCardIndex: 'number',
            networkInterfaceId: 'string',
            networkInterfaceName: 'string',
            networkInterfaceTrafficMode: 'string',
            primaryIpAddress: 'string',
            queueNumber: 'number',
            queuePairNumber: 'number',
            rxQueueSize: 'number',
            secondaryPrivateIpAddressCount: 'number',
            securityGroupId: 'string',
            securityGroupIds: { 'type': 'array', 'itemType': 'string' },
            sourceDestCheck: 'boolean',
            txQueueSize: 'number',
            vSwitchId: 'string',
        };
    }
    validate() {
        if (Array.isArray(this.ipv6Address)) {
            $dara.Model.validateArray(this.ipv6Address);
        }
        if (Array.isArray(this.securityGroupIds)) {
            $dara.Model.validateArray(this.securityGroupIds);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.RunInstancesRequestNetworkInterface = RunInstancesRequestNetworkInterface;
class RunInstancesRequestNetworkOptions extends $dara.Model {
    static names() {
        return {
            bandwidthWeighting: 'BandwidthWeighting',
            enableJumboFrame: 'EnableJumboFrame',
            enableNetworkEncryption: 'EnableNetworkEncryption',
        };
    }
    static types() {
        return {
            bandwidthWeighting: 'string',
            enableJumboFrame: 'boolean',
            enableNetworkEncryption: 'boolean',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.RunInstancesRequestNetworkOptions = RunInstancesRequestNetworkOptions;
class RunInstancesRequestPrivateDnsNameOptions extends $dara.Model {
    static names() {
        return {
            enableInstanceIdDnsAAAARecord: 'EnableInstanceIdDnsAAAARecord',
            enableInstanceIdDnsARecord: 'EnableInstanceIdDnsARecord',
            enableIpDnsARecord: 'EnableIpDnsARecord',
            enableIpDnsPtrRecord: 'EnableIpDnsPtrRecord',
            hostnameType: 'HostnameType',
        };
    }
    static types() {
        return {
            enableInstanceIdDnsAAAARecord: 'boolean',
            enableInstanceIdDnsARecord: 'boolean',
            enableIpDnsARecord: 'boolean',
            enableIpDnsPtrRecord: 'boolean',
            hostnameType: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.RunInstancesRequestPrivateDnsNameOptions = RunInstancesRequestPrivateDnsNameOptions;
class RunInstancesRequestTag 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.RunInstancesRequestTag = RunInstancesRequestTag;
class RunInstancesRequest extends $dara.Model {
    static names() {
        return {
            cpuOptions: 'CpuOptions',
            hibernationOptions: 'HibernationOptions',
            privatePoolOptions: 'PrivatePoolOptions',
            schedulerOptions: 'SchedulerOptions',
            securityOptions: 'SecurityOptions',
            systemDisk: 'SystemDisk',
            affinity: 'Affinity',
            amount: 'Amount',
            arn: 'Arn',
            autoPay: 'AutoPay',
            autoReleaseTime: 'AutoReleaseTime',
            autoRenew: 'AutoRenew',
            autoRenewPeriod: 'AutoRenewPeriod',
            clientToken: 'ClientToken',
            clockOptions: 'ClockOptions',
            creditSpecification: 'CreditSpecification',
            dataDisk: 'DataDisk',
            dedicatedHostId: 'DedicatedHostId',
            deletionProtection: 'DeletionProtection',
            deploymentSetGroupNo: 'DeploymentSetGroupNo',
            deploymentSetId: 'DeploymentSetId',
            description: 'Description',
            dryRun: 'DryRun',
            hostName: 'HostName',
            hostNames: 'HostNames',
            hpcClusterId: 'HpcClusterId',
            httpEndpoint: 'HttpEndpoint',
            httpPutResponseHopLimit: 'HttpPutResponseHopLimit',
            httpTokens: 'HttpTokens',
            imageFamily: 'ImageFamily',
            imageId: 'ImageId',
            imageOptions: 'ImageOptions',
            instanceChargeType: 'InstanceChargeType',
            instanceName: 'InstanceName',
            instanceType: 'InstanceType',
            internetChargeType: 'InternetChargeType',
            internetMaxBandwidthIn: 'InternetMaxBandwidthIn',
            internetMaxBandwidthOut: 'InternetMaxBandwidthOut',
            ioOptimized: 'IoOptimized',
            ipv6Address: 'Ipv6Address',
            ipv6AddressCount: 'Ipv6AddressCount',
            isp: 'Isp',
            keyPairName: 'KeyPairName',
            launchTemplateId: 'LaunchTemplateId',
            launchTemplateName: 'LaunchTemplateName',
            launchTemplateVersion: 'LaunchTemplateVersion',
            minAmount: 'MinAmount',
            networkInterface: 'NetworkInterface',
            networkInterfaceQueueNumber: 'NetworkInterfaceQueueNumber',
            networkOptions: 'NetworkOptions',
            ownerAccount: 'OwnerAccount',
            ownerId: 'OwnerId',
            password: 'Password',
            passwordInherit: 'PasswordInherit',
            period: 'Period',
            periodUnit: 'PeriodUnit',
            privateDnsNameOptions: 'PrivateDnsNameOptions',
            privateIpAddress: 'PrivateIpAddress',
            ramRoleName: 'RamRoleName',
            regionId: 'RegionId',
            resourceGroupId: 'ResourceGroupId',
            resourceOwnerAccount: 'ResourceOwnerAccount',
            resourceOwnerId: 'ResourceOwnerId',
            securityEnhancementStrategy: 'SecurityEnhancementStrategy',
            securityGroupId: 'SecurityGroupId',
            securityGroupIds: 'SecurityGroupIds',
            spotDuration: 'SpotDuration',
            spotInterruptionBehavior: 'SpotInterruptionBehavior',
            spotPriceLimit: 'SpotPriceLimit',
            spotStrategy: 'SpotStrategy',
            storageSetId: 'StorageSetId',
            storageSetPartitionNumber: 'StorageSetPartitionNumber',
            tag: 'Tag',
            tenancy: 'Tenancy',
            uniqueSuffix: 'UniqueSuffix',
            userData: 'UserData',
            vSwitchId: 'VSwitchId',
            zoneId: 'ZoneId',
        };
    }
    static types() {
        return {
            cpuOptions: RunInstancesRequestCpuOptions,
            hibernationOptions: RunInstancesRequestHibernationOptions,
            privatePoolOptions: RunInstancesRequestPrivatePoolOptions,
            schedulerOptions: RunInstancesRequestSchedulerOptions,
            securityOptions: RunInstancesRequestSecurityOptions,
            systemDisk: RunInstancesRequestSystemDisk,
            affinity: 'string',
            amount: 'number',
            arn: { 'type': 'array', 'itemType': RunInstancesRequestArn },
            autoPay: 'boolean',
            autoReleaseTime: 'string',
            autoRenew: 'boolean',
            autoRenewPeriod: 'number',
            clientToken: 'string',
            clockOptions: RunInstancesRequestClockOptions,
            creditSpecification: 'string',
            dataDisk: { 'type': 'array', 'itemType': RunInstancesRequestDataDisk },
            dedicatedHostId: 'string',
            deletionProtection: 'boolean',
            deploymentSetGroupNo: 'number',
            deploymentSetId: 'string',
            description: 'string',
            dryRun: 'boolean',
            hostName: 'string',
            hostNames: { 'type': 'array', 'itemType': 'string' },
            hpcClusterId: 'string',
            httpEndpoint: 'string',
            httpPutResponseHopLimit: 'number',
            httpTokens: 'string',
            imageFamily: 'string',
            imageId: 'string',
            imageOptions: RunInstancesRequestImageOptions,
            instanceChargeType: 'string',
            instanceName: 'string',
            instanceType: 'string',
            internetChargeType: 'string',
            internetMaxBandwidthIn: 'number',
            internetMaxBandwidthOut: 'number',
            ioOptimized: 'string',
            ipv6Address: { 'type': 'array', 'itemType': 'string' },
            ipv6AddressCount: 'number',
            isp: 'string',
            keyPairName: 'string',
            launchTemplateId: 'string',
            launchTemplateName: 'string',
            launchTemplateVersion: 'number',
            minAmount: 'number',
            networkInterface: { 'type': 'array', 'itemType': RunInstancesRequestNetworkInterface },
            networkInterfaceQueueNumber: 'number',
            networkOptions: RunInstancesRequestNetworkOptions,
            ownerAccount: 'string',
            ownerId: 'number',
            password: 'string',
            passwordInherit: 'boolean',
            period: 'number',
            periodUnit: 'string',
            privateDnsNameOptions: RunInstancesRequestPrivateDnsNameOptions,
            privateIpAddress: 'string',
            ramRoleName: 'string',
            regionId: 'string',
            resourceGroupId: 'string',
            resourceOwnerAccount: 'string',
            resourceOwnerId: 'number',
            securityEnhancementStrategy: 'string',
            securityGroupId: 'string',
            securityGroupIds: { 'type': 'array', 'itemType': 'string' },
            spotDuration: 'number',
            spotInterruptionBehavior: 'string',
            spotPriceLimit: 'number',
            spotStrategy: 'string',
            storageSetId: 'string',
            storageSetPartitionNumber: 'number',
            tag: { 'type': 'array', 'itemType': RunInstancesRequestTag },
            tenancy: 'string',
            uniqueSuffix: 'boolean',
            userData: 'string',
            vSwitchId: 'string',
            zoneId: 'string',
        };
    }
    validate() {
        if (this.cpuOptions && typeof this.cpuOptions.validate === 'function') {
            this.cpuOptions.validate();
        }
        if (this.hibernationOptions && typeof this.hibernationOptions.validate === 'function') {
            this.hibernationOptions.validate();
        }
        if (this.privatePoolOptions && typeof this.privatePoolOptions.validate === 'function') {
            this.privatePoolOptions.validate();
        }
        if (this.schedulerOptions && typeof this.schedulerOptions.validate === 'function') {
            this.schedulerOptions.validate();
        }
        if (this.securityOptions && typeof this.securityOptions.validate === 'function') {
            this.securityOptions.validate();
        }
        if (this.systemDisk && typeof this.systemDisk.validate === 'function') {
            this.systemDisk.validate();
        }
        if (Array.isArray(this.arn)) {
            $dara.Model.validateArray(this.arn);
        }
        if (this.clockOptions && typeof this.clockOptions.validate === 'function') {
            this.clockOptions.validate();
        }
        if (Array.isArray(this.dataDisk)) {
            $dara.Model.validateArray(this.dataDisk);
        }
        if (Array.isArray(this.hostNames)) {
            $dara.Model.validateArray(this.hostNames);
        }
        if (this.imageOptions && typeof this.imageOptions.validate === 'function') {
            this.imageOptions.validate();
        }
        if (Array.isArray(this.ipv6Address)) {
            $dara.Model.validateArray(this.ipv6Address);
        }
        if (Array.isArray(this.networkInterface)) {
            $dara.Model.validateArray(this.networkInterface);
        }
        if (this.networkOptions && typeof this.networkOptions.validate === 'function') {
            this.networkOptions.validate();
        }
        if (this.privateDnsNameOptions && typeof this.privateDnsNameOptions.validate === 'function') {
            this.privateDnsNameOptions.validate();
        }
        if (Array.isArray(this.securityGroupIds)) {
            $dara.Model.validateArray(this.securityGroupIds);
        }
        if (Array.isArray(this.tag)) {
            $dara.Model.validateArray(this.tag);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.RunInstancesRequest = RunInstancesRequest;
//# sourceMappingURL=RunInstancesRequest.js.map