/* * 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.Emr.V20190103.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class DescribeInstancesRequest : AbstractModel { /// /// 集群筛选策略。取值范围: ///
  • clusterList:表示查询除了已销毁集群之外的集群列表。
  • ///
  • monitorManage:表示查询除了已销毁、创建中以及创建失败的集群之外的集群列表。
  • ///
  • cloudHardwareManage/componentManage:目前这两个取值为预留取值,暂时和monitorManage表示同样的含义。
  • ///
    [JsonProperty("DisplayStrategy")] public string DisplayStrategy{ get; set; } /// /// 按照一个或者多个实例ID查询。实例ID形如: emr-xxxxxxxx 。(此参数的具体格式可参考API[简介](https://cloud.tencent.com/document/api/213/15688)的 Ids.N 一节)。如果不填写实例ID,返回该APPID下所有实例列表。 /// [JsonProperty("InstanceIds")] public string[] InstanceIds{ get; set; } /// /// 页编号,默认值为0,表示第一页。 /// [JsonProperty("Offset")] public ulong? Offset{ get; set; } /// /// 每页返回数量,默认值为10,最大值为100。 /// [JsonProperty("Limit")] public ulong? Limit{ get; set; } /// /// 建议必填-1,表示拉取所有项目下的集群。 /// 不填默认值为0,表示拉取默认项目下的集群。 /// 实例所属项目ID。该参数可以通过调用 [DescribeProject](https://cloud.tencent.com/document/api/378/4400) 的返回值中的 projectId 字段来获取。 /// [JsonProperty("ProjectId")] public long? ProjectId{ get; set; } /// /// 排序字段。取值范围: ///
  • clusterId:表示按照实例ID排序。
  • ///
  • addTime:表示按照实例创建时间排序。
  • ///
  • status:表示按照实例的状态码排序。
  • ///
    [JsonProperty("OrderField")] public string OrderField{ get; set; } /// /// 按照OrderField升序或者降序进行排序。取值范围: ///
  • 0:表示降序。
  • ///
  • 1:表示升序。
  • 默认值为0。 ///
    [JsonProperty("Asc")] public long? Asc{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "DisplayStrategy", this.DisplayStrategy); this.SetParamArraySimple(map, prefix + "InstanceIds.", this.InstanceIds); this.SetParamSimple(map, prefix + "Offset", this.Offset); this.SetParamSimple(map, prefix + "Limit", this.Limit); this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId); this.SetParamSimple(map, prefix + "OrderField", this.OrderField); this.SetParamSimple(map, prefix + "Asc", this.Asc); } } }