/
getSpecialistPool.go
115 lines (95 loc) · 4.75 KB
/
getSpecialistPool.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
// Code generated by the Pulumi SDK Generator DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package v1beta1
import (
"context"
"reflect"
"github.com/pulumi/pulumi-google-native/sdk/go/google/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Gets a SpecialistPool.
func LookupSpecialistPool(ctx *pulumi.Context, args *LookupSpecialistPoolArgs, opts ...pulumi.InvokeOption) (*LookupSpecialistPoolResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupSpecialistPoolResult
err := ctx.Invoke("google-native:aiplatform/v1beta1:getSpecialistPool", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupSpecialistPoolArgs struct {
Location string `pulumi:"location"`
Project *string `pulumi:"project"`
SpecialistPoolId string `pulumi:"specialistPoolId"`
}
type LookupSpecialistPoolResult struct {
// The user-defined name of the SpecialistPool. The name can be up to 128 characters long and can consist of any UTF-8 characters. This field should be unique on project-level.
DisplayName string `pulumi:"displayName"`
// The resource name of the SpecialistPool.
Name string `pulumi:"name"`
// The resource name of the pending data labeling jobs.
PendingDataLabelingJobs []string `pulumi:"pendingDataLabelingJobs"`
// The email addresses of the managers in the SpecialistPool.
SpecialistManagerEmails []string `pulumi:"specialistManagerEmails"`
// The number of managers in this SpecialistPool.
SpecialistManagersCount int `pulumi:"specialistManagersCount"`
// The email addresses of workers in the SpecialistPool.
SpecialistWorkerEmails []string `pulumi:"specialistWorkerEmails"`
}
func LookupSpecialistPoolOutput(ctx *pulumi.Context, args LookupSpecialistPoolOutputArgs, opts ...pulumi.InvokeOption) LookupSpecialistPoolResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupSpecialistPoolResult, error) {
args := v.(LookupSpecialistPoolArgs)
r, err := LookupSpecialistPool(ctx, &args, opts...)
var s LookupSpecialistPoolResult
if r != nil {
s = *r
}
return s, err
}).(LookupSpecialistPoolResultOutput)
}
type LookupSpecialistPoolOutputArgs struct {
Location pulumi.StringInput `pulumi:"location"`
Project pulumi.StringPtrInput `pulumi:"project"`
SpecialistPoolId pulumi.StringInput `pulumi:"specialistPoolId"`
}
func (LookupSpecialistPoolOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupSpecialistPoolArgs)(nil)).Elem()
}
type LookupSpecialistPoolResultOutput struct{ *pulumi.OutputState }
func (LookupSpecialistPoolResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupSpecialistPoolResult)(nil)).Elem()
}
func (o LookupSpecialistPoolResultOutput) ToLookupSpecialistPoolResultOutput() LookupSpecialistPoolResultOutput {
return o
}
func (o LookupSpecialistPoolResultOutput) ToLookupSpecialistPoolResultOutputWithContext(ctx context.Context) LookupSpecialistPoolResultOutput {
return o
}
// The user-defined name of the SpecialistPool. The name can be up to 128 characters long and can consist of any UTF-8 characters. This field should be unique on project-level.
func (o LookupSpecialistPoolResultOutput) DisplayName() pulumi.StringOutput {
return o.ApplyT(func(v LookupSpecialistPoolResult) string { return v.DisplayName }).(pulumi.StringOutput)
}
// The resource name of the SpecialistPool.
func (o LookupSpecialistPoolResultOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v LookupSpecialistPoolResult) string { return v.Name }).(pulumi.StringOutput)
}
// The resource name of the pending data labeling jobs.
func (o LookupSpecialistPoolResultOutput) PendingDataLabelingJobs() pulumi.StringArrayOutput {
return o.ApplyT(func(v LookupSpecialistPoolResult) []string { return v.PendingDataLabelingJobs }).(pulumi.StringArrayOutput)
}
// The email addresses of the managers in the SpecialistPool.
func (o LookupSpecialistPoolResultOutput) SpecialistManagerEmails() pulumi.StringArrayOutput {
return o.ApplyT(func(v LookupSpecialistPoolResult) []string { return v.SpecialistManagerEmails }).(pulumi.StringArrayOutput)
}
// The number of managers in this SpecialistPool.
func (o LookupSpecialistPoolResultOutput) SpecialistManagersCount() pulumi.IntOutput {
return o.ApplyT(func(v LookupSpecialistPoolResult) int { return v.SpecialistManagersCount }).(pulumi.IntOutput)
}
// The email addresses of workers in the SpecialistPool.
func (o LookupSpecialistPoolResultOutput) SpecialistWorkerEmails() pulumi.StringArrayOutput {
return o.ApplyT(func(v LookupSpecialistPoolResult) []string { return v.SpecialistWorkerEmails }).(pulumi.StringArrayOutput)
}
func init() {
pulumi.RegisterOutputType(LookupSpecialistPoolResultOutput{})
}