/
pulumiTypes.go
127 lines (98 loc) · 4.5 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
// 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 autoconfig
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/internal"
)
var _ = internal.GetEnvOrDefault
type CustomSwitchBinding struct {
// Custom auto-config policy.
Policy *string `pulumi:"policy"`
// Switch name.
SwitchId *string `pulumi:"switchId"`
}
// CustomSwitchBindingInput is an input type that accepts CustomSwitchBindingArgs and CustomSwitchBindingOutput values.
// You can construct a concrete instance of `CustomSwitchBindingInput` via:
//
// CustomSwitchBindingArgs{...}
type CustomSwitchBindingInput interface {
pulumi.Input
ToCustomSwitchBindingOutput() CustomSwitchBindingOutput
ToCustomSwitchBindingOutputWithContext(context.Context) CustomSwitchBindingOutput
}
type CustomSwitchBindingArgs struct {
// Custom auto-config policy.
Policy pulumi.StringPtrInput `pulumi:"policy"`
// Switch name.
SwitchId pulumi.StringPtrInput `pulumi:"switchId"`
}
func (CustomSwitchBindingArgs) ElementType() reflect.Type {
return reflect.TypeOf((*CustomSwitchBinding)(nil)).Elem()
}
func (i CustomSwitchBindingArgs) ToCustomSwitchBindingOutput() CustomSwitchBindingOutput {
return i.ToCustomSwitchBindingOutputWithContext(context.Background())
}
func (i CustomSwitchBindingArgs) ToCustomSwitchBindingOutputWithContext(ctx context.Context) CustomSwitchBindingOutput {
return pulumi.ToOutputWithContext(ctx, i).(CustomSwitchBindingOutput)
}
// CustomSwitchBindingArrayInput is an input type that accepts CustomSwitchBindingArray and CustomSwitchBindingArrayOutput values.
// You can construct a concrete instance of `CustomSwitchBindingArrayInput` via:
//
// CustomSwitchBindingArray{ CustomSwitchBindingArgs{...} }
type CustomSwitchBindingArrayInput interface {
pulumi.Input
ToCustomSwitchBindingArrayOutput() CustomSwitchBindingArrayOutput
ToCustomSwitchBindingArrayOutputWithContext(context.Context) CustomSwitchBindingArrayOutput
}
type CustomSwitchBindingArray []CustomSwitchBindingInput
func (CustomSwitchBindingArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]CustomSwitchBinding)(nil)).Elem()
}
func (i CustomSwitchBindingArray) ToCustomSwitchBindingArrayOutput() CustomSwitchBindingArrayOutput {
return i.ToCustomSwitchBindingArrayOutputWithContext(context.Background())
}
func (i CustomSwitchBindingArray) ToCustomSwitchBindingArrayOutputWithContext(ctx context.Context) CustomSwitchBindingArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(CustomSwitchBindingArrayOutput)
}
type CustomSwitchBindingOutput struct{ *pulumi.OutputState }
func (CustomSwitchBindingOutput) ElementType() reflect.Type {
return reflect.TypeOf((*CustomSwitchBinding)(nil)).Elem()
}
func (o CustomSwitchBindingOutput) ToCustomSwitchBindingOutput() CustomSwitchBindingOutput {
return o
}
func (o CustomSwitchBindingOutput) ToCustomSwitchBindingOutputWithContext(ctx context.Context) CustomSwitchBindingOutput {
return o
}
// Custom auto-config policy.
func (o CustomSwitchBindingOutput) Policy() pulumi.StringPtrOutput {
return o.ApplyT(func(v CustomSwitchBinding) *string { return v.Policy }).(pulumi.StringPtrOutput)
}
// Switch name.
func (o CustomSwitchBindingOutput) SwitchId() pulumi.StringPtrOutput {
return o.ApplyT(func(v CustomSwitchBinding) *string { return v.SwitchId }).(pulumi.StringPtrOutput)
}
type CustomSwitchBindingArrayOutput struct{ *pulumi.OutputState }
func (CustomSwitchBindingArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]CustomSwitchBinding)(nil)).Elem()
}
func (o CustomSwitchBindingArrayOutput) ToCustomSwitchBindingArrayOutput() CustomSwitchBindingArrayOutput {
return o
}
func (o CustomSwitchBindingArrayOutput) ToCustomSwitchBindingArrayOutputWithContext(ctx context.Context) CustomSwitchBindingArrayOutput {
return o
}
func (o CustomSwitchBindingArrayOutput) Index(i pulumi.IntInput) CustomSwitchBindingOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) CustomSwitchBinding {
return vs[0].([]CustomSwitchBinding)[vs[1].(int)]
}).(CustomSwitchBindingOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*CustomSwitchBindingInput)(nil)).Elem(), CustomSwitchBindingArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*CustomSwitchBindingArrayInput)(nil)).Elem(), CustomSwitchBindingArray{})
pulumi.RegisterOutputType(CustomSwitchBindingOutput{})
pulumi.RegisterOutputType(CustomSwitchBindingArrayOutput{})
}