generated from pulumi/pulumi-tf-provider-boilerplate
/
legacyGetBigQueryConnection.go
202 lines (163 loc) · 9.09 KB
/
legacyGetBigQueryConnection.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
// 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 dbtcloud
import (
"context"
"reflect"
"github.com/a-schot/pulumi-dbtcloud/sdk/go/dbtcloud/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Deprecated: Do not use! This resource is mapped from the legacy Terraform `dbt_cloud_`-prefixed resource/datasource
func LegacyGetBigQueryConnection(ctx *pulumi.Context, args *LegacyGetBigQueryConnectionArgs, opts ...pulumi.InvokeOption) (*LegacyGetBigQueryConnectionResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LegacyGetBigQueryConnectionResult
err := ctx.Invoke("dbtcloud:index/legacyGetBigQueryConnection:LegacyGetBigQueryConnection", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking LegacyGetBigQueryConnection.
type LegacyGetBigQueryConnectionArgs struct {
ConnectionId int `pulumi:"connectionId"`
ProjectId int `pulumi:"projectId"`
}
// A collection of values returned by LegacyGetBigQueryConnection.
type LegacyGetBigQueryConnectionResult struct {
AuthProviderX509CertUrl string `pulumi:"authProviderX509CertUrl"`
AuthUri string `pulumi:"authUri"`
ClientEmail string `pulumi:"clientEmail"`
ClientId string `pulumi:"clientId"`
ClientX509CertUrl string `pulumi:"clientX509CertUrl"`
ConnectionId int `pulumi:"connectionId"`
DataprocClusterName string `pulumi:"dataprocClusterName"`
DataprocRegion string `pulumi:"dataprocRegion"`
ExecutionProject string `pulumi:"executionProject"`
GcpProjectId string `pulumi:"gcpProjectId"`
GcsBucket string `pulumi:"gcsBucket"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
IsActive bool `pulumi:"isActive"`
IsConfiguredForOauth bool `pulumi:"isConfiguredForOauth"`
Location string `pulumi:"location"`
MaximumBytesBilled int `pulumi:"maximumBytesBilled"`
Name string `pulumi:"name"`
Priority string `pulumi:"priority"`
PrivateKey string `pulumi:"privateKey"`
PrivateKeyId string `pulumi:"privateKeyId"`
ProjectId int `pulumi:"projectId"`
Retries int `pulumi:"retries"`
TimeoutSeconds int `pulumi:"timeoutSeconds"`
TokenUri string `pulumi:"tokenUri"`
Type string `pulumi:"type"`
}
func LegacyGetBigQueryConnectionOutput(ctx *pulumi.Context, args LegacyGetBigQueryConnectionOutputArgs, opts ...pulumi.InvokeOption) LegacyGetBigQueryConnectionResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LegacyGetBigQueryConnectionResult, error) {
args := v.(LegacyGetBigQueryConnectionArgs)
r, err := LegacyGetBigQueryConnection(ctx, &args, opts...)
var s LegacyGetBigQueryConnectionResult
if r != nil {
s = *r
}
return s, err
}).(LegacyGetBigQueryConnectionResultOutput)
}
// A collection of arguments for invoking LegacyGetBigQueryConnection.
type LegacyGetBigQueryConnectionOutputArgs struct {
ConnectionId pulumi.IntInput `pulumi:"connectionId"`
ProjectId pulumi.IntInput `pulumi:"projectId"`
}
func (LegacyGetBigQueryConnectionOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LegacyGetBigQueryConnectionArgs)(nil)).Elem()
}
// A collection of values returned by LegacyGetBigQueryConnection.
type LegacyGetBigQueryConnectionResultOutput struct{ *pulumi.OutputState }
func (LegacyGetBigQueryConnectionResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LegacyGetBigQueryConnectionResult)(nil)).Elem()
}
func (o LegacyGetBigQueryConnectionResultOutput) ToLegacyGetBigQueryConnectionResultOutput() LegacyGetBigQueryConnectionResultOutput {
return o
}
func (o LegacyGetBigQueryConnectionResultOutput) ToLegacyGetBigQueryConnectionResultOutputWithContext(ctx context.Context) LegacyGetBigQueryConnectionResultOutput {
return o
}
func (o LegacyGetBigQueryConnectionResultOutput) AuthProviderX509CertUrl() pulumi.StringOutput {
return o.ApplyT(func(v LegacyGetBigQueryConnectionResult) string { return v.AuthProviderX509CertUrl }).(pulumi.StringOutput)
}
func (o LegacyGetBigQueryConnectionResultOutput) AuthUri() pulumi.StringOutput {
return o.ApplyT(func(v LegacyGetBigQueryConnectionResult) string { return v.AuthUri }).(pulumi.StringOutput)
}
func (o LegacyGetBigQueryConnectionResultOutput) ClientEmail() pulumi.StringOutput {
return o.ApplyT(func(v LegacyGetBigQueryConnectionResult) string { return v.ClientEmail }).(pulumi.StringOutput)
}
func (o LegacyGetBigQueryConnectionResultOutput) ClientId() pulumi.StringOutput {
return o.ApplyT(func(v LegacyGetBigQueryConnectionResult) string { return v.ClientId }).(pulumi.StringOutput)
}
func (o LegacyGetBigQueryConnectionResultOutput) ClientX509CertUrl() pulumi.StringOutput {
return o.ApplyT(func(v LegacyGetBigQueryConnectionResult) string { return v.ClientX509CertUrl }).(pulumi.StringOutput)
}
func (o LegacyGetBigQueryConnectionResultOutput) ConnectionId() pulumi.IntOutput {
return o.ApplyT(func(v LegacyGetBigQueryConnectionResult) int { return v.ConnectionId }).(pulumi.IntOutput)
}
func (o LegacyGetBigQueryConnectionResultOutput) DataprocClusterName() pulumi.StringOutput {
return o.ApplyT(func(v LegacyGetBigQueryConnectionResult) string { return v.DataprocClusterName }).(pulumi.StringOutput)
}
func (o LegacyGetBigQueryConnectionResultOutput) DataprocRegion() pulumi.StringOutput {
return o.ApplyT(func(v LegacyGetBigQueryConnectionResult) string { return v.DataprocRegion }).(pulumi.StringOutput)
}
func (o LegacyGetBigQueryConnectionResultOutput) ExecutionProject() pulumi.StringOutput {
return o.ApplyT(func(v LegacyGetBigQueryConnectionResult) string { return v.ExecutionProject }).(pulumi.StringOutput)
}
func (o LegacyGetBigQueryConnectionResultOutput) GcpProjectId() pulumi.StringOutput {
return o.ApplyT(func(v LegacyGetBigQueryConnectionResult) string { return v.GcpProjectId }).(pulumi.StringOutput)
}
func (o LegacyGetBigQueryConnectionResultOutput) GcsBucket() pulumi.StringOutput {
return o.ApplyT(func(v LegacyGetBigQueryConnectionResult) string { return v.GcsBucket }).(pulumi.StringOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o LegacyGetBigQueryConnectionResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LegacyGetBigQueryConnectionResult) string { return v.Id }).(pulumi.StringOutput)
}
func (o LegacyGetBigQueryConnectionResultOutput) IsActive() pulumi.BoolOutput {
return o.ApplyT(func(v LegacyGetBigQueryConnectionResult) bool { return v.IsActive }).(pulumi.BoolOutput)
}
func (o LegacyGetBigQueryConnectionResultOutput) IsConfiguredForOauth() pulumi.BoolOutput {
return o.ApplyT(func(v LegacyGetBigQueryConnectionResult) bool { return v.IsConfiguredForOauth }).(pulumi.BoolOutput)
}
func (o LegacyGetBigQueryConnectionResultOutput) Location() pulumi.StringOutput {
return o.ApplyT(func(v LegacyGetBigQueryConnectionResult) string { return v.Location }).(pulumi.StringOutput)
}
func (o LegacyGetBigQueryConnectionResultOutput) MaximumBytesBilled() pulumi.IntOutput {
return o.ApplyT(func(v LegacyGetBigQueryConnectionResult) int { return v.MaximumBytesBilled }).(pulumi.IntOutput)
}
func (o LegacyGetBigQueryConnectionResultOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v LegacyGetBigQueryConnectionResult) string { return v.Name }).(pulumi.StringOutput)
}
func (o LegacyGetBigQueryConnectionResultOutput) Priority() pulumi.StringOutput {
return o.ApplyT(func(v LegacyGetBigQueryConnectionResult) string { return v.Priority }).(pulumi.StringOutput)
}
func (o LegacyGetBigQueryConnectionResultOutput) PrivateKey() pulumi.StringOutput {
return o.ApplyT(func(v LegacyGetBigQueryConnectionResult) string { return v.PrivateKey }).(pulumi.StringOutput)
}
func (o LegacyGetBigQueryConnectionResultOutput) PrivateKeyId() pulumi.StringOutput {
return o.ApplyT(func(v LegacyGetBigQueryConnectionResult) string { return v.PrivateKeyId }).(pulumi.StringOutput)
}
func (o LegacyGetBigQueryConnectionResultOutput) ProjectId() pulumi.IntOutput {
return o.ApplyT(func(v LegacyGetBigQueryConnectionResult) int { return v.ProjectId }).(pulumi.IntOutput)
}
func (o LegacyGetBigQueryConnectionResultOutput) Retries() pulumi.IntOutput {
return o.ApplyT(func(v LegacyGetBigQueryConnectionResult) int { return v.Retries }).(pulumi.IntOutput)
}
func (o LegacyGetBigQueryConnectionResultOutput) TimeoutSeconds() pulumi.IntOutput {
return o.ApplyT(func(v LegacyGetBigQueryConnectionResult) int { return v.TimeoutSeconds }).(pulumi.IntOutput)
}
func (o LegacyGetBigQueryConnectionResultOutput) TokenUri() pulumi.StringOutput {
return o.ApplyT(func(v LegacyGetBigQueryConnectionResult) string { return v.TokenUri }).(pulumi.StringOutput)
}
func (o LegacyGetBigQueryConnectionResultOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v LegacyGetBigQueryConnectionResult) string { return v.Type }).(pulumi.StringOutput)
}
func init() {
pulumi.RegisterOutputType(LegacyGetBigQueryConnectionResultOutput{})
}