Skip to content

Commit

Permalink
New updates to generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
octokitbot committed Jul 25, 2024
1 parent 60b052d commit 7c2812a
Show file tree
Hide file tree
Showing 16 changed files with 634 additions and 9 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": "261F60DD494AFFB56F930D3042ADFA27120D57684490956B6C18FAFBF91CDB3656E3898CCC41269A2D4B4664B15FF40D37A3BCD066927006DA56031E07F14802",
"descriptionHash": "7ECFD65586B744E83319DF0E73957BCA36AE996677673FEE71A46310209AB2B7209EAEADEB1B275AABF9911452C9E8AEC15A1119DF8C6FDCDED17C52F7FD9785",
"descriptionLocation": "../../../../../schemas/api.github.com.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.14.0",
Expand Down
2 changes: 1 addition & 1 deletion pkg/github/models/file_extension_restriction.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
)

// File_extension_restriction note: file_extension_restriction is in beta and subject to change.Prevent commits that include files with specified file extensions from being pushed to the commit graph.
// File_extension_restriction > [!NOTE]> `file_extension_restriction` is in beta and subject to change.Prevent commits that include files with specified file extensions from being pushed to the commit graph.
type File_extension_restriction struct {
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]any
Expand Down
2 changes: 1 addition & 1 deletion pkg/github/models/file_path_restriction.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
)

// File_path_restriction note: file_path_restriction is in beta and subject to change.Prevent commits that include changes in specified file paths from being pushed to the commit graph.
// File_path_restriction > [!NOTE]> `file_path_restriction` is in beta and subject to change.Prevent commits that include changes in specified file paths from being pushed to the commit graph.
type File_path_restriction struct {
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]any
Expand Down
2 changes: 1 addition & 1 deletion pkg/github/models/max_file_path_length.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
)

// Max_file_path_length note: max_file_path_length is in beta and subject to change.Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph.
// Max_file_path_length > [!NOTE]> `max_file_path_length` is in beta and subject to change.Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph.
type Max_file_path_length struct {
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]any
Expand Down
2 changes: 1 addition & 1 deletion pkg/github/models/max_file_size.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
)

// Max_file_size note: max_file_size is in beta and subject to change.Prevent commits that exceed a specified file size limit from being pushed to the commit.
// Max_file_size > [!NOTE]> `max_file_size` is in beta and subject to change.Prevent commits that exceed a specified file size limit from being pushed to the commit.
type Max_file_size struct {
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]any
Expand Down
92 changes: 91 additions & 1 deletion pkg/github/models/repository_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
)

