72 lines
2.4 KiB
C#
72 lines
2.4 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.Dts.V20180330.Models
|
||
{
|
||
using Newtonsoft.Json;
|
||
using System.Collections.Generic;
|
||
using TencentCloud.Common;
|
||
|
||
public class CreateSubscribeRequest : AbstractModel
|
||
{
|
||
|
||
/// <summary>
|
||
/// 订阅的数据库类型,目前支持的有 mysql
|
||
/// </summary>
|
||
[JsonProperty("Product")]
|
||
public string Product{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 实例付费类型,1小时计费,0包年包月
|
||
/// </summary>
|
||
[JsonProperty("PayType")]
|
||
public long? PayType{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 购买时长。PayType为0时必填。单位为月,最大支持120
|
||
/// </summary>
|
||
[JsonProperty("Duration")]
|
||
public long? Duration{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 购买数量,默认为1,最大为10
|
||
/// </summary>
|
||
[JsonProperty("Count")]
|
||
public long? Count{ get; set; }
|
||
|
||
/// <summary>
|
||
/// 是否自动续费,默认为0,1表示自动续费。小时计费实例设置该标识无效。
|
||
/// </summary>
|
||
[JsonProperty("AutoRenew")]
|
||
public long? AutoRenew{ 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 + "Product", this.Product);
|
||
this.SetParamSimple(map, prefix + "PayType", this.PayType);
|
||
this.SetParamSimple(map, prefix + "Duration", this.Duration);
|
||
this.SetParamSimple(map, prefix + "Count", this.Count);
|
||
this.SetParamSimple(map, prefix + "AutoRenew", this.AutoRenew);
|
||
}
|
||
}
|
||
}
|
||
|