Skip to content

Commit

Permalink
IWF-511: [iWF] Add a error field to the IwfEvent struct (#544)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel27m authored Feb 12, 2025
1 parent 1f5dc17 commit 333e351
Show file tree
Hide file tree
Showing 13 changed files with 385 additions and 9 deletions.
2 changes: 2 additions & 0 deletions gen/iwfidl/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ docs/InterStateChannelCommand.md
docs/InterStateChannelPublishing.md
docs/InterStateChannelResult.md
docs/IwfEvent.md
docs/IwfEventError.md
docs/KeyValue.md
docs/PersistenceLoadingPolicy.md
docs/PersistenceLoadingType.md
Expand Down Expand Up @@ -112,6 +113,7 @@ model_inter_state_channel_command.go
model_inter_state_channel_publishing.go
model_inter_state_channel_result.go
model_iwf_event.go
model_iwf_event_error.go
model_key_value.go
model_persistence_loading_policy.go
model_persistence_loading_type.go
Expand Down
1 change: 1 addition & 0 deletions gen/iwfidl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ Class | Method | HTTP request | Description
- [InterStateChannelPublishing](docs/InterStateChannelPublishing.md)
- [InterStateChannelResult](docs/InterStateChannelResult.md)
- [IwfEvent](docs/IwfEvent.md)
- [IwfEventError](docs/IwfEventError.md)
- [KeyValue](docs/KeyValue.md)
- [PersistenceLoadingPolicy](docs/PersistenceLoadingPolicy.md)
- [PersistenceLoadingType](docs/PersistenceLoadingType.md)
Expand Down
9 changes: 9 additions & 0 deletions gen/iwfidl/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3373,6 +3373,8 @@ components:
endTimestampInMs:
format: int64
type: integer
error:
$ref: '#/components/schemas/IwfEvent_error'
searchAttributes:
items:
$ref: '#/components/schemas/SearchAttribute'
Expand All @@ -3383,3 +3385,10 @@ components:
- workflowRunId
- workflowType
type: object
IwfEvent_error:
properties:
type:
type: string
details:
type: string
type: object
26 changes: 26 additions & 0 deletions gen/iwfidl/docs/IwfEvent.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Name | Type | Description | Notes
**RpcName** | Pointer to **string** | | [optional]
**StartTimestampInMs** | Pointer to **int64** | | [optional]
**EndTimestampInMs** | Pointer to **int64** | | [optional]
**Error** | Pointer to [**IwfEventError**](IwfEventError.md) | | [optional]
**SearchAttributes** | Pointer to [**[]SearchAttribute**](SearchAttribute.md) | | [optional]

## Methods
Expand Down Expand Up @@ -239,6 +240,31 @@ SetEndTimestampInMs sets EndTimestampInMs field to given value.

HasEndTimestampInMs returns a boolean if a field has been set.

### GetError

`func (o *IwfEvent) GetError() IwfEventError`

GetError returns the Error field if non-nil, zero value otherwise.

### GetErrorOk

`func (o *IwfEvent) GetErrorOk() (*IwfEventError, bool)`

GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetError

`func (o *IwfEvent) SetError(v IwfEventError)`

SetError sets Error field to given value.

### HasError

`func (o *IwfEvent) HasError() bool`

HasError returns a boolean if a field has been set.

### GetSearchAttributes

`func (o *IwfEvent) GetSearchAttributes() []SearchAttribute`
Expand Down
82 changes: 82 additions & 0 deletions gen/iwfidl/docs/IwfEventError.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# IwfEventError

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Type** | Pointer to **string** | | [optional]
**Details** | Pointer to **string** | | [optional]

## Methods

### NewIwfEventError

`func NewIwfEventError() *IwfEventError`

NewIwfEventError instantiates a new IwfEventError object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed

### NewIwfEventErrorWithDefaults

`func NewIwfEventErrorWithDefaults() *IwfEventError`

NewIwfEventErrorWithDefaults instantiates a new IwfEventError object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set

### GetType

`func (o *IwfEventError) GetType() string`

GetType returns the Type field if non-nil, zero value otherwise.

### GetTypeOk

`func (o *IwfEventError) GetTypeOk() (*string, bool)`

GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetType

`func (o *IwfEventError) SetType(v string)`

SetType sets Type field to given value.

### HasType

`func (o *IwfEventError) HasType() bool`

HasType returns a boolean if a field has been set.

### GetDetails

`func (o *IwfEventError) GetDetails() string`

GetDetails returns the Details field if non-nil, zero value otherwise.

### GetDetailsOk

`func (o *IwfEventError) GetDetailsOk() (*string, bool)`

GetDetailsOk returns a tuple with the Details field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetDetails

`func (o *IwfEventError) SetDetails(v string)`

SetDetails sets Details field to given value.

### HasDetails

`func (o *IwfEventError) HasDetails() bool`

HasDetails returns a boolean if a field has been set.


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


36 changes: 36 additions & 0 deletions gen/iwfidl/model_iwf_event.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

160 changes: 160 additions & 0 deletions gen/iwfidl/model_iwf_event_error.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion iwf-idl
Submodule iwf-idl updated 1 files
+7 −0 iwf.yaml
Loading

0 comments on commit 333e351

Please sign in to comment.