/
pulumiTypes.go
304 lines (239 loc) · 11.7 KB
/
pulumiTypes.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
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
// 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 v1
import (
"context"
"reflect"
"github.com/pulumi/pulumi-google-native/sdk/go/google/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
var _ = internal.GetEnvOrDefault
// Error describes why the execution was abnormally terminated.
type ErrorResponse struct {
// Human-readable stack trace string.
Context string `pulumi:"context"`
// Error message and data returned represented as a JSON string.
Payload string `pulumi:"payload"`
// Stack trace with detailed information of where error was generated.
StackTrace StackTraceResponse `pulumi:"stackTrace"`
}
// Error describes why the execution was abnormally terminated.
type ErrorResponseOutput struct{ *pulumi.OutputState }
func (ErrorResponseOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ErrorResponse)(nil)).Elem()
}
func (o ErrorResponseOutput) ToErrorResponseOutput() ErrorResponseOutput {
return o
}
func (o ErrorResponseOutput) ToErrorResponseOutputWithContext(ctx context.Context) ErrorResponseOutput {
return o
}
// Human-readable stack trace string.
func (o ErrorResponseOutput) Context() pulumi.StringOutput {
return o.ApplyT(func(v ErrorResponse) string { return v.Context }).(pulumi.StringOutput)
}
// Error message and data returned represented as a JSON string.
func (o ErrorResponseOutput) Payload() pulumi.StringOutput {
return o.ApplyT(func(v ErrorResponse) string { return v.Payload }).(pulumi.StringOutput)
}
// Stack trace with detailed information of where error was generated.
func (o ErrorResponseOutput) StackTrace() StackTraceResponseOutput {
return o.ApplyT(func(v ErrorResponse) StackTraceResponse { return v.StackTrace }).(StackTraceResponseOutput)
}
// Position contains source position information about the stack trace element such as line number, column number and length of the code block in bytes.
type PositionResponse struct {
// The source code column position (of the line) the current instruction was generated from.
Column string `pulumi:"column"`
// The number of bytes of source code making up this stack trace element.
Length string `pulumi:"length"`
// The source code line number the current instruction was generated from.
Line string `pulumi:"line"`
}
// Position contains source position information about the stack trace element such as line number, column number and length of the code block in bytes.
type PositionResponseOutput struct{ *pulumi.OutputState }
func (PositionResponseOutput) ElementType() reflect.Type {
return reflect.TypeOf((*PositionResponse)(nil)).Elem()
}
func (o PositionResponseOutput) ToPositionResponseOutput() PositionResponseOutput {
return o
}
func (o PositionResponseOutput) ToPositionResponseOutputWithContext(ctx context.Context) PositionResponseOutput {
return o
}
// The source code column position (of the line) the current instruction was generated from.
func (o PositionResponseOutput) Column() pulumi.StringOutput {
return o.ApplyT(func(v PositionResponse) string { return v.Column }).(pulumi.StringOutput)
}
// The number of bytes of source code making up this stack trace element.
func (o PositionResponseOutput) Length() pulumi.StringOutput {
return o.ApplyT(func(v PositionResponse) string { return v.Length }).(pulumi.StringOutput)
}
// The source code line number the current instruction was generated from.
func (o PositionResponseOutput) Line() pulumi.StringOutput {
return o.ApplyT(func(v PositionResponse) string { return v.Line }).(pulumi.StringOutput)
}
// A single stack element (frame) where an error occurred.
type StackTraceElementResponse struct {
// The source position information of the stack trace element.
Position PositionResponse `pulumi:"position"`
// The routine where the error occurred.
Routine string `pulumi:"routine"`
// The step the error occurred at.
Step string `pulumi:"step"`
}
// A single stack element (frame) where an error occurred.
type StackTraceElementResponseOutput struct{ *pulumi.OutputState }
func (StackTraceElementResponseOutput) ElementType() reflect.Type {
return reflect.TypeOf((*StackTraceElementResponse)(nil)).Elem()
}
func (o StackTraceElementResponseOutput) ToStackTraceElementResponseOutput() StackTraceElementResponseOutput {
return o
}
func (o StackTraceElementResponseOutput) ToStackTraceElementResponseOutputWithContext(ctx context.Context) StackTraceElementResponseOutput {
return o
}
// The source position information of the stack trace element.
func (o StackTraceElementResponseOutput) Position() PositionResponseOutput {
return o.ApplyT(func(v StackTraceElementResponse) PositionResponse { return v.Position }).(PositionResponseOutput)
}
// The routine where the error occurred.
func (o StackTraceElementResponseOutput) Routine() pulumi.StringOutput {
return o.ApplyT(func(v StackTraceElementResponse) string { return v.Routine }).(pulumi.StringOutput)
}
// The step the error occurred at.
func (o StackTraceElementResponseOutput) Step() pulumi.StringOutput {
return o.ApplyT(func(v StackTraceElementResponse) string { return v.Step }).(pulumi.StringOutput)
}
type StackTraceElementResponseArrayOutput struct{ *pulumi.OutputState }
func (StackTraceElementResponseArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]StackTraceElementResponse)(nil)).Elem()
}
func (o StackTraceElementResponseArrayOutput) ToStackTraceElementResponseArrayOutput() StackTraceElementResponseArrayOutput {
return o
}
func (o StackTraceElementResponseArrayOutput) ToStackTraceElementResponseArrayOutputWithContext(ctx context.Context) StackTraceElementResponseArrayOutput {
return o
}
func (o StackTraceElementResponseArrayOutput) Index(i pulumi.IntInput) StackTraceElementResponseOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) StackTraceElementResponse {
return vs[0].([]StackTraceElementResponse)[vs[1].(int)]
}).(StackTraceElementResponseOutput)
}
// A collection of stack elements (frames) where an error occurred.
type StackTraceResponse struct {
// An array of stack elements.
Elements []StackTraceElementResponse `pulumi:"elements"`
}
// A collection of stack elements (frames) where an error occurred.
type StackTraceResponseOutput struct{ *pulumi.OutputState }
func (StackTraceResponseOutput) ElementType() reflect.Type {
return reflect.TypeOf((*StackTraceResponse)(nil)).Elem()
}
func (o StackTraceResponseOutput) ToStackTraceResponseOutput() StackTraceResponseOutput {
return o
}
func (o StackTraceResponseOutput) ToStackTraceResponseOutputWithContext(ctx context.Context) StackTraceResponseOutput {
return o
}
// An array of stack elements.
func (o StackTraceResponseOutput) Elements() StackTraceElementResponseArrayOutput {
return o.ApplyT(func(v StackTraceResponse) []StackTraceElementResponse { return v.Elements }).(StackTraceElementResponseArrayOutput)
}
// Describes an error related to the current state of the Execution resource.
type StateErrorResponse struct {
// Provides specifics about the error.
Details string `pulumi:"details"`
// The type of this state error.
Type string `pulumi:"type"`
}
// Describes an error related to the current state of the Execution resource.
type StateErrorResponseOutput struct{ *pulumi.OutputState }
func (StateErrorResponseOutput) ElementType() reflect.Type {
return reflect.TypeOf((*StateErrorResponse)(nil)).Elem()
}
func (o StateErrorResponseOutput) ToStateErrorResponseOutput() StateErrorResponseOutput {
return o
}
func (o StateErrorResponseOutput) ToStateErrorResponseOutputWithContext(ctx context.Context) StateErrorResponseOutput {
return o
}
// Provides specifics about the error.
func (o StateErrorResponseOutput) Details() pulumi.StringOutput {
return o.ApplyT(func(v StateErrorResponse) string { return v.Details }).(pulumi.StringOutput)
}
// The type of this state error.
func (o StateErrorResponseOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v StateErrorResponse) string { return v.Type }).(pulumi.StringOutput)
}
// Represents the current status of this execution.
type StatusResponse struct {
// A list of currently executing or last executed step names for the workflow execution currently running. If the workflow has succeeded or failed, this is the last attempted or executed step. Presently, if the current step is inside a subworkflow, the list only includes that step. In the future, the list will contain items for each step in the call stack, starting with the outermost step in the `main` subworkflow, and ending with the most deeply nested step.
CurrentSteps []StepResponse `pulumi:"currentSteps"`
}
// Represents the current status of this execution.
type StatusResponseOutput struct{ *pulumi.OutputState }
func (StatusResponseOutput) ElementType() reflect.Type {
return reflect.TypeOf((*StatusResponse)(nil)).Elem()
}
func (o StatusResponseOutput) ToStatusResponseOutput() StatusResponseOutput {
return o
}
func (o StatusResponseOutput) ToStatusResponseOutputWithContext(ctx context.Context) StatusResponseOutput {
return o
}
// A list of currently executing or last executed step names for the workflow execution currently running. If the workflow has succeeded or failed, this is the last attempted or executed step. Presently, if the current step is inside a subworkflow, the list only includes that step. In the future, the list will contain items for each step in the call stack, starting with the outermost step in the `main` subworkflow, and ending with the most deeply nested step.
func (o StatusResponseOutput) CurrentSteps() StepResponseArrayOutput {
return o.ApplyT(func(v StatusResponse) []StepResponse { return v.CurrentSteps }).(StepResponseArrayOutput)
}
// Represents a step of the workflow this execution is running.
type StepResponse struct {
// Name of a routine within the workflow.
Routine string `pulumi:"routine"`
// Name of a step within the routine.
Step string `pulumi:"step"`
}
// Represents a step of the workflow this execution is running.
type StepResponseOutput struct{ *pulumi.OutputState }
func (StepResponseOutput) ElementType() reflect.Type {
return reflect.TypeOf((*StepResponse)(nil)).Elem()
}
func (o StepResponseOutput) ToStepResponseOutput() StepResponseOutput {
return o
}
func (o StepResponseOutput) ToStepResponseOutputWithContext(ctx context.Context) StepResponseOutput {
return o
}
// Name of a routine within the workflow.
func (o StepResponseOutput) Routine() pulumi.StringOutput {
return o.ApplyT(func(v StepResponse) string { return v.Routine }).(pulumi.StringOutput)
}
// Name of a step within the routine.
func (o StepResponseOutput) Step() pulumi.StringOutput {
return o.ApplyT(func(v StepResponse) string { return v.Step }).(pulumi.StringOutput)
}
type StepResponseArrayOutput struct{ *pulumi.OutputState }
func (StepResponseArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]StepResponse)(nil)).Elem()
}
func (o StepResponseArrayOutput) ToStepResponseArrayOutput() StepResponseArrayOutput {
return o
}
func (o StepResponseArrayOutput) ToStepResponseArrayOutputWithContext(ctx context.Context) StepResponseArrayOutput {
return o
}
func (o StepResponseArrayOutput) Index(i pulumi.IntInput) StepResponseOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) StepResponse {
return vs[0].([]StepResponse)[vs[1].(int)]
}).(StepResponseOutput)
}
func init() {
pulumi.RegisterOutputType(ErrorResponseOutput{})
pulumi.RegisterOutputType(PositionResponseOutput{})
pulumi.RegisterOutputType(StackTraceElementResponseOutput{})
pulumi.RegisterOutputType(StackTraceElementResponseArrayOutput{})
pulumi.RegisterOutputType(StackTraceResponseOutput{})
pulumi.RegisterOutputType(StateErrorResponseOutput{})
pulumi.RegisterOutputType(StatusResponseOutput{})
pulumi.RegisterOutputType(StepResponseOutput{})
pulumi.RegisterOutputType(StepResponseArrayOutput{})
}