Skip to content

Commit

Permalink
New updates to generated code (#83)
Browse files Browse the repository at this point in the history
Co-authored-by: Octokit Bot <octokitbot@martynus.net>
  • Loading branch information
octokitbot and Octokit Bot committed Jul 3, 2024
1 parent 73a28a0 commit ac172ee
Show file tree
Hide file tree
Showing 21 changed files with 153 additions and 155 deletions.
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": "8691117B208EB973D20A4D4F03E923AB15347D853FB1C5FC0FD54353368623BB92E4CC56257CF8925086502E16C6A6D839EE9233C387A0C6952A47C16F6AFCB7",
"descriptionHash": "AD108B150ECABF1201FE2A2C1C00E8353E15706330F0E30E1074B0B468533787C150464CDBC404C86BA0014CEB95E514322658FADE429D0910375BD6CE4BD409",
"descriptionLocation": "../../../../../schemas/api.github.com.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.14.0",
Expand Down
16 changes: 8 additions & 8 deletions pkg/github/models/codespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type Codespace struct {
// Details about the codespace's git repository.
git_status Codespace_git_statusable
// The id property
id *int32
id *int64
// The number of minutes of inactivity after which this codespace will be automatically stopped.
idle_timeout_minutes *int32
// Text to show user when codespace idle timeout minutes has been overriden by an organization policy
Expand Down Expand Up @@ -181,7 +181,7 @@ func (m *Codespace) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689
return nil
}
res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetInt32Value()
val, err := n.GetInt64Value()
if err != nil {
return err
}
Expand Down Expand Up @@ -454,8 +454,8 @@ func (m *Codespace) GetGitStatus()(Codespace_git_statusable) {
return m.git_status
}
// GetId gets the id property value. The id property
// returns a *int32 when successful
func (m *Codespace) GetId()(*int32) {
// returns a *int64 when successful
func (m *Codespace) GetId()(*int64) {
return m.id
}
// GetIdleTimeoutMinutes gets the idle_timeout_minutes property value. The number of minutes of inactivity after which this codespace will be automatically stopped.
Expand Down Expand Up @@ -622,7 +622,7 @@ func (m *Codespace) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c0
}
}
{
err := writer.WriteInt32Value("id", m.GetId())
err := writer.WriteInt64Value("id", m.GetId())
if err != nil {
return err
}
Expand Down Expand Up @@ -816,7 +816,7 @@ func (m *Codespace) SetGitStatus(value Codespace_git_statusable)() {
m.git_status = value
}
// SetId sets the id property value. The id property
func (m *Codespace) SetId(value *int32)() {
func (m *Codespace) SetId(value *int64)() {
m.id = value
}
// SetIdleTimeoutMinutes sets the idle_timeout_minutes property value. The number of minutes of inactivity after which this codespace will be automatically stopped.
Expand Down Expand Up @@ -928,7 +928,7 @@ type Codespaceable interface {
GetDisplayName()(*string)
GetEnvironmentId()(*string)
GetGitStatus()(Codespace_git_statusable)
GetId()(*int32)
GetId()(*int64)
GetIdleTimeoutMinutes()(*int32)
GetIdleTimeoutNotice()(*string)
GetLastKnownStopNotice()(*string)
Expand Down Expand Up @@ -960,7 +960,7 @@ type Codespaceable interface {
SetDisplayName(value *string)()
SetEnvironmentId(value *string)()
SetGitStatus(value Codespace_git_statusable)()
SetId(value *int32)()
SetId(value *int64)()
SetIdleTimeoutMinutes(value *int32)()
SetIdleTimeoutNotice(value *string)()
SetLastKnownStopNotice(value *string)()
Expand Down
16 changes: 8 additions & 8 deletions pkg/github/models/codespace_with_full_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type CodespaceWithFullRepository struct {
// Details about the codespace's git repository.
git_status CodespaceWithFullRepository_git_statusable
// The id property
id *int32
id *int64
// The number of minutes of inactivity after which this codespace will be automatically stopped.
idle_timeout_minutes *int32
// Text to show user when codespace idle timeout minutes has been overriden by an organization policy
Expand Down Expand Up @@ -179,7 +179,7 @@ func (m *CodespaceWithFullRepository) GetFieldDeserializers()(map[string]func(i8
return nil
}
res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetInt32Value()
val, err := n.GetInt64Value()
if err != nil {
return err
}
Expand Down Expand Up @@ -442,8 +442,8 @@ func (m *CodespaceWithFullRepository) GetGitStatus()(CodespaceWithFullRepository
return m.git_status
}
// GetId gets the id property value. The id property
// returns a *int32 when successful
func (m *CodespaceWithFullRepository) GetId()(*int32) {
// returns a *int64 when successful
func (m *CodespaceWithFullRepository) GetId()(*int64) {
return m.id
}
// GetIdleTimeoutMinutes gets the idle_timeout_minutes property value. The number of minutes of inactivity after which this codespace will be automatically stopped.
Expand Down Expand Up @@ -605,7 +605,7 @@ func (m *CodespaceWithFullRepository) Serialize(writer i878a80d2330e89d26896388a
}
}
{
err := writer.WriteInt32Value("id", m.GetId())
err := writer.WriteInt64Value("id", m.GetId())
if err != nil {
return err
}
Expand Down Expand Up @@ -793,7 +793,7 @@ func (m *CodespaceWithFullRepository) SetGitStatus(value CodespaceWithFullReposi
m.git_status = value
}
// SetId sets the id property value. The id property
func (m *CodespaceWithFullRepository) SetId(value *int32)() {
func (m *CodespaceWithFullRepository) SetId(value *int64)() {
m.id = value
}
// SetIdleTimeoutMinutes sets the idle_timeout_minutes property value. The number of minutes of inactivity after which this codespace will be automatically stopped.
Expand Down Expand Up @@ -901,7 +901,7 @@ type CodespaceWithFullRepositoryable interface {
GetDisplayName()(*string)
GetEnvironmentId()(*string)
GetGitStatus()(CodespaceWithFullRepository_git_statusable)
GetId()(*int32)
GetId()(*int64)
GetIdleTimeoutMinutes()(*int32)
GetIdleTimeoutNotice()(*string)
GetLastUsedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
Expand Down Expand Up @@ -932,7 +932,7 @@ type CodespaceWithFullRepositoryable interface {
SetDisplayName(value *string)()
SetEnvironmentId(value *string)()
SetGitStatus(value CodespaceWithFullRepository_git_statusable)()
SetId(value *int32)()
SetId(value *int64)()
SetIdleTimeoutMinutes(value *int32)()
SetIdleTimeoutNotice(value *string)()
SetLastUsedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
Expand Down
16 changes: 8 additions & 8 deletions pkg/github/models/enterprise_team.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type EnterpriseTeam struct {
// The html_url property
html_url *string
// The id property
id *int32
id *int64
// The members_url property
members_url *string
// The name property
Expand Down Expand Up @@ -87,7 +87,7 @@ func (m *EnterpriseTeam) GetFieldDeserializers()(map[string]func(i878a80d2330e89
return nil
}
res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetInt32Value()
val, err := n.GetInt64Value()
if err != nil {
return err
}
Expand Down Expand Up @@ -169,8 +169,8 @@ func (m *EnterpriseTeam) GetHtmlUrl()(*string) {
return m.html_url
}
// GetId gets the id property value. The id property
// returns a *int32 when successful
func (m *EnterpriseTeam) GetId()(*int32) {
// returns a *int64 when successful
func (m *EnterpriseTeam) GetId()(*int64) {
return m.id
}
// GetMembersUrl gets the members_url property value. The members_url property
Expand Down Expand Up @@ -224,7 +224,7 @@ func (m *EnterpriseTeam) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a
}
}
{
err := writer.WriteInt32Value("id", m.GetId())
err := writer.WriteInt64Value("id", m.GetId())
if err != nil {
return err
}
Expand Down Expand Up @@ -290,7 +290,7 @@ func (m *EnterpriseTeam) SetHtmlUrl(value *string)() {
m.html_url = value
}
// SetId sets the id property value. The id property
func (m *EnterpriseTeam) SetId(value *int32)() {
func (m *EnterpriseTeam) SetId(value *int64)() {
m.id = value
}
// SetMembersUrl sets the members_url property value. The members_url property
Expand Down Expand Up @@ -323,7 +323,7 @@ type EnterpriseTeamable interface {
GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
GetGroupId()(*int32)
GetHtmlUrl()(*string)
GetId()(*int32)
GetId()(*int64)
GetMembersUrl()(*string)
GetName()(*string)
GetSlug()(*string)
Expand All @@ -333,7 +333,7 @@ type EnterpriseTeamable interface {
SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
SetGroupId(value *int32)()
SetHtmlUrl(value *string)()
SetId(value *int32)()
SetId(value *int64)()
SetMembersUrl(value *string)()
SetName(value *string)()
SetSlug(value *string)()
Expand Down
16 changes: 8 additions & 8 deletions pkg/github/models/full_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ type FullRepository struct {
// The html_url property
html_url *string
// The id property
id *int32
id *int64
// The is_template property
is_template *bool
// The issue_comment_url property
Expand Down Expand Up @@ -853,7 +853,7 @@ func (m *FullRepository) GetFieldDeserializers()(map[string]func(i878a80d2330e89
return nil
}
res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetInt32Value()
val, err := n.GetInt64Value()
if err != nil {
return err
}
Expand Down Expand Up @@ -1511,8 +1511,8 @@ func (m *FullRepository) GetHtmlUrl()(*string) {
return m.html_url
}
// GetId gets the id property value. The id property
// returns a *int32 when successful
func (m *FullRepository) GetId()(*int32) {
// returns a *int64 when successful
func (m *FullRepository) GetId()(*int64) {
return m.id
}
// GetIssueCommentUrl gets the issue_comment_url property value. The issue_comment_url property
Expand Down Expand Up @@ -2075,7 +2075,7 @@ func (m *FullRepository) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a
}
}
{
err := writer.WriteInt32Value("id", m.GetId())
err := writer.WriteInt64Value("id", m.GetId())
if err != nil {
return err
}
Expand Down Expand Up @@ -2615,7 +2615,7 @@ func (m *FullRepository) SetHtmlUrl(value *string)() {
m.html_url = value
}
// SetId sets the id property value. The id property
func (m *FullRepository) SetId(value *int32)() {
func (m *FullRepository) SetId(value *int64)() {
m.id = value
}
// SetIssueCommentUrl sets the issue_comment_url property value. The issue_comment_url property
Expand Down Expand Up @@ -2888,7 +2888,7 @@ type FullRepositoryable interface {
GetHomepage()(*string)
GetHooksUrl()(*string)
GetHtmlUrl()(*string)
GetId()(*int32)
GetId()(*int64)
GetIssueCommentUrl()(*string)
GetIssueEventsUrl()(*string)
GetIssuesUrl()(*string)
Expand Down Expand Up @@ -2991,7 +2991,7 @@ type FullRepositoryable interface {
SetHomepage(value *string)()
SetHooksUrl(value *string)()
SetHtmlUrl(value *string)()
SetId(value *int32)()
SetId(value *int64)()
SetIssueCommentUrl(value *string)()
SetIssueEventsUrl(value *string)()
SetIssuesUrl(value *string)()
Expand Down
16 changes: 8 additions & 8 deletions pkg/github/models/gpg_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type GpgKey struct {
// The expires_at property
expires_at *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time
// The id property
id *int32
id *int64
// The key_id property
key_id *string
// The name property
Expand Down Expand Up @@ -173,7 +173,7 @@ func (m *GpgKey) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689638
return nil
}
res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetInt32Value()
val, err := n.GetInt64Value()
if err != nil {
return err
}
Expand Down Expand Up @@ -261,8 +261,8 @@ func (m *GpgKey) GetFieldDeserializers()(map[string]func(i878a80d2330e89d2689638
return res
}
// GetId gets the id property value. The id property
// returns a *int32 when successful
func (m *GpgKey) GetId()(*int32) {
// returns a *int64 when successful
func (m *GpgKey) GetId()(*int64) {
return m.id
}
// GetKeyId gets the key_id property value. The key_id property
Expand Down Expand Up @@ -351,7 +351,7 @@ func (m *GpgKey) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c
}
}
{
err := writer.WriteInt32Value("id", m.GetId())
err := writer.WriteInt64Value("id", m.GetId())
if err != nil {
return err
}
Expand Down Expand Up @@ -445,7 +445,7 @@ func (m *GpgKey) SetExpiresAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16
m.expires_at = value
}
// SetId sets the id property value. The id property
func (m *GpgKey) SetId(value *int32)() {
func (m *GpgKey) SetId(value *int64)() {
m.id = value
}
// SetKeyId sets the key_id property value. The key_id property
Expand Down Expand Up @@ -486,7 +486,7 @@ type GpgKeyable interface {
GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
GetEmails()([]GpgKey_emailsable)
GetExpiresAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
GetId()(*int32)
GetId()(*int64)
GetKeyId()(*string)
GetName()(*string)
GetPrimaryKeyId()(*int32)
Expand All @@ -501,7 +501,7 @@ type GpgKeyable interface {
SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
SetEmails(value []GpgKey_emailsable)()
SetExpiresAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
SetId(value *int32)()
SetId(value *int64)()
SetKeyId(value *string)()
SetName(value *string)()
SetPrimaryKeyId(value *int32)()
Expand Down
16 changes: 8 additions & 8 deletions pkg/github/models/gpg_key_subkeys.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type GpgKey_subkeys struct {
// The expires_at property
expires_at *string
// The id property
id *int32
id *int64
// The key_id property
key_id *string
// The primary_key_id property
Expand Down Expand Up @@ -169,7 +169,7 @@ func (m *GpgKey_subkeys) GetFieldDeserializers()(map[string]func(i878a80d2330e89
return nil
}
res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetInt32Value()
val, err := n.GetInt64Value()
if err != nil {
return err
}
Expand Down Expand Up @@ -241,8 +241,8 @@ func (m *GpgKey_subkeys) GetFieldDeserializers()(map[string]func(i878a80d2330e89
return res
}
// GetId gets the id property value. The id property
// returns a *int32 when successful
func (m *GpgKey_subkeys) GetId()(*int32) {
// returns a *int64 when successful
func (m *GpgKey_subkeys) GetId()(*int64) {
return m.id
}
// GetKeyId gets the key_id property value. The key_id property
Expand Down Expand Up @@ -326,7 +326,7 @@ func (m *GpgKey_subkeys) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a
}
}
{
err := writer.WriteInt32Value("id", m.GetId())
err := writer.WriteInt64Value("id", m.GetId())
if err != nil {
return err
}
Expand Down Expand Up @@ -408,7 +408,7 @@ func (m *GpgKey_subkeys) SetExpiresAt(value *string)() {
m.expires_at = value
}
// SetId sets the id property value. The id property
func (m *GpgKey_subkeys) SetId(value *int32)() {
func (m *GpgKey_subkeys) SetId(value *int64)() {
m.id = value
}
// SetKeyId sets the key_id property value. The key_id property
Expand Down Expand Up @@ -445,7 +445,7 @@ type GpgKey_subkeysable interface {
GetCreatedAt()(*string)
GetEmails()([]GpgKey_subkeys_emailsable)
GetExpiresAt()(*string)
GetId()(*int32)
GetId()(*int64)
GetKeyId()(*string)
GetPrimaryKeyId()(*int32)
GetPublicKey()(*string)
Expand All @@ -459,7 +459,7 @@ type GpgKey_subkeysable interface {
SetCreatedAt(value *string)()
SetEmails(value []GpgKey_subkeys_emailsable)()
SetExpiresAt(value *string)()
SetId(value *int32)()
SetId(value *int64)()
SetKeyId(value *string)()
SetPrimaryKeyId(value *int32)()
SetPublicKey(value *string)()
Expand Down
Loading

0 comments on commit ac172ee

Please sign in to comment.