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 | fix | breaking: updates CopilotSeatDetails[CopilotSeatDetails_organization > NullableOrganizationSimple], [CopilotSeatDetails_assignee > SimpleUser], fixes many previously unknown types, fixes check run discriminator to evaluate status, fixes content discriminator to evaluate type #89

Merged
merged 1 commit into from
Oct 1, 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
3,991 changes: 1,897 additions & 2,094 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": "D193FB5ADEB3C48A311B7009C13614E76582927AC1F0735770FBD08ABED36F68CC606FA74A323F3EA39986D85843A14B8B41A0F7D1530D47E818433E7E0F2148",
"descriptionHash": "D5A2577974C14AEFB439F06B29D2608BBB77E30EC311B585EA26AA882F0C412563C70D3A4A465305B98E1AB13FB3299CC800515FAA6C8065E7055EB7DC1008D3",
"descriptionLocation": "../../../../../schemas/ghes-3.12.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.18.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,37 @@ import (
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
)

type ItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBodyMember1 struct {
type ItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBody struct {
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]any
// The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items.
apps []string
}
// NewItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBodyMember1 instantiates a new ItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBodyMember1 and sets the default values.
func NewItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBodyMember1()(*ItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBodyMember1) {
m := &ItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBodyMember1{
// NewItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBody instantiates a new ItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBody and sets the default values.
func NewItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBody()(*ItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBody) {
m := &ItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBody{
}
m.SetAdditionalData(make(map[string]any))
return m
}
// CreateItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBodyMember1FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
// CreateItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
// returns a Parsable when successful
func CreateItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBodyMember1FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
return NewItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBodyMember1(), nil
func CreateItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
return NewItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBody(), nil
}
// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
// returns a map[string]any when successful
func (m *ItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBodyMember1) GetAdditionalData()(map[string]any) {
func (m *ItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBody) GetAdditionalData()(map[string]any) {
return m.additionalData
}
// GetApps gets the apps property value. The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items.
// returns a []string when successful
func (m *ItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBodyMember1) GetApps()([]string) {
func (m *ItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBody) GetApps()([]string) {
return m.apps
}
// GetFieldDeserializers the deserialization information for the current model
// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (m *ItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBodyMember1) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
func (m *ItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
res["apps"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetCollectionOfPrimitiveValues("string")
Expand All @@ -55,7 +55,7 @@ func (m *ItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBodyMember1)
return res
}
// Serialize serializes information the current object
func (m *ItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBodyMember1) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
func (m *ItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
if m.GetApps() != nil {
err := writer.WriteCollectionOfStringValues("apps", m.GetApps())
if err != nil {
Expand All @@ -71,14 +71,14 @@ func (m *ItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBodyMember1)
return nil
}
// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBodyMember1) SetAdditionalData(value map[string]any)() {
func (m *ItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBody) SetAdditionalData(value map[string]any)() {
m.additionalData = value
}
// SetApps sets the apps property value. The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items.
func (m *ItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBodyMember1) SetApps(value []string)() {
func (m *ItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBody) SetApps(value []string)() {
m.apps = value
}
type ItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBodyMember1able interface {
type ItemItemBranchesItemProtectionRestrictionsAppsDeleteRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetApps()([]string)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,37 @@ import (
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
)

type ItemItemBranchesItemProtectionRestrictionsAppsPostRequestBodyMember1 struct {
type ItemItemBranchesItemProtectionRestrictionsAppsPostRequestBody struct {
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]any
// The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items.
apps []string
}
// NewItemItemBranchesItemProtectionRestrictionsAppsPostRequestBodyMember1 instantiates a new ItemItemBranchesItemProtectionRestrictionsAppsPostRequestBodyMember1 and sets the default values.
func NewItemItemBranchesItemProtectionRestrictionsAppsPostRequestBodyMember1()(*ItemItemBranchesItemProtectionRestrictionsAppsPostRequestBodyMember1) {
m := &ItemItemBranchesItemProtectionRestrictionsAppsPostRequestBodyMember1{
// NewItemItemBranchesItemProtectionRestrictionsAppsPostRequestBody instantiates a new ItemItemBranchesItemProtectionRestrictionsAppsPostRequestBody and sets the default values.
func NewItemItemBranchesItemProtectionRestrictionsAppsPostRequestBody()(*ItemItemBranchesItemProtectionRestrictionsAppsPostRequestBody) {
m := &ItemItemBranchesItemProtectionRestrictionsAppsPostRequestBody{
}
m.SetAdditionalData(make(map[string]any))
return m
}
// CreateItemItemBranchesItemProtectionRestrictionsAppsPostRequestBodyMember1FromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
// CreateItemItemBranchesItemProtectionRestrictionsAppsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
// returns a Parsable when successful
func CreateItemItemBranchesItemProtectionRestrictionsAppsPostRequestBodyMember1FromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
return NewItemItemBranchesItemProtectionRestrictionsAppsPostRequestBodyMember1(), nil
func CreateItemItemBranchesItemProtectionRestrictionsAppsPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
return NewItemItemBranchesItemProtectionRestrictionsAppsPostRequestBody(), nil
}
// GetAdditionalData gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
// returns a map[string]any when successful
func (m *ItemItemBranchesItemProtectionRestrictionsAppsPostRequestBodyMember1) GetAdditionalData()(map[string]any) {
func (m *ItemItemBranchesItemProtectionRestrictionsAppsPostRequestBody) GetAdditionalData()(map[string]any) {
return m.additionalData
}
// GetApps gets the apps property value. The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items.
// returns a []string when successful
func (m *ItemItemBranchesItemProtectionRestrictionsAppsPostRequestBodyMember1) GetApps()([]string) {
func (m *ItemItemBranchesItemProtectionRestrictionsAppsPostRequestBody) GetApps()([]string) {
return m.apps
}
// GetFieldDeserializers the deserialization information for the current model
// returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (m *ItemItemBranchesItemProtectionRestrictionsAppsPostRequestBodyMember1) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
func (m *ItemItemBranchesItemProtectionRestrictionsAppsPostRequestBody) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
res["apps"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetCollectionOfPrimitiveValues("string")
Expand All @@ -55,7 +55,7 @@ func (m *ItemItemBranchesItemProtectionRestrictionsAppsPostRequestBodyMember1) G
return res
}
// Serialize serializes information the current object
func (m *ItemItemBranchesItemProtectionRestrictionsAppsPostRequestBodyMember1) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
func (m *ItemItemBranchesItemProtectionRestrictionsAppsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
if m.GetApps() != nil {
err := writer.WriteCollectionOfStringValues("apps", m.GetApps())
if err != nil {
Expand All @@ -71,14 +71,14 @@ func (m *ItemItemBranchesItemProtectionRestrictionsAppsPostRequestBodyMember1) S
return nil
}
// SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
func (m *ItemItemBranchesItemProtectionRestrictionsAppsPostRequestBodyMember1) SetAdditionalData(value map[string]any)() {
func (m *ItemItemBranchesItemProtectionRestrictionsAppsPostRequestBody) SetAdditionalData(value map[string]any)() {
m.additionalData = value
}
// SetApps sets the apps property value. The GitHub Apps that have push access to this branch. Use the slugified version of the app name. **Note**: The list of users, apps, and teams in total is limited to 100 items.
func (m *ItemItemBranchesItemProtectionRestrictionsAppsPostRequestBodyMember1) SetApps(value []string)() {
func (m *ItemItemBranchesItemProtectionRestrictionsAppsPostRequestBody) SetApps(value []string)() {
m.apps = value
}
type ItemItemBranchesItemProtectionRestrictionsAppsPostRequestBodyMember1able interface {
type ItemItemBranchesItemProtectionRestrictionsAppsPostRequestBodyable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
GetApps()([]string)
Expand Down
Loading
Loading