From dcace6cbe77bb79ba90b7ede71ba6147904849da Mon Sep 17 00:00:00 2001 From: Sanket Patel Date: Fri, 1 Jun 2018 10:59:14 -0500 Subject: [PATCH] Add pagination options for GetProjects --- default_api.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/default_api.go b/default_api.go index 8385036..e376db8 100644 --- a/default_api.go +++ b/default_api.go @@ -5287,12 +5287,26 @@ func (a *DefaultApiService) GetProjects(localVarOptionals map[string]interface{} return nil, err } + if err := typeCheckParameter(localVarOptionals["limit"], "int", "limit"); err != nil { + return nil, err + } + + if err := typeCheckParameter(localVarOptionals["start"], "int", "start"); err != nil { + return nil, err + } + if localVarTempParam, localVarOk := localVarOptionals["name"].(string); localVarOk { localVarQueryParams.Add("name", parameterToString(localVarTempParam, "")) } if localVarTempParam, localVarOk := localVarOptionals["permission"].(string); localVarOk { localVarQueryParams.Add("permission", parameterToString(localVarTempParam, "")) } + if localVarTempParam, localVarOk := localVarOptionals["limit"].(int); localVarOk { + localVarQueryParams.Add("limit", parameterToString(localVarTempParam, "")) + } + if localVarTempParam, localVarOk := localVarOptionals["start"].(int); localVarOk { + localVarQueryParams.Add("start", parameterToString(localVarTempParam, "")) + } // to determine the Content-Type header localVarHTTPContentTypes := []string{}