-
Notifications
You must be signed in to change notification settings - Fork 52
/
model_show_batch_task_request.go
41 lines (29 loc) · 3.05 KB
/
model_show_batch_task_request.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package model
import (
"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
"strings"
)
// ShowBatchTaskRequest Request Object
type ShowBatchTaskRequest struct {
// **参数说明**:实例ID。物理多租下各实例的唯一标识,一般华为云租户无需携带该参数,仅在物理多租场景下从管理面访问API时需要携带该参数。您可以在IoTDA管理控制台界面,选择左侧导航栏“总览”页签查看当前实例的ID。
InstanceId *string `json:"Instance-Id,omitempty"`
// **参数说明**:批量任务ID,创建批量任务时由物联网平台分配获得。 **取值范围**:长度不超过24,只允许小写字母a到f、数字的组合。
TaskId string `json:"task_id"`
// **参数说明**:子任务的执行状态,可选参数。 **取值范围**: - Success: 成功。 - Fail: 失败。 - Processing: 执行中。 - FailWaitRetry: 失败重试。 - Stopped: 已停止。 - Waitting: 等待执行。 - Removed: 已移除。
TaskDetailStatus *string `json:"task_detail_status,omitempty"`
// **参数说明**:执行批量任务的目标,当task_type为firmwareUpgrade,softwareUpgrade,deleteDevices,freezeDevices,unfreezeDevices,createCommands,createAsyncCommands,createMessages,updateDeviceShadows,此处填写device_id **取值范围**:长度不超过128,只允许字母、数字、下划线(_)、连接符(-)的组合。
Target *string `json:"target,omitempty"`
// **参数说明**:分页查询时每页显示的记录数。 **取值范围**:1-50的整数,默认值为10。
Limit *int32 `json:"limit,omitempty"`
// **参数说明**:上一次分页查询结果中最后一条记录的ID,在上一次分页查询时由物联网平台返回获得。分页查询时物联网平台是按marker也就是记录ID降序查询的,越新的数据记录ID也会越大。若填写marker,则本次只查询记录ID小于marker的数据记录。若不填写,则从记录ID最大也就是最新的一条数据开始查询。如果需要依次查询所有数据,则每次查询时必须填写上一次查询响应中的marker值。 **取值范围**:长度为24的十六进制字符串,默认值为ffffffffffffffffffffffff。
Marker *string `json:"marker,omitempty"`
// **参数说明**:表示从marker后偏移offset条记录开始查询。默认为0,取值范围为0-500的整数。当offset为0时,表示从marker后第一条记录开始输出。限制offset最大值是出于API性能考虑,您可以搭配marker使用该参数实现翻页,例如每页50条记录,1-11页内都可以直接使用offset跳转到指定页,但到11页后,由于offset限制为500,您需要使用第11页返回的marker作为下次查询的marker,以实现翻页到12-22页。 **取值范围**:0-500的整数,默认为0。
Offset *int32 `json:"offset,omitempty"`
}
func (o ShowBatchTaskRequest) String() string {
data, err := utils.Marshal(o)
if err != nil {
return "ShowBatchTaskRequest struct{}"
}
return strings.Join([]string{"ShowBatchTaskRequest", string(data)}, " ")
}