Files
g.hnyhua.cn/TencentCloud/Mongodb/V20190725/Models/DescribeDBInstancesRequest.cs

128 lines
4.8 KiB
C#
Raw Permalink 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.Mongodb.V20190725.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeDBInstancesRequest : AbstractModel
{
/// <summary>
/// 实例ID列表格式如cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同
/// </summary>
[JsonProperty("InstanceIds")]
public string[] InstanceIds{ get; set; }
/// <summary>
/// 实例类型取值范围0-所有实例,1-正式实例2-临时实例, 3-只读实例,-1-正式实例+只读+灾备实例
/// </summary>
[JsonProperty("InstanceType")]
public long? InstanceType{ get; set; }
/// <summary>
/// 集群类型取值范围0-副本集实例1-分片实例,-1-所有实例
/// </summary>
[JsonProperty("ClusterType")]
public long? ClusterType{ get; set; }
/// <summary>
/// 实例状态取值范围0-待初始化1-流程执行中2-实例有效,-2-实例已过期
/// </summary>
[JsonProperty("Status")]
public long?[] Status{ get; set; }
/// <summary>
/// 私有网络的ID基础网络则不传该参数
/// </summary>
[JsonProperty("VpcId")]
public string VpcId{ get; set; }
/// <summary>
/// 私有网络的子网ID基础网络则不传该参数。入参设置该参数的同时必须设置相应的VpcId
/// </summary>
[JsonProperty("SubnetId")]
public string SubnetId{ get; set; }
/// <summary>
/// 付费类型取值范围0-按量计费1-包年包月,-1-按量计费+包年包月
/// </summary>
[JsonProperty("PayMode")]
public long? PayMode{ get; set; }
/// <summary>
/// 单次请求返回的数量最小值为1最大值为100默认值为20
/// </summary>
[JsonProperty("Limit")]
public ulong? Limit{ get; set; }
/// <summary>
/// 偏移量默认值为0
/// </summary>
[JsonProperty("Offset")]
public ulong? Offset{ get; set; }
/// <summary>
/// 返回结果集排序的字段,目前支持:"ProjectId", "InstanceName", "CreateTime",默认为升序排序
/// </summary>
[JsonProperty("OrderBy")]
public string OrderBy{ get; set; }
/// <summary>
/// 返回结果集排序方式,目前支持:"ASC"或者"DESC"
/// </summary>
[JsonProperty("OrderByType")]
public string OrderByType{ get; set; }
/// <summary>
/// 项目 ID
/// </summary>
[JsonProperty("ProjectIds")]
public ulong?[] ProjectIds{ get; set; }
/// <summary>
/// 搜索关键词支持实例Id、实例名称、完整IP
/// </summary>
[JsonProperty("SearchKey")]
public string SearchKey{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArraySimple(map, prefix + "InstanceIds.", this.InstanceIds);
this.SetParamSimple(map, prefix + "InstanceType", this.InstanceType);
this.SetParamSimple(map, prefix + "ClusterType", this.ClusterType);
this.SetParamArraySimple(map, prefix + "Status.", this.Status);
this.SetParamSimple(map, prefix + "VpcId", this.VpcId);
this.SetParamSimple(map, prefix + "SubnetId", this.SubnetId);
this.SetParamSimple(map, prefix + "PayMode", this.PayMode);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "OrderBy", this.OrderBy);
this.SetParamSimple(map, prefix + "OrderByType", this.OrderByType);
this.SetParamArraySimple(map, prefix + "ProjectIds.", this.ProjectIds);
this.SetParamSimple(map, prefix + "SearchKey", this.SearchKey);
}
}
}