From 3d6e7c38b70806586d1246489b64baac79ce3d6a Mon Sep 17 00:00:00 2001 From: shijl0925 Date: Sat, 6 Jul 2024 13:24:47 +0000 Subject: [PATCH] Add untracked file during workflow --- sonarqube/alm_integrations_gen.go | 48 ++-- sonarqube/alm_settings_gen.go | 66 ++--- sonarqube/analysis_cache_gen.go | 3 +- sonarqube/applications_gen.go | 14 +- sonarqube/audit_logs_gen.go | 5 +- sonarqube/authentication_gen.go | 3 - sonarqube/ce_gen.go | 52 ++-- sonarqube/components_gen.go | 23 +- sonarqube/editions_gen.go | 2 - sonarqube/favorites_gen.go | 17 +- sonarqube/hotspots_gen.go | 27 +- sonarqube/issues_gen.go | 315 +++++++++++---------- sonarqube/languages_gen.go | 1 - sonarqube/measures_gen.go | 121 ++++---- sonarqube/metrics_gen.go | 4 +- sonarqube/monitoring_gen.go | 1 - sonarqube/new_code_periods_gen.go | 4 - sonarqube/notifications_gen.go | 3 - sonarqube/permissions_gen.go | 35 +-- sonarqube/plugins_gen.go | 30 +- sonarqube/project_analyses_gen.go | 11 +- sonarqube/project_badges_gen.go | 10 +- sonarqube/project_branches_gen.go | 9 +- sonarqube/project_dump_gen.go | 4 +- sonarqube/project_links_gen.go | 3 - sonarqube/project_pull_requests_gen.go | 6 +- sonarqube/project_tags_gen.go | 4 +- sonarqube/projects_gen.go | 40 +-- sonarqube/qualitygates/qualitygates_gen.go | 4 +- sonarqube/qualitygates_gen.go | 157 +++++----- sonarqube/qualityprofiles_gen.go | 77 +++-- sonarqube/rules_gen.go | 149 +++++----- sonarqube/server_gen.go | 1 - sonarqube/settings_gen.go | 36 +-- sonarqube/sources_gen.go | 13 +- sonarqube/system_gen.go | 30 +- sonarqube/user_groups_gen.go | 65 +++-- sonarqube/user_tokens_gen.go | 9 +- sonarqube/users_gen.go | 65 +++-- sonarqube/views_gen.go | 82 +++--- sonarqube/webhooks_gen.go | 12 +- sonarqube/webservices_gen.go | 2 - 42 files changed, 788 insertions(+), 775 deletions(-) diff --git a/sonarqube/alm_integrations_gen.go b/sonarqube/alm_integrations_gen.go index 0df00b3..c8cd112 100644 --- a/sonarqube/alm_integrations_gen.go +++ b/sonarqube/alm_integrations_gen.go @@ -18,9 +18,10 @@ type AlmIntegrations service // Since 8.6 // Deprecated since 10.5 // Changelog: -// 10.5: This endpoint is deprecated, please use its API v2 version /api/v2/dop-translation/bound-projects -// 10.3: Parameter almSetting becomes optional if you have only one configuration for Azure -// 10.3: Endpoint visibility change from internal to public +// +// 10.5: This endpoint is deprecated, please use its API v2 version /api/v2/dop-translation/bound-projects +// 10.3: Parameter almSetting becomes optional if you have only one configuration for Azure +// 10.3: Endpoint visibility change from internal to public func (s *AlmIntegrations) ImportAzureProject(ctx context.Context, r alm_integrations.ImportAzureProjectRequest) (*http.Response, error) { u := fmt.Sprintf("%s/import_azure_project", s.path) @@ -38,9 +39,10 @@ func (s *AlmIntegrations) ImportAzureProject(ctx context.Context, r alm_integrat // Since 9.0 // Deprecated since 10.5 // Changelog: -// 10.5: This endpoint is deprecated, please use its API v2 version /api/v2/dop-translation/bound-projects -// 10.3: Parameter almSetting becomes optional if you have only one configuration for BitBucket Cloud -// 10.3: Endpoint visibility change from internal to public +// +// 10.5: This endpoint is deprecated, please use its API v2 version /api/v2/dop-translation/bound-projects +// 10.3: Parameter almSetting becomes optional if you have only one configuration for BitBucket Cloud +// 10.3: Endpoint visibility change from internal to public func (s *AlmIntegrations) ImportBitbucketcloudRepo(ctx context.Context, r alm_integrations.ImportBitbucketcloudRepoRequest) (*http.Response, error) { u := fmt.Sprintf("%s/import_bitbucketcloud_repo", s.path) @@ -58,9 +60,10 @@ func (s *AlmIntegrations) ImportBitbucketcloudRepo(ctx context.Context, r alm_in // Since 8.2 // Deprecated since 10.5 // Changelog: -// 10.5: This endpoint is deprecated, please use its API v2 version /api/v2/dop-translation/bound-projects -// 10.3: Parameter almSetting becomes optional if you have only one configuration for BitBucket Server -// 10.3: Endpoint visibility change from internal to public +// +// 10.5: This endpoint is deprecated, please use its API v2 version /api/v2/dop-translation/bound-projects +// 10.3: Parameter almSetting becomes optional if you have only one configuration for BitBucket Server +// 10.3: Endpoint visibility change from internal to public func (s *AlmIntegrations) ImportBitbucketserverProject(ctx context.Context, r alm_integrations.ImportBitbucketserverProjectRequest) (*http.Response, error) { u := fmt.Sprintf("%s/import_bitbucketserver_project", s.path) @@ -78,10 +81,11 @@ func (s *AlmIntegrations) ImportBitbucketserverProject(ctx context.Context, r al // Since 8.4 // Deprecated since 10.5 // Changelog: -// 10.5: This endpoint is deprecated, please use its API v2 version /api/v2/dop-translation/bound-projects -// 10.3: Parameter organization is not necessary anymore -// 10.3: Parameter almSetting becomes optional if you have only one configuration for GitHub -// 10.3: Endpoint visibility change from internal to public +// +// 10.5: This endpoint is deprecated, please use its API v2 version /api/v2/dop-translation/bound-projects +// 10.3: Parameter organization is not necessary anymore +// 10.3: Parameter almSetting becomes optional if you have only one configuration for GitHub +// 10.3: Endpoint visibility change from internal to public func (s *AlmIntegrations) ImportGithubProject(ctx context.Context, r alm_integrations.ImportGithubProjectRequest) (*http.Response, error) { u := fmt.Sprintf("%s/import_github_project", s.path) @@ -98,8 +102,9 @@ func (s *AlmIntegrations) ImportGithubProject(ctx context.Context, r alm_integra // Since 8.5 // Deprecated since 10.5 // Changelog: -// 10.5: This endpoint is deprecated, please use its API v2 version /api/v2/dop-translation/bound-projects -// 10.3: Parameter almSetting becomes optional if you have only one configuration for GitLab +// +// 10.5: This endpoint is deprecated, please use its API v2 version /api/v2/dop-translation/bound-projects +// 10.3: Parameter almSetting becomes optional if you have only one configuration for GitLab func (s *AlmIntegrations) ImportGitlabProject(ctx context.Context, r alm_integrations.ImportGitlabProjectRequest) (*http.Response, error) { u := fmt.Sprintf("%s/import_gitlab_project", s.path) @@ -114,7 +119,6 @@ func (s *AlmIntegrations) ImportGitlabProject(ctx context.Context, r alm_integra // ListAzureProjects - List Azure projects // Requires the 'Create Projects' permission // Since 8.6 -// Changelog: func (s *AlmIntegrations) ListAzureProjects(ctx context.Context, r alm_integrations.ListAzureProjectsRequest) (*alm_integrations.ListAzureProjectsResponse, *http.Response, error) { u := fmt.Sprintf("%s/list_azure_projects", s.path) v := new(alm_integrations.ListAzureProjectsResponse) @@ -130,7 +134,6 @@ func (s *AlmIntegrations) ListAzureProjects(ctx context.Context, r alm_integrati // ListBitbucketserverProjects - List the Bitbucket Server projects // Requires the 'Create Projects' permission // Since 8.2 -// Changelog: func (s *AlmIntegrations) ListBitbucketserverProjects(ctx context.Context, r alm_integrations.ListBitbucketserverProjectsRequest) (*alm_integrations.ListBitbucketserverProjectsResponse, *http.Response, error) { u := fmt.Sprintf("%s/list_bitbucketserver_projects", s.path) v := new(alm_integrations.ListBitbucketserverProjectsResponse) @@ -146,7 +149,6 @@ func (s *AlmIntegrations) ListBitbucketserverProjects(ctx context.Context, r alm // SearchAzureRepos - Search the Azure repositories // Requires the 'Create Projects' permission // Since 8.6 -// Changelog: func (s *AlmIntegrations) SearchAzureRepos(ctx context.Context, r alm_integrations.SearchAzureReposRequest) (*alm_integrations.SearchAzureReposResponse, *http.Response, error) { u := fmt.Sprintf("%s/search_azure_repos", s.path) v := new(alm_integrations.SearchAzureReposResponse) @@ -162,7 +164,6 @@ func (s *AlmIntegrations) SearchAzureRepos(ctx context.Context, r alm_integratio // SearchBitbucketcloudRepos - Search the Bitbucket Cloud repositories // Requires the 'Create Projects' permission // Since 9.0 -// Changelog: func (s *AlmIntegrations) SearchBitbucketcloudRepos(ctx context.Context, r alm_integrations.SearchBitbucketcloudReposRequest, p paging.Params) (*alm_integrations.SearchBitbucketcloudReposResponse, *http.Response, error) { u := fmt.Sprintf("%s/search_bitbucketcloud_repos", s.path) v := new(alm_integrations.SearchBitbucketcloudReposResponse) @@ -199,7 +200,6 @@ func (s *AlmIntegrations) SearchBitbucketcloudReposAll(ctx context.Context, r al // SearchBitbucketserverRepos - Search the Bitbucket Server repositories with REPO_ADMIN access // Requires the 'Create Projects' permission // Since 8.2 -// Changelog: func (s *AlmIntegrations) SearchBitbucketserverRepos(ctx context.Context, r alm_integrations.SearchBitbucketserverReposRequest) (*alm_integrations.SearchBitbucketserverReposResponse, *http.Response, error) { u := fmt.Sprintf("%s/search_bitbucketserver_repos", s.path) v := new(alm_integrations.SearchBitbucketserverReposResponse) @@ -215,7 +215,6 @@ func (s *AlmIntegrations) SearchBitbucketserverRepos(ctx context.Context, r alm_ // SearchGitlabRepos - Search the GitLab projects. // Requires the 'Create Projects' permission // Since 8.5 -// Changelog: func (s *AlmIntegrations) SearchGitlabRepos(ctx context.Context, r alm_integrations.SearchGitlabReposRequest, p paging.Params) (*alm_integrations.SearchGitlabReposResponse, *http.Response, error) { u := fmt.Sprintf("%s/search_gitlab_repos", s.path) v := new(alm_integrations.SearchGitlabReposResponse) @@ -253,9 +252,10 @@ func (s *AlmIntegrations) SearchGitlabReposAll(ctx context.Context, r alm_integr // Requires the 'Create Projects' permission // Since 8.2 // Changelog: -// 10.3: Allow setting Personal Access Tokens for all DevOps platforms -// 10.3: Parameter almSetting becomes optional if you have only one DevOps Platform configuration -// 9.0: Bitbucket Cloud support and optional Username parameter were added +// +// 10.3: Allow setting Personal Access Tokens for all DevOps platforms +// 10.3: Parameter almSetting becomes optional if you have only one DevOps Platform configuration +// 9.0: Bitbucket Cloud support and optional Username parameter were added func (s *AlmIntegrations) SetPat(ctx context.Context, r alm_integrations.SetPatRequest) (*http.Response, error) { u := fmt.Sprintf("%s/set_pat", s.path) diff --git a/sonarqube/alm_settings_gen.go b/sonarqube/alm_settings_gen.go index d4907fc..9ef32c6 100644 --- a/sonarqube/alm_settings_gen.go +++ b/sonarqube/alm_settings_gen.go @@ -14,7 +14,6 @@ type AlmSettings service // CountBinding - Count number of project bound to an DevOps Platform setting. // Requires the 'Administer System' permission // Since 8.1 -// Changelog: func (s *AlmSettings) CountBinding(ctx context.Context, r alm_settings.CountBindingRequest) (*alm_settings.CountBindingResponse, *http.Response, error) { u := fmt.Sprintf("%s/count_binding", s.path) v := new(alm_settings.CountBindingResponse) @@ -31,7 +30,8 @@ func (s *AlmSettings) CountBinding(ctx context.Context, r alm_settings.CountBind // Requires the 'Administer System' permission // Since 8.1 // Changelog: -// 8.6: Parameter 'URL' was added +// +// 8.6: Parameter 'URL' was added func (s *AlmSettings) CreateAzure(ctx context.Context, r alm_settings.CreateAzureRequest) (*http.Response, error) { u := fmt.Sprintf("%s/create_azure", s.path) @@ -46,7 +46,6 @@ func (s *AlmSettings) CreateAzure(ctx context.Context, r alm_settings.CreateAzur // CreateBitbucket - Create Bitbucket instance Setting. // Requires the 'Administer System' permission // Since 8.1 -// Changelog: func (s *AlmSettings) CreateBitbucket(ctx context.Context, r alm_settings.CreateBitbucketRequest) (*http.Response, error) { u := fmt.Sprintf("%s/create_bitbucket", s.path) @@ -61,7 +60,6 @@ func (s *AlmSettings) CreateBitbucket(ctx context.Context, r alm_settings.Create // CreateBitbucketcloud - Configure a new instance of Bitbucket Cloud. // Requires the 'Administer System' permission // Since 8.7 -// Changelog: func (s *AlmSettings) CreateBitbucketcloud(ctx context.Context, r alm_settings.CreateBitbucketcloudRequest) (*http.Response, error) { u := fmt.Sprintf("%s/create_bitbucketcloud", s.path) @@ -77,7 +75,8 @@ func (s *AlmSettings) CreateBitbucketcloud(ctx context.Context, r alm_settings.C // Requires the 'Administer System' permission // Since 8.1 // Changelog: -// 9.7: Optional parameter 'webhookSecret' was added +// +// 9.7: Optional parameter 'webhookSecret' was added func (s *AlmSettings) CreateGithub(ctx context.Context, r alm_settings.CreateGithubRequest) (*http.Response, error) { u := fmt.Sprintf("%s/create_github", s.path) @@ -93,7 +92,8 @@ func (s *AlmSettings) CreateGithub(ctx context.Context, r alm_settings.CreateGit // Requires the 'Administer System' permission // Since 8.1 // Changelog: -// 8.2: Parameter 'URL' was added +// +// 8.2: Parameter 'URL' was added func (s *AlmSettings) CreateGitlab(ctx context.Context, r alm_settings.CreateGitlabRequest) (*http.Response, error) { u := fmt.Sprintf("%s/create_gitlab", s.path) @@ -108,7 +108,6 @@ func (s *AlmSettings) CreateGitlab(ctx context.Context, r alm_settings.CreateGit // Delete - Delete an DevOps Platform Setting. // Requires the 'Administer System' permission // Since 8.1 -// Changelog: func (s *AlmSettings) Delete(ctx context.Context, r alm_settings.DeleteRequest) (*http.Response, error) { u := fmt.Sprintf("%s/delete", s.path) @@ -123,7 +122,6 @@ func (s *AlmSettings) Delete(ctx context.Context, r alm_settings.DeleteRequest) // DeleteBinding - Delete the DevOps Platform binding of a project. // Requires the 'Administer' permission on the project // Since 8.1 -// Changelog: func (s *AlmSettings) DeleteBinding(ctx context.Context, r alm_settings.DeleteBindingRequest) (*http.Response, error) { u := fmt.Sprintf("%s/delete_binding", s.path) @@ -139,9 +137,10 @@ func (s *AlmSettings) DeleteBinding(ctx context.Context, r alm_settings.DeleteBi // Requires the 'Browse' permission on the project // Since 8.1 // Changelog: -// 10.1: Permission needed changed from 'Administer' to 'Browse' -// 8.7: Azure binding now contains a monorepo flag for monorepo feature in Enterprise Edition and above -// 8.6: Azure binding now contains the project and repository names +// +// 10.1: Permission needed changed from 'Administer' to 'Browse' +// 8.7: Azure binding now contains a monorepo flag for monorepo feature in Enterprise Edition and above +// 8.6: Azure binding now contains the project and repository names func (s *AlmSettings) GetBinding(ctx context.Context, r alm_settings.GetBindingRequest) (*alm_settings.GetBindingResponse, *http.Response, error) { u := fmt.Sprintf("%s/get_binding", s.path) v := new(alm_settings.GetBindingResponse) @@ -158,9 +157,10 @@ func (s *AlmSettings) GetBinding(ctx context.Context, r alm_settings.GetBindingR // Requires the 'Administer project' permission if the 'project' parameter is provided, requires the 'Create Projects' permission otherwise. // Since 8.1 // Changelog: -// 8.6: Field 'URL' added for Azure definitions -// 8.3: Permission needed changed to 'Administer project' or 'Create Projects' -// 8.2: Permission needed changed from 'Administer project' to 'Create Projects' +// +// 8.6: Field 'URL' added for Azure definitions +// 8.3: Permission needed changed to 'Administer project' or 'Create Projects' +// 8.2: Permission needed changed from 'Administer project' to 'Create Projects' func (s *AlmSettings) List(ctx context.Context, r alm_settings.ListRequest) (*alm_settings.ListResponse, *http.Response, error) { u := fmt.Sprintf("%s/list", s.path) v := new(alm_settings.ListResponse) @@ -177,9 +177,10 @@ func (s *AlmSettings) List(ctx context.Context, r alm_settings.ListRequest) (*al // Requires the 'Administer System' permission // Since 8.1 // Changelog: -// 8.7: Fields 'personalAccessToken', 'privateKey', and 'clientSecret' are no longer returned -// 8.6: Field 'URL' added for Azure definitions -// 8.2: Field 'URL' added for GitLab definitions +// +// 8.7: Fields 'personalAccessToken', 'privateKey', and 'clientSecret' are no longer returned +// 8.6: Field 'URL' added for Azure definitions +// 8.2: Field 'URL' added for GitLab definitions func (s *AlmSettings) ListDefinitions(ctx context.Context, r alm_settings.ListDefinitionsRequest) (*alm_settings.ListDefinitionsResponse, *http.Response, error) { u := fmt.Sprintf("%s/list_definitions", s.path) v := new(alm_settings.ListDefinitionsResponse) @@ -195,7 +196,6 @@ func (s *AlmSettings) ListDefinitions(ctx context.Context, r alm_settings.ListDe // SetAzureBinding - Bind a Azure DevOps instance to a project. // If the project was already bound to a previous Azure DevOps instance, the binding will be updated to the new one.Requires the 'Administer' permission on the project // Since 8.1 -// Changelog: func (s *AlmSettings) SetAzureBinding(ctx context.Context, r alm_settings.SetAzureBindingRequest) (*http.Response, error) { u := fmt.Sprintf("%s/set_azure_binding", s.path) @@ -210,7 +210,6 @@ func (s *AlmSettings) SetAzureBinding(ctx context.Context, r alm_settings.SetAzu // SetBitbucketBinding - Bind a Bitbucket instance to a project. // If the project was already bound to a previous Bitbucket instance, the binding will be updated to the new one.Requires the 'Administer' permission on the project // Since 8.1 -// Changelog: func (s *AlmSettings) SetBitbucketBinding(ctx context.Context, r alm_settings.SetBitbucketBindingRequest) (*http.Response, error) { u := fmt.Sprintf("%s/set_bitbucket_binding", s.path) @@ -225,7 +224,6 @@ func (s *AlmSettings) SetBitbucketBinding(ctx context.Context, r alm_settings.Se // SetBitbucketcloudBinding - Bind a Bitbucket Cloud setting to a project. // If the project was already bound to a different Bitbucket Cloud setting, the binding will be updated to the new one.Requires the 'Administer' permission on the project // Since 8.7 -// Changelog: func (s *AlmSettings) SetBitbucketcloudBinding(ctx context.Context, r alm_settings.SetBitbucketcloudBindingRequest) (*http.Response, error) { u := fmt.Sprintf("%s/set_bitbucketcloud_binding", s.path) @@ -241,7 +239,8 @@ func (s *AlmSettings) SetBitbucketcloudBinding(ctx context.Context, r alm_settin // If the project was already bound to a previous GitHub instance, the binding will be updated to the new one.Requires the 'Administer' permission on the project // Since 8.1 // Changelog: -// 8.3: Add 'summaryCommentEnabled' param to enable/disable of putting analysis summary in a conversation tab of GitHub +// +// 8.3: Add 'summaryCommentEnabled' param to enable/disable of putting analysis summary in a conversation tab of GitHub func (s *AlmSettings) SetGithubBinding(ctx context.Context, r alm_settings.SetGithubBindingRequest) (*http.Response, error) { u := fmt.Sprintf("%s/set_github_binding", s.path) @@ -257,7 +256,8 @@ func (s *AlmSettings) SetGithubBinding(ctx context.Context, r alm_settings.SetGi // If the project was already bound to a previous Gitlab instance, the binding will be updated to the new one.Requires the 'Administer' permission on the project // Since 8.1 // Changelog: -// 8.2: Parameter 'repository' was added +// +// 8.2: Parameter 'repository' was added func (s *AlmSettings) SetGitlabBinding(ctx context.Context, r alm_settings.SetGitlabBindingRequest) (*http.Response, error) { u := fmt.Sprintf("%s/set_gitlab_binding", s.path) @@ -273,8 +273,9 @@ func (s *AlmSettings) SetGitlabBinding(ctx context.Context, r alm_settings.SetGi // Requires the 'Administer System' permission // Since 8.1 // Changelog: -// 8.7: Parameter 'personalAccessToken' is no longer required -// 8.6: Parameter 'URL' was added +// +// 8.7: Parameter 'personalAccessToken' is no longer required +// 8.6: Parameter 'URL' was added func (s *AlmSettings) UpdateAzure(ctx context.Context, r alm_settings.UpdateAzureRequest) (*http.Response, error) { u := fmt.Sprintf("%s/update_azure", s.path) @@ -290,7 +291,8 @@ func (s *AlmSettings) UpdateAzure(ctx context.Context, r alm_settings.UpdateAzur // Requires the 'Administer System' permission // Since 8.1 // Changelog: -// 8.7: Parameter 'personalAccessToken' is no longer required +// +// 8.7: Parameter 'personalAccessToken' is no longer required func (s *AlmSettings) UpdateBitbucket(ctx context.Context, r alm_settings.UpdateBitbucketRequest) (*http.Response, error) { u := fmt.Sprintf("%s/update_bitbucket", s.path) @@ -305,7 +307,6 @@ func (s *AlmSettings) UpdateBitbucket(ctx context.Context, r alm_settings.Update // UpdateBitbucketcloud - Update Bitbucket Cloud Setting. // Requires the 'Administer System' permission // Since 8.7 -// Changelog: func (s *AlmSettings) UpdateBitbucketcloud(ctx context.Context, r alm_settings.UpdateBitbucketcloudRequest) (*http.Response, error) { u := fmt.Sprintf("%s/update_bitbucketcloud", s.path) @@ -321,9 +322,10 @@ func (s *AlmSettings) UpdateBitbucketcloud(ctx context.Context, r alm_settings.U // Requires the 'Administer System' permission // Since 8.1 // Changelog: -// 9.7: Optional parameter 'webhookSecret' was added -// 8.7: Parameter 'privateKey' is no longer required -// 8.7: Parameter 'clientSecret' is no longer required +// +// 9.7: Optional parameter 'webhookSecret' was added +// 8.7: Parameter 'privateKey' is no longer required +// 8.7: Parameter 'clientSecret' is no longer required func (s *AlmSettings) UpdateGithub(ctx context.Context, r alm_settings.UpdateGithubRequest) (*http.Response, error) { u := fmt.Sprintf("%s/update_github", s.path) @@ -339,8 +341,9 @@ func (s *AlmSettings) UpdateGithub(ctx context.Context, r alm_settings.UpdateGit // Requires the 'Administer System' permission // Since 8.1 // Changelog: -// 8.7: Parameter 'personalAccessToken' is no longer required -// 8.2: Parameter 'URL' was added +// +// 8.7: Parameter 'personalAccessToken' is no longer required +// 8.2: Parameter 'URL' was added func (s *AlmSettings) UpdateGitlab(ctx context.Context, r alm_settings.UpdateGitlabRequest) (*http.Response, error) { u := fmt.Sprintf("%s/update_gitlab", s.path) @@ -355,7 +358,6 @@ func (s *AlmSettings) UpdateGitlab(ctx context.Context, r alm_settings.UpdateGit // Validate - Validate an DevOps Platform Setting by checking connectivity and permissions // Requires the 'Administer System' permission // Since 8.6 -// Changelog: func (s *AlmSettings) Validate(ctx context.Context, r alm_settings.ValidateRequest) (*alm_settings.ValidateResponse, *http.Response, error) { u := fmt.Sprintf("%s/validate", s.path) v := new(alm_settings.ValidateResponse) diff --git a/sonarqube/analysis_cache_gen.go b/sonarqube/analysis_cache_gen.go index c92603c..a1d1f60 100644 --- a/sonarqube/analysis_cache_gen.go +++ b/sonarqube/analysis_cache_gen.go @@ -14,7 +14,8 @@ type AnalysisCache service // Get - Get the scanner's cached data for a branch. Requires scan permission on the project. Data is returned gzipped if the corresponding 'Accept-Encoding' header is set in the request. // Since 9.4 // Changelog: -// 9.9: The web service is no longer internal +// +// 9.9: The web service is no longer internal func (s *AnalysisCache) Get(ctx context.Context, r analysis_cache.GetRequest) (*http.Response, error) { u := fmt.Sprintf("%s/get", s.path) diff --git a/sonarqube/applications_gen.go b/sonarqube/applications_gen.go index cfb5513..d97455d 100644 --- a/sonarqube/applications_gen.go +++ b/sonarqube/applications_gen.go @@ -14,7 +14,6 @@ type Applications service // AddProject - Add a project to an application. // Requires 'Administrator' permission on the application // Since 7.3 -// Changelog: func (s *Applications) AddProject(ctx context.Context, r applications.AddProjectRequest) (*http.Response, error) { u := fmt.Sprintf("%s/add_project", s.path) @@ -30,7 +29,8 @@ func (s *Applications) AddProject(ctx context.Context, r applications.AddProject // Requires 'Administer System' permission or 'Create Applications' permission // Since 7.3 // Changelog: -// 7.4: This web service is using the 'Create Applications' permission +// +// 7.4: This web service is using the 'Create Applications' permission func (s *Applications) Create(ctx context.Context, r applications.CreateRequest) (*applications.CreateResponse, *http.Response, error) { u := fmt.Sprintf("%s/create", s.path) v := new(applications.CreateResponse) @@ -46,7 +46,6 @@ func (s *Applications) Create(ctx context.Context, r applications.CreateRequest) // CreateBranch - Create a new branch on a given application. // Requires 'Administrator' permission on the application and 'Browse' permission on its child projects // Since 7.3 -// Changelog: func (s *Applications) CreateBranch(ctx context.Context, r applications.CreateBranchRequest) (*http.Response, error) { u := fmt.Sprintf("%s/create_branch", s.path) @@ -61,7 +60,6 @@ func (s *Applications) CreateBranch(ctx context.Context, r applications.CreateBr // Delete - Delete an application definition. // Requires 'Administrator' permission on the application // Since 7.3 -// Changelog: func (s *Applications) Delete(ctx context.Context, r applications.DeleteRequest) (*http.Response, error) { u := fmt.Sprintf("%s/delete", s.path) @@ -76,7 +74,6 @@ func (s *Applications) Delete(ctx context.Context, r applications.DeleteRequest) // DeleteBranch - Delete a branch on a given application. // Requires 'Administrator' permission on the application // Since 7.3 -// Changelog: func (s *Applications) DeleteBranch(ctx context.Context, r applications.DeleteBranchRequest) (*http.Response, error) { u := fmt.Sprintf("%s/delete_branch", s.path) @@ -91,7 +88,6 @@ func (s *Applications) DeleteBranch(ctx context.Context, r applications.DeleteBr // RemoveProject - Remove a project from an application // Requires 'Administrator' permission on the application // Since 7.3 -// Changelog: func (s *Applications) RemoveProject(ctx context.Context, r applications.RemoveProjectRequest) (*http.Response, error) { u := fmt.Sprintf("%s/remove_project", s.path) @@ -106,7 +102,6 @@ func (s *Applications) RemoveProject(ctx context.Context, r applications.RemoveP // SetTags - Set tags on a application. // Requires the following permission: 'Administer' rights on the specified application // Since 8.3 -// Changelog: func (s *Applications) SetTags(ctx context.Context, r applications.SetTagsRequest) (*http.Response, error) { u := fmt.Sprintf("%s/set_tags", s.path) @@ -122,7 +117,8 @@ func (s *Applications) SetTags(ctx context.Context, r applications.SetTagsReques // Requires the 'Browse' permission on the application and on its child projects. // Since 7.3 // Changelog: -// 8.3: Change required permission from 'Admin' to 'Browse' +// +// 8.3: Change required permission from 'Admin' to 'Browse' func (s *Applications) Show(ctx context.Context, r applications.ShowRequest) (*applications.ShowResponse, *http.Response, error) { u := fmt.Sprintf("%s/show", s.path) v := new(applications.ShowResponse) @@ -138,7 +134,6 @@ func (s *Applications) Show(ctx context.Context, r applications.ShowRequest) (*a // Update - Update an application. // Requires 'Administrator' permission on the application // Since 7.3 -// Changelog: func (s *Applications) Update(ctx context.Context, r applications.UpdateRequest) (*http.Response, error) { u := fmt.Sprintf("%s/update", s.path) @@ -153,7 +148,6 @@ func (s *Applications) Update(ctx context.Context, r applications.UpdateRequest) // UpdateBranch - Update a branch on a given application. // Requires 'Administrator' permission on the application and 'Browse' permission on its child projects // Since 7.3 -// Changelog: func (s *Applications) UpdateBranch(ctx context.Context, r applications.UpdateBranchRequest) (*http.Response, error) { u := fmt.Sprintf("%s/update_branch", s.path) diff --git a/sonarqube/audit_logs_gen.go b/sonarqube/audit_logs_gen.go index d5893f3..d09af9f 100644 --- a/sonarqube/audit_logs_gen.go +++ b/sonarqube/audit_logs_gen.go @@ -16,10 +16,11 @@ type AuditLogs service // // Since 9.1 // Changelog: -// 10.2: Fields 'permissionUuid', 'componentUuid', 'groupUuid', 'permissionTemplateUuid', +// +// 10.2: Fields 'permissionUuid', 'componentUuid', 'groupUuid', 'permissionTemplateUuid', // 'devOpsPlatformSettingUuid', 'qualityGateUuid', 'patUuid', 'userUuid', 'pluginUuid', 'webhookUuid', 'tokenUuid' in response are // now deprecated. -// 9.5: Field 'userTriggered' added to the response payload. +// 9.5: Field 'userTriggered' added to the response payload. func (s *AuditLogs) Download(ctx context.Context, r audit_logs.DownloadRequest) (*audit_logs.DownloadResponse, *http.Response, error) { u := fmt.Sprintf("%s/download", s.path) v := new(audit_logs.DownloadResponse) diff --git a/sonarqube/authentication_gen.go b/sonarqube/authentication_gen.go index 697392d..9fad4b5 100644 --- a/sonarqube/authentication_gen.go +++ b/sonarqube/authentication_gen.go @@ -13,7 +13,6 @@ type Authentication service // Login - Authenticate a user. // Since 6.0 -// Changelog: func (s *Authentication) Login(ctx context.Context, r authentication.LoginRequest) (*http.Response, error) { u := fmt.Sprintf("%s/login", s.path) @@ -27,7 +26,6 @@ func (s *Authentication) Login(ctx context.Context, r authentication.LoginReques // Logout - Logout a user. // Since 6.3 -// Changelog: func (s *Authentication) Logout(ctx context.Context, r authentication.LogoutRequest) (*http.Response, error) { u := fmt.Sprintf("%s/logout", s.path) @@ -41,7 +39,6 @@ func (s *Authentication) Logout(ctx context.Context, r authentication.LogoutRequ // Validate - Check credentials. // Since 3.3 -// Changelog: func (s *Authentication) Validate(ctx context.Context, r authentication.ValidateRequest) (*authentication.ValidateResponse, *http.Response, error) { u := fmt.Sprintf("%s/validate", s.path) v := new(authentication.ValidateResponse) diff --git a/sonarqube/ce_gen.go b/sonarqube/ce_gen.go index 4481782..98ba743 100644 --- a/sonarqube/ce_gen.go +++ b/sonarqube/ce_gen.go @@ -16,16 +16,17 @@ type Ce service // Requires the system administration permission, or project administration permission if component is set. // Since 5.2 // Changelog: -// 10.4: field "infoMessages" added to response -// 10.1: The use of module keys in parameter 'component' is removed -// 10.1: Warnings field will be now be filled (it was always empty in the past). -// 10.0: Remove deprecated field 'componentId' -// 8.8: field "logs" is dropped -// 7.6: The use of module keys in parameters 'q' is deprecated -// 7.1: field "pullRequest" added -// 6.6: fields "branch" and "branchType" added -// 6.1: field "logs" is deprecated and its value is always false -// 5.5: it's no more possible to specify the page parameter. +// +// 10.4: field "infoMessages" added to response +// 10.1: The use of module keys in parameter 'component' is removed +// 10.1: Warnings field will be now be filled (it was always empty in the past). +// 10.0: Remove deprecated field 'componentId' +// 8.8: field "logs" is dropped +// 7.6: The use of module keys in parameters 'q' is deprecated +// 7.1: field "pullRequest" added +// 6.6: fields "branch" and "branchType" added +// 6.1: field "logs" is deprecated and its value is always false +// 5.5: it's no more possible to specify the page parameter. func (s *Ce) Activity(ctx context.Context, r ce.ActivityRequest, p paging.Params) (*ce.ActivityResponse, *http.Response, error) { u := fmt.Sprintf("%s/activity", s.path) v := new(ce.ActivityResponse) @@ -63,11 +64,12 @@ func (s *Ce) ActivityAll(ctx context.Context, r ce.ActivityRequest) (*ce.Activit // Requires 'Administer System' permission or 'Administer' rights on the specified project. // Since 5.5 // Changelog: -// 10.0: Remove deprecated field 'componentId' -// 8.8: Parameter 'componentId' is now deprecated. -// 8.8: Parameter 'componentKey' is now removed. Please use parameter 'component' instead. -// 7.8: New field 'pendingTime' in response, only included when there are pending tasks -// 6.6: New field 'inProgress' in response +// +// 10.0: Remove deprecated field 'componentId' +// 8.8: Parameter 'componentId' is now deprecated. +// 8.8: Parameter 'componentKey' is now removed. Please use parameter 'component' instead. +// 7.8: New field 'pendingTime' in response, only included when there are pending tasks +// 6.6: New field 'inProgress' in response func (s *Ce) ActivityStatus(ctx context.Context, r ce.ActivityStatusRequest) (*ce.ActivityStatusResponse, *http.Response, error) { u := fmt.Sprintf("%s/activity_status", s.path) v := new(ce.ActivityStatusResponse) @@ -84,12 +86,13 @@ func (s *Ce) ActivityStatus(ctx context.Context, r ce.ActivityStatusRequest) (*c // Requires the following permission: 'Browse' on the specified component. // Since 5.2 // Changelog: -// 8.8: field "logs" is dropped -// 8.8: Deprecated parameter 'componentId' has been removed. -// 8.8: Parameter 'component' is now required. -// 7.6: The use of module keys in parameter "component" is deprecated -// 6.6: fields "branch" and "branchType" added -// 6.1: field "logs" is deprecated and its value is always false +// +// 8.8: field "logs" is dropped +// 8.8: Deprecated parameter 'componentId' has been removed. +// 8.8: Parameter 'component' is now required. +// 7.6: The use of module keys in parameter "component" is deprecated +// 6.6: fields "branch" and "branchType" added +// 6.1: field "logs" is deprecated and its value is always false func (s *Ce) Component(ctx context.Context, r ce.ComponentRequest) (*ce.ComponentResponse, *http.Response, error) { u := fmt.Sprintf("%s/component", s.path) v := new(ce.ComponentResponse) @@ -109,9 +112,10 @@ func (s *Ce) Component(ctx context.Context, r ce.ComponentRequest) (*ce.Componen // Since 6.1, field "logs" is deprecated and its value is always false. // Since 5.2 // Changelog: -// 10.1: Warnings field will be now always be filled (it is not necessary to mention it explicitly in 'additionalFields'). 'additionalFields' value `warning' is deprecated. -// 10.1: 'Project Administrator' is added to the list of allowed permissions to access this endpoint -// 6.6: fields "branch" and "branchType" added +// +// 10.1: Warnings field will be now always be filled (it is not necessary to mention it explicitly in 'additionalFields'). 'additionalFields' value `warning' is deprecated. +// 10.1: 'Project Administrator' is added to the list of allowed permissions to access this endpoint +// 6.6: fields "branch" and "branchType" added func (s *Ce) Task(ctx context.Context, r ce.TaskRequest) (*ce.TaskResponse, *http.Response, error) { u := fmt.Sprintf("%s/task", s.path) v := new(ce.TaskResponse) diff --git a/sonarqube/components_gen.go b/sonarqube/components_gen.go index 4c0949f..d5d46a6 100644 --- a/sonarqube/components_gen.go +++ b/sonarqube/components_gen.go @@ -15,10 +15,11 @@ type Components service // Search - Search for components // Since 6.3 // Changelog: -// 8.4: Param 'language' has been removed -// 8.4: The use of 'DIR','FIL','UTS' and 'BRC' as values for parameter 'qualifiers' is no longer supported -// 8.0: Field 'id' from response has been removed -// 7.6: The use of 'BRC' as value for parameter 'qualifiers' is deprecated +// +// 8.4: Param 'language' has been removed +// 8.4: The use of 'DIR','FIL','UTS' and 'BRC' as values for parameter 'qualifiers' is no longer supported +// 8.0: Field 'id' from response has been removed +// 7.6: The use of 'BRC' as value for parameter 'qualifiers' is deprecated func (s *Components) Search(ctx context.Context, r components.SearchRequest, p paging.Params) (*components.SearchResponse, *http.Response, error) { u := fmt.Sprintf("%s/search", s.path) v := new(components.SearchResponse) @@ -55,8 +56,9 @@ func (s *Components) SearchAll(ctx context.Context, r components.SearchRequest) // Show - Returns a component (file, directory, project, portfolio…) and its ancestors. The ancestors are ordered from the parent to the root project. Requires the following permission: 'Browse' on the project of the specified component. // Since 5.4 // Changelog: -// 10.1: The use of module keys in parameter 'component' is removed -// 7.6: The use of module keys in parameter 'component' is deprecated +// +// 10.1: The use of module keys in parameter 'component' is removed +// 7.6: The use of module keys in parameter 'component' is deprecated func (s *Components) Show(ctx context.Context, r components.ShowRequest) (*components.ShowResponse, *http.Response, error) { u := fmt.Sprintf("%s/show", s.path) v := new(components.ShowResponse) @@ -74,10 +76,11 @@ func (s *Components) Show(ctx context.Context, r components.ShowRequest) (*compo // When limiting search with the q parameter, directories are not returned. // Since 5.4 // Changelog: -// 10.1: The use of module keys in parameter 'component' is removed -// 10.1: The use of 'BRC' as value for parameter 'qualifiers' is removed -// 7.6: The use of 'BRC' as value for parameter 'qualifiers' is deprecated -// 7.6: The use of module keys in parameter 'component' is deprecated +// +// 10.1: The use of module keys in parameter 'component' is removed +// 10.1: The use of 'BRC' as value for parameter 'qualifiers' is removed +// 7.6: The use of 'BRC' as value for parameter 'qualifiers' is deprecated +// 7.6: The use of module keys in parameter 'component' is deprecated func (s *Components) Tree(ctx context.Context, r components.TreeRequest, p paging.Params) (*components.TreeResponse, *http.Response, error) { u := fmt.Sprintf("%s/tree", s.path) v := new(components.TreeResponse) diff --git a/sonarqube/editions_gen.go b/sonarqube/editions_gen.go index c84db01..df28daf 100644 --- a/sonarqube/editions_gen.go +++ b/sonarqube/editions_gen.go @@ -13,7 +13,6 @@ type Editions service // ActivateGracePeriod - Enable a license 7-days grace period if the Server ID is invalid. Require 'Administer System' permission. // Since 10.3 -// Changelog: func (s *Editions) ActivateGracePeriod(ctx context.Context, r editions.ActivateGracePeriodRequest) (*http.Response, error) { u := fmt.Sprintf("%s/activate_grace_period", s.path) @@ -27,7 +26,6 @@ func (s *Editions) ActivateGracePeriod(ctx context.Context, r editions.ActivateG // SetLicense - Set the license for enabling features of commercial editions. Require 'Administer System' permission. // Since 7.2 -// Changelog: func (s *Editions) SetLicense(ctx context.Context, r editions.SetLicenseRequest) (*http.Response, error) { u := fmt.Sprintf("%s/set_license", s.path) diff --git a/sonarqube/favorites_gen.go b/sonarqube/favorites_gen.go index 7dc920c..74838a9 100644 --- a/sonarqube/favorites_gen.go +++ b/sonarqube/favorites_gen.go @@ -17,11 +17,12 @@ type Favorites service // Requires authentication and the following permission: 'Browse' on the component. // Since 6.3 // Changelog: -// 10.1: The use of module keys in parameter 'component' is removed -// 8.4: It's no longer possible to set a file as favorite -// 7.7: It's no longer possible to have more than 100 favorites by qualifier -// 7.7: It's no longer possible to set a directory as favorite -// 7.6: The use of module keys in parameter 'component' is deprecated +// +// 10.1: The use of module keys in parameter 'component' is removed +// 8.4: It's no longer possible to set a file as favorite +// 7.7: It's no longer possible to have more than 100 favorites by qualifier +// 7.7: It's no longer possible to set a directory as favorite +// 7.6: The use of module keys in parameter 'component' is deprecated func (s *Favorites) Add(ctx context.Context, r favorites.AddRequest) (*http.Response, error) { u := fmt.Sprintf("%s/add", s.path) @@ -37,8 +38,9 @@ func (s *Favorites) Add(ctx context.Context, r favorites.AddRequest) (*http.Resp // Requires authentication. // Since 6.3 // Changelog: -// 10.1: The use of module keys in parameter 'component' is removed -// 7.6: The use of module keys in parameter 'component' is deprecated +// +// 10.1: The use of module keys in parameter 'component' is removed +// 7.6: The use of module keys in parameter 'component' is deprecated func (s *Favorites) Remove(ctx context.Context, r favorites.RemoveRequest) (*http.Response, error) { u := fmt.Sprintf("%s/remove", s.path) @@ -53,7 +55,6 @@ func (s *Favorites) Remove(ctx context.Context, r favorites.RemoveRequest) (*htt // Search - Search for the authenticated user favorites. // Requires authentication. // Since 6.3 -// Changelog: func (s *Favorites) Search(ctx context.Context, r favorites.SearchRequest, p paging.Params) (*favorites.SearchResponse, *http.Response, error) { u := fmt.Sprintf("%s/search", s.path) v := new(favorites.SearchResponse) diff --git a/sonarqube/hotspots_gen.go b/sonarqube/hotspots_gen.go index 33a942c..c8ada43 100644 --- a/sonarqube/hotspots_gen.go +++ b/sonarqube/hotspots_gen.go @@ -16,7 +16,8 @@ type Hotspots service // Requires the 'Administer Security Hotspot' permission. // Since 8.1 // Changelog: -// 10.1: Endpoint visibility change from internal to public +// +// 10.1: Endpoint visibility change from internal to public func (s *Hotspots) ChangeStatus(ctx context.Context, r hotspots.ChangeStatusRequest) (*http.Response, error) { u := fmt.Sprintf("%s/change_status", s.path) @@ -34,13 +35,14 @@ func (s *Hotspots) ChangeStatus(ctx context.Context, r hotspots.ChangeStatusRequ // When issue indexing is in progress returns 503 service unavailable HTTP code. // Since 8.1 // Changelog: -// 10.2: Parameter 'projectKey' renamed to 'project' -// 10.0: Parameter 'sansTop25' is deprecated -// 9.8: Endpoint visibility change from internal to public -// 9.8: Add message formatting to issue and locations response -// 9.7: Hotspot flows in the response may contain a description and a type -// 9.7: Hotspot in the response contain the corresponding ruleKey -// 9.6: Added parameters 'pciDss-3.2' and 'pciDss-4.0 +// +// 10.2: Parameter 'projectKey' renamed to 'project' +// 10.0: Parameter 'sansTop25' is deprecated +// 9.8: Endpoint visibility change from internal to public +// 9.8: Add message formatting to issue and locations response +// 9.7: Hotspot flows in the response may contain a description and a type +// 9.7: Hotspot in the response contain the corresponding ruleKey +// 9.6: Added parameters 'pciDss-3.2' and 'pciDss-4.0 func (s *Hotspots) Search(ctx context.Context, r hotspots.SearchRequest, p paging.Params) (*hotspots.SearchResponse, *http.Response, error) { u := fmt.Sprintf("%s/search", s.path) v := new(hotspots.SearchResponse) @@ -78,10 +80,11 @@ func (s *Hotspots) SearchAll(ctx context.Context, r hotspots.SearchRequest) (*ho // Show - Provides the details of a Security Hotspot. // Since 8.1 // Changelog: -// 10.1: Add the 'codeVariants' response field -// 9.8: Add message formatting to issue and locations response -// 9.7: Hotspot flows in the response may contain a description and a type -// 9.5: The fields rule.riskDescription, rule.fixRecommendations, rule.vulnerabilityDescription of the response are deprecated. /api/rules/show endpoint should be used to fetch rule descriptions. +// +// 10.1: Add the 'codeVariants' response field +// 9.8: Add message formatting to issue and locations response +// 9.7: Hotspot flows in the response may contain a description and a type +// 9.5: The fields rule.riskDescription, rule.fixRecommendations, rule.vulnerabilityDescription of the response are deprecated. /api/rules/show endpoint should be used to fetch rule descriptions. func (s *Hotspots) Show(ctx context.Context, r hotspots.ShowRequest) (*hotspots.ShowResponse, *http.Response, error) { u := fmt.Sprintf("%s/show", s.path) v := new(hotspots.ShowResponse) diff --git a/sonarqube/issues_gen.go b/sonarqube/issues_gen.go index f42edc5..70c5fdc 100644 --- a/sonarqube/issues_gen.go +++ b/sonarqube/issues_gen.go @@ -16,15 +16,16 @@ type Issues service // Requires authentication and the following permission: 'Browse' on the project of the specified issue. // Since 3.6 // Changelog: -// 10.4: The response fields 'severity' and 'type' are deprecated. Please use 'impacts' instead. -// 10.4: The response fields 'status' and 'resolution' are deprecated. Please use 'issueStatus' instead. -// 10.4: Add 'issueStatus' field to the response. -// 10.2: Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response -// 9.6: Response field 'ruleDescriptionContextKey' added -// 8.8: The response field components.uuid is removed -// 6.5: the database ids of the components are removed from the response -// 6.5: the response field components.uuid is deprecated. Use components.key instead. -// 6.3: the response returns the issue with all its details +// +// 10.4: The response fields 'severity' and 'type' are deprecated. Please use 'impacts' instead. +// 10.4: The response fields 'status' and 'resolution' are deprecated. Please use 'issueStatus' instead. +// 10.4: Add 'issueStatus' field to the response. +// 10.2: Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response +// 9.6: Response field 'ruleDescriptionContextKey' added +// 8.8: The response field components.uuid is removed +// 6.5: the database ids of the components are removed from the response +// 6.5: the response field components.uuid is deprecated. Use components.key instead. +// 6.3: the response returns the issue with all its details func (s *Issues) AddComment(ctx context.Context, r issues.AddCommentRequest) (*issues.AddCommentResponse, *http.Response, error) { u := fmt.Sprintf("%s/add_comment", s.path) v := new(issues.AddCommentResponse) @@ -40,14 +41,15 @@ func (s *Issues) AddComment(ctx context.Context, r issues.AddCommentRequest) (*i // Assign - Assign/Unassign an issue. Requires authentication and Browse permission on project // Since 3.6 // Changelog: -// 10.4: The response fields 'severity' and 'type' are deprecated. Please use 'impacts' instead. -// 10.4: The response fields 'status' and 'resolution' are deprecated. Please use 'issueStatus' instead. -// 10.4: Add 'issueStatus' field to the response. -// 10.2: Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response -// 9.6: Response field 'ruleDescriptionContextKey' added -// 8.8: The response field components.uuid is removed -// 6.5: the database ids of the components are removed from the response -// 6.5: the response field components.uuid is deprecated. Use components.key instead. +// +// 10.4: The response fields 'severity' and 'type' are deprecated. Please use 'impacts' instead. +// 10.4: The response fields 'status' and 'resolution' are deprecated. Please use 'issueStatus' instead. +// 10.4: Add 'issueStatus' field to the response. +// 10.2: Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response +// 9.6: Response field 'ruleDescriptionContextKey' added +// 8.8: The response field components.uuid is removed +// 6.5: the database ids of the components are removed from the response +// 6.5: the response field components.uuid is deprecated. Use components.key instead. func (s *Issues) Assign(ctx context.Context, r issues.AssignRequest) (*issues.AssignResponse, *http.Response, error) { u := fmt.Sprintf("%s/assign", s.path) v := new(issues.AssignResponse) @@ -65,7 +67,8 @@ func (s *Issues) Assign(ctx context.Context, r issues.AssignRequest) (*issues.As // When issue indexing is in progress returns 503 service unavailable HTTP code. // Since 5.1 // Changelog: -// 7.4: The maximum size of 'ps' is set to 100 +// +// 7.4: The maximum size of 'ps' is set to 100 func (s *Issues) Authors(ctx context.Context, r issues.AuthorsRequest) (*issues.AuthorsResponse, *http.Response, error) { u := fmt.Sprintf("%s/authors", s.path) v := new(issues.AuthorsResponse) @@ -82,12 +85,13 @@ func (s *Issues) Authors(ctx context.Context, r issues.AuthorsRequest) (*issues. // Requires authentication. // Since 3.7 // Changelog: -// 10.4: Transitions 'wontfix' and 'confirm' are now deprecated. Use transition 'accept' instead. The transition 'unconfirm' is deprecated too. -// 10.4: Transition 'accept' is now supported. -// 10.2: Parameters 'set_severity' and 'set_type' are now deprecated. -// 8.2: Security hotspots are no longer supported and will be ignored. -// 8.2: Transitions 'setinreview', 'resolveasreviewed' and 'openasvulnerability' are no more supported -// 6.3: 'actions' parameter is ignored +// +// 10.4: Transitions 'wontfix' and 'confirm' are now deprecated. Use transition 'accept' instead. The transition 'unconfirm' is deprecated too. +// 10.4: Transition 'accept' is now supported. +// 10.2: Parameters 'set_severity' and 'set_type' are now deprecated. +// 8.2: Security hotspots are no longer supported and will be ignored. +// 8.2: Transitions 'setinreview', 'resolveasreviewed' and 'openasvulnerability' are no more supported +// 6.3: 'actions' parameter is ignored func (s *Issues) BulkChange(ctx context.Context, r issues.BulkChangeRequest) (*issues.BulkChangeResponse, *http.Response, error) { u := fmt.Sprintf("%s/bulk_change", s.path) v := new(issues.BulkChangeResponse) @@ -104,10 +108,11 @@ func (s *Issues) BulkChange(ctx context.Context, r issues.BulkChangeRequest) (*i // Requires the 'Browse' permission on the project of the specified issue. // Since 4.1 // Changelog: -// 10.4: 'issueStatus' key is added in the differences -// 10.4: 'status', 'resolution', 'severity' and 'type' keys are now deprecated in the differences -// 9.7: 'externalUser' and 'webhookSource' information added to the answer -// 6.3: changes on effort is expressed with the raw value in minutes (instead of the duration previously) +// +// 10.4: 'issueStatus' key is added in the differences +// 10.4: 'status', 'resolution', 'severity' and 'type' keys are now deprecated in the differences +// 9.7: 'externalUser' and 'webhookSource' information added to the answer +// 6.3: changes on effort is expressed with the raw value in minutes (instead of the duration previously) func (s *Issues) Changelog(ctx context.Context, r issues.ChangelogRequest) (*issues.ChangelogResponse, *http.Response, error) { u := fmt.Sprintf("%s/changelog", s.path) v := new(issues.ChangelogResponse) @@ -124,16 +129,17 @@ func (s *Issues) Changelog(ctx context.Context, r issues.ChangelogRequest) (*iss // Requires authentication and the following permission: 'Browse' on the project of the specified issue. // Since 3.6 // Changelog: -// 10.4: The response fields 'severity' and 'type' are deprecated. Please use 'impacts' instead. -// 10.4: The response fields 'status' and 'resolution' are deprecated. Please use 'issueStatus' instead. -// 10.4: Add 'issueStatus' field to the response. -// 10.2: Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response -// 9.6: Response field 'ruleDescriptionContextKey' added -// 8.8: The response field components.uuid is removed -// 6.5: the response field components.uuid is deprecated. Use components.key instead. -// 6.5: the database ids of the components are removed from the response -// 6.3: the response returns the issue with all its details -// 6.3: the 'key' parameter is renamed 'comment' +// +// 10.4: The response fields 'severity' and 'type' are deprecated. Please use 'impacts' instead. +// 10.4: The response fields 'status' and 'resolution' are deprecated. Please use 'issueStatus' instead. +// 10.4: Add 'issueStatus' field to the response. +// 10.2: Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response +// 9.6: Response field 'ruleDescriptionContextKey' added +// 8.8: The response field components.uuid is removed +// 6.5: the response field components.uuid is deprecated. Use components.key instead. +// 6.5: the database ids of the components are removed from the response +// 6.3: the response returns the issue with all its details +// 6.3: the 'key' parameter is renamed 'comment' func (s *Issues) DeleteComment(ctx context.Context, r issues.DeleteCommentRequest) (*issues.DeleteCommentResponse, *http.Response, error) { u := fmt.Sprintf("%s/delete_comment", s.path) v := new(issues.DeleteCommentResponse) @@ -154,19 +160,20 @@ func (s *Issues) DeleteComment(ctx context.Context, r issues.DeleteCommentReques // // Since 3.6 // Changelog: -// 10.4: The transitions 'wontfix' and 'confirm' are deprecated. Please use 'accept' instead. The transition 'unconfirm' is deprecated too. -// 10.4: Add transition 'accept'. -// 10.4: The response fields 'severity' and 'type' are deprecated. Please use 'impacts' instead. -// 10.4: The response fields 'status' and 'resolution' are deprecated. Please use 'issueStatus' instead. -// 10.4: Add 'issueStatus' field to the response. -// 10.2: Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response -// 9.6: Response field 'ruleDescriptionContextKey' added -// 8.8: The response field components.uuid is removed -// 8.1: transitions 'setinreview' and 'openasvulnerability' are no more supported -// 7.8: added 'setinreview', resolveasreviewed, openasvulnerability and resetastoreview transitions for security hotspots -// 7.3: added transitions for security hotspots -// 6.5: the database ids of the components are removed from the response -// 6.5: the response field components.uuid is deprecated. Use components.key instead. +// +// 10.4: The transitions 'wontfix' and 'confirm' are deprecated. Please use 'accept' instead. The transition 'unconfirm' is deprecated too. +// 10.4: Add transition 'accept'. +// 10.4: The response fields 'severity' and 'type' are deprecated. Please use 'impacts' instead. +// 10.4: The response fields 'status' and 'resolution' are deprecated. Please use 'issueStatus' instead. +// 10.4: Add 'issueStatus' field to the response. +// 10.2: Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response +// 9.6: Response field 'ruleDescriptionContextKey' added +// 8.8: The response field components.uuid is removed +// 8.1: transitions 'setinreview' and 'openasvulnerability' are no more supported +// 7.8: added 'setinreview', resolveasreviewed, openasvulnerability and resetastoreview transitions for security hotspots +// 7.3: added transitions for security hotspots +// 6.5: the database ids of the components are removed from the response +// 6.5: the response field components.uuid is deprecated. Use components.key instead. func (s *Issues) DoTransition(ctx context.Context, r issues.DoTransitionRequest) (*issues.DoTransitionResponse, *http.Response, error) { u := fmt.Sprintf("%s/do_transition", s.path) v := new(issues.DoTransitionResponse) @@ -183,16 +190,17 @@ func (s *Issues) DoTransition(ctx context.Context, r issues.DoTransitionRequest) // Requires authentication and the following permission: 'Browse' on the project of the specified issue. // Since 3.6 // Changelog: -// 10.4: The response fields 'severity' and 'type' are deprecated. Please use 'impacts' instead. -// 10.4: The response fields 'status' and 'resolution' are deprecated. Please use 'issueStatus' instead. -// 10.4: Add 'issueStatus' field to the response. -// 10.2: Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response -// 9.6: Response field 'ruleDescriptionContextKey' added -// 8.8: The response field components.uuid is removed -// 6.5: the database ids of the components are removed from the response -// 6.5: the response field components.uuid is deprecated. Use components.key instead. -// 6.3: the response returns the issue with all its details -// 6.3: the 'key' parameter has been renamed comment +// +// 10.4: The response fields 'severity' and 'type' are deprecated. Please use 'impacts' instead. +// 10.4: The response fields 'status' and 'resolution' are deprecated. Please use 'issueStatus' instead. +// 10.4: Add 'issueStatus' field to the response. +// 10.2: Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response +// 9.6: Response field 'ruleDescriptionContextKey' added +// 8.8: The response field components.uuid is removed +// 6.5: the database ids of the components are removed from the response +// 6.5: the response field components.uuid is deprecated. Use components.key instead. +// 6.3: the response returns the issue with all its details +// 6.3: the 'key' parameter has been renamed comment func (s *Issues) EditComment(ctx context.Context, r issues.EditCommentRequest) (*issues.EditCommentResponse, *http.Response, error) { u := fmt.Sprintf("%s/edit_comment", s.path) v := new(issues.EditCommentResponse) @@ -208,7 +216,6 @@ func (s *Issues) EditComment(ctx context.Context, r issues.EditCommentRequest) ( // GitlabSastExport - Return a list of vulnerabilities according to the Gitlab SAST JSON format. // The JSON produced can be used in GitLab for generating the Vulnerability Report.Requires the 'Browse' or 'Scan' permission on the specified project. // Since 10.2 -// Changelog: func (s *Issues) GitlabSastExport(ctx context.Context, r issues.GitlabSastExportRequest) (*issues.GitlabSastExportResponse, *http.Response, error) { u := fmt.Sprintf("%s/gitlab_sast_export", s.path) v := new(issues.GitlabSastExportResponse) @@ -224,7 +231,6 @@ func (s *Issues) GitlabSastExport(ctx context.Context, r issues.GitlabSastExport // Reindex - Reindex issues for a project. // Require 'Administer System' permission. // Since 9.8 -// Changelog: func (s *Issues) Reindex(ctx context.Context, r issues.ReindexRequest) (*http.Response, error) { u := fmt.Sprintf("%s/reindex", s.path) @@ -242,68 +248,69 @@ func (s *Issues) Reindex(ctx context.Context, r issues.ReindexRequest) (*http.Re // When issue indexing is in progress returns 503 service unavailable HTTP code. // Since 3.6 // Changelog: -// 10.6: Facet 'prioritizedRule' has been added -// 10.6: Param 'prioritizedRule' has been added -// 10.4: Added new param 'fixedInPullRequest' -// 10.4: Value 'wontfix' for 'transition' response field is deprecated, use 'accept' instead -// 10.4: Possible value 'accept' for 'transition' response field has been added -// 10.4: Param 'issueStatuses' has been added -// 10.4: Parameters 'resolutions' and 'statuses' are deprecated in favor of 'issueStatuses'. -// 10.4: Parameters 'severities' and 'types' are deprecated, use 'impactSeverities' and 'impactSoftwareQualities' instead. -// 10.4: Facet 'issueStatuses' has been added -// 10.4: Facets 'resolutions' and 'statuses' are deprecated in favor of 'issueStatuses' -// 10.4: Response fields 'severity' and 'type' are deprecated, use 'impacts' instead. -// 10.4: Response field 'issueStatus' added -// 10.4: Response fields 'status' and 'resolutions' are deprecated, in favor of 'issueStatus' -// 10.4: Possible value 'CONFIRMED' for 'issueStatus' field is deprecated. -// 10.2: Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response -// 10.2: Param 'impactSoftwareQualities' has been added -// 10.2: Param 'impactSeverities' has been added -// 10.2: Param 'cleanCodeAttributeCategories' has been added -// 10.2: Facet 'impactSoftwareQualities' has been added -// 10.2: Facet 'impactSeverities' has been added -// 10.2: Facet 'cleanCodeAttributeCategories' has been added -// 10.2: Parameter 'componentKeys' renamed to 'components' -// 10.1: Add the 'codeVariants' parameter, facet and response field -// 10.0: Parameter 'sansTop25' is deprecated -// 10.0: The value 'sansTop25' for the parameter 'facets' has been deprecated -// 10.0: Deprecated value 'ASSIGNEE' in parameter 's' is dropped -// 10.0: Parameter 'sinceLeakPeriod' is removed, please use 'inNewCodePeriod' instead -// 9.8: Add message formatting to issue and locations response -// 9.8: response fields 'total', 's', 'ps' have been deprecated, please use 'paging' object instead -// 9.7: Issues flows in the response may contain a description and a type -// 9.6: Response field 'fromHotspot' dropped. -// 9.6: Added facets 'pciDss-3.2' and 'pciDss-4.0 -// 9.6: Added parameters 'pciDss-3.2' and 'pciDss-4.0 -// 9.6: Response field 'ruleDescriptionContextKey' added -// 9.6: New possible value for 'additionalFields' parameter: 'ruleDescriptionContextKey' -// 9.6: Facet 'moduleUuids' is dropped. -// 9.4: Parameter 'sinceLeakPeriod' is deprecated, please use 'inNewCodePeriod' instead -// 9.2: Response field 'quickFixAvailable' added -// 9.1: Deprecated parameters 'authors', 'facetMode' and 'moduleUuids' were dropped -// 8.6: Parameter 'timeZone' added -// 8.5: Facet 'fileUuids' is dropped in favour of the new facet 'files'Note that they are not strictly identical, the latter returns the file paths. -// 8.5: Internal parameter 'fileUuids' has been dropped -// 8.4: parameters 'componentUuids', 'projectKeys' has been dropped. -// 8.2: 'REVIEWED', 'TO_REVIEW' status param values are no longer supported -// 8.2: Security hotspots are no longer returned as type 'SECURITY_HOTSPOT' is not supported anymore, use dedicated api/hotspots -// 8.2: response field 'fromHotspot' has been deprecated and is no more populated -// 8.2: Status 'IN_REVIEW' for Security Hotspots has been deprecated -// 7.8: added new Security Hotspots statuses : TO_REVIEW, IN_REVIEW and REVIEWED -// 7.8: Security hotspots are returned by default -// 7.7: Value 'authors' in parameter 'facets' is deprecated, please use 'author' instead -// 7.6: The use of module keys in parameter 'componentKeys' is deprecated -// 7.4: The facet 'projectUuids' is dropped in favour of the new facet 'projects'. Note that they are not strictly identical, the latter returns the project keys. -// 7.4: Parameter 'facetMode' does not accept anymore deprecated value 'debt' -// 7.3: response field 'fromHotspot' added to issues that are security hotspots -// 7.3: added facets 'sansTop25', 'owaspTop10' and 'cwe' -// 7.2: response field 'externalRuleEngine' added to issues that have been imported from an external rule engine -// 7.2: value 'ASSIGNEE' in parameter 's' is deprecated, it won't have any effect -// 6.5: parameters 'projects', 'projectUuids', 'moduleUuids', 'directories', 'fileUuids' are marked as internal -// 6.3: response field 'email' is renamed 'avatar' -// 5.5: response fields 'reporter' and 'actionPlan' are removed (drop of action plan and manual issue features) -// 5.5: parameters 'reporters', 'actionPlans' and 'planned' are dropped and therefore ignored (drop of action plan and manual issue features) -// 5.5: response field 'debt' is renamed 'effort' +// +// 10.6: Facet 'prioritizedRule' has been added +// 10.6: Param 'prioritizedRule' has been added +// 10.4: Added new param 'fixedInPullRequest' +// 10.4: Value 'wontfix' for 'transition' response field is deprecated, use 'accept' instead +// 10.4: Possible value 'accept' for 'transition' response field has been added +// 10.4: Param 'issueStatuses' has been added +// 10.4: Parameters 'resolutions' and 'statuses' are deprecated in favor of 'issueStatuses'. +// 10.4: Parameters 'severities' and 'types' are deprecated, use 'impactSeverities' and 'impactSoftwareQualities' instead. +// 10.4: Facet 'issueStatuses' has been added +// 10.4: Facets 'resolutions' and 'statuses' are deprecated in favor of 'issueStatuses' +// 10.4: Response fields 'severity' and 'type' are deprecated, use 'impacts' instead. +// 10.4: Response field 'issueStatus' added +// 10.4: Response fields 'status' and 'resolutions' are deprecated, in favor of 'issueStatus' +// 10.4: Possible value 'CONFIRMED' for 'issueStatus' field is deprecated. +// 10.2: Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response +// 10.2: Param 'impactSoftwareQualities' has been added +// 10.2: Param 'impactSeverities' has been added +// 10.2: Param 'cleanCodeAttributeCategories' has been added +// 10.2: Facet 'impactSoftwareQualities' has been added +// 10.2: Facet 'impactSeverities' has been added +// 10.2: Facet 'cleanCodeAttributeCategories' has been added +// 10.2: Parameter 'componentKeys' renamed to 'components' +// 10.1: Add the 'codeVariants' parameter, facet and response field +// 10.0: Parameter 'sansTop25' is deprecated +// 10.0: The value 'sansTop25' for the parameter 'facets' has been deprecated +// 10.0: Deprecated value 'ASSIGNEE' in parameter 's' is dropped +// 10.0: Parameter 'sinceLeakPeriod' is removed, please use 'inNewCodePeriod' instead +// 9.8: Add message formatting to issue and locations response +// 9.8: response fields 'total', 's', 'ps' have been deprecated, please use 'paging' object instead +// 9.7: Issues flows in the response may contain a description and a type +// 9.6: Response field 'fromHotspot' dropped. +// 9.6: Added facets 'pciDss-3.2' and 'pciDss-4.0 +// 9.6: Added parameters 'pciDss-3.2' and 'pciDss-4.0 +// 9.6: Response field 'ruleDescriptionContextKey' added +// 9.6: New possible value for 'additionalFields' parameter: 'ruleDescriptionContextKey' +// 9.6: Facet 'moduleUuids' is dropped. +// 9.4: Parameter 'sinceLeakPeriod' is deprecated, please use 'inNewCodePeriod' instead +// 9.2: Response field 'quickFixAvailable' added +// 9.1: Deprecated parameters 'authors', 'facetMode' and 'moduleUuids' were dropped +// 8.6: Parameter 'timeZone' added +// 8.5: Facet 'fileUuids' is dropped in favour of the new facet 'files'Note that they are not strictly identical, the latter returns the file paths. +// 8.5: Internal parameter 'fileUuids' has been dropped +// 8.4: parameters 'componentUuids', 'projectKeys' has been dropped. +// 8.2: 'REVIEWED', 'TO_REVIEW' status param values are no longer supported +// 8.2: Security hotspots are no longer returned as type 'SECURITY_HOTSPOT' is not supported anymore, use dedicated api/hotspots +// 8.2: response field 'fromHotspot' has been deprecated and is no more populated +// 8.2: Status 'IN_REVIEW' for Security Hotspots has been deprecated +// 7.8: added new Security Hotspots statuses : TO_REVIEW, IN_REVIEW and REVIEWED +// 7.8: Security hotspots are returned by default +// 7.7: Value 'authors' in parameter 'facets' is deprecated, please use 'author' instead +// 7.6: The use of module keys in parameter 'componentKeys' is deprecated +// 7.4: The facet 'projectUuids' is dropped in favour of the new facet 'projects'. Note that they are not strictly identical, the latter returns the project keys. +// 7.4: Parameter 'facetMode' does not accept anymore deprecated value 'debt' +// 7.3: response field 'fromHotspot' added to issues that are security hotspots +// 7.3: added facets 'sansTop25', 'owaspTop10' and 'cwe' +// 7.2: response field 'externalRuleEngine' added to issues that have been imported from an external rule engine +// 7.2: value 'ASSIGNEE' in parameter 's' is deprecated, it won't have any effect +// 6.5: parameters 'projects', 'projectUuids', 'moduleUuids', 'directories', 'fileUuids' are marked as internal +// 6.3: response field 'email' is renamed 'avatar' +// 5.5: response fields 'reporter' and 'actionPlan' are removed (drop of action plan and manual issue features) +// 5.5: parameters 'reporters', 'actionPlans' and 'planned' are dropped and therefore ignored (drop of action plan and manual issue features) +// 5.5: response field 'debt' is renamed 'effort' func (s *Issues) Search(ctx context.Context, r issues.SearchRequest, p paging.Params) (*issues.SearchResponse, *http.Response, error) { u := fmt.Sprintf("%s/search", s.path) v := new(issues.SearchResponse) @@ -350,14 +357,15 @@ func (s *Issues) SearchAll(ctx context.Context, r issues.SearchRequest) (*issues // Since 3.6 // Deprecated since 10.2 // Changelog: -// 10.4: The response fields 'status' and 'resolution' are deprecated. Please use 'issueStatus' instead. -// 10.4: Add 'issueStatus' field to the response. -// 10.2: This endpoint is now deprecated. -// 10.2: Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response -// 9.6: Response field 'ruleDescriptionContextKey' added -// 8.8: The response field components.uuid is removed -// 6.5: the database ids of the components are removed from the response -// 6.5: the response field components.uuid is deprecated. Use components.key instead. +// +// 10.4: The response fields 'status' and 'resolution' are deprecated. Please use 'issueStatus' instead. +// 10.4: Add 'issueStatus' field to the response. +// 10.2: This endpoint is now deprecated. +// 10.2: Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response +// 9.6: Response field 'ruleDescriptionContextKey' added +// 8.8: The response field components.uuid is removed +// 6.5: the database ids of the components are removed from the response +// 6.5: the response field components.uuid is deprecated. Use components.key instead. func (s *Issues) SetSeverity(ctx context.Context, r issues.SetSeverityRequest) (*issues.SetSeverityResponse, *http.Response, error) { u := fmt.Sprintf("%s/set_severity", s.path) v := new(issues.SetSeverityResponse) @@ -374,15 +382,16 @@ func (s *Issues) SetSeverity(ctx context.Context, r issues.SetSeverityRequest) ( // Requires authentication and Browse permission on project // Since 5.1 // Changelog: -// 10.4: The response fields 'severity' and 'type' are deprecated. Please use 'impacts' instead. -// 10.4: The response fields 'status' and 'resolution' are deprecated. Please use 'issueStatus' instead. -// 10.4: Add 'issueStatus' field to the response. -// 10.2: Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response -// 9.6: Response field 'ruleDescriptionContextKey' added -// 8.8: The response field components.uuid is removed -// 6.5: the database ids of the components are removed from the response -// 6.5: the response field components.uuid is deprecated. Use components.key instead. -// 6.4: response contains issue information instead of list of tags +// +// 10.4: The response fields 'severity' and 'type' are deprecated. Please use 'impacts' instead. +// 10.4: The response fields 'status' and 'resolution' are deprecated. Please use 'issueStatus' instead. +// 10.4: Add 'issueStatus' field to the response. +// 10.2: Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response +// 9.6: Response field 'ruleDescriptionContextKey' added +// 8.8: The response field components.uuid is removed +// 6.5: the database ids of the components are removed from the response +// 6.5: the response field components.uuid is deprecated. Use components.key instead. +// 6.4: response contains issue information instead of list of tags func (s *Issues) SetTags(ctx context.Context, r issues.SetTagsRequest) (*issues.SetTagsResponse, *http.Response, error) { u := fmt.Sprintf("%s/set_tags", s.path) v := new(issues.SetTagsResponse) @@ -404,14 +413,15 @@ func (s *Issues) SetTags(ctx context.Context, r issues.SetTagsRequest) (*issues. // Since 5.5 // Deprecated since 10.2 // Changelog: -// 10.4: The response fields 'status' and 'resolution' are deprecated. Please use 'issueStatus' instead. -// 10.4: Add 'issueStatus' field to the response. -// 10.2: Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response -// 10.2: This endpoint is now deprecated. -// 9.6: Response field 'ruleDescriptionContextKey' added -// 8.8: The response field components.uuid is removed -// 6.5: the database ids of the components are removed from the response -// 6.5: the response field components.uuid is deprecated. Use components.key instead. +// +// 10.4: The response fields 'status' and 'resolution' are deprecated. Please use 'issueStatus' instead. +// 10.4: Add 'issueStatus' field to the response. +// 10.2: Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response +// 10.2: This endpoint is now deprecated. +// 9.6: Response field 'ruleDescriptionContextKey' added +// 8.8: The response field components.uuid is removed +// 6.5: the database ids of the components are removed from the response +// 6.5: the response field components.uuid is deprecated. Use components.key instead. func (s *Issues) SetType(ctx context.Context, r issues.SetTypeRequest) (*issues.SetTypeResponse, *http.Response, error) { u := fmt.Sprintf("%s/set_type", s.path) v := new(issues.SetTypeResponse) @@ -427,8 +437,9 @@ func (s *Issues) SetType(ctx context.Context, r issues.SetTypeRequest) (*issues. // Tags - List tags matching a given query // Since 5.1 // Changelog: -// 9.4: Max page size increased to 500 -// 7.4: Result doesn't include rules tags anymore +// +// 9.4: Max page size increased to 500 +// 7.4: Result doesn't include rules tags anymore func (s *Issues) Tags(ctx context.Context, r issues.TagsRequest) (*issues.TagsResponse, *http.Response, error) { u := fmt.Sprintf("%s/tags", s.path) v := new(issues.TagsResponse) diff --git a/sonarqube/languages_gen.go b/sonarqube/languages_gen.go index 10d21b0..fc236a9 100644 --- a/sonarqube/languages_gen.go +++ b/sonarqube/languages_gen.go @@ -13,7 +13,6 @@ type Languages service // List - List supported programming languages // Since 5.1 -// Changelog: func (s *Languages) List(ctx context.Context, r languages.ListRequest) (*languages.ListResponse, *http.Response, error) { u := fmt.Sprintf("%s/list", s.path) v := new(languages.ListResponse) diff --git a/sonarqube/measures_gen.go b/sonarqube/measures_gen.go index c050158..fc4d994 100644 --- a/sonarqube/measures_gen.go +++ b/sonarqube/measures_gen.go @@ -16,28 +16,29 @@ type Measures service // Requires the following permission: 'Browse' on the project of specified component. // Since 5.4 // Changelog: -// 10.5: The metrics 'new_blocker_violations', 'new_critical_violations', 'new_major_violations', 'new_minor_violations', 'new_info_violations', 'blocker_violations', 'critical_violations', 'major_violations', 'minor_violations', 'info_violations' are now deprecated without exact replacement. Use 'maintainability_issues', 'reliability_issues' and 'security_issues' instead. -// 10.5: Added new accepted values for the 'metricKeys' param: 'new_maintainability_issues', 'new_reliability_issues', 'new_security_issues' -// 10.4: The metrics 'bugs', 'new_bugs', 'vulnerabilities', 'new_vulnerabilities', 'code_smells', 'new_code_smells', 'high_impact_accepted_issues' are now deprecated without exact replacement. Use 'maintainability_issues', 'reliability_issues' and 'security_issues' instead. -// 10.4: Added new accepted values for the 'metricKeys' param: 'maintainability_issues', 'reliability_issues', 'security_issues' -// 10.4: The metrics 'open_issues', 'reopened_issues' and 'confirmed_issues' are now deprecated in the response. Consume 'violations' instead. -// 10.4: The use of 'open_issues', 'reopened_issues' and 'confirmed_issues' values in 'metricKeys' param are now deprecated. Use 'violations' instead. -// 10.4: The metric 'wont_fix_issues' is now deprecated in the response. Consume 'accepted_issues' instead. -// 10.4: The use of 'wont_fix_issues' value in 'metricKeys' param is now deprecated. Use 'accepted_issues' instead. -// 10.4: Added new accepted value for the 'metricKeys' param: 'accepted_issues'. -// 10.1: The use of module keys in parameter 'component' is removed -// 10.0: The use of the following metrics in 'metricKeys' parameter is not deprecated anymore: 'releasability_effort', 'security_rating_effort', 'reliability_rating_effort', 'security_review_rating_effort', 'maintainability_rating_effort', 'last_change_on_maintainability_rating', 'last_change_on_releasability_rating', 'last_change_on_reliability_rating', 'last_change_on_security_rating', 'last_change_on_security_review_rating' -// 10.0: the response field periods under measures field is removed. -// 10.0: the option `periods` of 'additionalFields' request field is removed. -// 9.3: When the new code period is set to 'reference branch', the response field 'date' under the 'period' field has been removed -// 9.3: The use of the following metrics in 'metricKeys' parameter is deprecated: 'releasability_effort', 'security_rating_effort', 'reliability_rating_effort', 'security_review_rating_effort', 'maintainability_rating_effort', 'last_change_on_maintainability_rating', 'last_change_on_releasability_rating', 'last_change_on_reliability_rating', 'last_change_on_security_rating', 'last_change_on_security_review_rating' -// 8.8: deprecated response field 'id' has been removed -// 8.8: deprecated response field 'refId' has been removed. -// 8.1: the response field periods under measures field is deprecated. Use period instead. -// 8.1: the response field periods is deprecated. Use period instead. -// 7.6: The use of module keys in parameter 'component' is deprecated -// 6.6: the response field 'id' is deprecated. Use 'key' instead. -// 6.6: the response field 'refId' is deprecated. Use 'refKey' instead. +// +// 10.5: The metrics 'new_blocker_violations', 'new_critical_violations', 'new_major_violations', 'new_minor_violations', 'new_info_violations', 'blocker_violations', 'critical_violations', 'major_violations', 'minor_violations', 'info_violations' are now deprecated without exact replacement. Use 'maintainability_issues', 'reliability_issues' and 'security_issues' instead. +// 10.5: Added new accepted values for the 'metricKeys' param: 'new_maintainability_issues', 'new_reliability_issues', 'new_security_issues' +// 10.4: The metrics 'bugs', 'new_bugs', 'vulnerabilities', 'new_vulnerabilities', 'code_smells', 'new_code_smells', 'high_impact_accepted_issues' are now deprecated without exact replacement. Use 'maintainability_issues', 'reliability_issues' and 'security_issues' instead. +// 10.4: Added new accepted values for the 'metricKeys' param: 'maintainability_issues', 'reliability_issues', 'security_issues' +// 10.4: The metrics 'open_issues', 'reopened_issues' and 'confirmed_issues' are now deprecated in the response. Consume 'violations' instead. +// 10.4: The use of 'open_issues', 'reopened_issues' and 'confirmed_issues' values in 'metricKeys' param are now deprecated. Use 'violations' instead. +// 10.4: The metric 'wont_fix_issues' is now deprecated in the response. Consume 'accepted_issues' instead. +// 10.4: The use of 'wont_fix_issues' value in 'metricKeys' param is now deprecated. Use 'accepted_issues' instead. +// 10.4: Added new accepted value for the 'metricKeys' param: 'accepted_issues'. +// 10.1: The use of module keys in parameter 'component' is removed +// 10.0: The use of the following metrics in 'metricKeys' parameter is not deprecated anymore: 'releasability_effort', 'security_rating_effort', 'reliability_rating_effort', 'security_review_rating_effort', 'maintainability_rating_effort', 'last_change_on_maintainability_rating', 'last_change_on_releasability_rating', 'last_change_on_reliability_rating', 'last_change_on_security_rating', 'last_change_on_security_review_rating' +// 10.0: the response field periods under measures field is removed. +// 10.0: the option `periods` of 'additionalFields' request field is removed. +// 9.3: When the new code period is set to 'reference branch', the response field 'date' under the 'period' field has been removed +// 9.3: The use of the following metrics in 'metricKeys' parameter is deprecated: 'releasability_effort', 'security_rating_effort', 'reliability_rating_effort', 'security_review_rating_effort', 'maintainability_rating_effort', 'last_change_on_maintainability_rating', 'last_change_on_releasability_rating', 'last_change_on_reliability_rating', 'last_change_on_security_rating', 'last_change_on_security_review_rating' +// 8.8: deprecated response field 'id' has been removed +// 8.8: deprecated response field 'refId' has been removed. +// 8.1: the response field periods under measures field is deprecated. Use period instead. +// 8.1: the response field periods is deprecated. Use period instead. +// 7.6: The use of module keys in parameter 'component' is deprecated +// 6.6: the response field 'id' is deprecated. Use 'key' instead. +// 6.6: the response field 'refId' is deprecated. Use 'refKey' instead. func (s *Measures) Component(ctx context.Context, r measures.ComponentRequest) (*measures.ComponentResponse, *http.Response, error) { u := fmt.Sprintf("%s/component", s.path) v := new(measures.ComponentResponse) @@ -56,32 +57,33 @@ func (s *Measures) Component(ctx context.Context, r measures.ComponentRequest) ( // When limiting search with the q parameter, directories are not returned. // Since 5.4 // Changelog: -// 10.5: Added new accepted values for the 'metricKeys' param: 'new_maintainability_issues', 'new_reliability_issues', 'new_security_issues' -// 10.5: The metrics 'new_blocker_violations', 'new_critical_violations', 'new_major_violations', 'new_minor_violations', 'new_info_violations', 'blocker_violations', 'critical_violations', 'major_violations', 'minor_violations', 'info_violations' are now deprecated without exact replacement. Use 'maintainability_issues', 'reliability_issues' and 'security_issues' instead. -// 10.5: Added new accepted values for the 'metricKeys' param: 'maintainability_issues', 'reliability_issues', 'security_issues' -// 10.4: The metrics 'bugs', 'new_bugs', 'vulnerabilities', 'new_vulnerabilities', 'code_smells', 'new_code_smells', 'high_impact_accepted_issues' are now deprecated without exact replacement. Use 'maintainability_issues', 'reliability_issues' and 'security_issues' instead. -// 10.4: The metrics 'open_issues', 'reopened_issues' and 'confirmed_issues' are now deprecated in the response. Consume 'violations' instead. -// 10.4: The use of 'open_issues', 'reopened_issues' and 'confirmed_issues' values in 'metricKeys' param are now deprecated. Use 'violations' instead. -// 10.4: The metric 'wont_fix_issues' is now deprecated in the response. Consume 'accepted_issues' instead. -// 10.4: The use of 'wont_fix_issues' value in 'metricKeys' and 'metricSort' params is now deprecated. Use 'accepted_issues' instead. -// 10.4: Added new accepted value for the 'metricKeys' and 'metricSort' param: 'accepted_issues'. -// 10.1: The use of 'BRC' as value for parameter 'qualifiers' is removed -// 10.0: The use of the following metrics in 'metricKeys' parameter is not deprecated anymore: 'releasability_effort', 'security_rating_effort', 'reliability_rating_effort', 'security_review_rating_effort', 'maintainability_rating_effort', 'last_change_on_maintainability_rating', 'last_change_on_releasability_rating', 'last_change_on_reliability_rating', 'last_change_on_security_rating', 'last_change_on_security_review_rating' -// 10.0: the response field periods under measures field is removed. -// 10.0: the option `periods` of 'additionalFields' request field is removed. -// 9.3: The use of the following metrics in 'metricKeys' parameter is deprecated: 'releasability_effort', 'security_rating_effort', 'reliability_rating_effort', 'security_review_rating_effort', 'maintainability_rating_effort', 'last_change_on_maintainability_rating', 'last_change_on_releasability_rating', 'last_change_on_reliability_rating', 'last_change_on_security_rating', 'last_change_on_security_review_rating' -// 8.8: parameter 'component' is now required -// 8.8: deprecated parameter 'baseComponentId' has been removed -// 8.8: deprecated parameter 'baseComponentKey' has been removed. -// 8.8: deprecated response field 'id' has been removed -// 8.8: deprecated response field 'refId' has been removed. -// 8.1: the response field periods under measures field is deprecated. Use period instead. -// 8.1: the response field periods is deprecated. Use period instead. -// 7.6: The use of module keys in parameter 'component' is deprecated -// 7.2: field 'bestValue' is added to the response -// 6.6: the response field 'id' is deprecated. Use 'key' instead. -// 6.6: the response field 'refId' is deprecated. Use 'refKey' instead. -// 6.3: Number of metric keys is limited to 15 +// +// 10.5: Added new accepted values for the 'metricKeys' param: 'new_maintainability_issues', 'new_reliability_issues', 'new_security_issues' +// 10.5: The metrics 'new_blocker_violations', 'new_critical_violations', 'new_major_violations', 'new_minor_violations', 'new_info_violations', 'blocker_violations', 'critical_violations', 'major_violations', 'minor_violations', 'info_violations' are now deprecated without exact replacement. Use 'maintainability_issues', 'reliability_issues' and 'security_issues' instead. +// 10.5: Added new accepted values for the 'metricKeys' param: 'maintainability_issues', 'reliability_issues', 'security_issues' +// 10.4: The metrics 'bugs', 'new_bugs', 'vulnerabilities', 'new_vulnerabilities', 'code_smells', 'new_code_smells', 'high_impact_accepted_issues' are now deprecated without exact replacement. Use 'maintainability_issues', 'reliability_issues' and 'security_issues' instead. +// 10.4: The metrics 'open_issues', 'reopened_issues' and 'confirmed_issues' are now deprecated in the response. Consume 'violations' instead. +// 10.4: The use of 'open_issues', 'reopened_issues' and 'confirmed_issues' values in 'metricKeys' param are now deprecated. Use 'violations' instead. +// 10.4: The metric 'wont_fix_issues' is now deprecated in the response. Consume 'accepted_issues' instead. +// 10.4: The use of 'wont_fix_issues' value in 'metricKeys' and 'metricSort' params is now deprecated. Use 'accepted_issues' instead. +// 10.4: Added new accepted value for the 'metricKeys' and 'metricSort' param: 'accepted_issues'. +// 10.1: The use of 'BRC' as value for parameter 'qualifiers' is removed +// 10.0: The use of the following metrics in 'metricKeys' parameter is not deprecated anymore: 'releasability_effort', 'security_rating_effort', 'reliability_rating_effort', 'security_review_rating_effort', 'maintainability_rating_effort', 'last_change_on_maintainability_rating', 'last_change_on_releasability_rating', 'last_change_on_reliability_rating', 'last_change_on_security_rating', 'last_change_on_security_review_rating' +// 10.0: the response field periods under measures field is removed. +// 10.0: the option `periods` of 'additionalFields' request field is removed. +// 9.3: The use of the following metrics in 'metricKeys' parameter is deprecated: 'releasability_effort', 'security_rating_effort', 'reliability_rating_effort', 'security_review_rating_effort', 'maintainability_rating_effort', 'last_change_on_maintainability_rating', 'last_change_on_releasability_rating', 'last_change_on_reliability_rating', 'last_change_on_security_rating', 'last_change_on_security_review_rating' +// 8.8: parameter 'component' is now required +// 8.8: deprecated parameter 'baseComponentId' has been removed +// 8.8: deprecated parameter 'baseComponentKey' has been removed. +// 8.8: deprecated response field 'id' has been removed +// 8.8: deprecated response field 'refId' has been removed. +// 8.1: the response field periods under measures field is deprecated. Use period instead. +// 8.1: the response field periods is deprecated. Use period instead. +// 7.6: The use of module keys in parameter 'component' is deprecated +// 7.2: field 'bestValue' is added to the response +// 6.6: the response field 'id' is deprecated. Use 'key' instead. +// 6.6: the response field 'refId' is deprecated. Use 'refKey' instead. +// 6.3: Number of metric keys is limited to 15 func (s *Measures) ComponentTree(ctx context.Context, r measures.ComponentTreeRequest, p paging.Params) (*measures.ComponentTreeResponse, *http.Response, error) { u := fmt.Sprintf("%s/component_tree", s.path) v := new(measures.ComponentTreeResponse) @@ -123,17 +125,18 @@ func (s *Measures) ComponentTreeAll(ctx context.Context, r measures.ComponentTre // For applications, it also requires 'Browse' permission on its child projects. // Since 6.3 // Changelog: -// 10.5: The metrics 'new_blocker_violations', 'new_critical_violations', 'new_major_violations', 'new_minor_violations', 'new_info_violations', 'blocker_violations', 'critical_violations', 'major_violations', 'minor_violations', 'info_violations' are now deprecated without exact replacement. Use 'maintainability_issues', 'reliability_issues' and 'security_issues' instead. -// 10.5: Added new accepted values for the 'metricKeys' param: 'new_maintainability_issues', 'new_reliability_issues', 'new_security_issues' -// 10.4: The metrics 'bugs', 'new_bugs', 'vulnerabilities', 'new_vulnerabilities', 'code_smells', 'new_code_smells', 'high_impact_accepted_issues' are now deprecated without exact replacement. Use 'maintainability_issues', 'reliability_issues' and 'security_issues' instead. -// 10.4: The metrics 'open_issues', 'reopened_issues' and 'confirmed_issues' are now deprecated in the response. Consume 'violations' instead. -// 10.4: The use of 'open_issues', 'reopened_issues' and 'confirmed_issues' values in 'metricKeys' param are now deprecated. Use 'violations' instead. -// 10.4: The metric 'wont_fix_issues' is now deprecated in the response. Consume 'accepted_issues' instead. -// 10.4: The use of 'wont_fix_issues' value in 'metricKeys' param is now deprecated. Use 'accepted_issues' instead. -// 10.4: Added new accepted value for the 'metricKeys' param: 'accepted_issues'. -// 10.0: The use of the following metrics in 'metricKeys' parameter is not deprecated anymore: 'releasability_effort', 'security_rating_effort', 'reliability_rating_effort', 'security_review_rating_effort', 'maintainability_rating_effort', 'last_change_on_maintainability_rating', 'last_change_on_releasability_rating', 'last_change_on_reliability_rating', 'last_change_on_security_rating', 'last_change_on_security_review_rating' -// 9.3: The use of the following metrics in 'metrics' parameter is deprecated: 'releasability_effort', 'security_rating_effort', 'reliability_rating_effort', 'security_review_rating_effort', 'maintainability_rating_effort', 'last_change_on_maintainability_rating', 'last_change_on_releasability_rating', 'last_change_on_reliability_rating', 'last_change_on_security_rating', 'last_change_on_security_review_rating' -// 7.6: The use of module keys in parameter 'component' is deprecated +// +// 10.5: The metrics 'new_blocker_violations', 'new_critical_violations', 'new_major_violations', 'new_minor_violations', 'new_info_violations', 'blocker_violations', 'critical_violations', 'major_violations', 'minor_violations', 'info_violations' are now deprecated without exact replacement. Use 'maintainability_issues', 'reliability_issues' and 'security_issues' instead. +// 10.5: Added new accepted values for the 'metricKeys' param: 'new_maintainability_issues', 'new_reliability_issues', 'new_security_issues' +// 10.4: The metrics 'bugs', 'new_bugs', 'vulnerabilities', 'new_vulnerabilities', 'code_smells', 'new_code_smells', 'high_impact_accepted_issues' are now deprecated without exact replacement. Use 'maintainability_issues', 'reliability_issues' and 'security_issues' instead. +// 10.4: The metrics 'open_issues', 'reopened_issues' and 'confirmed_issues' are now deprecated in the response. Consume 'violations' instead. +// 10.4: The use of 'open_issues', 'reopened_issues' and 'confirmed_issues' values in 'metricKeys' param are now deprecated. Use 'violations' instead. +// 10.4: The metric 'wont_fix_issues' is now deprecated in the response. Consume 'accepted_issues' instead. +// 10.4: The use of 'wont_fix_issues' value in 'metricKeys' param is now deprecated. Use 'accepted_issues' instead. +// 10.4: Added new accepted value for the 'metricKeys' param: 'accepted_issues'. +// 10.0: The use of the following metrics in 'metricKeys' parameter is not deprecated anymore: 'releasability_effort', 'security_rating_effort', 'reliability_rating_effort', 'security_review_rating_effort', 'maintainability_rating_effort', 'last_change_on_maintainability_rating', 'last_change_on_releasability_rating', 'last_change_on_reliability_rating', 'last_change_on_security_rating', 'last_change_on_security_review_rating' +// 9.3: The use of the following metrics in 'metrics' parameter is deprecated: 'releasability_effort', 'security_rating_effort', 'reliability_rating_effort', 'security_review_rating_effort', 'maintainability_rating_effort', 'last_change_on_maintainability_rating', 'last_change_on_releasability_rating', 'last_change_on_reliability_rating', 'last_change_on_security_rating', 'last_change_on_security_review_rating' +// 7.6: The use of module keys in parameter 'component' is deprecated func (s *Measures) SearchHistory(ctx context.Context, r measures.SearchHistoryRequest, p paging.Params) (*measures.SearchHistoryResponse, *http.Response, error) { u := fmt.Sprintf("%s/search_history", s.path) v := new(measures.SearchHistoryResponse) diff --git a/sonarqube/metrics_gen.go b/sonarqube/metrics_gen.go index a2e6023..3f8caad 100644 --- a/sonarqube/metrics_gen.go +++ b/sonarqube/metrics_gen.go @@ -15,7 +15,8 @@ type Metrics service // Search - Search for metrics // Since 5.2 // Changelog: -// 8.4: Field 'id' in the response is deprecated +// +// 8.4: Field 'id' in the response is deprecated func (s *Metrics) Search(ctx context.Context, r metrics.SearchRequest, p paging.Params) (*metrics.SearchResponse, *http.Response, error) { u := fmt.Sprintf("%s/search", s.path) v := new(metrics.SearchResponse) @@ -51,7 +52,6 @@ func (s *Metrics) SearchAll(ctx context.Context, r metrics.SearchRequest) (*metr // Types - List all available metric types. // Since 5.2 -// Changelog: func (s *Metrics) Types(ctx context.Context, r metrics.TypesRequest) (*metrics.TypesResponse, *http.Response, error) { u := fmt.Sprintf("%s/types", s.path) v := new(metrics.TypesResponse) diff --git a/sonarqube/monitoring_gen.go b/sonarqube/monitoring_gen.go index 26e9c6b..dd6f75c 100644 --- a/sonarqube/monitoring_gen.go +++ b/sonarqube/monitoring_gen.go @@ -15,7 +15,6 @@ type Monitoring service // Support content type 'text/plain' (default) and 'application/openmetrics-text'. // this endpoint can be access using a Bearer token, that needs to be defined in sonar.properties with the 'sonar.web.systemPasscode' key. // Since 9.3 -// Changelog: func (s *Monitoring) Metrics(ctx context.Context, r monitoring.MetricsRequest) (*monitoring.MetricsResponse, *http.Response, error) { u := fmt.Sprintf("%s/metrics", s.path) v := new(monitoring.MetricsResponse) diff --git a/sonarqube/new_code_periods_gen.go b/sonarqube/new_code_periods_gen.go index bdf09e8..c9ba038 100644 --- a/sonarqube/new_code_periods_gen.go +++ b/sonarqube/new_code_periods_gen.go @@ -14,7 +14,6 @@ type NewCodePeriods service // List - Lists the new code definition for all branches in a project. // Requires the permission to browse the project // Since 8.0 -// Changelog: func (s *NewCodePeriods) List(ctx context.Context, r new_code_periods.ListRequest) (*new_code_periods.ListResponse, *http.Response, error) { u := fmt.Sprintf("%s/list", s.path) v := new(new_code_periods.ListResponse) @@ -37,7 +36,6 @@ func (s *NewCodePeriods) List(ctx context.Context, r new_code_periods.ListReques // * 'Administer' rights on the specified project to change the project setting // // Since 8.0 -// Changelog: func (s *NewCodePeriods) Set(ctx context.Context, r new_code_periods.SetRequest) (*http.Response, error) { u := fmt.Sprintf("%s/set", s.path) @@ -55,7 +53,6 @@ func (s *NewCodePeriods) Set(ctx context.Context, r new_code_periods.SetRequest) // * 'Execute analysis' rights on the specified component // // Since 8.0 -// Changelog: func (s *NewCodePeriods) Show(ctx context.Context, r new_code_periods.ShowRequest) (*new_code_periods.ShowResponse, *http.Response, error) { u := fmt.Sprintf("%s/show", s.path) v := new(new_code_periods.ShowResponse) @@ -73,7 +70,6 @@ func (s *NewCodePeriods) Show(ctx context.Context, r new_code_periods.ShowReques // * 'Administer' rights for a specified component // // Since 8.0 -// Changelog: func (s *NewCodePeriods) Unset(ctx context.Context, r new_code_periods.UnsetRequest) (*http.Response, error) { u := fmt.Sprintf("%s/unset", s.path) diff --git a/sonarqube/notifications_gen.go b/sonarqube/notifications_gen.go index 3d39844..1aa0777 100644 --- a/sonarqube/notifications_gen.go +++ b/sonarqube/notifications_gen.go @@ -17,7 +17,6 @@ type Notifications service // * System administration if a login is provided. If a project is provided, requires the 'Browse' permission on the specified project. // // Since 6.3 -// Changelog: func (s *Notifications) Add(ctx context.Context, r notifications.AddRequest) (*http.Response, error) { u := fmt.Sprintf("%s/add", s.path) @@ -35,7 +34,6 @@ func (s *Notifications) Add(ctx context.Context, r notifications.AddRequest) (*h // * System administration if a login is provided // // Since 6.3 -// Changelog: func (s *Notifications) List(ctx context.Context, r notifications.ListRequest) (*notifications.ListResponse, *http.Response, error) { u := fmt.Sprintf("%s/list", s.path) v := new(notifications.ListResponse) @@ -54,7 +52,6 @@ func (s *Notifications) List(ctx context.Context, r notifications.ListRequest) ( // * System administration if a login is provided // // Since 6.3 -// Changelog: func (s *Notifications) Remove(ctx context.Context, r notifications.RemoveRequest) (*http.Response, error) { u := fmt.Sprintf("%s/remove", s.path) diff --git a/sonarqube/permissions_gen.go b/sonarqube/permissions_gen.go index 49d91f9..d79349d 100644 --- a/sonarqube/permissions_gen.go +++ b/sonarqube/permissions_gen.go @@ -20,8 +20,9 @@ type Permissions service // // Since 5.2 // Changelog: -// 10.0: Parameter 'groupId' is removed. Use 'groupName' instead. -// 8.4: Parameter 'groupId' is deprecated. Format changes from integer to string. Use 'groupName' instead. +// +// 10.0: Parameter 'groupId' is removed. Use 'groupName' instead. +// 8.4: Parameter 'groupId' is deprecated. Format changes from integer to string. Use 'groupName' instead. func (s *Permissions) AddGroup(ctx context.Context, r permissions.AddGroupRequest) (*http.Response, error) { u := fmt.Sprintf("%s/add_group", s.path) @@ -38,8 +39,9 @@ func (s *Permissions) AddGroup(ctx context.Context, r permissions.AddGroupReques // Requires the following permission: 'Administer System'. // Since 5.2 // Changelog: -// 10.0: Parameter 'groupId' is removed. Use 'groupName' instead. -// 8.4: Parameter 'groupId' is deprecated. Format changes from integer to string. Use 'groupName' instead. +// +// 10.0: Parameter 'groupId' is removed. Use 'groupName' instead. +// 8.4: Parameter 'groupId' is deprecated. Format changes from integer to string. Use 'groupName' instead. func (s *Permissions) AddGroupToTemplate(ctx context.Context, r permissions.AddGroupToTemplateRequest) (*http.Response, error) { u := fmt.Sprintf("%s/add_group_to_template", s.path) @@ -54,7 +56,6 @@ func (s *Permissions) AddGroupToTemplate(ctx context.Context, r permissions.AddG // AddProjectCreatorToTemplate - Add a project creator to a permission template. // Requires the following permission: 'Administer System'. // Since 6.0 -// Changelog: func (s *Permissions) AddProjectCreatorToTemplate(ctx context.Context, r permissions.AddProjectCreatorToTemplateRequest) (*http.Response, error) { u := fmt.Sprintf("%s/add_project_creator_to_template", s.path) @@ -73,7 +74,6 @@ func (s *Permissions) AddProjectCreatorToTemplate(ctx context.Context, r permiss // * 'Administer' rights on the specified project // // Since 5.2 -// Changelog: func (s *Permissions) AddUser(ctx context.Context, r permissions.AddUserRequest) (*http.Response, error) { u := fmt.Sprintf("%s/add_user", s.path) @@ -88,7 +88,6 @@ func (s *Permissions) AddUser(ctx context.Context, r permissions.AddUserRequest) // AddUserToTemplate - Add a user to a permission template. // Requires the following permission: 'Administer System'. // Since 5.2 -// Changelog: func (s *Permissions) AddUserToTemplate(ctx context.Context, r permissions.AddUserToTemplateRequest) (*http.Response, error) { u := fmt.Sprintf("%s/add_user_to_template", s.path) @@ -105,7 +104,6 @@ func (s *Permissions) AddUserToTemplate(ctx context.Context, r permissions.AddUs // The template id or name must be provided. // Requires the following permission: 'Administer System'. // Since 5.2 -// Changelog: func (s *Permissions) ApplyTemplate(ctx context.Context, r permissions.ApplyTemplateRequest) (*http.Response, error) { u := fmt.Sprintf("%s/apply_template", s.path) @@ -122,7 +120,8 @@ func (s *Permissions) ApplyTemplate(ctx context.Context, r permissions.ApplyTemp // Requires the following permission: 'Administer System'. // Since 5.5 // Changelog: -// 6.7.2: Parameter projects accepts maximum 1000 values +// +// 6.7.2: Parameter projects accepts maximum 1000 values func (s *Permissions) BulkApplyTemplate(ctx context.Context, r permissions.BulkApplyTemplateRequest) (*http.Response, error) { u := fmt.Sprintf("%s/bulk_apply_template", s.path) @@ -137,7 +136,6 @@ func (s *Permissions) BulkApplyTemplate(ctx context.Context, r permissions.BulkA // CreateTemplate - Create a permission template. // Requires the following permission: 'Administer System'. // Since 5.2 -// Changelog: func (s *Permissions) CreateTemplate(ctx context.Context, r permissions.CreateTemplateRequest) (*permissions.CreateTemplateResponse, *http.Response, error) { u := fmt.Sprintf("%s/create_template", s.path) v := new(permissions.CreateTemplateResponse) @@ -153,7 +151,6 @@ func (s *Permissions) CreateTemplate(ctx context.Context, r permissions.CreateTe // DeleteTemplate - Delete a permission template. // Requires the following permission: 'Administer System'. // Since 5.2 -// Changelog: func (s *Permissions) DeleteTemplate(ctx context.Context, r permissions.DeleteTemplateRequest) (*http.Response, error) { u := fmt.Sprintf("%s/delete_template", s.path) @@ -174,8 +171,9 @@ func (s *Permissions) DeleteTemplate(ctx context.Context, r permissions.DeleteTe // // Since 5.2 // Changelog: -// 10.0: Parameter 'groupId' is removed. Use 'groupName' instead. -// 8.4: Parameter 'groupId' is deprecated. Format changes from integer to string. Use 'groupName' instead. +// +// 10.0: Parameter 'groupId' is removed. Use 'groupName' instead. +// 8.4: Parameter 'groupId' is deprecated. Format changes from integer to string. Use 'groupName' instead. func (s *Permissions) RemoveGroup(ctx context.Context, r permissions.RemoveGroupRequest) (*http.Response, error) { u := fmt.Sprintf("%s/remove_group", s.path) @@ -192,8 +190,9 @@ func (s *Permissions) RemoveGroup(ctx context.Context, r permissions.RemoveGroup // Requires the following permission: 'Administer System'. // Since 5.2 // Changelog: -// 10.0: Parameter 'groupId' is removed. Use 'groupName' instead. -// 8.4: Parameter 'groupId' is deprecated. Format changes from integer to string. Use 'groupName' instead. +// +// 10.0: Parameter 'groupId' is removed. Use 'groupName' instead. +// 8.4: Parameter 'groupId' is deprecated. Format changes from integer to string. Use 'groupName' instead. func (s *Permissions) RemoveGroupFromTemplate(ctx context.Context, r permissions.RemoveGroupFromTemplateRequest) (*http.Response, error) { u := fmt.Sprintf("%s/remove_group_from_template", s.path) @@ -208,7 +207,6 @@ func (s *Permissions) RemoveGroupFromTemplate(ctx context.Context, r permissions // RemoveProjectCreatorFromTemplate - Remove a project creator from a permission template. // Requires the following permission: 'Administer System'. // Since 6.0 -// Changelog: func (s *Permissions) RemoveProjectCreatorFromTemplate(ctx context.Context, r permissions.RemoveProjectCreatorFromTemplateRequest) (*http.Response, error) { u := fmt.Sprintf("%s/remove_project_creator_from_template", s.path) @@ -227,7 +225,6 @@ func (s *Permissions) RemoveProjectCreatorFromTemplate(ctx context.Context, r pe // * 'Administer' rights on the specified project // // Since 5.2 -// Changelog: func (s *Permissions) RemoveUser(ctx context.Context, r permissions.RemoveUserRequest) (*http.Response, error) { u := fmt.Sprintf("%s/remove_user", s.path) @@ -242,7 +239,6 @@ func (s *Permissions) RemoveUser(ctx context.Context, r permissions.RemoveUserRe // RemoveUserFromTemplate - Remove a user from a permission template. // Requires the following permission: 'Administer System'. // Since 5.2 -// Changelog: func (s *Permissions) RemoveUserFromTemplate(ctx context.Context, r permissions.RemoveUserFromTemplateRequest) (*http.Response, error) { u := fmt.Sprintf("%s/remove_user_from_template", s.path) @@ -257,7 +253,6 @@ func (s *Permissions) RemoveUserFromTemplate(ctx context.Context, r permissions. // SearchTemplates - List permission templates. // Requires the following permission: 'Administer System'. // Since 5.2 -// Changelog: func (s *Permissions) SearchTemplates(ctx context.Context, r permissions.SearchTemplatesRequest) (*permissions.SearchTemplatesResponse, *http.Response, error) { u := fmt.Sprintf("%s/search_templates", s.path) v := new(permissions.SearchTemplatesResponse) @@ -273,7 +268,6 @@ func (s *Permissions) SearchTemplates(ctx context.Context, r permissions.SearchT // SetDefaultTemplate - Set a permission template as default. // Requires the following permission: 'Administer System'. // Since 5.2 -// Changelog: func (s *Permissions) SetDefaultTemplate(ctx context.Context, r permissions.SetDefaultTemplateRequest) (*http.Response, error) { u := fmt.Sprintf("%s/set_default_template", s.path) @@ -288,7 +282,6 @@ func (s *Permissions) SetDefaultTemplate(ctx context.Context, r permissions.SetD // UpdateTemplate - Update a permission template. // Requires the following permission: 'Administer System'. // Since 5.2 -// Changelog: func (s *Permissions) UpdateTemplate(ctx context.Context, r permissions.UpdateTemplateRequest) (*permissions.UpdateTemplateResponse, *http.Response, error) { u := fmt.Sprintf("%s/update_template", s.path) v := new(permissions.UpdateTemplateResponse) diff --git a/sonarqube/plugins_gen.go b/sonarqube/plugins_gen.go index bbe9cfe..364b1d5 100644 --- a/sonarqube/plugins_gen.go +++ b/sonarqube/plugins_gen.go @@ -20,7 +20,6 @@ type Plugins service // * DEPS_REQUIRE_SYSTEM_UPGRADE: at least one plugin on which the plugin is dependent requires SonarQube to be upgraded. // Require 'Administer System' permission. // Since 5.2 -// Changelog: func (s *Plugins) Available(ctx context.Context, r plugins.AvailableRequest) (*plugins.AvailableResponse, *http.Response, error) { u := fmt.Sprintf("%s/available", s.path) v := new(plugins.AvailableResponse) @@ -36,7 +35,6 @@ func (s *Plugins) Available(ctx context.Context, r plugins.AvailableRequest) (*p // CancelAll - Cancels any operation pending on any plugin (install, update or uninstall) // Requires user to be authenticated with Administer System permissions // Since 5.2 -// Changelog: func (s *Plugins) CancelAll(ctx context.Context, r plugins.CancelAllRequest) (*http.Response, error) { u := fmt.Sprintf("%s/cancel_all", s.path) @@ -53,7 +51,6 @@ func (s *Plugins) CancelAll(ctx context.Context, r plugins.CancelAllRequest) (*h // Fails if used on commercial editions or plugin risk consent has not been accepted. // Requires user to be authenticated with Administer System permissions // Since 5.2 -// Changelog: func (s *Plugins) Install(ctx context.Context, r plugins.InstallRequest) (*http.Response, error) { u := fmt.Sprintf("%s/install", s.path) @@ -69,15 +66,16 @@ func (s *Plugins) Install(ctx context.Context, r plugins.InstallRequest) (*http. // Requires authentication. // Since 5.2 // Changelog: -// 10.4: The response field 'requiredForLanguages' is added for plugins that support it -// 9.8: The 'documentationPath' field is deprecated -// 9.7: Authentication check added -// 8.0: The 'documentationPath' field is added -// 7.0: The fields 'compressedHash' and 'compressedFilename' are added -// 6.6: The 'filename' field is added -// 6.6: The 'fileHash' field is added -// 6.6: The 'sonarLintSupported' field is added -// 6.6: The 'updatedAt' field is added +// +// 10.4: The response field 'requiredForLanguages' is added for plugins that support it +// 9.8: The 'documentationPath' field is deprecated +// 9.7: Authentication check added +// 8.0: The 'documentationPath' field is added +// 7.0: The fields 'compressedHash' and 'compressedFilename' are added +// 6.6: The 'filename' field is added +// 6.6: The 'fileHash' field is added +// 6.6: The 'sonarLintSupported' field is added +// 6.6: The 'updatedAt' field is added func (s *Plugins) Installed(ctx context.Context, r plugins.InstalledRequest) (*plugins.InstalledResponse, *http.Response, error) { u := fmt.Sprintf("%s/installed", s.path) v := new(plugins.InstalledResponse) @@ -94,8 +92,9 @@ func (s *Plugins) Installed(ctx context.Context, r plugins.InstalledRequest) (*p // Require 'Administer System' permission. // Since 5.2 // Changelog: -// 9.8: The 'documentationPath' field is deprecated -// 8.0: The 'documentationPath' field is added +// +// 9.8: The 'documentationPath' field is deprecated +// 8.0: The 'documentationPath' field is added func (s *Plugins) Pending(ctx context.Context, r plugins.PendingRequest) (*plugins.PendingResponse, *http.Response, error) { u := fmt.Sprintf("%s/pending", s.path) v := new(plugins.PendingResponse) @@ -111,7 +110,6 @@ func (s *Plugins) Pending(ctx context.Context, r plugins.PendingRequest) (*plugi // Uninstall - Uninstalls the plugin specified by its key. // Requires user to be authenticated with Administer System permissions. // Since 5.2 -// Changelog: func (s *Plugins) Uninstall(ctx context.Context, r plugins.UninstallRequest) (*http.Response, error) { u := fmt.Sprintf("%s/uninstall", s.path) @@ -127,7 +125,6 @@ func (s *Plugins) Uninstall(ctx context.Context, r plugins.UninstallRequest) (*h // Plugin information is retrieved from Update Center. // Requires user to be authenticated with Administer System permissions // Since 5.2 -// Changelog: func (s *Plugins) Update(ctx context.Context, r plugins.UpdateRequest) (*http.Response, error) { u := fmt.Sprintf("%s/update", s.path) @@ -145,7 +142,6 @@ func (s *Plugins) Update(ctx context.Context, r plugins.UpdateRequest) (*http.Re // Update status values are: [COMPATIBLE, INCOMPATIBLE, REQUIRES_UPGRADE, DEPS_REQUIRE_UPGRADE]. // Require 'Administer System' permission. // Since 5.2 -// Changelog: func (s *Plugins) Updates(ctx context.Context, r plugins.UpdatesRequest) (*plugins.UpdatesResponse, *http.Response, error) { u := fmt.Sprintf("%s/updates", s.path) v := new(plugins.UpdatesResponse) diff --git a/sonarqube/project_analyses_gen.go b/sonarqube/project_analyses_gen.go index 70f727d..5dde480 100644 --- a/sonarqube/project_analyses_gen.go +++ b/sonarqube/project_analyses_gen.go @@ -19,7 +19,6 @@ type ProjectAnalyses service // * 'Administer' rights on the specified project // // Since 6.3 -// Changelog: func (s *ProjectAnalyses) CreateEvent(ctx context.Context, r project_analyses.CreateEventRequest) (*project_analyses.CreateEventResponse, *http.Response, error) { u := fmt.Sprintf("%s/create_event", s.path) v := new(project_analyses.CreateEventResponse) @@ -38,7 +37,6 @@ func (s *ProjectAnalyses) CreateEvent(ctx context.Context, r project_analyses.Cr // * 'Administer' rights on the project of the specified analysis // // Since 6.3 -// Changelog: func (s *ProjectAnalyses) Delete(ctx context.Context, r project_analyses.DeleteRequest) (*http.Response, error) { u := fmt.Sprintf("%s/delete", s.path) @@ -57,7 +55,6 @@ func (s *ProjectAnalyses) Delete(ctx context.Context, r project_analyses.DeleteR // * 'Administer' rights on the specified project // // Since 6.3 -// Changelog: func (s *ProjectAnalyses) DeleteEvent(ctx context.Context, r project_analyses.DeleteEventRequest) (*http.Response, error) { u := fmt.Sprintf("%s/delete_event", s.path) @@ -74,9 +71,10 @@ func (s *ProjectAnalyses) DeleteEvent(ctx context.Context, r project_analyses.De // For applications, it also requires 'Browse' permission on its child projects. // Since 6.3 // Changelog: -// 10.3: Add response field 'qualityProfile' for events related to quality profile changes -// 9.0: Add response field 'detectedCI' -// 7.5: Add QualityGate information on Applications +// +// 10.3: Add response field 'qualityProfile' for events related to quality profile changes +// 9.0: Add response field 'detectedCI' +// 7.5: Add QualityGate information on Applications func (s *ProjectAnalyses) Search(ctx context.Context, r project_analyses.SearchRequest, p paging.Params) (*project_analyses.SearchResponse, *http.Response, error) { u := fmt.Sprintf("%s/search", s.path) v := new(project_analyses.SearchResponse) @@ -117,7 +115,6 @@ func (s *ProjectAnalyses) SearchAll(ctx context.Context, r project_analyses.Sear // * 'Administer' rights on the specified project // // Since 6.3 -// Changelog: func (s *ProjectAnalyses) UpdateEvent(ctx context.Context, r project_analyses.UpdateEventRequest) (*project_analyses.UpdateEventResponse, *http.Response, error) { u := fmt.Sprintf("%s/update_event", s.path) v := new(project_analyses.UpdateEventResponse) diff --git a/sonarqube/project_badges_gen.go b/sonarqube/project_badges_gen.go index 0c41dda..2b5b12f 100644 --- a/sonarqube/project_badges_gen.go +++ b/sonarqube/project_badges_gen.go @@ -15,7 +15,8 @@ type ProjectBadges service // Requires 'Browse' permission on the specified project. // Since 7.1 // Changelog: -// 10.4: The following metric keys are now deprecated: bugs, code_smells, security_hotspots, vulnerabilities +// +// 10.4: The following metric keys are now deprecated: bugs, code_smells, security_hotspots, vulnerabilities func (s *ProjectBadges) Measure(ctx context.Context, r project_badges.MeasureRequest) (*project_badges.MeasureResponse, *http.Response, error) { u := fmt.Sprintf("%s/measure", s.path) v := new(project_badges.MeasureResponse) @@ -31,7 +32,6 @@ func (s *ProjectBadges) Measure(ctx context.Context, r project_badges.MeasureReq // QualityGate - Generate badge for project's quality gate as an SVG. // Requires 'Browse' permission on the specified project. // Since 7.1 -// Changelog: func (s *ProjectBadges) QualityGate(ctx context.Context, r project_badges.QualityGateRequest) (*project_badges.QualityGateResponse, *http.Response, error) { u := fmt.Sprintf("%s/quality_gate", s.path) v := new(project_badges.QualityGateResponse) @@ -49,7 +49,8 @@ func (s *ProjectBadges) QualityGate(ctx context.Context, r project_badges.Qualit // Requires 'Administer' permission on the specified project or application. // Since 9.2 // Changelog: -// 10.1: Application key can be used for project parameter. +// +// 10.1: Application key can be used for project parameter. func (s *ProjectBadges) RenewToken(ctx context.Context, r project_badges.RenewTokenRequest) (*http.Response, error) { u := fmt.Sprintf("%s/renew_token", s.path) @@ -66,7 +67,8 @@ func (s *ProjectBadges) RenewToken(ctx context.Context, r project_badges.RenewTo // Requires 'Browse' permission on the specified project or application. // Since 9.2 // Changelog: -// 10.1: Application key can be used for project parameter. +// +// 10.1: Application key can be used for project parameter. func (s *ProjectBadges) Token(ctx context.Context, r project_badges.TokenRequest) (*project_badges.TokenResponse, *http.Response, error) { u := fmt.Sprintf("%s/token", s.path) v := new(project_badges.TokenResponse) diff --git a/sonarqube/project_branches_gen.go b/sonarqube/project_branches_gen.go index 79ec0c6..7003e2c 100644 --- a/sonarqube/project_branches_gen.go +++ b/sonarqube/project_branches_gen.go @@ -14,7 +14,6 @@ type ProjectBranches service // Delete - Delete a non-main branch of a project or application. // Requires 'Administer' rights on the specified project or application. // Since 6.6 -// Changelog: func (s *ProjectBranches) Delete(ctx context.Context, r project_branches.DeleteRequest) (*http.Response, error) { u := fmt.Sprintf("%s/delete", s.path) @@ -30,8 +29,9 @@ func (s *ProjectBranches) Delete(ctx context.Context, r project_branches.DeleteR // Requires 'Browse' or 'Execute analysis' rights on the specified project or application. // Since 6.6 // Changelog: -// 10.6: Field 'branchId' added to the response -// 7.2: Application can be used on this web service +// +// 10.6: Field 'branchId' added to the response +// 7.2: Application can be used on this web service func (s *ProjectBranches) List(ctx context.Context, r project_branches.ListRequest) (*project_branches.ListResponse, *http.Response, error) { u := fmt.Sprintf("%s/list", s.path) v := new(project_branches.ListResponse) @@ -47,7 +47,6 @@ func (s *ProjectBranches) List(ctx context.Context, r project_branches.ListReque // Rename - Rename the main branch of a project or application. // Requires 'Administer' permission on the specified project or application. // Since 6.6 -// Changelog: func (s *ProjectBranches) Rename(ctx context.Context, r project_branches.RenameRequest) (*http.Response, error) { u := fmt.Sprintf("%s/rename", s.path) @@ -62,7 +61,6 @@ func (s *ProjectBranches) Rename(ctx context.Context, r project_branches.RenameR // SetAutomaticDeletionProtection - Protect a specific branch from automatic deletion. Protection can't be disabled for the main branch. // Requires 'Administer' permission on the specified project or application. // Since 8.1 -// Changelog: func (s *ProjectBranches) SetAutomaticDeletionProtection(ctx context.Context, r project_branches.SetAutomaticDeletionProtectionRequest) (*http.Response, error) { u := fmt.Sprintf("%s/set_automatic_deletion_protection", s.path) @@ -78,7 +76,6 @@ func (s *ProjectBranches) SetAutomaticDeletionProtection(ctx context.Context, r // . Caution, only applicable on projects. // Requires 'Administer' rights on the specified project or application. // Since 10.2 -// Changelog: func (s *ProjectBranches) SetMain(ctx context.Context, r project_branches.SetMainRequest) (*http.Response, error) { u := fmt.Sprintf("%s/set_main", s.path) diff --git a/sonarqube/project_dump_gen.go b/sonarqube/project_dump_gen.go index da5909c..7e35eb4 100644 --- a/sonarqube/project_dump_gen.go +++ b/sonarqube/project_dump_gen.go @@ -14,7 +14,8 @@ type ProjectDump service // Export - Triggers project dump so that the project can be imported to another SonarQube server (see api/project_dump/import, available in Enterprise Edition). Requires the 'Administer' permission. // Since 1.0 // Changelog: -// 9.2: Moved from Enterprise Edition to Community Edition +// +// 9.2: Moved from Enterprise Edition to Community Edition func (s *ProjectDump) Export(ctx context.Context, r project_dump.ExportRequest) (*project_dump.ExportResponse, *http.Response, error) { u := fmt.Sprintf("%s/export", s.path) v := new(project_dump.ExportResponse) @@ -29,7 +30,6 @@ func (s *ProjectDump) Export(ctx context.Context, r project_dump.ExportRequest) // Import - Triggers the import of a project dump. Permission 'Administer' is required. This feature is provided by the Governance plugin. // Since 1.0 -// Changelog: func (s *ProjectDump) Import(ctx context.Context, r project_dump.ImportRequest) (*project_dump.ImportResponse, *http.Response, error) { u := fmt.Sprintf("%s/import", s.path) v := new(project_dump.ImportResponse) diff --git a/sonarqube/project_links_gen.go b/sonarqube/project_links_gen.go index af0c0d9..4b54bd1 100644 --- a/sonarqube/project_links_gen.go +++ b/sonarqube/project_links_gen.go @@ -14,7 +14,6 @@ type ProjectLinks service // Create - Create a new project link. // Requires 'Administer' permission on the specified project, or global 'Administer' permission. // Since 6.1 -// Changelog: func (s *ProjectLinks) Create(ctx context.Context, r project_links.CreateRequest) (*project_links.CreateResponse, *http.Response, error) { u := fmt.Sprintf("%s/create", s.path) v := new(project_links.CreateResponse) @@ -30,7 +29,6 @@ func (s *ProjectLinks) Create(ctx context.Context, r project_links.CreateRequest // Delete - Delete existing project link. // Requires 'Administer' permission on the specified project, or global 'Administer' permission. // Since 6.1 -// Changelog: func (s *ProjectLinks) Delete(ctx context.Context, r project_links.DeleteRequest) (*http.Response, error) { u := fmt.Sprintf("%s/delete", s.path) @@ -50,7 +48,6 @@ func (s *ProjectLinks) Delete(ctx context.Context, r project_links.DeleteRequest // * 'Browse' on the specified project // // Since 6.1 -// Changelog: func (s *ProjectLinks) Search(ctx context.Context, r project_links.SearchRequest) (*project_links.SearchResponse, *http.Response, error) { u := fmt.Sprintf("%s/search", s.path) v := new(project_links.SearchResponse) diff --git a/sonarqube/project_pull_requests_gen.go b/sonarqube/project_pull_requests_gen.go index 97d3c30..90e5975 100644 --- a/sonarqube/project_pull_requests_gen.go +++ b/sonarqube/project_pull_requests_gen.go @@ -14,7 +14,6 @@ type ProjectPullRequests service // Delete - Delete a pull request. // Requires 'Administer' rights on the specified project. // Since 7.1 -// Changelog: func (s *ProjectPullRequests) Delete(ctx context.Context, r project_pull_requests.DeleteRequest) (*http.Response, error) { u := fmt.Sprintf("%s/delete", s.path) @@ -33,8 +32,9 @@ func (s *ProjectPullRequests) Delete(ctx context.Context, r project_pull_request // // Since 7.1 // Changelog: -// 9.8: Response fields: 'bugs', 'vulnerabilities', 'codeSmells' has been dropped. -// 8.4: Response fields: 'bugs', 'vulnerabilities', 'codeSmells' are deprecated. +// +// 9.8: Response fields: 'bugs', 'vulnerabilities', 'codeSmells' has been dropped. +// 8.4: Response fields: 'bugs', 'vulnerabilities', 'codeSmells' are deprecated. func (s *ProjectPullRequests) List(ctx context.Context, r project_pull_requests.ListRequest) (*project_pull_requests.ListResponse, *http.Response, error) { u := fmt.Sprintf("%s/list", s.path) v := new(project_pull_requests.ListResponse) diff --git a/sonarqube/project_tags_gen.go b/sonarqube/project_tags_gen.go index 3f6630a..f0487db 100644 --- a/sonarqube/project_tags_gen.go +++ b/sonarqube/project_tags_gen.go @@ -15,7 +15,8 @@ type ProjectTags service // Search - Search tags // Since 6.4 // Changelog: -// 9.2: Parameter 'page' added +// +// 9.2: Parameter 'page' added func (s *ProjectTags) Search(ctx context.Context, r project_tags.SearchRequest, p paging.Params) (*project_tags.SearchResponse, *http.Response, error) { u := fmt.Sprintf("%s/search", s.path) v := new(project_tags.SearchResponse) @@ -52,7 +53,6 @@ func (s *ProjectTags) SearchAll(ctx context.Context, r project_tags.SearchReques // Set - Set tags on a project. // Requires the following permission: 'Administer' rights on the specified project // Since 6.4 -// Changelog: func (s *ProjectTags) Set(ctx context.Context, r project_tags.SetRequest) (*http.Response, error) { u := fmt.Sprintf("%s/set", s.path) diff --git a/sonarqube/projects_gen.go b/sonarqube/projects_gen.go index 26803fa..9680a1b 100644 --- a/sonarqube/projects_gen.go +++ b/sonarqube/projects_gen.go @@ -18,8 +18,9 @@ type Projects service // At least one parameter is required among analyzedBefore, projects and q // Since 5.2 // Changelog: -// 9.1: The parameter 'analyzedBefore' takes into account the analysis of all branches and pull requests, not only the main branch. -// 7.8: At least one parameter is required among analyzedBefore, projects and q +// +// 9.1: The parameter 'analyzedBefore' takes into account the analysis of all branches and pull requests, not only the main branch. +// 7.8: At least one parameter is required among analyzedBefore, projects and q func (s *Projects) BulkDelete(ctx context.Context, r projects.BulkDeleteRequest) (*http.Response, error) { u := fmt.Sprintf("%s/bulk_delete", s.path) @@ -36,8 +37,9 @@ func (s *Projects) BulkDelete(ctx context.Context, r projects.BulkDeleteRequest) // // Since 4.0 // Changelog: -// 9.8: Field 'mainBranch' added to the request -// 7.1: The 'visibility' parameter is public +// +// 9.8: Field 'mainBranch' added to the request +// 7.1: The 'visibility' parameter is public func (s *Projects) Create(ctx context.Context, r projects.CreateRequest) (*projects.CreateResponse, *http.Response, error) { u := fmt.Sprintf("%s/create", s.path) v := new(projects.CreateResponse) @@ -53,7 +55,6 @@ func (s *Projects) Create(ctx context.Context, r projects.CreateRequest) (*proje // Delete - Delete a project. // Requires 'Administer System' permission or 'Administer' permission on the project. // Since 5.2 -// Changelog: func (s *Projects) Delete(ctx context.Context, r projects.DeleteRequest) (*http.Response, error) { u := fmt.Sprintf("%s/delete", s.path) @@ -69,14 +70,15 @@ func (s *Projects) Delete(ctx context.Context, r projects.DeleteRequest) (*http. // Requires 'Administer System' permission. Keep in mind that this endpoint will return all findings, issues and hotspots (no filter), which can take time and use a lot of resources on the SonarQube server side and put pressure on the database until completion. This endpoint can be used to feed third party systems. Either the branch key or the pull request key should be specified, and not both at the same time. // Since 9.1 // Changelog: -// 10.4: 'status' and 'resolution' fields are now deprecated for issues. Use 'issueStatus' instead. Note that both fields remain available for 'type=SECURITY_HOTSPOT'. -// 10.4: Add 'issueStatus' field to the response -// 10.4: 'type' and 'severity' fields are now deprecated for issues. Use 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields instead. Note that 'type' remains available for 'type=SECURITY_HOTSPOT'. -// 10.2: Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response -// 9.3: ruleReference field now contain 'repository_key:rule_key' instead of only the rule key -// 9.3: add field 'branch' and 'pullRequest' in the payload. mutually exclusive, depending on the request -// 9.3: createdAt and updatedAt now return effective issue creation and update date, instead of the database operation date -// 9.3: projectKey field now return correctly the projectKey, instead of :PULL_REQUEST: +// +// 10.4: 'status' and 'resolution' fields are now deprecated for issues. Use 'issueStatus' instead. Note that both fields remain available for 'type=SECURITY_HOTSPOT'. +// 10.4: Add 'issueStatus' field to the response +// 10.4: 'type' and 'severity' fields are now deprecated for issues. Use 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields instead. Note that 'type' remains available for 'type=SECURITY_HOTSPOT'. +// 10.2: Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response +// 9.3: ruleReference field now contain 'repository_key:rule_key' instead of only the rule key +// 9.3: add field 'branch' and 'pullRequest' in the payload. mutually exclusive, depending on the request +// 9.3: createdAt and updatedAt now return effective issue creation and update date, instead of the database operation date +// 9.3: projectKey field now return correctly the projectKey, instead of :PULL_REQUEST: func (s *Projects) ExportFindings(ctx context.Context, r projects.ExportFindingsRequest) (*projects.ExportFindingsResponse, *http.Response, error) { u := fmt.Sprintf("%s/export_findings", s.path) v := new(projects.ExportFindingsResponse) @@ -93,7 +95,8 @@ func (s *Projects) ExportFindings(ctx context.Context, r projects.ExportFindings // Requires Administer System permission. // Since 9.4 // Changelog: -// 9.5: Response format changed from CSV to Json +// +// 9.5: Response format changed from CSV to Json func (s *Projects) LicenseUsage(ctx context.Context, r projects.LicenseUsageRequest) (*projects.LicenseUsageResponse, *http.Response, error) { u := fmt.Sprintf("%s/license_usage", s.path) v := new(projects.LicenseUsageResponse) @@ -117,8 +120,9 @@ func (s *Projects) LicenseUsage(ctx context.Context, r projects.LicenseUsageRequ // Requires 'Administer System' permission // Since 6.3 // Changelog: -// 10.2: Response includes 'managed' field. -// 9.1: The parameter 'analyzedBefore' and the field 'lastAnalysisDate' of the returned projects take into account the analysis of all branches and pull requests, not only the main branch. +// +// 10.2: Response includes 'managed' field. +// 9.1: The parameter 'analyzedBefore' and the field 'lastAnalysisDate' of the returned projects take into account the analysis of all branches and pull requests, not only the main branch. func (s *Projects) Search(ctx context.Context, r projects.SearchRequest, p paging.Params) (*projects.SearchResponse, *http.Response, error) { u := fmt.Sprintf("%s/search", s.path) v := new(projects.SearchResponse) @@ -159,7 +163,8 @@ func (s *Projects) SearchAll(ctx context.Context, r projects.SearchRequest) (*pr // // Since 6.1 // Changelog: -// 7.1: Ability to update key of a disabled module +// +// 7.1: Ability to update key of a disabled module func (s *Projects) UpdateKey(ctx context.Context, r projects.UpdateKeyRequest) (*http.Response, error) { u := fmt.Sprintf("%s/update_key", s.path) @@ -174,7 +179,6 @@ func (s *Projects) UpdateKey(ctx context.Context, r projects.UpdateKeyRequest) ( // UpdateVisibility - Updates visibility of a project, application or a portfolio. // Requires 'Project administer' permission on the specified entity // Since 6.4 -// Changelog: func (s *Projects) UpdateVisibility(ctx context.Context, r projects.UpdateVisibilityRequest) (*http.Response, error) { u := fmt.Sprintf("%s/update_visibility", s.path) diff --git a/sonarqube/qualitygates/qualitygates_gen.go b/sonarqube/qualitygates/qualitygates_gen.go index 8ed5021..5586623 100644 --- a/sonarqube/qualitygates/qualitygates_gen.go +++ b/sonarqube/qualitygates/qualitygates_gen.go @@ -37,7 +37,7 @@ type CreateResponse struct { type CreateConditionRequest struct { Error string `form:"error"` // Condition error threshold GateName string `form:"gateName"` // Name of the quality gate - Metric string `form:"metric"` // Condition metric.
Only metric of the following types are allowed:
  • INT
  • MILLISEC
  • RATING
  • WORK_DUR
  • FLOAT
  • PERCENT
  • LEVEL
