Skip to content

Commit

Permalink
feat: Updates to generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
octokitbot authored Dec 23, 2024
1 parent 9c4be2c commit e96680d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
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": "52B29023B2DE1FF8F64CFB34BACA89815C265C38334960391ECA30C8D2CE2F432CE6D672D1CD93775667A7CA754DBD10451ABBCFACA98FF0CCB2299D504A2109",
"descriptionHash": "EA9CDA22EB51812185B6B695BB3F1928DD60725D16BDF71B6005E69337FE830B584C7FAA62F396BD65FCAA0B9635FF61A4984DDEF8EA78488CE3AAE3A3A042A7",
"descriptionLocation": "../../../../../schemas/ghes-3.14.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.19.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package models
type CodeScanningDefaultSetup_languages int

const (
CCPP_CODESCANNINGDEFAULTSETUP_LANGUAGES CodeScanningDefaultSetup_languages = iota
ACTIONS_CODESCANNINGDEFAULTSETUP_LANGUAGES CodeScanningDefaultSetup_languages = iota
CCPP_CODESCANNINGDEFAULTSETUP_LANGUAGES
CSHARP_CODESCANNINGDEFAULTSETUP_LANGUAGES
GO_CODESCANNINGDEFAULTSETUP_LANGUAGES
JAVAKOTLIN_CODESCANNINGDEFAULTSETUP_LANGUAGES
Expand All @@ -15,11 +16,13 @@ const (
)

func (i CodeScanningDefaultSetup_languages) String() string {
return []string{"c-cpp", "csharp", "go", "java-kotlin", "javascript-typescript", "javascript", "python", "ruby", "typescript", "swift"}[i]
return []string{"actions", "c-cpp", "csharp", "go", "java-kotlin", "javascript-typescript", "javascript", "python", "ruby", "typescript", "swift"}[i]
}
func ParseCodeScanningDefaultSetup_languages(v string) (any, error) {
result := CCPP_CODESCANNINGDEFAULTSETUP_LANGUAGES
result := ACTIONS_CODESCANNINGDEFAULTSETUP_LANGUAGES
switch v {
case "actions":
result = ACTIONS_CODESCANNINGDEFAULTSETUP_LANGUAGES
case "c-cpp":
result = CCPP_CODESCANNINGDEFAULTSETUP_LANGUAGES
case "csharp":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package models
type CodeScanningDefaultSetupUpdate_languages int

const (
CCPP_CODESCANNINGDEFAULTSETUPUPDATE_LANGUAGES CodeScanningDefaultSetupUpdate_languages = iota
ACTIONS_CODESCANNINGDEFAULTSETUPUPDATE_LANGUAGES CodeScanningDefaultSetupUpdate_languages = iota
CCPP_CODESCANNINGDEFAULTSETUPUPDATE_LANGUAGES
CSHARP_CODESCANNINGDEFAULTSETUPUPDATE_LANGUAGES
GO_CODESCANNINGDEFAULTSETUPUPDATE_LANGUAGES
JAVAKOTLIN_CODESCANNINGDEFAULTSETUPUPDATE_LANGUAGES
Expand All @@ -13,11 +14,13 @@ const (
)

func (i CodeScanningDefaultSetupUpdate_languages) String() string {
return []string{"c-cpp", "csharp", "go", "java-kotlin", "javascript-typescript", "python", "ruby", "swift"}[i]
return []string{"actions", "c-cpp", "csharp", "go", "java-kotlin", "javascript-typescript", "python", "ruby", "swift"}[i]
}
func ParseCodeScanningDefaultSetupUpdate_languages(v string) (any, error) {
result := CCPP_CODESCANNINGDEFAULTSETUPUPDATE_LANGUAGES
result := ACTIONS_CODESCANNINGDEFAULTSETUPUPDATE_LANGUAGES
switch v {
case "actions":
result = ACTIONS_CODESCANNINGDEFAULTSETUPUPDATE_LANGUAGES
case "c-cpp":
result = CCPP_CODESCANNINGDEFAULTSETUPUPDATE_LANGUAGES
case "csharp":
Expand Down

0 comments on commit e96680d

Please sign in to comment.