Skip to content

Commit

Permalink
FEAT:| Added/Updated [NewRepositoryRuleCodeScanning, CreateRepository…
Browse files Browse the repository at this point in the history
…RuleCodeScanningFromDiscriminatorValue, NewRepositoryRuleCodeScanning_parameters, CreateRepositoryRuleCodeScanning_parametersFromDiscriminatorValue, ParseRepositoryRuleCodeScanning_type, SerializeRepositoryRuleCodeScanning_type, NewRepositoryRuleParamsCodeScanningTool, CreateRepositoryRuleParamsCodeScanningToolFromDiscriminatorValue, ParseRepositoryRuleParamsCodeScanningTool_alerts_threshold, SerializeRepositoryRuleParamsCodeScanningTool_alerts_threshold, ParseRepositoryRuleParamsCodeScanningTool_security_alerts_threshold, SerializeRepositoryRuleParamsCodeScanningTool_security_alerts_threshold, repositories]| Removed [repositories] (#71)

* New updates to generated code

* New updates to generated code

---------

Co-authored-by: Octokit Bot <octokitbot@martynus.net>
  • Loading branch information
octokitbot and Octokit Bot committed May 3, 2024
1 parent 24cd5e4 commit 200e6fd
Show file tree
Hide file tree
Showing 11 changed files with 619 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pkg/github/kiota-lock.json
@@ -1,8 +1,8 @@
{
"descriptionHash": "132E3F9E4F0395E34715D32BF94EEF2B050509AD63226E4DF5BD5F5F1736A911B7E5624E16BFDB1882E23EC1C7A44D2D8BB70A71CFEE2A2B204B44FB02ECC763",
"descriptionHash": "76CCA426AA01AC716EF1C5B10504B6CAD0B064050C8EF6AE2AA248791B78C0B3E24F5B5446134E560CE2F76F908A8692BD04B80CF9832EECDBC3CAC33F992D27",
"descriptionLocation": "../../../source-generator/schemas/downloaded.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.14.0-preview.202404250001",
"kiotaVersion": "1.14.0",
"clientClassName": "ApiClient",
"clientNamespaceName": "github.com/octokit/go-sdk/pkg/github/",
"language": "Go",
Expand Down
29 changes: 29 additions & 0 deletions pkg/github/models/private_user.go
Expand Up @@ -57,6 +57,8 @@ type PrivateUser struct {
name *string
// The node_id property
node_id *string
// The notification_email property
notification_email *string
// The organizations_url property
organizations_url *string
// The owned_private_repos property
Expand Down Expand Up @@ -405,6 +407,16 @@ func (m *PrivateUser) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26
}
return nil
}
res["notification_email"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetNotificationEmail(val)
}
return nil
}
res["organizations_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
Expand Down Expand Up @@ -657,6 +669,11 @@ func (m *PrivateUser) GetName()(*string) {
func (m *PrivateUser) GetNodeId()(*string) {
return m.node_id
}
// GetNotificationEmail gets the notification_email property value. The notification_email property
// returns a *string when successful
func (m *PrivateUser) GetNotificationEmail()(*string) {
return m.notification_email
}
// GetOrganizationsUrl gets the organizations_url property value. The organizations_url property
// returns a *string when successful
func (m *PrivateUser) GetOrganizationsUrl()(*string) {
Expand Down Expand Up @@ -893,6 +910,12 @@ func (m *PrivateUser) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6
return err
}
}
{
err := writer.WriteStringValue("notification_email", m.GetNotificationEmail())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("organizations_url", m.GetOrganizationsUrl())
if err != nil {
Expand Down Expand Up @@ -1109,6 +1132,10 @@ func (m *PrivateUser) SetName(value *string)() {
func (m *PrivateUser) SetNodeId(value *string)() {
m.node_id = value
}
// SetNotificationEmail sets the notification_email property value. The notification_email property
func (m *PrivateUser) SetNotificationEmail(value *string)() {
m.notification_email = value
}
// SetOrganizationsUrl sets the organizations_url property value. The organizations_url property
func (m *PrivateUser) SetOrganizationsUrl(value *string)() {
m.organizations_url = value
Expand Down Expand Up @@ -1208,6 +1235,7 @@ type PrivateUserable interface {
GetLogin()(*string)
GetName()(*string)
GetNodeId()(*string)
GetNotificationEmail()(*string)
GetOrganizationsUrl()(*string)
GetOwnedPrivateRepos()(*int32)
GetPlan()(PrivateUser_planable)
Expand Down Expand Up @@ -1250,6 +1278,7 @@ type PrivateUserable interface {
SetLogin(value *string)()
SetName(value *string)()
SetNodeId(value *string)()
SetNotificationEmail(value *string)()
SetOrganizationsUrl(value *string)()
SetOwnedPrivateRepos(value *int32)()
SetPlan(value PrivateUser_planable)()
Expand Down
29 changes: 29 additions & 0 deletions pkg/github/models/public_user.go
Expand Up @@ -51,6 +51,8 @@ type PublicUser struct {
name *string
// The node_id property
node_id *string
// The notification_email property
notification_email *string
// The organizations_url property
organizations_url *string
// The owned_private_repos property
Expand Down Expand Up @@ -366,6 +368,16 @@ func (m *PublicUser) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268
}
return nil
}
res["notification_email"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
m.SetNotificationEmail(val)
}
return nil
}
res["organizations_url"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
Expand Down Expand Up @@ -603,6 +615,11 @@ func (m *PublicUser) GetName()(*string) {
func (m *PublicUser) GetNodeId()(*string) {
return m.node_id
}
// GetNotificationEmail gets the notification_email property value. The notification_email property
// returns a *string when successful
func (m *PublicUser) GetNotificationEmail()(*string) {
return m.notification_email
}
// GetOrganizationsUrl gets the organizations_url property value. The organizations_url property
// returns a *string when successful
func (m *PublicUser) GetOrganizationsUrl()(*string) {
Expand Down Expand Up @@ -822,6 +839,12 @@ func (m *PublicUser) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c
return err
}
}
{
err := writer.WriteStringValue("notification_email", m.GetNotificationEmail())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("organizations_url", m.GetOrganizationsUrl())
if err != nil {
Expand Down Expand Up @@ -1014,6 +1037,10 @@ func (m *PublicUser) SetName(value *string)() {
func (m *PublicUser) SetNodeId(value *string)() {
m.node_id = value
}
// SetNotificationEmail sets the notification_email property value. The notification_email property
func (m *PublicUser) SetNotificationEmail(value *string)() {
m.notification_email = value
}
// SetOrganizationsUrl sets the organizations_url property value. The organizations_url property
func (m *PublicUser) SetOrganizationsUrl(value *string)() {
m.organizations_url = value
Expand Down Expand Up @@ -1106,6 +1133,7 @@ type PublicUserable interface {
GetLogin()(*string)
GetName()(*string)
GetNodeId()(*string)
GetNotificationEmail()(*string)
GetOrganizationsUrl()(*string)
GetOwnedPrivateRepos()(*int32)
GetPlan()(PublicUser_planable)
Expand Down Expand Up @@ -1145,6 +1173,7 @@ type PublicUserable interface {
SetLogin(value *string)()
SetName(value *string)()
SetNodeId(value *string)()
SetNotificationEmail(value *string)()
SetOrganizationsUrl(value *string)()
SetOwnedPrivateRepos(value *int32)()
SetPlan(value PublicUser_planable)()
Expand Down

0 comments on commit 200e6fd

Please sign in to comment.