Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions gen/overrides.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ func NewOverrides() Overrides {
overrides.Add("user_groups", "search", "id", &FloatField{name: "id"})
//overrides.Add("user_tokens", "generate", "token", &FloatField{name: "token"})

overrides.Add("webhooks", "list", "hasSecret", &BoolField{name: "has_secret"})
overrides.Add("webhooks", "create", "hasSecret", &BoolField{name: "has_secret"})

return overrides
}

Expand Down
7 changes: 4 additions & 3 deletions sonarcloud/qualitygates/qualitygates_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,10 @@ type ShowResponse struct {
Metric string `json:"metric,omitempty"`
Op string `json:"op,omitempty"`
} `json:"conditions,omitempty"`
Id float64 `json:"id,omitempty"`
IsBuiltIn bool `json:"isBuiltIn,omitempty"`
Name string `json:"name,omitempty"`
Id float64 `json:"id,omitempty"`
IsBuiltIn bool `json:"isBuiltIn,omitempty"`
IsCleanAsYouCode bool `json:"isCleanAsYouCode,omitempty"`
Name string `json:"name,omitempty"`
}

// UnsetDefaultRequest This webservice is no more available : a default quality gate is mandatory.
Expand Down
4 changes: 2 additions & 2 deletions sonarcloud/webhooks/webhooks_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type CreateRequest struct {
// CreateResponse is the response for CreateRequest
type CreateResponse struct {
Webhook struct {
HasSecret bool `json:"hasSecret,omitempty"`
HasSecret bool `json:"has_secret,omitempty"`
Key string `json:"key,omitempty"`
Name string `json:"name,omitempty"`
Url string `json:"url,omitempty"`
Expand Down Expand Up @@ -104,7 +104,7 @@ type ListResponse struct {
Key string `json:"key,omitempty"`
Name string `json:"name,omitempty"`
Url string `json:"url,omitempty"`
HasSecret bool `json:"hasSecret,omitempty"`
HasSecret bool `json:"has_secret,omitempty"`
} `json:"webhooks,omitempty"`
}

Expand Down