diff --git a/pkg/github/enterprises/item/dependabot/alerts/get_sort_query_parameter_type.go b/pkg/github/enterprises/item/dependabot/alerts/get_sort_query_parameter_type.go index 719c5fb3..ecaaa7e4 100644 --- a/pkg/github/enterprises/item/dependabot/alerts/get_sort_query_parameter_type.go +++ b/pkg/github/enterprises/item/dependabot/alerts/get_sort_query_parameter_type.go @@ -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 @@ -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 } diff --git a/pkg/github/enterprises/item_dependabot_alerts_request_builder.go b/pkg/github/enterprises/item_dependabot_alerts_request_builder.go index 13bb1733..0a456f3e 100644 --- a/pkg/github/enterprises/item_dependabot_alerts_request_builder.go +++ b/pkg/github/enterprises/item_dependabot_alerts_request_builder.go @@ -33,7 +33,7 @@ type ItemDependabotAlertsRequestBuilderGetQueryParameters struct { Scope *i1a72be8a2e171acbad39b8b772b6f76dcb853adcf2d0dac77f84acd8a56c4c26.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 *i1a72be8a2e171acbad39b8b772b6f76dcb853adcf2d0dac77f84acd8a56c4c26.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"` diff --git a/pkg/github/kiota-lock.json b/pkg/github/kiota-lock.json index 920e02ab..b1564ed7 100644 --- a/pkg/github/kiota-lock.json +++ b/pkg/github/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "EA9CDA22EB51812185B6B695BB3F1928DD60725D16BDF71B6005E69337FE830B584C7FAA62F396BD65FCAA0B9635FF61A4984DDEF8EA78488CE3AAE3A3A042A7", + "descriptionHash": "B985ADA950A78C590AAD7E574663508954E02FAF4BD5CB03B4942A4A267BE7F83D625C1888C71327B5B2E1F9B39F70CC7BE29D0A68B003F86D472EA9E1B84B6C", "descriptionLocation": "../../../../../schemas/ghes-3.14.json", "lockFileVersion": "1.0.0", "kiotaVersion": "1.19.0", diff --git a/pkg/github/models/check_automated_security_fixes.go b/pkg/github/models/check_automated_security_fixes.go index a20c43b6..dcbaff16 100644 --- a/pkg/github/models/check_automated_security_fixes.go +++ b/pkg/github/models/check_automated_security_fixes.go @@ -4,13 +4,13 @@ import ( i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" ) -// CheckAutomatedSecurityFixes check Automated Security Fixes +// CheckAutomatedSecurityFixes check Dependabot security updates type CheckAutomatedSecurityFixes struct { // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. additionalData map[string]any - // Whether automated security fixes are enabled for the repository. + // Whether Dependabot security updates are enabled for the repository. enabled *bool - // Whether automated security fixes are paused for the repository. + // Whether Dependabot security updates are paused for the repository. paused *bool } // NewCheckAutomatedSecurityFixes instantiates a new CheckAutomatedSecurityFixes and sets the default values. @@ -30,7 +30,7 @@ func CreateCheckAutomatedSecurityFixesFromDiscriminatorValue(parseNode i878a80d2 func (m *CheckAutomatedSecurityFixes) GetAdditionalData()(map[string]any) { return m.additionalData } -// GetEnabled gets the enabled property value. Whether automated security fixes are enabled for the repository. +// GetEnabled gets the enabled property value. Whether Dependabot security updates are enabled for the repository. // returns a *bool when successful func (m *CheckAutomatedSecurityFixes) GetEnabled()(*bool) { return m.enabled @@ -61,7 +61,7 @@ func (m *CheckAutomatedSecurityFixes) GetFieldDeserializers()(map[string]func(i8 } return res } -// GetPaused gets the paused property value. Whether automated security fixes are paused for the repository. +// GetPaused gets the paused property value. Whether Dependabot security updates are paused for the repository. // returns a *bool when successful func (m *CheckAutomatedSecurityFixes) GetPaused()(*bool) { return m.paused @@ -92,11 +92,11 @@ func (m *CheckAutomatedSecurityFixes) Serialize(writer i878a80d2330e89d26896388a func (m *CheckAutomatedSecurityFixes) SetAdditionalData(value map[string]any)() { m.additionalData = value } -// SetEnabled sets the enabled property value. Whether automated security fixes are enabled for the repository. +// SetEnabled sets the enabled property value. Whether Dependabot security updates are enabled for the repository. func (m *CheckAutomatedSecurityFixes) SetEnabled(value *bool)() { m.enabled = value } -// SetPaused sets the paused property value. Whether automated security fixes are paused for the repository. +// SetPaused sets the paused property value. Whether Dependabot security updates are paused for the repository. func (m *CheckAutomatedSecurityFixes) SetPaused(value *bool)() { m.paused = value } diff --git a/pkg/github/models/integration.go b/pkg/github/models/integration.go index 6eb8c956..47ad5ffb 100644 --- a/pkg/github/models/integration.go +++ b/pkg/github/models/integration.go @@ -29,8 +29,8 @@ type Integration struct { name *string // The node_id property node_id *string - // A GitHub user. - owner NullableSimpleUserable + // The owner property + owner Integration_Integration_ownerable // The pem property pem *string // The set of permissions for the GitHub app @@ -42,6 +42,89 @@ type Integration struct { // The webhook_secret property webhook_secret *string } +// Integration_Integration_owner composed type wrapper for classes Enterpriseable, SimpleUserable +type Integration_Integration_owner struct { + // Composed type representation for type Enterpriseable + enterprise Enterpriseable + // Composed type representation for type SimpleUserable + simpleUser SimpleUserable +} +// NewIntegration_Integration_owner instantiates a new Integration_Integration_owner and sets the default values. +func NewIntegration_Integration_owner()(*Integration_Integration_owner) { + m := &Integration_Integration_owner{ + } + return m +} +// CreateIntegration_Integration_ownerFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateIntegration_Integration_ownerFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + result := NewIntegration_Integration_owner() + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + } + } + } + return result, nil +} +// GetEnterprise gets the enterprise property value. Composed type representation for type Enterpriseable +// returns a Enterpriseable when successful +func (m *Integration_Integration_owner) GetEnterprise()(Enterpriseable) { + return m.enterprise +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *Integration_Integration_owner) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) +} +// GetIsComposedType determines if the current object is a wrapper around a composed type +// returns a bool when successful +func (m *Integration_Integration_owner) GetIsComposedType()(bool) { + return true +} +// GetSimpleUser gets the simpleUser property value. Composed type representation for type SimpleUserable +// returns a SimpleUserable when successful +func (m *Integration_Integration_owner) GetSimpleUser()(SimpleUserable) { + return m.simpleUser +} +// Serialize serializes information the current object +func (m *Integration_Integration_owner) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetEnterprise() != nil { + err := writer.WriteObjectValue("", m.GetEnterprise()) + if err != nil { + return err + } + } else if m.GetSimpleUser() != nil { + err := writer.WriteObjectValue("", m.GetSimpleUser()) + if err != nil { + return err + } + } + return nil +} +// SetEnterprise sets the enterprise property value. Composed type representation for type Enterpriseable +func (m *Integration_Integration_owner) SetEnterprise(value Enterpriseable)() { + m.enterprise = value +} +// SetSimpleUser sets the simpleUser property value. Composed type representation for type SimpleUserable +func (m *Integration_Integration_owner) SetSimpleUser(value SimpleUserable)() { + m.simpleUser = value +} +type Integration_Integration_ownerable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetEnterprise()(Enterpriseable) + GetSimpleUser()(SimpleUserable) + SetEnterprise(value Enterpriseable)() + SetSimpleUser(value SimpleUserable)() +} // NewIntegration instantiates a new Integration and sets the default values. func NewIntegration()(*Integration) { m := &Integration{ @@ -195,12 +278,12 @@ func (m *Integration) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26 return nil } res["owner"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateNullableSimpleUserFromDiscriminatorValue) + val, err := n.GetObjectValue(CreateIntegration_Integration_ownerFromDiscriminatorValue) if err != nil { return err } if val != nil { - m.SetOwner(val.(NullableSimpleUserable)) + m.SetOwner(val.(Integration_Integration_ownerable)) } return nil } @@ -281,9 +364,9 @@ func (m *Integration) GetName()(*string) { func (m *Integration) GetNodeId()(*string) { return m.node_id } -// GetOwner gets the owner property value. A GitHub user. -// returns a NullableSimpleUserable when successful -func (m *Integration) GetOwner()(NullableSimpleUserable) { +// GetOwner gets the owner property value. The owner property +// returns a Integration_Integration_ownerable when successful +func (m *Integration) GetOwner()(Integration_Integration_ownerable) { return m.owner } // GetPem gets the pem property value. The pem property @@ -461,8 +544,8 @@ func (m *Integration) SetName(value *string)() { func (m *Integration) SetNodeId(value *string)() { m.node_id = value } -// SetOwner sets the owner property value. A GitHub user. -func (m *Integration) SetOwner(value NullableSimpleUserable)() { +// SetOwner sets the owner property value. The owner property +func (m *Integration) SetOwner(value Integration_Integration_ownerable)() { m.owner = value } // SetPem sets the pem property value. The pem property @@ -498,7 +581,7 @@ type Integrationable interface { GetInstallationsCount()(*int32) GetName()(*string) GetNodeId()(*string) - GetOwner()(NullableSimpleUserable) + GetOwner()(Integration_Integration_ownerable) GetPem()(*string) GetPermissions()(Integration_permissionsable) GetSlug()(*string) @@ -514,7 +597,7 @@ type Integrationable interface { SetInstallationsCount(value *int32)() SetName(value *string)() SetNodeId(value *string)() - SetOwner(value NullableSimpleUserable)() + SetOwner(value Integration_Integration_ownerable)() SetPem(value *string)() SetPermissions(value Integration_permissionsable)() SetSlug(value *string)() diff --git a/pkg/github/models/nullable_integration.go b/pkg/github/models/nullable_integration.go index ac9d668a..8196ccbd 100644 --- a/pkg/github/models/nullable_integration.go +++ b/pkg/github/models/nullable_integration.go @@ -29,8 +29,8 @@ type NullableIntegration struct { name *string // The node_id property node_id *string - // A GitHub user. - owner NullableSimpleUserable + // The owner property + owner NullableIntegration_NullableIntegration_ownerable // The pem property pem *string // The set of permissions for the GitHub app @@ -42,6 +42,89 @@ type NullableIntegration struct { // The webhook_secret property webhook_secret *string } +// NullableIntegration_NullableIntegration_owner composed type wrapper for classes Enterpriseable, SimpleUserable +type NullableIntegration_NullableIntegration_owner struct { + // Composed type representation for type Enterpriseable + enterprise Enterpriseable + // Composed type representation for type SimpleUserable + simpleUser SimpleUserable +} +// NewNullableIntegration_NullableIntegration_owner instantiates a new NullableIntegration_NullableIntegration_owner and sets the default values. +func NewNullableIntegration_NullableIntegration_owner()(*NullableIntegration_NullableIntegration_owner) { + m := &NullableIntegration_NullableIntegration_owner{ + } + return m +} +// CreateNullableIntegration_NullableIntegration_ownerFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value +// returns a Parsable when successful +func CreateNullableIntegration_NullableIntegration_ownerFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { + result := NewNullableIntegration_NullableIntegration_owner() + if parseNode != nil { + mappingValueNode, err := parseNode.GetChildNode("") + if err != nil { + return nil, err + } + if mappingValueNode != nil { + mappingValue, err := mappingValueNode.GetStringValue() + if err != nil { + return nil, err + } + if mappingValue != nil { + } + } + } + return result, nil +} +// GetEnterprise gets the enterprise property value. Composed type representation for type Enterpriseable +// returns a Enterpriseable when successful +func (m *NullableIntegration_NullableIntegration_owner) GetEnterprise()(Enterpriseable) { + return m.enterprise +} +// GetFieldDeserializers the deserialization information for the current model +// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful +func (m *NullableIntegration_NullableIntegration_owner) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { + return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) +} +// GetIsComposedType determines if the current object is a wrapper around a composed type +// returns a bool when successful +func (m *NullableIntegration_NullableIntegration_owner) GetIsComposedType()(bool) { + return true +} +// GetSimpleUser gets the simpleUser property value. Composed type representation for type SimpleUserable +// returns a SimpleUserable when successful +func (m *NullableIntegration_NullableIntegration_owner) GetSimpleUser()(SimpleUserable) { + return m.simpleUser +} +// Serialize serializes information the current object +func (m *NullableIntegration_NullableIntegration_owner) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { + if m.GetEnterprise() != nil { + err := writer.WriteObjectValue("", m.GetEnterprise()) + if err != nil { + return err + } + } else if m.GetSimpleUser() != nil { + err := writer.WriteObjectValue("", m.GetSimpleUser()) + if err != nil { + return err + } + } + return nil +} +// SetEnterprise sets the enterprise property value. Composed type representation for type Enterpriseable +func (m *NullableIntegration_NullableIntegration_owner) SetEnterprise(value Enterpriseable)() { + m.enterprise = value +} +// SetSimpleUser sets the simpleUser property value. Composed type representation for type SimpleUserable +func (m *NullableIntegration_NullableIntegration_owner) SetSimpleUser(value SimpleUserable)() { + m.simpleUser = value +} +type NullableIntegration_NullableIntegration_ownerable interface { + i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable + GetEnterprise()(Enterpriseable) + GetSimpleUser()(SimpleUserable) + SetEnterprise(value Enterpriseable)() + SetSimpleUser(value SimpleUserable)() +} // NewNullableIntegration instantiates a new NullableIntegration and sets the default values. func NewNullableIntegration()(*NullableIntegration) { m := &NullableIntegration{ @@ -195,12 +278,12 @@ func (m *NullableIntegration) GetFieldDeserializers()(map[string]func(i878a80d23 return nil } res["owner"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetObjectValue(CreateNullableSimpleUserFromDiscriminatorValue) + val, err := n.GetObjectValue(CreateNullableIntegration_NullableIntegration_ownerFromDiscriminatorValue) if err != nil { return err } if val != nil { - m.SetOwner(val.(NullableSimpleUserable)) + m.SetOwner(val.(NullableIntegration_NullableIntegration_ownerable)) } return nil } @@ -281,9 +364,9 @@ func (m *NullableIntegration) GetName()(*string) { func (m *NullableIntegration) GetNodeId()(*string) { return m.node_id } -// GetOwner gets the owner property value. A GitHub user. -// returns a NullableSimpleUserable when successful -func (m *NullableIntegration) GetOwner()(NullableSimpleUserable) { +// GetOwner gets the owner property value. The owner property +// returns a NullableIntegration_NullableIntegration_ownerable when successful +func (m *NullableIntegration) GetOwner()(NullableIntegration_NullableIntegration_ownerable) { return m.owner } // GetPem gets the pem property value. The pem property @@ -461,8 +544,8 @@ func (m *NullableIntegration) SetName(value *string)() { func (m *NullableIntegration) SetNodeId(value *string)() { m.node_id = value } -// SetOwner sets the owner property value. A GitHub user. -func (m *NullableIntegration) SetOwner(value NullableSimpleUserable)() { +// SetOwner sets the owner property value. The owner property +func (m *NullableIntegration) SetOwner(value NullableIntegration_NullableIntegration_ownerable)() { m.owner = value } // SetPem sets the pem property value. The pem property @@ -498,7 +581,7 @@ type NullableIntegrationable interface { GetInstallationsCount()(*int32) GetName()(*string) GetNodeId()(*string) - GetOwner()(NullableSimpleUserable) + GetOwner()(NullableIntegration_NullableIntegration_ownerable) GetPem()(*string) GetPermissions()(NullableIntegration_permissionsable) GetSlug()(*string) @@ -514,7 +597,7 @@ type NullableIntegrationable interface { SetInstallationsCount(value *int32)() SetName(value *string)() SetNodeId(value *string)() - SetOwner(value NullableSimpleUserable)() + SetOwner(value NullableIntegration_NullableIntegration_ownerable)() SetPem(value *string)() SetPermissions(value NullableIntegration_permissionsable)() SetSlug(value *string)() diff --git a/pkg/github/models/users.go b/pkg/github/models/users.go index dd87f2ab..cf42c03e 100644 --- a/pkg/github/models/users.go +++ b/pkg/github/models/users.go @@ -7,16 +7,12 @@ import ( type Users struct { // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. additionalData map[string]any - // The fragment property - fragment *string - // The matches property - matches []Users_matchesable - // The object_type property - object_type *string - // The object_url property - object_url *string - // The property property - property *string + // Whether this email address is the primary address. + primary *bool + // The type of email address. + typeEscaped *string + // The email address. + value *string } // NewUsers instantiates a new Users and sets the default values. func NewUsers()(*Users) { @@ -39,123 +35,69 @@ func (m *Users) GetAdditionalData()(map[string]any) { // returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful func (m *Users) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["fragment"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetFragment(val) - } - return nil - } - res["matches"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfObjectValues(CreateUsers_matchesFromDiscriminatorValue) - if err != nil { - return err - } - if val != nil { - res := make([]Users_matchesable, len(val)) - for i, v := range val { - if v != nil { - res[i] = v.(Users_matchesable) - } - } - m.SetMatches(res) - } - return nil - } - res["object_type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() + res["primary"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + val, err := n.GetBoolValue() if err != nil { return err } if val != nil { - m.SetObjectType(val) + m.SetPrimary(val) } return nil } - res["object_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + res["type"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { return err } if val != nil { - m.SetObjectUrl(val) + m.SetTypeEscaped(val) } return nil } - res["property"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { + res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { val, err := n.GetStringValue() if err != nil { return err } if val != nil { - m.SetProperty(val) + m.SetValue(val) } return nil } return res } -// GetFragment gets the fragment property value. The fragment property -// returns a *string when successful -func (m *Users) GetFragment()(*string) { - return m.fragment -} -// GetMatches gets the matches property value. The matches property -// returns a []Users_matchesable when successful -func (m *Users) GetMatches()([]Users_matchesable) { - return m.matches -} -// GetObjectType gets the object_type property value. The object_type property -// returns a *string when successful -func (m *Users) GetObjectType()(*string) { - return m.object_type +// GetPrimary gets the primary property value. Whether this email address is the primary address. +// returns a *bool when successful +func (m *Users) GetPrimary()(*bool) { + return m.primary } -// GetObjectUrl gets the object_url property value. The object_url property +// GetTypeEscaped gets the type property value. The type of email address. // returns a *string when successful -func (m *Users) GetObjectUrl()(*string) { - return m.object_url +func (m *Users) GetTypeEscaped()(*string) { + return m.typeEscaped } -// GetProperty gets the property property value. The property property +// GetValue gets the value property value. The email address. // returns a *string when successful -func (m *Users) GetProperty()(*string) { - return m.property +func (m *Users) GetValue()(*string) { + return m.value } // Serialize serializes information the current object func (m *Users) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { { - err := writer.WriteStringValue("fragment", m.GetFragment()) - if err != nil { - return err - } - } - if m.GetMatches() != nil { - cast := make([]i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, len(m.GetMatches())) - for i, v := range m.GetMatches() { - if v != nil { - cast[i] = v.(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable) - } - } - err := writer.WriteCollectionOfObjectValues("matches", cast) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("object_type", m.GetObjectType()) + err := writer.WriteBoolValue("primary", m.GetPrimary()) if err != nil { return err } } { - err := writer.WriteStringValue("object_url", m.GetObjectUrl()) + err := writer.WriteStringValue("type", m.GetTypeEscaped()) if err != nil { return err } } { - err := writer.WriteStringValue("property", m.GetProperty()) + err := writer.WriteStringValue("value", m.GetValue()) if err != nil { return err } @@ -172,37 +114,25 @@ func (m *Users) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c4 func (m *Users) SetAdditionalData(value map[string]any)() { m.additionalData = value } -// SetFragment sets the fragment property value. The fragment property -func (m *Users) SetFragment(value *string)() { - m.fragment = value -} -// SetMatches sets the matches property value. The matches property -func (m *Users) SetMatches(value []Users_matchesable)() { - m.matches = value -} -// SetObjectType sets the object_type property value. The object_type property -func (m *Users) SetObjectType(value *string)() { - m.object_type = value +// SetPrimary sets the primary property value. Whether this email address is the primary address. +func (m *Users) SetPrimary(value *bool)() { + m.primary = value } -// SetObjectUrl sets the object_url property value. The object_url property -func (m *Users) SetObjectUrl(value *string)() { - m.object_url = value +// SetTypeEscaped sets the type property value. The type of email address. +func (m *Users) SetTypeEscaped(value *string)() { + m.typeEscaped = value } -// SetProperty sets the property property value. The property property -func (m *Users) SetProperty(value *string)() { - m.property = value +// SetValue sets the value property value. The email address. +func (m *Users) SetValue(value *string)() { + m.value = value } type Usersable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetFragment()(*string) - GetMatches()([]Users_matchesable) - GetObjectType()(*string) - GetObjectUrl()(*string) - GetProperty()(*string) - SetFragment(value *string)() - SetMatches(value []Users_matchesable)() - SetObjectType(value *string)() - SetObjectUrl(value *string)() - SetProperty(value *string)() + GetPrimary()(*bool) + GetTypeEscaped()(*string) + GetValue()(*string) + SetPrimary(value *bool)() + SetTypeEscaped(value *string)() + SetValue(value *string)() } diff --git a/pkg/github/models/users_escaped_matches.go b/pkg/github/models/users_escaped_matches.go deleted file mode 100644 index 01a8d51e..00000000 --- a/pkg/github/models/users_escaped_matches.go +++ /dev/null @@ -1,115 +0,0 @@ -package models - -import ( - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization" -) - -type Users_matches struct { - // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - additionalData map[string]any - // The indices property - indices []int32 - // The text property - text *string -} -// NewUsers_matches instantiates a new Users_matches and sets the default values. -func NewUsers_matches()(*Users_matches) { - m := &Users_matches{ - } - m.SetAdditionalData(make(map[string]any)) - return m -} -// CreateUsers_matchesFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value -// returns a Parsable when successful -func CreateUsers_matchesFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { - return NewUsers_matches(), nil -} -// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -// returns a map[string]any when successful -func (m *Users_matches) GetAdditionalData()(map[string]any) { - return m.additionalData -} -// GetFieldDeserializers the deserialization information for the current model -// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful -func (m *Users_matches) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { - res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) - res["indices"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetCollectionOfPrimitiveValues("int32") - if err != nil { - return err - } - if val != nil { - res := make([]int32, len(val)) - for i, v := range val { - if v != nil { - res[i] = *(v.(*int32)) - } - } - m.SetIndices(res) - } - return nil - } - res["text"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetStringValue() - if err != nil { - return err - } - if val != nil { - m.SetText(val) - } - return nil - } - return res -} -// GetIndices gets the indices property value. The indices property -// returns a []int32 when successful -func (m *Users_matches) GetIndices()([]int32) { - return m.indices -} -// GetText gets the text property value. The text property -// returns a *string when successful -func (m *Users_matches) GetText()(*string) { - return m.text -} -// Serialize serializes information the current object -func (m *Users_matches) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { - if m.GetIndices() != nil { - err := writer.WriteCollectionOfInt32Values("indices", m.GetIndices()) - if err != nil { - return err - } - } - { - err := writer.WriteStringValue("text", m.GetText()) - if err != nil { - return err - } - } - { - err := writer.WriteAdditionalData(m.GetAdditionalData()) - if err != nil { - return err - } - } - return nil -} -// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -func (m *Users_matches) SetAdditionalData(value map[string]any)() { - m.additionalData = value -} -// SetIndices sets the indices property value. The indices property -func (m *Users_matches) SetIndices(value []int32)() { - m.indices = value -} -// SetText sets the text property value. The text property -func (m *Users_matches) SetText(value *string)() { - m.text = value -} -type Users_matchesable interface { - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder - i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable - GetIndices()([]int32) - GetText()(*string) - SetIndices(value []int32)() - SetText(value *string)() -} diff --git a/pkg/github/orgs/item/dependabot/alerts/get_sort_query_parameter_type.go b/pkg/github/orgs/item/dependabot/alerts/get_sort_query_parameter_type.go index 719c5fb3..ecaaa7e4 100644 --- a/pkg/github/orgs/item/dependabot/alerts/get_sort_query_parameter_type.go +++ b/pkg/github/orgs/item/dependabot/alerts/get_sort_query_parameter_type.go @@ -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 @@ -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 } diff --git a/pkg/github/orgs/item_dependabot_alerts_request_builder.go b/pkg/github/orgs/item_dependabot_alerts_request_builder.go index 19cb9cce..55d590b6 100644 --- a/pkg/github/orgs/item_dependabot_alerts_request_builder.go +++ b/pkg/github/orgs/item_dependabot_alerts_request_builder.go @@ -33,7 +33,7 @@ type ItemDependabotAlertsRequestBuilderGetQueryParameters struct { Scope *i2a9b242c816cd3407964bab8573864203d494f3b0754df96c1843fd975098c4a.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 *i2a9b242c816cd3407964bab8573864203d494f3b0754df96c1843fd975098c4a.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"` diff --git a/pkg/github/orgs/item_memberships_with_username_item_request_builder.go b/pkg/github/orgs/item_memberships_with_username_item_request_builder.go index 25278cd3..309212bf 100644 --- a/pkg/github/orgs/item_memberships_with_username_item_request_builder.go +++ b/pkg/github/orgs/item_memberships_with_username_item_request_builder.go @@ -69,7 +69,7 @@ func (m *ItemMembershipsWithUsernameItemRequestBuilder) Get(ctx context.Context, } return res.(ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.OrgMembershipable), nil } -// Put only authenticated organization owners can add a member to the organization or update the member's role.* If the authenticated user is _adding_ a member to the organization, the invited user will receive an email inviting them to the organization. The user's [membership status](https://docs.github.com/enterprise-server@3.14/rest/orgs/members#get-organization-membership-for-a-user) will be `pending` until they accept the invitation. * Authenticated users can _update_ a user's membership by passing the `role` parameter. If the authenticated user changes a member's role to `admin`, the affected user will receive an email notifying them that they've been made an organization owner. If the authenticated user changes an owner's role to `member`, no email will be sent.**Rate limits**To prevent abuse, organization owners are limited to creating 50 organization invitations for an organization within a 24 hour period. If the organization is more than one month old or on a paid plan, the limit is 500 invitations per 24 hour period. +// Put only authenticated organization owners can add a member to the organization or update the member's role. If the authenticated user is _adding_ a member to the organization, the invited user will receive an email inviting them to the organization. The user's [membership status](https://docs.github.com/enterprise-server@3.14/rest/orgs/members#get-organization-membership-for-a-user) will be `pending` until they accept the invitation. Authenticated users can _update_ a user's membership by passing the `role` parameter. If the authenticated user changes a member's role to `admin`, the affected user will receive an email notifying them that they've been made an organization owner. If the authenticated user changes an owner's role to `member`, no email will be sent. The same rate limits as set on the appliance are applied to this endpoint. Most commonly, you will hit the secondary rate limit (if configured) due to CPU usage. // returns a OrgMembershipable when successful // returns a BasicError error when the service returns a 403 status code // returns a ValidationError error when the service returns a 422 status code @@ -110,7 +110,7 @@ func (m *ItemMembershipsWithUsernameItemRequestBuilder) ToGetRequestInformation( requestInfo.Headers.TryAdd("Accept", "application/json") return requestInfo, nil } -// ToPutRequestInformation only authenticated organization owners can add a member to the organization or update the member's role.* If the authenticated user is _adding_ a member to the organization, the invited user will receive an email inviting them to the organization. The user's [membership status](https://docs.github.com/enterprise-server@3.14/rest/orgs/members#get-organization-membership-for-a-user) will be `pending` until they accept the invitation. * Authenticated users can _update_ a user's membership by passing the `role` parameter. If the authenticated user changes a member's role to `admin`, the affected user will receive an email notifying them that they've been made an organization owner. If the authenticated user changes an owner's role to `member`, no email will be sent.**Rate limits**To prevent abuse, organization owners are limited to creating 50 organization invitations for an organization within a 24 hour period. If the organization is more than one month old or on a paid plan, the limit is 500 invitations per 24 hour period. +// ToPutRequestInformation only authenticated organization owners can add a member to the organization or update the member's role. If the authenticated user is _adding_ a member to the organization, the invited user will receive an email inviting them to the organization. The user's [membership status](https://docs.github.com/enterprise-server@3.14/rest/orgs/members#get-organization-membership-for-a-user) will be `pending` until they accept the invitation. Authenticated users can _update_ a user's membership by passing the `role` parameter. If the authenticated user changes a member's role to `admin`, the affected user will receive an email notifying them that they've been made an organization owner. If the authenticated user changes an owner's role to `member`, no email will be sent. The same rate limits as set on the appliance are applied to this endpoint. Most commonly, you will hit the secondary rate limit (if configured) due to CPU usage. // returns a *RequestInformation when successful func (m *ItemMembershipsWithUsernameItemRequestBuilder) ToPutRequestInformation(ctx context.Context, body ItemMembershipsItemWithUsernamePutRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/pkg/github/repos/item/item/dependabot/alerts/get_sort_query_parameter_type.go b/pkg/github/repos/item/item/dependabot/alerts/get_sort_query_parameter_type.go index 719c5fb3..ecaaa7e4 100644 --- a/pkg/github/repos/item/item/dependabot/alerts/get_sort_query_parameter_type.go +++ b/pkg/github/repos/item/item/dependabot/alerts/get_sort_query_parameter_type.go @@ -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 @@ -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 } diff --git a/pkg/github/repos/item_item_automated_security_fixes_request_builder.go b/pkg/github/repos/item_item_automated_security_fixes_request_builder.go index 382d2a26..c16bb9b7 100644 --- a/pkg/github/repos/item_item_automated_security_fixes_request_builder.go +++ b/pkg/github/repos/item_item_automated_security_fixes_request_builder.go @@ -23,11 +23,11 @@ func NewItemItemAutomatedSecurityFixesRequestBuilder(rawUrl string, requestAdapt urlParams["request-raw-url"] = rawUrl return NewItemItemAutomatedSecurityFixesRequestBuilderInternal(urlParams, requestAdapter) } -// Get shows whether automated security fixes are enabled, disabled or paused for a repository. The authenticated user must have admin read access to the repository. For more information, see "[Configuring automated security fixes](https://docs.github.com/enterprise-server@3.14/articles/configuring-automated-security-fixes)". +// Get shows whether Dependabot security updates are enabled, disabled or paused for a repository. The authenticated user must have admin read access to the repository. For more information, see "[Configuring Dependabot security updates](https://docs.github.com/enterprise-server@3.14/articles/configuring-automated-security-fixes)". // returns a CheckAutomatedSecurityFixesable when successful // [API method documentation] // -// [API method documentation]: https://docs.github.com/enterprise-server@3.14/rest/repos/repos#check-if-automated-security-fixes-are-enabled-for-a-repository +// [API method documentation]: https://docs.github.com/enterprise-server@3.14/rest/repos/repos#check-if-dependabot-security-updates-are-enabled-for-a-repository func (m *ItemItemAutomatedSecurityFixesRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.CheckAutomatedSecurityFixesable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil { @@ -42,7 +42,7 @@ func (m *ItemItemAutomatedSecurityFixesRequestBuilder) Get(ctx context.Context, } return res.(ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.CheckAutomatedSecurityFixesable), nil } -// ToGetRequestInformation shows whether automated security fixes are enabled, disabled or paused for a repository. The authenticated user must have admin read access to the repository. For more information, see "[Configuring automated security fixes](https://docs.github.com/enterprise-server@3.14/articles/configuring-automated-security-fixes)". +// ToGetRequestInformation shows whether Dependabot security updates are enabled, disabled or paused for a repository. The authenticated user must have admin read access to the repository. For more information, see "[Configuring Dependabot security updates](https://docs.github.com/enterprise-server@3.14/articles/configuring-automated-security-fixes)". // returns a *RequestInformation when successful func (m *ItemItemAutomatedSecurityFixesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/pkg/github/repos/item_item_dependabot_alerts_request_builder.go b/pkg/github/repos/item_item_dependabot_alerts_request_builder.go index b66f2873..7b10967b 100644 --- a/pkg/github/repos/item_item_dependabot_alerts_request_builder.go +++ b/pkg/github/repos/item_item_dependabot_alerts_request_builder.go @@ -14,33 +14,19 @@ type ItemItemDependabotAlertsRequestBuilder struct { } // ItemItemDependabotAlertsRequestBuilderGetQueryParameters oAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. type ItemItemDependabotAlertsRequestBuilderGetQueryParameters struct { - // A cursor, as given in the [Link header](https://docs.github.com/enterprise-server@3.14/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.14/rest/using-the-rest-api/using-pagination-in-the-rest-api)." - After *string `uriparametername:"after"` - // A cursor, as given in the [Link header](https://docs.github.com/enterprise-server@3.14/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.14/rest/using-the-rest-api/using-pagination-in-the-rest-api)." - Before *string `uriparametername:"before"` // The direction to sort the results by. Direction *i8393e6fbe49565baf8cec2bd146fda3d83f1a474d09b264e9b4a52c3a16b03f1.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"` - // **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. - Last *int32 `uriparametername:"last"` // A comma-separated list of full manifest paths. If specified, only alerts for these manifests will be returned. Manifest *string `uriparametername:"manifest"` // A comma-separated list of package names. If specified, only alerts for these packages will be returned. Package *string `uriparametername:"package"` - // **Closing down notice**. Page number of the results to fetch. Use cursor-based pagination with `before` or `after` instead. - // Deprecated: - Page *int32 `uriparametername:"page"` - // The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.14/rest/using-the-rest-api/using-pagination-in-the-rest-api)." - // Deprecated: - Per_page *int32 `uriparametername:"per_page"` // The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. Scope *i8393e6fbe49565baf8cec2bd146fda3d83f1a474d09b264e9b4a52c3a16b03f1.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 *i8393e6fbe49565baf8cec2bd146fda3d83f1a474d09b264e9b4a52c3a16b03f1.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"` @@ -58,7 +44,7 @@ func (m *ItemItemDependabotAlertsRequestBuilder) ByAlert_number(alert_number int // NewItemItemDependabotAlertsRequestBuilderInternal instantiates a new ItemItemDependabotAlertsRequestBuilder and sets the default values. func NewItemItemDependabotAlertsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemDependabotAlertsRequestBuilder) { m := &ItemItemDependabotAlertsRequestBuilder{ - BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/dependabot/alerts{?after*,before*,direction*,ecosystem*,first*,last*,manifest*,package*,page*,per_page*,scope*,severity*,sort*,state*}", pathParameters), + BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/dependabot/alerts{?direction*,ecosystem*,manifest*,package*,scope*,severity*,sort*,state*}", pathParameters), } return m } diff --git a/pkg/github/repos/item_item_topics_put_request_body.go b/pkg/github/repos/item_item_topics_put_request_body.go index 7d6c7c68..cc5184f1 100644 --- a/pkg/github/repos/item_item_topics_put_request_body.go +++ b/pkg/github/repos/item_item_topics_put_request_body.go @@ -7,7 +7,7 @@ import ( type ItemItemTopicsPutRequestBody struct { // Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. additionalData map[string]any - // An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` cannot contain uppercase letters. + // An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` will be saved as lowercase. names []string } // NewItemItemTopicsPutRequestBody instantiates a new ItemItemTopicsPutRequestBody and sets the default values. @@ -49,7 +49,7 @@ func (m *ItemItemTopicsPutRequestBody) GetFieldDeserializers()(map[string]func(i } return res } -// GetNames gets the names property value. An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` cannot contain uppercase letters. +// GetNames gets the names property value. An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` will be saved as lowercase. // returns a []string when successful func (m *ItemItemTopicsPutRequestBody) GetNames()([]string) { return m.names @@ -74,7 +74,7 @@ func (m *ItemItemTopicsPutRequestBody) Serialize(writer i878a80d2330e89d26896388 func (m *ItemItemTopicsPutRequestBody) SetAdditionalData(value map[string]any)() { m.additionalData = value } -// SetNames sets the names property value. An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` cannot contain uppercase letters. +// SetNames sets the names property value. An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` will be saved as lowercase. func (m *ItemItemTopicsPutRequestBody) SetNames(value []string)() { m.names = value } diff --git a/pkg/github/user/with_account_escaped_item_request_builder.go b/pkg/github/user/with_account_escaped_item_request_builder.go index 312d8a6e..ce02ae26 100644 --- a/pkg/github/user/with_account_escaped_item_request_builder.go +++ b/pkg/github/user/with_account_escaped_item_request_builder.go @@ -113,7 +113,7 @@ func NewWithAccount_ItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7d urlParams["request-raw-url"] = rawUrl return NewWithAccount_ItemRequestBuilderInternal(urlParams, requestAdapter) } -// Get provides publicly available information about someone with a GitHub account. This method takes their durable user `ID` instead of their `login`, which can change over time.The `email` key in the following response is the publicly visible email address from your GitHub Enterprise Server [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub Enterprise Server. For more information, see [Authentication](https://docs.github.com/enterprise-server@3.14/rest/guides/getting-started-with-the-rest-api#authentication).The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see "[Emails API](https://docs.github.com/enterprise-server@3.14/rest/users/emails)". +// Get provides publicly available information about someone with a GitHub account. This method takes their durable user `ID` instead of their `login`, which can change over time.The `email` key in the following response is the publicly visible email address from your GitHub Enterprise Server [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be public which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub Enterprise Server. For more information, see [Authentication](https://docs.github.com/enterprise-server@3.14/rest/guides/getting-started-with-the-rest-api#authentication).The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see [Emails API](https://docs.github.com/enterprise-server@3.14/rest/users/emails). // returns a WithAccount_GetResponseable when successful // returns a BasicError error when the service returns a 404 status code // [API method documentation] @@ -136,7 +136,7 @@ func (m *WithAccount_ItemRequestBuilder) Get(ctx context.Context, requestConfigu } return res.(WithAccount_GetResponseable), nil } -// ToGetRequestInformation provides publicly available information about someone with a GitHub account. This method takes their durable user `ID` instead of their `login`, which can change over time.The `email` key in the following response is the publicly visible email address from your GitHub Enterprise Server [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub Enterprise Server. For more information, see [Authentication](https://docs.github.com/enterprise-server@3.14/rest/guides/getting-started-with-the-rest-api#authentication).The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see "[Emails API](https://docs.github.com/enterprise-server@3.14/rest/users/emails)". +// ToGetRequestInformation provides publicly available information about someone with a GitHub account. This method takes their durable user `ID` instead of their `login`, which can change over time.The `email` key in the following response is the publicly visible email address from your GitHub Enterprise Server [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be public which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub Enterprise Server. For more information, see [Authentication](https://docs.github.com/enterprise-server@3.14/rest/guides/getting-started-with-the-rest-api#authentication).The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see [Emails API](https://docs.github.com/enterprise-server@3.14/rest/users/emails). // returns a *RequestInformation when successful func (m *WithAccount_ItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/pkg/github/users/with_username_item_request_builder.go b/pkg/github/users/with_username_item_request_builder.go index 8202632f..2f397aad 100644 --- a/pkg/github/users/with_username_item_request_builder.go +++ b/pkg/github/users/with_username_item_request_builder.go @@ -133,7 +133,7 @@ func (m *WithUsernameItemRequestBuilder) Followers()(*ItemFollowersRequestBuilde func (m *WithUsernameItemRequestBuilder) Following()(*ItemFollowingRequestBuilder) { return NewItemFollowingRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// Get provides publicly available information about someone with a GitHub account.The `email` key in the following response is the publicly visible email address from your GitHub Enterprise Server [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub Enterprise Server. For more information, see [Authentication](https://docs.github.com/enterprise-server@3.14/rest/guides/getting-started-with-the-rest-api#authentication).The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see "[Emails API](https://docs.github.com/enterprise-server@3.14/rest/users/emails)". +// Get provides publicly available information about someone with a GitHub account.The `email` key in the following response is the publicly visible email address from your GitHub Enterprise Server [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be public which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub Enterprise Server. For more information, see [Authentication](https://docs.github.com/enterprise-server@3.14/rest/guides/getting-started-with-the-rest-api#authentication).The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see [Emails API](https://docs.github.com/enterprise-server@3.14/rest/users/emails). // returns a WithUsernameGetResponseable when successful // returns a BasicError error when the service returns a 404 status code // [API method documentation] @@ -236,7 +236,7 @@ func (m *WithUsernameItemRequestBuilder) Subscriptions()(*ItemSubscriptionsReque func (m *WithUsernameItemRequestBuilder) Suspended()(*ItemSuspendedRequestBuilder) { return NewItemSuspendedRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation provides publicly available information about someone with a GitHub account.The `email` key in the following response is the publicly visible email address from your GitHub Enterprise Server [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub Enterprise Server. For more information, see [Authentication](https://docs.github.com/enterprise-server@3.14/rest/guides/getting-started-with-the-rest-api#authentication).The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see "[Emails API](https://docs.github.com/enterprise-server@3.14/rest/users/emails)". +// ToGetRequestInformation provides publicly available information about someone with a GitHub account.The `email` key in the following response is the publicly visible email address from your GitHub Enterprise Server [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be public which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub Enterprise Server. For more information, see [Authentication](https://docs.github.com/enterprise-server@3.14/rest/guides/getting-started-with-the-rest-api#authentication).The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see [Emails API](https://docs.github.com/enterprise-server@3.14/rest/users/emails). // returns a *RequestInformation when successful func (m *WithUsernameItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)