Skip to content

Commit

Permalink
New updates to generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
octokitbot committed Aug 31, 2024
1 parent 6cbea5c commit 9462133
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
8 changes: 7 additions & 1 deletion pkg/github/advisories/get_sort_query_parameter_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ type GetSortQueryParameterType int
const (
UPDATED_GETSORTQUERYPARAMETERTYPE GetSortQueryParameterType = iota
PUBLISHED_GETSORTQUERYPARAMETERTYPE
EPSS_PERCENTAGE_GETSORTQUERYPARAMETERTYPE
EPSS_PERCENTILE_GETSORTQUERYPARAMETERTYPE
)

func (i GetSortQueryParameterType) String() string {
return []string{"updated", "published"}[i]
return []string{"updated", "published", "epss_percentage", "epss_percentile"}[i]
}
func ParseGetSortQueryParameterType(v string) (any, error) {
result := UPDATED_GETSORTQUERYPARAMETERTYPE
Expand All @@ -16,6 +18,10 @@ func ParseGetSortQueryParameterType(v string) (any, error) {
result = UPDATED_GETSORTQUERYPARAMETERTYPE
case "published":
result = PUBLISHED_GETSORTQUERYPARAMETERTYPE
case "epss_percentage":
result = EPSS_PERCENTAGE_GETSORTQUERYPARAMETERTYPE
case "epss_percentile":
result = EPSS_PERCENTILE_GETSORTQUERYPARAMETERTYPE
default:
return nil, nil
}
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": "0DFCFA87ADC378101EA55CABFC347AF562CBA5A4E699595E82DA0B00A2EE55BF068DFC98C7AF4B5ED6D33E8B8354F002342EA342DF5D392D4FA9853B320240D7",
"descriptionHash": "4E6853022AA48AEFD208DC423D372ECE561EB214226544017E9966D50D873D37CB5D65B24B0770C281BD81FF9EF27AC13FE3964D99CA4075BF72E77D768704FA",
"descriptionLocation": "../../../../../schemas/api.github.com.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.17.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ const (
REPOSITORYROLE_REPOSITORYRULESETBYPASSACTOR_ACTOR_TYPE
TEAM_REPOSITORYRULESETBYPASSACTOR_ACTOR_TYPE
DEPLOYKEY_REPOSITORYRULESETBYPASSACTOR_ACTOR_TYPE
ENTERPRISETEAM_REPOSITORYRULESETBYPASSACTOR_ACTOR_TYPE
)

func (i RepositoryRulesetBypassActor_actor_type) String() string {
return []string{"Integration", "OrganizationAdmin", "RepositoryRole", "Team", "DeployKey", "EnterpriseTeam"}[i]
return []string{"Integration", "OrganizationAdmin", "RepositoryRole", "Team", "DeployKey"}[i]
}
func ParseRepositoryRulesetBypassActor_actor_type(v string) (any, error) {
result := INTEGRATION_REPOSITORYRULESETBYPASSACTOR_ACTOR_TYPE
Expand All @@ -27,8 +26,6 @@ func ParseRepositoryRulesetBypassActor_actor_type(v string) (any, error) {
result = TEAM_REPOSITORYRULESETBYPASSACTOR_ACTOR_TYPE
case "DeployKey":
result = DEPLOYKEY_REPOSITORYRULESETBYPASSACTOR_ACTOR_TYPE
case "EnterpriseTeam":
result = ENTERPRISETEAM_REPOSITORYRULESETBYPASSACTOR_ACTOR_TYPE
default:
return nil, nil
}
Expand Down

0 comments on commit 9462133

Please sign in to comment.