94 lines
3.5 KiB
C#
94 lines
3.5 KiB
C#
/*
|
||
* 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 Config : AbstractModel
|
||
{
|
||
|
||
/// <summary>
|
||
/// 消息保留时间
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("Retention")]
|
||
public long? Retention{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 最小同步复制数
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("MinInsyncReplicas")]
|
||
public long? MinInsyncReplicas{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 日志清理模式,默认 delete。
|
||
/// delete:日志按保存时间删除;compact:日志按 key 压缩;compact, delete:日志按 key 压缩且会保存时间删除。
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("CleanUpPolicy")]
|
||
public string CleanUpPolicy{ get; set; }
|
||
|
||
/// <summary>
|
||
/// Segment 分片滚动的时长
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("SegmentMs")]
|
||
public long? SegmentMs{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 0表示 false。 1表示 true。
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("UncleanLeaderElectionEnable")]
|
||
public long? UncleanLeaderElectionEnable{ get; set; }
|
||
|
||
/// <summary>
|
||
/// Segment 分片滚动的字节数
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("SegmentBytes")]
|
||
public long? SegmentBytes{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 最大消息字节数
|
||
/// 注意:此字段可能返回 null,表示取不到有效值。
|
||
/// </summary>
|
||
[JsonProperty("MaxMessageBytes")]
|
||
public long? MaxMessageBytes{ 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 + "Retention", this.Retention);
|
||
this.SetParamSimple(map, prefix + "MinInsyncReplicas", this.MinInsyncReplicas);
|
||
this.SetParamSimple(map, prefix + "CleanUpPolicy", this.CleanUpPolicy);
|
||
this.SetParamSimple(map, prefix + "SegmentMs", this.SegmentMs);
|
||
this.SetParamSimple(map, prefix + "UncleanLeaderElectionEnable", this.UncleanLeaderElectionEnable);
|
||
this.SetParamSimple(map, prefix + "SegmentBytes", this.SegmentBytes);
|
||
this.SetParamSimple(map, prefix + "MaxMessageBytes", this.MaxMessageBytes);
|
||
}
|
||
}
|
||
}
|
||
|