Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes in generated code #126

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ type GetSortQueryParameterType int
const (
CREATED_GETSORTQUERYPARAMETERTYPE GetSortQueryParameterType = iota
UPDATED_GETSORTQUERYPARAMETERTYPE
EPSS_PERCENTAGE_GETSORTQUERYPARAMETERTYPE
)

func (i GetSortQueryParameterType) String() string {
return []string{"created", "updated"}[i]
return []string{"created", "updated", "epss_percentage"}[i]
}
func ParseGetSortQueryParameterType(v string) (any, error) {
result := CREATED_GETSORTQUERYPARAMETERTYPE
Expand All @@ -16,6 +17,8 @@ func ParseGetSortQueryParameterType(v string) (any, error) {
result = CREATED_GETSORTQUERYPARAMETERTYPE
case "updated":
result = UPDATED_GETSORTQUERYPARAMETERTYPE
case "epss_percentage":
result = EPSS_PERCENTAGE_GETSORTQUERYPARAMETERTYPE
default:
return nil, nil
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ type ItemDependabotAlertsRequestBuilderGetQueryParameters struct {
Direction *i77c38d6454f4c9dc55005405729b416470b652fa12f001a040f72bc1395cc732.GetDirectionQueryParameterType `uriparametername:"direction"`
// A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned.Can be: `composer`, `go`, `maven`, `npm`, `nuget`, `pip`, `pub`, `rubygems`, `rust`
Ecosystem *string `uriparametername:"ecosystem"`
// CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as:- An exact number (`n`)- Comparators such as `>n`, `<n`, `>=n`, `<=n`- A range like `n..n`, where `n` is a number from 0.0 to 1.0Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned.
Epss_percentage *string `uriparametername:"epss_percentage"`
// **Deprecated**. The number of results per page (max 100), starting from the first matching result.This parameter must not be used in combination with `last`.Instead, use `per_page` in combination with `after` to fetch the first page of results.
First *int32 `uriparametername:"first"`
// **Deprecated**. The number of results per page (max 100), starting from the last matching result.This parameter must not be used in combination with `first`.Instead, use `per_page` in combination with `before` to fetch the last page of results.
Expand All @@ -33,15 +35,15 @@ type ItemDependabotAlertsRequestBuilderGetQueryParameters struct {
Scope *i77c38d6454f4c9dc55005405729b416470b652fa12f001a040f72bc1395cc732.GetScopeQueryParameterType `uriparametername:"scope"`
// A comma-separated list of severities. If specified, only alerts with these severities will be returned.Can be: `low`, `medium`, `high`, `critical`
Severity *string `uriparametername:"severity"`
// The property by which to sort the results.`created` means when the alert was created.`updated` means when the alert's state last changed.
// The property by which to sort the results.`created` means when the alert was created.`updated` means when the alert's state last changed.`epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage.
Sort *i77c38d6454f4c9dc55005405729b416470b652fa12f001a040f72bc1395cc732.GetSortQueryParameterType `uriparametername:"sort"`
// A comma-separated list of states. If specified, only alerts with these states will be returned.Can be: `auto_dismissed`, `dismissed`, `fixed`, `open`
State *string `uriparametername:"state"`
}
// NewItemDependabotAlertsRequestBuilderInternal instantiates a new ItemDependabotAlertsRequestBuilder and sets the default values.
func NewItemDependabotAlertsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemDependabotAlertsRequestBuilder) {
m := &ItemDependabotAlertsRequestBuilder{
BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/enterprises/{enterprise}/dependabot/alerts{?after*,before*,direction*,ecosystem*,first*,last*,package*,per_page*,scope*,severity*,sort*,state*}", pathParameters),
BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/enterprises/{enterprise}/dependabot/alerts{?after*,before*,direction*,ecosystem*,epss_percentage*,first*,last*,package*,per_page*,scope*,severity*,sort*,state*}", pathParameters),
}
return m
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/github/kiota-lock.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"descriptionHash": "54208FD0E974CC1715543AD344E8EB72FE62F45838301766C1CFBE3A6EDF1B14B8CFC3A84C4495B0B29B749D231789DB35F3CBFA101624FD7E5BF8FB1ECB51DD",
"descriptionHash": "9314B3C73BC6A84364C771DC58616CEB1477AA0B63FE7E60B33CB5E9654FFF508F4F07D82D3339A176A68425383C9D18D39EAFB8D0F18F2A0CBAF16090D868EB",
"descriptionLocation": "../../../../../schemas/api.github.com.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.19.0",
Expand Down
Loading
Loading