This repository has been archived by the owner on Aug 3, 2022. It is now read-only.
forked from pulumi/pulumi-tf-provider-boilerplate
/
getDedicatedServer.go
183 lines (146 loc) · 7.71 KB
/
getDedicatedServer.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
// *** 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 ovh
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func GetDedicatedServer(ctx *pulumi.Context, args *GetDedicatedServerArgs, opts ...pulumi.InvokeOption) (*GetDedicatedServerResult, error) {
var rv GetDedicatedServerResult
err := ctx.Invoke("ovh:index/getDedicatedServer:getDedicatedServer", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getDedicatedServer.
type GetDedicatedServerArgs struct {
ServiceName string `pulumi:"serviceName"`
}
// A collection of values returned by getDedicatedServer.
type GetDedicatedServerResult struct {
BootId int `pulumi:"bootId"`
CommercialRange string `pulumi:"commercialRange"`
Datacenter string `pulumi:"datacenter"`
EnabledPublicVnis []string `pulumi:"enabledPublicVnis"`
EnabledVrackAggregationVnis []string `pulumi:"enabledVrackAggregationVnis"`
EnabledVrackVnis []string `pulumi:"enabledVrackVnis"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
Ip string `pulumi:"ip"`
Ips []string `pulumi:"ips"`
LinkSpeed int `pulumi:"linkSpeed"`
Monitoring bool `pulumi:"monitoring"`
Name string `pulumi:"name"`
Os string `pulumi:"os"`
ProfessionalUse bool `pulumi:"professionalUse"`
Rack string `pulumi:"rack"`
RescueMail string `pulumi:"rescueMail"`
Reverse string `pulumi:"reverse"`
RootDevice string `pulumi:"rootDevice"`
ServerId int `pulumi:"serverId"`
ServiceName string `pulumi:"serviceName"`
State string `pulumi:"state"`
SupportLevel string `pulumi:"supportLevel"`
Vnis []GetDedicatedServerVni `pulumi:"vnis"`
}
func GetDedicatedServerOutput(ctx *pulumi.Context, args GetDedicatedServerOutputArgs, opts ...pulumi.InvokeOption) GetDedicatedServerResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (GetDedicatedServerResult, error) {
args := v.(GetDedicatedServerArgs)
r, err := GetDedicatedServer(ctx, &args, opts...)
return *r, err
}).(GetDedicatedServerResultOutput)
}
// A collection of arguments for invoking getDedicatedServer.
type GetDedicatedServerOutputArgs struct {
ServiceName pulumi.StringInput `pulumi:"serviceName"`
}
func (GetDedicatedServerOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetDedicatedServerArgs)(nil)).Elem()
}
// A collection of values returned by getDedicatedServer.
type GetDedicatedServerResultOutput struct{ *pulumi.OutputState }
func (GetDedicatedServerResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetDedicatedServerResult)(nil)).Elem()
}
func (o GetDedicatedServerResultOutput) ToGetDedicatedServerResultOutput() GetDedicatedServerResultOutput {
return o
}
func (o GetDedicatedServerResultOutput) ToGetDedicatedServerResultOutputWithContext(ctx context.Context) GetDedicatedServerResultOutput {
return o
}
func (o GetDedicatedServerResultOutput) BootId() pulumi.IntOutput {
return o.ApplyT(func(v GetDedicatedServerResult) int { return v.BootId }).(pulumi.IntOutput)
}
func (o GetDedicatedServerResultOutput) CommercialRange() pulumi.StringOutput {
return o.ApplyT(func(v GetDedicatedServerResult) string { return v.CommercialRange }).(pulumi.StringOutput)
}
func (o GetDedicatedServerResultOutput) Datacenter() pulumi.StringOutput {
return o.ApplyT(func(v GetDedicatedServerResult) string { return v.Datacenter }).(pulumi.StringOutput)
}
func (o GetDedicatedServerResultOutput) EnabledPublicVnis() pulumi.StringArrayOutput {
return o.ApplyT(func(v GetDedicatedServerResult) []string { return v.EnabledPublicVnis }).(pulumi.StringArrayOutput)
}
func (o GetDedicatedServerResultOutput) EnabledVrackAggregationVnis() pulumi.StringArrayOutput {
return o.ApplyT(func(v GetDedicatedServerResult) []string { return v.EnabledVrackAggregationVnis }).(pulumi.StringArrayOutput)
}
func (o GetDedicatedServerResultOutput) EnabledVrackVnis() pulumi.StringArrayOutput {
return o.ApplyT(func(v GetDedicatedServerResult) []string { return v.EnabledVrackVnis }).(pulumi.StringArrayOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o GetDedicatedServerResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v GetDedicatedServerResult) string { return v.Id }).(pulumi.StringOutput)
}
func (o GetDedicatedServerResultOutput) Ip() pulumi.StringOutput {
return o.ApplyT(func(v GetDedicatedServerResult) string { return v.Ip }).(pulumi.StringOutput)
}
func (o GetDedicatedServerResultOutput) Ips() pulumi.StringArrayOutput {
return o.ApplyT(func(v GetDedicatedServerResult) []string { return v.Ips }).(pulumi.StringArrayOutput)
}
func (o GetDedicatedServerResultOutput) LinkSpeed() pulumi.IntOutput {
return o.ApplyT(func(v GetDedicatedServerResult) int { return v.LinkSpeed }).(pulumi.IntOutput)
}
func (o GetDedicatedServerResultOutput) Monitoring() pulumi.BoolOutput {
return o.ApplyT(func(v GetDedicatedServerResult) bool { return v.Monitoring }).(pulumi.BoolOutput)
}
func (o GetDedicatedServerResultOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v GetDedicatedServerResult) string { return v.Name }).(pulumi.StringOutput)
}
func (o GetDedicatedServerResultOutput) Os() pulumi.StringOutput {
return o.ApplyT(func(v GetDedicatedServerResult) string { return v.Os }).(pulumi.StringOutput)
}
func (o GetDedicatedServerResultOutput) ProfessionalUse() pulumi.BoolOutput {
return o.ApplyT(func(v GetDedicatedServerResult) bool { return v.ProfessionalUse }).(pulumi.BoolOutput)
}
func (o GetDedicatedServerResultOutput) Rack() pulumi.StringOutput {
return o.ApplyT(func(v GetDedicatedServerResult) string { return v.Rack }).(pulumi.StringOutput)
}
func (o GetDedicatedServerResultOutput) RescueMail() pulumi.StringOutput {
return o.ApplyT(func(v GetDedicatedServerResult) string { return v.RescueMail }).(pulumi.StringOutput)
}
func (o GetDedicatedServerResultOutput) Reverse() pulumi.StringOutput {
return o.ApplyT(func(v GetDedicatedServerResult) string { return v.Reverse }).(pulumi.StringOutput)
}
func (o GetDedicatedServerResultOutput) RootDevice() pulumi.StringOutput {
return o.ApplyT(func(v GetDedicatedServerResult) string { return v.RootDevice }).(pulumi.StringOutput)
}
func (o GetDedicatedServerResultOutput) ServerId() pulumi.IntOutput {
return o.ApplyT(func(v GetDedicatedServerResult) int { return v.ServerId }).(pulumi.IntOutput)
}
func (o GetDedicatedServerResultOutput) ServiceName() pulumi.StringOutput {
return o.ApplyT(func(v GetDedicatedServerResult) string { return v.ServiceName }).(pulumi.StringOutput)
}
func (o GetDedicatedServerResultOutput) State() pulumi.StringOutput {
return o.ApplyT(func(v GetDedicatedServerResult) string { return v.State }).(pulumi.StringOutput)
}
func (o GetDedicatedServerResultOutput) SupportLevel() pulumi.StringOutput {
return o.ApplyT(func(v GetDedicatedServerResult) string { return v.SupportLevel }).(pulumi.StringOutput)
}
func (o GetDedicatedServerResultOutput) Vnis() GetDedicatedServerVniArrayOutput {
return o.ApplyT(func(v GetDedicatedServerResult) []GetDedicatedServerVni { return v.Vnis }).(GetDedicatedServerVniArrayOutput)
}
func init() {
pulumi.RegisterOutputType(GetDedicatedServerResultOutput{})
}