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 25 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5ff8fd3
New updates to generated code
octokitbot Dec 27, 2024
36de8ef
New updates to generated code
octokitbot Jan 7, 2025
9f7f62f
New updates to generated code
octokitbot Jan 8, 2025
b9b9843
New updates to generated code
octokitbot Jan 9, 2025
5b9d92f
New updates to generated code
octokitbot Jan 10, 2025
1e61e51
New updates to generated code
octokitbot Jan 15, 2025
3b14d66
New updates to generated code
octokitbot Jan 17, 2025
ff42001
New updates to generated code
octokitbot Jan 18, 2025
f34f1e2
New updates to generated code
octokitbot Jan 21, 2025
b557b2b
New updates to generated code
octokitbot Jan 25, 2025
63a0100
New updates to generated code
octokitbot Jan 28, 2025
f86ce38
New updates to generated code
octokitbot Jan 31, 2025
40f4d8b
New updates to generated code
octokitbot Feb 1, 2025
0e93d64
New updates to generated code
octokitbot Feb 6, 2025
226a9d6
New updates to generated code
octokitbot Feb 7, 2025
f9bfbd3
New updates to generated code
octokitbot Feb 8, 2025
99815e5
New updates to generated code
octokitbot Feb 12, 2025
501414b
New updates to generated code
octokitbot Feb 13, 2025
15f0a3c
New updates to generated code
octokitbot Feb 14, 2025
9e50a35
New updates to generated code
octokitbot Feb 22, 2025
cbe8702
New updates to generated code
octokitbot Feb 27, 2025
b17ee06
New updates to generated code
octokitbot Feb 28, 2025
186f1c8
New updates to generated code
octokitbot Mar 1, 2025
892456e
New updates to generated code
octokitbot Mar 4, 2025
59d1540
New updates to generated code
octokitbot Mar 6, 2025
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package configurations
// The enablement status of Copilot secret scanning
type ConfigurationsPostRequestBody_secret_scanning_generic_secrets int

const (
ENABLED_CONFIGURATIONSPOSTREQUESTBODY_SECRET_SCANNING_GENERIC_SECRETS ConfigurationsPostRequestBody_secret_scanning_generic_secrets = iota
DISABLED_CONFIGURATIONSPOSTREQUESTBODY_SECRET_SCANNING_GENERIC_SECRETS
NOT_SET_CONFIGURATIONSPOSTREQUESTBODY_SECRET_SCANNING_GENERIC_SECRETS
)

