Skip to content

Commit

Permalink
run code gen for stateFailureRecoveryOptions (#14)
Browse files Browse the repository at this point in the history
* run code gen for stateFialureRecoveryOptions

* fix version

---------

Co-authored-by: Quanzheng Long <[email protected]>
  • Loading branch information
duoertai and longquanzheng authored Oct 29, 2023
1 parent 92333f1 commit 26f950a
Show file tree
Hide file tree
Showing 7 changed files with 112 additions and 112 deletions.
4 changes: 2 additions & 2 deletions goapi/xdbapi/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ client.go
configuration.go
docs/ApiErrorResponse.md
docs/AsyncStateConfig.md
docs/AsyncStateConfigStateFailureRecoveryInfo.md
docs/AsyncStateExecuteRequest.md
docs/AsyncStateExecuteResponse.md
docs/AsyncStateWaitUntilRequest.md
Expand Down Expand Up @@ -36,6 +35,7 @@ docs/PublishToLocalQueueRequest.md
docs/RetryPolicy.md
docs/StateApiType.md
docs/StateDecision.md
docs/StateFailureRecoveryOptions.md
docs/StateFailureRecoveryPolicy.md
docs/StateMovement.md
docs/ThreadCloseDecision.md
Expand All @@ -49,7 +49,6 @@ go.mod
go.sum
model_api_error_response.go
model_async_state_config.go
model_async_state_config_state_failure_recovery_info.go
model_async_state_execute_request.go
model_async_state_execute_response.go
model_async_state_wait_until_request.go
Expand All @@ -76,6 +75,7 @@ model_publish_to_local_queue_request.go
model_retry_policy.go
model_state_api_type.go
model_state_decision.go
model_state_failure_recovery_options.go
model_state_failure_recovery_policy.go
model_state_movement.go
model_thread_close_decision.go
Expand Down
2 changes: 1 addition & 1 deletion goapi/xdbapi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ Class | Method | HTTP request | Description

- [ApiErrorResponse](docs/ApiErrorResponse.md)
- [AsyncStateConfig](docs/AsyncStateConfig.md)
- [AsyncStateConfigStateFailureRecoveryInfo](docs/AsyncStateConfigStateFailureRecoveryInfo.md)
- [AsyncStateExecuteRequest](docs/AsyncStateExecuteRequest.md)
- [AsyncStateExecuteResponse](docs/AsyncStateExecuteResponse.md)
- [AsyncStateWaitUntilRequest](docs/AsyncStateWaitUntilRequest.md)
Expand All @@ -118,6 +117,7 @@ Class | Method | HTTP request | Description
- [RetryPolicy](docs/RetryPolicy.md)
- [StateApiType](docs/StateApiType.md)
- [StateDecision](docs/StateDecision.md)
- [StateFailureRecoveryOptions](docs/StateFailureRecoveryOptions.md)
- [StateFailureRecoveryPolicy](docs/StateFailureRecoveryPolicy.md)
- [StateMovement](docs/StateMovement.md)
- [ThreadCloseDecision](docs/ThreadCloseDecision.md)
Expand Down
48 changes: 24 additions & 24 deletions goapi/xdbapi/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ components:
nextStates:
- stateConfig:
executeApiTimeoutSeconds: 6
stateFailureRecoveryInfo:
stateFailureRecoveryOptions:
stateFailureProceedStateId: stateFailureProceedStateId
stateFailureProceedStateConfig: null
policy: null
Expand All @@ -494,7 +494,7 @@ components:
encoding: encoding
- stateConfig:
executeApiTimeoutSeconds: 6
stateFailureRecoveryInfo:
stateFailureRecoveryOptions:
stateFailureProceedStateId: stateFailureProceedStateId
stateFailureProceedStateConfig: null
policy: null
Expand Down Expand Up @@ -549,7 +549,7 @@ components:
nextStates:
- stateConfig:
executeApiTimeoutSeconds: 6
stateFailureRecoveryInfo:
stateFailureRecoveryOptions:
stateFailureProceedStateId: stateFailureProceedStateId
stateFailureProceedStateConfig: null
policy: null
Expand All @@ -573,7 +573,7 @@ components:
encoding: encoding
- stateConfig:
executeApiTimeoutSeconds: 6
stateFailureRecoveryInfo:
stateFailureRecoveryOptions:
stateFailureProceedStateId: stateFailureProceedStateId
stateFailureProceedStateConfig: null
policy: null
Expand Down Expand Up @@ -633,7 +633,7 @@ components:
example:
stateConfig:
executeApiTimeoutSeconds: 6
stateFailureRecoveryInfo:
stateFailureRecoveryOptions:
stateFailureProceedStateId: stateFailureProceedStateId
stateFailureProceedStateConfig: null
policy: null
Expand Down Expand Up @@ -746,7 +746,7 @@ components:
example:
startStateConfig:
executeApiTimeoutSeconds: 6
stateFailureRecoveryInfo:
stateFailureRecoveryOptions:
stateFailureProceedStateId: stateFailureProceedStateId
stateFailureProceedStateConfig: null
policy: null
Expand Down Expand Up @@ -823,7 +823,7 @@ components:
AsyncStateConfig:
example:
executeApiTimeoutSeconds: 6
stateFailureRecoveryInfo:
stateFailureRecoveryOptions:
stateFailureProceedStateId: stateFailureProceedStateId
stateFailureProceedStateConfig: null
policy: null
Expand Down Expand Up @@ -855,14 +855,29 @@ components:
$ref: '#/components/schemas/RetryPolicy'
executeApiRetryPolicy:
$ref: '#/components/schemas/RetryPolicy'
stateFailureRecoveryInfo:
$ref: '#/components/schemas/AsyncStateConfig_stateFailureRecoveryInfo'
stateFailureRecoveryOptions:
$ref: '#/components/schemas/StateFailureRecoveryOptions'
type: object
StateFailureRecoveryPolicy:
enum:
- FAIL_PROCESS_ON_STATE_FAILURE
- PROCEED_TO_CONFIGURED_STATE
type: string
StateFailureRecoveryOptions:
example:
stateFailureProceedStateId: stateFailureProceedStateId
stateFailureProceedStateConfig: null
policy: null
properties:
policy:
$ref: '#/components/schemas/StateFailureRecoveryPolicy'
stateFailureProceedStateId:
type: string
stateFailureProceedStateConfig:
$ref: '#/components/schemas/AsyncStateConfig'
required:
- policy
type: object
RetryPolicy:
example:
maximumAttemptsDurationSeconds: 7
Expand Down Expand Up @@ -1011,18 +1026,3 @@ components:
- namespace
- processId
type: object
AsyncStateConfig_stateFailureRecoveryInfo:
example:
stateFailureProceedStateId: stateFailureProceedStateId
stateFailureProceedStateConfig: null
policy: null
properties:
policy:
$ref: '#/components/schemas/StateFailureRecoveryPolicy'
stateFailureProceedStateId:
type: string
stateFailureProceedStateConfig:
$ref: '#/components/schemas/AsyncStateConfig'
required:
- policy
type: object
26 changes: 13 additions & 13 deletions goapi/xdbapi/docs/AsyncStateConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Name | Type | Description | Notes
**ExecuteApiTimeoutSeconds** | Pointer to **int32** | the timeout for the single attempt of AsyncState.execute API | [optional]
**WaitUntilApiRetryPolicy** | Pointer to [**RetryPolicy**](RetryPolicy.md) | | [optional]
**ExecuteApiRetryPolicy** | Pointer to [**RetryPolicy**](RetryPolicy.md) | | [optional]
**StateFailureRecoveryInfo** | Pointer to [**AsyncStateConfigStateFailureRecoveryInfo**](AsyncStateConfigStateFailureRecoveryInfo.md) | | [optional]
**StateFailureRecoveryOptions** | Pointer to [**StateFailureRecoveryOptions**](StateFailureRecoveryOptions.md) | | [optional]

## Methods

Expand Down Expand Up @@ -155,30 +155,30 @@ SetExecuteApiRetryPolicy sets ExecuteApiRetryPolicy field to given value.

HasExecuteApiRetryPolicy returns a boolean if a field has been set.

### GetStateFailureRecoveryInfo
### GetStateFailureRecoveryOptions

`func (o *AsyncStateConfig) GetStateFailureRecoveryInfo() AsyncStateConfigStateFailureRecoveryInfo`
`func (o *AsyncStateConfig) GetStateFailureRecoveryOptions() StateFailureRecoveryOptions`

GetStateFailureRecoveryInfo returns the StateFailureRecoveryInfo field if non-nil, zero value otherwise.
GetStateFailureRecoveryOptions returns the StateFailureRecoveryOptions field if non-nil, zero value otherwise.

### GetStateFailureRecoveryInfoOk
### GetStateFailureRecoveryOptionsOk

`func (o *AsyncStateConfig) GetStateFailureRecoveryInfoOk() (*AsyncStateConfigStateFailureRecoveryInfo, bool)`
`func (o *AsyncStateConfig) GetStateFailureRecoveryOptionsOk() (*StateFailureRecoveryOptions, bool)`

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

### SetStateFailureRecoveryInfo
### SetStateFailureRecoveryOptions

`func (o *AsyncStateConfig) SetStateFailureRecoveryInfo(v AsyncStateConfigStateFailureRecoveryInfo)`
`func (o *AsyncStateConfig) SetStateFailureRecoveryOptions(v StateFailureRecoveryOptions)`

SetStateFailureRecoveryInfo sets StateFailureRecoveryInfo field to given value.
SetStateFailureRecoveryOptions sets StateFailureRecoveryOptions field to given value.

### HasStateFailureRecoveryInfo
### HasStateFailureRecoveryOptions

`func (o *AsyncStateConfig) HasStateFailureRecoveryInfo() bool`
`func (o *AsyncStateConfig) HasStateFailureRecoveryOptions() bool`

HasStateFailureRecoveryInfo returns a boolean if a field has been set.
HasStateFailureRecoveryOptions 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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# AsyncStateConfigStateFailureRecoveryInfo
# StateFailureRecoveryOptions

## Properties

Expand All @@ -10,90 +10,90 @@ Name | Type | Description | Notes

## Methods

### NewAsyncStateConfigStateFailureRecoveryInfo
### NewStateFailureRecoveryOptions

`func NewAsyncStateConfigStateFailureRecoveryInfo(policy StateFailureRecoveryPolicy, ) *AsyncStateConfigStateFailureRecoveryInfo`
`func NewStateFailureRecoveryOptions(policy StateFailureRecoveryPolicy, ) *StateFailureRecoveryOptions`

NewAsyncStateConfigStateFailureRecoveryInfo instantiates a new AsyncStateConfigStateFailureRecoveryInfo object
NewStateFailureRecoveryOptions instantiates a new StateFailureRecoveryOptions 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

### NewAsyncStateConfigStateFailureRecoveryInfoWithDefaults
### NewStateFailureRecoveryOptionsWithDefaults

`func NewAsyncStateConfigStateFailureRecoveryInfoWithDefaults() *AsyncStateConfigStateFailureRecoveryInfo`
`func NewStateFailureRecoveryOptionsWithDefaults() *StateFailureRecoveryOptions`

NewAsyncStateConfigStateFailureRecoveryInfoWithDefaults instantiates a new AsyncStateConfigStateFailureRecoveryInfo object
NewStateFailureRecoveryOptionsWithDefaults instantiates a new StateFailureRecoveryOptions 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

### GetPolicy

`func (o *AsyncStateConfigStateFailureRecoveryInfo) GetPolicy() StateFailureRecoveryPolicy`
`func (o *StateFailureRecoveryOptions) GetPolicy() StateFailureRecoveryPolicy`

GetPolicy returns the Policy field if non-nil, zero value otherwise.

### GetPolicyOk

`func (o *AsyncStateConfigStateFailureRecoveryInfo) GetPolicyOk() (*StateFailureRecoveryPolicy, bool)`
`func (o *StateFailureRecoveryOptions) GetPolicyOk() (*StateFailureRecoveryPolicy, bool)`

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

### SetPolicy

`func (o *AsyncStateConfigStateFailureRecoveryInfo) SetPolicy(v StateFailureRecoveryPolicy)`
`func (o *StateFailureRecoveryOptions) SetPolicy(v StateFailureRecoveryPolicy)`

SetPolicy sets Policy field to given value.


### GetStateFailureProceedStateId

`func (o *AsyncStateConfigStateFailureRecoveryInfo) GetStateFailureProceedStateId() string`
`func (o *StateFailureRecoveryOptions) GetStateFailureProceedStateId() string`

GetStateFailureProceedStateId returns the StateFailureProceedStateId field if non-nil, zero value otherwise.

### GetStateFailureProceedStateIdOk

`func (o *AsyncStateConfigStateFailureRecoveryInfo) GetStateFailureProceedStateIdOk() (*string, bool)`
`func (o *StateFailureRecoveryOptions) GetStateFailureProceedStateIdOk() (*string, bool)`

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

### SetStateFailureProceedStateId

`func (o *AsyncStateConfigStateFailureRecoveryInfo) SetStateFailureProceedStateId(v string)`
`func (o *StateFailureRecoveryOptions) SetStateFailureProceedStateId(v string)`

SetStateFailureProceedStateId sets StateFailureProceedStateId field to given value.

### HasStateFailureProceedStateId

`func (o *AsyncStateConfigStateFailureRecoveryInfo) HasStateFailureProceedStateId() bool`
`func (o *StateFailureRecoveryOptions) HasStateFailureProceedStateId() bool`

HasStateFailureProceedStateId returns a boolean if a field has been set.

### GetStateFailureProceedStateConfig

`func (o *AsyncStateConfigStateFailureRecoveryInfo) GetStateFailureProceedStateConfig() AsyncStateConfig`
`func (o *StateFailureRecoveryOptions) GetStateFailureProceedStateConfig() AsyncStateConfig`

GetStateFailureProceedStateConfig returns the StateFailureProceedStateConfig field if non-nil, zero value otherwise.

### GetStateFailureProceedStateConfigOk

`func (o *AsyncStateConfigStateFailureRecoveryInfo) GetStateFailureProceedStateConfigOk() (*AsyncStateConfig, bool)`
`func (o *StateFailureRecoveryOptions) GetStateFailureProceedStateConfigOk() (*AsyncStateConfig, bool)`

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

### SetStateFailureProceedStateConfig

`func (o *AsyncStateConfigStateFailureRecoveryInfo) SetStateFailureProceedStateConfig(v AsyncStateConfig)`
`func (o *StateFailureRecoveryOptions) SetStateFailureProceedStateConfig(v AsyncStateConfig)`

SetStateFailureProceedStateConfig sets StateFailureProceedStateConfig field to given value.

### HasStateFailureProceedStateConfig

`func (o *AsyncStateConfigStateFailureRecoveryInfo) HasStateFailureProceedStateConfig() bool`
`func (o *StateFailureRecoveryOptions) HasStateFailureProceedStateConfig() bool`

HasStateFailureProceedStateConfig returns a boolean if a field has been set.

Expand Down
Loading

0 comments on commit 26f950a

Please sign in to comment.