/*
* 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.Batch.V20170312.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeTaskRequest : AbstractModel
{
///
/// 作业ID
///
[JsonProperty("JobId")]
public string JobId{ get; set; }
///
/// 任务名称
///
[JsonProperty("TaskName")]
public string TaskName{ get; set; }
///
/// 偏移量
///
[JsonProperty("Offset")]
public ulong? Offset{ get; set; }
///
/// 返回数量。默认取值100,最大取值1000。
///
[JsonProperty("Limit")]
public ulong? Limit{ get; set; }
///
/// 过滤条件,详情如下:
/// task-instance-type - String - 是否必填: 否 - 按照任务实例状态进行过滤(SUBMITTED:已提交;PENDING:等待中;RUNNABLE:可运行;STARTING:启动中;RUNNING:运行中;SUCCEED:成功;FAILED:失败;FAILED_INTERRUPTED:失败后保留实例)。
///
[JsonProperty("Filters")]
public Filter[] Filters{ get; set; }
///
/// For internal usage only. DO NOT USE IT.
///
internal override void ToMap(Dictionary map, string prefix)
{
this.SetParamSimple(map, prefix + "JobId", this.JobId);
this.SetParamSimple(map, prefix + "TaskName", this.TaskName);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
this.SetParamArrayObj(map, prefix + "Filters.", this.Filters);
}
}
}