Skip to content

Commit

Permalink
feat: Changes in generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
octokitbot authored Oct 30, 2024
1 parent b666079 commit 171bef8
Show file tree
Hide file tree
Showing 16 changed files with 92 additions and 8,319 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": "1EFE80B2E904E76BAD3A16AF0CA751BDACCB724BAB348EFBCA5D5AA25C20982B94BA4A4DE5398A4196FB03A7002A409D9F638286A28C650FFAF360DD4768EDF3",
"descriptionHash": "A6344C6246AAB76B8FBE8755861DBBBE6FF2AED06A340FAC9E1B5125401295AA9A80DECB02B3C014CF5CE137AF3A706D3F2820AD0CA14ABE1F99374689061632",
"descriptionLocation": "../../../../../schemas/ghes-3.14.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.19.0",
Expand Down
44 changes: 22 additions & 22 deletions pkg/github/models/pull_request_escaped_base.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ type PullRequest_base struct {
label *string
// The ref property
ref *string
// The repo property
repo PullRequest_base_repoable
// A repository on GitHub.
repo Repositoryable
// The sha property
sha *string
// The user property
user PullRequest_base_userable
// A GitHub user.
user SimpleUserable
}
// NewPullRequest_base instantiates a new PullRequest_base and sets the default values.
func NewPullRequest_base()(*PullRequest_base) {
Expand Down Expand Up @@ -60,12 +60,12 @@ func (m *PullRequest_base) GetFieldDeserializers()(map[string]func(i878a80d2330e
return nil
}
res["repo"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetObjectValue(CreatePullRequest_base_repoFromDiscriminatorValue)
val, err := n.GetObjectValue(CreateRepositoryFromDiscriminatorValue)
if err != nil {
return err
}
if val != nil {
m.SetRepo(val.(PullRequest_base_repoable))
m.SetRepo(val.(Repositoryable))
}
return nil
}
Expand All @@ -80,12 +80,12 @@ func (m *PullRequest_base) GetFieldDeserializers()(map[string]func(i878a80d2330e
return nil
}
res["user"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetObjectValue(CreatePullRequest_base_userFromDiscriminatorValue)
val, err := n.GetObjectValue(CreateSimpleUserFromDiscriminatorValue)
if err != nil {
return err
}
if val != nil {
m.SetUser(val.(PullRequest_base_userable))
m.SetUser(val.(SimpleUserable))
}
return nil
}
Expand All @@ -101,19 +101,19 @@ func (m *PullRequest_base) GetLabel()(*string) {
func (m *PullRequest_base) GetRef()(*string) {
return m.ref
}
// GetRepo gets the repo property value. The repo property
// returns a PullRequest_base_repoable when successful
func (m *PullRequest_base) GetRepo()(PullRequest_base_repoable) {
// GetRepo gets the repo property value. A repository on GitHub.
// returns a Repositoryable when successful
func (m *PullRequest_base) GetRepo()(Repositoryable) {
return m.repo
}
// GetSha gets the sha property value. The sha property
// returns a *string when successful
func (m *PullRequest_base) GetSha()(*string) {
return m.sha
}
// GetUser gets the user property value. The user property
// returns a PullRequest_base_userable when successful
func (m *PullRequest_base) GetUser()(PullRequest_base_userable) {
// GetUser gets the user property value. A GitHub user.
// returns a SimpleUserable when successful
func (m *PullRequest_base) GetUser()(SimpleUserable) {
return m.user
}
// Serialize serializes information the current object
Expand Down Expand Up @@ -168,29 +168,29 @@ func (m *PullRequest_base) SetLabel(value *string)() {
func (m *PullRequest_base) SetRef(value *string)() {
m.ref = value
}
// SetRepo sets the repo property value. The repo property
func (m *PullRequest_base) SetRepo(value PullRequest_base_repoable)() {
// SetRepo sets the repo property value. A repository on GitHub.
func (m *PullRequest_base) SetRepo(value Repositoryable)() {
m.repo = value
}
// SetSha sets the sha property value. The sha property
func (m *PullRequest_base) SetSha(value *string)() {
m.sha = value
}
// SetUser sets the user property value. The user property
func (m *PullRequest_base) SetUser(value PullRequest_base_userable)() {
// SetUser sets the user property value. A GitHub user.
func (m *PullRequest_base) SetUser(value SimpleUserable)() {
m.user = value
}
type PullRequest_baseable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetLabel()(*string)
GetRef()(*string)
GetRepo()(PullRequest_base_repoable)
GetRepo()(Repositoryable)
GetSha()(*string)
GetUser()(PullRequest_base_userable)
GetUser()(SimpleUserable)
SetLabel(value *string)()
SetRef(value *string)()
SetRepo(value PullRequest_base_repoable)()
SetRepo(value Repositoryable)()
SetSha(value *string)()
SetUser(value PullRequest_base_userable)()
SetUser(value SimpleUserable)()
}
Loading

0 comments on commit 171bef8

Please sign in to comment.