"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.ModifyCloudAssistantSettingsRequest = exports.ModifyCloudAssistantSettingsRequestSlsDeliveryConfig = exports.ModifyCloudAssistantSettingsRequestSessionManagerConfig = exports.ModifyCloudAssistantSettingsRequestOssDeliveryConfig = exports.ModifyCloudAssistantSettingsRequestAgentUpgradeConfig = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class ModifyCloudAssistantSettingsRequestAgentUpgradeConfig extends $dara.Model {
    static names() {
        return {
            allowedUpgradeWindow: 'AllowedUpgradeWindow',
            enabled: 'Enabled',
            timeZone: 'TimeZone',
        };
    }
    static types() {
        return {
            allowedUpgradeWindow: { 'type': 'array', 'itemType': 'string' },
            enabled: 'boolean',
            timeZone: 'string',
        };
    }
    validate() {
        if (Array.isArray(this.allowedUpgradeWindow)) {
            $dara.Model.validateArray(this.allowedUpgradeWindow);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.ModifyCloudAssistantSettingsRequestAgentUpgradeConfig = ModifyCloudAssistantSettingsRequestAgentUpgradeConfig;
class ModifyCloudAssistantSettingsRequestOssDeliveryConfig extends $dara.Model {
    static names() {
        return {
            bucketName: 'BucketName',
            enabled: 'Enabled',
            encryptionAlgorithm: 'EncryptionAlgorithm',
            encryptionKeyId: 'EncryptionKeyId',
            encryptionType: 'EncryptionType',
            prefix: 'Prefix',
        };
    }
    static types() {
        return {
            bucketName: 'string',
            enabled: 'boolean',
            encryptionAlgorithm: 'string',
            encryptionKeyId: 'string',
            encryptionType: 'string',
            prefix: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.ModifyCloudAssistantSettingsRequestOssDeliveryConfig = ModifyCloudAssistantSettingsRequestOssDeliveryConfig;
class ModifyCloudAssistantSettingsRequestSessionManagerConfig extends $dara.Model {
    static names() {
        return {
            sessionManagerEnabled: 'SessionManagerEnabled',
        };
    }
    static types() {
        return {
            sessionManagerEnabled: 'boolean',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.ModifyCloudAssistantSettingsRequestSessionManagerConfig = ModifyCloudAssistantSettingsRequestSessionManagerConfig;
class ModifyCloudAssistantSettingsRequestSlsDeliveryConfig extends $dara.Model {
    static names() {
        return {
            enabled: 'Enabled',
            logstoreName: 'LogstoreName',
            projectName: 'ProjectName',
        };
    }
    static types() {
        return {
            enabled: 'boolean',
            logstoreName: 'string',
            projectName: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.ModifyCloudAssistantSettingsRequestSlsDeliveryConfig = ModifyCloudAssistantSettingsRequestSlsDeliveryConfig;
class ModifyCloudAssistantSettingsRequest extends $dara.Model {
    static names() {
        return {
            agentUpgradeConfig: 'AgentUpgradeConfig',
            ossDeliveryConfig: 'OssDeliveryConfig',
            ownerAccount: 'OwnerAccount',
            ownerId: 'OwnerId',
            regionId: 'RegionId',
            resourceOwnerAccount: 'ResourceOwnerAccount',
            resourceOwnerId: 'ResourceOwnerId',
            sessionManagerConfig: 'SessionManagerConfig',
            settingType: 'SettingType',
            slsDeliveryConfig: 'SlsDeliveryConfig',
        };
    }
    static types() {
        return {
            agentUpgradeConfig: ModifyCloudAssistantSettingsRequestAgentUpgradeConfig,
            ossDeliveryConfig: ModifyCloudAssistantSettingsRequestOssDeliveryConfig,
            ownerAccount: 'string',
            ownerId: 'number',
            regionId: 'string',
            resourceOwnerAccount: 'string',
            resourceOwnerId: 'number',
            sessionManagerConfig: ModifyCloudAssistantSettingsRequestSessionManagerConfig,
            settingType: 'string',
            slsDeliveryConfig: ModifyCloudAssistantSettingsRequestSlsDeliveryConfig,
        };
    }
    validate() {
        if (this.agentUpgradeConfig && typeof this.agentUpgradeConfig.validate === 'function') {
            this.agentUpgradeConfig.validate();
        }
        if (this.ossDeliveryConfig && typeof this.ossDeliveryConfig.validate === 'function') {
            this.ossDeliveryConfig.validate();
        }
        if (this.sessionManagerConfig && typeof this.sessionManagerConfig.validate === 'function') {
            this.sessionManagerConfig.validate();
        }
        if (this.slsDeliveryConfig && typeof this.slsDeliveryConfig.validate === 'function') {
            this.slsDeliveryConfig.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.ModifyCloudAssistantSettingsRequest = ModifyCloudAssistantSettingsRequest;
//# sourceMappingURL=ModifyCloudAssistantSettingsRequest.js.map