diff --git a/Makefile b/Makefile index 1fe5579..fc32a7e 100644 --- a/Makefile +++ b/Makefile @@ -120,7 +120,7 @@ endef idl-code-gen: #generate/refresh go clent code for idl, do this after update the idl file rm -Rf ./gen ; true - openapi-generator generate -i iwf-idl/iwf-sdk.yaml -g go -o gen/iwfidl/ -p packageName=iwfidl -p generateInterfaces=true -p isGoSubmodule=false --git-user-id indeedeng --git-repo-id iwf-idl + java -jar openapi-generator-cli-6.6.0.jar generate -i iwf-idl/iwf-sdk.yaml -g go -o gen/iwfidl/ -p packageName=iwfidl -p generateInterfaces=true -p isGoSubmodule=false --git-user-id indeedeng --git-repo-id iwf-idl rm ./gen/iwfidl/go.* ; rm -rf ./gen/iwfidl/test; gofmt -s -w gen; true clean: ## Clean binaries and build folder diff --git a/gen/iwfidl/.openapi-generator/FILES b/gen/iwfidl/.openapi-generator/FILES index b8a905c..b68eeca 100644 --- a/gen/iwfidl/.openapi-generator/FILES +++ b/gen/iwfidl/.openapi-generator/FILES @@ -12,7 +12,7 @@ docs/CommandRequest.md docs/CommandResults.md docs/CommandWaitingType.md docs/Context.md -docs/DefaultAPI.md +docs/DefaultApi.md docs/EncodedObject.md docs/ErrorResponse.md docs/ErrorSubStatus.md @@ -37,6 +37,7 @@ docs/StateMovement.md docs/TimerCommand.md docs/TimerResult.md docs/TimerStatus.md +docs/TriggerContinueAsNewRequest.md docs/WaitUntilApiFailurePolicy.md docs/WorkerErrorResponse.md docs/WorkflowConditionalClose.md @@ -111,6 +112,7 @@ model_state_movement.go model_timer_command.go model_timer_result.go model_timer_status.go +model_trigger_continue_as_new_request.go model_wait_until_api_failure_policy.go model_worker_error_response.go model_workflow_conditional_close.go diff --git a/gen/iwfidl/.openapi-generator/VERSION b/gen/iwfidl/.openapi-generator/VERSION index 73a86b1..cd802a1 100644 --- a/gen/iwfidl/.openapi-generator/VERSION +++ b/gen/iwfidl/.openapi-generator/VERSION @@ -1 +1 @@ -7.0.1 \ No newline at end of file +6.6.0 \ No newline at end of file diff --git a/gen/iwfidl/README.md b/gen/iwfidl/README.md index e35ede4..c9adee4 100644 --- a/gen/iwfidl/README.md +++ b/gen/iwfidl/README.md @@ -77,24 +77,25 @@ All URIs are relative to *http://petstore.swagger.io/v2* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*DefaultAPI* | [**ApiV1WorkflowConfigUpdatePost**](docs/DefaultAPI.md#apiv1workflowconfigupdatepost) | **Post** /api/v1/workflow/config/update | update the config of a workflow -*DefaultAPI* | [**ApiV1WorkflowDataobjectsGetPost**](docs/DefaultAPI.md#apiv1workflowdataobjectsgetpost) | **Post** /api/v1/workflow/dataobjects/get | get workflow data objects -*DefaultAPI* | [**ApiV1WorkflowGetPost**](docs/DefaultAPI.md#apiv1workflowgetpost) | **Post** /api/v1/workflow/get | get a workflow's status and results(if completed & requested) -*DefaultAPI* | [**ApiV1WorkflowGetWithWaitPost**](docs/DefaultAPI.md#apiv1workflowgetwithwaitpost) | **Post** /api/v1/workflow/getWithWait | get a workflow's status and results(if completed & requested), wait if the workflow is still running -*DefaultAPI* | [**ApiV1WorkflowInternalDumpPost**](docs/DefaultAPI.md#apiv1workflowinternaldumppost) | **Post** /api/v1/workflow/internal/dump | dump internal info of a workflow -*DefaultAPI* | [**ApiV1WorkflowResetPost**](docs/DefaultAPI.md#apiv1workflowresetpost) | **Post** /api/v1/workflow/reset | reset a workflow -*DefaultAPI* | [**ApiV1WorkflowRpcPost**](docs/DefaultAPI.md#apiv1workflowrpcpost) | **Post** /api/v1/workflow/rpc | execute an RPC of a workflow -*DefaultAPI* | [**ApiV1WorkflowSearchPost**](docs/DefaultAPI.md#apiv1workflowsearchpost) | **Post** /api/v1/workflow/search | search for workflows by a search attribute query -*DefaultAPI* | [**ApiV1WorkflowSearchattributesGetPost**](docs/DefaultAPI.md#apiv1workflowsearchattributesgetpost) | **Post** /api/v1/workflow/searchattributes/get | get workflow search attributes -*DefaultAPI* | [**ApiV1WorkflowSignalPost**](docs/DefaultAPI.md#apiv1workflowsignalpost) | **Post** /api/v1/workflow/signal | signal a workflow -*DefaultAPI* | [**ApiV1WorkflowStartPost**](docs/DefaultAPI.md#apiv1workflowstartpost) | **Post** /api/v1/workflow/start | start a workflow -*DefaultAPI* | [**ApiV1WorkflowStateDecidePost**](docs/DefaultAPI.md#apiv1workflowstatedecidepost) | **Post** /api/v1/workflowState/decide | for invoking WorkflowState.execute API -*DefaultAPI* | [**ApiV1WorkflowStateStartPost**](docs/DefaultAPI.md#apiv1workflowstatestartpost) | **Post** /api/v1/workflowState/start | for invoking WorkflowState.waitUntil API -*DefaultAPI* | [**ApiV1WorkflowStopPost**](docs/DefaultAPI.md#apiv1workflowstoppost) | **Post** /api/v1/workflow/stop | stop a workflow -*DefaultAPI* | [**ApiV1WorkflowTimerSkipPost**](docs/DefaultAPI.md#apiv1workflowtimerskippost) | **Post** /api/v1/workflow/timer/skip | skip the timer of a workflow -*DefaultAPI* | [**ApiV1WorkflowWaitForStateCompletionPost**](docs/DefaultAPI.md#apiv1workflowwaitforstatecompletionpost) | **Post** /api/v1/workflow/waitForStateCompletion | -*DefaultAPI* | [**ApiV1WorkflowWorkerRpcPost**](docs/DefaultAPI.md#apiv1workflowworkerrpcpost) | **Post** /api/v1/workflowWorker/rpc | for invoking workflow RPC API in the worker -*DefaultAPI* | [**InfoHealthcheckGet**](docs/DefaultAPI.md#infohealthcheckget) | **Get** /info/healthcheck | return health info of the server +*DefaultApi* | [**ApiV1WorkflowConfigUpdatePost**](docs/DefaultApi.md#apiv1workflowconfigupdatepost) | **Post** /api/v1/workflow/config/update | update the config of a workflow +*DefaultApi* | [**ApiV1WorkflowDataobjectsGetPost**](docs/DefaultApi.md#apiv1workflowdataobjectsgetpost) | **Post** /api/v1/workflow/dataobjects/get | get workflow data objects +*DefaultApi* | [**ApiV1WorkflowGetPost**](docs/DefaultApi.md#apiv1workflowgetpost) | **Post** /api/v1/workflow/get | get a workflow's status and results(if completed & requested) +*DefaultApi* | [**ApiV1WorkflowGetWithWaitPost**](docs/DefaultApi.md#apiv1workflowgetwithwaitpost) | **Post** /api/v1/workflow/getWithWait | get a workflow's status and results(if completed & requested), wait if the workflow is still running +*DefaultApi* | [**ApiV1WorkflowInternalDumpPost**](docs/DefaultApi.md#apiv1workflowinternaldumppost) | **Post** /api/v1/workflow/internal/dump | dump internal info of a workflow +*DefaultApi* | [**ApiV1WorkflowResetPost**](docs/DefaultApi.md#apiv1workflowresetpost) | **Post** /api/v1/workflow/reset | reset a workflow +*DefaultApi* | [**ApiV1WorkflowRpcPost**](docs/DefaultApi.md#apiv1workflowrpcpost) | **Post** /api/v1/workflow/rpc | execute an RPC of a workflow +*DefaultApi* | [**ApiV1WorkflowSearchPost**](docs/DefaultApi.md#apiv1workflowsearchpost) | **Post** /api/v1/workflow/search | search for workflows by a search attribute query +*DefaultApi* | [**ApiV1WorkflowSearchattributesGetPost**](docs/DefaultApi.md#apiv1workflowsearchattributesgetpost) | **Post** /api/v1/workflow/searchattributes/get | get workflow search attributes +*DefaultApi* | [**ApiV1WorkflowSignalPost**](docs/DefaultApi.md#apiv1workflowsignalpost) | **Post** /api/v1/workflow/signal | signal a workflow +*DefaultApi* | [**ApiV1WorkflowStartPost**](docs/DefaultApi.md#apiv1workflowstartpost) | **Post** /api/v1/workflow/start | start a workflow +*DefaultApi* | [**ApiV1WorkflowStateDecidePost**](docs/DefaultApi.md#apiv1workflowstatedecidepost) | **Post** /api/v1/workflowState/decide | for invoking WorkflowState.execute API +*DefaultApi* | [**ApiV1WorkflowStateStartPost**](docs/DefaultApi.md#apiv1workflowstatestartpost) | **Post** /api/v1/workflowState/start | for invoking WorkflowState.waitUntil API +*DefaultApi* | [**ApiV1WorkflowStopPost**](docs/DefaultApi.md#apiv1workflowstoppost) | **Post** /api/v1/workflow/stop | stop a workflow +*DefaultApi* | [**ApiV1WorkflowTimerSkipPost**](docs/DefaultApi.md#apiv1workflowtimerskippost) | **Post** /api/v1/workflow/timer/skip | skip the timer of a workflow +*DefaultApi* | [**ApiV1WorkflowTriggerContinueAsNewPost**](docs/DefaultApi.md#apiv1workflowtriggercontinueasnewpost) | **Post** /api/v1/workflow/triggerContinueAsNew | trigger ContinueAsNew for a workflow +*DefaultApi* | [**ApiV1WorkflowWaitForStateCompletionPost**](docs/DefaultApi.md#apiv1workflowwaitforstatecompletionpost) | **Post** /api/v1/workflow/waitForStateCompletion | +*DefaultApi* | [**ApiV1WorkflowWorkerRpcPost**](docs/DefaultApi.md#apiv1workflowworkerrpcpost) | **Post** /api/v1/workflowWorker/rpc | for invoking workflow RPC API in the worker +*DefaultApi* | [**InfoHealthcheckGet**](docs/DefaultApi.md#infohealthcheckget) | **Get** /info/healthcheck | return health info of the server ## Documentation For Models @@ -129,6 +130,7 @@ Class | Method | HTTP request | Description - [TimerCommand](docs/TimerCommand.md) - [TimerResult](docs/TimerResult.md) - [TimerStatus](docs/TimerStatus.md) + - [TriggerContinueAsNewRequest](docs/TriggerContinueAsNewRequest.md) - [WaitUntilApiFailurePolicy](docs/WaitUntilApiFailurePolicy.md) - [WorkerErrorResponse](docs/WorkerErrorResponse.md) - [WorkflowConditionalClose](docs/WorkflowConditionalClose.md) diff --git a/gen/iwfidl/api/openapi.yaml b/gen/iwfidl/api/openapi.yaml index 183e877..f8ca2b3 100644 --- a/gen/iwfidl/api/openapi.yaml +++ b/gen/iwfidl/api/openapi.yaml @@ -325,6 +325,24 @@ paths: $ref: '#/components/schemas/HealthInfo' description: successful operation summary: return health info of the server + /api/v1/workflow/triggerContinueAsNew: + post: + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TriggerContinueAsNewRequest' + responses: + "200": + content: {} + description: successful operation + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/ErrorResponse' + description: Invalid input + summary: trigger ContinueAsNew for a workflow /api/v1/workflowState/start: post: requestBody: @@ -516,6 +534,7 @@ components: lockingKeys: - lockingKeys - lockingKeys + useKeyAsPrefix: true partialLoadingKeys: - partialLoadingKeys - partialLoadingKeys @@ -543,6 +562,7 @@ components: lockingKeys: - lockingKeys - lockingKeys + useKeyAsPrefix: true partialLoadingKeys: - partialLoadingKeys - partialLoadingKeys @@ -582,7 +602,9 @@ components: workflowConfigOverride: disableSystemSearchAttribute: true continueAsNewThreshold: 6 + enabledExecutingStateExecutionIds: true continueAsNewPageSizeInBytes: 7 + optimizeActivity: true idReusePolicy: null searchAttributes: - stringValue: stringValue @@ -605,6 +627,15 @@ components: key: key useMemoForDataAttributes: true cronSchedule: cronSchedule + dataAttributes: + - value: + data: data + encoding: encoding + key: key + - value: + data: data + encoding: encoding + key: key properties: idReusePolicy: $ref: '#/components/schemas/IDReusePolicy' @@ -619,6 +650,10 @@ components: items: $ref: '#/components/schemas/SearchAttribute' type: array + dataAttributes: + items: + $ref: '#/components/schemas/KeyValue' + type: array workflowConfigOverride: $ref: '#/components/schemas/WorkflowConfig' useMemoForDataAttributes: @@ -626,7 +661,7 @@ components: type: object IDReusePolicy: enum: - - ALLOW_IF_PREVIOUS_EXISTS_ABNORMALLY + - ALLOW_IF_PREVIOUS_EXITS_ABNORMALLY - ALLOW_IF_NO_RUNNING - DISALLOW_REUSE - ALLOW_TERMINATE_IF_RUNNING @@ -636,6 +671,7 @@ components: lockingKeys: - lockingKeys - lockingKeys + useKeyAsPrefix: true partialLoadingKeys: - partialLoadingKeys - partialLoadingKeys @@ -651,6 +687,8 @@ components: items: type: string type: array + useKeyAsPrefix: + type: boolean type: object PersistenceLoadingType: enum: @@ -658,6 +696,7 @@ components: - LOAD_PARTIAL_WITHOUT_LOCKING - LOAD_PARTIAL_WITH_EXCLUSIVE_LOCK - LOAD_NONE + - LOAD_ALL_WITH_PARTIAL_LOCK type: string WorkerErrorResponse: properties: @@ -703,6 +742,9 @@ components: WorkflowStartRequest: example: startStateId: startStateId + waitForCompletionStateIds: + - waitForCompletionStateIds + - waitForCompletionStateIds workflowTimeoutSeconds: 0 waitForCompletionStateExecutionIds: - waitForCompletionStateExecutionIds @@ -712,6 +754,7 @@ components: lockingKeys: - lockingKeys - lockingKeys + useKeyAsPrefix: true partialLoadingKeys: - partialLoadingKeys - partialLoadingKeys @@ -739,6 +782,7 @@ components: lockingKeys: - lockingKeys - lockingKeys + useKeyAsPrefix: true partialLoadingKeys: - partialLoadingKeys - partialLoadingKeys @@ -754,7 +798,9 @@ components: workflowConfigOverride: disableSystemSearchAttribute: true continueAsNewThreshold: 6 + enabledExecutingStateExecutionIds: true continueAsNewPageSizeInBytes: 7 + optimizeActivity: true idReusePolicy: null searchAttributes: - stringValue: stringValue @@ -777,6 +823,15 @@ components: key: key useMemoForDataAttributes: true cronSchedule: cronSchedule + dataAttributes: + - value: + data: data + encoding: encoding + key: key + - value: + data: data + encoding: encoding + key: key iwfWorkerUrl: iwfWorkerUrl workflowId: workflowId stateInput: @@ -793,6 +848,10 @@ components: type: string startStateId: type: string + waitForCompletionStateIds: + items: + type: string + type: array waitForCompletionStateExecutionIds: items: type: string @@ -1180,6 +1239,7 @@ components: lockingKeys: - lockingKeys - lockingKeys + useKeyAsPrefix: true partialLoadingKeys: - partialLoadingKeys - partialLoadingKeys @@ -1198,6 +1258,7 @@ components: lockingKeys: - lockingKeys - lockingKeys + useKeyAsPrefix: true partialLoadingKeys: - partialLoadingKeys - partialLoadingKeys @@ -1341,6 +1402,7 @@ components: lockingKeys: - lockingKeys - lockingKeys + useKeyAsPrefix: true partialLoadingKeys: - partialLoadingKeys - partialLoadingKeys @@ -1368,6 +1430,7 @@ components: lockingKeys: - lockingKeys - lockingKeys + useKeyAsPrefix: true partialLoadingKeys: - partialLoadingKeys - partialLoadingKeys @@ -1375,12 +1438,14 @@ components: stateInput: data: data encoding: encoding + waitForKey: waitForKey - stateId: stateId stateOptions: searchAttributesLoadingPolicy: lockingKeys: - lockingKeys - lockingKeys + useKeyAsPrefix: true partialLoadingKeys: - partialLoadingKeys - partialLoadingKeys @@ -1408,6 +1473,7 @@ components: lockingKeys: - lockingKeys - lockingKeys + useKeyAsPrefix: true partialLoadingKeys: - partialLoadingKeys - partialLoadingKeys @@ -1415,6 +1481,7 @@ components: stateInput: data: data encoding: encoding + waitForKey: waitForKey conditionalClose: closeInput: data: data @@ -1565,7 +1632,9 @@ components: workflowConfig: disableSystemSearchAttribute: true continueAsNewThreshold: 6 + enabledExecutingStateExecutionIds: true continueAsNewPageSizeInBytes: 7 + optimizeActivity: true workflowRunId: workflowRunId workflowId: workflowId properties: @@ -1609,16 +1678,21 @@ components: data: data encoding: encoding key: key + localActivityInput: localActivityInput commandRequest: signalCommands: - signalChannelName: signalChannelName + atLeast: 6 + atMost: 1 commandId: commandId - signalChannelName: signalChannelName + atLeast: 6 + atMost: 1 commandId: commandId timerCommands: - - firingUnixTimestampSeconds: 0 + - durationSeconds: 0 commandId: commandId - - firingUnixTimestampSeconds: 0 + - durationSeconds: 0 commandId: commandId commandCombinations: - commandIds: @@ -1630,8 +1704,12 @@ components: commandWaitingType: null interStateChannelCommands: - channelName: channelName + atLeast: 5 + atMost: 5 commandId: commandId - channelName: channelName + atLeast: 5 + atMost: 5 commandId: commandId publishToInterStateChannel: - channelName: channelName @@ -1661,6 +1739,8 @@ components: encoding: encoding key: key properties: + localActivityInput: + type: string upsertSearchAttributes: items: $ref: '#/components/schemas/SearchAttribute' @@ -1834,6 +1914,7 @@ components: lockingKeys: - lockingKeys - lockingKeys + useKeyAsPrefix: true partialLoadingKeys: - partialLoadingKeys - partialLoadingKeys @@ -1861,6 +1942,7 @@ components: lockingKeys: - lockingKeys - lockingKeys + useKeyAsPrefix: true partialLoadingKeys: - partialLoadingKeys - partialLoadingKeys @@ -1868,12 +1950,14 @@ components: stateInput: data: data encoding: encoding + waitForKey: waitForKey - stateId: stateId stateOptions: searchAttributesLoadingPolicy: lockingKeys: - lockingKeys - lockingKeys + useKeyAsPrefix: true partialLoadingKeys: - partialLoadingKeys - partialLoadingKeys @@ -1901,6 +1985,7 @@ components: lockingKeys: - lockingKeys - lockingKeys + useKeyAsPrefix: true partialLoadingKeys: - partialLoadingKeys - partialLoadingKeys @@ -1908,12 +1993,14 @@ components: stateInput: data: data encoding: encoding + waitForKey: waitForKey conditionalClose: closeInput: data: data encoding: encoding channelName: channelName conditionalCloseType: null + localActivityInput: localActivityInput publishToInterStateChannel: - channelName: channelName value: @@ -1942,6 +2029,8 @@ components: encoding: encoding key: key properties: + localActivityInput: + type: string stateDecision: $ref: '#/components/schemas/StateDecision' upsertSearchAttributes: @@ -1968,17 +2057,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: @@ -1993,6 +2087,18 @@ components: stateCompletionOutput: $ref: '#/components/schemas/StateCompletionOutput' type: object + TriggerContinueAsNewRequest: + example: + workflowRunId: workflowRunId + workflowId: workflowId + properties: + workflowId: + type: string + workflowRunId: + type: string + required: + - workflowId + type: object StateDecision: example: nextStates: @@ -2002,6 +2108,7 @@ components: lockingKeys: - lockingKeys - lockingKeys + useKeyAsPrefix: true partialLoadingKeys: - partialLoadingKeys - partialLoadingKeys @@ -2029,6 +2136,7 @@ components: lockingKeys: - lockingKeys - lockingKeys + useKeyAsPrefix: true partialLoadingKeys: - partialLoadingKeys - partialLoadingKeys @@ -2036,12 +2144,14 @@ components: stateInput: data: data encoding: encoding + waitForKey: waitForKey - stateId: stateId stateOptions: searchAttributesLoadingPolicy: lockingKeys: - lockingKeys - lockingKeys + useKeyAsPrefix: true partialLoadingKeys: - partialLoadingKeys - partialLoadingKeys @@ -2069,6 +2179,7 @@ components: lockingKeys: - lockingKeys - lockingKeys + useKeyAsPrefix: true partialLoadingKeys: - partialLoadingKeys - partialLoadingKeys @@ -2076,6 +2187,7 @@ components: stateInput: data: data encoding: encoding + waitForKey: waitForKey conditionalClose: closeInput: data: data @@ -2119,6 +2231,7 @@ components: lockingKeys: - lockingKeys - lockingKeys + useKeyAsPrefix: true partialLoadingKeys: - partialLoadingKeys - partialLoadingKeys @@ -2146,6 +2259,7 @@ components: lockingKeys: - lockingKeys - lockingKeys + useKeyAsPrefix: true partialLoadingKeys: - partialLoadingKeys - partialLoadingKeys @@ -2153,6 +2267,7 @@ components: stateInput: data: data encoding: encoding + waitForKey: waitForKey properties: stateId: type: string @@ -2160,6 +2275,8 @@ components: $ref: '#/components/schemas/EncodedObject' stateOptions: $ref: '#/components/schemas/WorkflowStateOptions' + waitForKey: + type: string required: - stateId type: object @@ -2167,13 +2284,17 @@ components: example: signalCommands: - signalChannelName: signalChannelName + atLeast: 6 + atMost: 1 commandId: commandId - signalChannelName: signalChannelName + atLeast: 6 + atMost: 1 commandId: commandId timerCommands: - - firingUnixTimestampSeconds: 0 + - durationSeconds: 0 commandId: commandId - - firingUnixTimestampSeconds: 0 + - durationSeconds: 0 commandId: commandId commandCombinations: - commandIds: @@ -2185,8 +2306,12 @@ components: commandWaitingType: null interStateChannelCommands: - channelName: channelName + atLeast: 5 + atMost: 5 commandId: commandId - channelName: channelName + atLeast: 5 + atMost: 5 commandId: commandId properties: commandWaitingType: @@ -2279,43 +2404,52 @@ components: type: object TimerCommand: example: - firingUnixTimestampSeconds: 0 + durationSeconds: 0 commandId: commandId properties: commandId: type: string - firingUnixTimestampSeconds: + durationSeconds: format: int64 type: integer required: - - commandId - - firingUnixTimestampSeconds + - durationSeconds type: object SignalCommand: example: signalChannelName: signalChannelName + atLeast: 6 + atMost: 1 commandId: commandId properties: commandId: type: string signalChannelName: type: string + atLeast: + type: integer + atMost: + type: integer required: - - commandId - signalChannelName type: object InterStateChannelCommand: example: channelName: channelName + atLeast: 5 + atMost: 5 commandId: commandId properties: commandId: type: string channelName: type: string + atLeast: + type: integer + atMost: + type: integer required: - channelName - - commandId type: object TimerResult: example: @@ -2402,14 +2536,20 @@ components: example: disableSystemSearchAttribute: true continueAsNewThreshold: 6 + enabledExecutingStateExecutionIds: true continueAsNewPageSizeInBytes: 7 + optimizeActivity: true properties: disableSystemSearchAttribute: type: boolean + enabledExecutingStateExecutionIds: + type: boolean continueAsNewThreshold: type: integer continueAsNewPageSizeInBytes: type: integer + optimizeActivity: + type: boolean type: object Context: example: diff --git a/gen/iwfidl/api_default.go b/gen/iwfidl/api_default.go index b8aca2e..e2c5499 100644 --- a/gen/iwfidl/api_default.go +++ b/gen/iwfidl/api_default.go @@ -18,7 +18,7 @@ import ( "net/url" ) -type DefaultAPI interface { +type DefaultApi interface { /* ApiV1WorkflowConfigUpdatePost update the config of a workflow @@ -196,6 +196,17 @@ type DefaultAPI interface { // ApiV1WorkflowTimerSkipPostExecute executes the request ApiV1WorkflowTimerSkipPostExecute(r ApiApiV1WorkflowTimerSkipPostRequest) (*http.Response, error) + /* + ApiV1WorkflowTriggerContinueAsNewPost trigger ContinueAsNew for a workflow + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiApiV1WorkflowTriggerContinueAsNewPostRequest + */ + ApiV1WorkflowTriggerContinueAsNewPost(ctx context.Context) ApiApiV1WorkflowTriggerContinueAsNewPostRequest + + // ApiV1WorkflowTriggerContinueAsNewPostExecute executes the request + ApiV1WorkflowTriggerContinueAsNewPostExecute(r ApiApiV1WorkflowTriggerContinueAsNewPostRequest) (*http.Response, error) + /* ApiV1WorkflowWaitForStateCompletionPost Method for ApiV1WorkflowWaitForStateCompletionPost @@ -233,12 +244,12 @@ type DefaultAPI interface { InfoHealthcheckGetExecute(r ApiInfoHealthcheckGetRequest) (*HealthInfo, *http.Response, error) } -// DefaultAPIService DefaultAPI service -type DefaultAPIService service +// DefaultApiService DefaultApi service +type DefaultApiService service type ApiApiV1WorkflowConfigUpdatePostRequest struct { ctx context.Context - ApiService DefaultAPI + ApiService DefaultApi workflowConfigUpdateRequest *WorkflowConfigUpdateRequest } @@ -257,7 +268,7 @@ ApiV1WorkflowConfigUpdatePost update the config of a workflow @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiApiV1WorkflowConfigUpdatePostRequest */ -func (a *DefaultAPIService) ApiV1WorkflowConfigUpdatePost(ctx context.Context) ApiApiV1WorkflowConfigUpdatePostRequest { +func (a *DefaultApiService) ApiV1WorkflowConfigUpdatePost(ctx context.Context) ApiApiV1WorkflowConfigUpdatePostRequest { return ApiApiV1WorkflowConfigUpdatePostRequest{ ApiService: a, ctx: ctx, @@ -265,14 +276,14 @@ func (a *DefaultAPIService) ApiV1WorkflowConfigUpdatePost(ctx context.Context) A } // Execute executes the request -func (a *DefaultAPIService) ApiV1WorkflowConfigUpdatePostExecute(r ApiApiV1WorkflowConfigUpdatePostRequest) (*http.Response, error) { +func (a *DefaultApiService) ApiV1WorkflowConfigUpdatePostExecute(r ApiApiV1WorkflowConfigUpdatePostRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ApiV1WorkflowConfigUpdatePost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiV1WorkflowConfigUpdatePost") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -342,7 +353,7 @@ func (a *DefaultAPIService) ApiV1WorkflowConfigUpdatePostExecute(r ApiApiV1Workf type ApiApiV1WorkflowDataobjectsGetPostRequest struct { ctx context.Context - ApiService DefaultAPI + ApiService DefaultApi workflowGetDataObjectsRequest *WorkflowGetDataObjectsRequest } @@ -361,7 +372,7 @@ ApiV1WorkflowDataobjectsGetPost get workflow data objects @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiApiV1WorkflowDataobjectsGetPostRequest */ -func (a *DefaultAPIService) ApiV1WorkflowDataobjectsGetPost(ctx context.Context) ApiApiV1WorkflowDataobjectsGetPostRequest { +func (a *DefaultApiService) ApiV1WorkflowDataobjectsGetPost(ctx context.Context) ApiApiV1WorkflowDataobjectsGetPostRequest { return ApiApiV1WorkflowDataobjectsGetPostRequest{ ApiService: a, ctx: ctx, @@ -371,7 +382,7 @@ func (a *DefaultAPIService) ApiV1WorkflowDataobjectsGetPost(ctx context.Context) // Execute executes the request // // @return WorkflowGetDataObjectsResponse -func (a *DefaultAPIService) ApiV1WorkflowDataobjectsGetPostExecute(r ApiApiV1WorkflowDataobjectsGetPostRequest) (*WorkflowGetDataObjectsResponse, *http.Response, error) { +func (a *DefaultApiService) ApiV1WorkflowDataobjectsGetPostExecute(r ApiApiV1WorkflowDataobjectsGetPostRequest) (*WorkflowGetDataObjectsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -379,7 +390,7 @@ func (a *DefaultAPIService) ApiV1WorkflowDataobjectsGetPostExecute(r ApiApiV1Wor localVarReturnValue *WorkflowGetDataObjectsResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ApiV1WorkflowDataobjectsGetPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiV1WorkflowDataobjectsGetPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -458,7 +469,7 @@ func (a *DefaultAPIService) ApiV1WorkflowDataobjectsGetPostExecute(r ApiApiV1Wor type ApiApiV1WorkflowGetPostRequest struct { ctx context.Context - ApiService DefaultAPI + ApiService DefaultApi workflowGetRequest *WorkflowGetRequest } @@ -477,7 +488,7 @@ ApiV1WorkflowGetPost get a workflow's status and results(if completed & requeste @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiApiV1WorkflowGetPostRequest */ -func (a *DefaultAPIService) ApiV1WorkflowGetPost(ctx context.Context) ApiApiV1WorkflowGetPostRequest { +func (a *DefaultApiService) ApiV1WorkflowGetPost(ctx context.Context) ApiApiV1WorkflowGetPostRequest { return ApiApiV1WorkflowGetPostRequest{ ApiService: a, ctx: ctx, @@ -487,7 +498,7 @@ func (a *DefaultAPIService) ApiV1WorkflowGetPost(ctx context.Context) ApiApiV1Wo // Execute executes the request // // @return WorkflowGetResponse -func (a *DefaultAPIService) ApiV1WorkflowGetPostExecute(r ApiApiV1WorkflowGetPostRequest) (*WorkflowGetResponse, *http.Response, error) { +func (a *DefaultApiService) ApiV1WorkflowGetPostExecute(r ApiApiV1WorkflowGetPostRequest) (*WorkflowGetResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -495,7 +506,7 @@ func (a *DefaultAPIService) ApiV1WorkflowGetPostExecute(r ApiApiV1WorkflowGetPos localVarReturnValue *WorkflowGetResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ApiV1WorkflowGetPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiV1WorkflowGetPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -574,7 +585,7 @@ func (a *DefaultAPIService) ApiV1WorkflowGetPostExecute(r ApiApiV1WorkflowGetPos type ApiApiV1WorkflowGetWithWaitPostRequest struct { ctx context.Context - ApiService DefaultAPI + ApiService DefaultApi workflowGetRequest *WorkflowGetRequest } @@ -593,7 +604,7 @@ ApiV1WorkflowGetWithWaitPost get a workflow's status and results(if completed & @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiApiV1WorkflowGetWithWaitPostRequest */ -func (a *DefaultAPIService) ApiV1WorkflowGetWithWaitPost(ctx context.Context) ApiApiV1WorkflowGetWithWaitPostRequest { +func (a *DefaultApiService) ApiV1WorkflowGetWithWaitPost(ctx context.Context) ApiApiV1WorkflowGetWithWaitPostRequest { return ApiApiV1WorkflowGetWithWaitPostRequest{ ApiService: a, ctx: ctx, @@ -603,7 +614,7 @@ func (a *DefaultAPIService) ApiV1WorkflowGetWithWaitPost(ctx context.Context) Ap // Execute executes the request // // @return WorkflowGetResponse -func (a *DefaultAPIService) ApiV1WorkflowGetWithWaitPostExecute(r ApiApiV1WorkflowGetWithWaitPostRequest) (*WorkflowGetResponse, *http.Response, error) { +func (a *DefaultApiService) ApiV1WorkflowGetWithWaitPostExecute(r ApiApiV1WorkflowGetWithWaitPostRequest) (*WorkflowGetResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -611,7 +622,7 @@ func (a *DefaultAPIService) ApiV1WorkflowGetWithWaitPostExecute(r ApiApiV1Workfl localVarReturnValue *WorkflowGetResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ApiV1WorkflowGetWithWaitPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiV1WorkflowGetWithWaitPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -701,7 +712,7 @@ func (a *DefaultAPIService) ApiV1WorkflowGetWithWaitPostExecute(r ApiApiV1Workfl type ApiApiV1WorkflowInternalDumpPostRequest struct { ctx context.Context - ApiService DefaultAPI + ApiService DefaultApi workflowDumpRequest *WorkflowDumpRequest } @@ -720,7 +731,7 @@ ApiV1WorkflowInternalDumpPost dump internal info of a workflow @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiApiV1WorkflowInternalDumpPostRequest */ -func (a *DefaultAPIService) ApiV1WorkflowInternalDumpPost(ctx context.Context) ApiApiV1WorkflowInternalDumpPostRequest { +func (a *DefaultApiService) ApiV1WorkflowInternalDumpPost(ctx context.Context) ApiApiV1WorkflowInternalDumpPostRequest { return ApiApiV1WorkflowInternalDumpPostRequest{ ApiService: a, ctx: ctx, @@ -730,7 +741,7 @@ func (a *DefaultAPIService) ApiV1WorkflowInternalDumpPost(ctx context.Context) A // Execute executes the request // // @return WorkflowDumpResponse -func (a *DefaultAPIService) ApiV1WorkflowInternalDumpPostExecute(r ApiApiV1WorkflowInternalDumpPostRequest) (*WorkflowDumpResponse, *http.Response, error) { +func (a *DefaultApiService) ApiV1WorkflowInternalDumpPostExecute(r ApiApiV1WorkflowInternalDumpPostRequest) (*WorkflowDumpResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -738,7 +749,7 @@ func (a *DefaultAPIService) ApiV1WorkflowInternalDumpPostExecute(r ApiApiV1Workf localVarReturnValue *WorkflowDumpResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ApiV1WorkflowInternalDumpPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiV1WorkflowInternalDumpPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -817,7 +828,7 @@ func (a *DefaultAPIService) ApiV1WorkflowInternalDumpPostExecute(r ApiApiV1Workf type ApiApiV1WorkflowResetPostRequest struct { ctx context.Context - ApiService DefaultAPI + ApiService DefaultApi workflowResetRequest *WorkflowResetRequest } @@ -836,7 +847,7 @@ ApiV1WorkflowResetPost reset a workflow @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiApiV1WorkflowResetPostRequest */ -func (a *DefaultAPIService) ApiV1WorkflowResetPost(ctx context.Context) ApiApiV1WorkflowResetPostRequest { +func (a *DefaultApiService) ApiV1WorkflowResetPost(ctx context.Context) ApiApiV1WorkflowResetPostRequest { return ApiApiV1WorkflowResetPostRequest{ ApiService: a, ctx: ctx, @@ -846,7 +857,7 @@ func (a *DefaultAPIService) ApiV1WorkflowResetPost(ctx context.Context) ApiApiV1 // Execute executes the request // // @return WorkflowResetResponse -func (a *DefaultAPIService) ApiV1WorkflowResetPostExecute(r ApiApiV1WorkflowResetPostRequest) (*WorkflowResetResponse, *http.Response, error) { +func (a *DefaultApiService) ApiV1WorkflowResetPostExecute(r ApiApiV1WorkflowResetPostRequest) (*WorkflowResetResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -854,7 +865,7 @@ func (a *DefaultAPIService) ApiV1WorkflowResetPostExecute(r ApiApiV1WorkflowRese localVarReturnValue *WorkflowResetResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ApiV1WorkflowResetPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiV1WorkflowResetPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -933,7 +944,7 @@ func (a *DefaultAPIService) ApiV1WorkflowResetPostExecute(r ApiApiV1WorkflowRese type ApiApiV1WorkflowRpcPostRequest struct { ctx context.Context - ApiService DefaultAPI + ApiService DefaultApi workflowRpcRequest *WorkflowRpcRequest } @@ -952,7 +963,7 @@ ApiV1WorkflowRpcPost execute an RPC of a workflow @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiApiV1WorkflowRpcPostRequest */ -func (a *DefaultAPIService) ApiV1WorkflowRpcPost(ctx context.Context) ApiApiV1WorkflowRpcPostRequest { +func (a *DefaultApiService) ApiV1WorkflowRpcPost(ctx context.Context) ApiApiV1WorkflowRpcPostRequest { return ApiApiV1WorkflowRpcPostRequest{ ApiService: a, ctx: ctx, @@ -962,7 +973,7 @@ func (a *DefaultAPIService) ApiV1WorkflowRpcPost(ctx context.Context) ApiApiV1Wo // Execute executes the request // // @return WorkflowRpcResponse -func (a *DefaultAPIService) ApiV1WorkflowRpcPostExecute(r ApiApiV1WorkflowRpcPostRequest) (*WorkflowRpcResponse, *http.Response, error) { +func (a *DefaultApiService) ApiV1WorkflowRpcPostExecute(r ApiApiV1WorkflowRpcPostRequest) (*WorkflowRpcResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -970,7 +981,7 @@ func (a *DefaultAPIService) ApiV1WorkflowRpcPostExecute(r ApiApiV1WorkflowRpcPos localVarReturnValue *WorkflowRpcResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ApiV1WorkflowRpcPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiV1WorkflowRpcPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1071,7 +1082,7 @@ func (a *DefaultAPIService) ApiV1WorkflowRpcPostExecute(r ApiApiV1WorkflowRpcPos type ApiApiV1WorkflowSearchPostRequest struct { ctx context.Context - ApiService DefaultAPI + ApiService DefaultApi workflowSearchRequest *WorkflowSearchRequest } @@ -1090,7 +1101,7 @@ ApiV1WorkflowSearchPost search for workflows by a search attribute query @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiApiV1WorkflowSearchPostRequest */ -func (a *DefaultAPIService) ApiV1WorkflowSearchPost(ctx context.Context) ApiApiV1WorkflowSearchPostRequest { +func (a *DefaultApiService) ApiV1WorkflowSearchPost(ctx context.Context) ApiApiV1WorkflowSearchPostRequest { return ApiApiV1WorkflowSearchPostRequest{ ApiService: a, ctx: ctx, @@ -1100,7 +1111,7 @@ func (a *DefaultAPIService) ApiV1WorkflowSearchPost(ctx context.Context) ApiApiV // Execute executes the request // // @return WorkflowSearchResponse -func (a *DefaultAPIService) ApiV1WorkflowSearchPostExecute(r ApiApiV1WorkflowSearchPostRequest) (*WorkflowSearchResponse, *http.Response, error) { +func (a *DefaultApiService) ApiV1WorkflowSearchPostExecute(r ApiApiV1WorkflowSearchPostRequest) (*WorkflowSearchResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -1108,7 +1119,7 @@ func (a *DefaultAPIService) ApiV1WorkflowSearchPostExecute(r ApiApiV1WorkflowSea localVarReturnValue *WorkflowSearchResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ApiV1WorkflowSearchPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiV1WorkflowSearchPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1187,7 +1198,7 @@ func (a *DefaultAPIService) ApiV1WorkflowSearchPostExecute(r ApiApiV1WorkflowSea type ApiApiV1WorkflowSearchattributesGetPostRequest struct { ctx context.Context - ApiService DefaultAPI + ApiService DefaultApi workflowGetSearchAttributesRequest *WorkflowGetSearchAttributesRequest } @@ -1206,7 +1217,7 @@ ApiV1WorkflowSearchattributesGetPost get workflow search attributes @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiApiV1WorkflowSearchattributesGetPostRequest */ -func (a *DefaultAPIService) ApiV1WorkflowSearchattributesGetPost(ctx context.Context) ApiApiV1WorkflowSearchattributesGetPostRequest { +func (a *DefaultApiService) ApiV1WorkflowSearchattributesGetPost(ctx context.Context) ApiApiV1WorkflowSearchattributesGetPostRequest { return ApiApiV1WorkflowSearchattributesGetPostRequest{ ApiService: a, ctx: ctx, @@ -1216,7 +1227,7 @@ func (a *DefaultAPIService) ApiV1WorkflowSearchattributesGetPost(ctx context.Con // Execute executes the request // // @return WorkflowGetSearchAttributesResponse -func (a *DefaultAPIService) ApiV1WorkflowSearchattributesGetPostExecute(r ApiApiV1WorkflowSearchattributesGetPostRequest) (*WorkflowGetSearchAttributesResponse, *http.Response, error) { +func (a *DefaultApiService) ApiV1WorkflowSearchattributesGetPostExecute(r ApiApiV1WorkflowSearchattributesGetPostRequest) (*WorkflowGetSearchAttributesResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -1224,7 +1235,7 @@ func (a *DefaultAPIService) ApiV1WorkflowSearchattributesGetPostExecute(r ApiApi localVarReturnValue *WorkflowGetSearchAttributesResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ApiV1WorkflowSearchattributesGetPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiV1WorkflowSearchattributesGetPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1303,7 +1314,7 @@ func (a *DefaultAPIService) ApiV1WorkflowSearchattributesGetPostExecute(r ApiApi type ApiApiV1WorkflowSignalPostRequest struct { ctx context.Context - ApiService DefaultAPI + ApiService DefaultApi workflowSignalRequest *WorkflowSignalRequest } @@ -1322,7 +1333,7 @@ ApiV1WorkflowSignalPost signal a workflow @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiApiV1WorkflowSignalPostRequest */ -func (a *DefaultAPIService) ApiV1WorkflowSignalPost(ctx context.Context) ApiApiV1WorkflowSignalPostRequest { +func (a *DefaultApiService) ApiV1WorkflowSignalPost(ctx context.Context) ApiApiV1WorkflowSignalPostRequest { return ApiApiV1WorkflowSignalPostRequest{ ApiService: a, ctx: ctx, @@ -1330,14 +1341,14 @@ func (a *DefaultAPIService) ApiV1WorkflowSignalPost(ctx context.Context) ApiApiV } // Execute executes the request -func (a *DefaultAPIService) ApiV1WorkflowSignalPostExecute(r ApiApiV1WorkflowSignalPostRequest) (*http.Response, error) { +func (a *DefaultApiService) ApiV1WorkflowSignalPostExecute(r ApiApiV1WorkflowSignalPostRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ApiV1WorkflowSignalPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiV1WorkflowSignalPost") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -1407,7 +1418,7 @@ func (a *DefaultAPIService) ApiV1WorkflowSignalPostExecute(r ApiApiV1WorkflowSig type ApiApiV1WorkflowStartPostRequest struct { ctx context.Context - ApiService DefaultAPI + ApiService DefaultApi workflowStartRequest *WorkflowStartRequest } @@ -1426,7 +1437,7 @@ ApiV1WorkflowStartPost start a workflow @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiApiV1WorkflowStartPostRequest */ -func (a *DefaultAPIService) ApiV1WorkflowStartPost(ctx context.Context) ApiApiV1WorkflowStartPostRequest { +func (a *DefaultApiService) ApiV1WorkflowStartPost(ctx context.Context) ApiApiV1WorkflowStartPostRequest { return ApiApiV1WorkflowStartPostRequest{ ApiService: a, ctx: ctx, @@ -1436,7 +1447,7 @@ func (a *DefaultAPIService) ApiV1WorkflowStartPost(ctx context.Context) ApiApiV1 // Execute executes the request // // @return WorkflowStartResponse -func (a *DefaultAPIService) ApiV1WorkflowStartPostExecute(r ApiApiV1WorkflowStartPostRequest) (*WorkflowStartResponse, *http.Response, error) { +func (a *DefaultApiService) ApiV1WorkflowStartPostExecute(r ApiApiV1WorkflowStartPostRequest) (*WorkflowStartResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -1444,7 +1455,7 @@ func (a *DefaultAPIService) ApiV1WorkflowStartPostExecute(r ApiApiV1WorkflowStar localVarReturnValue *WorkflowStartResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ApiV1WorkflowStartPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiV1WorkflowStartPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1523,7 +1534,7 @@ func (a *DefaultAPIService) ApiV1WorkflowStartPostExecute(r ApiApiV1WorkflowStar type ApiApiV1WorkflowStateDecidePostRequest struct { ctx context.Context - ApiService DefaultAPI + ApiService DefaultApi workflowStateExecuteRequest *WorkflowStateExecuteRequest } @@ -1542,7 +1553,7 @@ ApiV1WorkflowStateDecidePost for invoking WorkflowState.execute API @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiApiV1WorkflowStateDecidePostRequest */ -func (a *DefaultAPIService) ApiV1WorkflowStateDecidePost(ctx context.Context) ApiApiV1WorkflowStateDecidePostRequest { +func (a *DefaultApiService) ApiV1WorkflowStateDecidePost(ctx context.Context) ApiApiV1WorkflowStateDecidePostRequest { return ApiApiV1WorkflowStateDecidePostRequest{ ApiService: a, ctx: ctx, @@ -1552,7 +1563,7 @@ func (a *DefaultAPIService) ApiV1WorkflowStateDecidePost(ctx context.Context) Ap // Execute executes the request // // @return WorkflowStateExecuteResponse -func (a *DefaultAPIService) ApiV1WorkflowStateDecidePostExecute(r ApiApiV1WorkflowStateDecidePostRequest) (*WorkflowStateExecuteResponse, *http.Response, error) { +func (a *DefaultApiService) ApiV1WorkflowStateDecidePostExecute(r ApiApiV1WorkflowStateDecidePostRequest) (*WorkflowStateExecuteResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -1560,7 +1571,7 @@ func (a *DefaultAPIService) ApiV1WorkflowStateDecidePostExecute(r ApiApiV1Workfl localVarReturnValue *WorkflowStateExecuteResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ApiV1WorkflowStateDecidePost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiV1WorkflowStateDecidePost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1639,7 +1650,7 @@ func (a *DefaultAPIService) ApiV1WorkflowStateDecidePostExecute(r ApiApiV1Workfl type ApiApiV1WorkflowStateStartPostRequest struct { ctx context.Context - ApiService DefaultAPI + ApiService DefaultApi workflowStateWaitUntilRequest *WorkflowStateWaitUntilRequest } @@ -1658,7 +1669,7 @@ ApiV1WorkflowStateStartPost for invoking WorkflowState.waitUntil API @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiApiV1WorkflowStateStartPostRequest */ -func (a *DefaultAPIService) ApiV1WorkflowStateStartPost(ctx context.Context) ApiApiV1WorkflowStateStartPostRequest { +func (a *DefaultApiService) ApiV1WorkflowStateStartPost(ctx context.Context) ApiApiV1WorkflowStateStartPostRequest { return ApiApiV1WorkflowStateStartPostRequest{ ApiService: a, ctx: ctx, @@ -1668,7 +1679,7 @@ func (a *DefaultAPIService) ApiV1WorkflowStateStartPost(ctx context.Context) Api // Execute executes the request // // @return WorkflowStateWaitUntilResponse -func (a *DefaultAPIService) ApiV1WorkflowStateStartPostExecute(r ApiApiV1WorkflowStateStartPostRequest) (*WorkflowStateWaitUntilResponse, *http.Response, error) { +func (a *DefaultApiService) ApiV1WorkflowStateStartPostExecute(r ApiApiV1WorkflowStateStartPostRequest) (*WorkflowStateWaitUntilResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -1676,7 +1687,7 @@ func (a *DefaultAPIService) ApiV1WorkflowStateStartPostExecute(r ApiApiV1Workflo localVarReturnValue *WorkflowStateWaitUntilResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ApiV1WorkflowStateStartPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiV1WorkflowStateStartPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1755,7 +1766,7 @@ func (a *DefaultAPIService) ApiV1WorkflowStateStartPostExecute(r ApiApiV1Workflo type ApiApiV1WorkflowStopPostRequest struct { ctx context.Context - ApiService DefaultAPI + ApiService DefaultApi workflowStopRequest *WorkflowStopRequest } @@ -1774,7 +1785,7 @@ ApiV1WorkflowStopPost stop a workflow @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiApiV1WorkflowStopPostRequest */ -func (a *DefaultAPIService) ApiV1WorkflowStopPost(ctx context.Context) ApiApiV1WorkflowStopPostRequest { +func (a *DefaultApiService) ApiV1WorkflowStopPost(ctx context.Context) ApiApiV1WorkflowStopPostRequest { return ApiApiV1WorkflowStopPostRequest{ ApiService: a, ctx: ctx, @@ -1782,14 +1793,14 @@ func (a *DefaultAPIService) ApiV1WorkflowStopPost(ctx context.Context) ApiApiV1W } // Execute executes the request -func (a *DefaultAPIService) ApiV1WorkflowStopPostExecute(r ApiApiV1WorkflowStopPostRequest) (*http.Response, error) { +func (a *DefaultApiService) ApiV1WorkflowStopPostExecute(r ApiApiV1WorkflowStopPostRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ApiV1WorkflowStopPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiV1WorkflowStopPost") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -1859,7 +1870,7 @@ func (a *DefaultAPIService) ApiV1WorkflowStopPostExecute(r ApiApiV1WorkflowStopP type ApiApiV1WorkflowTimerSkipPostRequest struct { ctx context.Context - ApiService DefaultAPI + ApiService DefaultApi workflowSkipTimerRequest *WorkflowSkipTimerRequest } @@ -1878,7 +1889,7 @@ ApiV1WorkflowTimerSkipPost skip the timer of a workflow @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiApiV1WorkflowTimerSkipPostRequest */ -func (a *DefaultAPIService) ApiV1WorkflowTimerSkipPost(ctx context.Context) ApiApiV1WorkflowTimerSkipPostRequest { +func (a *DefaultApiService) ApiV1WorkflowTimerSkipPost(ctx context.Context) ApiApiV1WorkflowTimerSkipPostRequest { return ApiApiV1WorkflowTimerSkipPostRequest{ ApiService: a, ctx: ctx, @@ -1886,14 +1897,14 @@ func (a *DefaultAPIService) ApiV1WorkflowTimerSkipPost(ctx context.Context) ApiA } // Execute executes the request -func (a *DefaultAPIService) ApiV1WorkflowTimerSkipPostExecute(r ApiApiV1WorkflowTimerSkipPostRequest) (*http.Response, error) { +func (a *DefaultApiService) ApiV1WorkflowTimerSkipPostExecute(r ApiApiV1WorkflowTimerSkipPostRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ApiV1WorkflowTimerSkipPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiV1WorkflowTimerSkipPost") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -1961,9 +1972,113 @@ func (a *DefaultAPIService) ApiV1WorkflowTimerSkipPostExecute(r ApiApiV1Workflow return localVarHTTPResponse, nil } +type ApiApiV1WorkflowTriggerContinueAsNewPostRequest struct { + ctx context.Context + ApiService DefaultApi + triggerContinueAsNewRequest *TriggerContinueAsNewRequest +} + +func (r ApiApiV1WorkflowTriggerContinueAsNewPostRequest) TriggerContinueAsNewRequest(triggerContinueAsNewRequest TriggerContinueAsNewRequest) ApiApiV1WorkflowTriggerContinueAsNewPostRequest { + r.triggerContinueAsNewRequest = &triggerContinueAsNewRequest + return r +} + +func (r ApiApiV1WorkflowTriggerContinueAsNewPostRequest) Execute() (*http.Response, error) { + return r.ApiService.ApiV1WorkflowTriggerContinueAsNewPostExecute(r) +} + +/* +ApiV1WorkflowTriggerContinueAsNewPost trigger ContinueAsNew for a workflow + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiApiV1WorkflowTriggerContinueAsNewPostRequest +*/ +func (a *DefaultApiService) ApiV1WorkflowTriggerContinueAsNewPost(ctx context.Context) ApiApiV1WorkflowTriggerContinueAsNewPostRequest { + return ApiApiV1WorkflowTriggerContinueAsNewPostRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DefaultApiService) ApiV1WorkflowTriggerContinueAsNewPostExecute(r ApiApiV1WorkflowTriggerContinueAsNewPostRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiV1WorkflowTriggerContinueAsNewPost") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/v1/workflow/triggerContinueAsNew" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.triggerContinueAsNewRequest + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type ApiApiV1WorkflowWaitForStateCompletionPostRequest struct { ctx context.Context - ApiService DefaultAPI + ApiService DefaultApi workflowWaitForStateCompletionRequest *WorkflowWaitForStateCompletionRequest } @@ -1982,7 +2097,7 @@ ApiV1WorkflowWaitForStateCompletionPost Method for ApiV1WorkflowWaitForStateComp @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiApiV1WorkflowWaitForStateCompletionPostRequest */ -func (a *DefaultAPIService) ApiV1WorkflowWaitForStateCompletionPost(ctx context.Context) ApiApiV1WorkflowWaitForStateCompletionPostRequest { +func (a *DefaultApiService) ApiV1WorkflowWaitForStateCompletionPost(ctx context.Context) ApiApiV1WorkflowWaitForStateCompletionPostRequest { return ApiApiV1WorkflowWaitForStateCompletionPostRequest{ ApiService: a, ctx: ctx, @@ -1992,7 +2107,7 @@ func (a *DefaultAPIService) ApiV1WorkflowWaitForStateCompletionPost(ctx context. // Execute executes the request // // @return WorkflowWaitForStateCompletionResponse -func (a *DefaultAPIService) ApiV1WorkflowWaitForStateCompletionPostExecute(r ApiApiV1WorkflowWaitForStateCompletionPostRequest) (*WorkflowWaitForStateCompletionResponse, *http.Response, error) { +func (a *DefaultApiService) ApiV1WorkflowWaitForStateCompletionPostExecute(r ApiApiV1WorkflowWaitForStateCompletionPostRequest) (*WorkflowWaitForStateCompletionResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -2000,7 +2115,7 @@ func (a *DefaultAPIService) ApiV1WorkflowWaitForStateCompletionPostExecute(r Api localVarReturnValue *WorkflowWaitForStateCompletionResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ApiV1WorkflowWaitForStateCompletionPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiV1WorkflowWaitForStateCompletionPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2090,7 +2205,7 @@ func (a *DefaultAPIService) ApiV1WorkflowWaitForStateCompletionPostExecute(r Api type ApiApiV1WorkflowWorkerRpcPostRequest struct { ctx context.Context - ApiService DefaultAPI + ApiService DefaultApi workflowWorkerRpcRequest *WorkflowWorkerRpcRequest } @@ -2109,7 +2224,7 @@ ApiV1WorkflowWorkerRpcPost for invoking workflow RPC API in the worker @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiApiV1WorkflowWorkerRpcPostRequest */ -func (a *DefaultAPIService) ApiV1WorkflowWorkerRpcPost(ctx context.Context) ApiApiV1WorkflowWorkerRpcPostRequest { +func (a *DefaultApiService) ApiV1WorkflowWorkerRpcPost(ctx context.Context) ApiApiV1WorkflowWorkerRpcPostRequest { return ApiApiV1WorkflowWorkerRpcPostRequest{ ApiService: a, ctx: ctx, @@ -2119,7 +2234,7 @@ func (a *DefaultAPIService) ApiV1WorkflowWorkerRpcPost(ctx context.Context) ApiA // Execute executes the request // // @return WorkflowWorkerRpcResponse -func (a *DefaultAPIService) ApiV1WorkflowWorkerRpcPostExecute(r ApiApiV1WorkflowWorkerRpcPostRequest) (*WorkflowWorkerRpcResponse, *http.Response, error) { +func (a *DefaultApiService) ApiV1WorkflowWorkerRpcPostExecute(r ApiApiV1WorkflowWorkerRpcPostRequest) (*WorkflowWorkerRpcResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -2127,7 +2242,7 @@ func (a *DefaultAPIService) ApiV1WorkflowWorkerRpcPostExecute(r ApiApiV1Workflow localVarReturnValue *WorkflowWorkerRpcResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ApiV1WorkflowWorkerRpcPost") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ApiV1WorkflowWorkerRpcPost") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2206,7 +2321,7 @@ func (a *DefaultAPIService) ApiV1WorkflowWorkerRpcPostExecute(r ApiApiV1Workflow type ApiInfoHealthcheckGetRequest struct { ctx context.Context - ApiService DefaultAPI + ApiService DefaultApi } func (r ApiInfoHealthcheckGetRequest) Execute() (*HealthInfo, *http.Response, error) { @@ -2219,7 +2334,7 @@ InfoHealthcheckGet return health info of the server @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiInfoHealthcheckGetRequest */ -func (a *DefaultAPIService) InfoHealthcheckGet(ctx context.Context) ApiInfoHealthcheckGetRequest { +func (a *DefaultApiService) InfoHealthcheckGet(ctx context.Context) ApiInfoHealthcheckGetRequest { return ApiInfoHealthcheckGetRequest{ ApiService: a, ctx: ctx, @@ -2229,7 +2344,7 @@ func (a *DefaultAPIService) InfoHealthcheckGet(ctx context.Context) ApiInfoHealt // Execute executes the request // // @return HealthInfo -func (a *DefaultAPIService) InfoHealthcheckGetExecute(r ApiInfoHealthcheckGetRequest) (*HealthInfo, *http.Response, error) { +func (a *DefaultApiService) InfoHealthcheckGetExecute(r ApiInfoHealthcheckGetRequest) (*HealthInfo, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -2237,7 +2352,7 @@ func (a *DefaultAPIService) InfoHealthcheckGetExecute(r ApiInfoHealthcheckGetReq localVarReturnValue *HealthInfo ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.InfoHealthcheckGet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.InfoHealthcheckGet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/gen/iwfidl/client.go b/gen/iwfidl/client.go index 3191b8c..5f2b765 100644 --- a/gen/iwfidl/client.go +++ b/gen/iwfidl/client.go @@ -48,7 +48,7 @@ type APIClient struct { // API Services - DefaultAPI DefaultAPI + DefaultApi DefaultApi } type service struct { @@ -67,7 +67,7 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.common.client = c // API Services - c.DefaultAPI = (*DefaultAPIService)(&c.common) + c.DefaultApi = (*DefaultApiService)(&c.common) return c } @@ -435,7 +435,6 @@ func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err err return } _, err = f.Seek(0, io.SeekStart) - err = os.Remove(f.Name()) return } if f, ok := v.(**os.File); ok { @@ -448,7 +447,6 @@ func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err err return } _, err = (*f).Seek(0, io.SeekStart) - err = os.Remove((*f).Name()) return } if xmlCheck.MatchString(contentType) { @@ -525,11 +523,7 @@ func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err e } else if jsonCheck.MatchString(contentType) { err = json.NewEncoder(bodyBuf).Encode(body) } else if xmlCheck.MatchString(contentType) { - var bs []byte - bs, err = xml.Marshal(body) - if err == nil { - bodyBuf.Write(bs) - } + err = xml.NewEncoder(bodyBuf).Encode(body) } if err != nil { diff --git a/gen/iwfidl/docs/DefaultApi.md b/gen/iwfidl/docs/DefaultApi.md index 385f5a2..528a75a 100644 --- a/gen/iwfidl/docs/DefaultApi.md +++ b/gen/iwfidl/docs/DefaultApi.md @@ -1,27 +1,28 @@ -# \DefaultAPI +# \DefaultApi All URIs are relative to *http://petstore.swagger.io/v2* Method | HTTP request | Description ------------- | ------------- | ------------- -[**ApiV1WorkflowConfigUpdatePost**](DefaultAPI.md#ApiV1WorkflowConfigUpdatePost) | **Post** /api/v1/workflow/config/update | update the config of a workflow -[**ApiV1WorkflowDataobjectsGetPost**](DefaultAPI.md#ApiV1WorkflowDataobjectsGetPost) | **Post** /api/v1/workflow/dataobjects/get | get workflow data objects -[**ApiV1WorkflowGetPost**](DefaultAPI.md#ApiV1WorkflowGetPost) | **Post** /api/v1/workflow/get | get a workflow's status and results(if completed & requested) -[**ApiV1WorkflowGetWithWaitPost**](DefaultAPI.md#ApiV1WorkflowGetWithWaitPost) | **Post** /api/v1/workflow/getWithWait | get a workflow's status and results(if completed & requested), wait if the workflow is still running -[**ApiV1WorkflowInternalDumpPost**](DefaultAPI.md#ApiV1WorkflowInternalDumpPost) | **Post** /api/v1/workflow/internal/dump | dump internal info of a workflow -[**ApiV1WorkflowResetPost**](DefaultAPI.md#ApiV1WorkflowResetPost) | **Post** /api/v1/workflow/reset | reset a workflow -[**ApiV1WorkflowRpcPost**](DefaultAPI.md#ApiV1WorkflowRpcPost) | **Post** /api/v1/workflow/rpc | execute an RPC of a workflow -[**ApiV1WorkflowSearchPost**](DefaultAPI.md#ApiV1WorkflowSearchPost) | **Post** /api/v1/workflow/search | search for workflows by a search attribute query -[**ApiV1WorkflowSearchattributesGetPost**](DefaultAPI.md#ApiV1WorkflowSearchattributesGetPost) | **Post** /api/v1/workflow/searchattributes/get | get workflow search attributes -[**ApiV1WorkflowSignalPost**](DefaultAPI.md#ApiV1WorkflowSignalPost) | **Post** /api/v1/workflow/signal | signal a workflow -[**ApiV1WorkflowStartPost**](DefaultAPI.md#ApiV1WorkflowStartPost) | **Post** /api/v1/workflow/start | start a workflow -[**ApiV1WorkflowStateDecidePost**](DefaultAPI.md#ApiV1WorkflowStateDecidePost) | **Post** /api/v1/workflowState/decide | for invoking WorkflowState.execute API -[**ApiV1WorkflowStateStartPost**](DefaultAPI.md#ApiV1WorkflowStateStartPost) | **Post** /api/v1/workflowState/start | for invoking WorkflowState.waitUntil API -[**ApiV1WorkflowStopPost**](DefaultAPI.md#ApiV1WorkflowStopPost) | **Post** /api/v1/workflow/stop | stop a workflow -[**ApiV1WorkflowTimerSkipPost**](DefaultAPI.md#ApiV1WorkflowTimerSkipPost) | **Post** /api/v1/workflow/timer/skip | skip the timer of a workflow -[**ApiV1WorkflowWaitForStateCompletionPost**](DefaultAPI.md#ApiV1WorkflowWaitForStateCompletionPost) | **Post** /api/v1/workflow/waitForStateCompletion | -[**ApiV1WorkflowWorkerRpcPost**](DefaultAPI.md#ApiV1WorkflowWorkerRpcPost) | **Post** /api/v1/workflowWorker/rpc | for invoking workflow RPC API in the worker -[**InfoHealthcheckGet**](DefaultAPI.md#InfoHealthcheckGet) | **Get** /info/healthcheck | return health info of the server +[**ApiV1WorkflowConfigUpdatePost**](DefaultApi.md#ApiV1WorkflowConfigUpdatePost) | **Post** /api/v1/workflow/config/update | update the config of a workflow +[**ApiV1WorkflowDataobjectsGetPost**](DefaultApi.md#ApiV1WorkflowDataobjectsGetPost) | **Post** /api/v1/workflow/dataobjects/get | get workflow data objects +[**ApiV1WorkflowGetPost**](DefaultApi.md#ApiV1WorkflowGetPost) | **Post** /api/v1/workflow/get | get a workflow's status and results(if completed & requested) +[**ApiV1WorkflowGetWithWaitPost**](DefaultApi.md#ApiV1WorkflowGetWithWaitPost) | **Post** /api/v1/workflow/getWithWait | get a workflow's status and results(if completed & requested), wait if the workflow is still running +[**ApiV1WorkflowInternalDumpPost**](DefaultApi.md#ApiV1WorkflowInternalDumpPost) | **Post** /api/v1/workflow/internal/dump | dump internal info of a workflow +[**ApiV1WorkflowResetPost**](DefaultApi.md#ApiV1WorkflowResetPost) | **Post** /api/v1/workflow/reset | reset a workflow +[**ApiV1WorkflowRpcPost**](DefaultApi.md#ApiV1WorkflowRpcPost) | **Post** /api/v1/workflow/rpc | execute an RPC of a workflow +[**ApiV1WorkflowSearchPost**](DefaultApi.md#ApiV1WorkflowSearchPost) | **Post** /api/v1/workflow/search | search for workflows by a search attribute query +[**ApiV1WorkflowSearchattributesGetPost**](DefaultApi.md#ApiV1WorkflowSearchattributesGetPost) | **Post** /api/v1/workflow/searchattributes/get | get workflow search attributes +[**ApiV1WorkflowSignalPost**](DefaultApi.md#ApiV1WorkflowSignalPost) | **Post** /api/v1/workflow/signal | signal a workflow +[**ApiV1WorkflowStartPost**](DefaultApi.md#ApiV1WorkflowStartPost) | **Post** /api/v1/workflow/start | start a workflow +[**ApiV1WorkflowStateDecidePost**](DefaultApi.md#ApiV1WorkflowStateDecidePost) | **Post** /api/v1/workflowState/decide | for invoking WorkflowState.execute API +[**ApiV1WorkflowStateStartPost**](DefaultApi.md#ApiV1WorkflowStateStartPost) | **Post** /api/v1/workflowState/start | for invoking WorkflowState.waitUntil API +[**ApiV1WorkflowStopPost**](DefaultApi.md#ApiV1WorkflowStopPost) | **Post** /api/v1/workflow/stop | stop a workflow +[**ApiV1WorkflowTimerSkipPost**](DefaultApi.md#ApiV1WorkflowTimerSkipPost) | **Post** /api/v1/workflow/timer/skip | skip the timer of a workflow +[**ApiV1WorkflowTriggerContinueAsNewPost**](DefaultApi.md#ApiV1WorkflowTriggerContinueAsNewPost) | **Post** /api/v1/workflow/triggerContinueAsNew | trigger ContinueAsNew for a workflow +[**ApiV1WorkflowWaitForStateCompletionPost**](DefaultApi.md#ApiV1WorkflowWaitForStateCompletionPost) | **Post** /api/v1/workflow/waitForStateCompletion | +[**ApiV1WorkflowWorkerRpcPost**](DefaultApi.md#ApiV1WorkflowWorkerRpcPost) | **Post** /api/v1/workflowWorker/rpc | for invoking workflow RPC API in the worker +[**InfoHealthcheckGet**](DefaultApi.md#InfoHealthcheckGet) | **Get** /info/healthcheck | return health info of the server @@ -48,9 +49,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DefaultAPI.ApiV1WorkflowConfigUpdatePost(context.Background()).WorkflowConfigUpdateRequest(workflowConfigUpdateRequest).Execute() + r, err := apiClient.DefaultApi.ApiV1WorkflowConfigUpdatePost(context.Background()).WorkflowConfigUpdateRequest(workflowConfigUpdateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ApiV1WorkflowConfigUpdatePost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiV1WorkflowConfigUpdatePost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -110,13 +111,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DefaultAPI.ApiV1WorkflowDataobjectsGetPost(context.Background()).WorkflowGetDataObjectsRequest(workflowGetDataObjectsRequest).Execute() + resp, r, err := apiClient.DefaultApi.ApiV1WorkflowDataobjectsGetPost(context.Background()).WorkflowGetDataObjectsRequest(workflowGetDataObjectsRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ApiV1WorkflowDataobjectsGetPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiV1WorkflowDataobjectsGetPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ApiV1WorkflowDataobjectsGetPost`: WorkflowGetDataObjectsResponse - fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ApiV1WorkflowDataobjectsGetPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiV1WorkflowDataobjectsGetPost`: %v\n", resp) } ``` @@ -174,13 +175,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DefaultAPI.ApiV1WorkflowGetPost(context.Background()).WorkflowGetRequest(workflowGetRequest).Execute() + resp, r, err := apiClient.DefaultApi.ApiV1WorkflowGetPost(context.Background()).WorkflowGetRequest(workflowGetRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ApiV1WorkflowGetPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiV1WorkflowGetPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ApiV1WorkflowGetPost`: WorkflowGetResponse - fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ApiV1WorkflowGetPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiV1WorkflowGetPost`: %v\n", resp) } ``` @@ -238,13 +239,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DefaultAPI.ApiV1WorkflowGetWithWaitPost(context.Background()).WorkflowGetRequest(workflowGetRequest).Execute() + resp, r, err := apiClient.DefaultApi.ApiV1WorkflowGetWithWaitPost(context.Background()).WorkflowGetRequest(workflowGetRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ApiV1WorkflowGetWithWaitPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiV1WorkflowGetWithWaitPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ApiV1WorkflowGetWithWaitPost`: WorkflowGetResponse - fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ApiV1WorkflowGetWithWaitPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiV1WorkflowGetWithWaitPost`: %v\n", resp) } ``` @@ -302,13 +303,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DefaultAPI.ApiV1WorkflowInternalDumpPost(context.Background()).WorkflowDumpRequest(workflowDumpRequest).Execute() + resp, r, err := apiClient.DefaultApi.ApiV1WorkflowInternalDumpPost(context.Background()).WorkflowDumpRequest(workflowDumpRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ApiV1WorkflowInternalDumpPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiV1WorkflowInternalDumpPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ApiV1WorkflowInternalDumpPost`: WorkflowDumpResponse - fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ApiV1WorkflowInternalDumpPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiV1WorkflowInternalDumpPost`: %v\n", resp) } ``` @@ -366,13 +367,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DefaultAPI.ApiV1WorkflowResetPost(context.Background()).WorkflowResetRequest(workflowResetRequest).Execute() + resp, r, err := apiClient.DefaultApi.ApiV1WorkflowResetPost(context.Background()).WorkflowResetRequest(workflowResetRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ApiV1WorkflowResetPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiV1WorkflowResetPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ApiV1WorkflowResetPost`: WorkflowResetResponse - fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ApiV1WorkflowResetPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiV1WorkflowResetPost`: %v\n", resp) } ``` @@ -430,13 +431,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DefaultAPI.ApiV1WorkflowRpcPost(context.Background()).WorkflowRpcRequest(workflowRpcRequest).Execute() + resp, r, err := apiClient.DefaultApi.ApiV1WorkflowRpcPost(context.Background()).WorkflowRpcRequest(workflowRpcRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ApiV1WorkflowRpcPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiV1WorkflowRpcPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ApiV1WorkflowRpcPost`: WorkflowRpcResponse - fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ApiV1WorkflowRpcPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiV1WorkflowRpcPost`: %v\n", resp) } ``` @@ -494,13 +495,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DefaultAPI.ApiV1WorkflowSearchPost(context.Background()).WorkflowSearchRequest(workflowSearchRequest).Execute() + resp, r, err := apiClient.DefaultApi.ApiV1WorkflowSearchPost(context.Background()).WorkflowSearchRequest(workflowSearchRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ApiV1WorkflowSearchPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiV1WorkflowSearchPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ApiV1WorkflowSearchPost`: WorkflowSearchResponse - fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ApiV1WorkflowSearchPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiV1WorkflowSearchPost`: %v\n", resp) } ``` @@ -558,13 +559,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DefaultAPI.ApiV1WorkflowSearchattributesGetPost(context.Background()).WorkflowGetSearchAttributesRequest(workflowGetSearchAttributesRequest).Execute() + resp, r, err := apiClient.DefaultApi.ApiV1WorkflowSearchattributesGetPost(context.Background()).WorkflowGetSearchAttributesRequest(workflowGetSearchAttributesRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ApiV1WorkflowSearchattributesGetPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiV1WorkflowSearchattributesGetPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ApiV1WorkflowSearchattributesGetPost`: WorkflowGetSearchAttributesResponse - fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ApiV1WorkflowSearchattributesGetPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiV1WorkflowSearchattributesGetPost`: %v\n", resp) } ``` @@ -622,9 +623,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DefaultAPI.ApiV1WorkflowSignalPost(context.Background()).WorkflowSignalRequest(workflowSignalRequest).Execute() + r, err := apiClient.DefaultApi.ApiV1WorkflowSignalPost(context.Background()).WorkflowSignalRequest(workflowSignalRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ApiV1WorkflowSignalPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiV1WorkflowSignalPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -684,13 +685,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DefaultAPI.ApiV1WorkflowStartPost(context.Background()).WorkflowStartRequest(workflowStartRequest).Execute() + resp, r, err := apiClient.DefaultApi.ApiV1WorkflowStartPost(context.Background()).WorkflowStartRequest(workflowStartRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ApiV1WorkflowStartPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiV1WorkflowStartPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ApiV1WorkflowStartPost`: WorkflowStartResponse - fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ApiV1WorkflowStartPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiV1WorkflowStartPost`: %v\n", resp) } ``` @@ -748,13 +749,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DefaultAPI.ApiV1WorkflowStateDecidePost(context.Background()).WorkflowStateExecuteRequest(workflowStateExecuteRequest).Execute() + resp, r, err := apiClient.DefaultApi.ApiV1WorkflowStateDecidePost(context.Background()).WorkflowStateExecuteRequest(workflowStateExecuteRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ApiV1WorkflowStateDecidePost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiV1WorkflowStateDecidePost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ApiV1WorkflowStateDecidePost`: WorkflowStateExecuteResponse - fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ApiV1WorkflowStateDecidePost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiV1WorkflowStateDecidePost`: %v\n", resp) } ``` @@ -812,13 +813,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DefaultAPI.ApiV1WorkflowStateStartPost(context.Background()).WorkflowStateWaitUntilRequest(workflowStateWaitUntilRequest).Execute() + resp, r, err := apiClient.DefaultApi.ApiV1WorkflowStateStartPost(context.Background()).WorkflowStateWaitUntilRequest(workflowStateWaitUntilRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ApiV1WorkflowStateStartPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiV1WorkflowStateStartPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ApiV1WorkflowStateStartPost`: WorkflowStateWaitUntilResponse - fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ApiV1WorkflowStateStartPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiV1WorkflowStateStartPost`: %v\n", resp) } ``` @@ -876,9 +877,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DefaultAPI.ApiV1WorkflowStopPost(context.Background()).WorkflowStopRequest(workflowStopRequest).Execute() + r, err := apiClient.DefaultApi.ApiV1WorkflowStopPost(context.Background()).WorkflowStopRequest(workflowStopRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ApiV1WorkflowStopPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiV1WorkflowStopPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -938,9 +939,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DefaultAPI.ApiV1WorkflowTimerSkipPost(context.Background()).WorkflowSkipTimerRequest(workflowSkipTimerRequest).Execute() + r, err := apiClient.DefaultApi.ApiV1WorkflowTimerSkipPost(context.Background()).WorkflowSkipTimerRequest(workflowSkipTimerRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ApiV1WorkflowTimerSkipPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiV1WorkflowTimerSkipPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -977,6 +978,68 @@ No authorization required [[Back to README]](../README.md) +## ApiV1WorkflowTriggerContinueAsNewPost + +> ApiV1WorkflowTriggerContinueAsNewPost(ctx).TriggerContinueAsNewRequest(triggerContinueAsNewRequest).Execute() + +trigger ContinueAsNew for a workflow + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/indeedeng/iwf-idl" +) + +func main() { + triggerContinueAsNewRequest := *openapiclient.NewTriggerContinueAsNewRequest("WorkflowId_example") // TriggerContinueAsNewRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DefaultApi.ApiV1WorkflowTriggerContinueAsNewPost(context.Background()).TriggerContinueAsNewRequest(triggerContinueAsNewRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiV1WorkflowTriggerContinueAsNewPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiApiV1WorkflowTriggerContinueAsNewPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **triggerContinueAsNewRequest** | [**TriggerContinueAsNewRequest**](TriggerContinueAsNewRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## ApiV1WorkflowWaitForStateCompletionPost > WorkflowWaitForStateCompletionResponse ApiV1WorkflowWaitForStateCompletionPost(ctx).WorkflowWaitForStateCompletionRequest(workflowWaitForStateCompletionRequest).Execute() @@ -996,17 +1059,17 @@ 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) - resp, r, err := apiClient.DefaultAPI.ApiV1WorkflowWaitForStateCompletionPost(context.Background()).WorkflowWaitForStateCompletionRequest(workflowWaitForStateCompletionRequest).Execute() + resp, r, err := apiClient.DefaultApi.ApiV1WorkflowWaitForStateCompletionPost(context.Background()).WorkflowWaitForStateCompletionRequest(workflowWaitForStateCompletionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ApiV1WorkflowWaitForStateCompletionPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiV1WorkflowWaitForStateCompletionPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ApiV1WorkflowWaitForStateCompletionPost`: WorkflowWaitForStateCompletionResponse - fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ApiV1WorkflowWaitForStateCompletionPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiV1WorkflowWaitForStateCompletionPost`: %v\n", resp) } ``` @@ -1064,13 +1127,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DefaultAPI.ApiV1WorkflowWorkerRpcPost(context.Background()).WorkflowWorkerRpcRequest(workflowWorkerRpcRequest).Execute() + resp, r, err := apiClient.DefaultApi.ApiV1WorkflowWorkerRpcPost(context.Background()).WorkflowWorkerRpcRequest(workflowWorkerRpcRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.ApiV1WorkflowWorkerRpcPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.ApiV1WorkflowWorkerRpcPost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ApiV1WorkflowWorkerRpcPost`: WorkflowWorkerRpcResponse - fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.ApiV1WorkflowWorkerRpcPost`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.ApiV1WorkflowWorkerRpcPost`: %v\n", resp) } ``` @@ -1127,13 +1190,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DefaultAPI.InfoHealthcheckGet(context.Background()).Execute() + resp, r, err := apiClient.DefaultApi.InfoHealthcheckGet(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DefaultAPI.InfoHealthcheckGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DefaultApi.InfoHealthcheckGet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `InfoHealthcheckGet`: HealthInfo - fmt.Fprintf(os.Stdout, "Response from `DefaultAPI.InfoHealthcheckGet`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DefaultApi.InfoHealthcheckGet`: %v\n", resp) } ``` diff --git a/gen/iwfidl/docs/IDReusePolicy.md b/gen/iwfidl/docs/IDReusePolicy.md index 1e9d193..245c04b 100644 --- a/gen/iwfidl/docs/IDReusePolicy.md +++ b/gen/iwfidl/docs/IDReusePolicy.md @@ -3,7 +3,7 @@ ## Enum -* `ALLOW_IF_PREVIOUS_EXISTS_ABNORMALLY` (value: `"ALLOW_IF_PREVIOUS_EXISTS_ABNORMALLY"`) +* `ALLOW_IF_PREVIOUS_EXITS_ABNORMALLY` (value: `"ALLOW_IF_PREVIOUS_EXITS_ABNORMALLY"`) * `ALLOW_IF_NO_RUNNING` (value: `"ALLOW_IF_NO_RUNNING"`) diff --git a/gen/iwfidl/docs/InterStateChannelCommand.md b/gen/iwfidl/docs/InterStateChannelCommand.md index 7c379b3..483fd0d 100644 --- a/gen/iwfidl/docs/InterStateChannelCommand.md +++ b/gen/iwfidl/docs/InterStateChannelCommand.md @@ -4,14 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CommandId** | **string** | | +**CommandId** | Pointer to **string** | | [optional] **ChannelName** | **string** | | +**AtLeast** | Pointer to **int32** | | [optional] +**AtMost** | Pointer to **int32** | | [optional] ## Methods ### 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, @@ -45,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 @@ -66,6 +73,56 @@ and a boolean to check if the value has been set. SetChannelName sets ChannelName field to given value. +### GetAtLeast + +`func (o *InterStateChannelCommand) GetAtLeast() int32` + +GetAtLeast returns the AtLeast field if non-nil, zero value otherwise. + +### GetAtLeastOk + +`func (o *InterStateChannelCommand) GetAtLeastOk() (*int32, bool)` + +GetAtLeastOk returns a tuple with the AtLeast field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAtLeast + +`func (o *InterStateChannelCommand) SetAtLeast(v int32)` + +SetAtLeast sets AtLeast field to given value. + +### HasAtLeast + +`func (o *InterStateChannelCommand) HasAtLeast() bool` + +HasAtLeast returns a boolean if a field has been set. + +### GetAtMost + +`func (o *InterStateChannelCommand) GetAtMost() int32` + +GetAtMost returns the AtMost field if non-nil, zero value otherwise. + +### GetAtMostOk + +`func (o *InterStateChannelCommand) GetAtMostOk() (*int32, bool)` + +GetAtMostOk returns a tuple with the AtMost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAtMost + +`func (o *InterStateChannelCommand) SetAtMost(v int32)` + +SetAtMost sets AtMost field to given value. + +### HasAtMost + +`func (o *InterStateChannelCommand) HasAtMost() bool` + +HasAtMost 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) diff --git a/gen/iwfidl/docs/PersistenceLoadingPolicy.md b/gen/iwfidl/docs/PersistenceLoadingPolicy.md index 98f6ec8..d25cc58 100644 --- a/gen/iwfidl/docs/PersistenceLoadingPolicy.md +++ b/gen/iwfidl/docs/PersistenceLoadingPolicy.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **PersistenceLoadingType** | Pointer to [**PersistenceLoadingType**](PersistenceLoadingType.md) | | [optional] **PartialLoadingKeys** | Pointer to **[]string** | | [optional] **LockingKeys** | Pointer to **[]string** | | [optional] +**UseKeyAsPrefix** | Pointer to **bool** | | [optional] ## Methods @@ -102,6 +103,31 @@ SetLockingKeys sets LockingKeys field to given value. HasLockingKeys returns a boolean if a field has been set. +### GetUseKeyAsPrefix + +`func (o *PersistenceLoadingPolicy) GetUseKeyAsPrefix() bool` + +GetUseKeyAsPrefix returns the UseKeyAsPrefix field if non-nil, zero value otherwise. + +### GetUseKeyAsPrefixOk + +`func (o *PersistenceLoadingPolicy) GetUseKeyAsPrefixOk() (*bool, bool)` + +GetUseKeyAsPrefixOk returns a tuple with the UseKeyAsPrefix field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseKeyAsPrefix + +`func (o *PersistenceLoadingPolicy) SetUseKeyAsPrefix(v bool)` + +SetUseKeyAsPrefix sets UseKeyAsPrefix field to given value. + +### HasUseKeyAsPrefix + +`func (o *PersistenceLoadingPolicy) HasUseKeyAsPrefix() bool` + +HasUseKeyAsPrefix 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) diff --git a/gen/iwfidl/docs/PersistenceLoadingType.md b/gen/iwfidl/docs/PersistenceLoadingType.md index ed8e006..e335863 100644 --- a/gen/iwfidl/docs/PersistenceLoadingType.md +++ b/gen/iwfidl/docs/PersistenceLoadingType.md @@ -11,6 +11,8 @@ * `NONE` (value: `"LOAD_NONE"`) +* `ALL_WITH_PARTIAL_LOCK` (value: `"LOAD_ALL_WITH_PARTIAL_LOCK"`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/gen/iwfidl/docs/SignalCommand.md b/gen/iwfidl/docs/SignalCommand.md index 716f1fd..130f3d1 100644 --- a/gen/iwfidl/docs/SignalCommand.md +++ b/gen/iwfidl/docs/SignalCommand.md @@ -4,14 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CommandId** | **string** | | +**CommandId** | Pointer to **string** | | [optional] **SignalChannelName** | **string** | | +**AtLeast** | Pointer to **int32** | | [optional] +**AtMost** | Pointer to **int32** | | [optional] ## Methods ### 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, @@ -45,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 @@ -66,6 +73,56 @@ and a boolean to check if the value has been set. SetSignalChannelName sets SignalChannelName field to given value. +### GetAtLeast + +`func (o *SignalCommand) GetAtLeast() int32` + +GetAtLeast returns the AtLeast field if non-nil, zero value otherwise. + +### GetAtLeastOk + +`func (o *SignalCommand) GetAtLeastOk() (*int32, bool)` + +GetAtLeastOk returns a tuple with the AtLeast field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAtLeast + +`func (o *SignalCommand) SetAtLeast(v int32)` + +SetAtLeast sets AtLeast field to given value. + +### HasAtLeast + +`func (o *SignalCommand) HasAtLeast() bool` + +HasAtLeast returns a boolean if a field has been set. + +### GetAtMost + +`func (o *SignalCommand) GetAtMost() int32` + +GetAtMost returns the AtMost field if non-nil, zero value otherwise. + +### GetAtMostOk + +`func (o *SignalCommand) GetAtMostOk() (*int32, bool)` + +GetAtMostOk returns a tuple with the AtMost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAtMost + +`func (o *SignalCommand) SetAtMost(v int32)` + +SetAtMost sets AtMost field to given value. + +### HasAtMost + +`func (o *SignalCommand) HasAtMost() bool` + +HasAtMost 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) diff --git a/gen/iwfidl/docs/StateMovement.md b/gen/iwfidl/docs/StateMovement.md index c602175..24e7fb8 100644 --- a/gen/iwfidl/docs/StateMovement.md +++ b/gen/iwfidl/docs/StateMovement.md @@ -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 @@ -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) diff --git a/gen/iwfidl/docs/TimerCommand.md b/gen/iwfidl/docs/TimerCommand.md index 49fd876..71f89d4 100644 --- a/gen/iwfidl/docs/TimerCommand.md +++ b/gen/iwfidl/docs/TimerCommand.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CommandId** | **string** | | -**FiringUnixTimestampSeconds** | **int64** | | +**CommandId** | Pointer to **string** | | [optional] +**DurationSeconds** | **int64** | | ## Methods ### NewTimerCommand -`func NewTimerCommand(commandId string, firingUnixTimestampSeconds int64, ) *TimerCommand` +`func NewTimerCommand(durationSeconds int64, ) *TimerCommand` NewTimerCommand instantiates a new TimerCommand object This constructor will assign default values to properties that have it defined, @@ -45,25 +45,30 @@ and a boolean to check if the value has been set. SetCommandId sets CommandId field to given value. +### HasCommandId -### GetFiringUnixTimestampSeconds +`func (o *TimerCommand) HasCommandId() bool` -`func (o *TimerCommand) GetFiringUnixTimestampSeconds() int64` +HasCommandId returns a boolean if a field has been set. -GetFiringUnixTimestampSeconds returns the FiringUnixTimestampSeconds field if non-nil, zero value otherwise. +### GetDurationSeconds -### GetFiringUnixTimestampSecondsOk +`func (o *TimerCommand) GetDurationSeconds() int64` -`func (o *TimerCommand) GetFiringUnixTimestampSecondsOk() (*int64, bool)` +GetDurationSeconds returns the DurationSeconds field if non-nil, zero value otherwise. -GetFiringUnixTimestampSecondsOk returns a tuple with the FiringUnixTimestampSeconds field if it's non-nil, zero value otherwise +### GetDurationSecondsOk + +`func (o *TimerCommand) GetDurationSecondsOk() (*int64, bool)` + +GetDurationSecondsOk returns a tuple with the DurationSeconds field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetFiringUnixTimestampSeconds +### SetDurationSeconds -`func (o *TimerCommand) SetFiringUnixTimestampSeconds(v int64)` +`func (o *TimerCommand) SetDurationSeconds(v int64)` -SetFiringUnixTimestampSeconds sets FiringUnixTimestampSeconds field to given value. +SetDurationSeconds sets DurationSeconds field to given value. diff --git a/gen/iwfidl/docs/TriggerContinueAsNewRequest.md b/gen/iwfidl/docs/TriggerContinueAsNewRequest.md new file mode 100644 index 0000000..fefbd65 --- /dev/null +++ b/gen/iwfidl/docs/TriggerContinueAsNewRequest.md @@ -0,0 +1,77 @@ +# TriggerContinueAsNewRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WorkflowId** | **string** | | +**WorkflowRunId** | Pointer to **string** | | [optional] + +## Methods + +### NewTriggerContinueAsNewRequest + +`func NewTriggerContinueAsNewRequest(workflowId string, ) *TriggerContinueAsNewRequest` + +NewTriggerContinueAsNewRequest instantiates a new TriggerContinueAsNewRequest 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 + +### NewTriggerContinueAsNewRequestWithDefaults + +`func NewTriggerContinueAsNewRequestWithDefaults() *TriggerContinueAsNewRequest` + +NewTriggerContinueAsNewRequestWithDefaults instantiates a new TriggerContinueAsNewRequest 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 + +### GetWorkflowId + +`func (o *TriggerContinueAsNewRequest) GetWorkflowId() string` + +GetWorkflowId returns the WorkflowId field if non-nil, zero value otherwise. + +### GetWorkflowIdOk + +`func (o *TriggerContinueAsNewRequest) GetWorkflowIdOk() (*string, bool)` + +GetWorkflowIdOk returns a tuple with the WorkflowId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowId + +`func (o *TriggerContinueAsNewRequest) SetWorkflowId(v string)` + +SetWorkflowId sets WorkflowId field to given value. + + +### GetWorkflowRunId + +`func (o *TriggerContinueAsNewRequest) GetWorkflowRunId() string` + +GetWorkflowRunId returns the WorkflowRunId field if non-nil, zero value otherwise. + +### GetWorkflowRunIdOk + +`func (o *TriggerContinueAsNewRequest) GetWorkflowRunIdOk() (*string, bool)` + +GetWorkflowRunIdOk returns a tuple with the WorkflowRunId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowRunId + +`func (o *TriggerContinueAsNewRequest) SetWorkflowRunId(v string)` + +SetWorkflowRunId sets WorkflowRunId field to given value. + +### HasWorkflowRunId + +`func (o *TriggerContinueAsNewRequest) HasWorkflowRunId() bool` + +HasWorkflowRunId 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) + + diff --git a/gen/iwfidl/docs/WorkflowConfig.md b/gen/iwfidl/docs/WorkflowConfig.md index d9a2cc3..608e6a4 100644 --- a/gen/iwfidl/docs/WorkflowConfig.md +++ b/gen/iwfidl/docs/WorkflowConfig.md @@ -5,8 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DisableSystemSearchAttribute** | Pointer to **bool** | | [optional] +**EnabledExecutingStateExecutionIds** | Pointer to **bool** | | [optional] **ContinueAsNewThreshold** | Pointer to **int32** | | [optional] **ContinueAsNewPageSizeInBytes** | Pointer to **int32** | | [optional] +**OptimizeActivity** | Pointer to **bool** | | [optional] ## Methods @@ -52,6 +54,31 @@ SetDisableSystemSearchAttribute sets DisableSystemSearchAttribute field to given HasDisableSystemSearchAttribute returns a boolean if a field has been set. +### GetEnabledExecutingStateExecutionIds + +`func (o *WorkflowConfig) GetEnabledExecutingStateExecutionIds() bool` + +GetEnabledExecutingStateExecutionIds returns the EnabledExecutingStateExecutionIds field if non-nil, zero value otherwise. + +### GetEnabledExecutingStateExecutionIdsOk + +`func (o *WorkflowConfig) GetEnabledExecutingStateExecutionIdsOk() (*bool, bool)` + +GetEnabledExecutingStateExecutionIdsOk returns a tuple with the EnabledExecutingStateExecutionIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabledExecutingStateExecutionIds + +`func (o *WorkflowConfig) SetEnabledExecutingStateExecutionIds(v bool)` + +SetEnabledExecutingStateExecutionIds sets EnabledExecutingStateExecutionIds field to given value. + +### HasEnabledExecutingStateExecutionIds + +`func (o *WorkflowConfig) HasEnabledExecutingStateExecutionIds() bool` + +HasEnabledExecutingStateExecutionIds returns a boolean if a field has been set. + ### GetContinueAsNewThreshold `func (o *WorkflowConfig) GetContinueAsNewThreshold() int32` @@ -102,6 +129,31 @@ SetContinueAsNewPageSizeInBytes sets ContinueAsNewPageSizeInBytes field to given HasContinueAsNewPageSizeInBytes returns a boolean if a field has been set. +### GetOptimizeActivity + +`func (o *WorkflowConfig) GetOptimizeActivity() bool` + +GetOptimizeActivity returns the OptimizeActivity field if non-nil, zero value otherwise. + +### GetOptimizeActivityOk + +`func (o *WorkflowConfig) GetOptimizeActivityOk() (*bool, bool)` + +GetOptimizeActivityOk returns a tuple with the OptimizeActivity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptimizeActivity + +`func (o *WorkflowConfig) SetOptimizeActivity(v bool)` + +SetOptimizeActivity sets OptimizeActivity field to given value. + +### HasOptimizeActivity + +`func (o *WorkflowConfig) HasOptimizeActivity() bool` + +HasOptimizeActivity 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) diff --git a/gen/iwfidl/docs/WorkflowStartOptions.md b/gen/iwfidl/docs/WorkflowStartOptions.md index 22baae7..0b0c5af 100644 --- a/gen/iwfidl/docs/WorkflowStartOptions.md +++ b/gen/iwfidl/docs/WorkflowStartOptions.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **WorkflowStartDelaySeconds** | Pointer to **int32** | | [optional] **RetryPolicy** | Pointer to [**WorkflowRetryPolicy**](WorkflowRetryPolicy.md) | | [optional] **SearchAttributes** | Pointer to [**[]SearchAttribute**](SearchAttribute.md) | | [optional] +**DataAttributes** | Pointer to [**[]KeyValue**](KeyValue.md) | | [optional] **WorkflowConfigOverride** | Pointer to [**WorkflowConfig**](WorkflowConfig.md) | | [optional] **UseMemoForDataAttributes** | Pointer to **bool** | | [optional] @@ -156,6 +157,31 @@ SetSearchAttributes sets SearchAttributes field to given value. HasSearchAttributes returns a boolean if a field has been set. +### GetDataAttributes + +`func (o *WorkflowStartOptions) GetDataAttributes() []KeyValue` + +GetDataAttributes returns the DataAttributes field if non-nil, zero value otherwise. + +### GetDataAttributesOk + +`func (o *WorkflowStartOptions) GetDataAttributesOk() (*[]KeyValue, bool)` + +GetDataAttributesOk returns a tuple with the DataAttributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataAttributes + +`func (o *WorkflowStartOptions) SetDataAttributes(v []KeyValue)` + +SetDataAttributes sets DataAttributes field to given value. + +### HasDataAttributes + +`func (o *WorkflowStartOptions) HasDataAttributes() bool` + +HasDataAttributes returns a boolean if a field has been set. + ### GetWorkflowConfigOverride `func (o *WorkflowStartOptions) GetWorkflowConfigOverride() WorkflowConfig` diff --git a/gen/iwfidl/docs/WorkflowStartRequest.md b/gen/iwfidl/docs/WorkflowStartRequest.md index f3db669..357b477 100644 --- a/gen/iwfidl/docs/WorkflowStartRequest.md +++ b/gen/iwfidl/docs/WorkflowStartRequest.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **WorkflowTimeoutSeconds** | **int32** | | **IwfWorkerUrl** | **string** | | **StartStateId** | Pointer to **string** | | [optional] +**WaitForCompletionStateIds** | Pointer to **[]string** | | [optional] **WaitForCompletionStateExecutionIds** | Pointer to **[]string** | | [optional] **StateInput** | Pointer to [**EncodedObject**](EncodedObject.md) | | [optional] **StateOptions** | Pointer to [**WorkflowStateOptions**](WorkflowStateOptions.md) | | [optional] @@ -138,6 +139,31 @@ SetStartStateId sets StartStateId field to given value. HasStartStateId returns a boolean if a field has been set. +### GetWaitForCompletionStateIds + +`func (o *WorkflowStartRequest) GetWaitForCompletionStateIds() []string` + +GetWaitForCompletionStateIds returns the WaitForCompletionStateIds field if non-nil, zero value otherwise. + +### GetWaitForCompletionStateIdsOk + +`func (o *WorkflowStartRequest) GetWaitForCompletionStateIdsOk() (*[]string, bool)` + +GetWaitForCompletionStateIdsOk returns a tuple with the WaitForCompletionStateIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWaitForCompletionStateIds + +`func (o *WorkflowStartRequest) SetWaitForCompletionStateIds(v []string)` + +SetWaitForCompletionStateIds sets WaitForCompletionStateIds field to given value. + +### HasWaitForCompletionStateIds + +`func (o *WorkflowStartRequest) HasWaitForCompletionStateIds() bool` + +HasWaitForCompletionStateIds returns a boolean if a field has been set. + ### GetWaitForCompletionStateExecutionIds `func (o *WorkflowStartRequest) GetWaitForCompletionStateExecutionIds() []string` diff --git a/gen/iwfidl/docs/WorkflowStateExecuteResponse.md b/gen/iwfidl/docs/WorkflowStateExecuteResponse.md index d27a312..3ba880a 100644 --- a/gen/iwfidl/docs/WorkflowStateExecuteResponse.md +++ b/gen/iwfidl/docs/WorkflowStateExecuteResponse.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**LocalActivityInput** | Pointer to **string** | | [optional] **StateDecision** | Pointer to [**StateDecision**](StateDecision.md) | | [optional] **UpsertSearchAttributes** | Pointer to [**[]SearchAttribute**](SearchAttribute.md) | | [optional] **UpsertDataObjects** | Pointer to [**[]KeyValue**](KeyValue.md) | | [optional] @@ -30,6 +31,31 @@ NewWorkflowStateExecuteResponseWithDefaults instantiates a new WorkflowStateExec 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 +### GetLocalActivityInput + +`func (o *WorkflowStateExecuteResponse) GetLocalActivityInput() string` + +GetLocalActivityInput returns the LocalActivityInput field if non-nil, zero value otherwise. + +### GetLocalActivityInputOk + +`func (o *WorkflowStateExecuteResponse) GetLocalActivityInputOk() (*string, bool)` + +GetLocalActivityInputOk returns a tuple with the LocalActivityInput field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalActivityInput + +`func (o *WorkflowStateExecuteResponse) SetLocalActivityInput(v string)` + +SetLocalActivityInput sets LocalActivityInput field to given value. + +### HasLocalActivityInput + +`func (o *WorkflowStateExecuteResponse) HasLocalActivityInput() bool` + +HasLocalActivityInput returns a boolean if a field has been set. + ### GetStateDecision `func (o *WorkflowStateExecuteResponse) GetStateDecision() StateDecision` diff --git a/gen/iwfidl/docs/WorkflowStateWaitUntilResponse.md b/gen/iwfidl/docs/WorkflowStateWaitUntilResponse.md index 6436ac6..59e8b7a 100644 --- a/gen/iwfidl/docs/WorkflowStateWaitUntilResponse.md +++ b/gen/iwfidl/docs/WorkflowStateWaitUntilResponse.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**LocalActivityInput** | Pointer to **string** | | [optional] **UpsertSearchAttributes** | Pointer to [**[]SearchAttribute**](SearchAttribute.md) | | [optional] **UpsertDataObjects** | Pointer to [**[]KeyValue**](KeyValue.md) | | [optional] **CommandRequest** | Pointer to [**CommandRequest**](CommandRequest.md) | | [optional] @@ -30,6 +31,31 @@ NewWorkflowStateWaitUntilResponseWithDefaults instantiates a new WorkflowStateWa 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 +### GetLocalActivityInput + +`func (o *WorkflowStateWaitUntilResponse) GetLocalActivityInput() string` + +GetLocalActivityInput returns the LocalActivityInput field if non-nil, zero value otherwise. + +### GetLocalActivityInputOk + +`func (o *WorkflowStateWaitUntilResponse) GetLocalActivityInputOk() (*string, bool)` + +GetLocalActivityInputOk returns a tuple with the LocalActivityInput field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalActivityInput + +`func (o *WorkflowStateWaitUntilResponse) SetLocalActivityInput(v string)` + +SetLocalActivityInput sets LocalActivityInput field to given value. + +### HasLocalActivityInput + +`func (o *WorkflowStateWaitUntilResponse) HasLocalActivityInput() bool` + +HasLocalActivityInput returns a boolean if a field has been set. + ### GetUpsertSearchAttributes `func (o *WorkflowStateWaitUntilResponse) GetUpsertSearchAttributes() []SearchAttribute` diff --git a/gen/iwfidl/docs/WorkflowWaitForStateCompletionRequest.md b/gen/iwfidl/docs/WorkflowWaitForStateCompletionRequest.md index 114a63a..7a1005d 100644 --- a/gen/iwfidl/docs/WorkflowWaitForStateCompletionRequest.md +++ b/gen/iwfidl/docs/WorkflowWaitForStateCompletionRequest.md @@ -5,14 +5,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **WorkflowId** | **string** | | -**StateExecutionId** | **string** | | +**StateExecutionId** | Pointer to **string** | | [optional] +**StateId** | Pointer to **string** | | [optional] +**WaitForKey** | Pointer to **string** | | [optional] **WaitTimeSeconds** | Pointer to **int32** | | [optional] ## Methods ### NewWorkflowWaitForStateCompletionRequest -`func NewWorkflowWaitForStateCompletionRequest(workflowId string, stateExecutionId string, ) *WorkflowWaitForStateCompletionRequest` +`func NewWorkflowWaitForStateCompletionRequest(workflowId string, ) *WorkflowWaitForStateCompletionRequest` NewWorkflowWaitForStateCompletionRequest instantiates a new WorkflowWaitForStateCompletionRequest object This constructor will assign default values to properties that have it defined, @@ -66,6 +68,61 @@ and a boolean to check if the value has been set. SetStateExecutionId sets StateExecutionId field to given value. +### HasStateExecutionId + +`func (o *WorkflowWaitForStateCompletionRequest) HasStateExecutionId() bool` + +HasStateExecutionId returns a boolean if a field has been set. + +### GetStateId + +`func (o *WorkflowWaitForStateCompletionRequest) GetStateId() string` + +GetStateId returns the StateId field if non-nil, zero value otherwise. + +### GetStateIdOk + +`func (o *WorkflowWaitForStateCompletionRequest) GetStateIdOk() (*string, bool)` + +GetStateIdOk returns a tuple with the StateId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStateId + +`func (o *WorkflowWaitForStateCompletionRequest) SetStateId(v string)` + +SetStateId sets StateId field to given value. + +### HasStateId + +`func (o *WorkflowWaitForStateCompletionRequest) HasStateId() bool` + +HasStateId returns a boolean if a field has been set. + +### GetWaitForKey + +`func (o *WorkflowWaitForStateCompletionRequest) GetWaitForKey() string` + +GetWaitForKey returns the WaitForKey field if non-nil, zero value otherwise. + +### GetWaitForKeyOk + +`func (o *WorkflowWaitForStateCompletionRequest) 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 *WorkflowWaitForStateCompletionRequest) SetWaitForKey(v string)` + +SetWaitForKey sets WaitForKey field to given value. + +### HasWaitForKey + +`func (o *WorkflowWaitForStateCompletionRequest) HasWaitForKey() bool` + +HasWaitForKey returns a boolean if a field has been set. ### GetWaitTimeSeconds diff --git a/gen/iwfidl/model_id_reuse_policy.go b/gen/iwfidl/model_id_reuse_policy.go index 9d46426..2c93f6a 100644 --- a/gen/iwfidl/model_id_reuse_policy.go +++ b/gen/iwfidl/model_id_reuse_policy.go @@ -20,15 +20,15 @@ type IDReusePolicy string // List of IDReusePolicy const ( - ALLOW_IF_PREVIOUS_EXISTS_ABNORMALLY IDReusePolicy = "ALLOW_IF_PREVIOUS_EXISTS_ABNORMALLY" - ALLOW_IF_NO_RUNNING IDReusePolicy = "ALLOW_IF_NO_RUNNING" - DISALLOW_REUSE IDReusePolicy = "DISALLOW_REUSE" - ALLOW_TERMINATE_IF_RUNNING IDReusePolicy = "ALLOW_TERMINATE_IF_RUNNING" + ALLOW_IF_PREVIOUS_EXITS_ABNORMALLY IDReusePolicy = "ALLOW_IF_PREVIOUS_EXITS_ABNORMALLY" + ALLOW_IF_NO_RUNNING IDReusePolicy = "ALLOW_IF_NO_RUNNING" + DISALLOW_REUSE IDReusePolicy = "DISALLOW_REUSE" + ALLOW_TERMINATE_IF_RUNNING IDReusePolicy = "ALLOW_TERMINATE_IF_RUNNING" ) // All allowed values of IDReusePolicy enum var AllowedIDReusePolicyEnumValues = []IDReusePolicy{ - "ALLOW_IF_PREVIOUS_EXISTS_ABNORMALLY", + "ALLOW_IF_PREVIOUS_EXITS_ABNORMALLY", "ALLOW_IF_NO_RUNNING", "DISALLOW_REUSE", "ALLOW_TERMINATE_IF_RUNNING", diff --git a/gen/iwfidl/model_inter_state_channel_command.go b/gen/iwfidl/model_inter_state_channel_command.go index 30affec..c15401b 100644 --- a/gen/iwfidl/model_inter_state_channel_command.go +++ b/gen/iwfidl/model_inter_state_channel_command.go @@ -19,17 +19,18 @@ var _ MappedNullable = &InterStateChannelCommand{} // InterStateChannelCommand struct for InterStateChannelCommand type InterStateChannelCommand struct { - CommandId string `json:"commandId"` - ChannelName string `json:"channelName"` + CommandId *string `json:"commandId,omitempty"` + ChannelName string `json:"channelName"` + AtLeast *int32 `json:"atLeast,omitempty"` + AtMost *int32 `json:"atMost,omitempty"` } // NewInterStateChannelCommand instantiates a new InterStateChannelCommand 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 -func NewInterStateChannelCommand(commandId string, channelName string) *InterStateChannelCommand { +func NewInterStateChannelCommand(channelName string) *InterStateChannelCommand { this := InterStateChannelCommand{} - this.CommandId = commandId this.ChannelName = channelName return &this } @@ -42,28 +43,36 @@ func NewInterStateChannelCommandWithDefaults() *InterStateChannelCommand { return &this } -// GetCommandId returns the CommandId field value +// GetCommandId returns the CommandId field value if set, zero value otherwise. func (o *InterStateChannelCommand) GetCommandId() string { - if o == nil { + if o == nil || IsNil(o.CommandId) { var ret string return ret } - - return o.CommandId + return *o.CommandId } -// GetCommandIdOk returns a tuple with the CommandId field value +// GetCommandIdOk returns a tuple with the CommandId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *InterStateChannelCommand) GetCommandIdOk() (*string, bool) { - if o == nil { + if o == nil || IsNil(o.CommandId) { return nil, false } - return &o.CommandId, true + return o.CommandId, true +} + +// HasCommandId returns a boolean if a field has been set. +func (o *InterStateChannelCommand) HasCommandId() bool { + if o != nil && !IsNil(o.CommandId) { + return true + } + + return false } -// SetCommandId sets field value +// SetCommandId gets a reference to the given string and assigns it to the CommandId field. func (o *InterStateChannelCommand) SetCommandId(v string) { - o.CommandId = v + o.CommandId = &v } // GetChannelName returns the ChannelName field value @@ -90,6 +99,70 @@ func (o *InterStateChannelCommand) SetChannelName(v string) { o.ChannelName = v } +// GetAtLeast returns the AtLeast field value if set, zero value otherwise. +func (o *InterStateChannelCommand) GetAtLeast() int32 { + if o == nil || IsNil(o.AtLeast) { + var ret int32 + return ret + } + return *o.AtLeast +} + +// GetAtLeastOk returns a tuple with the AtLeast field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterStateChannelCommand) GetAtLeastOk() (*int32, bool) { + if o == nil || IsNil(o.AtLeast) { + return nil, false + } + return o.AtLeast, true +} + +// HasAtLeast returns a boolean if a field has been set. +func (o *InterStateChannelCommand) HasAtLeast() bool { + if o != nil && !IsNil(o.AtLeast) { + return true + } + + return false +} + +// SetAtLeast gets a reference to the given int32 and assigns it to the AtLeast field. +func (o *InterStateChannelCommand) SetAtLeast(v int32) { + o.AtLeast = &v +} + +// GetAtMost returns the AtMost field value if set, zero value otherwise. +func (o *InterStateChannelCommand) GetAtMost() int32 { + if o == nil || IsNil(o.AtMost) { + var ret int32 + return ret + } + return *o.AtMost +} + +// GetAtMostOk returns a tuple with the AtMost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterStateChannelCommand) GetAtMostOk() (*int32, bool) { + if o == nil || IsNil(o.AtMost) { + return nil, false + } + return o.AtMost, true +} + +// HasAtMost returns a boolean if a field has been set. +func (o *InterStateChannelCommand) HasAtMost() bool { + if o != nil && !IsNil(o.AtMost) { + return true + } + + return false +} + +// SetAtMost gets a reference to the given int32 and assigns it to the AtMost field. +func (o *InterStateChannelCommand) SetAtMost(v int32) { + o.AtMost = &v +} + func (o InterStateChannelCommand) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -100,8 +173,16 @@ func (o InterStateChannelCommand) MarshalJSON() ([]byte, error) { func (o InterStateChannelCommand) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["commandId"] = o.CommandId + if !IsNil(o.CommandId) { + toSerialize["commandId"] = o.CommandId + } toSerialize["channelName"] = o.ChannelName + if !IsNil(o.AtLeast) { + toSerialize["atLeast"] = o.AtLeast + } + if !IsNil(o.AtMost) { + toSerialize["atMost"] = o.AtMost + } return toSerialize, nil } diff --git a/gen/iwfidl/model_persistence_loading_policy.go b/gen/iwfidl/model_persistence_loading_policy.go index d0a1430..c0a5e0c 100644 --- a/gen/iwfidl/model_persistence_loading_policy.go +++ b/gen/iwfidl/model_persistence_loading_policy.go @@ -22,6 +22,7 @@ type PersistenceLoadingPolicy struct { PersistenceLoadingType *PersistenceLoadingType `json:"persistenceLoadingType,omitempty"` PartialLoadingKeys []string `json:"partialLoadingKeys,omitempty"` LockingKeys []string `json:"lockingKeys,omitempty"` + UseKeyAsPrefix *bool `json:"useKeyAsPrefix,omitempty"` } // NewPersistenceLoadingPolicy instantiates a new PersistenceLoadingPolicy object @@ -137,6 +138,38 @@ func (o *PersistenceLoadingPolicy) SetLockingKeys(v []string) { o.LockingKeys = v } +// GetUseKeyAsPrefix returns the UseKeyAsPrefix field value if set, zero value otherwise. +func (o *PersistenceLoadingPolicy) GetUseKeyAsPrefix() bool { + if o == nil || IsNil(o.UseKeyAsPrefix) { + var ret bool + return ret + } + return *o.UseKeyAsPrefix +} + +// GetUseKeyAsPrefixOk returns a tuple with the UseKeyAsPrefix field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PersistenceLoadingPolicy) GetUseKeyAsPrefixOk() (*bool, bool) { + if o == nil || IsNil(o.UseKeyAsPrefix) { + return nil, false + } + return o.UseKeyAsPrefix, true +} + +// HasUseKeyAsPrefix returns a boolean if a field has been set. +func (o *PersistenceLoadingPolicy) HasUseKeyAsPrefix() bool { + if o != nil && !IsNil(o.UseKeyAsPrefix) { + return true + } + + return false +} + +// SetUseKeyAsPrefix gets a reference to the given bool and assigns it to the UseKeyAsPrefix field. +func (o *PersistenceLoadingPolicy) SetUseKeyAsPrefix(v bool) { + o.UseKeyAsPrefix = &v +} + func (o PersistenceLoadingPolicy) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -156,6 +189,9 @@ func (o PersistenceLoadingPolicy) ToMap() (map[string]interface{}, error) { if !IsNil(o.LockingKeys) { toSerialize["lockingKeys"] = o.LockingKeys } + if !IsNil(o.UseKeyAsPrefix) { + toSerialize["useKeyAsPrefix"] = o.UseKeyAsPrefix + } return toSerialize, nil } diff --git a/gen/iwfidl/model_persistence_loading_type.go b/gen/iwfidl/model_persistence_loading_type.go index 6677961..eed8ebb 100644 --- a/gen/iwfidl/model_persistence_loading_type.go +++ b/gen/iwfidl/model_persistence_loading_type.go @@ -24,6 +24,7 @@ const ( PARTIAL_WITHOUT_LOCKING PersistenceLoadingType = "LOAD_PARTIAL_WITHOUT_LOCKING" PARTIAL_WITH_EXCLUSIVE_LOCK PersistenceLoadingType = "LOAD_PARTIAL_WITH_EXCLUSIVE_LOCK" NONE PersistenceLoadingType = "LOAD_NONE" + ALL_WITH_PARTIAL_LOCK PersistenceLoadingType = "LOAD_ALL_WITH_PARTIAL_LOCK" ) // All allowed values of PersistenceLoadingType enum @@ -32,6 +33,7 @@ var AllowedPersistenceLoadingTypeEnumValues = []PersistenceLoadingType{ "LOAD_PARTIAL_WITHOUT_LOCKING", "LOAD_PARTIAL_WITH_EXCLUSIVE_LOCK", "LOAD_NONE", + "LOAD_ALL_WITH_PARTIAL_LOCK", } func (v *PersistenceLoadingType) UnmarshalJSON(src []byte) error { diff --git a/gen/iwfidl/model_signal_command.go b/gen/iwfidl/model_signal_command.go index 45b3221..2ad636a 100644 --- a/gen/iwfidl/model_signal_command.go +++ b/gen/iwfidl/model_signal_command.go @@ -19,17 +19,18 @@ var _ MappedNullable = &SignalCommand{} // SignalCommand struct for SignalCommand type SignalCommand struct { - CommandId string `json:"commandId"` - SignalChannelName string `json:"signalChannelName"` + CommandId *string `json:"commandId,omitempty"` + SignalChannelName string `json:"signalChannelName"` + AtLeast *int32 `json:"atLeast,omitempty"` + AtMost *int32 `json:"atMost,omitempty"` } // NewSignalCommand instantiates a new SignalCommand 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 -func NewSignalCommand(commandId string, signalChannelName string) *SignalCommand { +func NewSignalCommand(signalChannelName string) *SignalCommand { this := SignalCommand{} - this.CommandId = commandId this.SignalChannelName = signalChannelName return &this } @@ -42,28 +43,36 @@ func NewSignalCommandWithDefaults() *SignalCommand { return &this } -// GetCommandId returns the CommandId field value +// GetCommandId returns the CommandId field value if set, zero value otherwise. func (o *SignalCommand) GetCommandId() string { - if o == nil { + if o == nil || IsNil(o.CommandId) { var ret string return ret } - - return o.CommandId + return *o.CommandId } -// GetCommandIdOk returns a tuple with the CommandId field value +// GetCommandIdOk returns a tuple with the CommandId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *SignalCommand) GetCommandIdOk() (*string, bool) { - if o == nil { + if o == nil || IsNil(o.CommandId) { return nil, false } - return &o.CommandId, true + return o.CommandId, true +} + +// HasCommandId returns a boolean if a field has been set. +func (o *SignalCommand) HasCommandId() bool { + if o != nil && !IsNil(o.CommandId) { + return true + } + + return false } -// SetCommandId sets field value +// SetCommandId gets a reference to the given string and assigns it to the CommandId field. func (o *SignalCommand) SetCommandId(v string) { - o.CommandId = v + o.CommandId = &v } // GetSignalChannelName returns the SignalChannelName field value @@ -90,6 +99,70 @@ func (o *SignalCommand) SetSignalChannelName(v string) { o.SignalChannelName = v } +// GetAtLeast returns the AtLeast field value if set, zero value otherwise. +func (o *SignalCommand) GetAtLeast() int32 { + if o == nil || IsNil(o.AtLeast) { + var ret int32 + return ret + } + return *o.AtLeast +} + +// GetAtLeastOk returns a tuple with the AtLeast field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SignalCommand) GetAtLeastOk() (*int32, bool) { + if o == nil || IsNil(o.AtLeast) { + return nil, false + } + return o.AtLeast, true +} + +// HasAtLeast returns a boolean if a field has been set. +func (o *SignalCommand) HasAtLeast() bool { + if o != nil && !IsNil(o.AtLeast) { + return true + } + + return false +} + +// SetAtLeast gets a reference to the given int32 and assigns it to the AtLeast field. +func (o *SignalCommand) SetAtLeast(v int32) { + o.AtLeast = &v +} + +// GetAtMost returns the AtMost field value if set, zero value otherwise. +func (o *SignalCommand) GetAtMost() int32 { + if o == nil || IsNil(o.AtMost) { + var ret int32 + return ret + } + return *o.AtMost +} + +// GetAtMostOk returns a tuple with the AtMost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SignalCommand) GetAtMostOk() (*int32, bool) { + if o == nil || IsNil(o.AtMost) { + return nil, false + } + return o.AtMost, true +} + +// HasAtMost returns a boolean if a field has been set. +func (o *SignalCommand) HasAtMost() bool { + if o != nil && !IsNil(o.AtMost) { + return true + } + + return false +} + +// SetAtMost gets a reference to the given int32 and assigns it to the AtMost field. +func (o *SignalCommand) SetAtMost(v int32) { + o.AtMost = &v +} + func (o SignalCommand) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -100,8 +173,16 @@ func (o SignalCommand) MarshalJSON() ([]byte, error) { func (o SignalCommand) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["commandId"] = o.CommandId + if !IsNil(o.CommandId) { + toSerialize["commandId"] = o.CommandId + } toSerialize["signalChannelName"] = o.SignalChannelName + if !IsNil(o.AtLeast) { + toSerialize["atLeast"] = o.AtLeast + } + if !IsNil(o.AtMost) { + toSerialize["atMost"] = o.AtMost + } return toSerialize, nil } diff --git a/gen/iwfidl/model_state_movement.go b/gen/iwfidl/model_state_movement.go index 46e6006..8c79f9c 100644 --- a/gen/iwfidl/model_state_movement.go +++ b/gen/iwfidl/model_state_movement.go @@ -22,6 +22,7 @@ type StateMovement struct { StateId string `json:"stateId"` StateInput *EncodedObject `json:"stateInput,omitempty"` StateOptions *WorkflowStateOptions `json:"stateOptions,omitempty"` + WaitForKey *string `json:"waitForKey,omitempty"` } // NewStateMovement instantiates a new StateMovement object @@ -130,6 +131,38 @@ func (o *StateMovement) SetStateOptions(v WorkflowStateOptions) { o.StateOptions = &v } +// GetWaitForKey returns the WaitForKey field value if set, zero value otherwise. +func (o *StateMovement) GetWaitForKey() string { + if o == nil || IsNil(o.WaitForKey) { + var ret string + return ret + } + return *o.WaitForKey +} + +// GetWaitForKeyOk returns a tuple with the WaitForKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StateMovement) GetWaitForKeyOk() (*string, bool) { + if o == nil || IsNil(o.WaitForKey) { + return nil, false + } + return o.WaitForKey, true +} + +// HasWaitForKey returns a boolean if a field has been set. +func (o *StateMovement) HasWaitForKey() bool { + if o != nil && !IsNil(o.WaitForKey) { + return true + } + + return false +} + +// SetWaitForKey gets a reference to the given string and assigns it to the WaitForKey field. +func (o *StateMovement) SetWaitForKey(v string) { + o.WaitForKey = &v +} + func (o StateMovement) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -147,6 +180,9 @@ func (o StateMovement) ToMap() (map[string]interface{}, error) { if !IsNil(o.StateOptions) { toSerialize["stateOptions"] = o.StateOptions } + if !IsNil(o.WaitForKey) { + toSerialize["waitForKey"] = o.WaitForKey + } return toSerialize, nil } diff --git a/gen/iwfidl/model_timer_command.go b/gen/iwfidl/model_timer_command.go index 0ff406a..499c75a 100644 --- a/gen/iwfidl/model_timer_command.go +++ b/gen/iwfidl/model_timer_command.go @@ -19,18 +19,17 @@ var _ MappedNullable = &TimerCommand{} // TimerCommand struct for TimerCommand type TimerCommand struct { - CommandId string `json:"commandId"` - FiringUnixTimestampSeconds int64 `json:"firingUnixTimestampSeconds"` + CommandId *string `json:"commandId,omitempty"` + DurationSeconds int64 `json:"durationSeconds"` } // NewTimerCommand instantiates a new TimerCommand 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 -func NewTimerCommand(commandId string, firingUnixTimestampSeconds int64) *TimerCommand { +func NewTimerCommand(durationSeconds int64) *TimerCommand { this := TimerCommand{} - this.CommandId = commandId - this.FiringUnixTimestampSeconds = firingUnixTimestampSeconds + this.DurationSeconds = durationSeconds return &this } @@ -42,52 +41,60 @@ func NewTimerCommandWithDefaults() *TimerCommand { return &this } -// GetCommandId returns the CommandId field value +// GetCommandId returns the CommandId field value if set, zero value otherwise. func (o *TimerCommand) GetCommandId() string { - if o == nil { + if o == nil || IsNil(o.CommandId) { var ret string return ret } - - return o.CommandId + return *o.CommandId } -// GetCommandIdOk returns a tuple with the CommandId field value +// GetCommandIdOk returns a tuple with the CommandId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TimerCommand) GetCommandIdOk() (*string, bool) { - if o == nil { + if o == nil || IsNil(o.CommandId) { return nil, false } - return &o.CommandId, true + return o.CommandId, true +} + +// HasCommandId returns a boolean if a field has been set. +func (o *TimerCommand) HasCommandId() bool { + if o != nil && !IsNil(o.CommandId) { + return true + } + + return false } -// SetCommandId sets field value +// SetCommandId gets a reference to the given string and assigns it to the CommandId field. func (o *TimerCommand) SetCommandId(v string) { - o.CommandId = v + o.CommandId = &v } -// GetFiringUnixTimestampSeconds returns the FiringUnixTimestampSeconds field value -func (o *TimerCommand) GetFiringUnixTimestampSeconds() int64 { +// GetDurationSeconds returns the DurationSeconds field value +func (o *TimerCommand) GetDurationSeconds() int64 { if o == nil { var ret int64 return ret } - return o.FiringUnixTimestampSeconds + return o.DurationSeconds } -// GetFiringUnixTimestampSecondsOk returns a tuple with the FiringUnixTimestampSeconds field value +// GetDurationSecondsOk returns a tuple with the DurationSeconds field value // and a boolean to check if the value has been set. -func (o *TimerCommand) GetFiringUnixTimestampSecondsOk() (*int64, bool) { +func (o *TimerCommand) GetDurationSecondsOk() (*int64, bool) { if o == nil { return nil, false } - return &o.FiringUnixTimestampSeconds, true + return &o.DurationSeconds, true } -// SetFiringUnixTimestampSeconds sets field value -func (o *TimerCommand) SetFiringUnixTimestampSeconds(v int64) { - o.FiringUnixTimestampSeconds = v +// SetDurationSeconds sets field value +func (o *TimerCommand) SetDurationSeconds(v int64) { + o.DurationSeconds = v } func (o TimerCommand) MarshalJSON() ([]byte, error) { @@ -100,8 +107,10 @@ func (o TimerCommand) MarshalJSON() ([]byte, error) { func (o TimerCommand) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["commandId"] = o.CommandId - toSerialize["firingUnixTimestampSeconds"] = o.FiringUnixTimestampSeconds + if !IsNil(o.CommandId) { + toSerialize["commandId"] = o.CommandId + } + toSerialize["durationSeconds"] = o.DurationSeconds return toSerialize, nil } diff --git a/gen/iwfidl/model_trigger_continue_as_new_request.go b/gen/iwfidl/model_trigger_continue_as_new_request.go new file mode 100644 index 0000000..b454e30 --- /dev/null +++ b/gen/iwfidl/model_trigger_continue_as_new_request.go @@ -0,0 +1,151 @@ +/* +Workflow APIs + +This APIs for iwf SDKs to operate workflows + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package iwfidl + +import ( + "encoding/json" +) + +// checks if the TriggerContinueAsNewRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TriggerContinueAsNewRequest{} + +// TriggerContinueAsNewRequest struct for TriggerContinueAsNewRequest +type TriggerContinueAsNewRequest struct { + WorkflowId string `json:"workflowId"` + WorkflowRunId *string `json:"workflowRunId,omitempty"` +} + +// NewTriggerContinueAsNewRequest instantiates a new TriggerContinueAsNewRequest 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 +func NewTriggerContinueAsNewRequest(workflowId string) *TriggerContinueAsNewRequest { + this := TriggerContinueAsNewRequest{} + this.WorkflowId = workflowId + return &this +} + +// NewTriggerContinueAsNewRequestWithDefaults instantiates a new TriggerContinueAsNewRequest 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 +func NewTriggerContinueAsNewRequestWithDefaults() *TriggerContinueAsNewRequest { + this := TriggerContinueAsNewRequest{} + return &this +} + +// GetWorkflowId returns the WorkflowId field value +func (o *TriggerContinueAsNewRequest) GetWorkflowId() string { + if o == nil { + var ret string + return ret + } + + return o.WorkflowId +} + +// GetWorkflowIdOk returns a tuple with the WorkflowId field value +// and a boolean to check if the value has been set. +func (o *TriggerContinueAsNewRequest) GetWorkflowIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.WorkflowId, true +} + +// SetWorkflowId sets field value +func (o *TriggerContinueAsNewRequest) SetWorkflowId(v string) { + o.WorkflowId = v +} + +// GetWorkflowRunId returns the WorkflowRunId field value if set, zero value otherwise. +func (o *TriggerContinueAsNewRequest) GetWorkflowRunId() string { + if o == nil || IsNil(o.WorkflowRunId) { + var ret string + return ret + } + return *o.WorkflowRunId +} + +// GetWorkflowRunIdOk returns a tuple with the WorkflowRunId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TriggerContinueAsNewRequest) GetWorkflowRunIdOk() (*string, bool) { + if o == nil || IsNil(o.WorkflowRunId) { + return nil, false + } + return o.WorkflowRunId, true +} + +// HasWorkflowRunId returns a boolean if a field has been set. +func (o *TriggerContinueAsNewRequest) HasWorkflowRunId() bool { + if o != nil && !IsNil(o.WorkflowRunId) { + return true + } + + return false +} + +// SetWorkflowRunId gets a reference to the given string and assigns it to the WorkflowRunId field. +func (o *TriggerContinueAsNewRequest) SetWorkflowRunId(v string) { + o.WorkflowRunId = &v +} + +func (o TriggerContinueAsNewRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TriggerContinueAsNewRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["workflowId"] = o.WorkflowId + if !IsNil(o.WorkflowRunId) { + toSerialize["workflowRunId"] = o.WorkflowRunId + } + return toSerialize, nil +} + +type NullableTriggerContinueAsNewRequest struct { + value *TriggerContinueAsNewRequest + isSet bool +} + +func (v NullableTriggerContinueAsNewRequest) Get() *TriggerContinueAsNewRequest { + return v.value +} + +func (v *NullableTriggerContinueAsNewRequest) Set(val *TriggerContinueAsNewRequest) { + v.value = val + v.isSet = true +} + +func (v NullableTriggerContinueAsNewRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableTriggerContinueAsNewRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTriggerContinueAsNewRequest(val *TriggerContinueAsNewRequest) *NullableTriggerContinueAsNewRequest { + return &NullableTriggerContinueAsNewRequest{value: val, isSet: true} +} + +func (v NullableTriggerContinueAsNewRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTriggerContinueAsNewRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/gen/iwfidl/model_workflow_config.go b/gen/iwfidl/model_workflow_config.go index 7fbae75..60e7154 100644 --- a/gen/iwfidl/model_workflow_config.go +++ b/gen/iwfidl/model_workflow_config.go @@ -19,9 +19,11 @@ var _ MappedNullable = &WorkflowConfig{} // WorkflowConfig struct for WorkflowConfig type WorkflowConfig struct { - DisableSystemSearchAttribute *bool `json:"disableSystemSearchAttribute,omitempty"` - ContinueAsNewThreshold *int32 `json:"continueAsNewThreshold,omitempty"` - ContinueAsNewPageSizeInBytes *int32 `json:"continueAsNewPageSizeInBytes,omitempty"` + DisableSystemSearchAttribute *bool `json:"disableSystemSearchAttribute,omitempty"` + EnabledExecutingStateExecutionIds *bool `json:"enabledExecutingStateExecutionIds,omitempty"` + ContinueAsNewThreshold *int32 `json:"continueAsNewThreshold,omitempty"` + ContinueAsNewPageSizeInBytes *int32 `json:"continueAsNewPageSizeInBytes,omitempty"` + OptimizeActivity *bool `json:"optimizeActivity,omitempty"` } // NewWorkflowConfig instantiates a new WorkflowConfig object @@ -73,6 +75,38 @@ func (o *WorkflowConfig) SetDisableSystemSearchAttribute(v bool) { o.DisableSystemSearchAttribute = &v } +// GetEnabledExecutingStateExecutionIds returns the EnabledExecutingStateExecutionIds field value if set, zero value otherwise. +func (o *WorkflowConfig) GetEnabledExecutingStateExecutionIds() bool { + if o == nil || IsNil(o.EnabledExecutingStateExecutionIds) { + var ret bool + return ret + } + return *o.EnabledExecutingStateExecutionIds +} + +// GetEnabledExecutingStateExecutionIdsOk returns a tuple with the EnabledExecutingStateExecutionIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowConfig) GetEnabledExecutingStateExecutionIdsOk() (*bool, bool) { + if o == nil || IsNil(o.EnabledExecutingStateExecutionIds) { + return nil, false + } + return o.EnabledExecutingStateExecutionIds, true +} + +// HasEnabledExecutingStateExecutionIds returns a boolean if a field has been set. +func (o *WorkflowConfig) HasEnabledExecutingStateExecutionIds() bool { + if o != nil && !IsNil(o.EnabledExecutingStateExecutionIds) { + return true + } + + return false +} + +// SetEnabledExecutingStateExecutionIds gets a reference to the given bool and assigns it to the EnabledExecutingStateExecutionIds field. +func (o *WorkflowConfig) SetEnabledExecutingStateExecutionIds(v bool) { + o.EnabledExecutingStateExecutionIds = &v +} + // GetContinueAsNewThreshold returns the ContinueAsNewThreshold field value if set, zero value otherwise. func (o *WorkflowConfig) GetContinueAsNewThreshold() int32 { if o == nil || IsNil(o.ContinueAsNewThreshold) { @@ -137,6 +171,38 @@ func (o *WorkflowConfig) SetContinueAsNewPageSizeInBytes(v int32) { o.ContinueAsNewPageSizeInBytes = &v } +// GetOptimizeActivity returns the OptimizeActivity field value if set, zero value otherwise. +func (o *WorkflowConfig) GetOptimizeActivity() bool { + if o == nil || IsNil(o.OptimizeActivity) { + var ret bool + return ret + } + return *o.OptimizeActivity +} + +// GetOptimizeActivityOk returns a tuple with the OptimizeActivity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowConfig) GetOptimizeActivityOk() (*bool, bool) { + if o == nil || IsNil(o.OptimizeActivity) { + return nil, false + } + return o.OptimizeActivity, true +} + +// HasOptimizeActivity returns a boolean if a field has been set. +func (o *WorkflowConfig) HasOptimizeActivity() bool { + if o != nil && !IsNil(o.OptimizeActivity) { + return true + } + + return false +} + +// SetOptimizeActivity gets a reference to the given bool and assigns it to the OptimizeActivity field. +func (o *WorkflowConfig) SetOptimizeActivity(v bool) { + o.OptimizeActivity = &v +} + func (o WorkflowConfig) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -150,12 +216,18 @@ func (o WorkflowConfig) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisableSystemSearchAttribute) { toSerialize["disableSystemSearchAttribute"] = o.DisableSystemSearchAttribute } + if !IsNil(o.EnabledExecutingStateExecutionIds) { + toSerialize["enabledExecutingStateExecutionIds"] = o.EnabledExecutingStateExecutionIds + } if !IsNil(o.ContinueAsNewThreshold) { toSerialize["continueAsNewThreshold"] = o.ContinueAsNewThreshold } if !IsNil(o.ContinueAsNewPageSizeInBytes) { toSerialize["continueAsNewPageSizeInBytes"] = o.ContinueAsNewPageSizeInBytes } + if !IsNil(o.OptimizeActivity) { + toSerialize["optimizeActivity"] = o.OptimizeActivity + } return toSerialize, nil } diff --git a/gen/iwfidl/model_workflow_start_options.go b/gen/iwfidl/model_workflow_start_options.go index b9856e6..edb5506 100644 --- a/gen/iwfidl/model_workflow_start_options.go +++ b/gen/iwfidl/model_workflow_start_options.go @@ -24,6 +24,7 @@ type WorkflowStartOptions struct { WorkflowStartDelaySeconds *int32 `json:"workflowStartDelaySeconds,omitempty"` RetryPolicy *WorkflowRetryPolicy `json:"retryPolicy,omitempty"` SearchAttributes []SearchAttribute `json:"searchAttributes,omitempty"` + DataAttributes []KeyValue `json:"dataAttributes,omitempty"` WorkflowConfigOverride *WorkflowConfig `json:"workflowConfigOverride,omitempty"` UseMemoForDataAttributes *bool `json:"useMemoForDataAttributes,omitempty"` } @@ -205,6 +206,38 @@ func (o *WorkflowStartOptions) SetSearchAttributes(v []SearchAttribute) { o.SearchAttributes = v } +// GetDataAttributes returns the DataAttributes field value if set, zero value otherwise. +func (o *WorkflowStartOptions) GetDataAttributes() []KeyValue { + if o == nil || IsNil(o.DataAttributes) { + var ret []KeyValue + return ret + } + return o.DataAttributes +} + +// GetDataAttributesOk returns a tuple with the DataAttributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowStartOptions) GetDataAttributesOk() ([]KeyValue, bool) { + if o == nil || IsNil(o.DataAttributes) { + return nil, false + } + return o.DataAttributes, true +} + +// HasDataAttributes returns a boolean if a field has been set. +func (o *WorkflowStartOptions) HasDataAttributes() bool { + if o != nil && !IsNil(o.DataAttributes) { + return true + } + + return false +} + +// SetDataAttributes gets a reference to the given []KeyValue and assigns it to the DataAttributes field. +func (o *WorkflowStartOptions) SetDataAttributes(v []KeyValue) { + o.DataAttributes = v +} + // GetWorkflowConfigOverride returns the WorkflowConfigOverride field value if set, zero value otherwise. func (o *WorkflowStartOptions) GetWorkflowConfigOverride() WorkflowConfig { if o == nil || IsNil(o.WorkflowConfigOverride) { @@ -294,6 +327,9 @@ func (o WorkflowStartOptions) ToMap() (map[string]interface{}, error) { if !IsNil(o.SearchAttributes) { toSerialize["searchAttributes"] = o.SearchAttributes } + if !IsNil(o.DataAttributes) { + toSerialize["dataAttributes"] = o.DataAttributes + } if !IsNil(o.WorkflowConfigOverride) { toSerialize["workflowConfigOverride"] = o.WorkflowConfigOverride } diff --git a/gen/iwfidl/model_workflow_start_request.go b/gen/iwfidl/model_workflow_start_request.go index 081f8f7..e4ecf68 100644 --- a/gen/iwfidl/model_workflow_start_request.go +++ b/gen/iwfidl/model_workflow_start_request.go @@ -24,6 +24,7 @@ type WorkflowStartRequest struct { WorkflowTimeoutSeconds int32 `json:"workflowTimeoutSeconds"` IwfWorkerUrl string `json:"iwfWorkerUrl"` StartStateId *string `json:"startStateId,omitempty"` + WaitForCompletionStateIds []string `json:"waitForCompletionStateIds,omitempty"` WaitForCompletionStateExecutionIds []string `json:"waitForCompletionStateExecutionIds,omitempty"` StateInput *EncodedObject `json:"stateInput,omitempty"` StateOptions *WorkflowStateOptions `json:"stateOptions,omitempty"` @@ -179,6 +180,38 @@ func (o *WorkflowStartRequest) SetStartStateId(v string) { o.StartStateId = &v } +// GetWaitForCompletionStateIds returns the WaitForCompletionStateIds field value if set, zero value otherwise. +func (o *WorkflowStartRequest) GetWaitForCompletionStateIds() []string { + if o == nil || IsNil(o.WaitForCompletionStateIds) { + var ret []string + return ret + } + return o.WaitForCompletionStateIds +} + +// GetWaitForCompletionStateIdsOk returns a tuple with the WaitForCompletionStateIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowStartRequest) GetWaitForCompletionStateIdsOk() ([]string, bool) { + if o == nil || IsNil(o.WaitForCompletionStateIds) { + return nil, false + } + return o.WaitForCompletionStateIds, true +} + +// HasWaitForCompletionStateIds returns a boolean if a field has been set. +func (o *WorkflowStartRequest) HasWaitForCompletionStateIds() bool { + if o != nil && !IsNil(o.WaitForCompletionStateIds) { + return true + } + + return false +} + +// SetWaitForCompletionStateIds gets a reference to the given []string and assigns it to the WaitForCompletionStateIds field. +func (o *WorkflowStartRequest) SetWaitForCompletionStateIds(v []string) { + o.WaitForCompletionStateIds = v +} + // GetWaitForCompletionStateExecutionIds returns the WaitForCompletionStateExecutionIds field value if set, zero value otherwise. func (o *WorkflowStartRequest) GetWaitForCompletionStateExecutionIds() []string { if o == nil || IsNil(o.WaitForCompletionStateExecutionIds) { @@ -324,6 +357,9 @@ func (o WorkflowStartRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.StartStateId) { toSerialize["startStateId"] = o.StartStateId } + if !IsNil(o.WaitForCompletionStateIds) { + toSerialize["waitForCompletionStateIds"] = o.WaitForCompletionStateIds + } if !IsNil(o.WaitForCompletionStateExecutionIds) { toSerialize["waitForCompletionStateExecutionIds"] = o.WaitForCompletionStateExecutionIds } diff --git a/gen/iwfidl/model_workflow_state_execute_response.go b/gen/iwfidl/model_workflow_state_execute_response.go index ba6f34d..2e4feec 100644 --- a/gen/iwfidl/model_workflow_state_execute_response.go +++ b/gen/iwfidl/model_workflow_state_execute_response.go @@ -19,6 +19,7 @@ var _ MappedNullable = &WorkflowStateExecuteResponse{} // WorkflowStateExecuteResponse struct for WorkflowStateExecuteResponse type WorkflowStateExecuteResponse struct { + LocalActivityInput *string `json:"localActivityInput,omitempty"` StateDecision *StateDecision `json:"stateDecision,omitempty"` UpsertSearchAttributes []SearchAttribute `json:"upsertSearchAttributes,omitempty"` UpsertDataObjects []KeyValue `json:"upsertDataObjects,omitempty"` @@ -44,6 +45,38 @@ func NewWorkflowStateExecuteResponseWithDefaults() *WorkflowStateExecuteResponse return &this } +// GetLocalActivityInput returns the LocalActivityInput field value if set, zero value otherwise. +func (o *WorkflowStateExecuteResponse) GetLocalActivityInput() string { + if o == nil || IsNil(o.LocalActivityInput) { + var ret string + return ret + } + return *o.LocalActivityInput +} + +// GetLocalActivityInputOk returns a tuple with the LocalActivityInput field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowStateExecuteResponse) GetLocalActivityInputOk() (*string, bool) { + if o == nil || IsNil(o.LocalActivityInput) { + return nil, false + } + return o.LocalActivityInput, true +} + +// HasLocalActivityInput returns a boolean if a field has been set. +func (o *WorkflowStateExecuteResponse) HasLocalActivityInput() bool { + if o != nil && !IsNil(o.LocalActivityInput) { + return true + } + + return false +} + +// SetLocalActivityInput gets a reference to the given string and assigns it to the LocalActivityInput field. +func (o *WorkflowStateExecuteResponse) SetLocalActivityInput(v string) { + o.LocalActivityInput = &v +} + // GetStateDecision returns the StateDecision field value if set, zero value otherwise. func (o *WorkflowStateExecuteResponse) GetStateDecision() StateDecision { if o == nil || IsNil(o.StateDecision) { @@ -246,6 +279,9 @@ func (o WorkflowStateExecuteResponse) MarshalJSON() ([]byte, error) { func (o WorkflowStateExecuteResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.LocalActivityInput) { + toSerialize["localActivityInput"] = o.LocalActivityInput + } if !IsNil(o.StateDecision) { toSerialize["stateDecision"] = o.StateDecision } diff --git a/gen/iwfidl/model_workflow_state_wait_until_response.go b/gen/iwfidl/model_workflow_state_wait_until_response.go index 8f37b99..339a12a 100644 --- a/gen/iwfidl/model_workflow_state_wait_until_response.go +++ b/gen/iwfidl/model_workflow_state_wait_until_response.go @@ -19,6 +19,7 @@ var _ MappedNullable = &WorkflowStateWaitUntilResponse{} // WorkflowStateWaitUntilResponse struct for WorkflowStateWaitUntilResponse type WorkflowStateWaitUntilResponse struct { + LocalActivityInput *string `json:"localActivityInput,omitempty"` UpsertSearchAttributes []SearchAttribute `json:"upsertSearchAttributes,omitempty"` UpsertDataObjects []KeyValue `json:"upsertDataObjects,omitempty"` CommandRequest *CommandRequest `json:"commandRequest,omitempty"` @@ -44,6 +45,38 @@ func NewWorkflowStateWaitUntilResponseWithDefaults() *WorkflowStateWaitUntilResp return &this } +// GetLocalActivityInput returns the LocalActivityInput field value if set, zero value otherwise. +func (o *WorkflowStateWaitUntilResponse) GetLocalActivityInput() string { + if o == nil || IsNil(o.LocalActivityInput) { + var ret string + return ret + } + return *o.LocalActivityInput +} + +// GetLocalActivityInputOk returns a tuple with the LocalActivityInput field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowStateWaitUntilResponse) GetLocalActivityInputOk() (*string, bool) { + if o == nil || IsNil(o.LocalActivityInput) { + return nil, false + } + return o.LocalActivityInput, true +} + +// HasLocalActivityInput returns a boolean if a field has been set. +func (o *WorkflowStateWaitUntilResponse) HasLocalActivityInput() bool { + if o != nil && !IsNil(o.LocalActivityInput) { + return true + } + + return false +} + +// SetLocalActivityInput gets a reference to the given string and assigns it to the LocalActivityInput field. +func (o *WorkflowStateWaitUntilResponse) SetLocalActivityInput(v string) { + o.LocalActivityInput = &v +} + // GetUpsertSearchAttributes returns the UpsertSearchAttributes field value if set, zero value otherwise. func (o *WorkflowStateWaitUntilResponse) GetUpsertSearchAttributes() []SearchAttribute { if o == nil || IsNil(o.UpsertSearchAttributes) { @@ -246,6 +279,9 @@ func (o WorkflowStateWaitUntilResponse) MarshalJSON() ([]byte, error) { func (o WorkflowStateWaitUntilResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.LocalActivityInput) { + toSerialize["localActivityInput"] = o.LocalActivityInput + } if !IsNil(o.UpsertSearchAttributes) { toSerialize["upsertSearchAttributes"] = o.UpsertSearchAttributes } diff --git a/gen/iwfidl/model_workflow_wait_for_state_completion_request.go b/gen/iwfidl/model_workflow_wait_for_state_completion_request.go index d123eac..610a12f 100644 --- a/gen/iwfidl/model_workflow_wait_for_state_completion_request.go +++ b/gen/iwfidl/model_workflow_wait_for_state_completion_request.go @@ -19,19 +19,20 @@ var _ MappedNullable = &WorkflowWaitForStateCompletionRequest{} // WorkflowWaitForStateCompletionRequest struct for WorkflowWaitForStateCompletionRequest type WorkflowWaitForStateCompletionRequest struct { - WorkflowId string `json:"workflowId"` - StateExecutionId string `json:"stateExecutionId"` - WaitTimeSeconds *int32 `json:"waitTimeSeconds,omitempty"` + WorkflowId string `json:"workflowId"` + StateExecutionId *string `json:"stateExecutionId,omitempty"` + StateId *string `json:"stateId,omitempty"` + WaitForKey *string `json:"waitForKey,omitempty"` + WaitTimeSeconds *int32 `json:"waitTimeSeconds,omitempty"` } // NewWorkflowWaitForStateCompletionRequest instantiates a new WorkflowWaitForStateCompletionRequest 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 -func NewWorkflowWaitForStateCompletionRequest(workflowId string, stateExecutionId string) *WorkflowWaitForStateCompletionRequest { +func NewWorkflowWaitForStateCompletionRequest(workflowId string) *WorkflowWaitForStateCompletionRequest { this := WorkflowWaitForStateCompletionRequest{} this.WorkflowId = workflowId - this.StateExecutionId = stateExecutionId return &this } @@ -67,28 +68,100 @@ func (o *WorkflowWaitForStateCompletionRequest) SetWorkflowId(v string) { o.WorkflowId = v } -// GetStateExecutionId returns the StateExecutionId field value +// GetStateExecutionId returns the StateExecutionId field value if set, zero value otherwise. func (o *WorkflowWaitForStateCompletionRequest) GetStateExecutionId() string { - if o == nil { + if o == nil || IsNil(o.StateExecutionId) { var ret string return ret } - - return o.StateExecutionId + return *o.StateExecutionId } -// GetStateExecutionIdOk returns a tuple with the StateExecutionId field value +// GetStateExecutionIdOk returns a tuple with the StateExecutionId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *WorkflowWaitForStateCompletionRequest) GetStateExecutionIdOk() (*string, bool) { - if o == nil { + if o == nil || IsNil(o.StateExecutionId) { return nil, false } - return &o.StateExecutionId, true + return o.StateExecutionId, true +} + +// HasStateExecutionId returns a boolean if a field has been set. +func (o *WorkflowWaitForStateCompletionRequest) HasStateExecutionId() bool { + if o != nil && !IsNil(o.StateExecutionId) { + return true + } + + return false } -// SetStateExecutionId sets field value +// SetStateExecutionId gets a reference to the given string and assigns it to the StateExecutionId field. func (o *WorkflowWaitForStateCompletionRequest) SetStateExecutionId(v string) { - o.StateExecutionId = v + o.StateExecutionId = &v +} + +// GetStateId returns the StateId field value if set, zero value otherwise. +func (o *WorkflowWaitForStateCompletionRequest) GetStateId() string { + if o == nil || IsNil(o.StateId) { + var ret string + return ret + } + return *o.StateId +} + +// GetStateIdOk returns a tuple with the StateId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowWaitForStateCompletionRequest) GetStateIdOk() (*string, bool) { + if o == nil || IsNil(o.StateId) { + return nil, false + } + return o.StateId, true +} + +// HasStateId returns a boolean if a field has been set. +func (o *WorkflowWaitForStateCompletionRequest) HasStateId() bool { + if o != nil && !IsNil(o.StateId) { + return true + } + + return false +} + +// SetStateId gets a reference to the given string and assigns it to the StateId field. +func (o *WorkflowWaitForStateCompletionRequest) SetStateId(v string) { + o.StateId = &v +} + +// GetWaitForKey returns the WaitForKey field value if set, zero value otherwise. +func (o *WorkflowWaitForStateCompletionRequest) GetWaitForKey() string { + if o == nil || IsNil(o.WaitForKey) { + var ret string + return ret + } + return *o.WaitForKey +} + +// GetWaitForKeyOk returns a tuple with the WaitForKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WorkflowWaitForStateCompletionRequest) GetWaitForKeyOk() (*string, bool) { + if o == nil || IsNil(o.WaitForKey) { + return nil, false + } + return o.WaitForKey, true +} + +// HasWaitForKey returns a boolean if a field has been set. +func (o *WorkflowWaitForStateCompletionRequest) HasWaitForKey() bool { + if o != nil && !IsNil(o.WaitForKey) { + return true + } + + return false +} + +// SetWaitForKey gets a reference to the given string and assigns it to the WaitForKey field. +func (o *WorkflowWaitForStateCompletionRequest) SetWaitForKey(v string) { + o.WaitForKey = &v } // GetWaitTimeSeconds returns the WaitTimeSeconds field value if set, zero value otherwise. @@ -134,7 +207,15 @@ func (o WorkflowWaitForStateCompletionRequest) MarshalJSON() ([]byte, error) { func (o WorkflowWaitForStateCompletionRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["workflowId"] = o.WorkflowId - toSerialize["stateExecutionId"] = o.StateExecutionId + if !IsNil(o.StateExecutionId) { + toSerialize["stateExecutionId"] = o.StateExecutionId + } + if !IsNil(o.StateId) { + toSerialize["stateId"] = o.StateId + } + if !IsNil(o.WaitForKey) { + toSerialize["waitForKey"] = o.WaitForKey + } if !IsNil(o.WaitTimeSeconds) { toSerialize["waitTimeSeconds"] = o.WaitTimeSeconds } diff --git a/integ/abnormal_exit_test.go b/integ/abnormal_exit_test.go new file mode 100644 index 0000000..d65885a --- /dev/null +++ b/integ/abnormal_exit_test.go @@ -0,0 +1,41 @@ +package integ + +import ( + "context" + "strconv" + "strings" + "testing" + "time" + + "github.com/indeedeng/iwf-golang-sdk/gen/iwfidl" + "github.com/indeedeng/iwf-golang-sdk/iwf" + "github.com/indeedeng/iwf-golang-sdk/iwf/ptr" + "github.com/stretchr/testify/assert" +) + +func TestAbnormalExitWorkflow(t *testing.T) { + wfId := "TestAbnormalExitWorkflow" + strconv.Itoa(int(time.Now().Unix())) + + opt := iwf.WorkflowOptions{ + WorkflowIdReusePolicy: ptr.Any(iwfidl.ALLOW_IF_PREVIOUS_EXITS_ABNORMALLY), + } + + runId, err := client.StartWorkflow(context.Background(), &abnormalExitWorkflow{}, wfId, 10, nil, &opt) + assert.Nil(t, err) + assert.NotEmpty(t, runId) + + err = client.GetSimpleWorkflowResult(context.Background(), wfId, "", nil) + wErr, ok := iwf.AsWorkflowUncompletedError(err) + assert.True(t, ok) + assert.True(t, strings.Contains(*wErr.ErrorMessage, "abnormal exit state")) + assert.Equal(t, iwf.NewWorkflowUncompletedError(runId, iwfidl.FAILED, ptr.Any(iwfidl.STATE_API_FAIL_MAX_OUT_RETRY_ERROR_TYPE), wErr.ErrorMessage, wErr.StateResults, iwf.GetDefaultObjectEncoder()), wErr) + + // Starting a workflow with the same ID should be allowed since the previous failed abnormally + _, err = client.StartWorkflow(context.Background(), &basicWorkflow{}, wfId, 10, 1, &opt) + assert.False(t, iwf.IsWorkflowAlreadyStartedError(err)) + + var output int + err = client.GetSimpleWorkflowResult(context.Background(), wfId, "", &output) + assert.Nil(t, err) + assert.Equal(t, 3, output) +} diff --git a/integ/abnormal_exit_workflow.go b/integ/abnormal_exit_workflow.go new file mode 100644 index 0000000..03097a9 --- /dev/null +++ b/integ/abnormal_exit_workflow.go @@ -0,0 +1,15 @@ +package integ + +import "github.com/indeedeng/iwf-golang-sdk/iwf" + +type abnormalExitWorkflow struct { + iwf.DefaultWorkflowType + iwf.EmptyPersistenceSchema + iwf.EmptyCommunicationSchema +} + +func (b abnormalExitWorkflow) GetWorkflowStates() []iwf.StateDef { + return []iwf.StateDef{ + iwf.StartingStateDef(&abnormalExitWorkflowState1{}), + } +} diff --git a/integ/abnormal_exit_workflow_state1.go b/integ/abnormal_exit_workflow_state1.go new file mode 100644 index 0000000..ae1651e --- /dev/null +++ b/integ/abnormal_exit_workflow_state1.go @@ -0,0 +1,26 @@ +package integ + +import ( + "errors" + "github.com/indeedeng/iwf-golang-sdk/gen/iwfidl" + "github.com/indeedeng/iwf-golang-sdk/iwf" +) + +type abnormalExitWorkflowState1 struct { + iwf.WorkflowStateDefaultsNoWaitUntil +} + +func (b abnormalExitWorkflowState1) Execute(ctx iwf.WorkflowContext, input iwf.Object, commandResults iwf.CommandResults, persistence iwf.Persistence, communication iwf.Communication) (*iwf.StateDecision, error) { + return nil, errors.New("abnormal exit state") +} + +func (b abnormalExitWorkflowState1) GetStateOptions() *iwf.StateOptions { + options := &iwf.StateOptions{ + ExecuteApiRetryPolicy: &iwfidl.RetryPolicy{ + InitialIntervalSeconds: iwfidl.PtrInt32(1), + MaximumAttempts: iwfidl.PtrInt32(1), + }, + } + + return options +} diff --git a/integ/init.go b/integ/init.go index cc82382..2e0fa6d 100644 --- a/integ/init.go +++ b/integ/init.go @@ -10,6 +10,7 @@ var workerService = iwf.NewWorkerService(registry, nil) func init() { err := registry.AddWorkflows( + &abnormalExitWorkflow{}, &basicWorkflow{}, &proceedOnStateStartFailWorkflow{}, &timerWorkflow{}, diff --git a/integ/interstate_workflow_state1.go b/integ/interstate_workflow_state1.go index 08c634c..753c3c5 100644 --- a/integ/interstate_workflow_state1.go +++ b/integ/interstate_workflow_state1.go @@ -22,6 +22,7 @@ func (b interStateWorkflowState1) Execute(ctx iwf.WorkflowContext, input iwf.Obj cmd1 := commandResults.GetInternalChannelCommandResultById("id1") cmd2 := commandResults.GetInternalChannelCommandResultById("id2") cmd2.Value.Get(&i) + if cmd1.Status == iwfidl.WAITING && i == 2 { return iwf.GracefulCompletingWorkflow, nil } diff --git a/integ/signal_workflow_state2.go b/integ/signal_workflow_state2.go index ca9ca89..d7e6aa8 100644 --- a/integ/signal_workflow_state2.go +++ b/integ/signal_workflow_state2.go @@ -27,7 +27,7 @@ func (b signalWorkflowState2) WaitUntil(ctx iwf.WorkflowContext, input iwf.Objec }, iwf.NewSignalCommand(signalCommandId, testChannelName1), iwf.NewSignalCommand(signalCommandId, testChannelName2), - iwf.NewTimerCommand(timerCommandId, time.Now().Add(time.Hour*24)), + iwf.NewTimerCommandByDuration(timerCommandId, 24*time.Hour), ), nil } diff --git a/integ/timer_workflow_state1.go b/integ/timer_workflow_state1.go index 4d8ed45..ac9c2c5 100644 --- a/integ/timer_workflow_state1.go +++ b/integ/timer_workflow_state1.go @@ -14,7 +14,7 @@ func (b timerWorkflowState1) WaitUntil(ctx iwf.WorkflowContext, input iwf.Object var i int input.Get(&i) return iwf.AllCommandsCompletedRequest( - iwf.NewTimerCommand("", time.Now().Add(time.Duration(i)*time.Second)), + iwf.NewTimerCommandByDuration("", time.Duration(i)*time.Second), ), nil } diff --git a/iwf-idl b/iwf-idl index d291774..fdd0d8e 160000 --- a/iwf-idl +++ b/iwf-idl @@ -1 +1 @@ -Subproject commit d291774e44cebbfee85240418eecefc0481be0f7 +Subproject commit fdd0d8eae1326489e567bf0073263a3f14bad04e diff --git a/iwf/command.go b/iwf/command.go index 5fdd645..27eeae6 100644 --- a/iwf/command.go +++ b/iwf/command.go @@ -14,7 +14,7 @@ type ( } TimerCommand struct { - FiringUnixTimestampSeconds int64 + DurationSeconds int64 } SignalCommand struct { @@ -52,12 +52,28 @@ func NewInternalChannelCommand(commandId, channelName string) Command { } } +// Deprecated: Use NewTimerCommandByDuration instead. func NewTimerCommand(commandId string, firingTime time.Time) Command { + durationSeconds := int64(time.Until(firingTime).Seconds()) + if durationSeconds < 0 { + panic("Firing time is set in the past") + } + + return Command{ + CommandId: commandId, + CommandType: CommandTypeTimer, + TimerCommand: &TimerCommand{ + DurationSeconds: durationSeconds, + }, + } +} + +func NewTimerCommandByDuration(commandId string, durationSeconds time.Duration) Command { return Command{ CommandId: commandId, CommandType: CommandTypeTimer, TimerCommand: &TimerCommand{ - FiringUnixTimestampSeconds: firingTime.Unix(), + DurationSeconds: int64(durationSeconds.Seconds()), }, } } diff --git a/iwf/internal_mapper.go b/iwf/internal_mapper.go index 07f8184..31a48f6 100644 --- a/iwf/internal_mapper.go +++ b/iwf/internal_mapper.go @@ -52,23 +52,24 @@ func toIdlCommandRequest(commandRequest *CommandRequest) (*iwfidl.CommandRequest var signalCmds []iwfidl.SignalCommand var interStateCmds []iwfidl.InterStateChannelCommand for _, t := range commandRequest.Commands { + commandId := t.CommandId if t.CommandType == CommandTypeTimer { timerCmd := iwfidl.TimerCommand{ - CommandId: t.CommandId, - FiringUnixTimestampSeconds: t.TimerCommand.FiringUnixTimestampSeconds, + CommandId: &commandId, + DurationSeconds: t.TimerCommand.DurationSeconds, } timerCmds = append(timerCmds, timerCmd) } if t.CommandType == CommandTypeSignalChannel { signalCmd := iwfidl.SignalCommand{ - CommandId: t.CommandId, + CommandId: &commandId, SignalChannelName: t.SignalCommand.ChannelName, } signalCmds = append(signalCmds, signalCmd) } if t.CommandType == CommandTypeInternalChannel { interstateChannelCmd := iwfidl.InterStateChannelCommand{ - CommandId: t.CommandId, + CommandId: &commandId, ChannelName: t.InternalChannelCommand.ChannelName, } interStateCmds = append(interStateCmds, interstateChannelCmd) diff --git a/iwf/unregistered_client_impl.go b/iwf/unregistered_client_impl.go index 9bb97bd..a514f4e 100644 --- a/iwf/unregistered_client_impl.go +++ b/iwf/unregistered_client_impl.go @@ -47,7 +47,7 @@ func (u *unregisteredClientImpl) StartWorkflow(ctx context.Context, workflowType } } - req := u.apiClient.DefaultAPI.ApiV1WorkflowStartPost(ctx) + req := u.apiClient.DefaultApi.ApiV1WorkflowStartPost(ctx) resp, httpResp, err := req.WorkflowStartRequest(iwfidl.WorkflowStartRequest{ WorkflowId: workflowId, IwfWorkflowType: workflowType, @@ -69,7 +69,7 @@ func (u *unregisteredClientImpl) SignalWorkflow(ctx context.Context, workflowId, if err != nil { return err } - req := u.apiClient.DefaultAPI.ApiV1WorkflowSignalPost(ctx) + req := u.apiClient.DefaultApi.ApiV1WorkflowSignalPost(ctx) httpResp, err := req.WorkflowSignalRequest(iwfidl.WorkflowSignalRequest{ WorkflowId: workflowId, WorkflowRunId: &workflowRunId, @@ -91,7 +91,7 @@ func (u *unregisteredClientImpl) GetAllWorkflowDataAttributes(ctx context.Contex } func (u *unregisteredClientImpl) doGetWorkflowDataObjects(ctx context.Context, workflowId, workflowRunId string, keys []string) (map[string]Object, error) { - reqPost := u.apiClient.DefaultAPI.ApiV1WorkflowDataobjectsGetPost(ctx) + reqPost := u.apiClient.DefaultApi.ApiV1WorkflowDataobjectsGetPost(ctx) resp, httpResp, err := reqPost.WorkflowGetDataObjectsRequest(iwfidl.WorkflowGetDataObjectsRequest{ WorkflowId: workflowId, WorkflowRunId: iwfidl.PtrString(workflowRunId), @@ -115,7 +115,7 @@ func (u *unregisteredClientImpl) GetWorkflowSearchAttributes(ctx context.Context } func (u *unregisteredClientImpl) doGetWorkflowSearchAttributes(ctx context.Context, workflowId, workflowRunId string, keys []iwfidl.SearchAttributeKeyAndType) (map[string]iwfidl.SearchAttribute, error) { - reqPost := u.apiClient.DefaultAPI.ApiV1WorkflowSearchattributesGetPost(ctx) + reqPost := u.apiClient.DefaultApi.ApiV1WorkflowSearchattributesGetPost(ctx) resp, httpResp, err := reqPost.WorkflowGetSearchAttributesRequest(iwfidl.WorkflowGetSearchAttributesRequest{ WorkflowId: workflowId, WorkflowRunId: iwfidl.PtrString(workflowRunId), @@ -132,7 +132,7 @@ func (u *unregisteredClientImpl) doGetWorkflowSearchAttributes(ctx context.Conte } func (u *unregisteredClientImpl) StopWorkflow(ctx context.Context, workflowId, workflowRunId string, options *WorkflowStopOptions) error { - reqPost := u.apiClient.DefaultAPI.ApiV1WorkflowStopPost(ctx) + reqPost := u.apiClient.DefaultApi.ApiV1WorkflowStopPost(ctx) req := &iwfidl.WorkflowStopRequest{ WorkflowId: workflowId, WorkflowRunId: &workflowRunId, @@ -146,7 +146,7 @@ func (u *unregisteredClientImpl) StopWorkflow(ctx context.Context, workflowId, w } func (u *unregisteredClientImpl) GetSimpleWorkflowResult(ctx context.Context, workflowId, workflowRunId string, resultPtr interface{}) error { - req := u.apiClient.DefaultAPI.ApiV1WorkflowGetWithWaitPost(ctx) + req := u.apiClient.DefaultApi.ApiV1WorkflowGetWithWaitPost(ctx) resp, httpResp, err := req.WorkflowGetRequest(iwfidl.WorkflowGetRequest{ WorkflowId: workflowId, WorkflowRunId: &workflowRunId, @@ -176,7 +176,7 @@ func (u *unregisteredClientImpl) GetSimpleWorkflowResult(ctx context.Context, wo } func (u *unregisteredClientImpl) GetComplexWorkflowResults(ctx context.Context, workflowId, workflowRunId string) ([]iwfidl.StateCompletionOutput, error) { - req := u.apiClient.DefaultAPI.ApiV1WorkflowGetWithWaitPost(ctx) + req := u.apiClient.DefaultApi.ApiV1WorkflowGetWithWaitPost(ctx) resp, httpResp, err := req.WorkflowGetRequest(iwfidl.WorkflowGetRequest{ WorkflowId: workflowId, WorkflowRunId: &workflowRunId, @@ -212,7 +212,7 @@ func (u *unregisteredClientImpl) ResetWorkflow(ctx context.Context, workflowId, req.StateId = options.StateId req.StateExecutionId = options.StateExecutionId } - reqPost := u.apiClient.DefaultAPI.ApiV1WorkflowResetPost(ctx) + reqPost := u.apiClient.DefaultApi.ApiV1WorkflowResetPost(ctx) resp, httpResp, err := reqPost.WorkflowResetRequest(req).Execute() if err := u.processError(err, httpResp); err != nil { return "", err @@ -221,7 +221,7 @@ func (u *unregisteredClientImpl) ResetWorkflow(ctx context.Context, workflowId, } func (u *unregisteredClientImpl) DescribeWorkflow(ctx context.Context, workflowId, workflowRunId string) (*WorkflowInfo, error) { - reqPost := u.apiClient.DefaultAPI.ApiV1WorkflowGetPost(ctx) + reqPost := u.apiClient.DefaultApi.ApiV1WorkflowGetPost(ctx) resp, httpResp, err := reqPost.WorkflowGetRequest(iwfidl.WorkflowGetRequest{ WorkflowId: workflowId, WorkflowRunId: iwfidl.PtrString(workflowRunId), @@ -237,7 +237,7 @@ func (u *unregisteredClientImpl) DescribeWorkflow(ctx context.Context, workflowI } func (u *unregisteredClientImpl) SearchWorkflow(ctx context.Context, request iwfidl.WorkflowSearchRequest) (*iwfidl.WorkflowSearchResponse, error) { - reqPost := u.apiClient.DefaultAPI.ApiV1WorkflowSearchPost(ctx) + reqPost := u.apiClient.DefaultApi.ApiV1WorkflowSearchPost(ctx) resp, httpResp, err := reqPost.WorkflowSearchRequest(request).Execute() if err := u.processError(err, httpResp); err != nil { return nil, err @@ -257,7 +257,7 @@ func (u *unregisteredClientImpl) SkipTimerByCommandIndex(ctx context.Context, wo } func (u *unregisteredClientImpl) UpdateWorkflowConfig(ctx context.Context, workflowId, workflowRunId string, config iwfidl.WorkflowConfig) error { - req := u.apiClient.DefaultAPI.ApiV1WorkflowConfigUpdatePost(ctx) + req := u.apiClient.DefaultApi.ApiV1WorkflowConfigUpdatePost(ctx) httpResp, err := req.WorkflowConfigUpdateRequest(iwfidl.WorkflowConfigUpdateRequest{ WorkflowId: workflowId, WorkflowRunId: &workflowRunId, @@ -267,7 +267,7 @@ func (u *unregisteredClientImpl) UpdateWorkflowConfig(ctx context.Context, workf } func (u *unregisteredClientImpl) InvokeRPCByName(ctx context.Context, workflowId, workflowRunId, rpcName string, input interface{}, outputPtr interface{}, rpcOptions *RPCOptions) error { - req := u.apiClient.DefaultAPI.ApiV1WorkflowRpcPost(ctx) + req := u.apiClient.DefaultApi.ApiV1WorkflowRpcPost(ctx) encodedInput, err := u.options.ObjectEncoder.Encode(input) if err != nil { return err @@ -295,7 +295,7 @@ func (u *unregisteredClientImpl) InvokeRPCByName(ctx context.Context, workflowId func (u *unregisteredClientImpl) doSkipTimer(ctx context.Context, workflowId, workflowRunId, workflowStateId string, stateExecutionNumber int, timerCommandId string, timerCommandIndex int) error { workflowStateExecutionId := fmt.Sprintf("%v-%v", workflowStateId, stateExecutionNumber) - reqPost := u.apiClient.DefaultAPI.ApiV1WorkflowTimerSkipPost(ctx) + reqPost := u.apiClient.DefaultApi.ApiV1WorkflowTimerSkipPost(ctx) req := iwfidl.WorkflowSkipTimerRequest{ WorkflowId: workflowId, WorkflowRunId: iwfidl.PtrString(workflowRunId), diff --git a/openapi-generator-cli-6.6.0.jar b/openapi-generator-cli-6.6.0.jar new file mode 100644 index 0000000..a7b8736 Binary files /dev/null and b/openapi-generator-cli-6.6.0.jar differ