-
Notifications
You must be signed in to change notification settings - Fork 38
/
describe_udblog_backup_url.go
59 lines (44 loc) · 1.76 KB
/
describe_udblog_backup_url.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
53
54
55
56
57
58
59
//Code is generated by ucloud code generator, don't modify it by hand, it will cause undefined behaviors.
//go:generate ucloud-gen-go-api UDB DescribeUDBLogBackupURL
package udb
import (
"github.com/ucloud/ucloud-sdk-go/ucloud/request"
"github.com/ucloud/ucloud-sdk-go/ucloud/response"
)
// DescribeUDBLogBackupURLRequest is request schema for DescribeUDBLogBackupURL action
type DescribeUDBLogBackupURLRequest struct {
request.CommonBase
// [公共参数] 地域。 参见 [地域和可用区列表](../summary/regionlist.html)
// Region *string `required:"true"`
// [公共参数] 可用区。参见 [可用区列表](../summary/regionlist.html)
// Zone *string `required:"false"`
// DB实例Id
DBId *string `required:"true"`
// DB实例备份ID
BackupId *int `required:"true"`
}
// DescribeUDBLogBackupURLResponse is response schema for DescribeUDBLogBackupURL action
type DescribeUDBLogBackupURLResponse struct {
response.CommonBase
// DB实例备份文件的地址
BackupPath string
}
// NewDescribeUDBLogBackupURLRequest will create request of DescribeUDBLogBackupURL action.
func (c *UDBClient) NewDescribeUDBLogBackupURLRequest() *DescribeUDBLogBackupURLRequest {
req := &DescribeUDBLogBackupURLRequest{}
// setup request with client config
c.Client.SetupRequest(req)
// setup retryable with default retry policy (retry for non-create action and common error)
req.SetRetryable(true)
return req
}
// DescribeUDBLogBackupURL - 获取UDB的slowlog备份地址
func (c *UDBClient) DescribeUDBLogBackupURL(req *DescribeUDBLogBackupURLRequest) (*DescribeUDBLogBackupURLResponse, error) {
var err error
var res DescribeUDBLogBackupURLResponse
err = c.Client.InvokeAction("DescribeUDBLogBackupURL", req, &res)
if err != nil {
return &res, err
}
return &res, nil
}