generated from pulumi/pulumi-tf-provider-boilerplate
/
getOnPremiseVantagePointWorkers.go
189 lines (166 loc) · 8.46 KB
/
getOnPremiseVantagePointWorkers.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
// 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 apmsynthetics
import (
"context"
"reflect"
"github.com/pulumi/pulumi-oci/sdk/go/oci/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// This data source provides the list of On Premise Vantage Point Workers in Oracle Cloud Infrastructure Apm Synthetics service.
//
// Returns a list of workers.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-oci/sdk/go/oci/ApmSynthetics"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := ApmSynthetics.GetOnPremiseVantagePointWorkers(ctx, &apmsynthetics.GetOnPremiseVantagePointWorkersArgs{
// ApmDomainId: testApmDomain.Id,
// OnPremiseVantagePointId: testOnPremiseVantagePoint.Id,
// Capability: pulumi.StringRef(onPremiseVantagePointWorkerCapability),
// DisplayName: pulumi.StringRef(onPremiseVantagePointWorkerDisplayName),
// Name: pulumi.StringRef(onPremiseVantagePointWorkerName),
// Status: pulumi.StringRef(onPremiseVantagePointWorkerStatus),
// }, nil)
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
func GetOnPremiseVantagePointWorkers(ctx *pulumi.Context, args *GetOnPremiseVantagePointWorkersArgs, opts ...pulumi.InvokeOption) (*GetOnPremiseVantagePointWorkersResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv GetOnPremiseVantagePointWorkersResult
err := ctx.Invoke("oci:ApmSynthetics/getOnPremiseVantagePointWorkers:getOnPremiseVantagePointWorkers", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getOnPremiseVantagePointWorkers.
type GetOnPremiseVantagePointWorkersArgs struct {
// The APM domain ID the request is intended for.
ApmDomainId string `pulumi:"apmDomainId"`
// A filter to return only On-premise VP workers that match the capability given.
Capability *string `pulumi:"capability"`
// A filter to return only the resources that match the entire display name.
DisplayName *string `pulumi:"displayName"`
Filters []GetOnPremiseVantagePointWorkersFilter `pulumi:"filters"`
// A filter to return only the resources that match the entire name.
Name *string `pulumi:"name"`
// The OCID of the On-premise vantage point.
OnPremiseVantagePointId string `pulumi:"onPremiseVantagePointId"`
// A filter to return only On-premise VP workers that match the status given.
Status *string `pulumi:"status"`
}
// A collection of values returned by getOnPremiseVantagePointWorkers.
type GetOnPremiseVantagePointWorkersResult struct {
ApmDomainId string `pulumi:"apmDomainId"`
Capability *string `pulumi:"capability"`
// Unique name that can be edited. The name should not contain any confidential information.
DisplayName *string `pulumi:"displayName"`
Filters []GetOnPremiseVantagePointWorkersFilter `pulumi:"filters"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// Unique permanent name of the On-premise VP worker. This is the same as the displayName.
Name *string `pulumi:"name"`
OnPremiseVantagePointId string `pulumi:"onPremiseVantagePointId"`
// Enables or disables the On-premise VP worker.
Status *string `pulumi:"status"`
// The list of worker_collection.
WorkerCollections []GetOnPremiseVantagePointWorkersWorkerCollection `pulumi:"workerCollections"`
}
func GetOnPremiseVantagePointWorkersOutput(ctx *pulumi.Context, args GetOnPremiseVantagePointWorkersOutputArgs, opts ...pulumi.InvokeOption) GetOnPremiseVantagePointWorkersResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (GetOnPremiseVantagePointWorkersResult, error) {
args := v.(GetOnPremiseVantagePointWorkersArgs)
r, err := GetOnPremiseVantagePointWorkers(ctx, &args, opts...)
var s GetOnPremiseVantagePointWorkersResult
if r != nil {
s = *r
}
return s, err
}).(GetOnPremiseVantagePointWorkersResultOutput)
}
// A collection of arguments for invoking getOnPremiseVantagePointWorkers.
type GetOnPremiseVantagePointWorkersOutputArgs struct {
// The APM domain ID the request is intended for.
ApmDomainId pulumi.StringInput `pulumi:"apmDomainId"`
// A filter to return only On-premise VP workers that match the capability given.
Capability pulumi.StringPtrInput `pulumi:"capability"`
// A filter to return only the resources that match the entire display name.
DisplayName pulumi.StringPtrInput `pulumi:"displayName"`
Filters GetOnPremiseVantagePointWorkersFilterArrayInput `pulumi:"filters"`
// A filter to return only the resources that match the entire name.
Name pulumi.StringPtrInput `pulumi:"name"`
// The OCID of the On-premise vantage point.
OnPremiseVantagePointId pulumi.StringInput `pulumi:"onPremiseVantagePointId"`
// A filter to return only On-premise VP workers that match the status given.
Status pulumi.StringPtrInput `pulumi:"status"`
}
func (GetOnPremiseVantagePointWorkersOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetOnPremiseVantagePointWorkersArgs)(nil)).Elem()
}
// A collection of values returned by getOnPremiseVantagePointWorkers.
type GetOnPremiseVantagePointWorkersResultOutput struct{ *pulumi.OutputState }
func (GetOnPremiseVantagePointWorkersResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetOnPremiseVantagePointWorkersResult)(nil)).Elem()
}
func (o GetOnPremiseVantagePointWorkersResultOutput) ToGetOnPremiseVantagePointWorkersResultOutput() GetOnPremiseVantagePointWorkersResultOutput {
return o
}
func (o GetOnPremiseVantagePointWorkersResultOutput) ToGetOnPremiseVantagePointWorkersResultOutputWithContext(ctx context.Context) GetOnPremiseVantagePointWorkersResultOutput {
return o
}
func (o GetOnPremiseVantagePointWorkersResultOutput) ApmDomainId() pulumi.StringOutput {
return o.ApplyT(func(v GetOnPremiseVantagePointWorkersResult) string { return v.ApmDomainId }).(pulumi.StringOutput)
}
func (o GetOnPremiseVantagePointWorkersResultOutput) Capability() pulumi.StringPtrOutput {
return o.ApplyT(func(v GetOnPremiseVantagePointWorkersResult) *string { return v.Capability }).(pulumi.StringPtrOutput)
}
// Unique name that can be edited. The name should not contain any confidential information.
func (o GetOnPremiseVantagePointWorkersResultOutput) DisplayName() pulumi.StringPtrOutput {
return o.ApplyT(func(v GetOnPremiseVantagePointWorkersResult) *string { return v.DisplayName }).(pulumi.StringPtrOutput)
}
func (o GetOnPremiseVantagePointWorkersResultOutput) Filters() GetOnPremiseVantagePointWorkersFilterArrayOutput {
return o.ApplyT(func(v GetOnPremiseVantagePointWorkersResult) []GetOnPremiseVantagePointWorkersFilter {
return v.Filters
}).(GetOnPremiseVantagePointWorkersFilterArrayOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o GetOnPremiseVantagePointWorkersResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v GetOnPremiseVantagePointWorkersResult) string { return v.Id }).(pulumi.StringOutput)
}
// Unique permanent name of the On-premise VP worker. This is the same as the displayName.
func (o GetOnPremiseVantagePointWorkersResultOutput) Name() pulumi.StringPtrOutput {
return o.ApplyT(func(v GetOnPremiseVantagePointWorkersResult) *string { return v.Name }).(pulumi.StringPtrOutput)
}
func (o GetOnPremiseVantagePointWorkersResultOutput) OnPremiseVantagePointId() pulumi.StringOutput {
return o.ApplyT(func(v GetOnPremiseVantagePointWorkersResult) string { return v.OnPremiseVantagePointId }).(pulumi.StringOutput)
}
// Enables or disables the On-premise VP worker.
func (o GetOnPremiseVantagePointWorkersResultOutput) Status() pulumi.StringPtrOutput {
return o.ApplyT(func(v GetOnPremiseVantagePointWorkersResult) *string { return v.Status }).(pulumi.StringPtrOutput)
}
// The list of worker_collection.
func (o GetOnPremiseVantagePointWorkersResultOutput) WorkerCollections() GetOnPremiseVantagePointWorkersWorkerCollectionArrayOutput {
return o.ApplyT(func(v GetOnPremiseVantagePointWorkersResult) []GetOnPremiseVantagePointWorkersWorkerCollection {
return v.WorkerCollections
}).(GetOnPremiseVantagePointWorkersWorkerCollectionArrayOutput)
}
func init() {
pulumi.RegisterOutputType(GetOnPremiseVantagePointWorkersResultOutput{})
}