/
getReportConfig.go
117 lines (97 loc) · 4.36 KB
/
getReportConfig.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
// 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 v1alpha1
import (
"context"
"reflect"
"github.com/pulumi/pulumi-google-native/sdk/go/google/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Gets details of a single ReportConfig.
func LookupReportConfig(ctx *pulumi.Context, args *LookupReportConfigArgs, opts ...pulumi.InvokeOption) (*LookupReportConfigResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupReportConfigResult
err := ctx.Invoke("google-native:migrationcenter/v1alpha1:getReportConfig", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupReportConfigArgs struct {
Location string `pulumi:"location"`
Project *string `pulumi:"project"`
ReportConfigId string `pulumi:"reportConfigId"`
}
type LookupReportConfigResult struct {
// The timestamp when the resource was created.
CreateTime string `pulumi:"createTime"`
// Free-text description.
Description string `pulumi:"description"`
// User-friendly display name. Maximum length is 63 characters.
DisplayName string `pulumi:"displayName"`
// Collection of combinations of groups and preference sets.
GroupPreferencesetAssignments []ReportConfigGroupPreferenceSetAssignmentResponse `pulumi:"groupPreferencesetAssignments"`
// Name of resource.
Name string `pulumi:"name"`
// The timestamp when the resource was last updated.
UpdateTime string `pulumi:"updateTime"`
}
func LookupReportConfigOutput(ctx *pulumi.Context, args LookupReportConfigOutputArgs, opts ...pulumi.InvokeOption) LookupReportConfigResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupReportConfigResult, error) {
args := v.(LookupReportConfigArgs)
r, err := LookupReportConfig(ctx, &args, opts...)
var s LookupReportConfigResult
if r != nil {
s = *r
}
return s, err
}).(LookupReportConfigResultOutput)
}
type LookupReportConfigOutputArgs struct {
Location pulumi.StringInput `pulumi:"location"`
Project pulumi.StringPtrInput `pulumi:"project"`
ReportConfigId pulumi.StringInput `pulumi:"reportConfigId"`
}
func (LookupReportConfigOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupReportConfigArgs)(nil)).Elem()
}
type LookupReportConfigResultOutput struct{ *pulumi.OutputState }
func (LookupReportConfigResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupReportConfigResult)(nil)).Elem()
}
func (o LookupReportConfigResultOutput) ToLookupReportConfigResultOutput() LookupReportConfigResultOutput {
return o
}
func (o LookupReportConfigResultOutput) ToLookupReportConfigResultOutputWithContext(ctx context.Context) LookupReportConfigResultOutput {
return o
}
// The timestamp when the resource was created.
func (o LookupReportConfigResultOutput) CreateTime() pulumi.StringOutput {
return o.ApplyT(func(v LookupReportConfigResult) string { return v.CreateTime }).(pulumi.StringOutput)
}
// Free-text description.
func (o LookupReportConfigResultOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v LookupReportConfigResult) string { return v.Description }).(pulumi.StringOutput)
}
// User-friendly display name. Maximum length is 63 characters.
func (o LookupReportConfigResultOutput) DisplayName() pulumi.StringOutput {
return o.ApplyT(func(v LookupReportConfigResult) string { return v.DisplayName }).(pulumi.StringOutput)
}
// Collection of combinations of groups and preference sets.
func (o LookupReportConfigResultOutput) GroupPreferencesetAssignments() ReportConfigGroupPreferenceSetAssignmentResponseArrayOutput {
return o.ApplyT(func(v LookupReportConfigResult) []ReportConfigGroupPreferenceSetAssignmentResponse {
return v.GroupPreferencesetAssignments
}).(ReportConfigGroupPreferenceSetAssignmentResponseArrayOutput)
}
// Name of resource.
func (o LookupReportConfigResultOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v LookupReportConfigResult) string { return v.Name }).(pulumi.StringOutput)
}
// The timestamp when the resource was last updated.
func (o LookupReportConfigResultOutput) UpdateTime() pulumi.StringOutput {
return o.ApplyT(func(v LookupReportConfigResult) string { return v.UpdateTime }).(pulumi.StringOutput)
}
func init() {
pulumi.RegisterOutputType(LookupReportConfigResultOutput{})
}