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/projects/projects_gen.go b/sonarqube/projects/projects_gen.go
index a71ad58..f0c77de 100644
--- a/sonarqube/projects/projects_gen.go
+++ b/sonarqube/projects/projects_gen.go
@@ -77,6 +77,16 @@ type ExportFindingsResponse struct {
} `json:"export_findings,omitempty"`
}
+// GetContainsAiCodeRequest Get whether a project contains AI code or not
+type GetContainsAiCodeRequest struct {
+ Project string `url:"project"` // Project key
+}
+
+// GetContainsAiCodeResponse is the response for GetContainsAiCodeRequest
+type GetContainsAiCodeResponse struct {
+ ContainsAiCode bool `json:"containsAiCode,omitempty"`
+}
+
// LicenseUsageRequest Help admins to understand how much each project affects the total number of lines of code. Returns the list of projects together with information about their usage, sorted by lines of code descending.
Requires Administer System permission.
type LicenseUsageRequest struct{}
diff --git a/sonarqube/projects_gen.go b/sonarqube/projects_gen.go
index 4d2488c..02f5547 100644
--- a/sonarqube/projects_gen.go
+++ b/sonarqube/projects_gen.go
@@ -92,6 +92,20 @@ func (s *Projects) ExportFindings(ctx context.Context, r projects.ExportFindings
return v, resp, nil
}
+// GetContainsAiCode - Get whether a project contains AI code or not
+// Since 2025.1
+func (s *Projects) GetContainsAiCode(ctx context.Context, r projects.GetContainsAiCodeRequest) (*projects.GetContainsAiCodeResponse, *http.Response, error) {
+ u := fmt.Sprintf("%s/get_contains_ai_code", s.path)
+ v := new(projects.GetContainsAiCodeResponse)
+
+ resp, err := s.client.Call(ctx, "GET", u, v, r)
+ if err != nil {
+ return nil, resp, err
+ }
+
+ return v, resp, nil
+}
+
// LicenseUsage - Help admins to understand how much each project affects the total number of lines of code. Returns the list of projects together with information about their usage, sorted by lines of code descending.
// Requires Administer System permission.
// Since 9.4
diff --git a/sonarqube/qualitygates/qualitygates_gen.go b/sonarqube/qualitygates/qualitygates_gen.go
index d802ff9..8b839a6 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
}
@@ -288,6 +288,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/qualitygates_gen.go b/sonarqube/qualitygates_gen.go
index 0073d46..2ad7453 100644
--- a/sonarqube/qualitygates_gen.go
+++ b/sonarqube/qualitygates_gen.go
@@ -307,6 +307,9 @@ func (s *Qualitygates) Rename(ctx context.Context, r qualitygates.RenameRequest)
// Since 4.3
// Changelog:
//
+// 2025.1: Field 'containsAiCode' response field has added.
+// 2025.1: Field 'isAiCodeAssured' response field has been removed.
+// 2025.1: Field 'aiCodeAssurance' response field has been removed.
// 10.8: Field 'isAiCodeAssured' response field has been deprecated. Use 'aiCodeAssurance' instead.
// 10.8: New field 'aiCodeAssurance' in the response.
// 10.0: deprecated 'more' response field has been removed