-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
workflowexecutions-gen.go
2755 lines (2489 loc) · 108 KB
/
workflowexecutions-gen.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
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2024 Google LLC.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated file. DO NOT EDIT.
// Package workflowexecutions provides access to the Workflow Executions API.
//
// For product documentation, see: https://cloud.google.com/workflows
//
// # Library status
//
// These client libraries are officially supported by Google. However, this
// library is considered complete and is in maintenance mode. This means
// that we will address critical bugs and security issues but will not add
// any new features.
//
// When possible, we recommend using our newer
// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)
// that are still actively being worked and iterated on.
//
// # Creating a client
//
// Usage example:
//
// import "google.golang.org/api/workflowexecutions/v1"
// ...
// ctx := context.Background()
// workflowexecutionsService, err := workflowexecutions.NewService(ctx)
//
// In this example, Google Application Default Credentials are used for
// authentication. For information on how to create and obtain Application
// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
//
// # Other authentication options
//
// To use an API key for authentication (note: some APIs do not support API
// keys), use [google.golang.org/api/option.WithAPIKey]:
//
// workflowexecutionsService, err := workflowexecutions.NewService(ctx, option.WithAPIKey("AIza..."))
//
// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth
// flow, use [google.golang.org/api/option.WithTokenSource]:
//
// config := &oauth2.Config{...}
// // ...
// token, err := config.Exchange(ctx, ...)
// workflowexecutionsService, err := workflowexecutions.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
//
// See [google.golang.org/api/option.ClientOption] for details on options.
package workflowexecutions // import "google.golang.org/api/workflowexecutions/v1"
import (
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"net/url"
"strconv"
"strings"
googleapi "google.golang.org/api/googleapi"
internal "google.golang.org/api/internal"
gensupport "google.golang.org/api/internal/gensupport"
option "google.golang.org/api/option"
internaloption "google.golang.org/api/option/internaloption"
htransport "google.golang.org/api/transport/http"
)
// Always reference these packages, just in case the auto-generated code
// below doesn't.
var _ = bytes.NewBuffer
var _ = strconv.Itoa
var _ = fmt.Sprintf
var _ = json.NewDecoder
var _ = io.Copy
var _ = url.Parse
var _ = gensupport.MarshalJSON
var _ = googleapi.Version
var _ = errors.New
var _ = strings.Replace
var _ = context.Canceled
var _ = internaloption.WithDefaultEndpoint
var _ = internal.Version
const apiId = "workflowexecutions:v1"
const apiName = "workflowexecutions"
const apiVersion = "v1"
const basePath = "https://workflowexecutions.googleapis.com/"
const basePathTemplate = "https://workflowexecutions.UNIVERSE_DOMAIN/"
const mtlsBasePath = "https://workflowexecutions.mtls.googleapis.com/"
const defaultUniverseDomain = "googleapis.com"
// OAuth2 scopes used by this API.
const (
// See, edit, configure, and delete your Google Cloud data and see the
// email address for your Google Account.
CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
)
// NewService creates a new Service.
func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
scopesOption := internaloption.WithDefaultScopes(
"https://www.googleapis.com/auth/cloud-platform",
)
// NOTE: prepend, so we don't override user-specified scopes.
opts = append([]option.ClientOption{scopesOption}, opts...)
opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
opts = append(opts, internaloption.WithDefaultUniverseDomain(defaultUniverseDomain))
client, endpoint, err := htransport.NewClient(ctx, opts...)
if err != nil {
return nil, err
}
s, err := New(client)
if err != nil {
return nil, err
}
if endpoint != "" {
s.BasePath = endpoint
}
return s, nil
}
// New creates a new Service. It uses the provided http.Client for requests.
//
// Deprecated: please use NewService instead.
// To provide a custom HTTP client, use option.WithHTTPClient.
// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
func New(client *http.Client) (*Service, error) {
if client == nil {
return nil, errors.New("client is nil")
}
s := &Service{client: client, BasePath: basePath}
s.Projects = NewProjectsService(s)
return s, nil
}
type Service struct {
client *http.Client
BasePath string // API endpoint base URL
UserAgent string // optional additional User-Agent fragment
Projects *ProjectsService
}
func (s *Service) userAgent() string {
if s.UserAgent == "" {
return googleapi.UserAgent
}
return googleapi.UserAgent + " " + s.UserAgent
}
func NewProjectsService(s *Service) *ProjectsService {
rs := &ProjectsService{s: s}
rs.Locations = NewProjectsLocationsService(s)
return rs
}
type ProjectsService struct {
s *Service
Locations *ProjectsLocationsService
}
func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
rs := &ProjectsLocationsService{s: s}
rs.Workflows = NewProjectsLocationsWorkflowsService(s)
return rs
}
type ProjectsLocationsService struct {
s *Service
Workflows *ProjectsLocationsWorkflowsService
}
func NewProjectsLocationsWorkflowsService(s *Service) *ProjectsLocationsWorkflowsService {
rs := &ProjectsLocationsWorkflowsService{s: s}
rs.Executions = NewProjectsLocationsWorkflowsExecutionsService(s)
return rs
}
type ProjectsLocationsWorkflowsService struct {
s *Service
Executions *ProjectsLocationsWorkflowsExecutionsService
}
func NewProjectsLocationsWorkflowsExecutionsService(s *Service) *ProjectsLocationsWorkflowsExecutionsService {
rs := &ProjectsLocationsWorkflowsExecutionsService{s: s}
rs.Callbacks = NewProjectsLocationsWorkflowsExecutionsCallbacksService(s)
rs.StepEntries = NewProjectsLocationsWorkflowsExecutionsStepEntriesService(s)
return rs
}
type ProjectsLocationsWorkflowsExecutionsService struct {
s *Service
Callbacks *ProjectsLocationsWorkflowsExecutionsCallbacksService
StepEntries *ProjectsLocationsWorkflowsExecutionsStepEntriesService
}
func NewProjectsLocationsWorkflowsExecutionsCallbacksService(s *Service) *ProjectsLocationsWorkflowsExecutionsCallbacksService {
rs := &ProjectsLocationsWorkflowsExecutionsCallbacksService{s: s}
return rs
}
type ProjectsLocationsWorkflowsExecutionsCallbacksService struct {
s *Service
}
func NewProjectsLocationsWorkflowsExecutionsStepEntriesService(s *Service) *ProjectsLocationsWorkflowsExecutionsStepEntriesService {
rs := &ProjectsLocationsWorkflowsExecutionsStepEntriesService{s: s}
return rs
}
type ProjectsLocationsWorkflowsExecutionsStepEntriesService struct {
s *Service
}
// Callback: An instance of a Callback created by an execution.
type Callback struct {
// AvailablePayloads: Output only. The payloads received by the callback
// that have not been processed by a waiting execution step.
AvailablePayloads []string `json:"availablePayloads,omitempty"`
// Method: Output only. The method accepted by the callback. For
// example: GET, POST, PUT.
Method string `json:"method,omitempty"`
// Name: Output only. The resource name of the callback. Format:
// projects/{project}/locations/{location}/workflows/{workflow}/execution
// s/{execution}/callback/{callback}
Name string `json:"name,omitempty"`
// Waiters: Output only. Number of execution steps waiting on this
// callback.
Waiters int64 `json:"waiters,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "AvailablePayloads")
// to unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AvailablePayloads") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *Callback) MarshalJSON() ([]byte, error) {
type NoMethod Callback
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CancelExecutionRequest: Request for the CancelExecution method.
type CancelExecutionRequest struct {
}
// Error: Error describes why the execution was abnormally terminated.
type Error struct {
// Context: Human-readable stack trace string.
Context string `json:"context,omitempty"`
// Payload: Error message and data returned represented as a JSON
// string.
Payload string `json:"payload,omitempty"`
// StackTrace: Stack trace with detailed information of where error was
// generated.
StackTrace *StackTrace `json:"stackTrace,omitempty"`
// ForceSendFields is a list of field names (e.g. "Context") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Context") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Error) MarshalJSON() ([]byte, error) {
type NoMethod Error
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Exception: Exception describes why the step entry failed.
type Exception struct {
// Payload: Error message represented as a JSON string.
Payload string `json:"payload,omitempty"`
// ForceSendFields is a list of field names (e.g. "Payload") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Payload") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Exception) MarshalJSON() ([]byte, error) {
type NoMethod Exception
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Execution: A running instance of a Workflow
// (/workflows/docs/reference/rest/v1/projects.locations.workflows).
type Execution struct {
// Argument: Input parameters of the execution represented as a JSON
// string. The size limit is 32KB. *Note*: If you are using the REST API
// directly to run your workflow, you must escape any JSON string value
// of `argument`. Example:
// `'{"argument":"{\"firstName\":\"FIRST\",\"lastName\":\"LAST\"}"}'`
Argument string `json:"argument,omitempty"`
// CallLogLevel: The call logging level associated to this execution.
//
// Possible values:
// "CALL_LOG_LEVEL_UNSPECIFIED" - No call logging level specified.
// "LOG_ALL_CALLS" - Log all call steps within workflows, all call
// returns, and all exceptions raised.
// "LOG_ERRORS_ONLY" - Log only exceptions that are raised from call
// steps within workflows.
// "LOG_NONE" - Explicitly log nothing.
CallLogLevel string `json:"callLogLevel,omitempty"`
// CreateTime: Output only. Marks the creation of the execution.
CreateTime string `json:"createTime,omitempty"`
// DisableConcurrencyQuotaOverflowBuffering: Optional. If set to true,
// the execution will not be backlogged when the concurrency quota is
// exhausted. The backlog execution starts when the concurrency quota
// becomes available.
DisableConcurrencyQuotaOverflowBuffering bool `json:"disableConcurrencyQuotaOverflowBuffering,omitempty"`
// Duration: Output only. Measures the duration of the execution.
Duration string `json:"duration,omitempty"`
// EndTime: Output only. Marks the end of execution, successful or not.
EndTime string `json:"endTime,omitempty"`
// Error: Output only. The error which caused the execution to finish
// prematurely. The value is only present if the execution's state is
// `FAILED` or `CANCELLED`.
Error *Error `json:"error,omitempty"`
// Labels: Labels associated with this execution. Labels can contain at
// most 64 entries. Keys and values can be no longer than 63 characters
// and can only contain lowercase letters, numeric characters,
// underscores, and dashes. Label keys must start with a letter.
// International characters are allowed. By default, labels are
// inherited from the workflow but are overridden by any labels
// associated with the execution.
Labels map[string]string `json:"labels,omitempty"`
// Name: Output only. The resource name of the execution. Format:
// projects/{project}/locations/{location}/workflows/{workflow}/execution
// s/{execution}
Name string `json:"name,omitempty"`
// Result: Output only. Output of the execution represented as a JSON
// string. The value can only be present if the execution's state is
// `SUCCEEDED`.
Result string `json:"result,omitempty"`
// StartTime: Output only. Marks the beginning of execution.
StartTime string `json:"startTime,omitempty"`
// State: Output only. Current state of the execution.
//
// Possible values:
// "STATE_UNSPECIFIED" - Invalid state.
// "ACTIVE" - The execution is in progress.
// "SUCCEEDED" - The execution finished successfully.
// "FAILED" - The execution failed with an error.
// "CANCELLED" - The execution was stopped intentionally.
// "UNAVAILABLE" - Execution data is unavailable. See the
// `state_error` field.
// "QUEUED" - Request has been placed in the backlog for processing at
// a later time.
State string `json:"state,omitempty"`
// StateError: Output only. Error regarding the state of the Execution
// resource. For example, this field will have error details if the
// execution data is unavailable due to revoked KMS key permissions.
StateError *StateError `json:"stateError,omitempty"`
// Status: Output only. Status tracks the current steps and progress
// data of this execution.
Status *Status `json:"status,omitempty"`
// WorkflowRevisionId: Output only. Revision of the workflow this
// execution is using.
WorkflowRevisionId string `json:"workflowRevisionId,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Argument") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Argument") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Execution) MarshalJSON() ([]byte, error) {
type NoMethod Execution
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ExportDataResponse: Response for the ExportData method.
type ExportDataResponse struct {
// Data: The JSON string with customer data and metadata for an
// execution with the given name
Data string `json:"data,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Data") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Data") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ExportDataResponse) MarshalJSON() ([]byte, error) {
type NoMethod ExportDataResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListCallbacksResponse: RPC response object for the ListCallbacks
// method.
type ListCallbacksResponse struct {
// Callbacks: The callbacks which match the request.
Callbacks []*Callback `json:"callbacks,omitempty"`
// NextPageToken: A token, which can be sent as `page_token` to retrieve
// the next page. If this field is omitted, there are no subsequent
// pages.
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Callbacks") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Callbacks") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ListCallbacksResponse) MarshalJSON() ([]byte, error) {
type NoMethod ListCallbacksResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListExecutionsResponse: Response for the ListExecutions method.
type ListExecutionsResponse struct {
// Executions: The executions which match the request.
Executions []*Execution `json:"executions,omitempty"`
// NextPageToken: A token, which can be sent as `page_token` to retrieve
// the next page. If this field is omitted, there are no subsequent
// pages.
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Executions") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Executions") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ListExecutionsResponse) MarshalJSON() ([]byte, error) {
type NoMethod ListExecutionsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListStepEntriesResponse: Response message for
// ExecutionHistory.ListStepEntries.
type ListStepEntriesResponse struct {
// NextPageToken: A token to retrieve next page of results. Pass this
// value in the ListStepEntriesRequest.page_token field in the
// subsequent call to `ListStepEntries` method to retrieve the next page
// of results.
NextPageToken string `json:"nextPageToken,omitempty"`
// StepEntries: The list of entries.
StepEntries []*StepEntry `json:"stepEntries,omitempty"`
// TotalSize: Indicates the total number of StepEntries that matched the
// request filter. For running executions, this number shows the number
// of StepEntries that are executed thus far.
TotalSize int64 `json:"totalSize,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "NextPageToken") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "NextPageToken") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ListStepEntriesResponse) MarshalJSON() ([]byte, error) {
type NoMethod ListStepEntriesResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// NavigationInfo: NavigationInfo describes what steps if any come
// before or after this step, or what steps are parents or children of
// this step.
type NavigationInfo struct {
// Children: Step entries that can be reached by "stepping into" e.g. a
// subworkflow call.
Children googleapi.Int64s `json:"children,omitempty"`
// Next: The index of the next step in the current workflow, if any.
Next int64 `json:"next,omitempty,string"`
// Parent: The step entry, if any, that can be reached by "stepping out"
// of the current workflow being executed.
Parent int64 `json:"parent,omitempty,string"`
// Previous: The index of the previous step in the current workflow, if
// any.
Previous int64 `json:"previous,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "Children") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Children") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *NavigationInfo) MarshalJSON() ([]byte, error) {
type NoMethod NavigationInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Position: 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 Position struct {
// Column: The source code column position (of the line) the current
// instruction was generated from.
Column int64 `json:"column,omitempty,string"`
// Length: The number of bytes of source code making up this stack trace
// element.
Length int64 `json:"length,omitempty,string"`
// Line: The source code line number the current instruction was
// generated from.
Line int64 `json:"line,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "Column") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Column") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Position) MarshalJSON() ([]byte, error) {
type NoMethod Position
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PubsubMessage: A message that is published by publishers and consumed
// by subscribers. The message must contain either a non-empty data
// field or at least one attribute. Note that client libraries represent
// this object differently depending on the language. See the
// corresponding client library documentation
// (https://cloud.google.com/pubsub/docs/reference/libraries) for more
// information. See [quotas and limits]
// (https://cloud.google.com/pubsub/quotas) for more information about
// message limits.
type PubsubMessage struct {
// Attributes: Optional. Attributes for this message. If this field is
// empty, the message must contain non-empty data. This can be used to
// filter messages on the subscription.
Attributes map[string]string `json:"attributes,omitempty"`
// Data: Optional. The message data field. If this field is empty, the
// message must contain at least one attribute.
Data string `json:"data,omitempty"`
// MessageId: ID of this message, assigned by the server when the
// message is published. Guaranteed to be unique within the topic. This
// value may be read by a subscriber that receives a `PubsubMessage` via
// a `Pull` call or a push delivery. It must not be populated by the
// publisher in a `Publish` call.
MessageId string `json:"messageId,omitempty"`
// OrderingKey: Optional. If non-empty, identifies related messages for
// which publish order should be respected. If a `Subscription` has
// `enable_message_ordering` set to `true`, messages published with the
// same non-empty `ordering_key` value will be delivered to subscribers
// in the order in which they are received by the Pub/Sub system. All
// `PubsubMessage`s published in a given `PublishRequest` must specify
// the same `ordering_key` value. For more information, see ordering
// messages (https://cloud.google.com/pubsub/docs/ordering).
OrderingKey string `json:"orderingKey,omitempty"`
// PublishTime: The time at which the message was published, populated
// by the server when it receives the `Publish` call. It must not be
// populated by the publisher in a `Publish` call.
PublishTime string `json:"publishTime,omitempty"`
// ForceSendFields is a list of field names (e.g. "Attributes") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Attributes") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *PubsubMessage) MarshalJSON() ([]byte, error) {
type NoMethod PubsubMessage
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// StackTrace: A collection of stack elements (frames) where an error
// occurred.
type StackTrace struct {
// Elements: An array of stack elements.
Elements []*StackTraceElement `json:"elements,omitempty"`
// ForceSendFields is a list of field names (e.g. "Elements") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Elements") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *StackTrace) MarshalJSON() ([]byte, error) {
type NoMethod StackTrace
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// StackTraceElement: A single stack element (frame) where an error
// occurred.
type StackTraceElement struct {
// Position: The source position information of the stack trace element.
Position *Position `json:"position,omitempty"`
// Routine: The routine where the error occurred.
Routine string `json:"routine,omitempty"`
// Step: The step the error occurred at.
Step string `json:"step,omitempty"`
// ForceSendFields is a list of field names (e.g. "Position") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Position") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *StackTraceElement) MarshalJSON() ([]byte, error) {
type NoMethod StackTraceElement
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// StateError: Describes an error related to the current state of the
// Execution resource.
type StateError struct {
// Details: Provides specifics about the error.
Details string `json:"details,omitempty"`
// Type: The type of this state error.
//
// Possible values:
// "TYPE_UNSPECIFIED" - No type specified.
// "KMS_ERROR" - Caused by an issue with KMS.
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g. "Details") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Details") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *StateError) MarshalJSON() ([]byte, error) {
type NoMethod StateError
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Status: Represents the current status of this execution.
type Status struct {
// CurrentSteps: 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 []*Step `json:"currentSteps,omitempty"`
// ForceSendFields is a list of field names (e.g. "CurrentSteps") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CurrentSteps") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Status) MarshalJSON() ([]byte, error) {
type NoMethod Status
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Step: Represents a step of the workflow this execution is running.
type Step struct {
// Routine: Name of a routine within the workflow.
Routine string `json:"routine,omitempty"`
// Step: Name of a step within the routine.
Step string `json:"step,omitempty"`
// ForceSendFields is a list of field names (e.g. "Routine") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Routine") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Step) MarshalJSON() ([]byte, error) {
type NoMethod Step
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// StepEntry: An StepEntry contains debugging information for a step
// transition in a workflow execution.
type StepEntry struct {
// CreateTime: Output only. The creation time of the step entry.
CreateTime string `json:"createTime,omitempty"`
// EntryId: Output only. The numeric ID of this step entry, used for
// navigation.
EntryId int64 `json:"entryId,omitempty,string"`
// Exception: Output only. The exception thrown by the step entry.
Exception *Exception `json:"exception,omitempty"`
// Name: Output only. The full resource name of the step entry. Each
// step entry has a unique entry ID, which is a monotonically increasing
// counter. Step entry names have the format:
// `projects/{project}/locations/{location}/workflows/{workflow}/executio
// ns/{execution}/stepEntries/{step_entry}`.
Name string `json:"name,omitempty"`
// NavigationInfo: Output only. The NavigationInfo associated to this
// step.
NavigationInfo *NavigationInfo `json:"navigationInfo,omitempty"`
// Routine: Output only. The name of the routine this step entry belongs
// to. A routine name is the subworkflow name defined in the YAML source
// code. The top level routine name is `main`.
Routine string `json:"routine,omitempty"`
// State: Output only. The state of the step entry.
//
// Possible values:
// "STATE_UNSPECIFIED" - Invalid state.
// "STATE_IN_PROGRESS" - The step entry is in progress.
// "STATE_SUCCEEDED" - The step entry finished successfully.
// "STATE_FAILED" - The step entry failed with an error.
State string `json:"state,omitempty"`
// Step: Output only. The name of the step this step entry belongs to.
Step string `json:"step,omitempty"`
// StepEntryMetadata: Output only. The StepEntryMetadata associated to
// this step.
StepEntryMetadata *StepEntryMetadata `json:"stepEntryMetadata,omitempty"`
// StepType: Output only. The type of the step this step entry belongs
// to.
//
// Possible values:
// "STEP_TYPE_UNSPECIFIED" - Invalid step type.
// "STEP_ASSIGN" - The step entry assigns new variable(s).
// "STEP_STD_LIB_CALL" - The step entry calls a standard library
// routine.
// "STEP_CONNECTOR_CALL" - The step entry calls a connector.
// "STEP_SUBWORKFLOW_CALL" - The step entry calls a subworklfow.
// "STEP_CALL" - The step entry calls a subworkflow/stdlib.
// "STEP_SWITCH" - The step entry executes a switch-case block.
// "STEP_CONDITION" - The step entry executes a condition inside a
// switch.
// "STEP_FOR" - The step entry executes a for loop.
// "STEP_FOR_ITERATION" - The step entry executes a iteration of a for
// loop.
// "STEP_PARALLEL_FOR" - The step entry executes a parallel for loop.
// "STEP_PARALLEL_BRANCH" - The step entry executes a series of
// parallel branch(es).
// "STEP_PARALLEL_BRANCH_ENTRY" - The step entry executes a branch of
// a parallel branch.
// "STEP_TRY_RETRY_EXCEPT" - The step entry executes a
// try/retry/except block.
// "STEP_TRY" - The step entry executes the try part of a
// try/retry/except block.
// "STEP_RETRY" - The step entry executes the retry part of a
// try/retry/except block.
// "STEP_EXCEPT" - The step entry executes the except part of a
// try/retry/except block.
// "STEP_RETURN" - The step entry returns.
// "STEP_RAISE" - The step entry raises an error.
// "STEP_GOTO" - The step entry jumps to another step.
StepType string `json:"stepType,omitempty"`
// UpdateTime: Output only. The most recently updated time of the step
// entry.
UpdateTime string `json:"updateTime,omitempty"`