forked from huaweicloud/huaweicloud-sdk-go-v3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_api_outline.go
49 lines (34 loc) · 984 Bytes
/
model_api_outline.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
package model
import (
"github.com/dysodeng/huaweicloud-sdk-go-v3/core/utils"
"strings"
)
type ApiOutline struct {
// API的认证方式
AuthType *string `json:"auth_type,omitempty"`
// 发布的环境名
RunEnvName *string `json:"run_env_name,omitempty"`
// API所属分组的名称
GroupName *string `json:"group_name,omitempty"`
// 发布记录的编号
PublishId *string `json:"publish_id,omitempty"`
// API所属分组的编号
GroupId *string `json:"group_id,omitempty"`
// API名称
Name *string `json:"name,omitempty"`
// API描述
Remark *string `json:"remark,omitempty"`
// 发布的环境id
RunEnvId *string `json:"run_env_id,omitempty"`
// API编号
Id *string `json:"id,omitempty"`
// API的请求地址
ReqUri *string `json:"req_uri,omitempty"`
}
func (o ApiOutline) String() string {
data, err := utils.Marshal(o)
if err != nil {
return "ApiOutline struct{}"
}
return strings.Join([]string{"ApiOutline", string(data)}, " ")
}