mirror of
https://github.com/gfleury/go-bitbucket-v1.git
synced 2025-04-05 01:10:12 -05:00
Merge pull request #81 from appleboy/feat
chore(FindUsersInGroup): add limit and start parameters
This commit is contained in:
commit
4c3d539fc7
@ -1086,7 +1086,6 @@ Create a new repository. Requires an existing project in which this repository w
|
|||||||
@return
|
@return
|
||||||
*/
|
*/
|
||||||
func (a *DefaultApiService) CreateRepository(projectKey string, repository Repository) (*APIResponse, error) {
|
func (a *DefaultApiService) CreateRepository(projectKey string, repository Repository) (*APIResponse, error) {
|
||||||
|
|
||||||
localVarPostBody, err := json.Marshal(repository)
|
localVarPostBody, err := json.Marshal(repository)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@ -2814,6 +2813,12 @@ func (a *DefaultApiService) FindUsersInGroup(localVarOptionals map[string]interf
|
|||||||
if err := typeCheckParameter(localVarOptionals["filter"], "string", "filter"); err != nil {
|
if err := typeCheckParameter(localVarOptionals["filter"], "string", "filter"); err != nil {
|
||||||
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["context"].(string); localVarOk {
|
if localVarTempParam, localVarOk := localVarOptionals["context"].(string); localVarOk {
|
||||||
localVarQueryParams.Add("context", parameterToString(localVarTempParam, ""))
|
localVarQueryParams.Add("context", parameterToString(localVarTempParam, ""))
|
||||||
@ -2821,6 +2826,13 @@ func (a *DefaultApiService) FindUsersInGroup(localVarOptionals map[string]interf
|
|||||||
if localVarTempParam, localVarOk := localVarOptionals["filter"].(string); localVarOk {
|
if localVarTempParam, localVarOk := localVarOptionals["filter"].(string); localVarOk {
|
||||||
localVarQueryParams.Add("filter", parameterToString(localVarTempParam, ""))
|
localVarQueryParams.Add("filter", 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{"application/json"}
|
localVarHTTPContentTypes := []string{"application/json"}
|
||||||
|
|
||||||
@ -3297,7 +3309,6 @@ func (a *DefaultApiService) GetArchive(project, repository string, localVarOptio
|
|||||||
apibasepath = "/api/1.0"
|
apibasepath = "/api/1.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
//localVarPath := a.client.cfg.BasePath + "/api/1.0/projects/{projectKey}/repos/{repositorySlug}/archive"
|
|
||||||
localVarPath := a.client.cfg.BasePath + apibasepath + "/projects/{projectKey}/repos/{repositorySlug}/archive"
|
localVarPath := a.client.cfg.BasePath + apibasepath + "/projects/{projectKey}/repos/{repositorySlug}/archive"
|
||||||
localVarPath = strings.Replace(localVarPath, "{"+"projectKey"+"}", fmt.Sprintf("%v", project), -1)
|
localVarPath = strings.Replace(localVarPath, "{"+"projectKey"+"}", fmt.Sprintf("%v", project), -1)
|
||||||
localVarPath = strings.Replace(localVarPath, "{"+"repositorySlug"+"}", fmt.Sprintf("%v", repository), -1)
|
localVarPath = strings.Replace(localVarPath, "{"+"repositorySlug"+"}", fmt.Sprintf("%v", repository), -1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user