Following metrics are forbidden:
  • new_security_hotspots
  • security_hotspots
  • alert_status
+ Metric string `form:"metric"` // Condition metric.
Only metric of the following types are allowed:
  • INT
  • MILLISEC
  • RATING
  • WORK_DUR
  • FLOAT
  • PERCENT
  • LEVEL
Following metrics are forbidden:
  • security_hotspots
  • alert_status
  • new_security_hotspots
Op string `form:"op,omitempty"` // Condition operator:
  • LT = is lower than
  • GT = is greater than
} @@ -281,6 +281,6 @@ type ShowResponse struct { type UpdateConditionRequest struct { Error string `form:"error"` // Condition error threshold Id string `form:"id"` // Condition ID - Metric string `form:"metric"` // Condition metric.
Only metric of the following types are allowed:
  • INT
  • MILLISEC
  • RATING
  • WORK_DUR
  • FLOAT
  • PERCENT
  • LEVEL
Following metrics are forbidden:
  • new_security_hotspots
  • security_hotspots
  • alert_status
+ Metric string `form:"metric"` // Condition metric.
Only metric of the following types are allowed:
  • INT
  • MILLISEC
  • RATING
  • WORK_DUR
  • FLOAT
  • PERCENT
  • LEVEL
Following metrics are forbidden:
  • security_hotspots
  • alert_status
  • new_security_hotspots
Op string `form:"op,omitempty"` // Condition operator:
  • LT = is lower than
  • GT = is greater than
} diff --git a/sonarqube/qualitygates_gen.go b/sonarqube/qualitygates_gen.go index 12e170a..440061f 100644 --- a/sonarqube/qualitygates_gen.go +++ b/sonarqube/qualitygates_gen.go @@ -18,7 +18,6 @@ type Qualitygates service // * Edit right on the specified quality gate // // Since 9.2 -// Changelog: func (s *Qualitygates) AddGroup(ctx context.Context, r qualitygates.AddGroupRequest) (*http.Response, error) { u := fmt.Sprintf("%s/add_group", s.path) @@ -36,7 +35,6 @@ func (s *Qualitygates) AddGroup(ctx context.Context, r qualitygates.AddGroupRequ // * Edit right on the specified quality gate // // Since 9.2 -// Changelog: func (s *Qualitygates) AddUser(ctx context.Context, r qualitygates.AddUserRequest) (*http.Response, error) { u := fmt.Sprintf("%s/add_user", s.path) @@ -52,10 +50,11 @@ func (s *Qualitygates) AddUser(ctx context.Context, r qualitygates.AddUserReques // 'sourceName' must be provided. Requires the 'Administer Quality Gates' permission. // Since 4.3 // Changelog: -// 10.0: Field 'id' in the response is deprecated -// 10.0: Parameter 'id' is removed. Use 'sourceName' instead. -// 8.4: Parameter 'id' is deprecated. Format changes from integer to string. Use 'sourceName' instead. -// 8.4: Parameter 'sourceName' added +// +// 10.0: Field 'id' in the response is deprecated +// 10.0: Parameter 'id' is removed. Use 'sourceName' instead. +// 8.4: Parameter 'id' is deprecated. Format changes from integer to string. Use 'sourceName' instead. +// 8.4: Parameter 'sourceName' added func (s *Qualitygates) Copy(ctx context.Context, r qualitygates.CopyRequest) (*http.Response, error) { u := fmt.Sprintf("%s/copy", s.path) @@ -71,8 +70,9 @@ func (s *Qualitygates) Copy(ctx context.Context, r qualitygates.CopyRequest) (*h // Requires the 'Administer Quality Gates' permission. // Since 4.3 // Changelog: -// 10.0: Field 'id' in the response is removed. -// 8.4: Field 'id' in the response is deprecated. Format changes from integer to string. +// +// 10.0: Field 'id' in the response is removed. +// 8.4: Field 'id' in the response is deprecated. Format changes from integer to string. func (s *Qualitygates) Create(ctx context.Context, r qualitygates.CreateRequest) (*qualitygates.CreateResponse, *http.Response, error) { u := fmt.Sprintf("%s/create", s.path) v := new(qualitygates.CreateResponse) @@ -89,12 +89,13 @@ func (s *Qualitygates) Create(ctx context.Context, r qualitygates.CreateRequest) // Parameter 'gateName' must be provided. Requires the 'Administer Quality Gates' permission. // Since 4.3 // Changelog: -// 10.0: Parameter 'gateId' is removed. Use 'gateName' instead. -// 8.4: Parameter 'gateName' added -// 8.4: Parameter 'gateId' is deprecated. Use 'gateName' instead. -// 7.6: Removed optional 'warning' and 'period' parameters -// 7.6: Made 'error' parameter mandatory -// 7.6: Reduced the possible values of 'op' parameter to LT and GT +// +// 10.0: Parameter 'gateId' is removed. Use 'gateName' instead. +// 8.4: Parameter 'gateName' added +// 8.4: Parameter 'gateId' is deprecated. Use 'gateName' instead. +// 7.6: Removed optional 'warning' and 'period' parameters +// 7.6: Made 'error' parameter mandatory +// 7.6: Reduced the possible values of 'op' parameter to LT and GT func (s *Qualitygates) CreateCondition(ctx context.Context, r qualitygates.CreateConditionRequest) (*qualitygates.CreateConditionResponse, *http.Response, error) { u := fmt.Sprintf("%s/create_condition", s.path) v := new(qualitygates.CreateConditionResponse) @@ -110,7 +111,6 @@ func (s *Qualitygates) CreateCondition(ctx context.Context, r qualitygates.Creat // DeleteCondition - Delete a condition from a quality gate. // Requires the 'Administer Quality Gates' permission. // Since 4.3 -// Changelog: func (s *Qualitygates) DeleteCondition(ctx context.Context, r qualitygates.DeleteConditionRequest) (*http.Response, error) { u := fmt.Sprintf("%s/delete_condition", s.path) @@ -129,8 +129,9 @@ func (s *Qualitygates) DeleteCondition(ctx context.Context, r qualitygates.Delet // // Since 4.3 // Changelog: -// 8.3: The parameter 'projectId' was removed -// 6.6: The parameter 'gateId' was removed +// +// 8.3: The parameter 'projectId' was removed +// 6.6: The parameter 'gateId' was removed func (s *Qualitygates) Deselect(ctx context.Context, r qualitygates.DeselectRequest) (*http.Response, error) { u := fmt.Sprintf("%s/deselect", s.path) @@ -146,9 +147,10 @@ func (s *Qualitygates) Deselect(ctx context.Context, r qualitygates.DeselectRequ // Parameter 'name' must be specified. Requires the 'Administer Quality Gates' permission. // Since 4.3 // Changelog: -// 10.0: Parameter 'id' is removed. Use 'name' instead. -// 8.4: Parameter 'name' added -// 8.4: Parameter 'id' is deprecated. Format changes from integer to string. Use 'name' instead. +// +// 10.0: Parameter 'id' is removed. Use 'name' instead. +// 8.4: Parameter 'name' added +// 8.4: Parameter 'id' is deprecated. Format changes from integer to string. Use 'name' instead. func (s *Qualitygates) Destroy(ctx context.Context, r qualitygates.DestroyRequest) (*http.Response, error) { u := fmt.Sprintf("%s/destroy", s.path) @@ -168,11 +170,12 @@ func (s *Qualitygates) Destroy(ctx context.Context, r qualitygates.DestroyReques // // Since 6.1 // Changelog: -// 10.0: Field 'id' in the response has been removed -// 8.4: Field 'id' in the response is deprecated. Format changes from integer to string. -// 6.6: The parameter 'projectId' has been removed -// 6.6: The parameter 'projectKey' has been renamed to 'project' -// 6.6: This webservice is now part of the public API +// +// 10.0: Field 'id' in the response has been removed +// 8.4: Field 'id' in the response is deprecated. Format changes from integer to string. +// 6.6: The parameter 'projectId' has been removed +// 6.6: The parameter 'projectKey' has been renamed to 'project' +// 6.6: This webservice is now part of the public API func (s *Qualitygates) GetByProject(ctx context.Context, r qualitygates.GetByProjectRequest) (*qualitygates.GetByProjectResponse, *http.Response, error) { u := fmt.Sprintf("%s/get_by_project", s.path) v := new(qualitygates.GetByProjectResponse) @@ -188,14 +191,15 @@ func (s *Qualitygates) GetByProject(ctx context.Context, r qualitygates.GetByPro // List - Get a list of quality gates // Since 4.3 // Changelog: -// 10.0: Field 'default' in the response has been removed -// 10.0: Field 'id' in the response has been removed -// 9.9: 'caycStatus' field is added on quality gate -// 8.4: Field 'id' in the response is deprecated. Format changes from integer to string. -// 7.0: 'isDefault' field is added on quality gate -// 7.0: 'default' field on root level is deprecated -// 7.0: 'isBuiltIn' field is added in the response -// 7.0: 'actions' fields are added in the response +// +// 10.0: Field 'default' in the response has been removed +// 10.0: Field 'id' in the response has been removed +// 9.9: 'caycStatus' field is added on quality gate +// 8.4: Field 'id' in the response is deprecated. Format changes from integer to string. +// 7.0: 'isDefault' field is added on quality gate +// 7.0: 'default' field on root level is deprecated +// 7.0: 'isBuiltIn' field is added in the response +// 7.0: 'actions' fields are added in the response func (s *Qualitygates) List(ctx context.Context, r qualitygates.ListRequest) (*qualitygates.ListResponse, *http.Response, error) { u := fmt.Sprintf("%s/list", s.path) v := new(qualitygates.ListResponse) @@ -220,13 +224,14 @@ func (s *Qualitygates) List(ctx context.Context, r qualitygates.ListRequest) (*q // // Since 5.3 // Changelog: -// 10.0: The fields 'periods' and 'periodIndex' in the response are removed -// 9.9: 'caycStatus' field is added to the response -// 9.5: The 'Execute Analysis' permission also allows to access the endpoint -// 8.5: The field 'periods' in the response is deprecated. Use 'period' instead -// 7.7: The parameters 'branch' and 'pullRequest' were added -// 7.6: The field 'warning' in the response is deprecated -// 6.4: The field 'ignoredConditions' is added to the response +// +// 10.0: The fields 'periods' and 'periodIndex' in the response are removed +// 9.9: 'caycStatus' field is added to the response +// 9.5: The 'Execute Analysis' permission also allows to access the endpoint +// 8.5: The field 'periods' in the response is deprecated. Use 'period' instead +// 7.7: The parameters 'branch' and 'pullRequest' were added +// 7.6: The field 'warning' in the response is deprecated +// 6.4: The field 'ignoredConditions' is added to the response func (s *Qualitygates) ProjectStatus(ctx context.Context, r qualitygates.ProjectStatusRequest) (*qualitygates.ProjectStatusResponse, *http.Response, error) { u := fmt.Sprintf("%s/project_status", s.path) v := new(qualitygates.ProjectStatusResponse) @@ -245,7 +250,6 @@ func (s *Qualitygates) ProjectStatus(ctx context.Context, r qualitygates.Project // * Edit right on the specified quality gate // // Since 9.2 -// Changelog: func (s *Qualitygates) RemoveGroup(ctx context.Context, r qualitygates.RemoveGroupRequest) (*http.Response, error) { u := fmt.Sprintf("%s/remove_group", s.path) @@ -263,7 +267,6 @@ func (s *Qualitygates) RemoveGroup(ctx context.Context, r qualitygates.RemoveGro // * Edit right on the specified quality gate // // Since 9.2 -// Changelog: func (s *Qualitygates) RemoveUser(ctx context.Context, r qualitygates.RemoveUserRequest) (*http.Response, error) { u := fmt.Sprintf("%s/remove_user", s.path) @@ -279,10 +282,11 @@ func (s *Qualitygates) RemoveUser(ctx context.Context, r qualitygates.RemoveUser // 'currentName' must be specified. Requires the 'Administer Quality Gates' permission. // Since 4.3 // Changelog: -// 10.0: Field 'id' in the response is deprecated -// 10.0: Parameter 'id' is removed. Use 'currentName' instead. -// 8.4: Parameter 'currentName' added -// 8.4: Parameter 'id' is deprecated. Format changes from integer to string. Use 'currentName' instead. +// +// 10.0: Field 'id' in the response is deprecated +// 10.0: Parameter 'id' is removed. Use 'currentName' instead. +// 8.4: Parameter 'currentName' added +// 8.4: Parameter 'id' is deprecated. Format changes from integer to string. Use 'currentName' instead. func (s *Qualitygates) Rename(ctx context.Context, r qualitygates.RenameRequest) (*http.Response, error) { u := fmt.Sprintf("%s/rename", s.path) @@ -298,13 +302,14 @@ func (s *Qualitygates) Rename(ctx context.Context, r qualitygates.RenameRequest) // Only authorized projects for the current user will be returned. // Since 4.3 // Changelog: -// 10.0: deprecated 'more' response field has been removed -// 10.0: Parameter 'gateId' is removed. Use 'gateName' instead. -// 8.4: Parameter 'gateName' added -// 8.4: Parameter 'gateId' is deprecated. Format changes from integer to string. Use 'gateName' instead. -// 7.9: New field 'paging' in response -// 7.9: New field 'key' returning the project key in 'results' response -// 7.9: Field 'more' is deprecated in the response +// +// 10.0: deprecated 'more' response field has been removed +// 10.0: Parameter 'gateId' is removed. Use 'gateName' instead. +// 8.4: Parameter 'gateName' added +// 8.4: Parameter 'gateId' is deprecated. Format changes from integer to string. Use 'gateName' instead. +// 7.9: New field 'paging' in response +// 7.9: New field 'key' returning the project key in 'results' response +// 7.9: Field 'more' is deprecated in the response func (s *Qualitygates) Search(ctx context.Context, r qualitygates.SearchRequest) (*qualitygates.SearchResponse, *http.Response, error) { u := fmt.Sprintf("%s/search", s.path) v := new(qualitygates.SearchResponse) @@ -323,7 +328,6 @@ func (s *Qualitygates) Search(ctx context.Context, r qualitygates.SearchRequest) // * Edit right on the specified quality gate // // Since 9.2 -// Changelog: func (s *Qualitygates) SearchGroups(ctx context.Context, r qualitygates.SearchGroupsRequest, p paging.Params) (*qualitygates.SearchGroupsResponse, *http.Response, error) { u := fmt.Sprintf("%s/search_groups", s.path) v := new(qualitygates.SearchGroupsResponse) @@ -363,7 +367,6 @@ func (s *Qualitygates) SearchGroupsAll(ctx context.Context, r qualitygates.Searc // * Edit right on the specified quality gate // // Since 9.2 -// Changelog: func (s *Qualitygates) SearchUsers(ctx context.Context, r qualitygates.SearchUsersRequest, p paging.Params) (*qualitygates.SearchUsersResponse, *http.Response, error) { u := fmt.Sprintf("%s/search_users", s.path) v := new(qualitygates.SearchUsersResponse) @@ -404,10 +407,11 @@ func (s *Qualitygates) SearchUsersAll(ctx context.Context, r qualitygates.Search // // Since 4.3 // Changelog: -// 10.0: Parameter 'gateId' is removed. Use 'gateName' instead. -// 8.4: Parameter 'gateName' added -// 8.4: Parameter 'gateId' is deprecated. Format changes from integer to string. Use 'gateName' instead. -// 8.3: The parameter 'projectId' was removed +// +// 10.0: Parameter 'gateId' is removed. Use 'gateName' instead. +// 8.4: Parameter 'gateName' added +// 8.4: Parameter 'gateId' is deprecated. Format changes from integer to string. Use 'gateName' instead. +// 8.3: The parameter 'projectId' was removed func (s *Qualitygates) Select(ctx context.Context, r qualitygates.SelectRequest) (*http.Response, error) { u := fmt.Sprintf("%s/select", s.path) @@ -423,9 +427,10 @@ func (s *Qualitygates) Select(ctx context.Context, r qualitygates.SelectRequest) // Parameter 'name' must be specified. Requires the 'Administer Quality Gates' permission. // Since 4.3 // Changelog: -// 10.0: Parameter 'id' is removed. Use 'name' instead. -// 8.4: Parameter 'name' added -// 8.4: Parameter 'id' is deprecated. Format changes from integer to string. Use 'name' instead. +// +// 10.0: Parameter 'id' is removed. Use 'name' instead. +// 8.4: Parameter 'name' added +// 8.4: Parameter 'id' is deprecated. Format changes from integer to string. Use 'name' instead. func (s *Qualitygates) SetAsDefault(ctx context.Context, r qualitygates.SetAsDefaultRequest) (*http.Response, error) { u := fmt.Sprintf("%s/set_as_default", s.path) @@ -440,15 +445,16 @@ func (s *Qualitygates) SetAsDefault(ctx context.Context, r qualitygates.SetAsDef // Show - Display the details of a quality gate // Since 4.3 // Changelog: -// 10.3: 'isDefault' field is added to the response -// 10.0: Field 'id' in the response has been removed -// 10.0: Parameter 'id' is removed. Use 'name' instead. -// 9.9: 'caycStatus' field is added to the response -// 8.4: Parameter 'id' is deprecated. Format changes from integer to string. Use 'name' instead. -// 8.4: Field 'id' in the response is deprecated. -// 7.6: 'period' and 'warning' fields of conditions are removed from the response -// 7.0: 'isBuiltIn' field is added to the response -// 7.0: 'actions' field is added in the response +// +// 10.3: 'isDefault' field is added to the response +// 10.0: Field 'id' in the response has been removed +// 10.0: Parameter 'id' is removed. Use 'name' instead. +// 9.9: 'caycStatus' field is added to the response +// 8.4: Parameter 'id' is deprecated. Format changes from integer to string. Use 'name' instead. +// 8.4: Field 'id' in the response is deprecated. +// 7.6: 'period' and 'warning' fields of conditions are removed from the response +// 7.0: 'isBuiltIn' field is added to the response +// 7.0: 'actions' field is added in the response func (s *Qualitygates) Show(ctx context.Context, r qualitygates.ShowRequest) (*qualitygates.ShowResponse, *http.Response, error) { u := fmt.Sprintf("%s/show", s.path) v := new(qualitygates.ShowResponse) @@ -465,10 +471,11 @@ func (s *Qualitygates) Show(ctx context.Context, r qualitygates.ShowRequest) (*q // Requires the 'Administer Quality Gates' permission. // Since 4.3 // Changelog: -// 8.4: Parameter 'id' format changes from integer to string. -// 7.6: Removed optional 'warning' and 'period' parameters -// 7.6: Made 'error' parameter mandatory -// 7.6: Reduced the possible values of 'op' parameter to LT and GT +// +// 8.4: Parameter 'id' format changes from integer to string. +// 7.6: Removed optional 'warning' and 'period' parameters +// 7.6: Made 'error' parameter mandatory +// 7.6: Reduced the possible values of 'op' parameter to LT and GT func (s *Qualitygates) UpdateCondition(ctx context.Context, r qualitygates.UpdateConditionRequest) (*http.Response, error) { u := fmt.Sprintf("%s/update_condition", s.path) diff --git a/sonarqube/qualityprofiles_gen.go b/sonarqube/qualityprofiles_gen.go index 01a1c0e..ac02b48 100644 --- a/sonarqube/qualityprofiles_gen.go +++ b/sonarqube/qualityprofiles_gen.go @@ -19,8 +19,9 @@ type Qualityprofiles service // // Since 4.4 // Changelog: -// 10.6: Add parameter 'prioritizedRule'. -// 10.2: Parameter 'severity' is now deprecated. +// +// 10.6: Add parameter 'prioritizedRule'. +// 10.2: Parameter 'severity' is now deprecated. func (s *Qualityprofiles) ActivateRule(ctx context.Context, r qualityprofiles.ActivateRuleRequest) (*http.Response, error) { u := fmt.Sprintf("%s/activate_rule", s.path) @@ -39,9 +40,10 @@ func (s *Qualityprofiles) ActivateRule(ctx context.Context, r qualityprofiles.Ac // // Since 4.4 // Changelog: -// 10.6: Add parameter 'prioritizedRule'. -// 10.2: Parameters 'severities', 'targetSeverity', 'active_severities', and 'types' are now deprecated. -// 10.0: Parameter 'sansTop25' is deprecated +// +// 10.6: Add parameter 'prioritizedRule'. +// 10.2: Parameters 'severities', 'targetSeverity', 'active_severities', and 'types' are now deprecated. +// 10.0: Parameter 'sansTop25' is deprecated func (s *Qualityprofiles) ActivateRules(ctx context.Context, r qualityprofiles.ActivateRulesRequest) (*http.Response, error) { u := fmt.Sprintf("%s/activate_rules", s.path) @@ -59,7 +61,6 @@ func (s *Qualityprofiles) ActivateRules(ctx context.Context, r qualityprofiles.A // * Administer right on the specified project // // Since 5.2 -// Changelog: func (s *Qualityprofiles) AddProject(ctx context.Context, r qualityprofiles.AddProjectRequest) (*http.Response, error) { u := fmt.Sprintf("%s/add_project", s.path) @@ -74,7 +75,8 @@ func (s *Qualityprofiles) AddProject(ctx context.Context, r qualityprofiles.AddP // Backup - Backup a quality profile in XML form. The exported profile can be restored through api/qualityprofiles/restore. // Since 5.2 // Changelog: -// 10.3: The 'priority' and 'type' fields of the rule XML object are deprecated. +// +// 10.3: The 'priority' and 'type' fields of the rule XML object are deprecated. func (s *Qualityprofiles) Backup(ctx context.Context, r qualityprofiles.BackupRequest) (*qualityprofiles.BackupResponse, *http.Response, error) { u := fmt.Sprintf("%s/backup", s.path) v := new(qualityprofiles.BackupResponse) @@ -93,7 +95,6 @@ func (s *Qualityprofiles) Backup(ctx context.Context, r qualityprofiles.BackupRe // * Edit right on the specified quality profile // // Since 5.2 -// Changelog: func (s *Qualityprofiles) ChangeParent(ctx context.Context, r qualityprofiles.ChangeParentRequest) (*http.Response, error) { u := fmt.Sprintf("%s/change_parent", s.path) @@ -108,11 +109,12 @@ func (s *Qualityprofiles) ChangeParent(ctx context.Context, r qualityprofiles.Ch // Changelog - Get the history of changes on a quality profile: rule activation/deactivation, change in parameters/severity. Events are ordered by date in descending order (most recent first). // Since 5.2 // Changelog: -// 10.3: Added fields 'cleanCodeAttributeCategory', 'impacts' to response -// 10.3: Added fields 'oldCleanCodeAttribute', 'newCleanCodeAttribute', 'oldCleanCodeAttributeCategory', 'newCleanCodeAttributeCategory' and 'impactChanges' to 'params' section of response -// 10.3: Added field 'sonarQubeVersion' to 'params' section of response -// 9.8: response fields 'total', 's', 'ps' have been deprecated, please use 'paging' object instead -// 9.8: The field 'paging' has been added to the response +// +// 10.3: Added fields 'cleanCodeAttributeCategory', 'impacts' to response +// 10.3: Added fields 'oldCleanCodeAttribute', 'newCleanCodeAttribute', 'oldCleanCodeAttributeCategory', 'newCleanCodeAttributeCategory' and 'impactChanges' to 'params' section of response +// 10.3: Added field 'sonarQubeVersion' to 'params' section of response +// 9.8: response fields 'total', 's', 'ps' have been deprecated, please use 'paging' object instead +// 9.8: The field 'paging' has been added to the response func (s *Qualityprofiles) Changelog(ctx context.Context, r qualityprofiles.ChangelogRequest, p paging.Params) (*qualityprofiles.ChangelogResponse, *http.Response, error) { u := fmt.Sprintf("%s/changelog", s.path) v := new(qualityprofiles.ChangelogResponse) @@ -149,7 +151,6 @@ func (s *Qualityprofiles) ChangelogAll(ctx context.Context, r qualityprofiles.Ch // Copy - Copy a quality profile. // Requires to be logged in and the 'Administer Quality Profiles' permission. // Since 5.2 -// Changelog: func (s *Qualityprofiles) Copy(ctx context.Context, r qualityprofiles.CopyRequest) (*qualityprofiles.CopyResponse, *http.Response, error) { u := fmt.Sprintf("%s/copy", s.path) v := new(qualityprofiles.CopyResponse) @@ -165,7 +166,6 @@ func (s *Qualityprofiles) Copy(ctx context.Context, r qualityprofiles.CopyReques // Create - Create a quality profile. // Requires to be logged in and the 'Administer Quality Profiles' permission. // Since 5.2 -// Changelog: func (s *Qualityprofiles) Create(ctx context.Context, r qualityprofiles.CreateRequest) (*qualityprofiles.CreateResponse, *http.Response, error) { u := fmt.Sprintf("%s/create", s.path) v := new(qualityprofiles.CreateResponse) @@ -185,7 +185,8 @@ func (s *Qualityprofiles) Create(ctx context.Context, r qualityprofiles.CreateRe // // Since 4.4 // Changelog: -// 10.3: Inherited rules can be deactivated (if the global admin setting is enabled) +// +// 10.3: Inherited rules can be deactivated (if the global admin setting is enabled) func (s *Qualityprofiles) DeactivateRule(ctx context.Context, r qualityprofiles.DeactivateRuleRequest) (*http.Response, error) { u := fmt.Sprintf("%s/deactivate_rule", s.path) @@ -204,9 +205,10 @@ func (s *Qualityprofiles) DeactivateRule(ctx context.Context, r qualityprofiles. // // Since 4.4 // Changelog: -// 10.3: Inherited rules can be deactivated (if the global admin setting is enabled) -// 10.2: Parameters 'severities', 'active_severities', and 'types' are now deprecated. -// 10.0: Parameter 'sansTop25' is deprecated +// +// 10.3: Inherited rules can be deactivated (if the global admin setting is enabled) +// 10.2: Parameters 'severities', 'active_severities', and 'types' are now deprecated. +// 10.0: Parameter 'sansTop25' is deprecated func (s *Qualityprofiles) DeactivateRules(ctx context.Context, r qualityprofiles.DeactivateRulesRequest) (*http.Response, error) { u := fmt.Sprintf("%s/deactivate_rules", s.path) @@ -224,7 +226,6 @@ func (s *Qualityprofiles) DeactivateRules(ctx context.Context, r qualityprofiles // * Edit right on the specified quality profile // // Since 5.2 -// Changelog: func (s *Qualityprofiles) Delete(ctx context.Context, r qualityprofiles.DeleteRequest) (*http.Response, error) { u := fmt.Sprintf("%s/delete", s.path) @@ -238,7 +239,6 @@ func (s *Qualityprofiles) Delete(ctx context.Context, r qualityprofiles.DeleteRe // Export - Export a quality profile. // Since 5.2 -// Changelog: func (s *Qualityprofiles) Export(ctx context.Context, r qualityprofiles.ExportRequest) (*qualityprofiles.ExportResponse, *http.Response, error) { u := fmt.Sprintf("%s/export", s.path) v := new(qualityprofiles.ExportResponse) @@ -253,7 +253,6 @@ func (s *Qualityprofiles) Export(ctx context.Context, r qualityprofiles.ExportRe // Exporters - Lists available profile export formats. // Since 5.2 -// Changelog: func (s *Qualityprofiles) Exporters(ctx context.Context, r qualityprofiles.ExportersRequest) (*qualityprofiles.ExportersResponse, *http.Response, error) { u := fmt.Sprintf("%s/exporters", s.path) v := new(qualityprofiles.ExportersResponse) @@ -268,7 +267,6 @@ func (s *Qualityprofiles) Exporters(ctx context.Context, r qualityprofiles.Expor // Importers - List supported importers. // Since 5.2 -// Changelog: func (s *Qualityprofiles) Importers(ctx context.Context, r qualityprofiles.ImportersRequest) (*qualityprofiles.ImportersResponse, *http.Response, error) { u := fmt.Sprintf("%s/importers", s.path) v := new(qualityprofiles.ImportersResponse) @@ -284,7 +282,8 @@ func (s *Qualityprofiles) Importers(ctx context.Context, r qualityprofiles.Impor // Inheritance - Show a quality profile's ancestors and children. // Since 5.2 // Changelog: -// 10.3: Field 'inactiveRuleCount' added to the response +// +// 10.3: Field 'inactiveRuleCount' added to the response func (s *Qualityprofiles) Inheritance(ctx context.Context, r qualityprofiles.InheritanceRequest) (*qualityprofiles.InheritanceResponse, *http.Response, error) { u := fmt.Sprintf("%s/inheritance", s.path) v := new(qualityprofiles.InheritanceResponse) @@ -302,13 +301,14 @@ func (s *Qualityprofiles) Inheritance(ctx context.Context, r qualityprofiles.Inh // See api/qualityprofiles/search in order to get the Quality Profile Key. // Since 5.2 // Changelog: -// 10.0: deprecated 'more' response field has been removed -// 8.8: deprecated 'id' response field has been removed -// 8.8: deprecated 'uuid' response field has been removed -// 7.2: 'more' response field is deprecated -// 6.5: 'id' response field is deprecated -// 6.0: 'uuid' response field is deprecated and replaced by 'id' -// 6.0: 'key' response field has been added to return the project key +// +// 10.0: deprecated 'more' response field has been removed +// 8.8: deprecated 'id' response field has been removed +// 8.8: deprecated 'uuid' response field has been removed +// 7.2: 'more' response field is deprecated +// 6.5: 'id' response field is deprecated +// 6.0: 'uuid' response field is deprecated and replaced by 'id' +// 6.0: 'key' response field has been added to return the project key func (s *Qualityprofiles) Projects(ctx context.Context, r qualityprofiles.ProjectsRequest, p paging.Params) (*qualityprofiles.ProjectsResponse, *http.Response, error) { u := fmt.Sprintf("%s/projects", s.path) v := new(qualityprofiles.ProjectsResponse) @@ -349,7 +349,6 @@ func (s *Qualityprofiles) ProjectsAll(ctx context.Context, r qualityprofiles.Pro // * Administer right on the specified project // // Since 5.2 -// Changelog: func (s *Qualityprofiles) RemoveProject(ctx context.Context, r qualityprofiles.RemoveProjectRequest) (*http.Response, error) { u := fmt.Sprintf("%s/remove_project", s.path) @@ -367,7 +366,6 @@ func (s *Qualityprofiles) RemoveProject(ctx context.Context, r qualityprofiles.R // * Edit right on the specified quality profile // // Since 5.2 -// Changelog: func (s *Qualityprofiles) Rename(ctx context.Context, r qualityprofiles.RenameRequest) (*http.Response, error) { u := fmt.Sprintf("%s/rename", s.path) @@ -383,7 +381,8 @@ func (s *Qualityprofiles) Rename(ctx context.Context, r qualityprofiles.RenameRe // Requires to be logged in and the 'Administer Quality Profiles' permission. // Since 5.2 // Changelog: -// 10.3: The 'priority' and 'type' fields of the rule XML object are deprecated. +// +// 10.3: The 'priority' and 'type' fields of the rule XML object are deprecated. func (s *Qualityprofiles) Restore(ctx context.Context, r qualityprofiles.RestoreRequest) (*http.Response, error) { u := fmt.Sprintf("%s/restore", s.path) @@ -398,10 +397,11 @@ func (s *Qualityprofiles) Restore(ctx context.Context, r qualityprofiles.Restore // Search - Search quality profiles // Since 5.2 // Changelog: -// 10.0: Remove deprecated parameter 'project_key'. Please use 'project' instead. -// 7.0: Add available actions 'delete' and 'associateProjects' -// 6.6: Add available actions 'edit', 'copy' and 'setAsDefault' and global action 'create' -// 6.5: The parameters 'defaults', 'project' and 'language' can be combined without any constraint +// +// 10.0: Remove deprecated parameter 'project_key'. Please use 'project' instead. +// 7.0: Add available actions 'delete' and 'associateProjects' +// 6.6: Add available actions 'edit', 'copy' and 'setAsDefault' and global action 'create' +// 6.5: The parameters 'defaults', 'project' and 'language' can be combined without any constraint func (s *Qualityprofiles) Search(ctx context.Context, r qualityprofiles.SearchRequest) (*qualityprofiles.SearchResponse, *http.Response, error) { u := fmt.Sprintf("%s/search", s.path) v := new(qualityprofiles.SearchResponse) @@ -417,7 +417,6 @@ func (s *Qualityprofiles) Search(ctx context.Context, r qualityprofiles.SearchRe // SetDefault - Select the default profile for a given language. // Requires to be logged in and the 'Administer Quality Profiles' permission. // Since 5.2 -// Changelog: func (s *Qualityprofiles) SetDefault(ctx context.Context, r qualityprofiles.SetDefaultRequest) (*http.Response, error) { u := fmt.Sprintf("%s/set_default", s.path) diff --git a/sonarqube/rules_gen.go b/sonarqube/rules_gen.go index 81b0f3f..a1d83e8 100644 --- a/sonarqube/rules_gen.go +++ b/sonarqube/rules_gen.go @@ -16,13 +16,14 @@ type Rules service // Requires the 'Administer Quality Profiles' permission // Since 4.4 // Changelog: -// 10.4: Add 'impacts' and 'cleanCodeAttribute' parameters to the request -// 10.4: Parameters 'type' and 'severity' are deprecated. Use 'impacts' instead. -// 10.4: Parameter 'preventReactivation' is deprecated. Use api/rules/update endpoint instead. -// 10.2: Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response -// 10.2: Fields 'type' and 'severity' are deprecated in the response. Use 'impacts' instead. -// 10.0: Drop deprecated keys: 'custom_key', 'template_key', 'markdown_description', 'prevent_reactivation' -// 5.5: Creating manual rule is not more possible +// +// 10.4: Add 'impacts' and 'cleanCodeAttribute' parameters to the request +// 10.4: Parameters 'type' and 'severity' are deprecated. Use 'impacts' instead. +// 10.4: Parameter 'preventReactivation' is deprecated. Use api/rules/update endpoint instead. +// 10.2: Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response +// 10.2: Fields 'type' and 'severity' are deprecated in the response. Use 'impacts' instead. +// 10.0: Drop deprecated keys: 'custom_key', 'template_key', 'markdown_description', 'prevent_reactivation' +// 5.5: Creating manual rule is not more possible func (s *Rules) Create(ctx context.Context, r rules.CreateRequest) (*rules.CreateResponse, *http.Response, error) { u := fmt.Sprintf("%s/create", s.path) v := new(rules.CreateResponse) @@ -38,7 +39,6 @@ func (s *Rules) Create(ctx context.Context, r rules.CreateRequest) (*rules.Creat // Delete - Delete custom rule. // Requires the 'Administer Quality Profiles' permission // Since 4.4 -// Changelog: func (s *Rules) Delete(ctx context.Context, r rules.DeleteRequest) (*http.Response, error) { u := fmt.Sprintf("%s/delete", s.path) @@ -52,7 +52,6 @@ func (s *Rules) Delete(ctx context.Context, r rules.DeleteRequest) (*http.Respon // Repositories - List available rule repositories // Since 4.5 -// Changelog: func (s *Rules) Repositories(ctx context.Context, r rules.RepositoriesRequest) (*rules.RepositoriesResponse, *http.Response, error) { u := fmt.Sprintf("%s/repositories", s.path) v := new(rules.RepositoriesResponse) @@ -69,44 +68,45 @@ func (s *Rules) Repositories(ctx context.Context, r rules.RepositoriesRequest) ( // // Since 4.4 // Changelog: -// 10.6: Parameter 'prioritizedRule has been added -// 10.2: Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response -// 10.2: The fields 'type' and 'severity' are deprecated in the response. Use 'impacts' instead. -// 10.2: The field 'cleanCodeAttribute' has been added to the 'f' parameter. -// 10.2: The value 'severity' for the 'f' parameter has been deprecated. -// 10.2: The values 'cleanCodeAttributeCategories', 'impactSoftwareQualities' and 'impactSeverities' have been added to the 'facets' parameter. -// 10.2: The values 'severity' and 'types' for the 'facets' parameter have been deprecated. Use 'impactSeverities' and 'impactSoftwareQualities' instead. -// 10.2: Parameters 'severities', 'types', and 'active_severities' are now deprecated. Use 'impactSoftwareQualities' and 'impactSeverities' instead. -// 10.0: The deprecated field 'effortToFixDescription' has been removed, use 'gapDescription' instead. -// 10.0: The deprecated field 'debtRemFnCoeff' has been removed, use 'remFnGapMultiplier' instead. -// 10.0: The deprecated field 'defaultDebtRemFnCoeff' has been removed, use 'defaultRemFnGapMultiplier' instead. -// 10.0: The deprecated field 'debtRemFnOffset' has been removed, use 'remFnBaseEffort' instead. -// 10.0: The deprecated field 'defaultDebtRemFnOffset' has been removed, use 'defaultRemFnBaseEffort' instead. -// 10.0: The deprecated field 'debtOverloaded' has been removed, use 'remFnOverloaded' instead. -// 10.0: The field 'defaultDebtRemFnType' has been deprecated, use 'defaultRemFnType' instead -// 10.0: The field 'debtRemFnType' has been deprecated, use 'remFnType' instead -// 10.0: The value 'debtRemFn' for the 'f' parameter has been deprecated, use 'remFn' instead -// 10.0: The value 'defaultDebtRemFn' for the 'f' parameter has been deprecated, use 'defaultRemFn' instead -// 10.0: The value 'sansTop25' for the parameter 'facets' has been deprecated -// 10.0: Parameter 'sansTop25' is deprecated -// 9.8: response fields 'total', 's', 'ps' have been deprecated, please use 'paging' object instead -// 9.8: The field 'paging' has been added to the response -// 9.6: 'descriptionSections' can optionally embed a context field -// 9.6: The field 'educationPrinciples' has been added to the 'f' parameter -// 9.5: The field 'htmlDesc' has been deprecated, use 'descriptionSections' instead -// 9.5: The field 'descriptionSections' has been added to the payload -// 9.5: The field 'descriptionSections' has been added to the 'f' parameter -// 7.5: The field 'updatedAt' has been added to the 'f' parameter -// 7.2: The field 'isExternal' has been added to the response -// 7.2: The field 'includeExternal' has been added to the 'f' parameter -// 7.1: The field 'scope' has been added to the response -// 7.1: The field 'scope' has been added to the 'f' parameter -// 5.5: The field 'effortToFixDescription' has been deprecated, use 'gapDescription' instead -// 5.5: The field 'debtRemFnCoeff' has been deprecated, use 'remFnGapMultiplier' instead -// 5.5: The field 'defaultDebtRemFnCoeff' has been deprecated, use 'defaultRemFnGapMultiplier' instead -// 5.5: The field 'debtRemFnOffset' has been deprecated, use 'remFnBaseEffort' instead -// 5.5: The field 'defaultDebtRemFnOffset' has been deprecated, use 'defaultRemFnBaseEffort' instead -// 5.5: The field 'debtOverloaded' has been deprecated, use 'remFnOverloaded' instead +// +// 10.6: Parameter 'prioritizedRule has been added +// 10.2: Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response +// 10.2: The fields 'type' and 'severity' are deprecated in the response. Use 'impacts' instead. +// 10.2: The field 'cleanCodeAttribute' has been added to the 'f' parameter. +// 10.2: The value 'severity' for the 'f' parameter has been deprecated. +// 10.2: The values 'cleanCodeAttributeCategories', 'impactSoftwareQualities' and 'impactSeverities' have been added to the 'facets' parameter. +// 10.2: The values 'severity' and 'types' for the 'facets' parameter have been deprecated. Use 'impactSeverities' and 'impactSoftwareQualities' instead. +// 10.2: Parameters 'severities', 'types', and 'active_severities' are now deprecated. Use 'impactSoftwareQualities' and 'impactSeverities' instead. +// 10.0: The deprecated field 'effortToFixDescription' has been removed, use 'gapDescription' instead. +// 10.0: The deprecated field 'debtRemFnCoeff' has been removed, use 'remFnGapMultiplier' instead. +// 10.0: The deprecated field 'defaultDebtRemFnCoeff' has been removed, use 'defaultRemFnGapMultiplier' instead. +// 10.0: The deprecated field 'debtRemFnOffset' has been removed, use 'remFnBaseEffort' instead. +// 10.0: The deprecated field 'defaultDebtRemFnOffset' has been removed, use 'defaultRemFnBaseEffort' instead. +// 10.0: The deprecated field 'debtOverloaded' has been removed, use 'remFnOverloaded' instead. +// 10.0: The field 'defaultDebtRemFnType' has been deprecated, use 'defaultRemFnType' instead +// 10.0: The field 'debtRemFnType' has been deprecated, use 'remFnType' instead +// 10.0: The value 'debtRemFn' for the 'f' parameter has been deprecated, use 'remFn' instead +// 10.0: The value 'defaultDebtRemFn' for the 'f' parameter has been deprecated, use 'defaultRemFn' instead +// 10.0: The value 'sansTop25' for the parameter 'facets' has been deprecated +// 10.0: Parameter 'sansTop25' is deprecated +// 9.8: response fields 'total', 's', 'ps' have been deprecated, please use 'paging' object instead +// 9.8: The field 'paging' has been added to the response +// 9.6: 'descriptionSections' can optionally embed a context field +// 9.6: The field 'educationPrinciples' has been added to the 'f' parameter +// 9.5: The field 'htmlDesc' has been deprecated, use 'descriptionSections' instead +// 9.5: The field 'descriptionSections' has been added to the payload +// 9.5: The field 'descriptionSections' has been added to the 'f' parameter +// 7.5: The field 'updatedAt' has been added to the 'f' parameter +// 7.2: The field 'isExternal' has been added to the response +// 7.2: The field 'includeExternal' has been added to the 'f' parameter +// 7.1: The field 'scope' has been added to the response +// 7.1: The field 'scope' has been added to the 'f' parameter +// 5.5: The field 'effortToFixDescription' has been deprecated, use 'gapDescription' instead +// 5.5: The field 'debtRemFnCoeff' has been deprecated, use 'remFnGapMultiplier' instead +// 5.5: The field 'defaultDebtRemFnCoeff' has been deprecated, use 'defaultRemFnGapMultiplier' instead +// 5.5: The field 'debtRemFnOffset' has been deprecated, use 'remFnBaseEffort' instead +// 5.5: The field 'defaultDebtRemFnOffset' has been deprecated, use 'defaultRemFnBaseEffort' instead +// 5.5: The field 'debtOverloaded' has been deprecated, use 'remFnOverloaded' instead func (s *Rules) Search(ctx context.Context, r rules.SearchRequest, p paging.Params) (*rules.SearchResponse, *http.Response, error) { u := fmt.Sprintf("%s/search", s.path) v := new(rules.SearchResponse) @@ -145,27 +145,28 @@ func (s *Rules) SearchAll(ctx context.Context, r rules.SearchRequest) (*rules.Se // // Since 4.2 // Changelog: -// 10.2: Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response -// 10.2: The field 'severity' and 'type' in the response have been deprecated, use 'impacts' instead. -// 10.0: The deprecated field 'effortToFixDescription' has been removed, use 'gapDescription' instead. -// 10.0: The deprecated field 'debtRemFnCoeff' has been removed, use 'remFnGapMultiplier' instead. -// 10.0: The deprecated field 'defaultDebtRemFnCoeff' has been removed, use 'defaultRemFnGapMultiplier' instead. -// 10.0: The deprecated field 'debtRemFnOffset' has been removed, use 'remFnBaseEffort' instead. -// 10.0: The deprecated field 'defaultDebtRemFnOffset' has been removed, use 'defaultRemFnBaseEffort' instead. -// 10.0: The deprecated field 'debtOverloaded' has been removed, use 'remFnOverloaded' instead. -// 10.0: The field 'defaultDebtRemFnType' has been deprecated, use 'defaultRemFnType' instead -// 10.0: The field 'debtRemFnType' has been deprecated, use 'remFnType' instead -// 9.6: 'descriptionSections' can optionally embed a context field. -// 9.6: 'educationPrinciples' has been added. -// 9.5: The field 'htmlDesc' in the response has been deprecated, it becomes 'descriptionSections'. -// 9.5: The field 'descriptionSections' has been added to the payload. -// 7.1: The field 'scope' has been added. -// 5.5: The field 'effortToFixDescription' in the response has been deprecated, it becomes 'gapDescription'. -// 5.5: The field 'debtRemFnCoeff' in the response has been deprecated, it becomes 'remFnGapMultiplier'. -// 5.5: The field 'defaultDebtRemFnCoeff' in the response has been deprecated, it becomes 'defaultRemFnGapMultiplier'. -// 5.5: The field 'debtRemFnOffset' in the response has been deprecated, it becomes 'remFnBaseEffort'. -// 5.5: The field 'defaultDebtRemFnOffset' in the response has been deprecated, it becomes 'defaultRemFnBaseEffort'. -// 5.5: The field 'debtOverloaded' in the response has been deprecated, it becomes 'remFnOverloaded'. +// +// 10.2: Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response +// 10.2: The field 'severity' and 'type' in the response have been deprecated, use 'impacts' instead. +// 10.0: The deprecated field 'effortToFixDescription' has been removed, use 'gapDescription' instead. +// 10.0: The deprecated field 'debtRemFnCoeff' has been removed, use 'remFnGapMultiplier' instead. +// 10.0: The deprecated field 'defaultDebtRemFnCoeff' has been removed, use 'defaultRemFnGapMultiplier' instead. +// 10.0: The deprecated field 'debtRemFnOffset' has been removed, use 'remFnBaseEffort' instead. +// 10.0: The deprecated field 'defaultDebtRemFnOffset' has been removed, use 'defaultRemFnBaseEffort' instead. +// 10.0: The deprecated field 'debtOverloaded' has been removed, use 'remFnOverloaded' instead. +// 10.0: The field 'defaultDebtRemFnType' has been deprecated, use 'defaultRemFnType' instead +// 10.0: The field 'debtRemFnType' has been deprecated, use 'remFnType' instead +// 9.6: 'descriptionSections' can optionally embed a context field. +// 9.6: 'educationPrinciples' has been added. +// 9.5: The field 'htmlDesc' in the response has been deprecated, it becomes 'descriptionSections'. +// 9.5: The field 'descriptionSections' has been added to the payload. +// 7.1: The field 'scope' has been added. +// 5.5: The field 'effortToFixDescription' in the response has been deprecated, it becomes 'gapDescription'. +// 5.5: The field 'debtRemFnCoeff' in the response has been deprecated, it becomes 'remFnGapMultiplier'. +// 5.5: The field 'defaultDebtRemFnCoeff' in the response has been deprecated, it becomes 'defaultRemFnGapMultiplier'. +// 5.5: The field 'debtRemFnOffset' in the response has been deprecated, it becomes 'remFnBaseEffort'. +// 5.5: The field 'defaultDebtRemFnOffset' in the response has been deprecated, it becomes 'defaultRemFnBaseEffort'. +// 5.5: The field 'debtOverloaded' in the response has been deprecated, it becomes 'remFnOverloaded'. func (s *Rules) Show(ctx context.Context, r rules.ShowRequest) (*rules.ShowResponse, *http.Response, error) { u := fmt.Sprintf("%s/show", s.path) v := new(rules.ShowResponse) @@ -181,7 +182,8 @@ func (s *Rules) Show(ctx context.Context, r rules.ShowRequest) (*rules.ShowRespo // Tags - List rule tags // Since 4.4 // Changelog: -// 9.4: Max page size increased to 500 +// +// 9.4: Max page size increased to 500 func (s *Rules) Tags(ctx context.Context, r rules.TagsRequest) (*rules.TagsResponse, *http.Response, error) { u := fmt.Sprintf("%s/tags", s.path) v := new(rules.TagsResponse) @@ -198,10 +200,11 @@ func (s *Rules) Tags(ctx context.Context, r rules.TagsRequest) (*rules.TagsRespo // Requires the 'Administer Quality Profiles' permission // Since 4.4 // Changelog: -// 10.4: The parameter 'severity' is deprecated. -// 10.4: Updating a removed rule is now possible. -// 10.2: The field 'severity' and 'type' in the response have been deprecated, use 'impacts' instead. -// 10.2: Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response +// +// 10.4: The parameter 'severity' is deprecated. +// 10.4: Updating a removed rule is now possible. +// 10.2: The field 'severity' and 'type' in the response have been deprecated, use 'impacts' instead. +// 10.2: Add 'impacts', 'cleanCodeAttribute', 'cleanCodeAttributeCategory' fields to the response func (s *Rules) Update(ctx context.Context, r rules.UpdateRequest) (*rules.UpdateResponse, *http.Response, error) { u := fmt.Sprintf("%s/update", s.path) v := new(rules.UpdateResponse) diff --git a/sonarqube/server_gen.go b/sonarqube/server_gen.go index 3c5c32e..75158c8 100644 --- a/sonarqube/server_gen.go +++ b/sonarqube/server_gen.go @@ -13,7 +13,6 @@ type Server service // Version - Version of SonarQube in plain text // Since 2.10 -// Changelog: func (s *Server) Version(ctx context.Context, r server.VersionRequest) (*server.VersionResponse, *http.Response, error) { u := fmt.Sprintf("%s/version", s.path) v := new(server.VersionResponse) diff --git a/sonarqube/settings_gen.go b/sonarqube/settings_gen.go index 37bf1f8..2e581e5 100644 --- a/sonarqube/settings_gen.go +++ b/sonarqube/settings_gen.go @@ -21,8 +21,9 @@ type Settings service // // Since 6.3 // Changelog: -// 10.1: The use of module keys in parameter 'component' is removed -// 7.6: The use of module keys in parameter 'component' is deprecated +// +// 10.1: The use of module keys in parameter 'component' is removed +// 7.6: The use of module keys in parameter 'component' is deprecated func (s *Settings) ListDefinitions(ctx context.Context, r settings.ListDefinitionsRequest) (*settings.ListDefinitionsResponse, *http.Response, error) { u := fmt.Sprintf("%s/list_definitions", s.path) v := new(settings.ListDefinitionsResponse) @@ -43,11 +44,12 @@ func (s *Settings) ListDefinitions(ctx context.Context, r settings.ListDefinitio // // Since 6.1 // Changelog: -// 10.1: Param 'component' now only accept keys for projects, applications, portfolios or subportfolios -// 10.1: Internal parameters 'branch' and 'pullRequest' were removed -// 8.8: Deprecated parameter 'componentKey' has been removed -// 7.6: The use of module keys in parameter 'component' is deprecated -// 7.1: The settings defined in conf/sonar.properties are read-only and can't be changed +// +// 10.1: Param 'component' now only accept keys for projects, applications, portfolios or subportfolios +// 10.1: Internal parameters 'branch' and 'pullRequest' were removed +// 8.8: Deprecated parameter 'componentKey' has been removed +// 7.6: The use of module keys in parameter 'component' is deprecated +// 7.1: The settings defined in conf/sonar.properties are read-only and can't be changed func (s *Settings) Reset(ctx context.Context, r settings.ResetRequest) (*http.Response, error) { u := fmt.Sprintf("%s/reset", s.path) @@ -68,11 +70,12 @@ func (s *Settings) Reset(ctx context.Context, r settings.ResetRequest) (*http.Re // // Since 6.1 // Changelog: -// 10.1: Param 'component' now only accept keys for projects, applications, portfolios or subportfolios -// 10.1: The use of module keys in parameter 'component' is removed -// 8.8: Deprecated parameter 'componentKey' has been removed -// 7.6: The use of module keys in parameter 'component' is deprecated -// 7.1: The settings defined in conf/sonar.properties are read-only and can't be changed +// +// 10.1: Param 'component' now only accept keys for projects, applications, portfolios or subportfolios +// 10.1: The use of module keys in parameter 'component' is removed +// 8.8: Deprecated parameter 'componentKey' has been removed +// 7.6: The use of module keys in parameter 'component' is deprecated +// 7.1: The settings defined in conf/sonar.properties are read-only and can't be changed func (s *Settings) Set(ctx context.Context, r settings.SetRequest) (*http.Response, error) { u := fmt.Sprintf("%s/set", s.path) @@ -92,10 +95,11 @@ func (s *Settings) Set(ctx context.Context, r settings.SetRequest) (*http.Respon // // Since 6.3 // Changelog: -// 10.1: The use of module keys in parameter 'component' is removed -// 9.1: The secured settings values are no longer returned. Secured settings keys that have a value are now returned in setSecuredSettings array. -// 7.6: The use of module keys in parameter 'component' is deprecated -// 7.1: The settings from conf/sonar.properties are excluded from results. +// +// 10.1: The use of module keys in parameter 'component' is removed +// 9.1: The secured settings values are no longer returned. Secured settings keys that have a value are now returned in setSecuredSettings array. +// 7.6: The use of module keys in parameter 'component' is deprecated +// 7.1: The settings from conf/sonar.properties are excluded from results. func (s *Settings) Values(ctx context.Context, r settings.ValuesRequest) (*settings.ValuesResponse, *http.Response, error) { u := fmt.Sprintf("%s/values", s.path) v := new(settings.ValuesResponse) diff --git a/sonarqube/sources_gen.go b/sonarqube/sources_gen.go index 9052626..0a0ffc8 100644 --- a/sonarqube/sources_gen.go +++ b/sonarqube/sources_gen.go @@ -13,7 +13,6 @@ type Sources service // Raw - Get source code as raw text. Require 'See Source Code' permission on file // Since 5.0 -// Changelog: func (s *Sources) Raw(ctx context.Context, r sources.RawRequest) (*sources.RawResponse, *http.Response, error) { u := fmt.Sprintf("%s/raw", s.path) v := new(sources.RawResponse) @@ -27,13 +26,13 @@ func (s *Sources) Raw(ctx context.Context, r sources.RawRequest) (*sources.RawRe } // Scm - Get SCM information of source files. Require See Source Code permission on file's project -// Each element of the result array is composed of:
    * Line number +// Each element of the result array is composed of: +// * Line number // * Author of the commit // * Datetime of the commit (before 5.2 it was only the Date) // * Revision of the commit (added in 5.2) -//
+// // Since 4.4 -// Changelog: func (s *Sources) Scm(ctx context.Context, r sources.ScmRequest) (*sources.ScmResponse, *http.Response, error) { u := fmt.Sprintf("%s/scm", s.path) v := new(sources.ScmResponse) @@ -47,11 +46,11 @@ func (s *Sources) Scm(ctx context.Context, r sources.ScmRequest) (*sources.ScmRe } // Show - Get source code. Requires See Source Code permission on file's project -// Each element of the result array is composed of:
    * Line number +// Each element of the result array is composed of: +// * Line number // * Content of the line -//
+// // Since 4.4 -// Changelog: func (s *Sources) Show(ctx context.Context, r sources.ShowRequest) (*sources.ShowResponse, *http.Response, error) { u := fmt.Sprintf("%s/show", s.path) v := new(sources.ShowResponse) diff --git a/sonarqube/system_gen.go b/sonarqube/system_gen.go index effe611..cbf1792 100644 --- a/sonarqube/system_gen.go +++ b/sonarqube/system_gen.go @@ -13,7 +13,6 @@ type System service // ChangeLogLevel - Temporarily changes level of logs. New level is not persistent and is lost when restarting server. Requires system administration permission. // Since 5.2 -// Changelog: func (s *System) ChangeLogLevel(ctx context.Context, r system.ChangeLogLevelRequest) (*http.Response, error) { u := fmt.Sprintf("%s/change_log_level", s.path) @@ -37,7 +36,8 @@ func (s *System) ChangeLogLevel(ctx context.Context, r system.ChangeLogLevelRequ // Since 5.2 // Deprecated since 10.6 // Changelog: -// 10.6: This endpoint is deprecated, please use its API v2 version /api/v2/system/migrations-status instead. +// +// 10.6: This endpoint is deprecated, please use its API v2 version /api/v2/system/migrations-status instead. func (s *System) DbMigrationStatus(ctx context.Context, r system.DbMigrationStatusRequest) (*system.DbMigrationStatusResponse, *http.Response, error) { u := fmt.Sprintf("%s/db_migration_status", s.path) v := new(system.DbMigrationStatusResponse) @@ -58,7 +58,6 @@ func (s *System) DbMigrationStatus(ctx context.Context, r system.DbMigrationStat // Requires the 'Administer System' permission or system passcode (see WEB_SYSTEM_PASS_CODE in sonar.properties). // When SonarQube is in safe mode (waiting or running a database upgrade), only the authentication with a system passcode is supported. // Since 6.6 -// Changelog: func (s *System) Health(ctx context.Context, r system.HealthRequest) (*system.HealthResponse, *http.Response, error) { u := fmt.Sprintf("%s/health", s.path) v := new(system.HealthResponse) @@ -75,10 +74,11 @@ func (s *System) Health(ctx context.Context, r system.HealthRequest) (*system.He // Requires 'Administer' permissions. // Since 5.1 // Changelog: -// 9.8: 'Edition' field added to the response under the 'System' section -// 9.7: 'Statistics' field has been removed from response -// 8.3: Becomes public -// 5.5: Becomes internal to easily update result +// +// 9.8: 'Edition' field added to the response under the 'System' section +// 9.7: 'Statistics' field has been removed from response +// 8.3: Becomes public +// 5.5: Becomes internal to easily update result func (s *System) Info(ctx context.Context, r system.InfoRequest) (*system.InfoResponse, *http.Response, error) { u := fmt.Sprintf("%s/info", s.path) v := new(system.InfoResponse) @@ -94,8 +94,9 @@ func (s *System) Info(ctx context.Context, r system.InfoRequest) (*system.InfoRe // Logs - Get system logs in plain-text format. Requires system administration permission. // Since 5.2 // Changelog: -// 10.4: Add support for deprecation logs in process property. -// 10.4: Deprecate property 'process' in favor of 'name'. +// +// 10.4: Add support for deprecation logs in process property. +// 10.4: Deprecate property 'process' in favor of 'name'. func (s *System) Logs(ctx context.Context, r system.LogsRequest) (*system.LogsResponse, *http.Response, error) { u := fmt.Sprintf("%s/logs", s.path) v := new(system.LogsResponse) @@ -119,7 +120,6 @@ func (s *System) Logs(ctx context.Context, r system.LogsRequest) (*system.LogsRe // * MIGRATION_REQUIRED: DB migration is required. // // Since 5.2 -// Changelog: func (s *System) MigrateDb(ctx context.Context, r system.MigrateDbRequest) (*system.MigrateDbResponse, *http.Response, error) { u := fmt.Sprintf("%s/migrate_db", s.path) v := new(system.MigrateDbResponse) @@ -134,7 +134,6 @@ func (s *System) MigrateDb(ctx context.Context, r system.MigrateDbRequest) (*sys // Ping - Answers "pong" as plain-text // Since 6.3 -// Changelog: func (s *System) Ping(ctx context.Context, r system.PingRequest) (*system.PingResponse, *http.Response, error) { u := fmt.Sprintf("%s/ping", s.path) v := new(system.PingResponse) @@ -149,7 +148,6 @@ func (s *System) Ping(ctx context.Context, r system.PingRequest) (*system.PingRe // Restart - Restarts server. Requires 'Administer System' permission. Performs a full restart of the Web, Search and Compute Engine Servers processes. Does not reload sonar.properties. // Since 4.3 -// Changelog: func (s *System) Restart(ctx context.Context, r system.RestartRequest) (*http.Response, error) { u := fmt.Sprintf("%s/restart", s.path) @@ -170,7 +168,6 @@ func (s *System) Restart(ctx context.Context, r system.RestartRequest) (*http.Re // * DB_MIGRATION_RUNNING: DB migration is running (refer to WS /api/system/migrate_db for details) //

// Since 5.2 -// Changelog: func (s *System) Status(ctx context.Context, r system.StatusRequest) (*system.StatusResponse, *http.Response, error) { u := fmt.Sprintf("%s/status", s.path) v := new(system.StatusResponse) @@ -187,9 +184,10 @@ func (s *System) Status(ctx context.Context, r system.StatusRequest) (*system.St // Plugin information is retrieved from Update Center. Date and time at which Update Center was last refreshed is provided in the response. // Since 5.2 // Changelog: -// 10.5: The field 'ltsVersion' is deprecated from the response -// 10.5: The field 'ltaVersion' is added to indicate the Long-Term Active Version -// 10.5: The field 'installedVersionActive' is added to indicate if the installed version is an active version +// +// 10.5: The field 'ltsVersion' is deprecated from the response +// 10.5: The field 'ltaVersion' is added to indicate the Long-Term Active Version +// 10.5: The field 'installedVersionActive' is added to indicate if the installed version is an active version func (s *System) Upgrades(ctx context.Context, r system.UpgradesRequest) (*system.UpgradesResponse, *http.Response, error) { u := fmt.Sprintf("%s/upgrades", s.path) v := new(system.UpgradesResponse) diff --git a/sonarqube/user_groups_gen.go b/sonarqube/user_groups_gen.go index b6d6340..104f18a 100644 --- a/sonarqube/user_groups_gen.go +++ b/sonarqube/user_groups_gen.go @@ -18,9 +18,10 @@ type UserGroups service // Since 5.2 // Deprecated since 10.4 // Changelog: -// 10.4: Deprecated. Use POST /api/v2/authorizations/group-memberships instead -// 10.0: Parameter 'id' is removed. Use 'name' instead. -// 8.4: Parameter 'id' is deprecated. Format changes from integer to string. Use 'name' instead. +// +// 10.4: Deprecated. Use POST /api/v2/authorizations/group-memberships instead +// 10.0: Parameter 'id' is removed. Use 'name' instead. +// 8.4: Parameter 'id' is deprecated. Format changes from integer to string. Use 'name' instead. func (s *UserGroups) AddUser(ctx context.Context, r user_groups.AddUserRequest) (*http.Response, error) { u := fmt.Sprintf("%s/add_user", s.path) @@ -37,8 +38,9 @@ func (s *UserGroups) AddUser(ctx context.Context, r user_groups.AddUserRequest) // Since 5.2 // Deprecated since 10.4 // Changelog: -// 10.4: Deprecated. Use POST /api/v2/authorizations/groups instead -// 8.4: Field 'id' format in the response changes from integer to string. +// +// 10.4: Deprecated. Use POST /api/v2/authorizations/groups instead +// 8.4: Field 'id' format in the response changes from integer to string. func (s *UserGroups) Create(ctx context.Context, r user_groups.CreateRequest) (*user_groups.CreateResponse, *http.Response, error) { u := fmt.Sprintf("%s/create", s.path) v := new(user_groups.CreateResponse) @@ -57,9 +59,10 @@ func (s *UserGroups) Create(ctx context.Context, r user_groups.CreateRequest) (* // Since 5.2 // Deprecated since 10.4 // Changelog: -// 10.4: Deprecated. Use DELETE /api/v2/authorizations/groups instead -// 10.0: Parameter 'id' is removed. Use 'name' instead. -// 8.4: Parameter 'id' is deprecated. Format changes from integer to string. Use 'name' instead. +// +// 10.4: Deprecated. Use DELETE /api/v2/authorizations/groups instead +// 10.0: Parameter 'id' is removed. Use 'name' instead. +// 8.4: Parameter 'id' is deprecated. Format changes from integer to string. Use 'name' instead. func (s *UserGroups) Delete(ctx context.Context, r user_groups.DeleteRequest) (*http.Response, error) { u := fmt.Sprintf("%s/delete", s.path) @@ -77,9 +80,10 @@ func (s *UserGroups) Delete(ctx context.Context, r user_groups.DeleteRequest) (* // Since 5.2 // Deprecated since 10.4 // Changelog: -// 10.4: Deprecated. Use DELETE /api/v2/authorizations/group-memberships instead -// 10.0: Parameter 'id' is removed. Use 'name' instead. -// 8.4: Parameter 'id' is deprecated. Format changes from integer to string. Use 'name' instead. +// +// 10.4: Deprecated. Use DELETE /api/v2/authorizations/group-memberships instead +// 10.0: Parameter 'id' is removed. Use 'name' instead. +// 8.4: Parameter 'id' is deprecated. Format changes from integer to string. Use 'name' instead. func (s *UserGroups) RemoveUser(ctx context.Context, r user_groups.RemoveUserRequest) (*http.Response, error) { u := fmt.Sprintf("%s/remove_user", s.path) @@ -96,13 +100,14 @@ func (s *UserGroups) RemoveUser(ctx context.Context, r user_groups.RemoveUserReq // Since 5.2 // Deprecated since 10.4 // Changelog: -// 10.4: Deprecated. Use GET /api/v2/authorizations/groups instead -// 10.0: Field 'id' in the response has been removed -// 10.0: New parameter 'managed' to optionally search by managed status -// 10.0: Response includes 'managed' field. -// 8.4: Field 'id' in the response is deprecated. Format changes from integer to string. -// 6.4: Paging response fields moved to a Paging object -// 6.4: 'default' response field has been added +// +// 10.4: Deprecated. Use GET /api/v2/authorizations/groups instead +// 10.0: Field 'id' in the response has been removed +// 10.0: New parameter 'managed' to optionally search by managed status +// 10.0: Response includes 'managed' field. +// 8.4: Field 'id' in the response is deprecated. Format changes from integer to string. +// 6.4: Paging response fields moved to a Paging object +// 6.4: 'default' response field has been added func (s *UserGroups) Search(ctx context.Context, r user_groups.SearchRequest, p paging.Params) (*user_groups.SearchResponse, *http.Response, error) { u := fmt.Sprintf("%s/search", s.path) v := new(user_groups.SearchResponse) @@ -141,11 +146,12 @@ func (s *UserGroups) SearchAll(ctx context.Context, r user_groups.SearchRequest) // Since 5.2 // Deprecated since 10.4 // Changelog: -// 10.4: Deprecated. Use PATCH /api/v2/authorizations/groups instead -// 10.0: Parameter 'id' is removed in favor of 'currentName' -// 8.5: Parameter 'id' deprecated in favor of 'currentName' -// 8.4: Parameter 'id' format changes from integer to string -// 6.4: The default group is no longer editable +// +// 10.4: Deprecated. Use PATCH /api/v2/authorizations/groups instead +// 10.0: Parameter 'id' is removed in favor of 'currentName' +// 8.5: Parameter 'id' deprecated in favor of 'currentName' +// 8.4: Parameter 'id' format changes from integer to string +// 6.4: The default group is no longer editable func (s *UserGroups) Update(ctx context.Context, r user_groups.UpdateRequest) (*http.Response, error) { u := fmt.Sprintf("%s/update", s.path) @@ -162,12 +168,13 @@ func (s *UserGroups) Update(ctx context.Context, r user_groups.UpdateRequest) (* // Since 5.2 // Deprecated since 10.4 // Changelog: -// 10.4: Deprecated. Use GET /api/v2/authorizations/group-memberships instead -// 10.0: Field 'managed' added to the payload. -// 10.0: Parameter 'id' is removed. Use 'name' instead. -// 9.8: response fields 'total', 's', 'ps' have been deprecated, please use 'paging' object instead. -// 9.8: The field 'paging' has been added to the response. -// 8.4: Parameter 'id' is deprecated. Format changes from integer to string. Use 'name' instead. +// +// 10.4: Deprecated. Use GET /api/v2/authorizations/group-memberships instead +// 10.0: Field 'managed' added to the payload. +// 10.0: Parameter 'id' is removed. Use 'name' instead. +// 9.8: response fields 'total', 's', 'ps' have been deprecated, please use 'paging' object instead. +// 9.8: The field 'paging' has been added to the response. +// 8.4: Parameter 'id' is deprecated. Format changes from integer to string. Use 'name' instead. func (s *UserGroups) Users(ctx context.Context, r user_groups.UsersRequest, p paging.Params) (*user_groups.UsersResponse, *http.Response, error) { u := fmt.Sprintf("%s/users", s.path) v := new(user_groups.UsersResponse) diff --git a/sonarqube/user_tokens_gen.go b/sonarqube/user_tokens_gen.go index ae7a82d..583227f 100644 --- a/sonarqube/user_tokens_gen.go +++ b/sonarqube/user_tokens_gen.go @@ -16,7 +16,8 @@ type UserTokens service // It requires administration permissions to specify a 'login' and generate a token for another user. Otherwise, a token is generated for the current user. // Since 5.3 // Changelog: -// 9.6: Response field 'expirationDate' added +// +// 9.6: Response field 'expirationDate' added func (s *UserTokens) Generate(ctx context.Context, r user_tokens.GenerateRequest) (*user_tokens.GenerateResponse, *http.Response, error) { u := fmt.Sprintf("%s/generate", s.path) v := new(user_tokens.GenerateResponse) @@ -32,7 +33,6 @@ func (s *UserTokens) Generate(ctx context.Context, r user_tokens.GenerateRequest // Revoke - Revoke a user access token. // It requires administration permissions to specify a 'login' and revoke a token for another user. Otherwise, the token for the current user is revoked. // Since 5.3 -// Changelog: func (s *UserTokens) Revoke(ctx context.Context, r user_tokens.RevokeRequest) (*http.Response, error) { u := fmt.Sprintf("%s/revoke", s.path) @@ -51,8 +51,9 @@ func (s *UserTokens) Revoke(ctx context.Context, r user_tokens.RevokeRequest) (* // Authentication is required for this API endpoint // Since 5.3 // Changelog: -// 9.6: New field 'expirationDate' is added to response -// 7.7: New field 'lastConnectionDate' is added to response +// +// 9.6: New field 'expirationDate' is added to response +// 7.7: New field 'lastConnectionDate' is added to response func (s *UserTokens) Search(ctx context.Context, r user_tokens.SearchRequest) (*user_tokens.SearchResponse, *http.Response, error) { u := fmt.Sprintf("%s/search", s.path) v := new(user_tokens.SearchResponse) diff --git a/sonarqube/users_gen.go b/sonarqube/users_gen.go index 9021626..ca4205b 100644 --- a/sonarqube/users_gen.go +++ b/sonarqube/users_gen.go @@ -16,7 +16,8 @@ type Users service // Since 9.7 // Deprecated since 10.4 // Changelog: -// 10.4: Deprecated. Use DELETE api/v2/users-management/users/{id}?anonymize=true instead +// +// 10.4: Deprecated. Use DELETE api/v2/users-management/users/{id}?anonymize=true instead func (s *Users) Anonymize(ctx context.Context, r users.AnonymizeRequest) (*http.Response, error) { u := fmt.Sprintf("%s/anonymize", s.path) @@ -31,7 +32,8 @@ func (s *Users) Anonymize(ctx context.Context, r users.AnonymizeRequest) (*http. // ChangePassword - Update a user's password. Authenticated users can change their own password, provided that the account is not linked to an external authentication system. Administer System permission is required to change another user's password. // Since 5.2 // Changelog: -// 8.6: It's no more possible for the password to be the same as the previous one +// +// 8.6: It's no more possible for the password to be the same as the previous one func (s *Users) ChangePassword(ctx context.Context, r users.ChangePasswordRequest) (*http.Response, error) { u := fmt.Sprintf("%s/change_password", s.path) @@ -49,9 +51,10 @@ func (s *Users) ChangePassword(ctx context.Context, r users.ChangePasswordReques // Since 3.7 // Deprecated since 10.4 // Changelog: -// 10.4: Deprecated. Use POST api/v2/users-management/users instead -// 6.3: The password is only mandatory when creating local users, and should not be set on non local users -// 6.3: The 'infos' message is no more returned when a user is reactivated +// +// 10.4: Deprecated. Use POST api/v2/users-management/users instead +// 6.3: The password is only mandatory when creating local users, and should not be set on non local users +// 6.3: The 'infos' message is no more returned when a user is reactivated func (s *Users) Create(ctx context.Context, r users.CreateRequest) (*users.CreateResponse, *http.Response, error) { u := fmt.Sprintf("%s/create", s.path) v := new(users.CreateResponse) @@ -68,7 +71,8 @@ func (s *Users) Create(ctx context.Context, r users.CreateRequest) (*users.Creat // Since 3.7 // Deprecated since 10.4 // Changelog: -// 10.4: Deprecated. Use DELETE api/v2/users-management/users/{id} instead +// +// 10.4: Deprecated. Use DELETE api/v2/users-management/users/{id} instead func (s *Users) Deactivate(ctx context.Context, r users.DeactivateRequest) (*users.DeactivateResponse, *http.Response, error) { u := fmt.Sprintf("%s/deactivate", s.path) v := new(users.DeactivateResponse) @@ -86,9 +90,10 @@ func (s *Users) Deactivate(ctx context.Context, r users.DeactivateRequest) (*use // Since 5.2 // Deprecated since 10.4 // Changelog: -// 10.4: Deprecated. Use GET api/v2/authorizations/groups-memberships?userId={} instead -// 6.4: Paging response fields moved to a Paging object -// 6.4: 'default' response field has been added +// +// 10.4: Deprecated. Use GET api/v2/authorizations/groups-memberships?userId={} instead +// 6.4: Paging response fields moved to a Paging object +// 6.4: 'default' response field has been added func (s *Users) Groups(ctx context.Context, r users.GroupsRequest, p paging.Params) (*users.GroupsResponse, *http.Response, error) { u := fmt.Sprintf("%s/groups", s.path) v := new(users.GroupsResponse) @@ -135,20 +140,21 @@ func (s *Users) GroupsAll(ctx context.Context, r users.GroupsRequest) (*users.Gr // Since 3.6 // Deprecated since 10.4 // Changelog: -// 10.4: Deprecated. Use GET api/v2/users-management/users instead -// 10.3: New optional parameters externalIdentity to find a user by its IdP login -// 10.1: New optional parameters slLastConnectedAfter and slLastConnectedBefore to filter users by SonarLint last connection date. Only available with Administer System permission. -// 10.1: New optional parameters lastConnectedAfter and lastConnectedBefore to filter users by SonarQube last connection date. Only available with Administer System permission. -// 10.1: New field 'sonarLintLastConnectionDate' is added to response -// 10.0: 'q' parameter values is now always performing a case insensitive match -// 10.0: New parameter 'managed' to optionally search by managed status -// 10.0: Response includes 'managed' field. -// 9.7: New parameter 'deactivated' to optionally search for deactivated users -// 7.7: New field 'lastConnectionDate' is added to response -// 7.4: External identity is only returned to system administrators -// 6.4: Paging response fields moved to a Paging object -// 6.4: Avatar has been added to the response -// 6.4: Email is only returned when user has Administer System permission +// +// 10.4: Deprecated. Use GET api/v2/users-management/users instead +// 10.3: New optional parameters externalIdentity to find a user by its IdP login +// 10.1: New optional parameters slLastConnectedAfter and slLastConnectedBefore to filter users by SonarLint last connection date. Only available with Administer System permission. +// 10.1: New optional parameters lastConnectedAfter and lastConnectedBefore to filter users by SonarQube last connection date. Only available with Administer System permission. +// 10.1: New field 'sonarLintLastConnectionDate' is added to response +// 10.0: 'q' parameter values is now always performing a case insensitive match +// 10.0: New parameter 'managed' to optionally search by managed status +// 10.0: Response includes 'managed' field. +// 9.7: New parameter 'deactivated' to optionally search for deactivated users +// 7.7: New field 'lastConnectionDate' is added to response +// 7.4: External identity is only returned to system administrators +// 6.4: Paging response fields moved to a Paging object +// 6.4: Avatar has been added to the response +// 6.4: Email is only returned when user has Administer System permission func (s *Users) Search(ctx context.Context, r users.SearchRequest, p paging.Params) (*users.SearchResponse, *http.Response, error) { u := fmt.Sprintf("%s/search", s.path) v := new(users.SearchResponse) @@ -187,8 +193,9 @@ func (s *Users) SearchAll(ctx context.Context, r users.SearchRequest) (*users.Se // Since 3.7 // Deprecated since 10.4 // Changelog: -// 10.4: Deprecated. Use PATCH api/v2/users-management/users/{id} instead -// 5.2: User's password can only be changed using the 'change_password' action. +// +// 10.4: Deprecated. Use PATCH api/v2/users-management/users/{id} instead +// 5.2: User's password can only be changed using the 'change_password' action. func (s *Users) Update(ctx context.Context, r users.UpdateRequest) (*users.UpdateResponse, *http.Response, error) { u := fmt.Sprintf("%s/update", s.path) v := new(users.UpdateResponse) @@ -207,8 +214,9 @@ func (s *Users) Update(ctx context.Context, r users.UpdateRequest) (*users.Updat // Since 8.7 // Deprecated since 10.4 // Changelog: -// 10.4: Deprecated. Use PATCH api/v2/users-management/users/{id} instead -// 9.8: Use of 'sonarqube' for the value of 'newExternalProvider' is deprecated. +// +// 10.4: Deprecated. Use PATCH api/v2/users-management/users/{id} instead +// 9.8: Use of 'sonarqube' for the value of 'newExternalProvider' is deprecated. func (s *Users) UpdateIdentityProvider(ctx context.Context, r users.UpdateIdentityProviderRequest) (*http.Response, error) { u := fmt.Sprintf("%s/update_identity_provider", s.path) @@ -225,7 +233,8 @@ func (s *Users) UpdateIdentityProvider(ctx context.Context, r users.UpdateIdenti // Since 7.6 // Deprecated since 10.4 // Changelog: -// 10.4: Deprecated. Use PATCH api/v2/users-management/users/{id} instead +// +// 10.4: Deprecated. Use PATCH api/v2/users-management/users/{id} instead func (s *Users) UpdateLogin(ctx context.Context, r users.UpdateLoginRequest) (*http.Response, error) { u := fmt.Sprintf("%s/update_login", s.path) diff --git a/sonarqube/views_gen.go b/sonarqube/views_gen.go index 854d9ca..bbeeaf1 100644 --- a/sonarqube/views_gen.go +++ b/sonarqube/views_gen.go @@ -14,7 +14,6 @@ type Views service // AddApplication - Add an existing application to a portfolio. // Authentication is required for this API endpoint. // Since 9.3 -// Changelog: func (s *Views) AddApplication(ctx context.Context, r views.AddApplicationRequest) (*http.Response, error) { u := fmt.Sprintf("%s/add_application", s.path) @@ -29,7 +28,6 @@ func (s *Views) AddApplication(ctx context.Context, r views.AddApplicationReques // AddApplicationBranch - Add a branch of an application selected in a portfolio. // Requires 'Administrator' permission on the portfolio and 'Browse' permission for the application. // Since 9.3 -// Changelog: func (s *Views) AddApplicationBranch(ctx context.Context, r views.AddApplicationBranchRequest) (*http.Response, error) { u := fmt.Sprintf("%s/add_application_branch", s.path) @@ -44,7 +42,6 @@ func (s *Views) AddApplicationBranch(ctx context.Context, r views.AddApplication // AddPortfolio - Add an existing portfolio to the structure of another portfolio. // Authentication is required for this API endpoint. // Since 9.3 -// Changelog: func (s *Views) AddPortfolio(ctx context.Context, r views.AddPortfolioRequest) (*http.Response, error) { u := fmt.Sprintf("%s/add_portfolio", s.path) @@ -60,8 +57,9 @@ func (s *Views) AddPortfolio(ctx context.Context, r views.AddPortfolioRequest) ( // Requires 'Administrator' permission on the portfolio and 'Browse' permission for adding project. // Since 1.0 // Changelog: -// 8.3: Project to which user has `Browse` permission can be used in 'project' -// 7.3: This web service should not be used to add project to an application, api/applications/add_project should be used instead +// +// 8.3: Project to which user has `Browse` permission can be used in 'project' +// 7.3: This web service should not be used to add project to an application, api/applications/add_project should be used instead func (s *Views) AddProject(ctx context.Context, r views.AddProjectRequest) (*http.Response, error) { u := fmt.Sprintf("%s/add_project", s.path) @@ -76,7 +74,6 @@ func (s *Views) AddProject(ctx context.Context, r views.AddProjectRequest) (*htt // AddProjectBranch - Add a branch of a project selected in a portfolio. // Requires 'Administrator' permission on the portfolio and 'Browse' permission for the project. // Since 9.2 -// Changelog: func (s *Views) AddProjectBranch(ctx context.Context, r views.AddProjectBranchRequest) (*http.Response, error) { u := fmt.Sprintf("%s/add_project_branch", s.path) @@ -91,7 +88,6 @@ func (s *Views) AddProjectBranch(ctx context.Context, r views.AddProjectBranchRe // Applications - List applications which the user has access to that can be added to a portfolio. // Authentication is required for this API endpoint // Since 9.3 -// Changelog: func (s *Views) Applications(ctx context.Context, r views.ApplicationsRequest) (*views.ApplicationsResponse, *http.Response, error) { u := fmt.Sprintf("%s/applications", s.path) v := new(views.ApplicationsResponse) @@ -108,12 +104,13 @@ func (s *Views) Applications(ctx context.Context, r views.ApplicationsRequest) ( // Requires 'Administer System' permission or 'Create Portfolios' permission, // Since 1.0 // Changelog: -// 9.3: This web service can't create applications. Use 'applications/create' instead -// 9.3: Parameter 'parent' added to create sub-portfolios -// 7.4: Add support of the new permission 'Create Portfolios' permission -// 7.3: This web service should not be used to create an application, api/applications/create should be used instead -// 7.1: The 'visibility' parameter is public -// 2.0: Qualifier field is returned in the response +// +// 9.3: This web service can't create applications. Use 'applications/create' instead +// 9.3: Parameter 'parent' added to create sub-portfolios +// 7.4: Add support of the new permission 'Create Portfolios' permission +// 7.3: This web service should not be used to create an application, api/applications/create should be used instead +// 7.1: The 'visibility' parameter is public +// 2.0: Qualifier field is returned in the response func (s *Views) Create(ctx context.Context, r views.CreateRequest) (*http.Response, error) { u := fmt.Sprintf("%s/create", s.path) @@ -129,9 +126,10 @@ func (s *Views) Create(ctx context.Context, r views.CreateRequest) (*http.Respon // Requires 'Administrator' permission on the portfolio. // Since 1.0 // Changelog: -// 9.3: This web service should not be used to delete references to portfolios and applications. Use 'views/remove_portfolio' and 'views/remove_application' instead -// 9.3: This web service can't delete applications. Use 'applications/delete' instead -// 7.3: This web service should not be used to delete an application, api/applications/delete should be used instead +// +// 9.3: This web service should not be used to delete references to portfolios and applications. Use 'views/remove_portfolio' and 'views/remove_application' instead +// 9.3: This web service can't delete applications. Use 'applications/delete' instead +// 7.3: This web service should not be used to delete an application, api/applications/delete should be used instead func (s *Views) Delete(ctx context.Context, r views.DeleteRequest) (*http.Response, error) { u := fmt.Sprintf("%s/delete", s.path) @@ -147,10 +145,11 @@ func (s *Views) Delete(ctx context.Context, r views.DeleteRequest) (*http.Respon // Requires authentication. Only portfolios with the admin permission are returned. // Since 1.0 // Changelog: -// 10.0: The applications are removed from the response -// 9.3: Returning applications is now deprecated -// 2.0: Qualifier field is returned in the response -// 2.0: Visibility field is returned in the response +// +// 10.0: The applications are removed from the response +// 9.3: Returning applications is now deprecated +// 2.0: Qualifier field is returned in the response +// 2.0: Visibility field is returned in the response func (s *Views) List(ctx context.Context, r views.ListRequest) (*views.ListResponse, *http.Response, error) { u := fmt.Sprintf("%s/list", s.path) v := new(views.ListResponse) @@ -166,7 +165,6 @@ func (s *Views) List(ctx context.Context, r views.ListRequest) (*views.ListRespo // Move - Move a portfolio. // Authentication is required for this API endpoint. // Since 1.0 -// Changelog: func (s *Views) Move(ctx context.Context, r views.MoveRequest) (*http.Response, error) { u := fmt.Sprintf("%s/move", s.path) @@ -181,7 +179,6 @@ func (s *Views) Move(ctx context.Context, r views.MoveRequest) (*http.Response, // MoveOptions - List possible portfolio destinations. // Authentication is required for this API endpoint. // Since 1.0 -// Changelog: func (s *Views) MoveOptions(ctx context.Context, r views.MoveOptionsRequest) (*views.MoveOptionsResponse, *http.Response, error) { u := fmt.Sprintf("%s/move_options", s.path) v := new(views.MoveOptionsResponse) @@ -197,7 +194,6 @@ func (s *Views) MoveOptions(ctx context.Context, r views.MoveOptionsRequest) (*v // Portfolios - List portfolios that can be referenced. // Authentication is required for this API endpoint. // Since 9.3 -// Changelog: func (s *Views) Portfolios(ctx context.Context, r views.PortfoliosRequest) (*views.PortfoliosResponse, *http.Response, error) { u := fmt.Sprintf("%s/portfolios", s.path) v := new(views.PortfoliosResponse) @@ -213,7 +209,6 @@ func (s *Views) Portfolios(ctx context.Context, r views.PortfoliosRequest) (*vie // RemoveApplication - Remove an application from a portfolio. // Requires 'Administrator' permission on the portfolio. // Since 9.3 -// Changelog: func (s *Views) RemoveApplication(ctx context.Context, r views.RemoveApplicationRequest) (*http.Response, error) { u := fmt.Sprintf("%s/remove_application", s.path) @@ -228,7 +223,6 @@ func (s *Views) RemoveApplication(ctx context.Context, r views.RemoveApplication // RemoveApplicationBranch - Remove a branch of an application selected in a portfolio. // Requires 'Administrator' permission on the portfolio and 'Browse' permission for the application. // Since 9.3 -// Changelog: func (s *Views) RemoveApplicationBranch(ctx context.Context, r views.RemoveApplicationBranchRequest) (*http.Response, error) { u := fmt.Sprintf("%s/remove_application_branch", s.path) @@ -243,7 +237,6 @@ func (s *Views) RemoveApplicationBranch(ctx context.Context, r views.RemoveAppli // RemovePortfolio - Remove a reference to a portfolio. // Requires 'Administrator' permission on the portfolio. // Since 9.3 -// Changelog: func (s *Views) RemovePortfolio(ctx context.Context, r views.RemovePortfolioRequest) (*http.Response, error) { u := fmt.Sprintf("%s/remove_portfolio", s.path) @@ -259,9 +252,10 @@ func (s *Views) RemovePortfolio(ctx context.Context, r views.RemovePortfolioRequ // Requires 'Administrator' permission on the portfolio. // Since 1.0 // Changelog: -// 9.3: The `Browse` permission on a project is no longer required to remove it from a portfolio definition -// 8.3: Project to which user has `Browse` permission can be used in 'project' -// 7.3: This web service should not be used on application, api/applications/remove_project should be used instead +// +// 9.3: The `Browse` permission on a project is no longer required to remove it from a portfolio definition +// 8.3: Project to which user has `Browse` permission can be used in 'project' +// 7.3: This web service should not be used on application, api/applications/remove_project should be used instead func (s *Views) RemoveProject(ctx context.Context, r views.RemoveProjectRequest) (*http.Response, error) { u := fmt.Sprintf("%s/remove_project", s.path) @@ -276,7 +270,6 @@ func (s *Views) RemoveProject(ctx context.Context, r views.RemoveProjectRequest) // RemoveProjectBranch - Remove a branch of a project selected in a portfolio. // Requires 'Administrator' permission on the portfolio and 'Browse' permission for the project. // Since 9.2 -// Changelog: func (s *Views) RemoveProjectBranch(ctx context.Context, r views.RemoveProjectBranchRequest) (*http.Response, error) { u := fmt.Sprintf("%s/remove_project_branch", s.path) @@ -292,7 +285,6 @@ func (s *Views) RemoveProjectBranch(ctx context.Context, r views.RemoveProjectBr // In order to add project, please use api/view/add_project. // Requires 'Administrator' permission on the portfolio. // Since 7.4 -// Changelog: func (s *Views) SetManualMode(ctx context.Context, r views.SetManualModeRequest) (*http.Response, error) { u := fmt.Sprintf("%s/set_manual_mode", s.path) @@ -308,7 +300,6 @@ func (s *Views) SetManualMode(ctx context.Context, r views.SetManualModeRequest) // After setting this mode portfolio will not have any projects assigned. // Requires 'Administrator' permission on the portfolio. // Since 9.1 -// Changelog: func (s *Views) SetNoneMode(ctx context.Context, r views.SetNoneModeRequest) (*http.Response, error) { u := fmt.Sprintf("%s/set_none_mode", s.path) @@ -324,7 +315,8 @@ func (s *Views) SetNoneMode(ctx context.Context, r views.SetNoneModeRequest) (*h // Requires 'Administrator' permission on the portfolio. // Since 7.4 // Changelog: -// 9.2: Param 'branch' added +// +// 9.2: Param 'branch' added func (s *Views) SetRegexpMode(ctx context.Context, r views.SetRegexpModeRequest) (*http.Response, error) { u := fmt.Sprintf("%s/set_regexp_mode", s.path) @@ -340,7 +332,8 @@ func (s *Views) SetRegexpMode(ctx context.Context, r views.SetRegexpModeRequest) // Requires 'Administrator' permission on the portfolio. // Since 7.4 // Changelog: -// 9.2: Param 'branch' added +// +// 9.2: Param 'branch' added func (s *Views) SetRemainingProjectsMode(ctx context.Context, r views.SetRemainingProjectsModeRequest) (*http.Response, error) { u := fmt.Sprintf("%s/set_remaining_projects_mode", s.path) @@ -356,7 +349,8 @@ func (s *Views) SetRemainingProjectsMode(ctx context.Context, r views.SetRemaini // Requires 'Administrator' permission on the portfolio. // Since 7.4 // Changelog: -// 9.2: Param 'branch' added +// +// 9.2: Param 'branch' added func (s *Views) SetTagsMode(ctx context.Context, r views.SetTagsModeRequest) (*http.Response, error) { u := fmt.Sprintf("%s/set_tags_mode", s.path) @@ -372,12 +366,13 @@ func (s *Views) SetTagsMode(ctx context.Context, r views.SetTagsModeRequest) (*h // Authentication is required for this API endpoint. // Since 1.0 // Changelog: -// 10.1: The deprecated response field 'projects' has been removed. Use 'selectedProjects' instead -// 10.0: This web service no longer shows applications. Use 'api/applications/show' instead -// 9.3: Use of the web service for application is deprecated. api/applications/show should be used -// 9.2: The response field 'projects' for each portfolio is deprecated in favor of the new field 'selectedProjects' -// 7.3: Deleted field of projects is deprecated in the response, replaced by enabled -// 2.0: Qualifier field is returned in the response +// +// 10.1: The deprecated response field 'projects' has been removed. Use 'selectedProjects' instead +// 10.0: This web service no longer shows applications. Use 'api/applications/show' instead +// 9.3: Use of the web service for application is deprecated. api/applications/show should be used +// 9.2: The response field 'projects' for each portfolio is deprecated in favor of the new field 'selectedProjects' +// 7.3: Deleted field of projects is deprecated in the response, replaced by enabled +// 2.0: Qualifier field is returned in the response func (s *Views) Show(ctx context.Context, r views.ShowRequest) (*views.ShowResponse, *http.Response, error) { u := fmt.Sprintf("%s/show", s.path) v := new(views.ShowResponse) @@ -394,8 +389,9 @@ func (s *Views) Show(ctx context.Context, r views.ShowRequest) (*views.ShowRespo // Requires 'Administrator' permission on the portfolio. // Since 1.0 // Changelog: -// 9.3: This web service can't update applications. Use 'applications/update' instead -// 7.3: This web service should not be used on application, api/applications/update should be used instead +// +// 9.3: This web service can't update applications. Use 'applications/update' instead +// 7.3: This web service should not be used on application, api/applications/update should be used instead func (s *Views) Update(ctx context.Context, r views.UpdateRequest) (*http.Response, error) { u := fmt.Sprintf("%s/update", s.path) diff --git a/sonarqube/webhooks_gen.go b/sonarqube/webhooks_gen.go index cc355e3..6ac420d 100644 --- a/sonarqube/webhooks_gen.go +++ b/sonarqube/webhooks_gen.go @@ -16,7 +16,8 @@ type Webhooks service // Requires 'Administer' permission on the specified project, or global 'Administer' permission. // Since 7.1 // Changelog: -// 10.6: The minimum length of parameter 'secret' increased to 16. +// +// 10.6: The minimum length of parameter 'secret' increased to 16. func (s *Webhooks) Create(ctx context.Context, r webhooks.CreateRequest) (*webhooks.CreateResponse, *http.Response, error) { u := fmt.Sprintf("%s/create", s.path) v := new(webhooks.CreateResponse) @@ -32,7 +33,6 @@ func (s *Webhooks) Create(ctx context.Context, r webhooks.CreateRequest) (*webho // Delete - Delete a Webhook. // Requires 'Administer' permission on the specified project, or global 'Administer' permission. // Since 7.1 -// Changelog: func (s *Webhooks) Delete(ctx context.Context, r webhooks.DeleteRequest) (*http.Response, error) { u := fmt.Sprintf("%s/delete", s.path) @@ -48,7 +48,6 @@ func (s *Webhooks) Delete(ctx context.Context, r webhooks.DeleteRequest) (*http. // Require 'Administer' permission on the related project. // Note that additional information are returned by api/webhooks/delivery. // Since 6.2 -// Changelog: func (s *Webhooks) Deliveries(ctx context.Context, r webhooks.DeliveriesRequest, p paging.Params) (*webhooks.DeliveriesResponse, *http.Response, error) { u := fmt.Sprintf("%s/deliveries", s.path) v := new(webhooks.DeliveriesResponse) @@ -86,7 +85,6 @@ func (s *Webhooks) DeliveriesAll(ctx context.Context, r webhooks.DeliveriesReque // Require 'Administer System' permission. // Note that additional information are returned by api/webhooks/delivery. // Since 6.2 -// Changelog: func (s *Webhooks) Delivery(ctx context.Context, r webhooks.DeliveryRequest) (*webhooks.DeliveryResponse, *http.Response, error) { u := fmt.Sprintf("%s/delivery", s.path) v := new(webhooks.DeliveryResponse) @@ -103,8 +101,9 @@ func (s *Webhooks) Delivery(ctx context.Context, r webhooks.DeliveryRequest) (*w // Requires 'Administer' permission on the specified project, or global 'Administer' permission. // Since 7.1 // Changelog: -// 10.1: Field 'secret' replaced by flag 'hasSecret' in response -// 7.8: Field 'secret' added to response +// +// 10.1: Field 'secret' replaced by flag 'hasSecret' in response +// 7.8: Field 'secret' added to response func (s *Webhooks) List(ctx context.Context, r webhooks.ListRequest) (*webhooks.ListResponse, *http.Response, error) { u := fmt.Sprintf("%s/list", s.path) v := new(webhooks.ListResponse) @@ -120,7 +119,6 @@ func (s *Webhooks) List(ctx context.Context, r webhooks.ListRequest) (*webhooks. // Update - Update a Webhook. // Requires 'Administer' permission on the specified project, or global 'Administer' permission. // Since 7.1 -// Changelog: func (s *Webhooks) Update(ctx context.Context, r webhooks.UpdateRequest) (*http.Response, error) { u := fmt.Sprintf("%s/update", s.path) diff --git a/sonarqube/webservices_gen.go b/sonarqube/webservices_gen.go index 5183dc7..0fbbab4 100644 --- a/sonarqube/webservices_gen.go +++ b/sonarqube/webservices_gen.go @@ -13,7 +13,6 @@ type Webservices service // List - List web services // Since 4.2 -// Changelog: func (s *Webservices) List(ctx context.Context, r webservices.ListRequest) (*webservices.ListResponse, *http.Response, error) { u := fmt.Sprintf("%s/list", s.path) v := new(webservices.ListResponse) @@ -28,7 +27,6 @@ func (s *Webservices) List(ctx context.Context, r webservices.ListRequest) (*web // ResponseExample - Display web service response example // Since 4.4 -// Changelog: func (s *Webservices) ResponseExample(ctx context.Context, r webservices.ResponseExampleRequest) (*webservices.ResponseExampleResponse, *http.Response, error) { u := fmt.Sprintf("%s/response_example", s.path) v := new(webservices.ResponseExampleResponse)