Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Changes in generated code #115

Merged
merged 5 commits into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4,519 changes: 2,250 additions & 2,269 deletions pkg/github/.kiota.log

Large diffs are not rendered by default.

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": "1A6BA39D3BCD4BFF932EFE0369B4337643EF101895FB685AFE8031143C06DC5FFD92D24BEAE1D1522816AB75EFC034BBDE1E334DC23BD88222A385A23059EEA3",
"descriptionHash": "AEE923089CCF67E483665DA3751A82A0C576B01EA07357833D8EFD572C73E130B8BB6A01E558FBE68ABA2B0A68122D7CB2B8FCA7AA02679A9C2385EA978262F9",
"descriptionLocation": "../../../../../schemas/ghes-3.13.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
Loading