diff --git a/sonarqube/issues/issues_gen.go b/sonarqube/issues/issues_gen.go
index 22d0f33..d04fb4a 100644
--- a/sonarqube/issues/issues_gen.go
+++ b/sonarqube/issues/issues_gen.go
@@ -167,8 +167,8 @@ type BulkChangeRequest struct {
Issues string `form:"issues"` // Comma-separated list of issue keys
RemoveTags string `form:"remove_tags,omitempty"` // Remove tags
SendNotifications string `form:"sendNotifications,omitempty"` // Since 4.0;
- SetSeverity string `form:"set_severity,omitempty"` // Deprecated since 10.2;To change the severity of the list of issues
- SetType string `form:"set_type,omitempty"` // Since 5.5;Deprecated since 10.2;To change the type of the list of issues
+ SetSeverity string `form:"set_severity,omitempty"` // To change the severity of the list of issues
+ SetType string `form:"set_type,omitempty"` // Since 5.5;To change the type of the list of issues
}
// BulkChangeResponse is the response for BulkChangeRequest
@@ -522,19 +522,19 @@ type SearchRequest struct {
PciDss40 string `url:"pciDss-4.0,omitempty"` // Since 9.6;Comma-separated list of PCI DSS v4.0 categories.
PrioritizedRule string `url:"prioritizedRule,omitempty"` // To match issues with prioritized rule or not
PullRequest string `url:"pullRequest,omitempty"` // Since 7.1;Pull request id. Not available in the community edition.
- Resolutions string `url:"resolutions,omitempty"` // Deprecated since 10.4;Comma-separated list of resolutions
+ Resolutions string `url:"resolutions,omitempty"` // Comma-separated list of resolutions
Resolved string `url:"resolved,omitempty"` // To match resolved or unresolved issues
Rules string `url:"rules,omitempty"` // Comma-separated list of coding rule keys. Format is <repository>:<rule>
S string `url:"s,omitempty"` // Sort field
SansTop25 string `url:"sansTop25,omitempty"` // Since 7.3;Deprecated since 10.0;Comma-separated list of SANS Top 25 categories.
Scopes string `url:"scopes,omitempty"` // Comma-separated list of scopes. Available since 8.5
- Severities string `url:"severities,omitempty"` // Deprecated since 10.4;Comma-separated list of severities
+ Severities string `url:"severities,omitempty"` // Comma-separated list of severities
SonarsourceSecurity string `url:"sonarsourceSecurity,omitempty"` // Since 7.8;Comma-separated list of SonarSource security categories. Use 'others' to select issues not associated with any category
Statuses string `url:"statuses,omitempty"` // Deprecated since 10.4;Comma-separated list of statuses
StigASDV5R3 string `url:"stig-ASD_V5R3,omitempty"` // Since 10.7;Comma-separated list of STIG V5R3 categories.
Tags string `url:"tags,omitempty"` // Comma-separated list of tags.
TimeZone string `url:"timeZone,omitempty"` // Since 8.6;To resolve dates passed to 'createdAfter' or 'createdBefore' (does not apply to datetime) and to compute creation date histogram
- Types string `url:"types,omitempty"` // Since 5.5;Deprecated since 10.4;Comma-separated list of types.
+ Types string `url:"types,omitempty"` // Since 5.5;Comma-separated list of types.
}
// SearchResponse is the response for SearchRequest
@@ -738,10 +738,10 @@ type SearchResponseAll struct {
}
// SetSeverityRequest Change severity.
Requires the following permissions:
- 'Authentication'
- 'Browse' rights on project of the specified issue
- 'Administer Issues' rights on project of the specified issue
-// Deprecated: this action has been deprecated since version 10.2
type SetSeverityRequest struct {
- Issue string `form:"issue"` // Issue key
- Severity string `form:"severity"` // New severity
+ Impact string `form:"impact,omitempty"` // Override of impact severity for the rule. Cannot be used as the same time as 'severity'
+ Issue string `form:"issue"` // Issue key
+ Severity string `form:"severity,omitempty"` // New severity
}
// SetSeverityResponse is the response for SetSeverityRequest
diff --git a/sonarqube/issues_gen.go b/sonarqube/issues_gen.go
index 6ef5c06..919dde5 100644
--- a/sonarqube/issues_gen.go
+++ b/sonarqube/issues_gen.go
@@ -17,6 +17,7 @@ type Issues service
// Since 3.6
// Changelog:
//
+// 10.8: The response fields 'severity' and 'type' are not deprecated anymore.
// 10.8: Possible values 'INFO' and 'BLOCKER' for response field 'severity' of 'impacts' have been added.
// 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.
@@ -43,6 +44,7 @@ func (s *Issues) AddComment(ctx context.Context, r issues.AddCommentRequest) (*i
// Since 3.6
// Changelog:
//
+// 10.8: The response fields 'severity' and 'type' are not deprecated anymore.
// 10.8: Possible values 'INFO' and 'BLOCKER' for response field 'severity' of 'impacts' have been added.
// 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.
@@ -88,6 +90,7 @@ func (s *Issues) Authors(ctx context.Context, r issues.AuthorsRequest) (*issues.
// Since 3.7
// Changelog:
//
+// 10.8: The parameters 'set_severity' and 'set_type' are not deprecated anymore.
// 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.
@@ -111,6 +114,7 @@ func (s *Issues) BulkChange(ctx context.Context, r issues.BulkChangeRequest) (*i
// Since 4.1
// Changelog:
//
+// 10.8: 'severity' and 'type' keys are not deprecated anymore.
// 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
@@ -132,6 +136,7 @@ func (s *Issues) Changelog(ctx context.Context, r issues.ChangelogRequest) (*iss
// Since 3.6
// Changelog:
//
+// 10.8: The response fields 'severity' and 'type' are not deprecated anymore.
// 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.
@@ -163,6 +168,7 @@ func (s *Issues) DeleteComment(ctx context.Context, r issues.DeleteCommentReques
// Since 3.6
// Changelog:
//
+// 10.8: The response fields 'severity' and 'type' are not deprecated anymore.
// 10.8: Possible values 'INFO' and 'BLOCKER' for response field 'severity' of 'impacts' have been added.
// 10.4: The transitions 'wontfix' and 'confirm' are deprecated. Please use 'accept' instead. The transition 'unconfirm' is deprecated too.
// 10.4: Add transition 'accept'.
@@ -194,6 +200,7 @@ func (s *Issues) DoTransition(ctx context.Context, r issues.DoTransitionRequest)
// Since 3.6
// Changelog:
//
+// 10.8: The response fields 'severity' and 'type' are not deprecated anymore.
// 10.8: Possible values 'INFO' and 'BLOCKER' for response field 'severity' of 'impacts' have been added.
// 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.
@@ -253,6 +260,9 @@ func (s *Issues) Reindex(ctx context.Context, r issues.ReindexRequest) (*http.Re
// Since 3.6
// Changelog:
//
+// 10.8: The response fields 'severity' and 'type' are not deprecated anymore..
+// 10.8: The fields 'severity' and 'type' are not deprecated anymore.
+// 10.8: The parameters 'severities' and 'types' are not deprecated anymore.
// 10.8: Possible values 'INFO' and 'BLOCKER' for response field 'impactSeverities' of 'facets' have been added.
// 10.8: Possible values 'INFO' and 'BLOCKER' for response field 'severity' of 'impacts' have been added.
// 10.8: Parameter 'severities' now supports values: 'INFO','BLOCKER'.
@@ -365,9 +375,11 @@ func (s *Issues) SearchAll(ctx context.Context, r issues.SearchRequest) (*issues
// * 'Administer Issues' rights on project of the specified issue
//
// Since 3.6
-// Deprecated since 10.2
// Changelog:
//
+// 10.8: Add 'impact' parameter to the request.
+// 10.8: Parameter 'severity' is now optional.
+// 10.8: This endpoint is not deprecated anymore.
// 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.
@@ -393,6 +405,7 @@ func (s *Issues) SetSeverity(ctx context.Context, r issues.SetSeverityRequest) (
// Since 5.1
// Changelog:
//
+// 10.8: The response fields 'severity' and 'type' are not deprecated anymore.
// 10.8: Possible values 'INFO' and 'BLOCKER' for response field 'severity' of 'impacts' have been added.
// 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.
diff --git a/sonarqube/measures/measures_gen.go b/sonarqube/measures/measures_gen.go
index 214d1c7..af280e1 100644
--- a/sonarqube/measures/measures_gen.go
+++ b/sonarqube/measures/measures_gen.go
@@ -53,7 +53,7 @@ type ComponentTreeRequest struct {
Asc string `url:"asc,omitempty"` // Ascending sort
Branch string `url:"branch,omitempty"` // Since 6.6;Branch key. Not available in the community edition.
Component string `url:"component"` // Component key. The search is based on this component.
- MetricKeys string `url:"metricKeys"` // Comma-separated list of metric keys. Types DISTRIB are not allowed. For type DATA only new_reliability_issues, new_security_issues, new_maintainability_issues, reliability_issues, maintainability_issues, security_issues metrics are supported
+ MetricKeys string `url:"metricKeys"` // Comma-separated list of metric keys. Types DISTRIB are not allowed. For type DATA only new_security_issues, new_reliability_issues, security_issues, maintainability_issues, reliability_issues, new_maintainability_issues metrics are supported
MetricPeriodSort string `url:"metricPeriodSort,omitempty"` // Since 5.5;Sort measures by leak period or not ?. The 's' parameter must contain the 'metricPeriod' value.
MetricSort string `url:"metricSort,omitempty"` // Metric key to sort by. The 's' parameter must contain the 'metric' or 'metricPeriod' value. It must be part of the 'metricKeys' parameter
MetricSortFilter string `url:"metricSortFilter,omitempty"` // Filter components. Sort must be on a metric. Possible values are: - all: return all components
- withMeasuresOnly: filter out components that do not have a measure on the sorted metric
diff --git a/sonarqube/measures_gen.go b/sonarqube/measures_gen.go
index 51d9fed..54b2519 100644
--- a/sonarqube/measures_gen.go
+++ b/sonarqube/measures_gen.go
@@ -17,6 +17,7 @@ type Measures service
// Since 5.4
// Changelog:
//
+// 10.8: The following metrics are not deprecated anymore: 'bugs', 'new_bugs', 'vulnerabilities', 'new_vulnerabilities', 'code_smells', 'new_code_smells', 'high_impact_accepted_issues', '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'
// 10.8: Added new accepted values for the 'metricKeys' param: 'software_quality_blocker_issues', 'software_quality_high_issues', 'software_quality_info_issues', 'software_quality_medium_issues', 'software_quality_low_issues', 'software_quality_maintainability_issues', 'software_quality_reliability_issues', 'software_quality_security_issues', 'new_software_quality_blocker_issues', 'new_software_quality_high_issues', 'new_software_quality_info_issues', 'new_software_quality_medium_issues', 'new_software_quality_low_issues', 'new_software_quality_maintainability_issues', 'new_software_quality_reliability_issues', 'new_software_quality_security_issues'
// 10.8: The metrics 'maintainability_issues', 'reliability_issues', 'security_issues', 'new_maintainability_issues', 'new_reliability_issues', 'new_security_issues' are now deprecated. Use 'software_quality_maintainability_issues', 'software_quality_reliability_issues', 'software_quality_security_issues', 'new_software_quality_maintainability_issues', 'new_software_quality_reliability_issues', 'new_software_quality_security_issues' instead.
// 10.7: Added new accepted values for the 'metricKeys' param: 'software_quality_maintainability_debt_ratio', 'software_quality_maintainability_rating', 'software_quality_reliability_rating', 'software_quality_security_rating', 'software_quality_maintainability_remediation_effort', 'software_quality_reliability_remediation_effort', 'software_quality_security_remediation_effort', 'effort_to_reach_software_quality_maintainability_rating_a', 'new_software_quality_maintainability_debt_ratio', 'new_software_quality_maintainability_rating', 'new_software_quality_reliability_rating', 'new_software_quality_security_rating', 'new_software_quality_maintainability_remediation_effort', 'new_software_quality_reliability_remediation_effort', 'new_software_quality_security_remediation_effort'
@@ -61,6 +62,7 @@ func (s *Measures) Component(ctx context.Context, r measures.ComponentRequest) (
// Since 5.4
// Changelog:
//
+// 10.8: The following metrics are not deprecated anymore: 'bugs', 'new_bugs', 'vulnerabilities', 'new_vulnerabilities', 'code_smells', 'new_code_smells', 'high_impact_accepted_issues', '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'
// 10.8: Added new accepted values for the 'metricKeys' param: 'software_quality_blocker_issues', 'software_quality_high_issues', 'software_quality_info_issues', 'software_quality_medium_issues', 'software_quality_low_issues', 'software_quality_maintainability_issues', 'software_quality_reliability_issues', 'software_quality_security_issues', 'new_software_quality_blocker_issues', 'new_software_quality_high_issues', 'new_software_quality_info_issues', 'new_software_quality_medium_issues', 'new_software_quality_low_issues', 'new_software_quality_maintainability_issues', 'new_software_quality_reliability_issues', 'new_software_quality_security_issues'
// 10.8: The metrics 'maintainability_issues', 'reliability_issues', 'security_issues', 'new_maintainability_issues', 'new_reliability_issues', 'new_security_issues' are now deprecated. Use 'software_quality_maintainability_issues', 'software_quality_reliability_issues', 'software_quality_security_issues', 'new_software_quality_maintainability_issues', 'new_software_quality_reliability_issues', 'new_software_quality_security_issues' instead.
// 10.7: Number of metric keys is limited to 25
@@ -132,6 +134,7 @@ func (s *Measures) ComponentTreeAll(ctx context.Context, r measures.ComponentTre
// Since 6.3
// Changelog:
//
+// 10.8: The following metrics are not deprecated anymore: 'bugs', 'new_bugs', 'vulnerabilities', 'new_vulnerabilities', 'code_smells', 'new_code_smells', 'high_impact_accepted_issues', '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'
// 10.8: Added new accepted values for the 'metricKeys' param: 'software_quality_blocker_issues', 'software_quality_high_issues', 'software_quality_info_issues', 'software_quality_medium_issues', 'software_quality_low_issues', 'software_quality_maintainability_issues', 'software_quality_reliability_issues', 'software_quality_security_issues', 'new_software_quality_blocker_issues', 'new_software_quality_high_issues', 'new_software_quality_info_issues', 'new_software_quality_medium_issues', 'new_software_quality_low_issues', 'new_software_quality_maintainability_issues', 'new_software_quality_reliability_issues', 'new_software_quality_security_issues'
// 10.8: The metrics 'maintainability_issues', 'reliability_issues', 'security_issues', 'new_maintainability_issues', 'new_reliability_issues', 'new_security_issues' are now deprecated. Use 'software_quality_maintainability_issues', 'software_quality_reliability_issues', 'software_quality_security_issues', 'new_software_quality_maintainability_issues', 'new_software_quality_reliability_issues', 'new_software_quality_security_issues' instead.
// 10.7: Added new accepted values for the 'metricKeys' param: 'software_quality_maintainability_debt_ratio', 'software_quality_maintainability_rating', 'software_quality_reliability_rating', 'software_quality_security_rating', 'software_quality_maintainability_remediation_effort', 'software_quality_reliability_remediation_effort', 'software_quality_security_remediation_effort', 'effort_to_reach_software_quality_maintainability_rating_a', 'new_software_quality_maintainability_debt_ratio', 'new_software_quality_maintainability_rating', 'new_software_quality_reliability_rating', 'new_software_quality_security_rating', 'new_software_quality_maintainability_remediation_effort', 'new_software_quality_reliability_remediation_effort', 'new_software_quality_security_remediation_effort'
diff --git a/sonarqube/project_badges_gen.go b/sonarqube/project_badges_gen.go
index f0feed9..f365e90 100644
--- a/sonarqube/project_badges_gen.go
+++ b/sonarqube/project_badges_gen.go
@@ -31,6 +31,7 @@ func (s *ProjectBadges) AiCodeAssurance(ctx context.Context, r project_badges.Ai
// Since 7.1
// Changelog:
//
+// 10.8: The following metric keys are not deprecated anymore: 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)
diff --git a/sonarqube/projects_gen.go b/sonarqube/projects_gen.go
index 565c568..8fa5bb7 100644
--- a/sonarqube/projects_gen.go
+++ b/sonarqube/projects_gen.go
@@ -71,6 +71,7 @@ func (s *Projects) Delete(ctx context.Context, r projects.DeleteRequest) (*http.
// Since 9.1
// Changelog:
//
+// 10.8: 'type' and 'severity' fields are not deprecated anymore.
// 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'.
diff --git a/sonarqube/qualitygates/qualitygates_gen.go b/sonarqube/qualitygates/qualitygates_gen.go
index 97e3749..d69788d 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
- new_security_hotspots
- alert_status
Op string `form:"op,omitempty"` // Condition operator:
- LT = is lower than
- GT = is greater than
}
@@ -283,6 +283,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
- new_security_hotspots
- alert_status
Op string `form:"op,omitempty"` // Condition operator:
- LT = is lower than
- GT = is greater than
}
diff --git a/sonarqube/qualityprofiles/qualityprofiles_gen.go b/sonarqube/qualityprofiles/qualityprofiles_gen.go
index fbdfd1d..30f9bc8 100644
--- a/sonarqube/qualityprofiles/qualityprofiles_gen.go
+++ b/sonarqube/qualityprofiles/qualityprofiles_gen.go
@@ -12,13 +12,13 @@ type ActivateRuleRequest struct {
PrioritizedRule string `form:"prioritizedRule,omitempty"` // Since 10.6;Mark activated rule as prioritized, so all corresponding Issues will have to be fixed.
Reset string `form:"reset,omitempty"` // Reset severity and parameters of activated rule. Set the values defined on parent profile or from rule default values.
Rule string `form:"rule"` // Rule key
- Severity string `form:"severity,omitempty"` // Deprecated since 10.2;Severity. Cannot be used as the same time as 'impacts'.Ignored if parameter reset is true.
+ Severity string `form:"severity,omitempty"` // Severity. Cannot be used as the same time as 'impacts'.Ignored if parameter reset is true.
}
// ActivateRulesRequest Bulk-activate rules on one quality profile.
Requires one of the following permissions: - 'Administer Quality Profiles'
- Edit right on the specified quality profile
type ActivateRulesRequest struct {
Activation string `form:"activation,omitempty"` // Filter rules that are activated or deactivated on the selected Quality profile. Ignored if the parameter 'qprofile' is not set.
- ActiveSeverities string `form:"active_severities,omitempty"` // Deprecated since 10.2;Comma-separated list of activation severities, i.e the severity of rules in Quality profiles.
+ ActiveSeverities string `form:"active_severities,omitempty"` // Comma-separated list of activation severities, i.e the severity of rules in Quality profiles.
Asc string `form:"asc,omitempty"` // Ascending sort
AvailableSince string `form:"available_since,omitempty"` // Filters rules added since date. Format is yyyy-MM-dd
CleanCodeAttributeCategories string `form:"cleanCodeAttributeCategories,omitempty"` // Since 10.2;Comma-separated list of Clean Code Attribute Categories
@@ -37,14 +37,14 @@ type ActivateRulesRequest struct {
RuleKey string `form:"rule_key,omitempty"` // Key of rule to search for
S string `form:"s,omitempty"` // Sort field
SansTop25 string `form:"sansTop25,omitempty"` // Since 7.3;Deprecated since 10.0;Comma-separated list of SANS Top 25 categories.
- Severities string `form:"severities,omitempty"` // Deprecated since 10.2;Comma-separated list of default severities. Not the same than severity of rules in Quality profiles.
+ Severities string `form:"severities,omitempty"` // Comma-separated list of default severities. Not the same than severity of rules in Quality profiles.
SonarsourceSecurity string `form:"sonarsourceSecurity,omitempty"` // Since 7.8;Comma-separated list of SonarSource security categories. Use 'others' to select rules not associated with any category
Statuses string `form:"statuses,omitempty"` // Comma-separated list of status codes
Tags string `form:"tags,omitempty"` // Comma-separated list of tags. Returned rules match any of the tags (OR operator)
TargetKey string `form:"targetKey"` // Quality Profile key on which the rule activation is done. To retrieve a quality profile key please see api/qualityprofiles/search
- TargetSeverity string `form:"targetSeverity,omitempty"` // Deprecated since 10.2;Severity to set on the activated rules
+ TargetSeverity string `form:"targetSeverity,omitempty"` // Severity to set on the activated rules
TemplateKey string `form:"template_key,omitempty"` // Key of the template rule to filter on. Used to search for the custom rules based on this template.
- Types string `form:"types,omitempty"` // Since 5.5;Deprecated since 10.2;Comma-separated list of types. Returned rules match any of the tags (OR operator)
+ Types string `form:"types,omitempty"` // Since 5.5;Comma-separated list of types. Returned rules match any of the tags (OR operator)
}
// AddProjectRequest Associate a project with a quality profile.
Requires one of the following permissions: - 'Administer Quality Profiles'
- Administer right on the specified project
@@ -171,7 +171,7 @@ type DeactivateRuleRequest struct {
// DeactivateRulesRequest Bulk deactivate rules on Quality profiles.
Requires one of the following permissions: - 'Administer Quality Profiles'
- Edit right on the specified quality profile
type DeactivateRulesRequest struct {
Activation string `form:"activation,omitempty"` // Filter rules that are activated or deactivated on the selected Quality profile. Ignored if the parameter 'qprofile' is not set.
- ActiveSeverities string `form:"active_severities,omitempty"` // Deprecated since 10.2;Comma-separated list of activation severities, i.e the severity of rules in Quality profiles.
+ ActiveSeverities string `form:"active_severities,omitempty"` // Comma-separated list of activation severities, i.e the severity of rules in Quality profiles.
Asc string `form:"asc,omitempty"` // Ascending sort
AvailableSince string `form:"available_since,omitempty"` // Filters rules added since date. Format is yyyy-MM-dd
CleanCodeAttributeCategories string `form:"cleanCodeAttributeCategories,omitempty"` // Since 10.2;Comma-separated list of Clean Code Attribute Categories
@@ -189,13 +189,13 @@ type DeactivateRulesRequest struct {
RuleKey string `form:"rule_key,omitempty"` // Key of rule to search for
S string `form:"s,omitempty"` // Sort field
SansTop25 string `form:"sansTop25,omitempty"` // Since 7.3;Deprecated since 10.0;Comma-separated list of SANS Top 25 categories.
- Severities string `form:"severities,omitempty"` // Deprecated since 10.2;Comma-separated list of default severities. Not the same than severity of rules in Quality profiles.
+ Severities string `form:"severities,omitempty"` // Comma-separated list of default severities. Not the same than severity of rules in Quality profiles.
SonarsourceSecurity string `form:"sonarsourceSecurity,omitempty"` // Since 7.8;Comma-separated list of SonarSource security categories. Use 'others' to select rules not associated with any category
Statuses string `form:"statuses,omitempty"` // Comma-separated list of status codes
Tags string `form:"tags,omitempty"` // Comma-separated list of tags. Returned rules match any of the tags (OR operator)
TargetKey string `form:"targetKey"` // Quality Profile key on which the rule deactivation is done. To retrieve a profile key please see api/qualityprofiles/search
TemplateKey string `form:"template_key,omitempty"` // Key of the template rule to filter on. Used to search for the custom rules based on this template.
- Types string `form:"types,omitempty"` // Since 5.5;Deprecated since 10.2;Comma-separated list of types. Returned rules match any of the tags (OR operator)
+ Types string `form:"types,omitempty"` // Since 5.5;Comma-separated list of types. Returned rules match any of the tags (OR operator)
}
// DeleteRequest Delete a quality profile and all its descendants. The default quality profile cannot be deleted.
Requires one of the following permissions: - 'Administer Quality Profiles'
- Edit right on the specified quality profile
diff --git a/sonarqube/qualityprofiles_gen.go b/sonarqube/qualityprofiles_gen.go
index c4b744d..8d07027 100644
--- a/sonarqube/qualityprofiles_gen.go
+++ b/sonarqube/qualityprofiles_gen.go
@@ -20,6 +20,7 @@ type Qualityprofiles service
// Since 4.4
// Changelog:
//
+// 10.8: The parameter 'severity' is not deprecated anymore.
// 10.8: Add new parameter 'impacts'
// 10.6: Add parameter 'prioritizedRule'.
// 10.2: Parameter 'severity' is now deprecated.
@@ -42,6 +43,7 @@ func (s *Qualityprofiles) ActivateRule(ctx context.Context, r qualityprofiles.Ac
// Since 4.4
// Changelog:
//
+// 10.8: The parameters 'severities', 'targetSeverity', 'active_severities', and 'types' are not deprecated anymore.
// 10.6: Add parameter 'prioritizedRule'.
// 10.2: Parameters 'severities', 'targetSeverity', 'active_severities', and 'types' are now deprecated.
// 10.0: Parameter 'sansTop25' is deprecated
@@ -77,6 +79,7 @@ func (s *Qualityprofiles) AddProject(ctx context.Context, r qualityprofiles.AddP
// Since 5.2
// Changelog:
//
+// 10.8: The 'priority' and 'type' fields of the rule XML object are not deprecated anymore.
// 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)
@@ -208,6 +211,7 @@ func (s *Qualityprofiles) DeactivateRule(ctx context.Context, r qualityprofiles.
// Since 4.4
// Changelog:
//
+// 10.8: Parameters 'severities', 'active_severities', and 'types' are not deprecated anymore.
// 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
@@ -383,6 +387,7 @@ func (s *Qualityprofiles) Rename(ctx context.Context, r qualityprofiles.RenameRe
// Since 5.2
// Changelog:
//
+// 10.8: The 'priority' and 'type' fields of the rule XML object are not deprecated anymore.
// 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)
diff --git a/sonarqube/rules/rules_gen.go b/sonarqube/rules/rules_gen.go
index 37c06b7..1e275a2 100644
--- a/sonarqube/rules/rules_gen.go
+++ b/sonarqube/rules/rules_gen.go
@@ -13,10 +13,10 @@ type CreateRequest struct {
Name string `form:"name"` // Rule name
Params string `form:"params,omitempty"` // Parameters as semi-colon list of <key>=<value>
PreventReactivation string `form:"preventReactivation,omitempty"` // Deprecated since 10.4;If set to true and if the rule has been deactivated (status 'REMOVED'), a status 409 will be returned
- Severity string `form:"severity,omitempty"` // Deprecated since 10.4;Rule severity
+ Severity string `form:"severity,omitempty"` // Rule severity
Status string `form:"status,omitempty"` // Rule status
TemplateKey string `form:"templateKey"` // Key of the template rule in order to create a custom rule
- Type string `form:"type,omitempty"` // Since 6.7;Deprecated since 10.4;Rule type
+ Type string `form:"type,omitempty"` // Since 6.7;Rule type
}
// CreateResponse is the response for CreateRequest
@@ -76,7 +76,7 @@ type RepositoriesResponse struct {
// SearchRequest Search for a collection of relevant rules matching a specified query.
type SearchRequest struct {
Activation string `url:"activation,omitempty"` // Filter rules that are activated or deactivated on the selected Quality profile. Ignored if the parameter 'qprofile' is not set.
- ActiveSeverities string `url:"active_severities,omitempty"` // Deprecated since 10.2;Comma-separated list of activation severities, i.e the severity of rules in Quality profiles.
+ ActiveSeverities string `url:"active_severities,omitempty"` // Comma-separated list of activation severities, i.e the severity of rules in Quality profiles.
Asc string `url:"asc,omitempty"` // Ascending sort
AvailableSince string `url:"available_since,omitempty"` // Filters rules added since date. Format is yyyy-MM-dd
CleanCodeAttributeCategories string `url:"cleanCodeAttributeCategories,omitempty"` // Since 10.2;Comma-separated list of Clean Code Attribute Categories
@@ -98,12 +98,12 @@ type SearchRequest struct {
RuleKey string `url:"rule_key,omitempty"` // Key of rule to search for
S string `url:"s,omitempty"` // Sort field
SansTop25 string `url:"sansTop25,omitempty"` // Since 7.3;Deprecated since 10.0;Comma-separated list of SANS Top 25 categories.
- Severities string `url:"severities,omitempty"` // Deprecated since 10.2;Comma-separated list of default severities. Not the same than severity of rules in Quality profiles.
+ Severities string `url:"severities,omitempty"` // Comma-separated list of default severities. Not the same than severity of rules in Quality profiles.
SonarsourceSecurity string `url:"sonarsourceSecurity,omitempty"` // Since 7.8;Comma-separated list of SonarSource security categories. Use 'others' to select rules not associated with any category
Statuses string `url:"statuses,omitempty"` // Comma-separated list of status codes
Tags string `url:"tags,omitempty"` // Comma-separated list of tags. Returned rules match any of the tags (OR operator)
TemplateKey string `url:"template_key,omitempty"` // Key of the template rule to filter on. Used to search for the custom rules based on this template.
- Types string `url:"types,omitempty"` // Since 5.5;Deprecated since 10.2;Comma-separated list of types. Returned rules match any of the tags (OR operator)
+ Types string `url:"types,omitempty"` // Since 5.5;Comma-separated list of types. Returned rules match any of the tags (OR operator)
}
// SearchResponse is the response for SearchRequest
@@ -360,7 +360,7 @@ type UpdateRequest struct {
RemediationFnBaseEffort string `form:"remediation_fn_base_effort,omitempty"` // Since 5.5;Base effort of the remediation function of the rule
RemediationFnType string `form:"remediation_fn_type,omitempty"` // Since 5.5;Type of the remediation function of the rule
RemediationFyGapMultiplier string `form:"remediation_fy_gap_multiplier,omitempty"` // Since 5.5;Gap multiplier of the remediation function of the rule
- Severity string `form:"severity,omitempty"` // Deprecated since 10.4;Rule severity (Only when updating a custom rule)
+ Severity string `form:"severity,omitempty"` // Rule severity (Only when updating a custom rule)
Status string `form:"status,omitempty"` // Rule status (Only when updating a custom rule)
Tags string `form:"tags,omitempty"` // Optional comma-separated list of tags to set. Use blank value to remove current tags. Tags are not changed if the parameter is not set.
}
diff --git a/sonarqube/rules_gen.go b/sonarqube/rules_gen.go
index 3250ab4..79da963 100644
--- a/sonarqube/rules_gen.go
+++ b/sonarqube/rules_gen.go
@@ -17,6 +17,7 @@ type Rules service
// Since 4.4
// Changelog:
//
+// 10.8: The parameters 'type' and 'severity' are not deprecated anymore.
// 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.
@@ -73,6 +74,10 @@ func (s *Rules) Repositories(ctx context.Context, r rules.RepositoriesRequest) (
// 10.8: Possible values 'INFO' and 'BLOCKER' for response field 'severity' of 'impacts' have been added
// 10.8: Parameter 'severities' now supports values: 'INFO','BLOCKER'
// 10.8: The field 'impacts' has been added to the response
+// 10.8: The parameters 'severities','types and 'active_severities' are not deprecated anymore.
+// 10.8: The values 'severity' and 'types' for the 'facets' parameter are not deprecated anymore.
+// 10.8: The fields 'type' and 'severity' in the response are not deprecated anymore.
+// 10.8: The value 'severity' for the 'f' parameter is not deprecated anymore.
// 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.
@@ -150,6 +155,7 @@ func (s *Rules) SearchAll(ctx context.Context, r rules.SearchRequest) (*rules.Se
// Changelog:
//
// 10.8: Possible values 'INFO' and 'BLOCKER' for response field 'severity' of 'impacts' have been added.
+// 10.8: The field 'severity' and 'type' in the response are not deprecated anymore.
// 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.
@@ -205,6 +211,7 @@ func (s *Rules) Tags(ctx context.Context, r rules.TagsRequest) (*rules.TagsRespo
// Since 4.4
// Changelog:
//
+// 10.8: The parameter 'severity' is not deprecated anymore.
// 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.