diff --git a/sonarqube/measures/measures_gen.go b/sonarqube/measures/measures_gen.go index af280e1..e38843f 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_security_issues, new_reliability_issues, security_issues, maintainability_issues, reliability_issues, new_maintainability_issues metrics are supported + MetricKeys string `url:"metricKeys"` // Comma-separated list of metric keys. Types DISTRIB are not allowed. For type DATA only security_issues, maintainability_issues, reliability_issues, new_maintainability_issues, new_security_issues, new_reliability_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: diff --git a/sonarqube/qualitygates/qualitygates_gen.go b/sonarqube/qualitygates/qualitygates_gen.go index d69788d..8a6e1d3 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:Following metrics are forbidden: + Metric string `form:"metric"` // Condition metric.
Only metric of the following types are allowed:Following metrics are forbidden: Op string `form:"op,omitempty"` // Condition operator:
} @@ -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:Following metrics are forbidden: + Metric string `form:"metric"` // Condition metric.
Only metric of the following types are allowed:Following metrics are forbidden: Op string `form:"op,omitempty"` // Condition operator:
} diff --git a/sonarqube/rules/rules_gen.go b/sonarqube/rules/rules_gen.go index 1e275a2..d0c3630 100644 --- a/sonarqube/rules/rules_gen.go +++ b/sonarqube/rules/rules_gen.go @@ -352,6 +352,7 @@ type TagsResponse struct { // UpdateRequest Update an existing rule.
Requires the 'Administer Quality Profiles' permission type UpdateRequest struct { + Impacts string `form:"impacts,omitempty"` // Rule impacts, semicolon-separated (Only when updating a custom rule impact severity) Key string `form:"key"` // Key of the rule to update MarkdownDescription string `form:"markdownDescription,omitempty"` // Rule description (mandatory for custom rule and manual rule) in markdown format MarkdownNote string `form:"markdown_note,omitempty"` // Optional note in markdown format. Use empty value to remove current note. Note is not changed if the parameter is not set. diff --git a/sonarqube/rules_gen.go b/sonarqube/rules_gen.go index 79da963..de8157d 100644 --- a/sonarqube/rules_gen.go +++ b/sonarqube/rules_gen.go @@ -211,7 +211,9 @@ func (s *Rules) Tags(ctx context.Context, r rules.TagsRequest) (*rules.TagsRespo // Since 4.4 // Changelog: // +// 10.8: Parameter impacts was added. // 10.8: The parameter 'severity' is not deprecated anymore. +// 10.8: The field 'severity' and 'type' in the response are 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.