Add pagination options for GetRepositories

This commit is contained in:
Sanket Patel 2018-06-01 12:14:04 -05:00
parent d36ae8e49f
commit 3c2c7e7274

View File

@ -5844,6 +5844,10 @@ Retrieve repositories from the project corresponding to the supplied <strong&
@param projectKey the parent project key
@return */
func (a *DefaultApiService) GetRepositories(projectKey string) (*APIResponse, error) {
return a.GetRepositoriesWithOptions(projectKey, make(map[string]interface{}))
}
func (a *DefaultApiService) GetRepositoriesWithOptions(projectKey string, localVarOptionals map[string]interface{}) (*APIResponse, error) {
var (
localVarHTTPMethod = strings.ToUpper("Get")
localVarPostBody interface{}
@ -5859,6 +5863,20 @@ func (a *DefaultApiService) GetRepositories(projectKey string) (*APIResponse, er
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
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["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{}