/
getVersion.go
252 lines (215 loc) · 14.6 KB
/
getVersion.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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
// 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 v1alpha
import (
"context"
"reflect"
"github.com/pulumi/pulumi-google-native/sdk/go/google/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Get a integration in the specified project.
func LookupVersion(ctx *pulumi.Context, args *LookupVersionArgs, opts ...pulumi.InvokeOption) (*LookupVersionResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupVersionResult
err := ctx.Invoke("google-native:integrations/v1alpha:getVersion", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupVersionArgs struct {
IntegrationId string `pulumi:"integrationId"`
Location string `pulumi:"location"`
ProductId string `pulumi:"productId"`
Project *string `pulumi:"project"`
VersionId string `pulumi:"versionId"`
}
type LookupVersionResult struct {
// Optional. Cloud Logging details for the integration version
CloudLoggingDetails GoogleCloudIntegrationsV1alphaCloudLoggingDetailsResponse `pulumi:"cloudLoggingDetails"`
// Auto-generated.
CreateTime string `pulumi:"createTime"`
// Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index.
DatabasePersistencePolicy string `pulumi:"databasePersistencePolicy"`
// Optional. The integration description.
Description string `pulumi:"description"`
// Optional. Error Catch Task configuration for the integration. It's optional.
ErrorCatcherConfigs []GoogleCloudIntegrationsV1alphaErrorCatcherConfigResponse `pulumi:"errorCatcherConfigs"`
// Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter.
IntegrationParameters []GoogleCloudIntegrationsV1alphaIntegrationParameterResponse `pulumi:"integrationParameters"`
// Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter.
IntegrationParametersInternal EnterpriseCrmFrontendsEventbusProtoWorkflowParametersResponse `pulumi:"integrationParametersInternal"`
// Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call.
LastModifierEmail string `pulumi:"lastModifierEmail"`
// Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call.
LockHolder string `pulumi:"lockHolder"`
// Auto-generated primary key.
Name string `pulumi:"name"`
// Optional. The origin that indicates where this integration is coming from.
Origin string `pulumi:"origin"`
// Optional. The id of the template which was used to create this integration_version.
ParentTemplateId string `pulumi:"parentTemplateId"`
// Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task.
RunAsServiceAccount string `pulumi:"runAsServiceAccount"`
// Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head.
SnapshotNumber string `pulumi:"snapshotNumber"`
// User should not set it as an input.
State string `pulumi:"state"`
// Generated by eventbus. User should not set it as an input.
Status string `pulumi:"status"`
// Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs.
TaskConfigs []GoogleCloudIntegrationsV1alphaTaskConfigResponse `pulumi:"taskConfigs"`
// Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs.
TaskConfigsInternal []EnterpriseCrmFrontendsEventbusProtoTaskConfigResponse `pulumi:"taskConfigsInternal"`
// Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code.
Teardown EnterpriseCrmEventbusProtoTeardownResponse `pulumi:"teardown"`
// Optional. Trigger configurations.
TriggerConfigs []GoogleCloudIntegrationsV1alphaTriggerConfigResponse `pulumi:"triggerConfigs"`
// Optional. Trigger configurations.
TriggerConfigsInternal []EnterpriseCrmFrontendsEventbusProtoTriggerConfigResponse `pulumi:"triggerConfigsInternal"`
// Auto-generated.
UpdateTime string `pulumi:"updateTime"`
// Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created.
UserLabel string `pulumi:"userLabel"`
}
func LookupVersionOutput(ctx *pulumi.Context, args LookupVersionOutputArgs, opts ...pulumi.InvokeOption) LookupVersionResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupVersionResult, error) {
args := v.(LookupVersionArgs)
r, err := LookupVersion(ctx, &args, opts...)
var s LookupVersionResult
if r != nil {
s = *r
}
return s, err
}).(LookupVersionResultOutput)
}
type LookupVersionOutputArgs struct {
IntegrationId pulumi.StringInput `pulumi:"integrationId"`
Location pulumi.StringInput `pulumi:"location"`
ProductId pulumi.StringInput `pulumi:"productId"`
Project pulumi.StringPtrInput `pulumi:"project"`
VersionId pulumi.StringInput `pulumi:"versionId"`
}
func (LookupVersionOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupVersionArgs)(nil)).Elem()
}
type LookupVersionResultOutput struct{ *pulumi.OutputState }
func (LookupVersionResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupVersionResult)(nil)).Elem()
}
func (o LookupVersionResultOutput) ToLookupVersionResultOutput() LookupVersionResultOutput {
return o
}
func (o LookupVersionResultOutput) ToLookupVersionResultOutputWithContext(ctx context.Context) LookupVersionResultOutput {
return o
}
// Optional. Cloud Logging details for the integration version
func (o LookupVersionResultOutput) CloudLoggingDetails() GoogleCloudIntegrationsV1alphaCloudLoggingDetailsResponseOutput {
return o.ApplyT(func(v LookupVersionResult) GoogleCloudIntegrationsV1alphaCloudLoggingDetailsResponse {
return v.CloudLoggingDetails
}).(GoogleCloudIntegrationsV1alphaCloudLoggingDetailsResponseOutput)
}
// Auto-generated.
func (o LookupVersionResultOutput) CreateTime() pulumi.StringOutput {
return o.ApplyT(func(v LookupVersionResult) string { return v.CreateTime }).(pulumi.StringOutput)
}
// Optional. Flag to disable database persistence for execution data, including event execution info, execution export info, execution metadata index and execution param index.
func (o LookupVersionResultOutput) DatabasePersistencePolicy() pulumi.StringOutput {
return o.ApplyT(func(v LookupVersionResult) string { return v.DatabasePersistencePolicy }).(pulumi.StringOutput)
}
// Optional. The integration description.
func (o LookupVersionResultOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v LookupVersionResult) string { return v.Description }).(pulumi.StringOutput)
}
// Optional. Error Catch Task configuration for the integration. It's optional.
func (o LookupVersionResultOutput) ErrorCatcherConfigs() GoogleCloudIntegrationsV1alphaErrorCatcherConfigResponseArrayOutput {
return o.ApplyT(func(v LookupVersionResult) []GoogleCloudIntegrationsV1alphaErrorCatcherConfigResponse {
return v.ErrorCatcherConfigs
}).(GoogleCloudIntegrationsV1alphaErrorCatcherConfigResponseArrayOutput)
}
// Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter.
func (o LookupVersionResultOutput) IntegrationParameters() GoogleCloudIntegrationsV1alphaIntegrationParameterResponseArrayOutput {
return o.ApplyT(func(v LookupVersionResult) []GoogleCloudIntegrationsV1alphaIntegrationParameterResponse {
return v.IntegrationParameters
}).(GoogleCloudIntegrationsV1alphaIntegrationParameterResponseArrayOutput)
}
// Optional. Parameters that are expected to be passed to the integration when an event is triggered. This consists of all the parameters that are expected in the integration execution. This gives the user the ability to provide default values, add information like PII and also provide data types of each parameter.
func (o LookupVersionResultOutput) IntegrationParametersInternal() EnterpriseCrmFrontendsEventbusProtoWorkflowParametersResponseOutput {
return o.ApplyT(func(v LookupVersionResult) EnterpriseCrmFrontendsEventbusProtoWorkflowParametersResponse {
return v.IntegrationParametersInternal
}).(EnterpriseCrmFrontendsEventbusProtoWorkflowParametersResponseOutput)
}
// Optional. The last modifier's email address. Generated based on the End User Credentials/LOAS role of the user making the call.
func (o LookupVersionResultOutput) LastModifierEmail() pulumi.StringOutput {
return o.ApplyT(func(v LookupVersionResult) string { return v.LastModifierEmail }).(pulumi.StringOutput)
}
// Optional. The edit lock holder's email address. Generated based on the End User Credentials/LOAS role of the user making the call.
func (o LookupVersionResultOutput) LockHolder() pulumi.StringOutput {
return o.ApplyT(func(v LookupVersionResult) string { return v.LockHolder }).(pulumi.StringOutput)
}
// Auto-generated primary key.
func (o LookupVersionResultOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v LookupVersionResult) string { return v.Name }).(pulumi.StringOutput)
}
// Optional. The origin that indicates where this integration is coming from.
func (o LookupVersionResultOutput) Origin() pulumi.StringOutput {
return o.ApplyT(func(v LookupVersionResult) string { return v.Origin }).(pulumi.StringOutput)
}
// Optional. The id of the template which was used to create this integration_version.
func (o LookupVersionResultOutput) ParentTemplateId() pulumi.StringOutput {
return o.ApplyT(func(v LookupVersionResult) string { return v.ParentTemplateId }).(pulumi.StringOutput)
}
// Optional. The run-as service account email, if set and auth config is not configured, that will be used to generate auth token to be used in Connector task, Rest caller task and Cloud function task.
func (o LookupVersionResultOutput) RunAsServiceAccount() pulumi.StringOutput {
return o.ApplyT(func(v LookupVersionResult) string { return v.RunAsServiceAccount }).(pulumi.StringOutput)
}
// Optional. An increasing sequence that is set when a new snapshot is created. The last created snapshot can be identified by [workflow_name, org_id latest(snapshot_number)]. However, last created snapshot need not be same as the HEAD. So users should always use "HEAD" tag to identify the head.
func (o LookupVersionResultOutput) SnapshotNumber() pulumi.StringOutput {
return o.ApplyT(func(v LookupVersionResult) string { return v.SnapshotNumber }).(pulumi.StringOutput)
}
// User should not set it as an input.
func (o LookupVersionResultOutput) State() pulumi.StringOutput {
return o.ApplyT(func(v LookupVersionResult) string { return v.State }).(pulumi.StringOutput)
}
// Generated by eventbus. User should not set it as an input.
func (o LookupVersionResultOutput) Status() pulumi.StringOutput {
return o.ApplyT(func(v LookupVersionResult) string { return v.Status }).(pulumi.StringOutput)
}
// Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs.
func (o LookupVersionResultOutput) TaskConfigs() GoogleCloudIntegrationsV1alphaTaskConfigResponseArrayOutput {
return o.ApplyT(func(v LookupVersionResult) []GoogleCloudIntegrationsV1alphaTaskConfigResponse { return v.TaskConfigs }).(GoogleCloudIntegrationsV1alphaTaskConfigResponseArrayOutput)
}
// Optional. Task configuration for the integration. It's optional, but the integration doesn't do anything without task_configs.
func (o LookupVersionResultOutput) TaskConfigsInternal() EnterpriseCrmFrontendsEventbusProtoTaskConfigResponseArrayOutput {
return o.ApplyT(func(v LookupVersionResult) []EnterpriseCrmFrontendsEventbusProtoTaskConfigResponse {
return v.TaskConfigsInternal
}).(EnterpriseCrmFrontendsEventbusProtoTaskConfigResponseArrayOutput)
}
// Optional. Contains a graph of tasks that will be executed before putting the event in a terminal state (SUCCEEDED/FAILED/FATAL), regardless of success or failure, similar to "finally" in code.
func (o LookupVersionResultOutput) Teardown() EnterpriseCrmEventbusProtoTeardownResponseOutput {
return o.ApplyT(func(v LookupVersionResult) EnterpriseCrmEventbusProtoTeardownResponse { return v.Teardown }).(EnterpriseCrmEventbusProtoTeardownResponseOutput)
}
// Optional. Trigger configurations.
func (o LookupVersionResultOutput) TriggerConfigs() GoogleCloudIntegrationsV1alphaTriggerConfigResponseArrayOutput {
return o.ApplyT(func(v LookupVersionResult) []GoogleCloudIntegrationsV1alphaTriggerConfigResponse {
return v.TriggerConfigs
}).(GoogleCloudIntegrationsV1alphaTriggerConfigResponseArrayOutput)
}
// Optional. Trigger configurations.
func (o LookupVersionResultOutput) TriggerConfigsInternal() EnterpriseCrmFrontendsEventbusProtoTriggerConfigResponseArrayOutput {
return o.ApplyT(func(v LookupVersionResult) []EnterpriseCrmFrontendsEventbusProtoTriggerConfigResponse {
return v.TriggerConfigsInternal
}).(EnterpriseCrmFrontendsEventbusProtoTriggerConfigResponseArrayOutput)
}
// Auto-generated.
func (o LookupVersionResultOutput) UpdateTime() pulumi.StringOutput {
return o.ApplyT(func(v LookupVersionResult) string { return v.UpdateTime }).(pulumi.StringOutput)
}
// Optional. A user-defined label that annotates an integration version. Typically, this is only set when the integration version is created.
func (o LookupVersionResultOutput) UserLabel() pulumi.StringOutput {
return o.ApplyT(func(v LookupVersionResult) string { return v.UserLabel }).(pulumi.StringOutput)
}
func init() {
pulumi.RegisterOutputType(LookupVersionResultOutput{})
}