diff --git a/pkg/github/kiota-lock.json b/pkg/github/kiota-lock.json index 82b3e178..e1d6a3f9 100644 --- a/pkg/github/kiota-lock.json +++ b/pkg/github/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "73258FD7C97EE155929C2C51A926AD3868ACFDAD43AD88DA01B7C57744658BC25669DA8EE2C15B8C36AD78EDDA4392592737865CDB9B4662CFAA83C08513EA66", + "descriptionHash": "EA698BC7497F85C1F3E0C1C93F75DD34E46061D805E4911F4D5D793DD64175ED973225D7BE26ECE3CD573F81CC73B67754D11D319E92BE53DF64EC3815851141", "descriptionLocation": "../../../../../schemas/api.github.com.json", "lockFileVersion": "1.0.0", "kiotaVersion": "1.19.0", diff --git a/pkg/github/models/organization_full.go b/pkg/github/models/organization_full.go index 79cf5a4c..5de71db9 100644 --- a/pkg/github/models/organization_full.go +++ b/pkg/github/models/organization_full.go @@ -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 @@ -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) { @@ -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 { @@ -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 { @@ -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 @@ -1612,7 +1585,6 @@ type OrganizationFullable interface { GetAvatarUrl()(*string) GetBillingEmail()(*string) GetBlog()(*string) - GetCollaborators()(*int32) GetCompany()(*string) GetCreatedAt()(*i336074805fc853987abe6f7fe3ad97a6a6f3077a16391fec744f671a015fbd7e.Time) GetDefaultRepositoryPermission()(*string) @@ -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)() diff --git a/pkg/github/orgs/item_rulesets_request_builder.go b/pkg/github/orgs/item_rulesets_request_builder.go index 64f60648..00988465 100644 --- a/pkg/github/orgs/item_rulesets_request_builder.go +++ b/pkg/github/orgs/item_rulesets_request_builder.go @@ -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 @@ -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 } diff --git a/pkg/github/repos/item_item_rulesets_request_builder.go b/pkg/github/repos/item_item_rulesets_request_builder.go index 370b5ef0..43ca5205 100644 --- a/pkg/github/repos/item_item_rulesets_request_builder.go +++ b/pkg/github/repos/item_item_rulesets_request_builder.go @@ -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 @@ -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 }