Skip to content

Commit 333e351

Browse files
authored
IWF-511: [iWF] Add a error field to the IwfEvent struct (#544)
1 parent 1f5dc17 commit 333e351

File tree

13 files changed

+385
-9
lines changed

13 files changed

+385
-9
lines changed

gen/iwfidl/.openapi-generator/FILES

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ docs/InterStateChannelCommand.md
2727
docs/InterStateChannelPublishing.md
2828
docs/InterStateChannelResult.md
2929
docs/IwfEvent.md
30+
docs/IwfEventError.md
3031
docs/KeyValue.md
3132
docs/PersistenceLoadingPolicy.md
3233
docs/PersistenceLoadingType.md
@@ -112,6 +113,7 @@ model_inter_state_channel_command.go
112113
model_inter_state_channel_publishing.go
113114
model_inter_state_channel_result.go
114115
model_iwf_event.go
116+
model_iwf_event_error.go
115117
model_key_value.go
116118
model_persistence_loading_policy.go
117119
model_persistence_loading_type.go

gen/iwfidl/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ Class | Method | HTTP request | Description
122122
- [InterStateChannelPublishing](docs/InterStateChannelPublishing.md)
123123
- [InterStateChannelResult](docs/InterStateChannelResult.md)
124124
- [IwfEvent](docs/IwfEvent.md)
125+
- [IwfEventError](docs/IwfEventError.md)
125126
- [KeyValue](docs/KeyValue.md)
126127
- [PersistenceLoadingPolicy](docs/PersistenceLoadingPolicy.md)
127128
- [PersistenceLoadingType](docs/PersistenceLoadingType.md)

gen/iwfidl/api/openapi.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -3373,6 +3373,8 @@ components:
33733373
endTimestampInMs:
33743374
format: int64
33753375
type: integer
3376+
error:
3377+
$ref: '#/components/schemas/IwfEvent_error'
33763378
searchAttributes:
33773379
items:
33783380
$ref: '#/components/schemas/SearchAttribute'
@@ -3383,3 +3385,10 @@ components:
33833385
- workflowRunId
33843386
- workflowType
33853387
type: object
3388+
IwfEvent_error:
3389+
properties:
3390+
type:
3391+
type: string
3392+
details:
3393+
type: string
3394+
type: object

gen/iwfidl/docs/IwfEvent.md

+26
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
1313
**RpcName** | Pointer to **string** | | [optional]
1414
**StartTimestampInMs** | Pointer to **int64** | | [optional]
1515
**EndTimestampInMs** | Pointer to **int64** | | [optional]
16+
**Error** | Pointer to [**IwfEventError**](IwfEventError.md) | | [optional]
1617
**SearchAttributes** | Pointer to [**[]SearchAttribute**](SearchAttribute.md) | | [optional]
1718

1819
## Methods
@@ -239,6 +240,31 @@ SetEndTimestampInMs sets EndTimestampInMs field to given value.
239240

240241
HasEndTimestampInMs returns a boolean if a field has been set.
241242

243+
### GetError
244+
245+
`func (o *IwfEvent) GetError() IwfEventError`
246+
247+
GetError returns the Error field if non-nil, zero value otherwise.
248+
249+
### GetErrorOk
250+
251+
`func (o *IwfEvent) GetErrorOk() (*IwfEventError, bool)`
252+
253+
GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise
254+
and a boolean to check if the value has been set.
255+
256+
### SetError
257+
258+
`func (o *IwfEvent) SetError(v IwfEventError)`
259+
260+
SetError sets Error field to given value.
261+
262+
### HasError
263+
264+
`func (o *IwfEvent) HasError() bool`
265+
266+
HasError returns a boolean if a field has been set.
267+
242268
### GetSearchAttributes
243269

244270
`func (o *IwfEvent) GetSearchAttributes() []SearchAttribute`

gen/iwfidl/docs/IwfEventError.md

+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# IwfEventError
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**Type** | Pointer to **string** | | [optional]
8+
**Details** | Pointer to **string** | | [optional]
9+
10+
## Methods
11+
12+
### NewIwfEventError
13+
14+
`func NewIwfEventError() *IwfEventError`
15+
16+
NewIwfEventError instantiates a new IwfEventError object
17+
This constructor will assign default values to properties that have it defined,
18+
and makes sure properties required by API are set, but the set of arguments
19+
will change when the set of required properties is changed
20+
21+
### NewIwfEventErrorWithDefaults
22+
23+
`func NewIwfEventErrorWithDefaults() *IwfEventError`
24+
25+
NewIwfEventErrorWithDefaults instantiates a new IwfEventError object
26+
This constructor will only assign default values to properties that have it defined,
27+
but it doesn't guarantee that properties required by API are set
28+
29+
### GetType
30+
31+
`func (o *IwfEventError) GetType() string`
32+
33+
GetType returns the Type field if non-nil, zero value otherwise.
34+
35+
### GetTypeOk
36+
37+
`func (o *IwfEventError) GetTypeOk() (*string, bool)`
38+
39+
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
40+
and a boolean to check if the value has been set.
41+
42+
### SetType
43+
44+
`func (o *IwfEventError) SetType(v string)`
45+
46+
SetType sets Type field to given value.
47+
48+
### HasType
49+
50+
`func (o *IwfEventError) HasType() bool`
51+
52+
HasType returns a boolean if a field has been set.
53+
54+
### GetDetails
55+
56+
`func (o *IwfEventError) GetDetails() string`
57+
58+
GetDetails returns the Details field if non-nil, zero value otherwise.
59+
60+
### GetDetailsOk
61+
62+
`func (o *IwfEventError) GetDetailsOk() (*string, bool)`
63+
64+
GetDetailsOk returns a tuple with the Details field if it's non-nil, zero value otherwise
65+
and a boolean to check if the value has been set.
66+
67+
### SetDetails
68+
69+
`func (o *IwfEventError) SetDetails(v string)`
70+
71+
SetDetails sets Details field to given value.
72+
73+
### HasDetails
74+
75+
`func (o *IwfEventError) HasDetails() bool`
76+
77+
HasDetails returns a boolean if a field has been set.
78+
79+
80+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
81+
82+

gen/iwfidl/model_iwf_event.go

+36
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/iwfidl/model_iwf_event_error.go

+160
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

iwf-idl

Submodule iwf-idl updated 1 file

0 commit comments

Comments
 (0)