This repository has been archived by the owner on Aug 15, 2022. It is now read-only.
generated from pulumi/pulumi-tf-provider-boilerplate
/
backupList.go
101 lines (82 loc) · 3.35 KB
/
backupList.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
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package mysql
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func BackupList(ctx *pulumi.Context, args *BackupListArgs, opts ...pulumi.InvokeOption) (*BackupListResult, error) {
var rv BackupListResult
err := ctx.Invoke("tctest:Mysql/backupList:BackupList", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking BackupList.
type BackupListArgs struct {
MaxNumber *int `pulumi:"maxNumber"`
MysqlId string `pulumi:"mysqlId"`
ResultOutputFile *string `pulumi:"resultOutputFile"`
}
// A collection of values returned by BackupList.
type BackupListResult struct {
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
Lists []BackupListList `pulumi:"lists"`
MaxNumber *int `pulumi:"maxNumber"`
MysqlId string `pulumi:"mysqlId"`
ResultOutputFile *string `pulumi:"resultOutputFile"`
}
func BackupListOutput(ctx *pulumi.Context, args BackupListOutputArgs, opts ...pulumi.InvokeOption) BackupListResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (BackupListResult, error) {
args := v.(BackupListArgs)
r, err := BackupList(ctx, &args, opts...)
var s BackupListResult
if r != nil {
s = *r
}
return s, err
}).(BackupListResultOutput)
}
// A collection of arguments for invoking BackupList.
type BackupListOutputArgs struct {
MaxNumber pulumi.IntPtrInput `pulumi:"maxNumber"`
MysqlId pulumi.StringInput `pulumi:"mysqlId"`
ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
}
func (BackupListOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*BackupListArgs)(nil)).Elem()
}
// A collection of values returned by BackupList.
type BackupListResultOutput struct{ *pulumi.OutputState }
func (BackupListResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*BackupListResult)(nil)).Elem()
}
func (o BackupListResultOutput) ToBackupListResultOutput() BackupListResultOutput {
return o
}
func (o BackupListResultOutput) ToBackupListResultOutputWithContext(ctx context.Context) BackupListResultOutput {
return o
}
// The provider-assigned unique ID for this managed resource.
func (o BackupListResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v BackupListResult) string { return v.Id }).(pulumi.StringOutput)
}
func (o BackupListResultOutput) Lists() BackupListListArrayOutput {
return o.ApplyT(func(v BackupListResult) []BackupListList { return v.Lists }).(BackupListListArrayOutput)
}
func (o BackupListResultOutput) MaxNumber() pulumi.IntPtrOutput {
return o.ApplyT(func(v BackupListResult) *int { return v.MaxNumber }).(pulumi.IntPtrOutput)
}
func (o BackupListResultOutput) MysqlId() pulumi.StringOutput {
return o.ApplyT(func(v BackupListResult) string { return v.MysqlId }).(pulumi.StringOutput)
}
func (o BackupListResultOutput) ResultOutputFile() pulumi.StringPtrOutput {
return o.ApplyT(func(v BackupListResult) *string { return v.ResultOutputFile }).(pulumi.StringPtrOutput)
}
func init() {
pulumi.RegisterOutputType(BackupListResultOutput{})
}