func (i ConfigurationsPostRequestBody_secret_scanning_generic_secrets) String() string {
return []string{"enabled", "disabled", "not_set"}[i]
}
func ParseConfigurationsPostRequestBody_secret_scanning_generic_secrets(v string) (any, error) {
result := ENABLED_CONFIGURATIONSPOSTREQUESTBODY_SECRET_SCANNING_GENERIC_SECRETS
switch v {
case "enabled":
result = ENABLED_CONFIGURATIONSPOSTREQUESTBODY_SECRET_SCANNING_GENERIC_SECRETS
case "disabled":
result = DISABLED_CONFIGURATIONSPOSTREQUESTBODY_SECRET_SCANNING_GENERIC_SECRETS
case "not_set":
result = NOT_SET_CONFIGURATIONSPOSTREQUESTBODY_SECRET_SCANNING_GENERIC_SECRETS
default:
return nil, nil
}
return &result, nil
}
func SerializeConfigurationsPostRequestBody_secret_scanning_generic_secrets(values []ConfigurationsPostRequestBody_secret_scanning_generic_secrets) []string {
result := make([]string, len(values))
for i, v := range values {
result[i] = v.String()
}
return result
}
func (i ConfigurationsPostRequestBody_secret_scanning_generic_secrets) isMultiValue() bool {
return false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package configurations
// The enablement status of secret scanning delegated alert dismissal
type ConfigurationsPostRequestBody_secret_scanning_delegated_alert_dismissal int

const (
ENABLED_CONFIGURATIONSPOSTREQUESTBODY_SECRET_SCANNING_DELEGATED_ALERT_DISMISSAL ConfigurationsPostRequestBody_secret_scanning_delegated_alert_dismissal = iota
DISABLED_CONFIGURATIONSPOSTREQUESTBODY_SECRET_SCANNING_DELEGATED_ALERT_DISMISSAL
NOT_SET_CONFIGURATIONSPOSTREQUESTBODY_SECRET_SCANNING_DELEGATED_ALERT_DISMISSAL
)

func (i ConfigurationsPostRequestBody_secret_scanning_delegated_alert_dismissal) String() string {
return []string{"enabled", "disabled", "not_set"}[i]
}
func ParseConfigurationsPostRequestBody_secret_scanning_delegated_alert_dismissal(v string) (any, error) {
result := ENABLED_CONFIGURATIONSPOSTREQUESTBODY_SECRET_SCANNING_DELEGATED_ALERT_DISMISSAL
switch v {
case "enabled":
result = ENABLED_CONFIGURATIONSPOSTREQUESTBODY_SECRET_SCANNING_DELEGATED_ALERT_DISMISSAL
case "disabled":
result = DISABLED_CONFIGURATIONSPOSTREQUESTBODY_SECRET_SCANNING_DELEGATED_ALERT_DISMISSAL
case "not_set":
result = NOT_SET_CONFIGURATIONSPOSTREQUESTBODY_SECRET_SCANNING_DELEGATED_ALERT_DISMISSAL
default:
return nil, nil
}
return &result, nil
}
func SerializeConfigurationsPostRequestBody_secret_scanning_delegated_alert_dismissal(values []ConfigurationsPostRequestBody_secret_scanning_delegated_alert_dismissal) []string {
result := make([]string, len(values))
for i, v := range values {
result[i] = v.String()
}
return result
}
func (i ConfigurationsPostRequestBody_secret_scanning_delegated_alert_dismissal) isMultiValue() bool {
return false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package item
// The enablement status of Copilot secret scanning
type WithConfiguration_PatchRequestBody_secret_scanning_generic_secrets int

const (
ENABLED_WITHCONFIGURATION_PATCHREQUESTBODY_SECRET_SCANNING_GENERIC_SECRETS WithConfiguration_PatchRequestBody_secret_scanning_generic_secrets = iota
DISABLED_WITHCONFIGURATION_PATCHREQUESTBODY_SECRET_SCANNING_GENERIC_SECRETS
NOT_SET_WITHCONFIGURATION_PATCHREQUESTBODY_SECRET_SCANNING_GENERIC_SECRETS
)

func (i WithConfiguration_PatchRequestBody_secret_scanning_generic_secrets) String() string {
return []string{"enabled", "disabled", "not_set"}[i]
}
func ParseWithConfiguration_PatchRequestBody_secret_scanning_generic_secrets(v string) (any, error) {
result := ENABLED_WITHCONFIGURATION_PATCHREQUESTBODY_SECRET_SCANNING_GENERIC_SECRETS
switch v {
case "enabled":
result = ENABLED_WITHCONFIGURATION_PATCHREQUESTBODY_SECRET_SCANNING_GENERIC_SECRETS
case "disabled":
result = DISABLED_WITHCONFIGURATION_PATCHREQUESTBODY_SECRET_SCANNING_GENERIC_SECRETS
case "not_set":
result = NOT_SET_WITHCONFIGURATION_PATCHREQUESTBODY_SECRET_SCANNING_GENERIC_SECRETS
default:
return nil, nil
}
return &result, nil
}
func SerializeWithConfiguration_PatchRequestBody_secret_scanning_generic_secrets(values []WithConfiguration_PatchRequestBody_secret_scanning_generic_secrets) []string {
result := make([]string, len(values))
for i, v := range values {
result[i] = v.String()
}
return result
}
func (i WithConfiguration_PatchRequestBody_secret_scanning_generic_secrets) isMultiValue() bool {
return false
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package attach
// The type of repositories to attach the configuration to. `selected` means the configuration will be attached to only the repositories specified by `selected_repository_ids`
// The type of repositories to attach the configuration to.
type AttachPostRequestBody_scope int

const (
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package item
// The enablement status of secret scanning delegated alert dismissal
type WithConfiguration_PatchRequestBody_secret_scanning_delegated_alert_dismissal int

const (
ENABLED_WITHCONFIGURATION_PATCHREQUESTBODY_SECRET_SCANNING_DELEGATED_ALERT_DISMISSAL WithConfiguration_PatchRequestBody_secret_scanning_delegated_alert_dismissal = iota
DISABLED_WITHCONFIGURATION_PATCHREQUESTBODY_SECRET_SCANNING_DELEGATED_ALERT_DISMISSAL
NOT_SET_WITHCONFIGURATION_PATCHREQUESTBODY_SECRET_SCANNING_DELEGATED_ALERT_DISMISSAL
)

func (i WithConfiguration_PatchRequestBody_secret_scanning_delegated_alert_dismissal) String() string {
return []string{"enabled", "disabled", "not_set"}[i]
}
func ParseWithConfiguration_PatchRequestBody_secret_scanning_delegated_alert_dismissal(v string) (any, error) {
result := ENABLED_WITHCONFIGURATION_PATCHREQUESTBODY_SECRET_SCANNING_DELEGATED_ALERT_DISMISSAL
switch v {
case "enabled":
result = ENABLED_WITHCONFIGURATION_PATCHREQUESTBODY_SECRET_SCANNING_DELEGATED_ALERT_DISMISSAL
case "disabled":
result = DISABLED_WITHCONFIGURATION_PATCHREQUESTBODY_SECRET_SCANNING_DELEGATED_ALERT_DISMISSAL
case "not_set":
result = NOT_SET_WITHCONFIGURATION_PATCHREQUESTBODY_SECRET_SCANNING_DELEGATED_ALERT_DISMISSAL
default:
return nil, nil
}
return &result, nil
}
func SerializeWithConfiguration_PatchRequestBody_secret_scanning_delegated_alert_dismissal(values []WithConfiguration_PatchRequestBody_secret_scanning_delegated_alert_dismissal) []string {
result := make([]string, len(values))
for i, v := range values {
result[i] = v.String()
}
return result
}
func (i WithConfiguration_PatchRequestBody_secret_scanning_delegated_alert_dismissal) isMultiValue() bool {
return false
}
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": "43B003FF1629AB4FB021E0E0CE390B5F2B5278CE2F05D98F3E3EEF8BDAC6A2D79C054D2EEF1F76D2601F7B17FC7645C0F78BBB2429D4B5ADE38E0A5113517798",
"descriptionLocation": "../../../../../schemas/api.github.jparrowsec.cn.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.19.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package models
// The enablement status of secret scanning delegated alert dismissal
type CodeSecurityConfiguration_secret_scanning_delegated_alert_dismissal int

const (
ENABLED_CODESECURITYCONFIGURATION_SECRET_SCANNING_DELEGATED_ALERT_DISMISSAL CodeSecurityConfiguration_secret_scanning_delegated_alert_dismissal = iota
DISABLED_CODESECURITYCONFIGURATION_SECRET_SCANNING_DELEGATED_ALERT_DISMISSAL
NOT_SET_CODESECURITYCONFIGURATION_SECRET_SCANNING_DELEGATED_ALERT_DISMISSAL
)

func (i CodeSecurityConfiguration_secret_scanning_delegated_alert_dismissal) String() string {
return []string{"enabled", "disabled", "not_set"}[i]
}
func ParseCodeSecurityConfiguration_secret_scanning_delegated_alert_dismissal(v string) (any, error) {
result := ENABLED_CODESECURITYCONFIGURATION_SECRET_SCANNING_DELEGATED_ALERT_DISMISSAL
switch v {
case "enabled":
result = ENABLED_CODESECURITYCONFIGURATION_SECRET_SCANNING_DELEGATED_ALERT_DISMISSAL
case "disabled":
result = DISABLED_CODESECURITYCONFIGURATION_SECRET_SCANNING_DELEGATED_ALERT_DISMISSAL
case "not_set":
result = NOT_SET_CODESECURITYCONFIGURATION_SECRET_SCANNING_DELEGATED_ALERT_DISMISSAL
default:
return nil, nil
}
return &result, nil
}
func SerializeCodeSecurityConfiguration_secret_scanning_delegated_alert_dismissal(values []CodeSecurityConfiguration_secret_scanning_delegated_alert_dismissal) []string {
result := make([]string, len(values))
for i, v := range values {
result[i] = v.String()
}
return result
}
func (i CodeSecurityConfiguration_secret_scanning_delegated_alert_dismissal) isMultiValue() bool {
return false
}
Loading
Loading