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