Merge pull request #3 from sanketjpatel/feat/delete-repo

Update parameters for delete repo
This commit is contained in:
George Fleury 2018-06-03 20:43:56 +02:00 committed by GitHub
commit 0f7f49928b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -925,9 +925,12 @@ Create a new repository. Requires an existing project in which this repository w
@param projectKey the parent project key @param projectKey the parent project key
@return */ @return */
func (a *DefaultApiService) CreateRepository(projectKey string) (*APIResponse, error) { func (a *DefaultApiService) CreateRepository(projectKey string) (*APIResponse, error) {
return a.CreateRepositoryWithOptions(projectKey, nil, []string{})
}
func (a *DefaultApiService) CreateRepositoryWithOptions(projectKey string, localVarPostBody interface{}, localVarHTTPContentTypes []string) (*APIResponse, error) {
var ( var (
localVarHTTPMethod = strings.ToUpper("Post") localVarHTTPMethod = strings.ToUpper("Post")
localVarPostBody interface{}
localVarFileName string localVarFileName string
localVarFileBytes []byte localVarFileBytes []byte
) )
@ -940,9 +943,6 @@ func (a *DefaultApiService) CreateRepository(projectKey string) (*APIResponse, e
localVarQueryParams := url.Values{} localVarQueryParams := url.Values{}
localVarFormParams := url.Values{} localVarFormParams := url.Values{}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
// set Content-Type header // set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" { if localVarHTTPContentType != "" {
@ -1722,7 +1722,7 @@ Schedule the repository matching the supplied <strong>projectKey</stron
@param projectKey2 the parent project key @param projectKey2 the parent project key
@param repositorySlug the repository slug @param repositorySlug the repository slug
@return */ @return */
func (a *DefaultApiService) DeleteRepository(projectKey string, projectKey2 string, repositorySlug string) (*APIResponse, error) { func (a *DefaultApiService) DeleteRepository(projectKey, repositorySlug string) (*APIResponse, error) {
var ( var (
localVarHTTPMethod = strings.ToUpper("Delete") localVarHTTPMethod = strings.ToUpper("Delete")
localVarPostBody interface{} localVarPostBody interface{}
@ -1733,7 +1733,6 @@ func (a *DefaultApiService) DeleteRepository(projectKey string, projectKey2 stri
// create path and map variables // create path and map variables
localVarPath := a.client.cfg.BasePath + "/api/1.0/projects/{projectKey}/repos/{repositorySlug}" localVarPath := a.client.cfg.BasePath + "/api/1.0/projects/{projectKey}/repos/{repositorySlug}"
localVarPath = strings.Replace(localVarPath, "{"+"projectKey"+"}", fmt.Sprintf("%v", projectKey), -1) localVarPath = strings.Replace(localVarPath, "{"+"projectKey"+"}", fmt.Sprintf("%v", projectKey), -1)
localVarPath = strings.Replace(localVarPath, "{"+"projectKey"+"}", fmt.Sprintf("%v", projectKey2), -1)
localVarPath = strings.Replace(localVarPath, "{"+"repositorySlug"+"}", fmt.Sprintf("%v", repositorySlug), -1) localVarPath = strings.Replace(localVarPath, "{"+"repositorySlug"+"}", fmt.Sprintf("%v", repositorySlug), -1)
localVarHeaderParams := make(map[string]string) localVarHeaderParams := make(map[string]string)
@ -10990,7 +10989,7 @@ Unassigns a participant from the REVIEWER role they may have been given in a pul
@param userSlug the slug for the user changing their status @param userSlug the slug for the user changing their status
@param pullRequestId2 the id of the pull request within the repository @param pullRequestId2 the id of the pull request within the repository
@return */ @return */
func (a *DefaultApiService) UnassignParticipantRole_44(pullRequestId int64, userSlug string, pullRequestId2 int64) (*APIResponse, error) { func (a *DefaultApiService) UnassignParticipantRole_44(pullRequestID int64, userSlug string, pullRequestId2 int64) (*APIResponse, error) {
var ( var (
localVarHTTPMethod = strings.ToUpper("Delete") localVarHTTPMethod = strings.ToUpper("Delete")
localVarPostBody interface{} localVarPostBody interface{}
@ -11000,7 +10999,7 @@ func (a *DefaultApiService) UnassignParticipantRole_44(pullRequestId int64, user
// create path and map variables // create path and map variables
localVarPath := a.client.cfg.BasePath + "/api/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/participants/{userSlug}" localVarPath := a.client.cfg.BasePath + "/api/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/participants/{userSlug}"
localVarPath = strings.Replace(localVarPath, "{"+"pullRequestId"+"}", fmt.Sprintf("%v", pullRequestId), -1) localVarPath = strings.Replace(localVarPath, "{"+"pullRequestId"+"}", fmt.Sprintf("%v", pullRequestID), -1)
localVarPath = strings.Replace(localVarPath, "{"+"userSlug"+"}", fmt.Sprintf("%v", userSlug), -1) localVarPath = strings.Replace(localVarPath, "{"+"userSlug"+"}", fmt.Sprintf("%v", userSlug), -1)
localVarPath = strings.Replace(localVarPath, "{"+"pullRequestId"+"}", fmt.Sprintf("%v", pullRequestId2), -1) localVarPath = strings.Replace(localVarPath, "{"+"pullRequestId"+"}", fmt.Sprintf("%v", pullRequestId2), -1)