From 73a28a0f2efd5b33b772d6a3031cf01fbd3a9c57 Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Mon, 1 Jul 2024 17:20:47 -0500 Subject: [PATCH] New updates to generated code (#82) Co-authored-by: Octokit Bot --- pkg/github/kiota-lock.json | 2 +- .../models/branch_restriction_policy_users.go | 16 ++++++++-------- pkg/github/models/collaborator.go | 16 ++++++++-------- pkg/github/models/nullable_collaborator.go | 16 ++++++++-------- pkg/github/models/nullable_simple_user.go | 16 ++++++++-------- pkg/github/models/pull_request_base_user.go | 16 ++++++++-------- pkg/github/models/pull_request_head_user.go | 16 ++++++++-------- pkg/github/models/simple_user.go | 16 ++++++++-------- 8 files changed, 57 insertions(+), 57 deletions(-) diff --git a/pkg/github/kiota-lock.json b/pkg/github/kiota-lock.json index 1fbbc75a..5da22799 100644 --- a/pkg/github/kiota-lock.json +++ b/pkg/github/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "E4E2AABED4BD59401902818C72E41CA2F0687B3623E90C31913C14D9C4EF622958C3E7803B45FFDD22856FE8BE14B2FB3FB3AAF72B4F479A9809E2EEF45DD55C", + "descriptionHash": "8691117B208EB973D20A4D4F03E923AB15347D853FB1C5FC0FD54353368623BB92E4CC56257CF8925086502E16C6A6D839EE9233C387A0C6952A47C16F6AFCB7", "descriptionLocation": "../../../../../schemas/api.github.com.json", "lockFileVersion": "1.0.0", "kiotaVersion": "1.14.0", diff --git a/pkg/github/models/branch_restriction_policy_users.go b/pkg/github/models/branch_restriction_policy_users.go index b7b895b7..96629f5b 100644 --- a/pkg/github/models/branch_restriction_policy_users.go +++ b/pkg/github/models/branch_restriction_policy_users.go @@ -22,7 +22,7 @@ type BranchRestrictionPolicy_users struct { // The html_url property html_url *string // The id property - id *int32 + id *int64 // The login property login *string // The node_id property @@ -146,7 +146,7 @@ func (m *BranchRestrictionPolicy_users) GetFieldDeserializers()(map[string]func( return nil } res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() + val, err := n.GetInt64Value() if err != nil { return err } @@ -283,8 +283,8 @@ func (m *BranchRestrictionPolicy_users) GetHtmlUrl()(*string) { return m.html_url } // GetId gets the id property value. The id property -// returns a *int32 when successful -func (m *BranchRestrictionPolicy_users) GetId()(*int32) { +// returns a *int64 when successful +func (m *BranchRestrictionPolicy_users) GetId()(*int64) { return m.id } // GetLogin gets the login property value. The login property @@ -382,7 +382,7 @@ func (m *BranchRestrictionPolicy_users) Serialize(writer i878a80d2330e89d2689638 } } { - err := writer.WriteInt32Value("id", m.GetId()) + err := writer.WriteInt64Value("id", m.GetId()) if err != nil { return err } @@ -488,7 +488,7 @@ func (m *BranchRestrictionPolicy_users) SetHtmlUrl(value *string)() { m.html_url = value } // SetId sets the id property value. The id property -func (m *BranchRestrictionPolicy_users) SetId(value *int32)() { +func (m *BranchRestrictionPolicy_users) SetId(value *int64)() { m.id = value } // SetLogin sets the login property value. The login property @@ -541,7 +541,7 @@ type BranchRestrictionPolicy_usersable interface { GetGistsUrl()(*string) GetGravatarId()(*string) GetHtmlUrl()(*string) - GetId()(*int32) + GetId()(*int64) GetLogin()(*string) GetNodeId()(*string) GetOrganizationsUrl()(*string) @@ -559,7 +559,7 @@ type BranchRestrictionPolicy_usersable interface { SetGistsUrl(value *string)() SetGravatarId(value *string)() SetHtmlUrl(value *string)() - SetId(value *int32)() + SetId(value *int64)() SetLogin(value *string)() SetNodeId(value *string)() SetOrganizationsUrl(value *string)() diff --git a/pkg/github/models/collaborator.go b/pkg/github/models/collaborator.go index 9b780422..05114685 100644 --- a/pkg/github/models/collaborator.go +++ b/pkg/github/models/collaborator.go @@ -25,7 +25,7 @@ type Collaborator struct { // The html_url property html_url *string // The id property - id *int32 + id *int64 // The login property login *string // The name property @@ -170,7 +170,7 @@ func (m *Collaborator) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2 return nil } res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() + val, err := n.GetInt64Value() if err != nil { return err } @@ -337,8 +337,8 @@ func (m *Collaborator) GetHtmlUrl()(*string) { return m.html_url } // GetId gets the id property value. The id property -// returns a *int32 when successful -func (m *Collaborator) GetId()(*int32) { +// returns a *int64 when successful +func (m *Collaborator) GetId()(*int64) { return m.id } // GetLogin gets the login property value. The login property @@ -457,7 +457,7 @@ func (m *Collaborator) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e } } { - err := writer.WriteInt32Value("id", m.GetId()) + err := writer.WriteInt64Value("id", m.GetId()) if err != nil { return err } @@ -585,7 +585,7 @@ func (m *Collaborator) SetHtmlUrl(value *string)() { m.html_url = value } // SetId sets the id property value. The id property -func (m *Collaborator) SetId(value *int32)() { +func (m *Collaborator) SetId(value *int64)() { m.id = value } // SetLogin sets the login property value. The login property @@ -651,7 +651,7 @@ type Collaboratorable interface { GetGistsUrl()(*string) GetGravatarId()(*string) GetHtmlUrl()(*string) - GetId()(*int32) + GetId()(*int64) GetLogin()(*string) GetName()(*string) GetNodeId()(*string) @@ -673,7 +673,7 @@ type Collaboratorable interface { SetGistsUrl(value *string)() SetGravatarId(value *string)() SetHtmlUrl(value *string)() - SetId(value *int32)() + SetId(value *int64)() SetLogin(value *string)() SetName(value *string)() SetNodeId(value *string)() diff --git a/pkg/github/models/nullable_collaborator.go b/pkg/github/models/nullable_collaborator.go index e7b5aeba..3eab0a57 100644 --- a/pkg/github/models/nullable_collaborator.go +++ b/pkg/github/models/nullable_collaborator.go @@ -25,7 +25,7 @@ type NullableCollaborator struct { // The html_url property html_url *string // The id property - id *int32 + id *int64 // The login property login *string // The name property @@ -170,7 +170,7 @@ func (m *NullableCollaborator) GetFieldDeserializers()(map[string]func(i878a80d2 return nil } res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() + val, err := n.GetInt64Value() if err != nil { return err } @@ -337,8 +337,8 @@ func (m *NullableCollaborator) GetHtmlUrl()(*string) { return m.html_url } // GetId gets the id property value. The id property -// returns a *int32 when successful -func (m *NullableCollaborator) GetId()(*int32) { +// returns a *int64 when successful +func (m *NullableCollaborator) GetId()(*int64) { return m.id } // GetLogin gets the login property value. The login property @@ -457,7 +457,7 @@ func (m *NullableCollaborator) Serialize(writer i878a80d2330e89d26896388a3f487ee } } { - err := writer.WriteInt32Value("id", m.GetId()) + err := writer.WriteInt64Value("id", m.GetId()) if err != nil { return err } @@ -585,7 +585,7 @@ func (m *NullableCollaborator) SetHtmlUrl(value *string)() { m.html_url = value } // SetId sets the id property value. The id property -func (m *NullableCollaborator) SetId(value *int32)() { +func (m *NullableCollaborator) SetId(value *int64)() { m.id = value } // SetLogin sets the login property value. The login property @@ -651,7 +651,7 @@ type NullableCollaboratorable interface { GetGistsUrl()(*string) GetGravatarId()(*string) GetHtmlUrl()(*string) - GetId()(*int32) + GetId()(*int64) GetLogin()(*string) GetName()(*string) GetNodeId()(*string) @@ -673,7 +673,7 @@ type NullableCollaboratorable interface { SetGistsUrl(value *string)() SetGravatarId(value *string)() SetHtmlUrl(value *string)() - SetId(value *int32)() + SetId(value *int64)() SetLogin(value *string)() SetName(value *string)() SetNodeId(value *string)() diff --git a/pkg/github/models/nullable_simple_user.go b/pkg/github/models/nullable_simple_user.go index 4542025e..2ccb4d3c 100644 --- a/pkg/github/models/nullable_simple_user.go +++ b/pkg/github/models/nullable_simple_user.go @@ -25,7 +25,7 @@ type NullableSimpleUser struct { // The html_url property html_url *string // The id property - id *int32 + id *int64 // The login property login *string // The name property @@ -168,7 +168,7 @@ func (m *NullableSimpleUser) GetFieldDeserializers()(map[string]func(i878a80d233 return nil } res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() + val, err := n.GetInt64Value() if err != nil { return err } @@ -325,8 +325,8 @@ func (m *NullableSimpleUser) GetHtmlUrl()(*string) { return m.html_url } // GetId gets the id property value. The id property -// returns a *int32 when successful -func (m *NullableSimpleUser) GetId()(*int32) { +// returns a *int64 when successful +func (m *NullableSimpleUser) GetId()(*int64) { return m.id } // GetLogin gets the login property value. The login property @@ -440,7 +440,7 @@ func (m *NullableSimpleUser) Serialize(writer i878a80d2330e89d26896388a3f487eef2 } } { - err := writer.WriteInt32Value("id", m.GetId()) + err := writer.WriteInt64Value("id", m.GetId()) if err != nil { return err } @@ -562,7 +562,7 @@ func (m *NullableSimpleUser) SetHtmlUrl(value *string)() { m.html_url = value } // SetId sets the id property value. The id property -func (m *NullableSimpleUser) SetId(value *int32)() { +func (m *NullableSimpleUser) SetId(value *int64)() { m.id = value } // SetLogin sets the login property value. The login property @@ -624,7 +624,7 @@ type NullableSimpleUserable interface { GetGistsUrl()(*string) GetGravatarId()(*string) GetHtmlUrl()(*string) - GetId()(*int32) + GetId()(*int64) GetLogin()(*string) GetName()(*string) GetNodeId()(*string) @@ -645,7 +645,7 @@ type NullableSimpleUserable interface { SetGistsUrl(value *string)() SetGravatarId(value *string)() SetHtmlUrl(value *string)() - SetId(value *int32)() + SetId(value *int64)() SetLogin(value *string)() SetName(value *string)() SetNodeId(value *string)() diff --git a/pkg/github/models/pull_request_base_user.go b/pkg/github/models/pull_request_base_user.go index b98fcced..dfc31c56 100644 --- a/pkg/github/models/pull_request_base_user.go +++ b/pkg/github/models/pull_request_base_user.go @@ -22,7 +22,7 @@ type PullRequest_base_user struct { // The html_url property html_url *string // The id property - id *int32 + id *int64 // The login property login *string // The node_id property @@ -146,7 +146,7 @@ func (m *PullRequest_base_user) GetFieldDeserializers()(map[string]func(i878a80d return nil } res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() + val, err := n.GetInt64Value() if err != nil { return err } @@ -283,8 +283,8 @@ func (m *PullRequest_base_user) GetHtmlUrl()(*string) { return m.html_url } // GetId gets the id property value. The id property -// returns a *int32 when successful -func (m *PullRequest_base_user) GetId()(*int32) { +// returns a *int64 when successful +func (m *PullRequest_base_user) GetId()(*int64) { return m.id } // GetLogin gets the login property value. The login property @@ -382,7 +382,7 @@ func (m *PullRequest_base_user) Serialize(writer i878a80d2330e89d26896388a3f487e } } { - err := writer.WriteInt32Value("id", m.GetId()) + err := writer.WriteInt64Value("id", m.GetId()) if err != nil { return err } @@ -488,7 +488,7 @@ func (m *PullRequest_base_user) SetHtmlUrl(value *string)() { m.html_url = value } // SetId sets the id property value. The id property -func (m *PullRequest_base_user) SetId(value *int32)() { +func (m *PullRequest_base_user) SetId(value *int64)() { m.id = value } // SetLogin sets the login property value. The login property @@ -541,7 +541,7 @@ type PullRequest_base_userable interface { GetGistsUrl()(*string) GetGravatarId()(*string) GetHtmlUrl()(*string) - GetId()(*int32) + GetId()(*int64) GetLogin()(*string) GetNodeId()(*string) GetOrganizationsUrl()(*string) @@ -559,7 +559,7 @@ type PullRequest_base_userable interface { SetGistsUrl(value *string)() SetGravatarId(value *string)() SetHtmlUrl(value *string)() - SetId(value *int32)() + SetId(value *int64)() SetLogin(value *string)() SetNodeId(value *string)() SetOrganizationsUrl(value *string)() diff --git a/pkg/github/models/pull_request_head_user.go b/pkg/github/models/pull_request_head_user.go index a21a79fb..9dc93398 100644 --- a/pkg/github/models/pull_request_head_user.go +++ b/pkg/github/models/pull_request_head_user.go @@ -22,7 +22,7 @@ type PullRequest_head_user struct { // The html_url property html_url *string // The id property - id *int32 + id *int64 // The login property login *string // The node_id property @@ -146,7 +146,7 @@ func (m *PullRequest_head_user) GetFieldDeserializers()(map[string]func(i878a80d return nil } res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() + val, err := n.GetInt64Value() if err != nil { return err } @@ -283,8 +283,8 @@ func (m *PullRequest_head_user) GetHtmlUrl()(*string) { return m.html_url } // GetId gets the id property value. The id property -// returns a *int32 when successful -func (m *PullRequest_head_user) GetId()(*int32) { +// returns a *int64 when successful +func (m *PullRequest_head_user) GetId()(*int64) { return m.id } // GetLogin gets the login property value. The login property @@ -382,7 +382,7 @@ func (m *PullRequest_head_user) Serialize(writer i878a80d2330e89d26896388a3f487e } } { - err := writer.WriteInt32Value("id", m.GetId()) + err := writer.WriteInt64Value("id", m.GetId()) if err != nil { return err } @@ -488,7 +488,7 @@ func (m *PullRequest_head_user) SetHtmlUrl(value *string)() { m.html_url = value } // SetId sets the id property value. The id property -func (m *PullRequest_head_user) SetId(value *int32)() { +func (m *PullRequest_head_user) SetId(value *int64)() { m.id = value } // SetLogin sets the login property value. The login property @@ -541,7 +541,7 @@ type PullRequest_head_userable interface { GetGistsUrl()(*string) GetGravatarId()(*string) GetHtmlUrl()(*string) - GetId()(*int32) + GetId()(*int64) GetLogin()(*string) GetNodeId()(*string) GetOrganizationsUrl()(*string) @@ -559,7 +559,7 @@ type PullRequest_head_userable interface { SetGistsUrl(value *string)() SetGravatarId(value *string)() SetHtmlUrl(value *string)() - SetId(value *int32)() + SetId(value *int64)() SetLogin(value *string)() SetNodeId(value *string)() SetOrganizationsUrl(value *string)() diff --git a/pkg/github/models/simple_user.go b/pkg/github/models/simple_user.go index 0c9a212e..d90bd0f3 100644 --- a/pkg/github/models/simple_user.go +++ b/pkg/github/models/simple_user.go @@ -25,7 +25,7 @@ type SimpleUser struct { // The html_url property html_url *string // The id property - id *int32 + id *int64 // The login property login *string // The name property @@ -168,7 +168,7 @@ func (m *SimpleUser) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268 return nil } res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() + val, err := n.GetInt64Value() if err != nil { return err } @@ -325,8 +325,8 @@ func (m *SimpleUser) GetHtmlUrl()(*string) { return m.html_url } // GetId gets the id property value. The id property -// returns a *int32 when successful -func (m *SimpleUser) GetId()(*int32) { +// returns a *int64 when successful +func (m *SimpleUser) GetId()(*int64) { return m.id } // GetLogin gets the login property value. The login property @@ -440,7 +440,7 @@ func (m *SimpleUser) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c } } { - err := writer.WriteInt32Value("id", m.GetId()) + err := writer.WriteInt64Value("id", m.GetId()) if err != nil { return err } @@ -562,7 +562,7 @@ func (m *SimpleUser) SetHtmlUrl(value *string)() { m.html_url = value } // SetId sets the id property value. The id property -func (m *SimpleUser) SetId(value *int32)() { +func (m *SimpleUser) SetId(value *int64)() { m.id = value } // SetLogin sets the login property value. The login property @@ -624,7 +624,7 @@ type SimpleUserable interface { GetGistsUrl()(*string) GetGravatarId()(*string) GetHtmlUrl()(*string) - GetId()(*int32) + GetId()(*int64) GetLogin()(*string) GetName()(*string) GetNodeId()(*string) @@ -645,7 +645,7 @@ type SimpleUserable interface { SetGistsUrl(value *string)() SetGravatarId(value *string)() SetHtmlUrl(value *string)() - SetId(value *int32)() + SetId(value *int64)() SetLogin(value *string)() SetName(value *string)() SetNodeId(value *string)()