Files
2026-02-07 15:48:27 +08:00

128 lines
5.9 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Cloudaudit.V20190319.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class UpdateAuditRequest : AbstractModel
{
/// <summary>
/// 跟踪集名称
/// </summary>
[JsonProperty("AuditName")]
public string AuditName{ get; set; }
/// <summary>
/// 队列名称。队列名称是一个不超过64个字符的字符串必须以字母为首字符剩余部分可以包含字母、数字和横划线(-)。如果IsEnableCmqNotify值是1的话此值属于必填字段。如果不是新创建的队列云审计不会去校验该队列是否真的存在请谨慎填写避免日志通知不成功导致您的数据丢失。
/// </summary>
[JsonProperty("CmqQueueName")]
public string CmqQueueName{ get; set; }
/// <summary>
/// 队列所在的地域。可以通过ListCmqEnableRegion获取支持的cmq地域。如果IsEnableCmqNotify值是1的话此值属于必填字段。
/// </summary>
[JsonProperty("CmqRegion")]
public string CmqRegion{ get; set; }
/// <summary>
/// cos的存储桶名称。仅支持小写英文字母和数字即[a-z0-9]、中划线“-”及其组合。用户自定义的字符串支持1 - 40个字符。存储桶命名不能以“-”开头或结尾。如果不是新创建的存储桶,云审计不会去校验该存储桶是否真的存在,请谨慎填写,避免日志投递不成功,导致您的数据丢失。
/// </summary>
[JsonProperty("CosBucketName")]
public string CosBucketName{ get; set; }
/// <summary>
/// cos地域。目前支持的地域可以使用ListCosEnableRegion来获取。
/// </summary>
[JsonProperty("CosRegion")]
public string CosRegion{ get; set; }
/// <summary>
/// 是否创建新的cos存储桶。10否。
/// </summary>
[JsonProperty("IsCreateNewBucket")]
public long? IsCreateNewBucket{ get; set; }
/// <summary>
/// 是否创建新的队列。10否。如果IsEnableCmqNotify值是1的话此值属于必填字段。
/// </summary>
[JsonProperty("IsCreateNewQueue")]
public long? IsCreateNewQueue{ get; set; }
/// <summary>
/// 是否开启cmq消息通知。10否。目前仅支持cmq的队列服务。如果开启cmq消息通知服务云审计会将您的日志内容实时投递到您指定地域的指定队列中。
/// </summary>
[JsonProperty("IsEnableCmqNotify")]
public long? IsEnableCmqNotify{ get; set; }
/// <summary>
/// 是否开启kms加密。10否。如果开启KMS加密数据在投递到cos时会将数据加密。
/// </summary>
[JsonProperty("IsEnableKmsEncry")]
public long? IsEnableKmsEncry{ get; set; }
/// <summary>
/// CMK的全局唯一标识符如果不是新创建的kms该值是必填值。可以通过ListKeyAliasByRegion来获取。云审计不会校验KeyId的合法性请您谨慎填写避免给您的数据造成损失。
/// </summary>
[JsonProperty("KeyId")]
public string KeyId{ get; set; }
/// <summary>
/// kms地域。目前支持的地域可以使用ListKmsEnableRegion来获取。必须要和cos的地域保持一致。
/// </summary>
[JsonProperty("KmsRegion")]
public string KmsRegion{ get; set; }
/// <summary>
/// 日志文件前缀。3-40个字符只能包含 ASCII 编码字母 a-zA-Z数字 0-9。
/// </summary>
[JsonProperty("LogFilePrefix")]
public string LogFilePrefix{ get; set; }
/// <summary>
/// 管理事件的读写属性。1只读2只写3全部。
/// </summary>
[JsonProperty("ReadWriteAttribute")]
public long? ReadWriteAttribute{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "AuditName", this.AuditName);
this.SetParamSimple(map, prefix + "CmqQueueName", this.CmqQueueName);
this.SetParamSimple(map, prefix + "CmqRegion", this.CmqRegion);
this.SetParamSimple(map, prefix + "CosBucketName", this.CosBucketName);
this.SetParamSimple(map, prefix + "CosRegion", this.CosRegion);
this.SetParamSimple(map, prefix + "IsCreateNewBucket", this.IsCreateNewBucket);
this.SetParamSimple(map, prefix + "IsCreateNewQueue", this.IsCreateNewQueue);
this.SetParamSimple(map, prefix + "IsEnableCmqNotify", this.IsEnableCmqNotify);
this.SetParamSimple(map, prefix + "IsEnableKmsEncry", this.IsEnableKmsEncry);
this.SetParamSimple(map, prefix + "KeyId", this.KeyId);
this.SetParamSimple(map, prefix + "KmsRegion", this.KmsRegion);
this.SetParamSimple(map, prefix + "LogFilePrefix", this.LogFilePrefix);
this.SetParamSimple(map, prefix + "ReadWriteAttribute", this.ReadWriteAttribute);
}
}
}