diff --git a/Makefile b/Makefile index 3f22dd50..91d5a822 100644 --- a/Makefile +++ b/Makefile @@ -140,7 +140,7 @@ iwf-server: 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.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.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 bins: $(BINS) diff --git a/gen/iwfidl/api_default.go b/gen/iwfidl/api_default.go index 1f6bbf8c..c4684bf9 100644 --- a/gen/iwfidl/api_default.go +++ b/gen/iwfidl/api_default.go @@ -254,8 +254,8 @@ func (r ApiApiV1WorkflowConfigUpdatePostRequest) Execute() (*http.Response, erro /* 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 + @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 { return ApiApiV1WorkflowConfigUpdatePostRequest{ @@ -358,8 +358,8 @@ func (r ApiApiV1WorkflowDataobjectsGetPostRequest) Execute() (*WorkflowGetDataOb /* 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 + @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 { return ApiApiV1WorkflowDataobjectsGetPostRequest{ @@ -369,7 +369,8 @@ func (a *DefaultApiService) ApiV1WorkflowDataobjectsGetPost(ctx context.Context) } // Execute executes the request -// @return WorkflowGetDataObjectsResponse +// +// @return WorkflowGetDataObjectsResponse func (a *DefaultApiService) ApiV1WorkflowDataobjectsGetPostExecute(r ApiApiV1WorkflowDataobjectsGetPostRequest) (*WorkflowGetDataObjectsResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -473,8 +474,8 @@ func (r ApiApiV1WorkflowGetPostRequest) Execute() (*WorkflowGetResponse, *http.R /* ApiV1WorkflowGetPost get a workflow's status and results(if completed & requested) - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiApiV1WorkflowGetPostRequest + @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 { return ApiApiV1WorkflowGetPostRequest{ @@ -484,7 +485,8 @@ func (a *DefaultApiService) ApiV1WorkflowGetPost(ctx context.Context) ApiApiV1Wo } // Execute executes the request -// @return WorkflowGetResponse +// +// @return WorkflowGetResponse func (a *DefaultApiService) ApiV1WorkflowGetPostExecute(r ApiApiV1WorkflowGetPostRequest) (*WorkflowGetResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -588,8 +590,8 @@ func (r ApiApiV1WorkflowGetWithWaitPostRequest) Execute() (*WorkflowGetResponse, /* ApiV1WorkflowGetWithWaitPost get a workflow's status and results(if completed & requested), wait if the workflow is still running - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiApiV1WorkflowGetWithWaitPostRequest + @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 { return ApiApiV1WorkflowGetWithWaitPostRequest{ @@ -599,7 +601,8 @@ func (a *DefaultApiService) ApiV1WorkflowGetWithWaitPost(ctx context.Context) Ap } // Execute executes the request -// @return WorkflowGetResponse +// +// @return WorkflowGetResponse func (a *DefaultApiService) ApiV1WorkflowGetWithWaitPostExecute(r ApiApiV1WorkflowGetWithWaitPostRequest) (*WorkflowGetResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -714,8 +717,8 @@ func (r ApiApiV1WorkflowInternalDumpPostRequest) Execute() (*WorkflowDumpRespons /* 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 + @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 { return ApiApiV1WorkflowInternalDumpPostRequest{ @@ -725,7 +728,8 @@ func (a *DefaultApiService) ApiV1WorkflowInternalDumpPost(ctx context.Context) A } // Execute executes the request -// @return WorkflowDumpResponse +// +// @return WorkflowDumpResponse func (a *DefaultApiService) ApiV1WorkflowInternalDumpPostExecute(r ApiApiV1WorkflowInternalDumpPostRequest) (*WorkflowDumpResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -829,8 +833,8 @@ func (r ApiApiV1WorkflowResetPostRequest) Execute() (*WorkflowResetResponse, *ht /* ApiV1WorkflowResetPost reset a workflow - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiApiV1WorkflowResetPostRequest + @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 { return ApiApiV1WorkflowResetPostRequest{ @@ -840,7 +844,8 @@ func (a *DefaultApiService) ApiV1WorkflowResetPost(ctx context.Context) ApiApiV1 } // Execute executes the request -// @return WorkflowResetResponse +// +// @return WorkflowResetResponse func (a *DefaultApiService) ApiV1WorkflowResetPostExecute(r ApiApiV1WorkflowResetPostRequest) (*WorkflowResetResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -944,8 +949,8 @@ func (r ApiApiV1WorkflowRpcPostRequest) Execute() (*WorkflowRpcResponse, *http.R /* 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 + @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 { return ApiApiV1WorkflowRpcPostRequest{ @@ -955,7 +960,8 @@ func (a *DefaultApiService) ApiV1WorkflowRpcPost(ctx context.Context) ApiApiV1Wo } // Execute executes the request -// @return WorkflowRpcResponse +// +// @return WorkflowRpcResponse func (a *DefaultApiService) ApiV1WorkflowRpcPostExecute(r ApiApiV1WorkflowRpcPostRequest) (*WorkflowRpcResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -1081,8 +1087,8 @@ func (r ApiApiV1WorkflowSearchPostRequest) Execute() (*WorkflowSearchResponse, * /* 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 + @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 { return ApiApiV1WorkflowSearchPostRequest{ @@ -1092,7 +1098,8 @@ func (a *DefaultApiService) ApiV1WorkflowSearchPost(ctx context.Context) ApiApiV } // Execute executes the request -// @return WorkflowSearchResponse +// +// @return WorkflowSearchResponse func (a *DefaultApiService) ApiV1WorkflowSearchPostExecute(r ApiApiV1WorkflowSearchPostRequest) (*WorkflowSearchResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -1196,8 +1203,8 @@ func (r ApiApiV1WorkflowSearchattributesGetPostRequest) Execute() (*WorkflowGetS /* 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 + @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 { return ApiApiV1WorkflowSearchattributesGetPostRequest{ @@ -1207,7 +1214,8 @@ func (a *DefaultApiService) ApiV1WorkflowSearchattributesGetPost(ctx context.Con } // Execute executes the request -// @return WorkflowGetSearchAttributesResponse +// +// @return WorkflowGetSearchAttributesResponse func (a *DefaultApiService) ApiV1WorkflowSearchattributesGetPostExecute(r ApiApiV1WorkflowSearchattributesGetPostRequest) (*WorkflowGetSearchAttributesResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -1311,8 +1319,8 @@ func (r ApiApiV1WorkflowSignalPostRequest) Execute() (*http.Response, error) { /* ApiV1WorkflowSignalPost signal a workflow - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiApiV1WorkflowSignalPostRequest + @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 { return ApiApiV1WorkflowSignalPostRequest{ @@ -1415,8 +1423,8 @@ func (r ApiApiV1WorkflowStartPostRequest) Execute() (*WorkflowStartResponse, *ht /* ApiV1WorkflowStartPost start a workflow - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiApiV1WorkflowStartPostRequest + @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 { return ApiApiV1WorkflowStartPostRequest{ @@ -1426,7 +1434,8 @@ func (a *DefaultApiService) ApiV1WorkflowStartPost(ctx context.Context) ApiApiV1 } // Execute executes the request -// @return WorkflowStartResponse +// +// @return WorkflowStartResponse func (a *DefaultApiService) ApiV1WorkflowStartPostExecute(r ApiApiV1WorkflowStartPostRequest) (*WorkflowStartResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -1530,8 +1539,8 @@ func (r ApiApiV1WorkflowStateDecidePostRequest) Execute() (*WorkflowStateDecideR /* ApiV1WorkflowStateDecidePost for invoking WorkflowState.decide API - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiApiV1WorkflowStateDecidePostRequest + @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 { return ApiApiV1WorkflowStateDecidePostRequest{ @@ -1541,7 +1550,8 @@ func (a *DefaultApiService) ApiV1WorkflowStateDecidePost(ctx context.Context) Ap } // Execute executes the request -// @return WorkflowStateDecideResponse +// +// @return WorkflowStateDecideResponse func (a *DefaultApiService) ApiV1WorkflowStateDecidePostExecute(r ApiApiV1WorkflowStateDecidePostRequest) (*WorkflowStateDecideResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -1645,8 +1655,8 @@ func (r ApiApiV1WorkflowStateStartPostRequest) Execute() (*WorkflowStateStartRes /* ApiV1WorkflowStateStartPost for invoking WorkflowState.start API - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiApiV1WorkflowStateStartPostRequest + @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 { return ApiApiV1WorkflowStateStartPostRequest{ @@ -1656,7 +1666,8 @@ func (a *DefaultApiService) ApiV1WorkflowStateStartPost(ctx context.Context) Api } // Execute executes the request -// @return WorkflowStateStartResponse +// +// @return WorkflowStateStartResponse func (a *DefaultApiService) ApiV1WorkflowStateStartPostExecute(r ApiApiV1WorkflowStateStartPostRequest) (*WorkflowStateStartResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -1760,8 +1771,8 @@ func (r ApiApiV1WorkflowStopPostRequest) Execute() (*http.Response, error) { /* ApiV1WorkflowStopPost stop a workflow - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiApiV1WorkflowStopPostRequest + @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 { return ApiApiV1WorkflowStopPostRequest{ @@ -1864,8 +1875,8 @@ func (r ApiApiV1WorkflowTimerSkipPostRequest) Execute() (*http.Response, error) /* 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 + @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 { return ApiApiV1WorkflowTimerSkipPostRequest{ @@ -1968,8 +1979,8 @@ func (r ApiApiV1WorkflowWaitForStateCompletionPostRequest) Execute() (*WorkflowW /* ApiV1WorkflowWaitForStateCompletionPost Method for ApiV1WorkflowWaitForStateCompletionPost - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiApiV1WorkflowWaitForStateCompletionPostRequest + @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 { return ApiApiV1WorkflowWaitForStateCompletionPostRequest{ @@ -1979,7 +1990,8 @@ func (a *DefaultApiService) ApiV1WorkflowWaitForStateCompletionPost(ctx context. } // Execute executes the request -// @return WorkflowWaitForStateCompletionResponse +// +// @return WorkflowWaitForStateCompletionResponse func (a *DefaultApiService) ApiV1WorkflowWaitForStateCompletionPostExecute(r ApiApiV1WorkflowWaitForStateCompletionPostRequest) (*WorkflowWaitForStateCompletionResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -2094,8 +2106,8 @@ func (r ApiApiV1WorkflowWorkerRpcPostRequest) Execute() (*WorkflowWorkerRpcRespo /* 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 + @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 { return ApiApiV1WorkflowWorkerRpcPostRequest{ @@ -2105,7 +2117,8 @@ func (a *DefaultApiService) ApiV1WorkflowWorkerRpcPost(ctx context.Context) ApiA } // Execute executes the request -// @return WorkflowWorkerRpcResponse +// +// @return WorkflowWorkerRpcResponse func (a *DefaultApiService) ApiV1WorkflowWorkerRpcPostExecute(r ApiApiV1WorkflowWorkerRpcPostRequest) (*WorkflowWorkerRpcResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost @@ -2203,8 +2216,8 @@ func (r ApiInfoHealthcheckGetRequest) Execute() (*HealthInfo, *http.Response, er /* 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 + @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 { return ApiInfoHealthcheckGetRequest{ @@ -2214,7 +2227,8 @@ func (a *DefaultApiService) InfoHealthcheckGet(ctx context.Context) ApiInfoHealt } // Execute executes the request -// @return HealthInfo +// +// @return HealthInfo func (a *DefaultApiService) InfoHealthcheckGetExecute(r ApiInfoHealthcheckGetRequest) (*HealthInfo, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet diff --git a/openapi-generator-cli-6.6.0.jar b/openapi-generator-cli-6.6.0.jar new file mode 100644 index 00000000..a7b8736b Binary files /dev/null and b/openapi-generator-cli-6.6.0.jar differ