diff --git a/sonarqube/measures/measures_gen.go b/sonarqube/measures/measures_gen.go
index f01b3bc..214d1c7 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_maintainability_issues, new_security_issues, new_reliability_issues, security_issues, maintainability_issues, reliability_issues metrics are supported
+ 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
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 69072e0..51d9fed 100644
--- a/sonarqube/measures_gen.go
+++ b/sonarqube/measures_gen.go
@@ -17,6 +17,8 @@ type Measures service
// Since 5.4
// Changelog:
//
+// 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'
// 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'
@@ -59,6 +61,8 @@ func (s *Measures) Component(ctx context.Context, r measures.ComponentRequest) (
// Since 5.4
// Changelog:
//
+// 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
// 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'
// 10.5: Added new accepted values for the 'metricKeys' param: 'new_maintainability_issues', 'new_reliability_issues', 'new_security_issues'
@@ -128,6 +132,8 @@ func (s *Measures) ComponentTreeAll(ctx context.Context, r measures.ComponentTre
// Since 6.3
// Changelog:
//
+// 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'
// 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'
diff --git a/sonarqube/qualitygates/qualitygates_gen.go b/sonarqube/qualitygates/qualitygates_gen.go
index 719fe12..97e3749 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:- software_quality_maintainability_debt_ratio
- software_quality_reliability_rating
- new_software_quality_security_remediation_effort
- software_quality_maintainability_remediation_effort
- new_software_quality_maintainability_remediation_effort
- effort_to_reach_software_quality_maintainability_rating_a
- software_quality_security_remediation_effort
- new_software_quality_reliability_rating
- new_software_quality_security_rating
- software_quality_security_rating
- new_security_hotspots
- new_software_quality_maintainability_rating
- software_quality_maintainability_rating
- alert_status
- security_hotspots
- software_quality_reliability_remediation_effort
- new_software_quality_maintainability_debt_ratio
- new_software_quality_reliability_remediation_effort
+ 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
Op string `form:"op,omitempty"` // Condition operator:
- LT = is lower than
- GT = is greater than
}
@@ -96,10 +96,12 @@ type ListResponse struct {
Rename bool `json:"rename,omitempty"`
SetAsDefault bool `json:"setAsDefault,omitempty"`
} `json:"actions,omitempty"`
- CaycStatus string `json:"caycStatus,omitempty"`
- IsBuiltIn bool `json:"isBuiltIn,omitempty"`
- IsDefault bool `json:"isDefault,omitempty"`
- Name string `json:"name,omitempty"`
+ CaycStatus string `json:"caycStatus,omitempty"`
+ HasMQRConditions bool `json:"hasMQRConditions,omitempty"`
+ HasStandardConditions bool `json:"hasStandardConditions,omitempty"`
+ IsBuiltIn bool `json:"isBuiltIn,omitempty"`
+ IsDefault bool `json:"isDefault,omitempty"`
+ Name string `json:"name,omitempty"`
} `json:"qualitygates,omitempty"`
}
@@ -281,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:- software_quality_maintainability_debt_ratio
- software_quality_reliability_rating
- new_software_quality_security_remediation_effort
- software_quality_maintainability_remediation_effort
- new_software_quality_maintainability_remediation_effort
- effort_to_reach_software_quality_maintainability_rating_a
- software_quality_security_remediation_effort
- new_software_quality_reliability_rating
- new_software_quality_security_rating
- software_quality_security_rating
- new_security_hotspots
- new_software_quality_maintainability_rating
- software_quality_maintainability_rating
- alert_status
- security_hotspots
- software_quality_reliability_remediation_effort
- new_software_quality_maintainability_debt_ratio
- new_software_quality_reliability_remediation_effort
+ 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
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 b574650..a0967c5 100644
--- a/sonarqube/qualitygates_gen.go
+++ b/sonarqube/qualitygates_gen.go
@@ -193,6 +193,7 @@ func (s *Qualitygates) GetByProject(ctx context.Context, r qualitygates.GetByPro
// Since 4.3
// Changelog:
//
+// 10.8: 'hasMQRConditions' and 'hasStandardConditions' fields are added on quality gate
// 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
@@ -446,6 +447,7 @@ func (s *Qualitygates) SetAsDefault(ctx context.Context, r qualitygates.SetAsDef
// Since 4.3
// Changelog:
//
+// 10.8: 'hasMQRConditions' and 'hasStandardConditions' fields are added on quality gate
// 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.