/
pulumiTypes.go
215 lines (175 loc) · 8.11 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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
// 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 fluidrelay
import (
"context"
"reflect"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
var _ = internal.GetEnvOrDefault
type ServerIdentity struct {
// Specifies a list of User Assigned Managed Identity IDs to be assigned to this Fluid Relay Service.
IdentityIds []string `pulumi:"identityIds"`
// The Principal ID for the Service Principal associated with the Identity of this Fluid Relay Server.
PrincipalId *string `pulumi:"principalId"`
// The Tenant ID for the Service Principal associated with the Identity of this Fluid Relay Server.
TenantId *string `pulumi:"tenantId"`
// Specifies the type of Managed Service Identity that should be configured on this Fluid Relay Service. Possible values are `SystemAssigned`,`UserAssigned` and `SystemAssigned, UserAssigned`.
Type string `pulumi:"type"`
}
// ServerIdentityInput is an input type that accepts ServerIdentityArgs and ServerIdentityOutput values.
// You can construct a concrete instance of `ServerIdentityInput` via:
//
// ServerIdentityArgs{...}
type ServerIdentityInput interface {
pulumi.Input
ToServerIdentityOutput() ServerIdentityOutput
ToServerIdentityOutputWithContext(context.Context) ServerIdentityOutput
}
type ServerIdentityArgs struct {
// Specifies a list of User Assigned Managed Identity IDs to be assigned to this Fluid Relay Service.
IdentityIds pulumi.StringArrayInput `pulumi:"identityIds"`
// The Principal ID for the Service Principal associated with the Identity of this Fluid Relay Server.
PrincipalId pulumi.StringPtrInput `pulumi:"principalId"`
// The Tenant ID for the Service Principal associated with the Identity of this Fluid Relay Server.
TenantId pulumi.StringPtrInput `pulumi:"tenantId"`
// Specifies the type of Managed Service Identity that should be configured on this Fluid Relay Service. Possible values are `SystemAssigned`,`UserAssigned` and `SystemAssigned, UserAssigned`.
Type pulumi.StringInput `pulumi:"type"`
}
func (ServerIdentityArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ServerIdentity)(nil)).Elem()
}
func (i ServerIdentityArgs) ToServerIdentityOutput() ServerIdentityOutput {
return i.ToServerIdentityOutputWithContext(context.Background())
}
func (i ServerIdentityArgs) ToServerIdentityOutputWithContext(ctx context.Context) ServerIdentityOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServerIdentityOutput)
}
func (i ServerIdentityArgs) ToServerIdentityPtrOutput() ServerIdentityPtrOutput {
return i.ToServerIdentityPtrOutputWithContext(context.Background())
}
func (i ServerIdentityArgs) ToServerIdentityPtrOutputWithContext(ctx context.Context) ServerIdentityPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServerIdentityOutput).ToServerIdentityPtrOutputWithContext(ctx)
}
// ServerIdentityPtrInput is an input type that accepts ServerIdentityArgs, ServerIdentityPtr and ServerIdentityPtrOutput values.
// You can construct a concrete instance of `ServerIdentityPtrInput` via:
//
// ServerIdentityArgs{...}
//
// or:
//
// nil
type ServerIdentityPtrInput interface {
pulumi.Input
ToServerIdentityPtrOutput() ServerIdentityPtrOutput
ToServerIdentityPtrOutputWithContext(context.Context) ServerIdentityPtrOutput
}
type serverIdentityPtrType ServerIdentityArgs
func ServerIdentityPtr(v *ServerIdentityArgs) ServerIdentityPtrInput {
return (*serverIdentityPtrType)(v)
}
func (*serverIdentityPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ServerIdentity)(nil)).Elem()
}
func (i *serverIdentityPtrType) ToServerIdentityPtrOutput() ServerIdentityPtrOutput {
return i.ToServerIdentityPtrOutputWithContext(context.Background())
}
func (i *serverIdentityPtrType) ToServerIdentityPtrOutputWithContext(ctx context.Context) ServerIdentityPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServerIdentityPtrOutput)
}
type ServerIdentityOutput struct{ *pulumi.OutputState }
func (ServerIdentityOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ServerIdentity)(nil)).Elem()
}
func (o ServerIdentityOutput) ToServerIdentityOutput() ServerIdentityOutput {
return o
}
func (o ServerIdentityOutput) ToServerIdentityOutputWithContext(ctx context.Context) ServerIdentityOutput {
return o
}
func (o ServerIdentityOutput) ToServerIdentityPtrOutput() ServerIdentityPtrOutput {
return o.ToServerIdentityPtrOutputWithContext(context.Background())
}
func (o ServerIdentityOutput) ToServerIdentityPtrOutputWithContext(ctx context.Context) ServerIdentityPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ServerIdentity) *ServerIdentity {
return &v
}).(ServerIdentityPtrOutput)
}
// Specifies a list of User Assigned Managed Identity IDs to be assigned to this Fluid Relay Service.
func (o ServerIdentityOutput) IdentityIds() pulumi.StringArrayOutput {
return o.ApplyT(func(v ServerIdentity) []string { return v.IdentityIds }).(pulumi.StringArrayOutput)
}
// The Principal ID for the Service Principal associated with the Identity of this Fluid Relay Server.
func (o ServerIdentityOutput) PrincipalId() pulumi.StringPtrOutput {
return o.ApplyT(func(v ServerIdentity) *string { return v.PrincipalId }).(pulumi.StringPtrOutput)
}
// The Tenant ID for the Service Principal associated with the Identity of this Fluid Relay Server.
func (o ServerIdentityOutput) TenantId() pulumi.StringPtrOutput {
return o.ApplyT(func(v ServerIdentity) *string { return v.TenantId }).(pulumi.StringPtrOutput)
}
// Specifies the type of Managed Service Identity that should be configured on this Fluid Relay Service. Possible values are `SystemAssigned`,`UserAssigned` and `SystemAssigned, UserAssigned`.
func (o ServerIdentityOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v ServerIdentity) string { return v.Type }).(pulumi.StringOutput)
}
type ServerIdentityPtrOutput struct{ *pulumi.OutputState }
func (ServerIdentityPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ServerIdentity)(nil)).Elem()
}
func (o ServerIdentityPtrOutput) ToServerIdentityPtrOutput() ServerIdentityPtrOutput {
return o
}
func (o ServerIdentityPtrOutput) ToServerIdentityPtrOutputWithContext(ctx context.Context) ServerIdentityPtrOutput {
return o
}
func (o ServerIdentityPtrOutput) Elem() ServerIdentityOutput {
return o.ApplyT(func(v *ServerIdentity) ServerIdentity {
if v != nil {
return *v
}
var ret ServerIdentity
return ret
}).(ServerIdentityOutput)
}
// Specifies a list of User Assigned Managed Identity IDs to be assigned to this Fluid Relay Service.
func (o ServerIdentityPtrOutput) IdentityIds() pulumi.StringArrayOutput {
return o.ApplyT(func(v *ServerIdentity) []string {
if v == nil {
return nil
}
return v.IdentityIds
}).(pulumi.StringArrayOutput)
}
// The Principal ID for the Service Principal associated with the Identity of this Fluid Relay Server.
func (o ServerIdentityPtrOutput) PrincipalId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ServerIdentity) *string {
if v == nil {
return nil
}
return v.PrincipalId
}).(pulumi.StringPtrOutput)
}
// The Tenant ID for the Service Principal associated with the Identity of this Fluid Relay Server.
func (o ServerIdentityPtrOutput) TenantId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ServerIdentity) *string {
if v == nil {
return nil
}
return v.TenantId
}).(pulumi.StringPtrOutput)
}
// Specifies the type of Managed Service Identity that should be configured on this Fluid Relay Service. Possible values are `SystemAssigned`,`UserAssigned` and `SystemAssigned, UserAssigned`.
func (o ServerIdentityPtrOutput) Type() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ServerIdentity) *string {
if v == nil {
return nil
}
return &v.Type
}).(pulumi.StringPtrOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*ServerIdentityInput)(nil)).Elem(), ServerIdentityArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*ServerIdentityPtrInput)(nil)).Elem(), ServerIdentityArgs{})
pulumi.RegisterOutputType(ServerIdentityOutput{})
pulumi.RegisterOutputType(ServerIdentityPtrOutput{})
}