// RepositoryRule composed type wrapper for classes File_extension_restrictionable, File_path_restrictionable, Max_file_path_lengthable, Max_file_sizeable, RepositoryRuleBranchNamePatternable, RepositoryRuleCodeScanningable, RepositoryRuleCommitAuthorEmailPatternable, RepositoryRuleCommitMessagePatternable, RepositoryRuleCommitterEmailPatternable, RepositoryRuleCreationable, RepositoryRuleDeletionable, RepositoryRuleNonFastForwardable, RepositoryRulePullRequestable, RepositoryRuleRequiredDeploymentsable, RepositoryRuleRequiredLinearHistoryable, RepositoryRuleRequiredSignaturesable, RepositoryRuleRequiredStatusChecksable, RepositoryRuleTagNamePatternable, RepositoryRuleUpdateable, RepositoryRuleWorkflowsable
// RepositoryRule composed type wrapper for classes File_extension_restrictionable, File_path_restrictionable, Max_file_path_lengthable, Max_file_sizeable, RepositoryRuleBranchNamePatternable, RepositoryRuleCodeScanningable, RepositoryRuleCommitAuthorEmailPatternable, RepositoryRuleCommitMessagePatternable, RepositoryRuleCommitterEmailPatternable, RepositoryRuleCreationable, RepositoryRuleDeletionable, RepositoryRuleMergeQueueable, RepositoryRuleNonFastForwardable, RepositoryRulePullRequestable, RepositoryRuleRequiredDeploymentsable, RepositoryRuleRequiredLinearHistoryable, RepositoryRuleRequiredSignaturesable, RepositoryRuleRequiredStatusChecksable, RepositoryRuleTagNamePatternable, RepositoryRuleUpdateable, RepositoryRuleWorkflowsable
type RepositoryRule struct {
// Composed type representation for type File_extension_restrictionable
file_extension_restriction File_extension_restrictionable
Expand Down Expand Up @@ -60,6 +60,8 @@ type RepositoryRule struct {
repositoryRuleMax_file_size1 Max_file_sizeable
// Composed type representation for type Max_file_sizeable
repositoryRuleMax_file_size2 Max_file_sizeable
// Composed type representation for type RepositoryRuleMergeQueueable
repositoryRuleMergeQueue RepositoryRuleMergeQueueable
// Composed type representation for type RepositoryRuleNonFastForwardable
repositoryRuleNonFastForward RepositoryRuleNonFastForwardable
// Composed type representation for type RepositoryRulePullRequestable
Expand Down Expand Up @@ -120,6 +122,14 @@ type RepositoryRule struct {
repositoryRuleRepositoryRuleDeletion1 RepositoryRuleDeletionable
// Composed type representation for type RepositoryRuleDeletionable
repositoryRuleRepositoryRuleDeletion2 RepositoryRuleDeletionable
// Composed type representation for type RepositoryRuleMergeQueueable
repositoryRuleRepositoryRuleMergeQueue RepositoryRuleMergeQueueable
// Composed type representation for type RepositoryRuleMergeQueueable
repositoryRuleRepositoryRuleMergeQueue0 RepositoryRuleMergeQueueable
// Composed type representation for type RepositoryRuleMergeQueueable
repositoryRuleRepositoryRuleMergeQueue1 RepositoryRuleMergeQueueable
// Composed type representation for type RepositoryRuleMergeQueueable
repositoryRuleRepositoryRuleMergeQueue2 RepositoryRuleMergeQueueable
// Composed type representation for type RepositoryRuleNonFastForwardable
repositoryRuleRepositoryRuleNonFastForward RepositoryRuleNonFastForwardable
// Composed type representation for type RepositoryRuleNonFastForwardable
Expand Down Expand Up @@ -378,6 +388,11 @@ func (m *RepositoryRule) GetRepositoryRuleMaxFileSize1()(Max_file_sizeable) {
func (m *RepositoryRule) GetRepositoryRuleMaxFileSize2()(Max_file_sizeable) {
return m.repositoryRuleMax_file_size2
}
// GetRepositoryRuleMergeQueue gets the repositoryRuleMergeQueue property value. Composed type representation for type RepositoryRuleMergeQueueable
// returns a RepositoryRuleMergeQueueable when successful
func (m *RepositoryRule) GetRepositoryRuleMergeQueue()(RepositoryRuleMergeQueueable) {
return m.repositoryRuleMergeQueue
}
// GetRepositoryRuleNonFastForward gets the repositoryRuleNonFastForward property value. Composed type representation for type RepositoryRuleNonFastForwardable
// returns a RepositoryRuleNonFastForwardable when successful
func (m *RepositoryRule) GetRepositoryRuleNonFastForward()(RepositoryRuleNonFastForwardable) {
Expand Down Expand Up @@ -528,6 +543,26 @@ func (m *RepositoryRule) GetRepositoryRuleRepositoryRuleDeletion1()(RepositoryRu
func (m *RepositoryRule) GetRepositoryRuleRepositoryRuleDeletion2()(RepositoryRuleDeletionable) {
return m.repositoryRuleRepositoryRuleDeletion2
}
// GetRepositoryRuleRepositoryRuleMergeQueue gets the repositoryRuleMergeQueue property value. Composed type representation for type RepositoryRuleMergeQueueable
// returns a RepositoryRuleMergeQueueable when successful
func (m *RepositoryRule) GetRepositoryRuleRepositoryRuleMergeQueue()(RepositoryRuleMergeQueueable) {
return m.repositoryRuleRepositoryRuleMergeQueue
}
// GetRepositoryRuleRepositoryRuleMergeQueue0 gets the repositoryRuleMergeQueue property value. Composed type representation for type RepositoryRuleMergeQueueable
// returns a RepositoryRuleMergeQueueable when successful
func (m *RepositoryRule) GetRepositoryRuleRepositoryRuleMergeQueue0()(RepositoryRuleMergeQueueable) {
return m.repositoryRuleRepositoryRuleMergeQueue0
}
// GetRepositoryRuleRepositoryRuleMergeQueue1 gets the repositoryRuleMergeQueue property value. Composed type representation for type RepositoryRuleMergeQueueable
// returns a RepositoryRuleMergeQueueable when successful
func (m *RepositoryRule) GetRepositoryRuleRepositoryRuleMergeQueue1()(RepositoryRuleMergeQueueable) {
return m.repositoryRuleRepositoryRuleMergeQueue1
}
// GetRepositoryRuleRepositoryRuleMergeQueue2 gets the repositoryRuleMergeQueue property value. Composed type representation for type RepositoryRuleMergeQueueable
// returns a RepositoryRuleMergeQueueable when successful
func (m *RepositoryRule) GetRepositoryRuleRepositoryRuleMergeQueue2()(RepositoryRuleMergeQueueable) {
return m.repositoryRuleRepositoryRuleMergeQueue2
}
// GetRepositoryRuleRepositoryRuleNonFastForward gets the repositoryRuleNonFastForward property value. Composed type representation for type RepositoryRuleNonFastForwardable
// returns a RepositoryRuleNonFastForwardable when successful
func (m *RepositoryRule) GetRepositoryRuleRepositoryRuleNonFastForward()(RepositoryRuleNonFastForwardable) {
Expand Down Expand Up @@ -880,6 +915,11 @@ func (m *RepositoryRule) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a
if err != nil {
return err
}
} else if m.GetRepositoryRuleMergeQueue() != nil {
err := writer.WriteObjectValue("", m.GetRepositoryRuleMergeQueue())
if err != nil {
return err
}
} else if m.GetRepositoryRuleNonFastForward() != nil {
err := writer.WriteObjectValue("", m.GetRepositoryRuleNonFastForward())
if err != nil {
Expand Down Expand Up @@ -1030,6 +1070,26 @@ func (m *RepositoryRule) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a
if err != nil {
return err
}
} else if m.GetRepositoryRuleRepositoryRuleMergeQueue() != nil {
err := writer.WriteObjectValue("", m.GetRepositoryRuleRepositoryRuleMergeQueue())
if err != nil {
return err
}
} else if m.GetRepositoryRuleRepositoryRuleMergeQueue0() != nil {
err := writer.WriteObjectValue("", m.GetRepositoryRuleRepositoryRuleMergeQueue0())
if err != nil {
return err
}
} else if m.GetRepositoryRuleRepositoryRuleMergeQueue1() != nil {
err := writer.WriteObjectValue("", m.GetRepositoryRuleRepositoryRuleMergeQueue1())
if err != nil {
return err
}
} else if m.GetRepositoryRuleRepositoryRuleMergeQueue2() != nil {
err := writer.WriteObjectValue("", m.GetRepositoryRuleRepositoryRuleMergeQueue2())
if err != nil {
return err
}
} else if m.GetRepositoryRuleRepositoryRuleNonFastForward() != nil {
err := writer.WriteObjectValue("", m.GetRepositoryRuleRepositoryRuleNonFastForward())
if err != nil {
Expand Down Expand Up @@ -1356,6 +1416,10 @@ func (m *RepositoryRule) SetRepositoryRuleMaxFileSize1(value Max_file_sizeable)(
func (m *RepositoryRule) SetRepositoryRuleMaxFileSize2(value Max_file_sizeable)() {
m.repositoryRuleMax_file_size2 = value
}
// SetRepositoryRuleMergeQueue sets the repositoryRuleMergeQueue property value. Composed type representation for type RepositoryRuleMergeQueueable
func (m *RepositoryRule) SetRepositoryRuleMergeQueue(value RepositoryRuleMergeQueueable)() {
m.repositoryRuleMergeQueue = value
}
// SetRepositoryRuleNonFastForward sets the repositoryRuleNonFastForward property value. Composed type representation for type RepositoryRuleNonFastForwardable
func (m *RepositoryRule) SetRepositoryRuleNonFastForward(value RepositoryRuleNonFastForwardable)() {
m.repositoryRuleNonFastForward = value
Expand Down Expand Up @@ -1476,6 +1540,22 @@ func (m *RepositoryRule) SetRepositoryRuleRepositoryRuleDeletion1(value Reposito
func (m *RepositoryRule) SetRepositoryRuleRepositoryRuleDeletion2(value RepositoryRuleDeletionable)() {
m.repositoryRuleRepositoryRuleDeletion2 = value
}
// SetRepositoryRuleRepositoryRuleMergeQueue sets the repositoryRuleMergeQueue property value. Composed type representation for type RepositoryRuleMergeQueueable
func (m *RepositoryRule) SetRepositoryRuleRepositoryRuleMergeQueue(value RepositoryRuleMergeQueueable)() {
m.repositoryRuleRepositoryRuleMergeQueue = value
}
// SetRepositoryRuleRepositoryRuleMergeQueue0 sets the repositoryRuleMergeQueue property value. Composed type representation for type RepositoryRuleMergeQueueable
func (m *RepositoryRule) SetRepositoryRuleRepositoryRuleMergeQueue0(value RepositoryRuleMergeQueueable)() {
m.repositoryRuleRepositoryRuleMergeQueue0 = value
}
// SetRepositoryRuleRepositoryRuleMergeQueue1 sets the repositoryRuleMergeQueue property value. Composed type representation for type RepositoryRuleMergeQueueable
func (m *RepositoryRule) SetRepositoryRuleRepositoryRuleMergeQueue1(value RepositoryRuleMergeQueueable)() {
m.repositoryRuleRepositoryRuleMergeQueue1 = value
}
// SetRepositoryRuleRepositoryRuleMergeQueue2 sets the repositoryRuleMergeQueue property value. Composed type representation for type RepositoryRuleMergeQueueable
func (m *RepositoryRule) SetRepositoryRuleRepositoryRuleMergeQueue2(value RepositoryRuleMergeQueueable)() {
m.repositoryRuleRepositoryRuleMergeQueue2 = value
}
// SetRepositoryRuleRepositoryRuleNonFastForward sets the repositoryRuleNonFastForward property value. Composed type representation for type RepositoryRuleNonFastForwardable
func (m *RepositoryRule) SetRepositoryRuleRepositoryRuleNonFastForward(value RepositoryRuleNonFastForwardable)() {
m.repositoryRuleRepositoryRuleNonFastForward = value
Expand Down Expand Up @@ -1677,6 +1757,7 @@ type RepositoryRuleable interface {
GetRepositoryRuleMaxFileSize0()(Max_file_sizeable)
GetRepositoryRuleMaxFileSize1()(Max_file_sizeable)
GetRepositoryRuleMaxFileSize2()(Max_file_sizeable)
GetRepositoryRuleMergeQueue()(RepositoryRuleMergeQueueable)
GetRepositoryRuleNonFastForward()(RepositoryRuleNonFastForwardable)
GetRepositoryRulePullRequest()(RepositoryRulePullRequestable)
GetRepositoryRuleRepositoryRuleBranchNamePattern()(RepositoryRuleBranchNamePatternable)
Expand Down Expand Up @@ -1707,6 +1788,10 @@ type RepositoryRuleable interface {
GetRepositoryRuleRepositoryRuleDeletion0()(RepositoryRuleDeletionable)
GetRepositoryRuleRepositoryRuleDeletion1()(RepositoryRuleDeletionable)
GetRepositoryRuleRepositoryRuleDeletion2()(RepositoryRuleDeletionable)
GetRepositoryRuleRepositoryRuleMergeQueue()(RepositoryRuleMergeQueueable)
GetRepositoryRuleRepositoryRuleMergeQueue0()(RepositoryRuleMergeQueueable)
GetRepositoryRuleRepositoryRuleMergeQueue1()(RepositoryRuleMergeQueueable)
GetRepositoryRuleRepositoryRuleMergeQueue2()(RepositoryRuleMergeQueueable)
GetRepositoryRuleRepositoryRuleNonFastForward()(RepositoryRuleNonFastForwardable)
GetRepositoryRuleRepositoryRuleNonFastForward0()(RepositoryRuleNonFastForwardable)
GetRepositoryRuleRepositoryRuleNonFastForward1()(RepositoryRuleNonFastForwardable)
Expand Down Expand Up @@ -1777,6 +1862,7 @@ type RepositoryRuleable interface {
SetRepositoryRuleMaxFileSize0(value Max_file_sizeable)()
SetRepositoryRuleMaxFileSize1(value Max_file_sizeable)()
SetRepositoryRuleMaxFileSize2(value Max_file_sizeable)()
SetRepositoryRuleMergeQueue(value RepositoryRuleMergeQueueable)()
SetRepositoryRuleNonFastForward(value RepositoryRuleNonFastForwardable)()
SetRepositoryRulePullRequest(value RepositoryRulePullRequestable)()
SetRepositoryRuleRepositoryRuleBranchNamePattern(value RepositoryRuleBranchNamePatternable)()
Expand Down Expand Up @@ -1807,6 +1893,10 @@ type RepositoryRuleable interface {
SetRepositoryRuleRepositoryRuleDeletion0(value RepositoryRuleDeletionable)()
SetRepositoryRuleRepositoryRuleDeletion1(value RepositoryRuleDeletionable)()
SetRepositoryRuleRepositoryRuleDeletion2(value RepositoryRuleDeletionable)()
SetRepositoryRuleRepositoryRuleMergeQueue(value RepositoryRuleMergeQueueable)()
SetRepositoryRuleRepositoryRuleMergeQueue0(value RepositoryRuleMergeQueueable)()
SetRepositoryRuleRepositoryRuleMergeQueue1(value RepositoryRuleMergeQueueable)()
SetRepositoryRuleRepositoryRuleMergeQueue2(value RepositoryRuleMergeQueueable)()
SetRepositoryRuleRepositoryRuleNonFastForward(value RepositoryRuleNonFastForwardable)()
SetRepositoryRuleRepositoryRuleNonFastForward0(value RepositoryRuleNonFastForwardable)()
SetRepositoryRuleRepositoryRuleNonFastForward1(value RepositoryRuleNonFastForwardable)()
Expand Down
Loading

0 comments on commit 7c2812a

Please sign in to comment.