/
pulumiTypes.go
186 lines (151 loc) · 7.71 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package datafusion
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
type InstanceNetworkConfig struct {
// The IP range in CIDR notation to use for the managed Data Fusion instance
// nodes. This range must not overlap with any other ranges used in the Data Fusion instance network.
IpAllocation string `pulumi:"ipAllocation"`
// Name of the network in the project with which the tenant project
// will be peered for executing pipelines. In case of shared VPC where the network resides in another host
// project the network should specified in the form of projects/{host-project-id}/global/networks/{network}
Network string `pulumi:"network"`
}
// InstanceNetworkConfigInput is an input type that accepts InstanceNetworkConfigArgs and InstanceNetworkConfigOutput values.
// You can construct a concrete instance of `InstanceNetworkConfigInput` via:
//
// InstanceNetworkConfigArgs{...}
type InstanceNetworkConfigInput interface {
pulumi.Input
ToInstanceNetworkConfigOutput() InstanceNetworkConfigOutput
ToInstanceNetworkConfigOutputWithContext(context.Context) InstanceNetworkConfigOutput
}
type InstanceNetworkConfigArgs struct {
// The IP range in CIDR notation to use for the managed Data Fusion instance
// nodes. This range must not overlap with any other ranges used in the Data Fusion instance network.
IpAllocation pulumi.StringInput `pulumi:"ipAllocation"`
// Name of the network in the project with which the tenant project
// will be peered for executing pipelines. In case of shared VPC where the network resides in another host
// project the network should specified in the form of projects/{host-project-id}/global/networks/{network}
Network pulumi.StringInput `pulumi:"network"`
}
func (InstanceNetworkConfigArgs) ElementType() reflect.Type {
return reflect.TypeOf((*InstanceNetworkConfig)(nil)).Elem()
}
func (i InstanceNetworkConfigArgs) ToInstanceNetworkConfigOutput() InstanceNetworkConfigOutput {
return i.ToInstanceNetworkConfigOutputWithContext(context.Background())
}
func (i InstanceNetworkConfigArgs) ToInstanceNetworkConfigOutputWithContext(ctx context.Context) InstanceNetworkConfigOutput {
return pulumi.ToOutputWithContext(ctx, i).(InstanceNetworkConfigOutput)
}
func (i InstanceNetworkConfigArgs) ToInstanceNetworkConfigPtrOutput() InstanceNetworkConfigPtrOutput {
return i.ToInstanceNetworkConfigPtrOutputWithContext(context.Background())
}
func (i InstanceNetworkConfigArgs) ToInstanceNetworkConfigPtrOutputWithContext(ctx context.Context) InstanceNetworkConfigPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(InstanceNetworkConfigOutput).ToInstanceNetworkConfigPtrOutputWithContext(ctx)
}
// InstanceNetworkConfigPtrInput is an input type that accepts InstanceNetworkConfigArgs, InstanceNetworkConfigPtr and InstanceNetworkConfigPtrOutput values.
// You can construct a concrete instance of `InstanceNetworkConfigPtrInput` via:
//
// InstanceNetworkConfigArgs{...}
//
// or:
//
// nil
type InstanceNetworkConfigPtrInput interface {
pulumi.Input
ToInstanceNetworkConfigPtrOutput() InstanceNetworkConfigPtrOutput
ToInstanceNetworkConfigPtrOutputWithContext(context.Context) InstanceNetworkConfigPtrOutput
}
type instanceNetworkConfigPtrType InstanceNetworkConfigArgs
func InstanceNetworkConfigPtr(v *InstanceNetworkConfigArgs) InstanceNetworkConfigPtrInput {
return (*instanceNetworkConfigPtrType)(v)
}
func (*instanceNetworkConfigPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**InstanceNetworkConfig)(nil)).Elem()
}
func (i *instanceNetworkConfigPtrType) ToInstanceNetworkConfigPtrOutput() InstanceNetworkConfigPtrOutput {
return i.ToInstanceNetworkConfigPtrOutputWithContext(context.Background())
}
func (i *instanceNetworkConfigPtrType) ToInstanceNetworkConfigPtrOutputWithContext(ctx context.Context) InstanceNetworkConfigPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(InstanceNetworkConfigPtrOutput)
}
type InstanceNetworkConfigOutput struct{ *pulumi.OutputState }
func (InstanceNetworkConfigOutput) ElementType() reflect.Type {
return reflect.TypeOf((*InstanceNetworkConfig)(nil)).Elem()
}
func (o InstanceNetworkConfigOutput) ToInstanceNetworkConfigOutput() InstanceNetworkConfigOutput {
return o
}
func (o InstanceNetworkConfigOutput) ToInstanceNetworkConfigOutputWithContext(ctx context.Context) InstanceNetworkConfigOutput {
return o
}
func (o InstanceNetworkConfigOutput) ToInstanceNetworkConfigPtrOutput() InstanceNetworkConfigPtrOutput {
return o.ToInstanceNetworkConfigPtrOutputWithContext(context.Background())
}
func (o InstanceNetworkConfigOutput) ToInstanceNetworkConfigPtrOutputWithContext(ctx context.Context) InstanceNetworkConfigPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v InstanceNetworkConfig) *InstanceNetworkConfig {
return &v
}).(InstanceNetworkConfigPtrOutput)
}
// The IP range in CIDR notation to use for the managed Data Fusion instance
// nodes. This range must not overlap with any other ranges used in the Data Fusion instance network.
func (o InstanceNetworkConfigOutput) IpAllocation() pulumi.StringOutput {
return o.ApplyT(func(v InstanceNetworkConfig) string { return v.IpAllocation }).(pulumi.StringOutput)
}
// Name of the network in the project with which the tenant project
// will be peered for executing pipelines. In case of shared VPC where the network resides in another host
// project the network should specified in the form of projects/{host-project-id}/global/networks/{network}
func (o InstanceNetworkConfigOutput) Network() pulumi.StringOutput {
return o.ApplyT(func(v InstanceNetworkConfig) string { return v.Network }).(pulumi.StringOutput)
}
type InstanceNetworkConfigPtrOutput struct{ *pulumi.OutputState }
func (InstanceNetworkConfigPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**InstanceNetworkConfig)(nil)).Elem()
}
func (o InstanceNetworkConfigPtrOutput) ToInstanceNetworkConfigPtrOutput() InstanceNetworkConfigPtrOutput {
return o
}
func (o InstanceNetworkConfigPtrOutput) ToInstanceNetworkConfigPtrOutputWithContext(ctx context.Context) InstanceNetworkConfigPtrOutput {
return o
}
func (o InstanceNetworkConfigPtrOutput) Elem() InstanceNetworkConfigOutput {
return o.ApplyT(func(v *InstanceNetworkConfig) InstanceNetworkConfig {
if v != nil {
return *v
}
var ret InstanceNetworkConfig
return ret
}).(InstanceNetworkConfigOutput)
}
// The IP range in CIDR notation to use for the managed Data Fusion instance
// nodes. This range must not overlap with any other ranges used in the Data Fusion instance network.
func (o InstanceNetworkConfigPtrOutput) IpAllocation() pulumi.StringPtrOutput {
return o.ApplyT(func(v *InstanceNetworkConfig) *string {
if v == nil {
return nil
}
return &v.IpAllocation
}).(pulumi.StringPtrOutput)
}
// Name of the network in the project with which the tenant project
// will be peered for executing pipelines. In case of shared VPC where the network resides in another host
// project the network should specified in the form of projects/{host-project-id}/global/networks/{network}
func (o InstanceNetworkConfigPtrOutput) Network() pulumi.StringPtrOutput {
return o.ApplyT(func(v *InstanceNetworkConfig) *string {
if v == nil {
return nil
}
return &v.Network
}).(pulumi.StringPtrOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*InstanceNetworkConfigInput)(nil)).Elem(), InstanceNetworkConfigArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*InstanceNetworkConfigPtrInput)(nil)).Elem(), InstanceNetworkConfigArgs{})
pulumi.RegisterOutputType(InstanceNetworkConfigOutput{})
pulumi.RegisterOutputType(InstanceNetworkConfigPtrOutput{})
}