/
api_op_DownloadDBLogFilePortion.go
109 lines (83 loc) · 3.11 KB
/
api_op_DownloadDBLogFilePortion.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package rdb
import (
"context"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/nifcloud/nifcloud-sdk-go/internal/nifcloudutil"
)
type DownloadDBLogFilePortionInput struct {
_ struct{} `type:"structure"`
DBInstanceIdentifier *string `locationName:"DBInstanceIdentifier" type:"string"`
LogFileName *string `locationName:"LogFileName" type:"string"`
Marker *string `locationName:"Marker" type:"string"`
NumberOfLines *int64 `locationName:"NumberOfLines" type:"integer"`
}
// String returns the string representation
func (s DownloadDBLogFilePortionInput) String() string {
return nifcloudutil.Prettify(s)
}
type DownloadDBLogFilePortionOutput struct {
_ struct{} `type:"structure"`
AdditionalDataPending *bool `type:"boolean"`
LogFileData *string `type:"string"`
Marker *string `type:"string"`
}
// String returns the string representation
func (s DownloadDBLogFilePortionOutput) String() string {
return nifcloudutil.Prettify(s)
}
const opDownloadDBLogFilePortion = "DownloadDBLogFilePortion"
// DownloadDBLogFilePortionRequest returns a request value for making API operation for
// NIFCLOUD RDB.
//
// // Example sending a request using DownloadDBLogFilePortionRequest.
// req := client.DownloadDBLogFilePortionRequest(params)
// resp, err := req.Send(context.TODO())
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://pfs.nifcloud.com/api/rdb/DownloadDBLogFilePortion.htm
func (c *Client) DownloadDBLogFilePortionRequest(input *DownloadDBLogFilePortionInput) DownloadDBLogFilePortionRequest {
op := &aws.Operation{
Name: opDownloadDBLogFilePortion,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DownloadDBLogFilePortionInput{}
}
req := c.newRequest(op, input, &DownloadDBLogFilePortionOutput{})
return DownloadDBLogFilePortionRequest{Request: req, Input: input, Copy: c.DownloadDBLogFilePortionRequest}
}
// DownloadDBLogFilePortionRequest is the request type for the
// DownloadDBLogFilePortion API operation.
type DownloadDBLogFilePortionRequest struct {
*aws.Request
Input *DownloadDBLogFilePortionInput
Copy func(*DownloadDBLogFilePortionInput) DownloadDBLogFilePortionRequest
}
// Send marshals and sends the DownloadDBLogFilePortion API request.
func (r DownloadDBLogFilePortionRequest) Send(ctx context.Context) (*DownloadDBLogFilePortionResponse, error) {
r.Request.SetContext(ctx)
err := r.Request.Send()
if err != nil {
return nil, err
}
resp := &DownloadDBLogFilePortionResponse{
DownloadDBLogFilePortionOutput: r.Request.Data.(*DownloadDBLogFilePortionOutput),
response: &aws.Response{Request: r.Request},
}
return resp, nil
}
// DownloadDBLogFilePortionResponse is the response type for the
// DownloadDBLogFilePortion API operation.
type DownloadDBLogFilePortionResponse struct {
*DownloadDBLogFilePortionOutput
response *aws.Response
}
// SDKResponseMetdata returns the response metadata for the
// DownloadDBLogFilePortion request.
func (r *DownloadDBLogFilePortionResponse) SDKResponseMetdata() *aws.Response {
return r.response
}