-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* New updates to generated code * New updates to generated code * New updates to generated code * New updates to generated code --------- Co-authored-by: Octokit Bot <[email protected]>
- Loading branch information
1 parent
3188c88
commit a196ac2
Showing
21 changed files
with
3,314 additions
and
2,309 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
pkg/github/models/code_security_configuration_enforcement.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package models | ||
import ( | ||
"errors" | ||
) | ||
// The enforcement status for a security configuration | ||
type CodeSecurityConfiguration_enforcement int | ||
|
||
const ( | ||
ENFORCED_CODESECURITYCONFIGURATION_ENFORCEMENT CodeSecurityConfiguration_enforcement = iota | ||
UNENFORCED_CODESECURITYCONFIGURATION_ENFORCEMENT | ||
) | ||
|
||
func (i CodeSecurityConfiguration_enforcement) String() string { | ||
return []string{"enforced", "unenforced"}[i] | ||
} | ||
func ParseCodeSecurityConfiguration_enforcement(v string) (any, error) { | ||
result := ENFORCED_CODESECURITYCONFIGURATION_ENFORCEMENT | ||
switch v { | ||
case "enforced": | ||
result = ENFORCED_CODESECURITYCONFIGURATION_ENFORCEMENT | ||
case "unenforced": | ||
result = UNENFORCED_CODESECURITYCONFIGURATION_ENFORCEMENT | ||
default: | ||
return 0, errors.New("Unknown CodeSecurityConfiguration_enforcement value: " + v) | ||
} | ||
return &result, nil | ||
} | ||
func SerializeCodeSecurityConfiguration_enforcement(values []CodeSecurityConfiguration_enforcement) []string { | ||
result := make([]string, len(values)) | ||
for i, v := range values { | ||
result[i] = v.String() | ||
} | ||
return result | ||
} | ||
func (i CodeSecurityConfiguration_enforcement) isMultiValue() bool { | ||
return false | ||
} |
40 changes: 40 additions & 0 deletions
40
pkg/github/models/code_security_configuration_secret_scanning_validity_checks.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package models | ||
import ( | ||
"errors" | ||
) | ||
// The enablement status of secret scanning validity checks | ||
type CodeSecurityConfiguration_secret_scanning_validity_checks int | ||
|
||
const ( | ||
ENABLED_CODESECURITYCONFIGURATION_SECRET_SCANNING_VALIDITY_CHECKS CodeSecurityConfiguration_secret_scanning_validity_checks = iota | ||
DISABLED_CODESECURITYCONFIGURATION_SECRET_SCANNING_VALIDITY_CHECKS | ||
NOT_SET_CODESECURITYCONFIGURATION_SECRET_SCANNING_VALIDITY_CHECKS | ||
) | ||
|
||
func (i CodeSecurityConfiguration_secret_scanning_validity_checks) String() string { | ||
return []string{"enabled", "disabled", "not_set"}[i] | ||
} | ||
func ParseCodeSecurityConfiguration_secret_scanning_validity_checks(v string) (any, error) { | ||
result := ENABLED_CODESECURITYCONFIGURATION_SECRET_SCANNING_VALIDITY_CHECKS | ||
switch v { | ||
case "enabled": | ||
result = ENABLED_CODESECURITYCONFIGURATION_SECRET_SCANNING_VALIDITY_CHECKS | ||
case "disabled": | ||
result = DISABLED_CODESECURITYCONFIGURATION_SECRET_SCANNING_VALIDITY_CHECKS | ||
case "not_set": | ||
result = NOT_SET_CODESECURITYCONFIGURATION_SECRET_SCANNING_VALIDITY_CHECKS | ||
default: | ||
return 0, errors.New("Unknown CodeSecurityConfiguration_secret_scanning_validity_checks value: " + v) | ||
} | ||
return &result, nil | ||
} | ||
func SerializeCodeSecurityConfiguration_secret_scanning_validity_checks(values []CodeSecurityConfiguration_secret_scanning_validity_checks) []string { | ||
result := make([]string, len(values)) | ||
for i, v := range values { | ||
result[i] = v.String() | ||
} | ||
return result | ||
} | ||
func (i CodeSecurityConfiguration_secret_scanning_validity_checks) isMultiValue() bool { | ||
return false | ||
} |
Oops, something went wrong.