-
Notifications
You must be signed in to change notification settings - Fork 45
/
model_create_rule_response.go
52 lines (36 loc) · 1.85 KB
/
model_create_rule_response.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
42
43
44
45
46
47
48
49
50
51
52
package model
import (
"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
"strings"
)
// CreateRuleResponse Response Object
type CreateRuleResponse struct {
// 规则id。
RuleId *string `json:"rule_id,omitempty"`
// 规则名称。
Name *string `json:"name,omitempty"`
// 规则的描述信息。
Description *string `json:"description,omitempty"`
ConditionGroup *ConditionGroup `json:"condition_group,omitempty"`
// 规则的动作列表,单个规则最多支持设置10个动作。
Actions *[]RuleAction `json:"actions,omitempty"`
// 规则的类型 - DEVICE_LINKAGE:云端联动规则。 - DEVICE_SIDE:端侧规则。
RuleType *string `json:"rule_type,omitempty"`
// 规则的状态,默认值:active。 - active:激活。 - inactive:未激活。
Status *string `json:"status,omitempty"`
// 资源空间ID。此参数为非必选参数,存在多资源空间的用户需要使用该接口时,建议携带该参数指定创建的规则归属到哪个资源空间下,否则创建的规则将会归属到[[默认资源空间](https://support.huaweicloud.com/usermanual-iothub/iot_01_0006.html#section0)](tag:hws)[[默认资源空间](https://support.huaweicloud.com/intl/zh-cn/usermanual-iothub/iot_01_0006.html#section0)](tag:hws_hk)下。
AppId *string `json:"app_id,omitempty"`
// 归属边缘侧节点设备ID列表。
EdgeNodeIds *[]string `json:"edge_node_ids,omitempty"`
// 规则最后更新时间,使用UTC时区,格式:yyyyMMdd'T'HHmmss'Z'。
LastUpdateTime *string `json:"last_update_time,omitempty"`
DeviceSide *DeviceSide `json:"device_side,omitempty"`
HttpStatusCode int `json:"-"`
}
func (o CreateRuleResponse) String() string {
data, err := utils.Marshal(o)
if err != nil {
return "CreateRuleResponse struct{}"
}
return strings.Join([]string{"CreateRuleResponse", string(data)}, " ")
}