Skip to content

Commit

Permalink
Update to latest IDL (add waitForKey and make commandId optional) (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
longquanzheng committed Sep 17, 2024
1 parent bb80ae1 commit 3ca6451
Show file tree
Hide file tree
Showing 32 changed files with 457 additions and 158 deletions.
23 changes: 15 additions & 8 deletions gen/iwfidl/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1628,6 +1628,7 @@ components:
stateInput:
data: data
encoding: encoding
waitForKey: waitForKey
- stateId: stateId
stateOptions:
searchAttributesLoadingPolicy:
Expand Down Expand Up @@ -1695,6 +1696,7 @@ components:
stateInput:
data: data
encoding: encoding
waitForKey: waitForKey
conditionalClose:
closeInput:
data: data
Expand Down Expand Up @@ -2084,6 +2086,7 @@ components:
stateInput:
data: data
encoding: encoding
waitForKey: waitForKey
- stateId: stateId
stateOptions:
searchAttributesLoadingPolicy:
Expand Down Expand Up @@ -2151,6 +2154,7 @@ components:
stateInput:
data: data
encoding: encoding
waitForKey: waitForKey
conditionalClose:
closeInput:
data: data
Expand Down Expand Up @@ -2214,17 +2218,22 @@ components:
WorkflowWaitForStateCompletionRequest:
example:
waitTimeSeconds: 0
stateId: stateId
workflowId: workflowId
stateExecutionId: stateExecutionId
waitForKey: waitForKey
properties:
workflowId:
type: string
stateExecutionId:
type: string
stateId:
type: string
waitForKey:
type: string
waitTimeSeconds:
type: integer
required:
- stateExecutionId
- workflowId
type: object
WorkflowWaitForStateCompletionResponse:
Expand Down Expand Up @@ -2321,6 +2330,7 @@ components:
stateInput:
data: data
encoding: encoding
waitForKey: waitForKey
- stateId: stateId
stateOptions:
searchAttributesLoadingPolicy:
Expand Down Expand Up @@ -2388,6 +2398,7 @@ components:
stateInput:
data: data
encoding: encoding
waitForKey: waitForKey
conditionalClose:
closeInput:
data: data
Expand Down Expand Up @@ -2492,13 +2503,16 @@ components:
stateInput:
data: data
encoding: encoding
waitForKey: waitForKey
properties:
stateId:
type: string
stateInput:
$ref: '#/components/schemas/EncodedObject'
stateOptions:
$ref: '#/components/schemas/WorkflowStateOptions'
waitForKey:
type: string
required:
- stateId
type: object
Expand Down Expand Up @@ -2647,8 +2661,6 @@ components:
durationSeconds:
format: int64
type: integer
required:
- commandId
type: object
SignalCommand:
example:
Expand All @@ -2666,7 +2678,6 @@ components:
atMost:
type: integer
required:
- commandId
- signalChannelName
type: object
InterStateChannelCommand:
Expand All @@ -2686,7 +2697,6 @@ components:
type: integer
required:
- channelName
- commandId
type: object
TimerResult:
example:
Expand All @@ -2698,7 +2708,6 @@ components:
timerStatus:
$ref: '#/components/schemas/TimerStatus'
required:
- commandId
- timerStatus
type: object
TimerStatus:
Expand All @@ -2724,7 +2733,6 @@ components:
signalValue:
$ref: '#/components/schemas/EncodedObject'
required:
- commandId
- signalChannelName
- signalRequestStatus
type: object
Expand All @@ -2747,7 +2755,6 @@ components:
$ref: '#/components/schemas/EncodedObject'
required:
- channelName
- commandId
- requestStatus
type: object
ChannelRequestStatus:
Expand Down
2 changes: 1 addition & 1 deletion gen/iwfidl/docs/DefaultApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,7 @@ import (
)

func main() {
workflowWaitForStateCompletionRequest := *openapiclient.NewWorkflowWaitForStateCompletionRequest("WorkflowId_example", "StateExecutionId_example") // WorkflowWaitForStateCompletionRequest | (optional)
workflowWaitForStateCompletionRequest := *openapiclient.NewWorkflowWaitForStateCompletionRequest("WorkflowId_example") // WorkflowWaitForStateCompletionRequest | (optional)

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
Expand Down
9 changes: 7 additions & 2 deletions gen/iwfidl/docs/InterStateChannelCommand.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**CommandId** | **string** | |
**CommandId** | Pointer to **string** | | [optional]
**ChannelName** | **string** | |
**AtLeast** | Pointer to **int32** | | [optional]
**AtMost** | Pointer to **int32** | | [optional]
Expand All @@ -13,7 +13,7 @@ Name | Type | Description | Notes

### NewInterStateChannelCommand

`func NewInterStateChannelCommand(commandId string, channelName string, ) *InterStateChannelCommand`
`func NewInterStateChannelCommand(channelName string, ) *InterStateChannelCommand`

NewInterStateChannelCommand instantiates a new InterStateChannelCommand object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -47,6 +47,11 @@ and a boolean to check if the value has been set.

SetCommandId sets CommandId field to given value.

### HasCommandId

`func (o *InterStateChannelCommand) HasCommandId() bool`

HasCommandId returns a boolean if a field has been set.

### GetChannelName

Expand Down
9 changes: 7 additions & 2 deletions gen/iwfidl/docs/InterStateChannelResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**CommandId** | **string** | |
**CommandId** | Pointer to **string** | | [optional]
**RequestStatus** | [**ChannelRequestStatus**](ChannelRequestStatus.md) | |
**ChannelName** | **string** | |
**Value** | Pointer to [**EncodedObject**](EncodedObject.md) | | [optional]
Expand All @@ -13,7 +13,7 @@ Name | Type | Description | Notes

### NewInterStateChannelResult

`func NewInterStateChannelResult(commandId string, requestStatus ChannelRequestStatus, channelName string, ) *InterStateChannelResult`
`func NewInterStateChannelResult(requestStatus ChannelRequestStatus, channelName string, ) *InterStateChannelResult`

NewInterStateChannelResult instantiates a new InterStateChannelResult object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -47,6 +47,11 @@ and a boolean to check if the value has been set.

SetCommandId sets CommandId field to given value.

### HasCommandId

`func (o *InterStateChannelResult) HasCommandId() bool`

HasCommandId returns a boolean if a field has been set.

### GetRequestStatus

Expand Down
9 changes: 7 additions & 2 deletions gen/iwfidl/docs/SignalCommand.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**CommandId** | **string** | |
**CommandId** | Pointer to **string** | | [optional]
**SignalChannelName** | **string** | |
**AtLeast** | Pointer to **int32** | | [optional]
**AtMost** | Pointer to **int32** | | [optional]
Expand All @@ -13,7 +13,7 @@ Name | Type | Description | Notes

### NewSignalCommand

`func NewSignalCommand(commandId string, signalChannelName string, ) *SignalCommand`
`func NewSignalCommand(signalChannelName string, ) *SignalCommand`

NewSignalCommand instantiates a new SignalCommand object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -47,6 +47,11 @@ and a boolean to check if the value has been set.

SetCommandId sets CommandId field to given value.

### HasCommandId

`func (o *SignalCommand) HasCommandId() bool`

HasCommandId returns a boolean if a field has been set.

### GetSignalChannelName

Expand Down
9 changes: 7 additions & 2 deletions gen/iwfidl/docs/SignalResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**CommandId** | **string** | |
**CommandId** | Pointer to **string** | | [optional]
**SignalRequestStatus** | [**ChannelRequestStatus**](ChannelRequestStatus.md) | |
**SignalChannelName** | **string** | |
**SignalValue** | Pointer to [**EncodedObject**](EncodedObject.md) | | [optional]
Expand All @@ -13,7 +13,7 @@ Name | Type | Description | Notes

### NewSignalResult

`func NewSignalResult(commandId string, signalRequestStatus ChannelRequestStatus, signalChannelName string, ) *SignalResult`
`func NewSignalResult(signalRequestStatus ChannelRequestStatus, signalChannelName string, ) *SignalResult`

NewSignalResult instantiates a new SignalResult object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -47,6 +47,11 @@ and a boolean to check if the value has been set.

SetCommandId sets CommandId field to given value.

### HasCommandId

`func (o *SignalResult) HasCommandId() bool`

HasCommandId returns a boolean if a field has been set.

### GetSignalRequestStatus

Expand Down
26 changes: 26 additions & 0 deletions gen/iwfidl/docs/StateMovement.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Name | Type | Description | Notes
**StateId** | **string** | |
**StateInput** | Pointer to [**EncodedObject**](EncodedObject.md) | | [optional]
**StateOptions** | Pointer to [**WorkflowStateOptions**](WorkflowStateOptions.md) | | [optional]
**WaitForKey** | Pointer to **string** | | [optional]

## Methods

Expand Down Expand Up @@ -97,6 +98,31 @@ SetStateOptions sets StateOptions field to given value.

HasStateOptions returns a boolean if a field has been set.

### GetWaitForKey

`func (o *StateMovement) GetWaitForKey() string`

GetWaitForKey returns the WaitForKey field if non-nil, zero value otherwise.

### GetWaitForKeyOk

`func (o *StateMovement) GetWaitForKeyOk() (*string, bool)`

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

### SetWaitForKey

`func (o *StateMovement) SetWaitForKey(v string)`

SetWaitForKey sets WaitForKey field to given value.

### HasWaitForKey

`func (o *StateMovement) HasWaitForKey() bool`

HasWaitForKey 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)

Expand Down
9 changes: 7 additions & 2 deletions gen/iwfidl/docs/TimerCommand.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**CommandId** | **string** | |
**CommandId** | Pointer to **string** | | [optional]
**FiringUnixTimestampSeconds** | Pointer to **int64** | | [optional]
**DurationSeconds** | Pointer to **int64** | | [optional]

## Methods

### NewTimerCommand

`func NewTimerCommand(commandId string, ) *TimerCommand`
`func NewTimerCommand() *TimerCommand`

NewTimerCommand instantiates a new TimerCommand object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -46,6 +46,11 @@ and a boolean to check if the value has been set.

SetCommandId sets CommandId field to given value.

### HasCommandId

`func (o *TimerCommand) HasCommandId() bool`

HasCommandId returns a boolean if a field has been set.

### GetFiringUnixTimestampSeconds

Expand Down
9 changes: 7 additions & 2 deletions gen/iwfidl/docs/TimerResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**CommandId** | **string** | |
**CommandId** | Pointer to **string** | | [optional]
**TimerStatus** | [**TimerStatus**](TimerStatus.md) | |

## Methods

### NewTimerResult

`func NewTimerResult(commandId string, timerStatus TimerStatus, ) *TimerResult`
`func NewTimerResult(timerStatus TimerStatus, ) *TimerResult`

NewTimerResult instantiates a new TimerResult object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -45,6 +45,11 @@ and a boolean to check if the value has been set.

SetCommandId sets CommandId field to given value.

### HasCommandId

`func (o *TimerResult) HasCommandId() bool`

HasCommandId returns a boolean if a field has been set.

### GetTimerStatus

Expand Down
Loading

0 comments on commit 3ca6451

Please sign in to comment.