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