-
Notifications
You must be signed in to change notification settings - Fork 51
/
pulumiTypes.go
142 lines (112 loc) · 6.33 KB
/
pulumiTypes.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
// 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 mariadb
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
type GetMariaDbServerStorageProfile struct {
// Whether autogrow is enabled or disabled for the storage.
AutoGrow string `pulumi:"autoGrow"`
// Backup retention days for the server.
BackupRetentionDays int `pulumi:"backupRetentionDays"`
// Whether Geo-redundant is enabled or not for server backup.
GeoRedundantBackup string `pulumi:"geoRedundantBackup"`
// The max storage allowed for a server.
StorageMb int `pulumi:"storageMb"`
}
// GetMariaDbServerStorageProfileInput is an input type that accepts GetMariaDbServerStorageProfileArgs and GetMariaDbServerStorageProfileOutput values.
// You can construct a concrete instance of `GetMariaDbServerStorageProfileInput` via:
//
// GetMariaDbServerStorageProfileArgs{...}
type GetMariaDbServerStorageProfileInput interface {
pulumi.Input
ToGetMariaDbServerStorageProfileOutput() GetMariaDbServerStorageProfileOutput
ToGetMariaDbServerStorageProfileOutputWithContext(context.Context) GetMariaDbServerStorageProfileOutput
}
type GetMariaDbServerStorageProfileArgs struct {
// Whether autogrow is enabled or disabled for the storage.
AutoGrow pulumi.StringInput `pulumi:"autoGrow"`
// Backup retention days for the server.
BackupRetentionDays pulumi.IntInput `pulumi:"backupRetentionDays"`
// Whether Geo-redundant is enabled or not for server backup.
GeoRedundantBackup pulumi.StringInput `pulumi:"geoRedundantBackup"`
// The max storage allowed for a server.
StorageMb pulumi.IntInput `pulumi:"storageMb"`
}
func (GetMariaDbServerStorageProfileArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetMariaDbServerStorageProfile)(nil)).Elem()
}
func (i GetMariaDbServerStorageProfileArgs) ToGetMariaDbServerStorageProfileOutput() GetMariaDbServerStorageProfileOutput {
return i.ToGetMariaDbServerStorageProfileOutputWithContext(context.Background())
}
func (i GetMariaDbServerStorageProfileArgs) ToGetMariaDbServerStorageProfileOutputWithContext(ctx context.Context) GetMariaDbServerStorageProfileOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetMariaDbServerStorageProfileOutput)
}
// GetMariaDbServerStorageProfileArrayInput is an input type that accepts GetMariaDbServerStorageProfileArray and GetMariaDbServerStorageProfileArrayOutput values.
// You can construct a concrete instance of `GetMariaDbServerStorageProfileArrayInput` via:
//
// GetMariaDbServerStorageProfileArray{ GetMariaDbServerStorageProfileArgs{...} }
type GetMariaDbServerStorageProfileArrayInput interface {
pulumi.Input
ToGetMariaDbServerStorageProfileArrayOutput() GetMariaDbServerStorageProfileArrayOutput
ToGetMariaDbServerStorageProfileArrayOutputWithContext(context.Context) GetMariaDbServerStorageProfileArrayOutput
}
type GetMariaDbServerStorageProfileArray []GetMariaDbServerStorageProfileInput
func (GetMariaDbServerStorageProfileArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetMariaDbServerStorageProfile)(nil)).Elem()
}
func (i GetMariaDbServerStorageProfileArray) ToGetMariaDbServerStorageProfileArrayOutput() GetMariaDbServerStorageProfileArrayOutput {
return i.ToGetMariaDbServerStorageProfileArrayOutputWithContext(context.Background())
}
func (i GetMariaDbServerStorageProfileArray) ToGetMariaDbServerStorageProfileArrayOutputWithContext(ctx context.Context) GetMariaDbServerStorageProfileArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetMariaDbServerStorageProfileArrayOutput)
}
type GetMariaDbServerStorageProfileOutput struct{ *pulumi.OutputState }
func (GetMariaDbServerStorageProfileOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetMariaDbServerStorageProfile)(nil)).Elem()
}
func (o GetMariaDbServerStorageProfileOutput) ToGetMariaDbServerStorageProfileOutput() GetMariaDbServerStorageProfileOutput {
return o
}
func (o GetMariaDbServerStorageProfileOutput) ToGetMariaDbServerStorageProfileOutputWithContext(ctx context.Context) GetMariaDbServerStorageProfileOutput {
return o
}
// Whether autogrow is enabled or disabled for the storage.
func (o GetMariaDbServerStorageProfileOutput) AutoGrow() pulumi.StringOutput {
return o.ApplyT(func(v GetMariaDbServerStorageProfile) string { return v.AutoGrow }).(pulumi.StringOutput)
}
// Backup retention days for the server.
func (o GetMariaDbServerStorageProfileOutput) BackupRetentionDays() pulumi.IntOutput {
return o.ApplyT(func(v GetMariaDbServerStorageProfile) int { return v.BackupRetentionDays }).(pulumi.IntOutput)
}
// Whether Geo-redundant is enabled or not for server backup.
func (o GetMariaDbServerStorageProfileOutput) GeoRedundantBackup() pulumi.StringOutput {
return o.ApplyT(func(v GetMariaDbServerStorageProfile) string { return v.GeoRedundantBackup }).(pulumi.StringOutput)
}
// The max storage allowed for a server.
func (o GetMariaDbServerStorageProfileOutput) StorageMb() pulumi.IntOutput {
return o.ApplyT(func(v GetMariaDbServerStorageProfile) int { return v.StorageMb }).(pulumi.IntOutput)
}
type GetMariaDbServerStorageProfileArrayOutput struct{ *pulumi.OutputState }
func (GetMariaDbServerStorageProfileArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetMariaDbServerStorageProfile)(nil)).Elem()
}
func (o GetMariaDbServerStorageProfileArrayOutput) ToGetMariaDbServerStorageProfileArrayOutput() GetMariaDbServerStorageProfileArrayOutput {
return o
}
func (o GetMariaDbServerStorageProfileArrayOutput) ToGetMariaDbServerStorageProfileArrayOutputWithContext(ctx context.Context) GetMariaDbServerStorageProfileArrayOutput {
return o
}
func (o GetMariaDbServerStorageProfileArrayOutput) Index(i pulumi.IntInput) GetMariaDbServerStorageProfileOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetMariaDbServerStorageProfile {
return vs[0].([]GetMariaDbServerStorageProfile)[vs[1].(int)]
}).(GetMariaDbServerStorageProfileOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*GetMariaDbServerStorageProfileInput)(nil)).Elem(), GetMariaDbServerStorageProfileArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*GetMariaDbServerStorageProfileArrayInput)(nil)).Elem(), GetMariaDbServerStorageProfileArray{})
pulumi.RegisterOutputType(GetMariaDbServerStorageProfileOutput{})
pulumi.RegisterOutputType(GetMariaDbServerStorageProfileArrayOutput{})
}