chore(tasks): support looking up tasks by script id (#437)
This commit is contained in:
@ -701,6 +701,7 @@ type ApiGetTasksRequest struct {
|
||||
offset *int32
|
||||
sortBy *string
|
||||
type_ *string
|
||||
scriptID *string
|
||||
}
|
||||
|
||||
func (r ApiGetTasksRequest) ZapTraceSpan(zapTraceSpan string) ApiGetTasksRequest {
|
||||
@ -791,6 +792,14 @@ func (r ApiGetTasksRequest) GetType_() *string {
|
||||
return r.type_
|
||||
}
|
||||
|
||||
func (r ApiGetTasksRequest) ScriptID(scriptID string) ApiGetTasksRequest {
|
||||
r.scriptID = &scriptID
|
||||
return r
|
||||
}
|
||||
func (r ApiGetTasksRequest) GetScriptID() *string {
|
||||
return r.scriptID
|
||||
}
|
||||
|
||||
func (r ApiGetTasksRequest) Execute() (Tasks, error) {
|
||||
return r.ApiService.GetTasksExecute(r)
|
||||
}
|
||||
@ -882,6 +891,9 @@ func (a *TasksApiService) GetTasksExecuteWithHttpInfo(r ApiGetTasksRequest) (Tas
|
||||
if r.type_ != nil {
|
||||
localVarQueryParams.Add("type", parameterToString(*r.type_, ""))
|
||||
}
|
||||
if r.scriptID != nil {
|
||||
localVarQueryParams.Add("scriptID", parameterToString(*r.scriptID, ""))
|
||||
}
|
||||
// to determine the Content-Type header
|
||||
localVarHTTPContentTypes := []string{}
|
||||
|
||||
|
Submodule api/contract/openapi updated: 0df6358a78...226874df68
Reference in New Issue
Block a user