-
Notifications
You must be signed in to change notification settings - Fork 2
/
pulumiTypes.go
131 lines (102 loc) · 4.48 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
// *** 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 profile
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
type MappingMapping struct {
// Combination or single source properties that will be mapped to the target property.
Expression string `pulumi:"expression"`
// Key of mapping.
Id string `pulumi:"id"`
// Whether to update target properties on user create & update or just on create.
PushStatus *string `pulumi:"pushStatus"`
}
// MappingMappingInput is an input type that accepts MappingMappingArgs and MappingMappingOutput values.
// You can construct a concrete instance of `MappingMappingInput` via:
//
// MappingMappingArgs{...}
type MappingMappingInput interface {
pulumi.Input
ToMappingMappingOutput() MappingMappingOutput
ToMappingMappingOutputWithContext(context.Context) MappingMappingOutput
}
type MappingMappingArgs struct {
// Combination or single source properties that will be mapped to the target property.
Expression pulumi.StringInput `pulumi:"expression"`
// Key of mapping.
Id pulumi.StringInput `pulumi:"id"`
// Whether to update target properties on user create & update or just on create.
PushStatus pulumi.StringPtrInput `pulumi:"pushStatus"`
}
func (MappingMappingArgs) ElementType() reflect.Type {
return reflect.TypeOf((*MappingMapping)(nil)).Elem()
}
func (i MappingMappingArgs) ToMappingMappingOutput() MappingMappingOutput {
return i.ToMappingMappingOutputWithContext(context.Background())
}
func (i MappingMappingArgs) ToMappingMappingOutputWithContext(ctx context.Context) MappingMappingOutput {
return pulumi.ToOutputWithContext(ctx, i).(MappingMappingOutput)
}
// MappingMappingArrayInput is an input type that accepts MappingMappingArray and MappingMappingArrayOutput values.
// You can construct a concrete instance of `MappingMappingArrayInput` via:
//
// MappingMappingArray{ MappingMappingArgs{...} }
type MappingMappingArrayInput interface {
pulumi.Input
ToMappingMappingArrayOutput() MappingMappingArrayOutput
ToMappingMappingArrayOutputWithContext(context.Context) MappingMappingArrayOutput
}
type MappingMappingArray []MappingMappingInput
func (MappingMappingArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]MappingMapping)(nil)).Elem()
}
func (i MappingMappingArray) ToMappingMappingArrayOutput() MappingMappingArrayOutput {
return i.ToMappingMappingArrayOutputWithContext(context.Background())
}
func (i MappingMappingArray) ToMappingMappingArrayOutputWithContext(ctx context.Context) MappingMappingArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(MappingMappingArrayOutput)
}
type MappingMappingOutput struct{ *pulumi.OutputState }
func (MappingMappingOutput) ElementType() reflect.Type {
return reflect.TypeOf((*MappingMapping)(nil)).Elem()
}
func (o MappingMappingOutput) ToMappingMappingOutput() MappingMappingOutput {
return o
}
func (o MappingMappingOutput) ToMappingMappingOutputWithContext(ctx context.Context) MappingMappingOutput {
return o
}
// Combination or single source properties that will be mapped to the target property.
func (o MappingMappingOutput) Expression() pulumi.StringOutput {
return o.ApplyT(func(v MappingMapping) string { return v.Expression }).(pulumi.StringOutput)
}
// Key of mapping.
func (o MappingMappingOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v MappingMapping) string { return v.Id }).(pulumi.StringOutput)
}
// Whether to update target properties on user create & update or just on create.
func (o MappingMappingOutput) PushStatus() pulumi.StringPtrOutput {
return o.ApplyT(func(v MappingMapping) *string { return v.PushStatus }).(pulumi.StringPtrOutput)
}
type MappingMappingArrayOutput struct{ *pulumi.OutputState }
func (MappingMappingArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]MappingMapping)(nil)).Elem()
}
func (o MappingMappingArrayOutput) ToMappingMappingArrayOutput() MappingMappingArrayOutput {
return o
}
func (o MappingMappingArrayOutput) ToMappingMappingArrayOutputWithContext(ctx context.Context) MappingMappingArrayOutput {
return o
}
func (o MappingMappingArrayOutput) Index(i pulumi.IntInput) MappingMappingOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) MappingMapping {
return vs[0].([]MappingMapping)[vs[1].(int)]
}).(MappingMappingOutput)
}
func init() {
pulumi.RegisterOutputType(MappingMappingOutput{})
pulumi.RegisterOutputType(MappingMappingArrayOutput{})
}