generated from pulumi/pulumi-tf-provider-boilerplate
/
getSksNodepool.go
285 lines (250 loc) · 13.6 KB
/
getSksNodepool.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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
// 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 exoscale
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-exoscale/sdk/go/exoscale/internal"
)
func LookupSksNodepool(ctx *pulumi.Context, args *LookupSksNodepoolArgs, opts ...pulumi.InvokeOption) (*LookupSksNodepoolResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupSksNodepoolResult
err := ctx.Invoke("exoscale:index/getSksNodepool:getSksNodepool", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getSksNodepool.
type LookupSksNodepoolArgs struct {
// A list of exoscale*anti*affinity_group (IDs) to be attached to the managed instances.
AntiAffinityGroupIds []string `pulumi:"antiAffinityGroupIds"`
ClusterId string `pulumi:"clusterId"`
// The pool creation date.
CreatedAt *string `pulumi:"createdAt"`
// A deploy target ID.
DeployTargetId *string `pulumi:"deployTargetId"`
// A free-form text describing the pool.
Description *string `pulumi:"description"`
// The managed instances disk size (GiB; default: `50`).
DiskSize *int `pulumi:"diskSize"`
// The ID of this resource.
Id *string `pulumi:"id"`
// The underlying exoscale*instance*pool ID.
InstancePoolId *string `pulumi:"instancePoolId"`
// The string used to prefix the managed instances name (default `pool`).
InstancePrefix *string `pulumi:"instancePrefix"`
// The managed compute instances type (`<family>.<size>`, e.g. `standard.medium`; use the [Exoscale CLI](https://github.com/exoscale/cli/) - `exo compute instance-type list` - for the list of available types).
InstanceType *string `pulumi:"instanceType"`
// A map of key/value labels.
Labels map[string]string `pulumi:"labels"`
Name *string `pulumi:"name"`
// A list of exoscale*private*network (IDs) to be attached to the managed instances.
PrivateNetworkIds []string `pulumi:"privateNetworkIds"`
// A list of exoscale*security*group (IDs) to be attached to the managed instances.
SecurityGroupIds []string `pulumi:"securityGroupIds"`
Size *int `pulumi:"size"`
// The current pool state.
State *string `pulumi:"state"`
// Create nodes with non-standard partitioning for persistent storage (requires min 100G of disk space) (may only be set at creation time).
StorageLvm *bool `pulumi:"storageLvm"`
// A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \n\n = "\n\n:\n\n" }').
Taints map[string]string `pulumi:"taints"`
// The managed instances template ID.
TemplateId *string `pulumi:"templateId"`
// The managed instances version.
Version *string `pulumi:"version"`
Zone string `pulumi:"zone"`
}
// A collection of values returned by getSksNodepool.
type LookupSksNodepoolResult struct {
// A list of exoscale*anti*affinity_group (IDs) to be attached to the managed instances.
AntiAffinityGroupIds []string `pulumi:"antiAffinityGroupIds"`
ClusterId string `pulumi:"clusterId"`
// The pool creation date.
CreatedAt string `pulumi:"createdAt"`
// A deploy target ID.
DeployTargetId *string `pulumi:"deployTargetId"`
// A free-form text describing the pool.
Description *string `pulumi:"description"`
// The managed instances disk size (GiB; default: `50`).
DiskSize *int `pulumi:"diskSize"`
// The ID of this resource.
Id *string `pulumi:"id"`
// The underlying exoscale*instance*pool ID.
InstancePoolId string `pulumi:"instancePoolId"`
// The string used to prefix the managed instances name (default `pool`).
InstancePrefix *string `pulumi:"instancePrefix"`
// The managed compute instances type (`<family>.<size>`, e.g. `standard.medium`; use the [Exoscale CLI](https://github.com/exoscale/cli/) - `exo compute instance-type list` - for the list of available types).
InstanceType *string `pulumi:"instanceType"`
// A map of key/value labels.
Labels map[string]string `pulumi:"labels"`
Name *string `pulumi:"name"`
// A list of exoscale*private*network (IDs) to be attached to the managed instances.
PrivateNetworkIds []string `pulumi:"privateNetworkIds"`
// A list of exoscale*security*group (IDs) to be attached to the managed instances.
SecurityGroupIds []string `pulumi:"securityGroupIds"`
Size *int `pulumi:"size"`
// The current pool state.
State string `pulumi:"state"`
// Create nodes with non-standard partitioning for persistent storage (requires min 100G of disk space) (may only be set at creation time).
StorageLvm *bool `pulumi:"storageLvm"`
// A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \n\n = "\n\n:\n\n" }').
Taints map[string]string `pulumi:"taints"`
// The managed instances template ID.
TemplateId string `pulumi:"templateId"`
// The managed instances version.
Version string `pulumi:"version"`
Zone string `pulumi:"zone"`
}
func LookupSksNodepoolOutput(ctx *pulumi.Context, args LookupSksNodepoolOutputArgs, opts ...pulumi.InvokeOption) LookupSksNodepoolResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupSksNodepoolResult, error) {
args := v.(LookupSksNodepoolArgs)
r, err := LookupSksNodepool(ctx, &args, opts...)
var s LookupSksNodepoolResult
if r != nil {
s = *r
}
return s, err
}).(LookupSksNodepoolResultOutput)
}
// A collection of arguments for invoking getSksNodepool.
type LookupSksNodepoolOutputArgs struct {
// A list of exoscale*anti*affinity_group (IDs) to be attached to the managed instances.
AntiAffinityGroupIds pulumi.StringArrayInput `pulumi:"antiAffinityGroupIds"`
ClusterId pulumi.StringInput `pulumi:"clusterId"`
// The pool creation date.
CreatedAt pulumi.StringPtrInput `pulumi:"createdAt"`
// A deploy target ID.
DeployTargetId pulumi.StringPtrInput `pulumi:"deployTargetId"`
// A free-form text describing the pool.
Description pulumi.StringPtrInput `pulumi:"description"`
// The managed instances disk size (GiB; default: `50`).
DiskSize pulumi.IntPtrInput `pulumi:"diskSize"`
// The ID of this resource.
Id pulumi.StringPtrInput `pulumi:"id"`
// The underlying exoscale*instance*pool ID.
InstancePoolId pulumi.StringPtrInput `pulumi:"instancePoolId"`
// The string used to prefix the managed instances name (default `pool`).
InstancePrefix pulumi.StringPtrInput `pulumi:"instancePrefix"`
// The managed compute instances type (`<family>.<size>`, e.g. `standard.medium`; use the [Exoscale CLI](https://github.com/exoscale/cli/) - `exo compute instance-type list` - for the list of available types).
InstanceType pulumi.StringPtrInput `pulumi:"instanceType"`
// A map of key/value labels.
Labels pulumi.StringMapInput `pulumi:"labels"`
Name pulumi.StringPtrInput `pulumi:"name"`
// A list of exoscale*private*network (IDs) to be attached to the managed instances.
PrivateNetworkIds pulumi.StringArrayInput `pulumi:"privateNetworkIds"`
// A list of exoscale*security*group (IDs) to be attached to the managed instances.
SecurityGroupIds pulumi.StringArrayInput `pulumi:"securityGroupIds"`
Size pulumi.IntPtrInput `pulumi:"size"`
// The current pool state.
State pulumi.StringPtrInput `pulumi:"state"`
// Create nodes with non-standard partitioning for persistent storage (requires min 100G of disk space) (may only be set at creation time).
StorageLvm pulumi.BoolPtrInput `pulumi:"storageLvm"`
// A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \n\n = "\n\n:\n\n" }').
Taints pulumi.StringMapInput `pulumi:"taints"`
// The managed instances template ID.
TemplateId pulumi.StringPtrInput `pulumi:"templateId"`
// The managed instances version.
Version pulumi.StringPtrInput `pulumi:"version"`
Zone pulumi.StringInput `pulumi:"zone"`
}
func (LookupSksNodepoolOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupSksNodepoolArgs)(nil)).Elem()
}
// A collection of values returned by getSksNodepool.
type LookupSksNodepoolResultOutput struct{ *pulumi.OutputState }
func (LookupSksNodepoolResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupSksNodepoolResult)(nil)).Elem()
}
func (o LookupSksNodepoolResultOutput) ToLookupSksNodepoolResultOutput() LookupSksNodepoolResultOutput {
return o
}
func (o LookupSksNodepoolResultOutput) ToLookupSksNodepoolResultOutputWithContext(ctx context.Context) LookupSksNodepoolResultOutput {
return o
}
// A list of exoscale*anti*affinity_group (IDs) to be attached to the managed instances.
func (o LookupSksNodepoolResultOutput) AntiAffinityGroupIds() pulumi.StringArrayOutput {
return o.ApplyT(func(v LookupSksNodepoolResult) []string { return v.AntiAffinityGroupIds }).(pulumi.StringArrayOutput)
}
func (o LookupSksNodepoolResultOutput) ClusterId() pulumi.StringOutput {
return o.ApplyT(func(v LookupSksNodepoolResult) string { return v.ClusterId }).(pulumi.StringOutput)
}
// The pool creation date.
func (o LookupSksNodepoolResultOutput) CreatedAt() pulumi.StringOutput {
return o.ApplyT(func(v LookupSksNodepoolResult) string { return v.CreatedAt }).(pulumi.StringOutput)
}
// A deploy target ID.
func (o LookupSksNodepoolResultOutput) DeployTargetId() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupSksNodepoolResult) *string { return v.DeployTargetId }).(pulumi.StringPtrOutput)
}
// A free-form text describing the pool.
func (o LookupSksNodepoolResultOutput) Description() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupSksNodepoolResult) *string { return v.Description }).(pulumi.StringPtrOutput)
}
// The managed instances disk size (GiB; default: `50`).
func (o LookupSksNodepoolResultOutput) DiskSize() pulumi.IntPtrOutput {
return o.ApplyT(func(v LookupSksNodepoolResult) *int { return v.DiskSize }).(pulumi.IntPtrOutput)
}
// The ID of this resource.
func (o LookupSksNodepoolResultOutput) Id() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupSksNodepoolResult) *string { return v.Id }).(pulumi.StringPtrOutput)
}
// The underlying exoscale*instance*pool ID.
func (o LookupSksNodepoolResultOutput) InstancePoolId() pulumi.StringOutput {
return o.ApplyT(func(v LookupSksNodepoolResult) string { return v.InstancePoolId }).(pulumi.StringOutput)
}
// The string used to prefix the managed instances name (default `pool`).
func (o LookupSksNodepoolResultOutput) InstancePrefix() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupSksNodepoolResult) *string { return v.InstancePrefix }).(pulumi.StringPtrOutput)
}
// The managed compute instances type (`<family>.<size>`, e.g. `standard.medium`; use the [Exoscale CLI](https://github.com/exoscale/cli/) - `exo compute instance-type list` - for the list of available types).
func (o LookupSksNodepoolResultOutput) InstanceType() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupSksNodepoolResult) *string { return v.InstanceType }).(pulumi.StringPtrOutput)
}
// A map of key/value labels.
func (o LookupSksNodepoolResultOutput) Labels() pulumi.StringMapOutput {
return o.ApplyT(func(v LookupSksNodepoolResult) map[string]string { return v.Labels }).(pulumi.StringMapOutput)
}
func (o LookupSksNodepoolResultOutput) Name() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupSksNodepoolResult) *string { return v.Name }).(pulumi.StringPtrOutput)
}
// A list of exoscale*private*network (IDs) to be attached to the managed instances.
func (o LookupSksNodepoolResultOutput) PrivateNetworkIds() pulumi.StringArrayOutput {
return o.ApplyT(func(v LookupSksNodepoolResult) []string { return v.PrivateNetworkIds }).(pulumi.StringArrayOutput)
}
// A list of exoscale*security*group (IDs) to be attached to the managed instances.
func (o LookupSksNodepoolResultOutput) SecurityGroupIds() pulumi.StringArrayOutput {
return o.ApplyT(func(v LookupSksNodepoolResult) []string { return v.SecurityGroupIds }).(pulumi.StringArrayOutput)
}
func (o LookupSksNodepoolResultOutput) Size() pulumi.IntPtrOutput {
return o.ApplyT(func(v LookupSksNodepoolResult) *int { return v.Size }).(pulumi.IntPtrOutput)
}
// The current pool state.
func (o LookupSksNodepoolResultOutput) State() pulumi.StringOutput {
return o.ApplyT(func(v LookupSksNodepoolResult) string { return v.State }).(pulumi.StringOutput)
}
// Create nodes with non-standard partitioning for persistent storage (requires min 100G of disk space) (may only be set at creation time).
func (o LookupSksNodepoolResultOutput) StorageLvm() pulumi.BoolPtrOutput {
return o.ApplyT(func(v LookupSksNodepoolResult) *bool { return v.StorageLvm }).(pulumi.BoolPtrOutput)
}
// A map of key/value Kubernetes [taints](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) ('taints = { \n\n = "\n\n:\n\n" }').
func (o LookupSksNodepoolResultOutput) Taints() pulumi.StringMapOutput {
return o.ApplyT(func(v LookupSksNodepoolResult) map[string]string { return v.Taints }).(pulumi.StringMapOutput)
}
// The managed instances template ID.
func (o LookupSksNodepoolResultOutput) TemplateId() pulumi.StringOutput {
return o.ApplyT(func(v LookupSksNodepoolResult) string { return v.TemplateId }).(pulumi.StringOutput)
}
// The managed instances version.
func (o LookupSksNodepoolResultOutput) Version() pulumi.StringOutput {
return o.ApplyT(func(v LookupSksNodepoolResult) string { return v.Version }).(pulumi.StringOutput)
}
func (o LookupSksNodepoolResultOutput) Zone() pulumi.StringOutput {
return o.ApplyT(func(v LookupSksNodepoolResult) string { return v.Zone }).(pulumi.StringOutput)
}
func init() {
pulumi.RegisterOutputType(LookupSksNodepoolResultOutput{})
}