"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.DescribeSecurityGroupAttributeResponseBody = exports.DescribeSecurityGroupAttributeResponseBodySnapshotPolicyIds = exports.DescribeSecurityGroupAttributeResponseBodyPermissions = exports.DescribeSecurityGroupAttributeResponseBodyPermissionsPermission = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class DescribeSecurityGroupAttributeResponseBodyPermissionsPermission extends $dara.Model {
    static names() {
        return {
            createTime: 'CreateTime',
            description: 'Description',
            destCidrIp: 'DestCidrIp',
            destGroupId: 'DestGroupId',
            destGroupName: 'DestGroupName',
            destGroupOwnerAccount: 'DestGroupOwnerAccount',
            destPrefixListId: 'DestPrefixListId',
            destPrefixListName: 'DestPrefixListName',
            direction: 'Direction',
            ipProtocol: 'IpProtocol',
            ipv6DestCidrIp: 'Ipv6DestCidrIp',
            ipv6SourceCidrIp: 'Ipv6SourceCidrIp',
            nicType: 'NicType',
            policy: 'Policy',
            portRange: 'PortRange',
            portRangeListId: 'PortRangeListId',
            portRangeListName: 'PortRangeListName',
            priority: 'Priority',
            securityGroupRuleId: 'SecurityGroupRuleId',
            sourceCidrIp: 'SourceCidrIp',
            sourceGroupId: 'SourceGroupId',
            sourceGroupName: 'SourceGroupName',
            sourceGroupOwnerAccount: 'SourceGroupOwnerAccount',
            sourcePortRange: 'SourcePortRange',
            sourcePrefixListId: 'SourcePrefixListId',
            sourcePrefixListName: 'SourcePrefixListName',
        };
    }
    static types() {
        return {
            createTime: 'string',
            description: 'string',
            destCidrIp: 'string',
            destGroupId: 'string',
            destGroupName: 'string',
            destGroupOwnerAccount: 'string',
            destPrefixListId: 'string',
            destPrefixListName: 'string',
            direction: 'string',
            ipProtocol: 'string',
            ipv6DestCidrIp: 'string',
            ipv6SourceCidrIp: 'string',
            nicType: 'string',
            policy: 'string',
            portRange: 'string',
            portRangeListId: 'string',
            portRangeListName: 'string',
            priority: 'string',
            securityGroupRuleId: 'string',
            sourceCidrIp: 'string',
            sourceGroupId: 'string',
            sourceGroupName: 'string',
            sourceGroupOwnerAccount: 'string',
            sourcePortRange: 'string',
            sourcePrefixListId: 'string',
            sourcePrefixListName: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeSecurityGroupAttributeResponseBodyPermissionsPermission = DescribeSecurityGroupAttributeResponseBodyPermissionsPermission;
class DescribeSecurityGroupAttributeResponseBodyPermissions extends $dara.Model {
    static names() {
        return {
            permission: 'Permission',
        };
    }
    static types() {
        return {
            permission: { 'type': 'array', 'itemType': DescribeSecurityGroupAttributeResponseBodyPermissionsPermission },
        };
    }
    validate() {
        if (Array.isArray(this.permission)) {
            $dara.Model.validateArray(this.permission);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeSecurityGroupAttributeResponseBodyPermissions = DescribeSecurityGroupAttributeResponseBodyPermissions;
class DescribeSecurityGroupAttributeResponseBodySnapshotPolicyIds extends $dara.Model {
    static names() {
        return {
            snapshotPolicyId: 'SnapshotPolicyId',
        };
    }
    static types() {
        return {
            snapshotPolicyId: { 'type': 'array', 'itemType': 'string' },
        };
    }
    validate() {
        if (Array.isArray(this.snapshotPolicyId)) {
            $dara.Model.validateArray(this.snapshotPolicyId);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeSecurityGroupAttributeResponseBodySnapshotPolicyIds = DescribeSecurityGroupAttributeResponseBodySnapshotPolicyIds;
class DescribeSecurityGroupAttributeResponseBody extends $dara.Model {
    static names() {
        return {
            description: 'Description',
            innerAccessPolicy: 'InnerAccessPolicy',
            nextToken: 'NextToken',
            permissions: 'Permissions',
            regionId: 'RegionId',
            requestId: 'RequestId',
            securityGroupId: 'SecurityGroupId',
            securityGroupName: 'SecurityGroupName',
            snapshotPolicyIds: 'SnapshotPolicyIds',
            vpcId: 'VpcId',
        };
    }
    static types() {
        return {
            description: 'string',
            innerAccessPolicy: 'string',
            nextToken: 'string',
            permissions: DescribeSecurityGroupAttributeResponseBodyPermissions,
            regionId: 'string',
            requestId: 'string',
            securityGroupId: 'string',
            securityGroupName: 'string',
            snapshotPolicyIds: DescribeSecurityGroupAttributeResponseBodySnapshotPolicyIds,
            vpcId: 'string',
        };
    }
    validate() {
        if (this.permissions && typeof this.permissions.validate === 'function') {
            this.permissions.validate();
        }
        if (this.snapshotPolicyIds && typeof this.snapshotPolicyIds.validate === 'function') {
            this.snapshotPolicyIds.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeSecurityGroupAttributeResponseBody = DescribeSecurityGroupAttributeResponseBody;
//# sourceMappingURL=DescribeSecurityGroupAttributeResponseBody.js.map