Skip to content

Commit

Permalink
Merge pull request #38 from shijl0925/create-pull-request/patch
Browse files Browse the repository at this point in the history
Changes by create-pull-request action
  • Loading branch information
shijl0925 authored Jan 9, 2025
2 parents 3bb4c30 + 0298f77 commit 013900c
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 6 deletions.
2 changes: 2 additions & 0 deletions sonarqube/hotspots_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ type Hotspots service
// Since 8.1
// Changelog:
//
// 2025.1: The following 'resolution' values are not deprecated anymore: FIXED, SAFE, ACKNOWLEDGED
// 2025.1: The following 'status' values are not deprecated anymore: TO_REVIEW, REVIEWED
// 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)
Expand Down
2 changes: 1 addition & 1 deletion sonarqube/measures/measures_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, reliability_issues, maintainability_issues, security_issues, new_reliability_issues, new_security_issues metrics are supported
MetricKeys string `url:"metricKeys"` // Comma-separated list of metric keys. Types DISTRIB are not allowed. For type DATA only reliability_issues, new_maintainability_issues, new_security_issues, new_reliability_issues, security_issues, 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: <ul><li>all: return all components</li><li>withMeasuresOnly: filter out components that do not have a measure on the sorted metric</li></ul>
Expand Down
2 changes: 2 additions & 0 deletions sonarqube/measures_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ func (s *Measures) Component(ctx context.Context, r measures.ComponentRequest) (
// Since 5.4
// Changelog:
//
// 10.8: Number of metric keys is limited to 75
// 10.8: Portfolio project metrics now also include: 'contains_ai_code', 'reliability_rating_without_aica', 'reliability_rating_with_aica', 'software_quality_security_rating_without_aica', 'software_quality_security_rating_with_aica', 'security_rating_without_aica', 'security_rating_with_aica', 'new_reliability_rating_without_aica', 'new_reliability_rating_with_aica', 'new_software_quality_reliability_rating_without_aica', 'new_software_quality_reliability_rating_with_aica', 'new_security_rating_without_aica', 'new_security_rating_with_aica', 'new_software_quality_security_rating_without_aica', 'new_software_quality_security_rating_with_aica', 'security_review_rating_without_aica', 'security_review_rating_with_aica', 'sqale_rating_without_aica', 'sqale_rating_with_aica', 'new_software_quality_maintainability_rating_without_aica', 'new_software_quality_maintainability_rating_with_aica', 'ncloc_without_aica', 'ncloc_with_aica', 'software_quality_reliability_rating_without_aica', 'software_quality_reliability_rating_with_aica', 'new_maintainability_rating_without_aica', 'new_maintainability_rating_with_aica', 'software_quality_maintainability_rating_without_aica', 'software_quality_maintainability_rating_with_aica', 'new_security_review_rating_without_aica', 'new_security_review_rating_with_aica', 'releasability_rating_without_aica', 'releasability_rating_with_aica'
// 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.
Expand Down
4 changes: 2 additions & 2 deletions sonarqube/qualitygates/qualitygates_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.<br/> Only metric of the following types are allowed:<ul><li>INT</li><li>MILLISEC</li><li>RATING</li><li>WORK_DUR</li><li>FLOAT</li><li>PERCENT</li><li>LEVEL</li></ul>Following metrics are forbidden:<ul><li>alert_status</li><li>new_security_hotspots</li><li>security_hotspots</li></ul>
Metric string `form:"metric"` // Condition metric.<br/> Only metric of the following types are allowed:<ul><li>INT</li><li>MILLISEC</li><li>RATING</li><li>WORK_DUR</li><li>FLOAT</li><li>PERCENT</li><li>LEVEL</li></ul>Following metrics are forbidden:<ul><li>security_hotspots</li><li>new_security_hotspots</li><li>alert_status</li></ul>
Op string `form:"op,omitempty"` // Condition operator:<br/><ul><li>LT = is lower than</li><li>GT = is greater than</li></ul>
}

Expand Down Expand Up @@ -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.<br/> Only metric of the following types are allowed:<ul><li>INT</li><li>MILLISEC</li><li>RATING</li><li>WORK_DUR</li><li>FLOAT</li><li>PERCENT</li><li>LEVEL</li></ul>Following metrics are forbidden:<ul><li>alert_status</li><li>new_security_hotspots</li><li>security_hotspots</li></ul>
Metric string `form:"metric"` // Condition metric.<br/> Only metric of the following types are allowed:<ul><li>INT</li><li>MILLISEC</li><li>RATING</li><li>WORK_DUR</li><li>FLOAT</li><li>PERCENT</li><li>LEVEL</li></ul>Following metrics are forbidden:<ul><li>security_hotspots</li><li>new_security_hotspots</li><li>alert_status</li></ul>
Op string `form:"op,omitempty"` // Condition operator:<br/><ul><li>LT = is lower than</li><li>GT = is greater than</li></ul>
}
6 changes: 4 additions & 2 deletions sonarqube/qualityprofiles/qualityprofiles_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ type ChangelogResponse struct {
SoftwareQuality string `json:"softwareQuality,omitempty"`
} `json:"impacts,omitempty"`
Params struct {
Severity string `json:"severity,omitempty"`
PrioritizedRule string `json:"prioritizedRule,omitempty"`
Severity string `json:"severity,omitempty"`
} `json:"params,omitempty"`
RuleKey string `json:"ruleKey,omitempty"`
RuleName string `json:"ruleName,omitempty"`
Expand All @@ -120,7 +121,8 @@ type ChangelogResponseAll struct {
SoftwareQuality string `json:"softwareQuality,omitempty"`
} `json:"impacts,omitempty"`
Params struct {
Severity string `json:"severity,omitempty"`
PrioritizedRule string `json:"prioritizedRule,omitempty"`
Severity string `json:"severity,omitempty"`
} `json:"params,omitempty"`
RuleKey string `json:"ruleKey,omitempty"`
RuleName string `json:"ruleName,omitempty"`
Expand Down
1 change: 1 addition & 0 deletions sonarqube/qualityprofiles_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ func (s *Qualityprofiles) ChangeParent(ctx context.Context, r qualityprofiles.Ch
// Since 5.2
// Changelog:
//
// 2025.1: Added field 'prioritizedRule' to 'params' section of response
// 10.8: Added parameter 'filterMode'
// 10.8: Possible values 'INFO' and 'BLOCKER' for response field 'severity' of 'impacts' have been added
// 10.3: Added fields 'cleanCodeAttributeCategory', 'impacts' to response
Expand Down
2 changes: 1 addition & 1 deletion sonarqube/users/users_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type AnonymizeRequest struct {
// ChangePasswordRequest 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.
type ChangePasswordRequest struct {
Login string `form:"login"` // User login
Password string `form:"password"` // New password
Password string `form:"password"` // The password needs to fulfill the following requirements: at least 12 characters and contain at least one uppercase character, one lowercase character, one digit and one special character.
PreviousPassword string `form:"previousPassword,omitempty"` // Previous password. Required when changing one's own password.
}

Expand Down

0 comments on commit 013900c

Please sign in to comment.