Files
g.hnyhua.cn/TencentCloud/Ckafka/V20190819/Models/ModifyTopicAttributesRequest.cs

107 lines
3.8 KiB
C#
Raw Normal View History

/*
* 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.Ckafka.V20190819.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifyTopicAttributesRequest : AbstractModel
{
/// <summary>
/// 实例 ID。
/// </summary>
[JsonProperty("InstanceId")]
public string InstanceId{ get; set; }
/// <summary>
/// 主题名称。
/// </summary>
[JsonProperty("TopicName")]
public string TopicName{ get; set; }
/// <summary>
/// 主题备注是一个不超过64个字符的字符串必须以字母为首字符剩余部分可以包含字母、数字和横划线-。
/// </summary>
[JsonProperty("Note")]
public string Note{ get; set; }
/// <summary>
/// IP 白名单开关1打开0关闭。
/// </summary>
[JsonProperty("EnableWhiteList")]
public long? EnableWhiteList{ get; set; }
/// <summary>
/// 默认为1。
/// </summary>
[JsonProperty("MinInsyncReplicas")]
public long? MinInsyncReplicas{ get; set; }
/// <summary>
/// 默认为 00false1true。
/// </summary>
[JsonProperty("UncleanLeaderElectionEnable")]
public long? UncleanLeaderElectionEnable{ get; set; }
/// <summary>
/// 消息保留时间单位ms当前最小值为60000ms。
/// </summary>
[JsonProperty("RetentionMs")]
public long? RetentionMs{ get; set; }
/// <summary>
/// Segment 分片滚动的时长单位ms当前最小为86400000ms。
/// </summary>
[JsonProperty("SegmentMs")]
public long? SegmentMs{ get; set; }
/// <summary>
/// 主题消息最大值,单位为 Byte最大值为8388608Byte即8MB
/// </summary>
[JsonProperty("MaxMessageBytes")]
public long? MaxMessageBytes{ get; set; }
/// <summary>
/// 消息删除策略可以选择delete 或者compact
/// </summary>
[JsonProperty("CleanUpPolicy")]
public string CleanUpPolicy{ 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 + "InstanceId", this.InstanceId);
this.SetParamSimple(map, prefix + "TopicName", this.TopicName);
this.SetParamSimple(map, prefix + "Note", this.Note);
this.SetParamSimple(map, prefix + "EnableWhiteList", this.EnableWhiteList);
this.SetParamSimple(map, prefix + "MinInsyncReplicas", this.MinInsyncReplicas);
this.SetParamSimple(map, prefix + "UncleanLeaderElectionEnable", this.UncleanLeaderElectionEnable);
this.SetParamSimple(map, prefix + "RetentionMs", this.RetentionMs);
this.SetParamSimple(map, prefix + "SegmentMs", this.SegmentMs);
this.SetParamSimple(map, prefix + "MaxMessageBytes", this.MaxMessageBytes);
this.SetParamSimple(map, prefix + "CleanUpPolicy", this.CleanUpPolicy);
}
}
}