/
pulumiTypes.go
188 lines (150 loc) · 8.32 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
// 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 arc
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 ResourceBridgeApplianceIdentity struct {
PrincipalId *string `pulumi:"principalId"`
TenantId *string `pulumi:"tenantId"`
// Specifies the type of Managed Service Identity that should be configured on this Arc Resource Bridge Appliance. The only possible value is `SystemAssigned`. Changing this forces a new resource to be created.
Type string `pulumi:"type"`
}
// ResourceBridgeApplianceIdentityInput is an input type that accepts ResourceBridgeApplianceIdentityArgs and ResourceBridgeApplianceIdentityOutput values.
// You can construct a concrete instance of `ResourceBridgeApplianceIdentityInput` via:
//
// ResourceBridgeApplianceIdentityArgs{...}
type ResourceBridgeApplianceIdentityInput interface {
pulumi.Input
ToResourceBridgeApplianceIdentityOutput() ResourceBridgeApplianceIdentityOutput
ToResourceBridgeApplianceIdentityOutputWithContext(context.Context) ResourceBridgeApplianceIdentityOutput
}
type ResourceBridgeApplianceIdentityArgs struct {
PrincipalId pulumi.StringPtrInput `pulumi:"principalId"`
TenantId pulumi.StringPtrInput `pulumi:"tenantId"`
// Specifies the type of Managed Service Identity that should be configured on this Arc Resource Bridge Appliance. The only possible value is `SystemAssigned`. Changing this forces a new resource to be created.
Type pulumi.StringInput `pulumi:"type"`
}
func (ResourceBridgeApplianceIdentityArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ResourceBridgeApplianceIdentity)(nil)).Elem()
}
func (i ResourceBridgeApplianceIdentityArgs) ToResourceBridgeApplianceIdentityOutput() ResourceBridgeApplianceIdentityOutput {
return i.ToResourceBridgeApplianceIdentityOutputWithContext(context.Background())
}
func (i ResourceBridgeApplianceIdentityArgs) ToResourceBridgeApplianceIdentityOutputWithContext(ctx context.Context) ResourceBridgeApplianceIdentityOutput {
return pulumi.ToOutputWithContext(ctx, i).(ResourceBridgeApplianceIdentityOutput)
}
func (i ResourceBridgeApplianceIdentityArgs) ToResourceBridgeApplianceIdentityPtrOutput() ResourceBridgeApplianceIdentityPtrOutput {
return i.ToResourceBridgeApplianceIdentityPtrOutputWithContext(context.Background())
}
func (i ResourceBridgeApplianceIdentityArgs) ToResourceBridgeApplianceIdentityPtrOutputWithContext(ctx context.Context) ResourceBridgeApplianceIdentityPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ResourceBridgeApplianceIdentityOutput).ToResourceBridgeApplianceIdentityPtrOutputWithContext(ctx)
}
// ResourceBridgeApplianceIdentityPtrInput is an input type that accepts ResourceBridgeApplianceIdentityArgs, ResourceBridgeApplianceIdentityPtr and ResourceBridgeApplianceIdentityPtrOutput values.
// You can construct a concrete instance of `ResourceBridgeApplianceIdentityPtrInput` via:
//
// ResourceBridgeApplianceIdentityArgs{...}
//
// or:
//
// nil
type ResourceBridgeApplianceIdentityPtrInput interface {
pulumi.Input
ToResourceBridgeApplianceIdentityPtrOutput() ResourceBridgeApplianceIdentityPtrOutput
ToResourceBridgeApplianceIdentityPtrOutputWithContext(context.Context) ResourceBridgeApplianceIdentityPtrOutput
}
type resourceBridgeApplianceIdentityPtrType ResourceBridgeApplianceIdentityArgs
func ResourceBridgeApplianceIdentityPtr(v *ResourceBridgeApplianceIdentityArgs) ResourceBridgeApplianceIdentityPtrInput {
return (*resourceBridgeApplianceIdentityPtrType)(v)
}
func (*resourceBridgeApplianceIdentityPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ResourceBridgeApplianceIdentity)(nil)).Elem()
}
func (i *resourceBridgeApplianceIdentityPtrType) ToResourceBridgeApplianceIdentityPtrOutput() ResourceBridgeApplianceIdentityPtrOutput {
return i.ToResourceBridgeApplianceIdentityPtrOutputWithContext(context.Background())
}
func (i *resourceBridgeApplianceIdentityPtrType) ToResourceBridgeApplianceIdentityPtrOutputWithContext(ctx context.Context) ResourceBridgeApplianceIdentityPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ResourceBridgeApplianceIdentityPtrOutput)
}
type ResourceBridgeApplianceIdentityOutput struct{ *pulumi.OutputState }
func (ResourceBridgeApplianceIdentityOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ResourceBridgeApplianceIdentity)(nil)).Elem()
}
func (o ResourceBridgeApplianceIdentityOutput) ToResourceBridgeApplianceIdentityOutput() ResourceBridgeApplianceIdentityOutput {
return o
}
func (o ResourceBridgeApplianceIdentityOutput) ToResourceBridgeApplianceIdentityOutputWithContext(ctx context.Context) ResourceBridgeApplianceIdentityOutput {
return o
}
func (o ResourceBridgeApplianceIdentityOutput) ToResourceBridgeApplianceIdentityPtrOutput() ResourceBridgeApplianceIdentityPtrOutput {
return o.ToResourceBridgeApplianceIdentityPtrOutputWithContext(context.Background())
}
func (o ResourceBridgeApplianceIdentityOutput) ToResourceBridgeApplianceIdentityPtrOutputWithContext(ctx context.Context) ResourceBridgeApplianceIdentityPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ResourceBridgeApplianceIdentity) *ResourceBridgeApplianceIdentity {
return &v
}).(ResourceBridgeApplianceIdentityPtrOutput)
}
func (o ResourceBridgeApplianceIdentityOutput) PrincipalId() pulumi.StringPtrOutput {
return o.ApplyT(func(v ResourceBridgeApplianceIdentity) *string { return v.PrincipalId }).(pulumi.StringPtrOutput)
}
func (o ResourceBridgeApplianceIdentityOutput) TenantId() pulumi.StringPtrOutput {
return o.ApplyT(func(v ResourceBridgeApplianceIdentity) *string { return v.TenantId }).(pulumi.StringPtrOutput)
}
// Specifies the type of Managed Service Identity that should be configured on this Arc Resource Bridge Appliance. The only possible value is `SystemAssigned`. Changing this forces a new resource to be created.
func (o ResourceBridgeApplianceIdentityOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v ResourceBridgeApplianceIdentity) string { return v.Type }).(pulumi.StringOutput)
}
type ResourceBridgeApplianceIdentityPtrOutput struct{ *pulumi.OutputState }
func (ResourceBridgeApplianceIdentityPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ResourceBridgeApplianceIdentity)(nil)).Elem()
}
func (o ResourceBridgeApplianceIdentityPtrOutput) ToResourceBridgeApplianceIdentityPtrOutput() ResourceBridgeApplianceIdentityPtrOutput {
return o
}
func (o ResourceBridgeApplianceIdentityPtrOutput) ToResourceBridgeApplianceIdentityPtrOutputWithContext(ctx context.Context) ResourceBridgeApplianceIdentityPtrOutput {
return o
}
func (o ResourceBridgeApplianceIdentityPtrOutput) Elem() ResourceBridgeApplianceIdentityOutput {
return o.ApplyT(func(v *ResourceBridgeApplianceIdentity) ResourceBridgeApplianceIdentity {
if v != nil {
return *v
}
var ret ResourceBridgeApplianceIdentity
return ret
}).(ResourceBridgeApplianceIdentityOutput)
}
func (o ResourceBridgeApplianceIdentityPtrOutput) PrincipalId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ResourceBridgeApplianceIdentity) *string {
if v == nil {
return nil
}
return v.PrincipalId
}).(pulumi.StringPtrOutput)
}
func (o ResourceBridgeApplianceIdentityPtrOutput) TenantId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ResourceBridgeApplianceIdentity) *string {
if v == nil {
return nil
}
return v.TenantId
}).(pulumi.StringPtrOutput)
}
// Specifies the type of Managed Service Identity that should be configured on this Arc Resource Bridge Appliance. The only possible value is `SystemAssigned`. Changing this forces a new resource to be created.
func (o ResourceBridgeApplianceIdentityPtrOutput) Type() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ResourceBridgeApplianceIdentity) *string {
if v == nil {
return nil
}
return &v.Type
}).(pulumi.StringPtrOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*ResourceBridgeApplianceIdentityInput)(nil)).Elem(), ResourceBridgeApplianceIdentityArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*ResourceBridgeApplianceIdentityPtrInput)(nil)).Elem(), ResourceBridgeApplianceIdentityArgs{})
pulumi.RegisterOutputType(ResourceBridgeApplianceIdentityOutput{})
pulumi.RegisterOutputType(ResourceBridgeApplianceIdentityPtrOutput{})
}