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 Oct 11, 2024
1 parent a221333 commit 9dc652e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 32 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": "73258FD7C97EE155929C2C51A926AD3868ACFDAD43AD88DA01B7C57744658BC25669DA8EE2C15B8C36AD78EDDA4392592737865CDB9B4662CFAA83C08513EA66",
"descriptionHash": "EA698BC7497F85C1F3E0C1C93F75DD34E46061D805E4911F4D5D793DD64175ED973225D7BE26ECE3CD573F81CC73B67754D11D319E92BE53DF64EC3815851141",
"descriptionLocation": "../../../../../schemas/api.github.com.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.19.0",
Expand Down
29 changes: 0 additions & 29 deletions pkg/github/models/organization_full.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ type OrganizationFull struct {
billing_email *string
// The blog property
blog *string
// The collaborators property
collaborators *int32
// The company property
company *string
// The created_at property
Expand Down Expand Up @@ -173,11 +171,6 @@ func (m *OrganizationFull) GetBillingEmail()(*string) {
func (m *OrganizationFull) GetBlog()(*string) {
return m.blog
}
// GetCollaborators gets the collaborators property value. The collaborators property
// returns a *int32 when successful
func (m *OrganizationFull) GetCollaborators()(*int32) {
return m.collaborators
}
// GetCompany gets the company property value. The company property
// returns a *string when successful
func (m *OrganizationFull) GetCompany()(*string) {
Expand Down Expand Up @@ -285,16 +278,6 @@ func (m *OrganizationFull) GetFieldDeserializers()(map[string]func(i878a80d2330e
}
return nil
}
res["collaborators"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetInt32Value()
if err != nil {
return err
}
if val != nil {
m.SetCollaborators(val)
}
return nil
}
res["company"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
val, err := n.GetStringValue()
if err != nil {
Expand Down Expand Up @@ -1046,12 +1029,6 @@ func (m *OrganizationFull) Serialize(writer i878a80d2330e89d26896388a3f487eef27b
return err
}
}
{
err := writer.WriteInt32Value("collaborators", m.GetCollaborators())
if err != nil {
return err
}
}
{
err := writer.WriteStringValue("company", m.GetCompany())
if err != nil {
Expand Down Expand Up @@ -1391,10 +1368,6 @@ func (m *OrganizationFull) SetBillingEmail(value *string)() {
func (m *OrganizationFull) SetBlog(value *string)() {
m.blog = value
}
// SetCollaborators sets the collaborators property value. The collaborators property
func (m *OrganizationFull) SetCollaborators(value *int32)() {
m.collaborators = value
}
// SetCompany sets the company property value. The company property
func (m *OrganizationFull) SetCompany(value *string)() {
m.company = value
Expand Down Expand Up @@ -1612,7 +1585,6 @@ type OrganizationFullable interface {
GetAvatarUrl()(*string)
GetBillingEmail()(*string)
GetBlog()(*string)
GetCollaborators()(*int32)
GetCompany()(*string)
GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)
GetDefaultRepositoryPermission()(*string)
Expand Down Expand Up @@ -1669,7 +1641,6 @@ type OrganizationFullable interface {
SetAvatarUrl(value *string)()
SetBillingEmail(value *string)()
SetBlog(value *string)()
SetCollaborators(value *int32)()
SetCompany(value *string)()
SetCreatedAt(value *i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time)()
SetDefaultRepositoryPermission(value *string)()
Expand Down
4 changes: 3 additions & 1 deletion pkg/github/orgs/item_rulesets_request_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ type ItemRulesetsRequestBuilderGetQueryParameters struct {
Page *int32 `uriparametername:"page"`
// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
Per_page *int32 `uriparametername:"per_page"`
// A comma-separated list of rule targets to filter by.If provided, only rulesets that apply to the specified targets will be returned.For example, `branch,tag,push`.
Targets *string `uriparametername:"targets"`
}
// ByRuleset_id gets an item from the github.com/octokit/go-sdk/pkg/github.orgs.item.rulesets.item collection
// returns a *ItemRulesetsWithRuleset_ItemRequestBuilder when successful
Expand All @@ -31,7 +33,7 @@ func (m *ItemRulesetsRequestBuilder) ByRuleset_id(ruleset_id int32)(*ItemRuleset
// NewItemRulesetsRequestBuilderInternal instantiates a new ItemRulesetsRequestBuilder and sets the default values.
func NewItemRulesetsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemRulesetsRequestBuilder) {
m := &ItemRulesetsRequestBuilder{
BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/orgs/{org}/rulesets{?page*,per_page*}", pathParameters),
BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/orgs/{org}/rulesets{?page*,per_page*,targets*}", pathParameters),
}
return m
}
Expand Down
4 changes: 3 additions & 1 deletion pkg/github/repos/item_item_rulesets_request_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ type ItemItemRulesetsRequestBuilderGetQueryParameters struct {
Page *int32 `uriparametername:"page"`
// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
Per_page *int32 `uriparametername:"per_page"`
// A comma-separated list of rule targets to filter by.If provided, only rulesets that apply to the specified targets will be returned.For example, `branch,tag,push`.
Targets *string `uriparametername:"targets"`
}
// ByRuleset_id gets an item from the github.com/octokit/go-sdk/pkg/github.repos.item.item.rulesets.item collection
// returns a *ItemItemRulesetsWithRuleset_ItemRequestBuilder when successful
Expand All @@ -33,7 +35,7 @@ func (m *ItemItemRulesetsRequestBuilder) ByRuleset_id(ruleset_id int32)(*ItemIte
// NewItemItemRulesetsRequestBuilderInternal instantiates a new ItemItemRulesetsRequestBuilder and sets the default values.
func NewItemItemRulesetsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemRulesetsRequestBuilder) {
m := &ItemItemRulesetsRequestBuilder{
BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/rulesets{?includes_parents*,page*,per_page*}", pathParameters),
BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/rulesets{?includes_parents*,page*,per_page*,targets*}", pathParameters),
}
return m
}
Expand Down

0 comments on commit 9dc652e

Please sign in to comment.