"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.DescribeReservedInstancesResponseBody = exports.DescribeReservedInstancesResponseBodyReservedInstances = exports.DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance = exports.DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceTags = exports.DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceTagsTag = exports.DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceOperationLocks = exports.DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceOperationLocksOperationLock = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceOperationLocksOperationLock extends $dara.Model {
    static names() {
        return {
            lockReason: 'LockReason',
        };
    }
    static types() {
        return {
            lockReason: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceOperationLocksOperationLock = DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceOperationLocksOperationLock;
class DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceOperationLocks extends $dara.Model {
    static names() {
        return {
            operationLock: 'OperationLock',
        };
    }
    static types() {
        return {
            operationLock: { 'type': 'array', 'itemType': DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceOperationLocksOperationLock },
        };
    }
    validate() {
        if (Array.isArray(this.operationLock)) {
            $dara.Model.validateArray(this.operationLock);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceOperationLocks = DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceOperationLocks;
class DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceTagsTag 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.DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceTagsTag = DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceTagsTag;
class DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceTags extends $dara.Model {
    static names() {
        return {
            tag: 'Tag',
        };
    }
    static types() {
        return {
            tag: { 'type': 'array', 'itemType': DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceTagsTag },
        };
    }
    validate() {
        if (Array.isArray(this.tag)) {
            $dara.Model.validateArray(this.tag);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceTags = DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceTags;
class DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance extends $dara.Model {
    static names() {
        return {
            allocationStatus: 'AllocationStatus',
            creationTime: 'CreationTime',
            description: 'Description',
            expiredTime: 'ExpiredTime',
            instanceAmount: 'InstanceAmount',
            instanceType: 'InstanceType',
            offeringType: 'OfferingType',
            operationLocks: 'OperationLocks',
            platform: 'Platform',
            regionId: 'RegionId',
            reservedInstanceId: 'ReservedInstanceId',
            reservedInstanceName: 'ReservedInstanceName',
            resourceGroupId: 'ResourceGroupId',
            scope: 'Scope',
            startTime: 'StartTime',
            status: 'Status',
            tags: 'Tags',
            zoneId: 'ZoneId',
        };
    }
    static types() {
        return {
            allocationStatus: 'string',
            creationTime: 'string',
            description: 'string',
            expiredTime: 'string',
            instanceAmount: 'number',
            instanceType: 'string',
            offeringType: 'string',
            operationLocks: DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceOperationLocks,
            platform: 'string',
            regionId: 'string',
            reservedInstanceId: 'string',
            reservedInstanceName: 'string',
            resourceGroupId: 'string',
            scope: 'string',
            startTime: 'string',
            status: 'string',
            tags: DescribeReservedInstancesResponseBodyReservedInstancesReservedInstanceTags,
            zoneId: 'string',
        };
    }
    validate() {
        if (this.operationLocks && typeof this.operationLocks.validate === 'function') {
            this.operationLocks.validate();
        }
        if (this.tags && typeof this.tags.validate === 'function') {
            this.tags.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance = DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance;
class DescribeReservedInstancesResponseBodyReservedInstances extends $dara.Model {
    static names() {
        return {
            reservedInstance: 'ReservedInstance',
        };
    }
    static types() {
        return {
            reservedInstance: { 'type': 'array', 'itemType': DescribeReservedInstancesResponseBodyReservedInstancesReservedInstance },
        };
    }
    validate() {
        if (Array.isArray(this.reservedInstance)) {
            $dara.Model.validateArray(this.reservedInstance);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeReservedInstancesResponseBodyReservedInstances = DescribeReservedInstancesResponseBodyReservedInstances;
class DescribeReservedInstancesResponseBody extends $dara.Model {
    static names() {
        return {
            pageNumber: 'PageNumber',
            pageSize: 'PageSize',
            requestId: 'RequestId',
            reservedInstances: 'ReservedInstances',
            totalCount: 'TotalCount',
        };
    }
    static types() {
        return {
            pageNumber: 'number',
            pageSize: 'number',
            requestId: 'string',
            reservedInstances: DescribeReservedInstancesResponseBodyReservedInstances,
            totalCount: 'number',
        };
    }
    validate() {
        if (this.reservedInstances && typeof this.reservedInstances.validate === 'function') {
            this.reservedInstances.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeReservedInstancesResponseBody = DescribeReservedInstancesResponseBody;
//# sourceMappingURL=DescribeReservedInstancesResponseBody.js.map