mirror of
https://github.com/gfleury/go-bitbucket-v1.git
synced 2025-04-05 09:18:07 -05:00
Merge pull request #1 from sanketjpatel/master
Add pagination options for GetProjects
This commit is contained in:
commit
d0ac21d9df
@ -5287,12 +5287,26 @@ func (a *DefaultApiService) GetProjects(localVarOptionals map[string]interface{}
|
|||||||
return nil, err
|
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 {
|
if localVarTempParam, localVarOk := localVarOptionals["name"].(string); localVarOk {
|
||||||
localVarQueryParams.Add("name", parameterToString(localVarTempParam, ""))
|
localVarQueryParams.Add("name", parameterToString(localVarTempParam, ""))
|
||||||
}
|
}
|
||||||
if localVarTempParam, localVarOk := localVarOptionals["permission"].(string); localVarOk {
|
if localVarTempParam, localVarOk := localVarOptionals["permission"].(string); localVarOk {
|
||||||
localVarQueryParams.Add("permission", parameterToString(localVarTempParam, ""))
|
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
|
// to determine the Content-Type header
|
||||||
localVarHTTPContentTypes := []string{}
|
localVarHTTPContentTypes := []string{}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user