-
Notifications
You must be signed in to change notification settings - Fork 44
/
model_update_routing_rule_response.go
47 lines (33 loc) · 1.45 KB
/
model_update_routing_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
package model
import (
"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
"strings"
)
// UpdateRoutingRuleResponse Response Object
type UpdateRoutingRuleResponse struct {
// 规则触发条件ID,用于唯一标识一个规则触发条件,在创建规则条件时由物联网平台分配获得。
RuleId *string `json:"rule_id,omitempty"`
// 用户自定义的规则名称。
RuleName *string `json:"rule_name,omitempty"`
// 用户自定义的规则描述。
Description *string `json:"description,omitempty"`
Subject *RoutingRuleSubject `json:"subject,omitempty"`
// 租户规则的生效范围,取值如下: - GLOBAL:生效范围为租户级 - APP:生效范围为资源空间级。
AppType *string `json:"app_type,omitempty"`
// 资源空间ID
AppId *string `json:"app_id,omitempty"`
// 用户自定义sql select语句,最大长度2500,该参数仅供标准版和企业版用户使用。
Select *string `json:"select,omitempty"`
// 用户自定义sql where语句,最大长度2500,该参数仅供标准版和企业版用户使用。
Where *string `json:"where,omitempty"`
// 规则条件的状态是否为激活。
Active *bool `json:"active,omitempty"`
HttpStatusCode int `json:"-"`
}
func (o UpdateRoutingRuleResponse) String() string {
data, err := utils.Marshal(o)
if err != nil {
return "UpdateRoutingRuleResponse struct{}"
}
return strings.Join([]string{"UpdateRoutingRuleResponse", string(data)}, " ")
}