diff --git a/pkg/github/feeds/feeds_request_builder.go b/pkg/github/feeds/feeds_request_builder.go
index ff23c89b..b28a11ce 100644
--- a/pkg/github/feeds/feeds_request_builder.go
+++ b/pkg/github/feeds/feeds_request_builder.go
@@ -30,7 +30,7 @@ func NewFeedsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb
urlParams["request-raw-url"] = rawUrl
return NewFeedsRequestBuilderInternal(urlParams, requestAdapter)
}
-// Get gitHub provides several timeline resources in [Atom](http://en.wikipedia.org/wiki/Atom_(standard)) format. The Feeds API lists all the feeds available to the authenticated user:* **Timeline**: The GitHub global public timeline* **User**: The public timeline for any user, using [URI template](https://docs.github.com/rest/overview/resources-in-the-rest-api#hypermedia)* **Current user public**: The public timeline for the authenticated user* **Current user**: The private timeline for the authenticated user* **Current user actor**: The private timeline for activity created by the authenticated user* **Current user organizations**: The private timeline for the organizations the authenticated user is a member of.* **Security advisories**: A collection of public announcements that provide information about security-related vulnerabilities in software on GitHub.**Note**: Private feeds are only returned when [authenticating via Basic Auth](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) since current feed URIs use the older, non revocable auth tokens.
+// Get gitHub provides several timeline resources in [Atom](http://en.wikipedia.org/wiki/Atom_(standard)) format. The Feeds API lists all the feeds available to the authenticated user:* **Timeline**: The GitHub global public timeline* **User**: The public timeline for any user, using `uri_template`. For more information, see "[Hypermedia](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#hypermedia)."* **Current user public**: The public timeline for the authenticated user* **Current user**: The private timeline for the authenticated user* **Current user actor**: The private timeline for activity created by the authenticated user* **Current user organizations**: The private timeline for the organizations the authenticated user is a member of.* **Security advisories**: A collection of public announcements that provide information about security-related vulnerabilities in software on GitHub.**Note**: Private feeds are only returned when [authenticating via Basic Auth](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) since current feed URIs use the older, non revocable auth tokens.
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/activity/feeds#get-feeds
@@ -48,7 +48,7 @@ func (m *FeedsRequestBuilder) Get(ctx context.Context, requestConfiguration *Fee
}
return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.Feedable), nil
}
-// ToGetRequestInformation gitHub provides several timeline resources in [Atom](http://en.wikipedia.org/wiki/Atom_(standard)) format. The Feeds API lists all the feeds available to the authenticated user:* **Timeline**: The GitHub global public timeline* **User**: The public timeline for any user, using [URI template](https://docs.github.com/rest/overview/resources-in-the-rest-api#hypermedia)* **Current user public**: The public timeline for the authenticated user* **Current user**: The private timeline for the authenticated user* **Current user actor**: The private timeline for activity created by the authenticated user* **Current user organizations**: The private timeline for the organizations the authenticated user is a member of.* **Security advisories**: A collection of public announcements that provide information about security-related vulnerabilities in software on GitHub.**Note**: Private feeds are only returned when [authenticating via Basic Auth](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) since current feed URIs use the older, non revocable auth tokens.
+// ToGetRequestInformation gitHub provides several timeline resources in [Atom](http://en.wikipedia.org/wiki/Atom_(standard)) format. The Feeds API lists all the feeds available to the authenticated user:* **Timeline**: The GitHub global public timeline* **User**: The public timeline for any user, using `uri_template`. For more information, see "[Hypermedia](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#hypermedia)."* **Current user public**: The public timeline for the authenticated user* **Current user**: The private timeline for the authenticated user* **Current user actor**: The private timeline for activity created by the authenticated user* **Current user organizations**: The private timeline for the organizations the authenticated user is a member of.* **Security advisories**: A collection of public announcements that provide information about security-related vulnerabilities in software on GitHub.**Note**: Private feeds are only returned when [authenticating via Basic Auth](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) since current feed URIs use the older, non revocable auth tokens.
func (m *FeedsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *FeedsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
if requestConfiguration != nil {
diff --git a/pkg/github/kiota-lock.json b/pkg/github/kiota-lock.json
index 4ae17c9b..df517c59 100644
--- a/pkg/github/kiota-lock.json
+++ b/pkg/github/kiota-lock.json
@@ -1,8 +1,8 @@
{
- "descriptionHash": "ECEC7E8E83F6CAD8094CE361D9A951817C57875830FE7F6014E329B1E186A49742F4FCB88388843D82A31F821BA91C2FE3CEDB4DD02B3FA84BD532800C8E00F3",
+ "descriptionHash": "8BF7FF7DA89AAF459FE3112D9C74DBE42A0CAC75CF8B7BB5E35495E6641B010F0D8F2C63CDAF197F64E36EE1995C0408B7D76A7FF35B0F04D020D76506285DBC",
"descriptionLocation": "../../../source-generator/schemas/downloaded.json",
"lockFileVersion": "1.0.0",
- "kiotaVersion": "1.9.1",
+ "kiotaVersion": "1.10.0-preview.202312210001",
"clientClassName": "ApiClient",
"clientNamespaceName": "github.com/octokit/go-sdk/pkg/github/",
"language": "Go",
diff --git a/pkg/github/models/deployment.go b/pkg/github/models/deployment.go
index 51e751ae..e5372c1f 100644
--- a/pkg/github/models/deployment.go
+++ b/pkg/github/models/deployment.go
@@ -24,7 +24,7 @@ type Deployment struct {
// The original_environment property
original_environment *string
// The payload property
- payload Deployment_Deployment_payloadable
+ payload *string
// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.
performed_via_github_app NullableIntegrationable
// Specifies if the given environment is one that end-users directly interact with. Default: false.
@@ -46,91 +46,6 @@ type Deployment struct {
// The url property
url *string
}
-// Deployment_Deployment_payload composed type wrapper for classes deployment_payloadMember1, string
-type Deployment_Deployment_payload struct {
- // Composed type representation for type deployment_payloadMember1
- deployment_payloadMember1 Deployment_payloadMember1able
- // Composed type representation for type string
- string *string
-}
-// NewDeployment_Deployment_payload instantiates a new deployment_payload and sets the default values.
-func NewDeployment_Deployment_payload()(*Deployment_Deployment_payload) {
- m := &Deployment_Deployment_payload{
- }
- return m
-}
-// CreateDeployment_Deployment_payloadFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
-func CreateDeployment_Deployment_payloadFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
- result := NewDeployment_Deployment_payload()
- if parseNode != nil {
- mappingValueNode, err := parseNode.GetChildNode("")
- if err != nil {
- return nil, err
- }
- if mappingValueNode != nil {
- mappingValue, err := mappingValueNode.GetStringValue()
- if err != nil {
- return nil, err
- }
- if mappingValue != nil {
- }
- }
- }
- if val, err := parseNode.GetStringValue(); val != nil {
- if err != nil {
- return nil, err
- }
- result.SetString(val)
- }
- return result, nil
-}
-// GetDeploymentPayloadMember1 gets the deployment_payloadMember1 property value. Composed type representation for type deployment_payloadMember1
-func (m *Deployment_Deployment_payload) GetDeploymentPayloadMember1()(Deployment_payloadMember1able) {
- return m.deployment_payloadMember1
-}
-// GetFieldDeserializers the deserialization information for the current model
-func (m *Deployment_Deployment_payload) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
- return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
-}
-// GetIsComposedType determines if the current object is a wrapper around a composed type
-func (m *Deployment_Deployment_payload) GetIsComposedType()(bool) {
- return true
-}
-// GetString gets the string property value. Composed type representation for type string
-func (m *Deployment_Deployment_payload) GetString()(*string) {
- return m.string
-}
-// Serialize serializes information the current object
-func (m *Deployment_Deployment_payload) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
- if m.GetDeploymentPayloadMember1() != nil {
- err := writer.WriteObjectValue("", m.GetDeploymentPayloadMember1())
- if err != nil {
- return err
- }
- } else if m.GetString() != nil {
- err := writer.WriteStringValue("", m.GetString())
- if err != nil {
- return err
- }
- }
- return nil
-}
-// SetDeploymentPayloadMember1 sets the deployment_payloadMember1 property value. Composed type representation for type deployment_payloadMember1
-func (m *Deployment_Deployment_payload) SetDeploymentPayloadMember1(value Deployment_payloadMember1able)() {
- m.deployment_payloadMember1 = value
-}
-// SetString sets the string property value. Composed type representation for type string
-func (m *Deployment_Deployment_payload) SetString(value *string)() {
- m.string = value
-}
-// Deployment_Deployment_payloadable
-type Deployment_Deployment_payloadable interface {
- i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
- GetDeploymentPayloadMember1()(Deployment_payloadMember1able)
- GetString()(*string)
- SetDeploymentPayloadMember1(value Deployment_payloadMember1able)()
- SetString(value *string)()
-}
// NewDeployment instantiates a new deployment and sets the default values.
func NewDeployment()(*Deployment) {
m := &Deployment{
@@ -236,12 +151,12 @@ func (m *Deployment) GetFieldDeserializers()(map[string]func(i878a80d2330e89d268
return nil
}
res["payload"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
- val, err := n.GetObjectValue(CreateDeployment_Deployment_payloadFromDiscriminatorValue)
+ val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
- m.SetPayload(val.(Deployment_Deployment_payloadable))
+ m.SetPayload(val)
}
return nil
}
@@ -360,7 +275,7 @@ func (m *Deployment) GetOriginalEnvironment()(*string) {
return m.original_environment
}
// GetPayload gets the payload property value. The payload property
-func (m *Deployment) GetPayload()(Deployment_Deployment_payloadable) {
+func (m *Deployment) GetPayload()(*string) {
return m.payload
}
// GetPerformedViaGithubApp gets the performed_via_github_app property value. GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.
@@ -448,7 +363,7 @@ func (m *Deployment) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c
}
}
{
- err := writer.WriteObjectValue("payload", m.GetPayload())
+ err := writer.WriteStringValue("payload", m.GetPayload())
if err != nil {
return err
}
@@ -554,7 +469,7 @@ func (m *Deployment) SetOriginalEnvironment(value *string)() {
m.original_environment = value
}
// SetPayload sets the payload property value. The payload property
-func (m *Deployment) SetPayload(value Deployment_Deployment_payloadable)() {
+func (m *Deployment) SetPayload(value *string)() {
m.payload = value
}
// SetPerformedViaGithubApp sets the performed_via_github_app property value. GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.
@@ -608,7 +523,7 @@ type Deploymentable interface {
GetId()(*int32)
GetNodeId()(*string)
GetOriginalEnvironment()(*string)
- GetPayload()(Deployment_Deployment_payloadable)
+ GetPayload()(*string)
GetPerformedViaGithubApp()(NullableIntegrationable)
GetProductionEnvironment()(*bool)
GetRef()(*string)
@@ -626,7 +541,7 @@ type Deploymentable interface {
SetId(value *int32)()
SetNodeId(value *string)()
SetOriginalEnvironment(value *string)()
- SetPayload(value Deployment_Deployment_payloadable)()
+ SetPayload(value *string)()
SetPerformedViaGithubApp(value NullableIntegrationable)()
SetProductionEnvironment(value *bool)()
SetRef(value *string)()
diff --git a/pkg/github/models/org_ruleset_conditions.go b/pkg/github/models/org_ruleset_conditions.go
index 1c8ab529..d6524a86 100644
--- a/pkg/github/models/org_ruleset_conditions.go
+++ b/pkg/github/models/org_ruleset_conditions.go
@@ -8,14 +8,6 @@ import (
type OrgRulesetConditions struct {
// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
additionalData map[string]any
- // Composed type representation for type RepositoryRulesetConditionsForRepositoryIDs
- orgRulesetConditionsRepositoryRulesetConditionsForRepositoryIDs RepositoryRulesetConditionsForRepositoryIDsable
- // Composed type representation for type RepositoryRulesetConditionsForRepositoryNames
- orgRulesetConditionsRepositoryRulesetConditionsForRepositoryNames RepositoryRulesetConditionsForRepositoryNamesable
- // Composed type representation for type RepositoryRulesetConditionsForRepositoryIDs
- repositoryRulesetConditionsForRepositoryIDs RepositoryRulesetConditionsForRepositoryIDsable
- // Composed type representation for type RepositoryRulesetConditionsForRepositoryNames
- repositoryRulesetConditionsForRepositoryNames RepositoryRulesetConditionsForRepositoryNamesable
}
// NewOrgRulesetConditions instantiates a new orgRulesetConditions and sets the default values.
func NewOrgRulesetConditions()(*OrgRulesetConditions) {
@@ -26,22 +18,7 @@ func NewOrgRulesetConditions()(*OrgRulesetConditions) {
}
// CreateOrgRulesetConditionsFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
func CreateOrgRulesetConditionsFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
- result := NewOrgRulesetConditions()
- if parseNode != nil {
- mappingValueNode, err := parseNode.GetChildNode("")
- if err != nil {
- return nil, err
- }
- if mappingValueNode != nil {
- mappingValue, err := mappingValueNode.GetStringValue()
- if err != nil {
- return nil, err
- }
- if mappingValue != nil {
- }
- }
- }
- return result, nil
+ return NewOrgRulesetConditions(), 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.
func (m *OrgRulesetConditions) GetAdditionalData()(map[string]any) {
@@ -49,51 +26,11 @@ func (m *OrgRulesetConditions) GetAdditionalData()(map[string]any) {
}
// GetFieldDeserializers the deserialization information for the current model
func (m *OrgRulesetConditions) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
- return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
-}
-// GetIsComposedType determines if the current object is a wrapper around a composed type
-func (m *OrgRulesetConditions) GetIsComposedType()(bool) {
- return true
-}
-// GetOrgRulesetConditionsRepositoryRulesetConditionsForRepositoryIDs gets the RepositoryRulesetConditionsForRepositoryIDs property value. Composed type representation for type RepositoryRulesetConditionsForRepositoryIDs
-func (m *OrgRulesetConditions) GetOrgRulesetConditionsRepositoryRulesetConditionsForRepositoryIDs()(RepositoryRulesetConditionsForRepositoryIDsable) {
- return m.orgRulesetConditionsRepositoryRulesetConditionsForRepositoryIDs
-}
-// GetOrgRulesetConditionsRepositoryRulesetConditionsForRepositoryNames gets the RepositoryRulesetConditionsForRepositoryNames property value. Composed type representation for type RepositoryRulesetConditionsForRepositoryNames
-func (m *OrgRulesetConditions) GetOrgRulesetConditionsRepositoryRulesetConditionsForRepositoryNames()(RepositoryRulesetConditionsForRepositoryNamesable) {
- return m.orgRulesetConditionsRepositoryRulesetConditionsForRepositoryNames
-}
-// GetRepositoryRulesetConditionsForRepositoryIDs gets the RepositoryRulesetConditionsForRepositoryIDs property value. Composed type representation for type RepositoryRulesetConditionsForRepositoryIDs
-func (m *OrgRulesetConditions) GetRepositoryRulesetConditionsForRepositoryIDs()(RepositoryRulesetConditionsForRepositoryIDsable) {
- return m.repositoryRulesetConditionsForRepositoryIDs
-}
-// GetRepositoryRulesetConditionsForRepositoryNames gets the RepositoryRulesetConditionsForRepositoryNames property value. Composed type representation for type RepositoryRulesetConditionsForRepositoryNames
-func (m *OrgRulesetConditions) GetRepositoryRulesetConditionsForRepositoryNames()(RepositoryRulesetConditionsForRepositoryNamesable) {
- return m.repositoryRulesetConditionsForRepositoryNames
+ res := make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
+ return res
}
// Serialize serializes information the current object
func (m *OrgRulesetConditions) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
- if m.GetOrgRulesetConditionsRepositoryRulesetConditionsForRepositoryIDs() != nil {
- err := writer.WriteObjectValue("", m.GetOrgRulesetConditionsRepositoryRulesetConditionsForRepositoryIDs())
- if err != nil {
- return err
- }
- } else if m.GetOrgRulesetConditionsRepositoryRulesetConditionsForRepositoryNames() != nil {
- err := writer.WriteObjectValue("", m.GetOrgRulesetConditionsRepositoryRulesetConditionsForRepositoryNames())
- if err != nil {
- return err
- }
- } else if m.GetRepositoryRulesetConditionsForRepositoryIDs() != nil {
- err := writer.WriteObjectValue("", m.GetRepositoryRulesetConditionsForRepositoryIDs())
- if err != nil {
- return err
- }
- } else if m.GetRepositoryRulesetConditionsForRepositoryNames() != nil {
- err := writer.WriteObjectValue("", m.GetRepositoryRulesetConditionsForRepositoryNames())
- if err != nil {
- return err
- }
- }
{
err := writer.WriteAdditionalData(m.GetAdditionalData())
if err != nil {
@@ -106,32 +43,8 @@ func (m *OrgRulesetConditions) Serialize(writer i878a80d2330e89d26896388a3f487ee
func (m *OrgRulesetConditions) SetAdditionalData(value map[string]any)() {
m.additionalData = value
}
-// SetOrgRulesetConditionsRepositoryRulesetConditionsForRepositoryIDs sets the RepositoryRulesetConditionsForRepositoryIDs property value. Composed type representation for type RepositoryRulesetConditionsForRepositoryIDs
-func (m *OrgRulesetConditions) SetOrgRulesetConditionsRepositoryRulesetConditionsForRepositoryIDs(value RepositoryRulesetConditionsForRepositoryIDsable)() {
- m.orgRulesetConditionsRepositoryRulesetConditionsForRepositoryIDs = value
-}
-// SetOrgRulesetConditionsRepositoryRulesetConditionsForRepositoryNames sets the RepositoryRulesetConditionsForRepositoryNames property value. Composed type representation for type RepositoryRulesetConditionsForRepositoryNames
-func (m *OrgRulesetConditions) SetOrgRulesetConditionsRepositoryRulesetConditionsForRepositoryNames(value RepositoryRulesetConditionsForRepositoryNamesable)() {
- m.orgRulesetConditionsRepositoryRulesetConditionsForRepositoryNames = value
-}
-// SetRepositoryRulesetConditionsForRepositoryIDs sets the RepositoryRulesetConditionsForRepositoryIDs property value. Composed type representation for type RepositoryRulesetConditionsForRepositoryIDs
-func (m *OrgRulesetConditions) SetRepositoryRulesetConditionsForRepositoryIDs(value RepositoryRulesetConditionsForRepositoryIDsable)() {
- m.repositoryRulesetConditionsForRepositoryIDs = value
-}
-// SetRepositoryRulesetConditionsForRepositoryNames sets the RepositoryRulesetConditionsForRepositoryNames property value. Composed type representation for type RepositoryRulesetConditionsForRepositoryNames
-func (m *OrgRulesetConditions) SetRepositoryRulesetConditionsForRepositoryNames(value RepositoryRulesetConditionsForRepositoryNamesable)() {
- m.repositoryRulesetConditionsForRepositoryNames = value
-}
// OrgRulesetConditionsable
type OrgRulesetConditionsable interface {
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
- GetOrgRulesetConditionsRepositoryRulesetConditionsForRepositoryIDs()(RepositoryRulesetConditionsForRepositoryIDsable)
- GetOrgRulesetConditionsRepositoryRulesetConditionsForRepositoryNames()(RepositoryRulesetConditionsForRepositoryNamesable)
- GetRepositoryRulesetConditionsForRepositoryIDs()(RepositoryRulesetConditionsForRepositoryIDsable)
- GetRepositoryRulesetConditionsForRepositoryNames()(RepositoryRulesetConditionsForRepositoryNamesable)
- SetOrgRulesetConditionsRepositoryRulesetConditionsForRepositoryIDs(value RepositoryRulesetConditionsForRepositoryIDsable)()
- SetOrgRulesetConditionsRepositoryRulesetConditionsForRepositoryNames(value RepositoryRulesetConditionsForRepositoryNamesable)()
- SetRepositoryRulesetConditionsForRepositoryIDs(value RepositoryRulesetConditionsForRepositoryIDsable)()
- SetRepositoryRulesetConditionsForRepositoryNames(value RepositoryRulesetConditionsForRepositoryNamesable)()
}
diff --git a/pkg/github/notifications/threads_with_thread_item_request_builder.go b/pkg/github/notifications/threads_with_thread_item_request_builder.go
index 34e34db8..5ee1766d 100644
--- a/pkg/github/notifications/threads_with_thread_item_request_builder.go
+++ b/pkg/github/notifications/threads_with_thread_item_request_builder.go
@@ -10,6 +10,13 @@ import (
type ThreadsWithThread_ItemRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
+// ThreadsWithThread_ItemRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
+type ThreadsWithThread_ItemRequestBuilderDeleteRequestConfiguration struct {
+ // Request headers
+ Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
+ // Request options
+ Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
+}
// ThreadsWithThread_ItemRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
type ThreadsWithThread_ItemRequestBuilderGetRequestConfiguration struct {
// Request headers
@@ -37,6 +44,21 @@ func NewThreadsWithThread_ItemRequestBuilder(rawUrl string, requestAdapter i2ae4
urlParams["request-raw-url"] = rawUrl
return NewThreadsWithThread_ItemRequestBuilderInternal(urlParams, requestAdapter)
}
+// Delete marks a thread as "done." Marking a thread as "done" is equivalent to marking a notification in your notification inbox on GitHub as done: https://github.com/notifications.
+// [API method documentation]
+//
+// [API method documentation]: https://docs.github.com/rest/activity/notifications#mark-a-thread-as-done
+func (m *ThreadsWithThread_ItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ThreadsWithThread_ItemRequestBuilderDeleteRequestConfiguration)(error) {
+ requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration);
+ if err != nil {
+ return err
+ }
+ err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, nil)
+ if err != nil {
+ return err
+ }
+ return nil
+}
// Get gets information about a notification thread.
// [API method documentation]
//
@@ -81,6 +103,15 @@ func (m *ThreadsWithThread_ItemRequestBuilder) Patch(ctx context.Context, reques
func (m *ThreadsWithThread_ItemRequestBuilder) Subscription()(*ThreadsItemSubscriptionRequestBuilder) {
return NewThreadsItemSubscriptionRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
}
+// ToDeleteRequestInformation marks a thread as "done." Marking a thread as "done" is equivalent to marking a notification in your notification inbox on GitHub as done: https://github.com/notifications.
+func (m *ThreadsWithThread_ItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ThreadsWithThread_ItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
+ requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
+ if requestConfiguration != nil {
+ requestInfo.Headers.AddAll(requestConfiguration.Headers)
+ requestInfo.AddRequestOptions(requestConfiguration.Options)
+ }
+ return requestInfo, nil
+}
// ToGetRequestInformation gets information about a notification thread.
func (m *ThreadsWithThread_ItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ThreadsWithThread_ItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
diff --git a/pkg/github/orgs/item_interaction_limits_request_builder.go b/pkg/github/orgs/item_interaction_limits_request_builder.go
index bd11b40f..508a21fe 100644
--- a/pkg/github/orgs/item_interaction_limits_request_builder.go
+++ b/pkg/github/orgs/item_interaction_limits_request_builder.go
@@ -3,7 +3,6 @@ package orgs
import (
"context"
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
- i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models"
)
@@ -11,154 +10,6 @@ import (
type ItemInteractionLimitsRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
-// InteractionLimitsGetResponse composed type wrapper for classes interactionLimitResponse, ItemInteractionLimitsGetResponseMember1
-type InteractionLimitsGetResponse struct {
- // Composed type representation for type interactionLimitResponse
- interactionLimitResponse i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable
- // Composed type representation for type ItemInteractionLimitsGetResponseMember1
- itemInteractionLimitsGetResponseMember1 ItemInteractionLimitsGetResponseMember1able
-}
-// NewInteractionLimitsGetResponse instantiates a new interactionLimitsGetResponse and sets the default values.
-func NewInteractionLimitsGetResponse()(*InteractionLimitsGetResponse) {
- m := &InteractionLimitsGetResponse{
- }
- return m
-}
-// CreateInteractionLimitsGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
-func CreateInteractionLimitsGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
- result := NewInteractionLimitsGetResponse()
- if parseNode != nil {
- if val, err := parseNode.GetObjectValue(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateInteractionLimitResponseFromDiscriminatorValue); val != nil {
- if err != nil {
- return nil, err
- }
- if cast, ok := val.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable); ok {
- result.SetInteractionLimitResponse(cast)
- }
- } else if val, err := parseNode.GetObjectValue(CreateItemInteractionLimitsGetResponseMember1FromDiscriminatorValue); val != nil {
- if err != nil {
- return nil, err
- }
- if cast, ok := val.(ItemInteractionLimitsGetResponseMember1able); ok {
- result.SetItemInteractionLimitsGetResponseMember1(cast)
- }
- }
- }
- return result, nil
-}
-// GetFieldDeserializers the deserialization information for the current model
-func (m *InteractionLimitsGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
- return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
-}
-// GetInteractionLimitResponse gets the interactionLimitResponse property value. Composed type representation for type interactionLimitResponse
-func (m *InteractionLimitsGetResponse) GetInteractionLimitResponse()(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable) {
- return m.interactionLimitResponse
-}
-// GetIsComposedType determines if the current object is a wrapper around a composed type
-func (m *InteractionLimitsGetResponse) GetIsComposedType()(bool) {
- return true
-}
-// GetItemInteractionLimitsGetResponseMember1 gets the ItemInteractionLimitsGetResponseMember1 property value. Composed type representation for type ItemInteractionLimitsGetResponseMember1
-func (m *InteractionLimitsGetResponse) GetItemInteractionLimitsGetResponseMember1()(ItemInteractionLimitsGetResponseMember1able) {
- return m.itemInteractionLimitsGetResponseMember1
-}
-// Serialize serializes information the current object
-func (m *InteractionLimitsGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
- if m.GetInteractionLimitResponse() != nil {
- err := writer.WriteObjectValue("", m.GetInteractionLimitResponse())
- if err != nil {
- return err
- }
- } else if m.GetItemInteractionLimitsGetResponseMember1() != nil {
- err := writer.WriteObjectValue("", m.GetItemInteractionLimitsGetResponseMember1())
- if err != nil {
- return err
- }
- }
- return nil
-}
-// SetInteractionLimitResponse sets the interactionLimitResponse property value. Composed type representation for type interactionLimitResponse
-func (m *InteractionLimitsGetResponse) SetInteractionLimitResponse(value i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable)() {
- m.interactionLimitResponse = value
-}
-// SetItemInteractionLimitsGetResponseMember1 sets the ItemInteractionLimitsGetResponseMember1 property value. Composed type representation for type ItemInteractionLimitsGetResponseMember1
-func (m *InteractionLimitsGetResponse) SetItemInteractionLimitsGetResponseMember1(value ItemInteractionLimitsGetResponseMember1able)() {
- m.itemInteractionLimitsGetResponseMember1 = value
-}
-// InteractionLimitsResponse composed type wrapper for classes interactionLimitResponse, ItemInteractionLimitsGetResponseMember1
-type InteractionLimitsResponse struct {
- // Composed type representation for type interactionLimitResponse
- interactionLimitResponse i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable
- // Composed type representation for type ItemInteractionLimitsGetResponseMember1
- itemInteractionLimitsGetResponseMember1 ItemInteractionLimitsGetResponseMember1able
-}
-// NewInteractionLimitsResponse instantiates a new interactionLimitsResponse and sets the default values.
-func NewInteractionLimitsResponse()(*InteractionLimitsResponse) {
- m := &InteractionLimitsResponse{
- }
- return m
-}
-// CreateInteractionLimitsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
-func CreateInteractionLimitsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
- result := NewInteractionLimitsResponse()
- if parseNode != nil {
- if val, err := parseNode.GetObjectValue(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateInteractionLimitResponseFromDiscriminatorValue); val != nil {
- if err != nil {
- return nil, err
- }
- if cast, ok := val.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable); ok {
- result.SetInteractionLimitResponse(cast)
- }
- } else if val, err := parseNode.GetObjectValue(CreateItemInteractionLimitsGetResponseMember1FromDiscriminatorValue); val != nil {
- if err != nil {
- return nil, err
- }
- if cast, ok := val.(ItemInteractionLimitsGetResponseMember1able); ok {
- result.SetItemInteractionLimitsGetResponseMember1(cast)
- }
- }
- }
- return result, nil
-}
-// GetFieldDeserializers the deserialization information for the current model
-func (m *InteractionLimitsResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
- return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
-}
-// GetInteractionLimitResponse gets the interactionLimitResponse property value. Composed type representation for type interactionLimitResponse
-func (m *InteractionLimitsResponse) GetInteractionLimitResponse()(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable) {
- return m.interactionLimitResponse
-}
-// GetIsComposedType determines if the current object is a wrapper around a composed type
-func (m *InteractionLimitsResponse) GetIsComposedType()(bool) {
- return true
-}
-// GetItemInteractionLimitsGetResponseMember1 gets the ItemInteractionLimitsGetResponseMember1 property value. Composed type representation for type ItemInteractionLimitsGetResponseMember1
-func (m *InteractionLimitsResponse) GetItemInteractionLimitsGetResponseMember1()(ItemInteractionLimitsGetResponseMember1able) {
- return m.itemInteractionLimitsGetResponseMember1
-}
-// Serialize serializes information the current object
-func (m *InteractionLimitsResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
- if m.GetInteractionLimitResponse() != nil {
- err := writer.WriteObjectValue("", m.GetInteractionLimitResponse())
- if err != nil {
- return err
- }
- } else if m.GetItemInteractionLimitsGetResponseMember1() != nil {
- err := writer.WriteObjectValue("", m.GetItemInteractionLimitsGetResponseMember1())
- if err != nil {
- return err
- }
- }
- return nil
-}
-// SetInteractionLimitResponse sets the interactionLimitResponse property value. Composed type representation for type interactionLimitResponse
-func (m *InteractionLimitsResponse) SetInteractionLimitResponse(value i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable)() {
- m.interactionLimitResponse = value
-}
-// SetItemInteractionLimitsGetResponseMember1 sets the ItemInteractionLimitsGetResponseMember1 property value. Composed type representation for type ItemInteractionLimitsGetResponseMember1
-func (m *InteractionLimitsResponse) SetItemInteractionLimitsGetResponseMember1(value ItemInteractionLimitsGetResponseMember1able)() {
- m.itemInteractionLimitsGetResponseMember1 = value
-}
// ItemInteractionLimitsRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
type ItemInteractionLimitsRequestBuilderDeleteRequestConfiguration struct {
// Request headers
@@ -180,22 +31,6 @@ type ItemInteractionLimitsRequestBuilderPutRequestConfiguration struct {
// Request options
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
}
-// InteractionLimitsGetResponseable
-type InteractionLimitsGetResponseable interface {
- i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
- GetInteractionLimitResponse()(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable)
- GetItemInteractionLimitsGetResponseMember1()(ItemInteractionLimitsGetResponseMember1able)
- SetInteractionLimitResponse(value i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable)()
- SetItemInteractionLimitsGetResponseMember1(value ItemInteractionLimitsGetResponseMember1able)()
-}
-// InteractionLimitsResponseable
-type InteractionLimitsResponseable interface {
- i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
- GetInteractionLimitResponse()(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable)
- GetItemInteractionLimitsGetResponseMember1()(ItemInteractionLimitsGetResponseMember1able)
- SetInteractionLimitResponse(value i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable)()
- SetItemInteractionLimitsGetResponseMember1(value ItemInteractionLimitsGetResponseMember1able)()
-}
// NewItemInteractionLimitsRequestBuilderInternal instantiates a new InteractionLimitsRequestBuilder and sets the default values.
func NewItemInteractionLimitsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemInteractionLimitsRequestBuilder) {
m := &ItemInteractionLimitsRequestBuilder{
@@ -225,41 +60,22 @@ func (m *ItemInteractionLimitsRequestBuilder) Delete(ctx context.Context, reques
return nil
}
// Get shows which type of GitHub user can interact with this organization and when the restriction expires. If there is no restrictions, you will see an empty response.
-// Deprecated: This method is obsolete. Use GetAsInteractionLimitsGetResponse instead.
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/interactions/orgs#get-interaction-restrictions-for-an-organization
-func (m *ItemInteractionLimitsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInteractionLimitsRequestBuilderGetRequestConfiguration)(InteractionLimitsResponseable, error) {
+func (m *ItemInteractionLimitsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemInteractionLimitsRequestBuilderGetRequestConfiguration)(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable, error) {
requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration);
if err != nil {
return nil, err
}
- res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateInteractionLimitsResponseFromDiscriminatorValue, nil)
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateInteractionLimitResponseFromDiscriminatorValue, nil)
if err != nil {
return nil, err
}
if res == nil {
return nil, nil
}
- return res.(InteractionLimitsResponseable), nil
-}
-// GetAsInteractionLimitsGetResponse shows which type of GitHub user can interact with this organization and when the restriction expires. If there is no restrictions, you will see an empty response.
-// [API method documentation]
-//
-// [API method documentation]: https://docs.github.com/rest/interactions/orgs#get-interaction-restrictions-for-an-organization
-func (m *ItemInteractionLimitsRequestBuilder) GetAsInteractionLimitsGetResponse(ctx context.Context, requestConfiguration *ItemInteractionLimitsRequestBuilderGetRequestConfiguration)(InteractionLimitsGetResponseable, error) {
- requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration);
- if err != nil {
- return nil, err
- }
- res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateInteractionLimitsGetResponseFromDiscriminatorValue, nil)
- if err != nil {
- return nil, err
- }
- if res == nil {
- return nil, nil
- }
- return res.(InteractionLimitsGetResponseable), nil
+ return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable), nil
}
// Put temporarily restricts interactions to a certain type of GitHub user in any public repository in the given organization. You must be an organization owner to set these restrictions. Setting the interaction limit at the organization level will overwrite any interaction limits that are set for individual repositories owned by the organization.
// [API method documentation]
diff --git a/pkg/github/orgs/item_properties_schema_request_builder.go b/pkg/github/orgs/item_properties_schema_request_builder.go
index d020ca8f..8887740b 100644
--- a/pkg/github/orgs/item_properties_schema_request_builder.go
+++ b/pkg/github/orgs/item_properties_schema_request_builder.go
@@ -48,7 +48,7 @@ func NewItemPropertiesSchemaRequestBuilder(rawUrl string, requestAdapter i2ae418
urlParams["request-raw-url"] = rawUrl
return NewItemPropertiesSchemaRequestBuilderInternal(urlParams, requestAdapter)
}
-// Get gets all custom properties defined for an organization.You must be an organization owner to use this endpoint.
+// Get gets all custom properties defined for an organization.Organization members can read these properties.GitHub Apps must have the `organization_custom_properties:read` organization permission to use this endpoint.
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/orgs/custom-properties#get-all-custom-properties-for-an-organization
@@ -73,7 +73,7 @@ func (m *ItemPropertiesSchemaRequestBuilder) Get(ctx context.Context, requestCon
}
return val, nil
}
-// Patch creates new or updates existing custom properties defined for an organization in a batch.Only organization owners (or users with the proper permissions granted by them) can update these properties
+// Patch creates new or updates existing custom properties defined for an organization in a batch.To use this endpoint, the authenticated user must be one of: - An administrator for the organization. - A user, or a user on a team, with the fine-grained permission of `custom_properties_org_definitions_manager` in the organization.GitHub Apps must have the `organization_custom_properties:admin` organization permission to use this endpoint.
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/orgs/custom-properties#create-or-update-custom-properties-for-an-organization
@@ -98,7 +98,7 @@ func (m *ItemPropertiesSchemaRequestBuilder) Patch(ctx context.Context, body Ite
}
return val, nil
}
-// ToGetRequestInformation gets all custom properties defined for an organization.You must be an organization owner to use this endpoint.
+// ToGetRequestInformation gets all custom properties defined for an organization.Organization members can read these properties.GitHub Apps must have the `organization_custom_properties:read` organization permission to use this endpoint.
func (m *ItemPropertiesSchemaRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPropertiesSchemaRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
if requestConfiguration != nil {
@@ -108,7 +108,7 @@ func (m *ItemPropertiesSchemaRequestBuilder) ToGetRequestInformation(ctx context
requestInfo.Headers.TryAdd("Accept", "application/json")
return requestInfo, nil
}
-// ToPatchRequestInformation creates new or updates existing custom properties defined for an organization in a batch.Only organization owners (or users with the proper permissions granted by them) can update these properties
+// ToPatchRequestInformation creates new or updates existing custom properties defined for an organization in a batch.To use this endpoint, the authenticated user must be one of: - An administrator for the organization. - A user, or a user on a team, with the fine-grained permission of `custom_properties_org_definitions_manager` in the organization.GitHub Apps must have the `organization_custom_properties:admin` organization permission to use this endpoint.
func (m *ItemPropertiesSchemaRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ItemPropertiesSchemaPatchRequestBodyable, requestConfiguration *ItemPropertiesSchemaRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
if requestConfiguration != nil {
diff --git a/pkg/github/orgs/item_properties_schema_with_custom_property_name_item_request_builder.go b/pkg/github/orgs/item_properties_schema_with_custom_property_name_item_request_builder.go
index 35cd4ee2..ff3ae24a 100644
--- a/pkg/github/orgs/item_properties_schema_with_custom_property_name_item_request_builder.go
+++ b/pkg/github/orgs/item_properties_schema_with_custom_property_name_item_request_builder.go
@@ -44,7 +44,7 @@ func NewItemPropertiesSchemaWithCustom_property_nameItemRequestBuilder(rawUrl st
urlParams["request-raw-url"] = rawUrl
return NewItemPropertiesSchemaWithCustom_property_nameItemRequestBuilderInternal(urlParams, requestAdapter)
}
-// Delete removes a custom property that is defined for an organization.You must be an organization owner to use this endpoint.
+// Delete removes a custom property that is defined for an organization.To use this endpoint, the authenticated user must be one of: - An administrator for the organization. - A user, or a user on a team, with the fine-grained permission of `custom_properties_org_definitions_manager` in the organization.GitHub Apps must have the `organization_custom_properties:admin` organization permission to use this endpoint.
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/orgs/custom-properties#remove-a-custom-property-for-an-organization
@@ -63,7 +63,7 @@ func (m *ItemPropertiesSchemaWithCustom_property_nameItemRequestBuilder) Delete(
}
return nil
}
-// Get gets a custom property that is defined for an organization.You must be an organization owner to use this endpoint.
+// Get gets a custom property that is defined for an organization.Organization members can read these properties.GitHub Apps must have the `organization_custom_properties:read` organization permission to use this endpoint.
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/orgs/custom-properties#get-a-custom-property-for-an-organization
@@ -85,7 +85,7 @@ func (m *ItemPropertiesSchemaWithCustom_property_nameItemRequestBuilder) Get(ctx
}
return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.OrgCustomPropertyable), nil
}
-// Put creates a new or updates an existing custom property that is defined for an organization.You must be an organization owner to use this endpoint.
+// Put creates a new or updates an existing custom property that is defined for an organization.To use this endpoint, the authenticated user must be one of:- An administrator for the organization.- A user, or a user on a team, with the fine-grained permission of `custom_properties_org_definitions_manager` in the organization.GitHub Apps must have the `organization_custom_properties:admin` organization permission to use this endpoint.
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/orgs/custom-properties#create-or-update-a-custom-property-for-an-organization
@@ -107,7 +107,7 @@ func (m *ItemPropertiesSchemaWithCustom_property_nameItemRequestBuilder) Put(ctx
}
return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.OrgCustomPropertyable), nil
}
-// ToDeleteRequestInformation removes a custom property that is defined for an organization.You must be an organization owner to use this endpoint.
+// ToDeleteRequestInformation removes a custom property that is defined for an organization.To use this endpoint, the authenticated user must be one of: - An administrator for the organization. - A user, or a user on a team, with the fine-grained permission of `custom_properties_org_definitions_manager` in the organization.GitHub Apps must have the `organization_custom_properties:admin` organization permission to use this endpoint.
func (m *ItemPropertiesSchemaWithCustom_property_nameItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemPropertiesSchemaWithCustom_property_nameItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
if requestConfiguration != nil {
@@ -117,7 +117,7 @@ func (m *ItemPropertiesSchemaWithCustom_property_nameItemRequestBuilder) ToDelet
requestInfo.Headers.TryAdd("Accept", "application/json")
return requestInfo, nil
}
-// ToGetRequestInformation gets a custom property that is defined for an organization.You must be an organization owner to use this endpoint.
+// ToGetRequestInformation gets a custom property that is defined for an organization.Organization members can read these properties.GitHub Apps must have the `organization_custom_properties:read` organization permission to use this endpoint.
func (m *ItemPropertiesSchemaWithCustom_property_nameItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPropertiesSchemaWithCustom_property_nameItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
if requestConfiguration != nil {
@@ -127,7 +127,7 @@ func (m *ItemPropertiesSchemaWithCustom_property_nameItemRequestBuilder) ToGetRe
requestInfo.Headers.TryAdd("Accept", "application/json")
return requestInfo, nil
}
-// ToPutRequestInformation creates a new or updates an existing custom property that is defined for an organization.You must be an organization owner to use this endpoint.
+// ToPutRequestInformation creates a new or updates an existing custom property that is defined for an organization.To use this endpoint, the authenticated user must be one of:- An administrator for the organization.- A user, or a user on a team, with the fine-grained permission of `custom_properties_org_definitions_manager` in the organization.GitHub Apps must have the `organization_custom_properties:admin` organization permission to use this endpoint.
func (m *ItemPropertiesSchemaWithCustom_property_nameItemRequestBuilder) ToPutRequestInformation(ctx context.Context, body ItemPropertiesSchemaItemWithCustom_property_namePutRequestBodyable, requestConfiguration *ItemPropertiesSchemaWithCustom_property_nameItemRequestBuilderPutRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PUT, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
if requestConfiguration != nil {
diff --git a/pkg/github/orgs/item_properties_values_request_builder.go b/pkg/github/orgs/item_properties_values_request_builder.go
index b4ddacd2..9bb29dfa 100644
--- a/pkg/github/orgs/item_properties_values_request_builder.go
+++ b/pkg/github/orgs/item_properties_values_request_builder.go
@@ -10,7 +10,7 @@ import (
type ItemPropertiesValuesRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
-// ItemPropertiesValuesRequestBuilderGetQueryParameters lists organization repositories with all of their custom property values.Organization members can read these properties.
+// ItemPropertiesValuesRequestBuilderGetQueryParameters lists organization repositories with all of their custom property values.Organization members can read these properties.GitHub Apps must have the `organization_custom_properties:read` organization permission to use this endpoint.
type ItemPropertiesValuesRequestBuilderGetQueryParameters struct {
// Page number of the results to fetch.
Page *int32 `uriparametername:"page"`
@@ -48,7 +48,7 @@ func NewItemPropertiesValuesRequestBuilder(rawUrl string, requestAdapter i2ae418
urlParams["request-raw-url"] = rawUrl
return NewItemPropertiesValuesRequestBuilderInternal(urlParams, requestAdapter)
}
-// Get lists organization repositories with all of their custom property values.Organization members can read these properties.
+// Get lists organization repositories with all of their custom property values.Organization members can read these properties.GitHub Apps must have the `organization_custom_properties:read` organization permission to use this endpoint.
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/orgs/custom-properties#list-custom-property-values-for-organization-repositories
@@ -73,7 +73,7 @@ func (m *ItemPropertiesValuesRequestBuilder) Get(ctx context.Context, requestCon
}
return val, nil
}
-// Patch create new or update existing custom property values for repositories in a batch that belong to an organization.Each target repository will have its custom property values updated to match the values provided in the request.A maximum of 30 repositories can be updated in a single request.Using a value of `null` for a custom property will remove or 'unset' the property value from the repository.Only organization owners (or users with the proper permissions granted by them) can update these properties
+// Patch create new or update existing custom property values for repositories in a batch that belong to an organization.Each target repository will have its custom property values updated to match the values provided in the request.A maximum of 30 repositories can be updated in a single request.Using a value of `null` for a custom property will remove or 'unset' the property value from the repository.To use this endpoint, the authenticated user must be one of: - An administrator for the organization. - A user, or a user on a team, with the fine-grained permission of `custom_properties_org_values_editor` in the organization.GitHub Apps must have the `organization_custom_properties:write` organization permission to use this endpoint.
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/orgs/custom-properties#create-or-update-custom-property-values-for-organization-repositories
@@ -92,7 +92,7 @@ func (m *ItemPropertiesValuesRequestBuilder) Patch(ctx context.Context, body Ite
}
return nil
}
-// ToGetRequestInformation lists organization repositories with all of their custom property values.Organization members can read these properties.
+// ToGetRequestInformation lists organization repositories with all of their custom property values.Organization members can read these properties.GitHub Apps must have the `organization_custom_properties:read` organization permission to use this endpoint.
func (m *ItemPropertiesValuesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemPropertiesValuesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
if requestConfiguration != nil {
@@ -105,7 +105,7 @@ func (m *ItemPropertiesValuesRequestBuilder) ToGetRequestInformation(ctx context
requestInfo.Headers.TryAdd("Accept", "application/json")
return requestInfo, nil
}
-// ToPatchRequestInformation create new or update existing custom property values for repositories in a batch that belong to an organization.Each target repository will have its custom property values updated to match the values provided in the request.A maximum of 30 repositories can be updated in a single request.Using a value of `null` for a custom property will remove or 'unset' the property value from the repository.Only organization owners (or users with the proper permissions granted by them) can update these properties
+// ToPatchRequestInformation create new or update existing custom property values for repositories in a batch that belong to an organization.Each target repository will have its custom property values updated to match the values provided in the request.A maximum of 30 repositories can be updated in a single request.Using a value of `null` for a custom property will remove or 'unset' the property value from the repository.To use this endpoint, the authenticated user must be one of: - An administrator for the organization. - A user, or a user on a team, with the fine-grained permission of `custom_properties_org_values_editor` in the organization.GitHub Apps must have the `organization_custom_properties:write` organization permission to use this endpoint.
func (m *ItemPropertiesValuesRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ItemPropertiesValuesPatchRequestBodyable, requestConfiguration *ItemPropertiesValuesRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
if requestConfiguration != nil {
diff --git a/pkg/github/repos/item_item_check_runs_item_annotations_request_builder.go b/pkg/github/repos/item_item_check_runs_item_annotations_request_builder.go
index 14281ff3..a0f034fb 100644
--- a/pkg/github/repos/item_item_check_runs_item_annotations_request_builder.go
+++ b/pkg/github/repos/item_item_check_runs_item_annotations_request_builder.go
@@ -10,7 +10,7 @@ import (
type ItemItemCheckRunsItemAnnotationsRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
-// ItemItemCheckRunsItemAnnotationsRequestBuilderGetQueryParameters lists annotations for a check run using the annotation `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get annotations for a check run. OAuth apps and authenticated users must have the `repo` scope to get annotations for a check run in a private repository.
+// ItemItemCheckRunsItemAnnotationsRequestBuilderGetQueryParameters lists annotations for a check run using the annotation `id`.GitHub Appsmust have the `checks:read` permission on a private repository or pull access toa public repository to get annotations for a check run. OAuth apps and authenticatedusers must have the `repo` scope to get annotations for a check run in a privaterepository.
type ItemItemCheckRunsItemAnnotationsRequestBuilderGetQueryParameters struct {
// Page number of the results to fetch.
Page *int32 `uriparametername:"page"`
@@ -39,7 +39,7 @@ func NewItemItemCheckRunsItemAnnotationsRequestBuilder(rawUrl string, requestAda
urlParams["request-raw-url"] = rawUrl
return NewItemItemCheckRunsItemAnnotationsRequestBuilderInternal(urlParams, requestAdapter)
}
-// Get lists annotations for a check run using the annotation `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get annotations for a check run. OAuth apps and authenticated users must have the `repo` scope to get annotations for a check run in a private repository.
+// Get lists annotations for a check run using the annotation `id`.GitHub Appsmust have the `checks:read` permission on a private repository or pull access toa public repository to get annotations for a check run. OAuth apps and authenticatedusers must have the `repo` scope to get annotations for a check run in a privaterepository.
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/checks/runs#list-check-run-annotations
@@ -60,7 +60,7 @@ func (m *ItemItemCheckRunsItemAnnotationsRequestBuilder) Get(ctx context.Context
}
return val, nil
}
-// ToGetRequestInformation lists annotations for a check run using the annotation `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get annotations for a check run. OAuth apps and authenticated users must have the `repo` scope to get annotations for a check run in a private repository.
+// ToGetRequestInformation lists annotations for a check run using the annotation `id`.GitHub Appsmust have the `checks:read` permission on a private repository or pull access toa public repository to get annotations for a check run. OAuth apps and authenticatedusers must have the `repo` scope to get annotations for a check run in a privaterepository.
func (m *ItemItemCheckRunsItemAnnotationsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemCheckRunsItemAnnotationsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
if requestConfiguration != nil {
diff --git a/pkg/github/repos/item_item_check_runs_item_rerequest_request_builder.go b/pkg/github/repos/item_item_check_runs_item_rerequest_request_builder.go
index da2857c5..e51677e6 100644
--- a/pkg/github/repos/item_item_check_runs_item_rerequest_request_builder.go
+++ b/pkg/github/repos/item_item_check_runs_item_rerequest_request_builder.go
@@ -30,7 +30,7 @@ func NewItemItemCheckRunsItemRerequestRequestBuilder(rawUrl string, requestAdapt
urlParams["request-raw-url"] = rawUrl
return NewItemItemCheckRunsItemRerequestRequestBuilderInternal(urlParams, requestAdapter)
}
-// Post triggers GitHub to rerequest an existing check run, without pushing new code to a repository. This endpoint will trigger the [`check_run` webhook](https://docs.github.com/webhooks/event-payloads/#check_run) event with the action `rerequested`. When a check run is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared.To rerequest a check run, your GitHub App must have the `checks:read` permission on a private repository or pull access to a public repository.For more information about how to re-run GitHub Actions jobs, see "[Re-run a job from a workflow run](https://docs.github.com/rest/actions/workflow-runs#re-run-a-job-from-a-workflow-run)".
+// Post triggers GitHub to rerequest an existing check run, without pushing new code to a repository. This endpoint will trigger the [`check_run` webhook](https://docs.github.com/webhooks/event-payloads/#check_run) event with the action `rerequested`. When a check run is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared.To rerequest a check run, you must use a GitHub App with the `checks:read` permission on a private repository or pull access to a public repository. OAuth apps and authenticated users are not able to rerequest a check run.For more information about how to re-run GitHub Actions jobs, see "[Re-run a job from a workflow run](https://docs.github.com/rest/actions/workflow-runs#re-run-a-job-from-a-workflow-run)".
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/checks/runs#rerequest-a-check-run
@@ -53,7 +53,7 @@ func (m *ItemItemCheckRunsItemRerequestRequestBuilder) Post(ctx context.Context,
}
return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.EmptyObjectable), nil
}
-// ToPostRequestInformation triggers GitHub to rerequest an existing check run, without pushing new code to a repository. This endpoint will trigger the [`check_run` webhook](https://docs.github.com/webhooks/event-payloads/#check_run) event with the action `rerequested`. When a check run is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared.To rerequest a check run, your GitHub App must have the `checks:read` permission on a private repository or pull access to a public repository.For more information about how to re-run GitHub Actions jobs, see "[Re-run a job from a workflow run](https://docs.github.com/rest/actions/workflow-runs#re-run-a-job-from-a-workflow-run)".
+// ToPostRequestInformation triggers GitHub to rerequest an existing check run, without pushing new code to a repository. This endpoint will trigger the [`check_run` webhook](https://docs.github.com/webhooks/event-payloads/#check_run) event with the action `rerequested`. When a check run is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared.To rerequest a check run, you must use a GitHub App with the `checks:read` permission on a private repository or pull access to a public repository. OAuth apps and authenticated users are not able to rerequest a check run.For more information about how to re-run GitHub Actions jobs, see "[Re-run a job from a workflow run](https://docs.github.com/rest/actions/workflow-runs#re-run-a-job-from-a-workflow-run)".
func (m *ItemItemCheckRunsItemRerequestRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemItemCheckRunsItemRerequestRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
if requestConfiguration != nil {
diff --git a/pkg/github/repos/item_item_check_runs_request_builder.go b/pkg/github/repos/item_item_check_runs_request_builder.go
index d9ad86a6..76fb8e87 100644
--- a/pkg/github/repos/item_item_check_runs_request_builder.go
+++ b/pkg/github/repos/item_item_check_runs_request_builder.go
@@ -166,7 +166,7 @@ func NewItemItemCheckRunsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7
urlParams["request-raw-url"] = rawUrl
return NewItemItemCheckRunsRequestBuilderInternal(urlParams, requestAdapter)
}
-// Post **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.Creates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs.In a check suite, GitHub limits the number of check runs with the same name to 1000. Once these check runs exceed 1000, GitHub will start to automatically delete older check runs.
+// Post creates a new check run for a specific commit in a repository.To create a check run, you must use a GitHub App with the `checks:write` permission. OAuth apps and authenticated users are not able to create a check suite.In a check suite, GitHub limits the number of check runs with the same name to 1000. Once these check runs exceed 1000, GitHub will start to automatically delete older check runs.**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/checks/runs#create-a-check-run
@@ -184,7 +184,7 @@ func (m *ItemItemCheckRunsRequestBuilder) Post(ctx context.Context, body CheckRu
}
return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CheckRunable), nil
}
-// ToPostRequestInformation **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.Creates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs.In a check suite, GitHub limits the number of check runs with the same name to 1000. Once these check runs exceed 1000, GitHub will start to automatically delete older check runs.
+// ToPostRequestInformation creates a new check run for a specific commit in a repository.To create a check run, you must use a GitHub App with the `checks:write` permission. OAuth apps and authenticated users are not able to create a check suite.In a check suite, GitHub limits the number of check runs with the same name to 1000. Once these check runs exceed 1000, GitHub will start to automatically delete older check runs.**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.
func (m *ItemItemCheckRunsRequestBuilder) ToPostRequestInformation(ctx context.Context, body CheckRunsPostRequestBodyable, requestConfiguration *ItemItemCheckRunsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
if requestConfiguration != nil {
diff --git a/pkg/github/repos/item_item_check_runs_with_check_run_item_request_builder.go b/pkg/github/repos/item_item_check_runs_with_check_run_item_request_builder.go
index 074d453f..ab3061e2 100644
--- a/pkg/github/repos/item_item_check_runs_with_check_run_item_request_builder.go
+++ b/pkg/github/repos/item_item_check_runs_with_check_run_item_request_builder.go
@@ -172,7 +172,7 @@ func NewItemItemCheckRunsWithCheck_run_ItemRequestBuilder(rawUrl string, request
urlParams["request-raw-url"] = rawUrl
return NewItemItemCheckRunsWithCheck_run_ItemRequestBuilderInternal(urlParams, requestAdapter)
}
-// Get **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.Gets a single check run using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository.
+// Get gets a single check run using its `id`.GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository.**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/checks/runs#get-a-check-run
@@ -190,7 +190,7 @@ func (m *ItemItemCheckRunsWithCheck_run_ItemRequestBuilder) Get(ctx context.Cont
}
return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CheckRunable), nil
}
-// Patch updates a check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to edit check runs.**Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.
+// Patch updates a check run for a specific commit in a repository.To update a check run, you must use a GitHub App with the `checks:write` permission. OAuth apps and authenticated users are not able to update a check run.**Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/checks/runs#update-a-check-run
@@ -212,7 +212,7 @@ func (m *ItemItemCheckRunsWithCheck_run_ItemRequestBuilder) Patch(ctx context.Co
func (m *ItemItemCheckRunsWithCheck_run_ItemRequestBuilder) Rerequest()(*ItemItemCheckRunsItemRerequestRequestBuilder) {
return NewItemItemCheckRunsItemRerequestRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
}
-// ToGetRequestInformation **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.Gets a single check run using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository.
+// ToGetRequestInformation gets a single check run using its `id`.GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository.**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.
func (m *ItemItemCheckRunsWithCheck_run_ItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemCheckRunsWithCheck_run_ItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
if requestConfiguration != nil {
@@ -222,7 +222,7 @@ func (m *ItemItemCheckRunsWithCheck_run_ItemRequestBuilder) ToGetRequestInformat
requestInfo.Headers.TryAdd("Accept", "application/json")
return requestInfo, nil
}
-// ToPatchRequestInformation updates a check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to edit check runs.**Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.
+// ToPatchRequestInformation updates a check run for a specific commit in a repository.To update a check run, you must use a GitHub App with the `checks:write` permission. OAuth apps and authenticated users are not able to update a check run.**Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.
func (m *ItemItemCheckRunsWithCheck_run_ItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body WithCheck_run_PatchRequestBodyable, requestConfiguration *ItemItemCheckRunsWithCheck_run_ItemRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
if requestConfiguration != nil {
diff --git a/pkg/github/repos/item_item_check_suites_item_check_runs_request_builder.go b/pkg/github/repos/item_item_check_suites_item_check_runs_request_builder.go
index f3857d9b..478cb895 100644
--- a/pkg/github/repos/item_item_check_suites_item_check_runs_request_builder.go
+++ b/pkg/github/repos/item_item_check_suites_item_check_runs_request_builder.go
@@ -10,7 +10,7 @@ import (
type ItemItemCheckSuitesItemCheckRunsRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
-// ItemItemCheckSuitesItemCheckRunsRequestBuilderGetQueryParameters lists check runs for a check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository.**Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.
+// ItemItemCheckSuitesItemCheckRunsRequestBuilderGetQueryParameters lists check runs for a check suite using its `id`.GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository.**Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.
type ItemItemCheckSuitesItemCheckRunsRequestBuilderGetQueryParameters struct {
// Returns check runs with the specified `name`.
Check_name *string `uriparametername:"check_name"`
@@ -51,7 +51,7 @@ func NewItemItemCheckSuitesItemCheckRunsRequestBuilder(rawUrl string, requestAda
urlParams["request-raw-url"] = rawUrl
return NewItemItemCheckSuitesItemCheckRunsRequestBuilderInternal(urlParams, requestAdapter)
}
-// Get lists check runs for a check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository.**Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.
+// Get lists check runs for a check suite using its `id`.GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository.**Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.
// Deprecated: This method is obsolete. Use GetAsCheckRunsGetResponse instead.
// [API method documentation]
//
@@ -70,7 +70,7 @@ func (m *ItemItemCheckSuitesItemCheckRunsRequestBuilder) Get(ctx context.Context
}
return res.(ItemItemCheckSuitesItemCheckRunsResponseable), nil
}
-// GetAsCheckRunsGetResponse lists check runs for a check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository.**Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.
+// GetAsCheckRunsGetResponse lists check runs for a check suite using its `id`.GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository.**Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/checks/runs#list-check-runs-in-a-check-suite
@@ -88,7 +88,7 @@ func (m *ItemItemCheckSuitesItemCheckRunsRequestBuilder) GetAsCheckRunsGetRespon
}
return res.(ItemItemCheckSuitesItemCheckRunsGetResponseable), nil
}
-// ToGetRequestInformation lists check runs for a check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository.**Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.
+// ToGetRequestInformation lists check runs for a check suite using its `id`.GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository.**Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.
func (m *ItemItemCheckSuitesItemCheckRunsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemCheckSuitesItemCheckRunsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
if requestConfiguration != nil {
diff --git a/pkg/github/repos/item_item_check_suites_item_rerequest_request_builder.go b/pkg/github/repos/item_item_check_suites_item_rerequest_request_builder.go
index b6f96b69..4fb0595b 100644
--- a/pkg/github/repos/item_item_check_suites_item_rerequest_request_builder.go
+++ b/pkg/github/repos/item_item_check_suites_item_rerequest_request_builder.go
@@ -30,7 +30,7 @@ func NewItemItemCheckSuitesItemRerequestRequestBuilder(rawUrl string, requestAda
urlParams["request-raw-url"] = rawUrl
return NewItemItemCheckSuitesItemRerequestRequestBuilderInternal(urlParams, requestAdapter)
}
-// Post triggers GitHub to rerequest an existing check suite, without pushing new code to a repository. This endpoint will trigger the [`check_suite` webhook](https://docs.github.com/webhooks/event-payloads/#check_suite) event with the action `rerequested`. When a check suite is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared.To rerequest a check suite, your GitHub App must have the `checks:write` permission on a private repository or pull access to a public repository.
+// Post triggers GitHub to rerequest an existing check suite, without pushing new code to a repository. This endpoint will trigger the [`check_suite` webhook](https://docs.github.com/webhooks/event-payloads/#check_suite) event with the action `rerequested`. When a check suite is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared.To rerequest a check suite, you must use a GitHub App with the `checks:write` permission on a private repository or pull access to a public repository. OAuth apps and authenticated users are not able to rerequest a check suite.
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/checks/suites#rerequest-a-check-suite
@@ -48,7 +48,7 @@ func (m *ItemItemCheckSuitesItemRerequestRequestBuilder) Post(ctx context.Contex
}
return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.EmptyObjectable), nil
}
-// ToPostRequestInformation triggers GitHub to rerequest an existing check suite, without pushing new code to a repository. This endpoint will trigger the [`check_suite` webhook](https://docs.github.com/webhooks/event-payloads/#check_suite) event with the action `rerequested`. When a check suite is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared.To rerequest a check suite, your GitHub App must have the `checks:write` permission on a private repository or pull access to a public repository.
+// ToPostRequestInformation triggers GitHub to rerequest an existing check suite, without pushing new code to a repository. This endpoint will trigger the [`check_suite` webhook](https://docs.github.com/webhooks/event-payloads/#check_suite) event with the action `rerequested`. When a check suite is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared.To rerequest a check suite, you must use a GitHub App with the `checks:write` permission on a private repository or pull access to a public repository. OAuth apps and authenticated users are not able to rerequest a check suite.
func (m *ItemItemCheckSuitesItemRerequestRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemItemCheckSuitesItemRerequestRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
if requestConfiguration != nil {
diff --git a/pkg/github/repos/item_item_check_suites_preferences_request_builder.go b/pkg/github/repos/item_item_check_suites_preferences_request_builder.go
index 01265e1d..284489b8 100644
--- a/pkg/github/repos/item_item_check_suites_preferences_request_builder.go
+++ b/pkg/github/repos/item_item_check_suites_preferences_request_builder.go
@@ -30,7 +30,7 @@ func NewItemItemCheckSuitesPreferencesRequestBuilder(rawUrl string, requestAdapt
urlParams["request-raw-url"] = rawUrl
return NewItemItemCheckSuitesPreferencesRequestBuilderInternal(urlParams, requestAdapter)
}
-// Patch changes the default automatic flow when creating check suites. By default, a check suite is automatically created each time code is pushed to a repository. When you disable the automatic creation of check suites, you can manually [Create a check suite](https://docs.github.com/rest/checks/suites#create-a-check-suite). You must have admin permissions in the repository to set preferences for check suites.
+// Patch changes the default automatic flow when creating check suites. By default, a check suite is automatically created each time code is pushed to a repository. When you disable the automatic creation of check suites, you can manually [Create a check suite](https://docs.github.com/rest/checks/suites#create-a-check-suite).You must have admin permissions in the repository to set preferences for check suites.
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/checks/suites#update-repository-preferences-for-check-suites
@@ -48,7 +48,7 @@ func (m *ItemItemCheckSuitesPreferencesRequestBuilder) Patch(ctx context.Context
}
return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CheckSuitePreferenceable), nil
}
-// ToPatchRequestInformation changes the default automatic flow when creating check suites. By default, a check suite is automatically created each time code is pushed to a repository. When you disable the automatic creation of check suites, you can manually [Create a check suite](https://docs.github.com/rest/checks/suites#create-a-check-suite). You must have admin permissions in the repository to set preferences for check suites.
+// ToPatchRequestInformation changes the default automatic flow when creating check suites. By default, a check suite is automatically created each time code is pushed to a repository. When you disable the automatic creation of check suites, you can manually [Create a check suite](https://docs.github.com/rest/checks/suites#create-a-check-suite).You must have admin permissions in the repository to set preferences for check suites.
func (m *ItemItemCheckSuitesPreferencesRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ItemItemCheckSuitesPreferencesPatchRequestBodyable, requestConfiguration *ItemItemCheckSuitesPreferencesRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.PATCH, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
if requestConfiguration != nil {
diff --git a/pkg/github/repos/item_item_check_suites_request_builder.go b/pkg/github/repos/item_item_check_suites_request_builder.go
index d8987401..3c308dc5 100644
--- a/pkg/github/repos/item_item_check_suites_request_builder.go
+++ b/pkg/github/repos/item_item_check_suites_request_builder.go
@@ -52,7 +52,7 @@ func NewItemItemCheckSuitesRequestBuilder(rawUrl string, requestAdapter i2ae4187
urlParams["request-raw-url"] = rawUrl
return NewItemItemCheckSuitesRequestBuilderInternal(urlParams, requestAdapter)
}
-// Post **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.By default, check suites are automatically created when you create a [check run](https://docs.github.com/rest/checks/runs). You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using "[Update repository preferences for check suites](https://docs.github.com/rest/checks/suites#update-repository-preferences-for-check-suites)". Your GitHub App must have the `checks:write` permission to create check suites.
+// Post creates a check suite manually. By default, check suites are automatically created when you create a [check run](https://docs.github.com/rest/checks/runs). You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using "[Update repository preferences for check suites](https://docs.github.com/rest/checks/suites#update-repository-preferences-for-check-suites)".To create a check suite, you must use a GitHub App with the `checks:write` permission. OAuth apps and authenticated users are not able to create a check suite.**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/checks/suites#create-a-check-suite
@@ -74,7 +74,7 @@ func (m *ItemItemCheckSuitesRequestBuilder) Post(ctx context.Context, body ItemI
func (m *ItemItemCheckSuitesRequestBuilder) Preferences()(*ItemItemCheckSuitesPreferencesRequestBuilder) {
return NewItemItemCheckSuitesPreferencesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
}
-// ToPostRequestInformation **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.By default, check suites are automatically created when you create a [check run](https://docs.github.com/rest/checks/runs). You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using "[Update repository preferences for check suites](https://docs.github.com/rest/checks/suites#update-repository-preferences-for-check-suites)". Your GitHub App must have the `checks:write` permission to create check suites.
+// ToPostRequestInformation creates a check suite manually. By default, check suites are automatically created when you create a [check run](https://docs.github.com/rest/checks/runs). You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using "[Update repository preferences for check suites](https://docs.github.com/rest/checks/suites#update-repository-preferences-for-check-suites)".To create a check suite, you must use a GitHub App with the `checks:write` permission. OAuth apps and authenticated users are not able to create a check suite.**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.
func (m *ItemItemCheckSuitesRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemCheckSuitesPostRequestBodyable, requestConfiguration *ItemItemCheckSuitesRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
if requestConfiguration != nil {
diff --git a/pkg/github/repos/item_item_check_suites_with_check_suite_item_request_builder.go b/pkg/github/repos/item_item_check_suites_with_check_suite_item_request_builder.go
index fd80b460..85df0882 100644
--- a/pkg/github/repos/item_item_check_suites_with_check_suite_item_request_builder.go
+++ b/pkg/github/repos/item_item_check_suites_with_check_suite_item_request_builder.go
@@ -34,7 +34,7 @@ func NewItemItemCheckSuitesWithCheck_suite_ItemRequestBuilder(rawUrl string, req
urlParams["request-raw-url"] = rawUrl
return NewItemItemCheckSuitesWithCheck_suite_ItemRequestBuilderInternal(urlParams, requestAdapter)
}
-// Get **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.Gets a single check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check suites. OAuth apps and authenticated users must have the `repo` scope to get check suites in a private repository.
+// Get gets a single check suite using its `id`.GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check suites. OAuth apps and authenticated users must have the `repo` scope to get check suites in a private repository.**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/checks/suites#get-a-check-suite
@@ -56,7 +56,7 @@ func (m *ItemItemCheckSuitesWithCheck_suite_ItemRequestBuilder) Get(ctx context.
func (m *ItemItemCheckSuitesWithCheck_suite_ItemRequestBuilder) Rerequest()(*ItemItemCheckSuitesItemRerequestRequestBuilder) {
return NewItemItemCheckSuitesItemRerequestRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
}
-// ToGetRequestInformation **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.Gets a single check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check suites. OAuth apps and authenticated users must have the `repo` scope to get check suites in a private repository.
+// ToGetRequestInformation gets a single check suite using its `id`.GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check suites. OAuth apps and authenticated users must have the `repo` scope to get check suites in a private repository.**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.
func (m *ItemItemCheckSuitesWithCheck_suite_ItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemCheckSuitesWithCheck_suite_ItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
if requestConfiguration != nil {
diff --git a/pkg/github/repos/item_item_code_scanning_sarifs_request_builder.go b/pkg/github/repos/item_item_code_scanning_sarifs_request_builder.go
index 37a8082f..ff3e4e04 100644
--- a/pkg/github/repos/item_item_code_scanning_sarifs_request_builder.go
+++ b/pkg/github/repos/item_item_code_scanning_sarifs_request_builder.go
@@ -41,7 +41,7 @@ func NewItemItemCodeScanningSarifsRequestBuilder(rawUrl string, requestAdapter i
urlParams["request-raw-url"] = rawUrl
return NewItemItemCodeScanningSarifsRequestBuilderInternal(urlParams, requestAdapter)
}
-// Post uploads SARIF data containing the results of a code scanning analysis to make the results available in a repository. You must use an access token with the `security_events` scope to use this endpoint for private repositories. You can also use tokens with the `public_repo` scope for public repositories only. GitHub Apps must have the `security_events` write permission to use this endpoint. For troubleshooting information, see "[Troubleshooting SARIF uploads](https://docs.github.com/code-security/code-scanning/troubleshooting-sarif)."There are two places where you can upload code scanning results. - If you upload to a pull request, for example `--ref refs/pull/42/merge` or `--ref refs/pull/42/head`, then the results appear as alerts in a pull request check. For more information, see "[Triaging code scanning alerts in pull requests](/code-security/secure-coding/triaging-code-scanning-alerts-in-pull-requests)." - If you upload to a branch, for example `--ref refs/heads/my-branch`, then the results appear in the **Security** tab for your repository. For more information, see "[Managing code scanning alerts for your repository](/code-security/secure-coding/managing-code-scanning-alerts-for-your-repository#viewing-the-alerts-for-a-repository)."You must compress the SARIF-formatted analysis data that you want to upload, using `gzip`, and then encode it as a Base64 format string. For example:```gzip -c analysis-data.sarif | base64 -w0```
SARIF upload supports a maximum number of entries per the following data objects, and an analysis will be rejected if any of these objects is above its maximum value. For some objects, there are additional values over which the entries will be ignored while keeping the most important entries whenever applicable.To get the most out of your analysis when it includes data above the supported limits, try to optimize the analysis configuration. For example, for the CodeQL tool, identify and remove the most noisy queries. For more information, see "[SARIF results exceed one or more limits](https://docs.github.com/code-security/code-scanning/troubleshooting-sarif/results-exceed-limit)."| **SARIF data** | **Maximum values** | **Additional limits** ||----------------------------------|:------------------:|----------------------------------------------------------------------------------|| Runs per file | 20 | || Results per run | 25,000 | Only the top 5,000 results will be included, prioritized by severity. || Rules per run | 25,000 | || Tool extensions per run | 100 | || Thread Flow Locations per result | 10,000 | Only the top 1,000 Thread Flow Locations will be included, using prioritization. || Location per result | 1,000 | Only 100 locations will be included. || Tags per rule | 20 | Only 10 tags will be included. |The `202 Accepted` response includes an `id` value.You can use this ID to check the status of the upload by using it in the `/sarifs/{sarif_id}` endpoint.For more information, see "[Get information about a SARIF upload](/rest/code-scanning/code-scanning#get-information-about-a-sarif-upload)."
+// Post uploads SARIF data containing the results of a code scanning analysis to make the results available in a repository. You must use an access token with the `security_events` scope to use this endpoint for private repositories. You can also use tokens with the `public_repo` scope for public repositories only. GitHub Apps must have the `security_events` write permission to use this endpoint. For troubleshooting information, see "[Troubleshooting SARIF uploads](https://docs.github.com/code-security/code-scanning/troubleshooting-sarif)."There are two places where you can upload code scanning results. - If you upload to a pull request, for example `--ref refs/pull/42/merge` or `--ref refs/pull/42/head`, then the results appear as alerts in a pull request check. For more information, see "[Triaging code scanning alerts in pull requests](/code-security/secure-coding/triaging-code-scanning-alerts-in-pull-requests)." - If you upload to a branch, for example `--ref refs/heads/my-branch`, then the results appear in the **Security** tab for your repository. For more information, see "[Managing code scanning alerts for your repository](/code-security/secure-coding/managing-code-scanning-alerts-for-your-repository#viewing-the-alerts-for-a-repository)."You must compress the SARIF-formatted analysis data that you want to upload, using `gzip`, and then encode it as a Base64 format string. For example:```gzip -c analysis-data.sarif | base64 -w0```SARIF upload supports a maximum number of entries per the following data objects, and an analysis will be rejected if any of these objects is above its maximum value. For some objects, there are additional values over which the entries will be ignored while keeping the most important entries whenever applicable.To get the most out of your analysis when it includes data above the supported limits, try to optimize the analysis configuration. For example, for the CodeQL tool, identify and remove the most noisy queries. For more information, see "[SARIF results exceed one or more limits](https://docs.github.com/code-security/code-scanning/troubleshooting-sarif/results-exceed-limit)."| **SARIF data** | **Maximum values** | **Additional limits** ||----------------------------------|:------------------:|----------------------------------------------------------------------------------|| Runs per file | 20 | || Results per run | 25,000 | Only the top 5,000 results will be included, prioritized by severity. || Rules per run | 25,000 | || Tool extensions per run | 100 | || Thread Flow Locations per result | 10,000 | Only the top 1,000 Thread Flow Locations will be included, using prioritization. || Location per result | 1,000 | Only 100 locations will be included. || Tags per rule | 20 | Only 10 tags will be included. |The `202 Accepted` response includes an `id` value.You can use this ID to check the status of the upload by using it in the `/sarifs/{sarif_id}` endpoint.For more information, see "[Get information about a SARIF upload](/rest/code-scanning/code-scanning#get-information-about-a-sarif-upload)."
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/code-scanning/code-scanning#upload-an-analysis-as-sarif-data
@@ -64,7 +64,7 @@ func (m *ItemItemCodeScanningSarifsRequestBuilder) Post(ctx context.Context, bod
}
return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CodeScanningSarifsReceiptable), nil
}
-// ToPostRequestInformation uploads SARIF data containing the results of a code scanning analysis to make the results available in a repository. You must use an access token with the `security_events` scope to use this endpoint for private repositories. You can also use tokens with the `public_repo` scope for public repositories only. GitHub Apps must have the `security_events` write permission to use this endpoint. For troubleshooting information, see "[Troubleshooting SARIF uploads](https://docs.github.com/code-security/code-scanning/troubleshooting-sarif)."There are two places where you can upload code scanning results. - If you upload to a pull request, for example `--ref refs/pull/42/merge` or `--ref refs/pull/42/head`, then the results appear as alerts in a pull request check. For more information, see "[Triaging code scanning alerts in pull requests](/code-security/secure-coding/triaging-code-scanning-alerts-in-pull-requests)." - If you upload to a branch, for example `--ref refs/heads/my-branch`, then the results appear in the **Security** tab for your repository. For more information, see "[Managing code scanning alerts for your repository](/code-security/secure-coding/managing-code-scanning-alerts-for-your-repository#viewing-the-alerts-for-a-repository)."You must compress the SARIF-formatted analysis data that you want to upload, using `gzip`, and then encode it as a Base64 format string. For example:```gzip -c analysis-data.sarif | base64 -w0```
SARIF upload supports a maximum number of entries per the following data objects, and an analysis will be rejected if any of these objects is above its maximum value. For some objects, there are additional values over which the entries will be ignored while keeping the most important entries whenever applicable.To get the most out of your analysis when it includes data above the supported limits, try to optimize the analysis configuration. For example, for the CodeQL tool, identify and remove the most noisy queries. For more information, see "[SARIF results exceed one or more limits](https://docs.github.com/code-security/code-scanning/troubleshooting-sarif/results-exceed-limit)."| **SARIF data** | **Maximum values** | **Additional limits** ||----------------------------------|:------------------:|----------------------------------------------------------------------------------|| Runs per file | 20 | || Results per run | 25,000 | Only the top 5,000 results will be included, prioritized by severity. || Rules per run | 25,000 | || Tool extensions per run | 100 | || Thread Flow Locations per result | 10,000 | Only the top 1,000 Thread Flow Locations will be included, using prioritization. || Location per result | 1,000 | Only 100 locations will be included. || Tags per rule | 20 | Only 10 tags will be included. |The `202 Accepted` response includes an `id` value.You can use this ID to check the status of the upload by using it in the `/sarifs/{sarif_id}` endpoint.For more information, see "[Get information about a SARIF upload](/rest/code-scanning/code-scanning#get-information-about-a-sarif-upload)."
+// ToPostRequestInformation uploads SARIF data containing the results of a code scanning analysis to make the results available in a repository. You must use an access token with the `security_events` scope to use this endpoint for private repositories. You can also use tokens with the `public_repo` scope for public repositories only. GitHub Apps must have the `security_events` write permission to use this endpoint. For troubleshooting information, see "[Troubleshooting SARIF uploads](https://docs.github.com/code-security/code-scanning/troubleshooting-sarif)."There are two places where you can upload code scanning results. - If you upload to a pull request, for example `--ref refs/pull/42/merge` or `--ref refs/pull/42/head`, then the results appear as alerts in a pull request check. For more information, see "[Triaging code scanning alerts in pull requests](/code-security/secure-coding/triaging-code-scanning-alerts-in-pull-requests)." - If you upload to a branch, for example `--ref refs/heads/my-branch`, then the results appear in the **Security** tab for your repository. For more information, see "[Managing code scanning alerts for your repository](/code-security/secure-coding/managing-code-scanning-alerts-for-your-repository#viewing-the-alerts-for-a-repository)."You must compress the SARIF-formatted analysis data that you want to upload, using `gzip`, and then encode it as a Base64 format string. For example:```gzip -c analysis-data.sarif | base64 -w0```SARIF upload supports a maximum number of entries per the following data objects, and an analysis will be rejected if any of these objects is above its maximum value. For some objects, there are additional values over which the entries will be ignored while keeping the most important entries whenever applicable.To get the most out of your analysis when it includes data above the supported limits, try to optimize the analysis configuration. For example, for the CodeQL tool, identify and remove the most noisy queries. For more information, see "[SARIF results exceed one or more limits](https://docs.github.com/code-security/code-scanning/troubleshooting-sarif/results-exceed-limit)."| **SARIF data** | **Maximum values** | **Additional limits** ||----------------------------------|:------------------:|----------------------------------------------------------------------------------|| Runs per file | 20 | || Results per run | 25,000 | Only the top 5,000 results will be included, prioritized by severity. || Rules per run | 25,000 | || Tool extensions per run | 100 | || Thread Flow Locations per result | 10,000 | Only the top 1,000 Thread Flow Locations will be included, using prioritization. || Location per result | 1,000 | Only 100 locations will be included. || Tags per rule | 20 | Only 10 tags will be included. |The `202 Accepted` response includes an `id` value.You can use this ID to check the status of the upload by using it in the `/sarifs/{sarif_id}` endpoint.For more information, see "[Get information about a SARIF upload](/rest/code-scanning/code-scanning#get-information-about-a-sarif-upload)."
func (m *ItemItemCodeScanningSarifsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemItemCodeScanningSarifsPostRequestBodyable, requestConfiguration *ItemItemCodeScanningSarifsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
if requestConfiguration != nil {
diff --git a/pkg/github/repos/item_item_commits_item_check_runs_request_builder.go b/pkg/github/repos/item_item_commits_item_check_runs_request_builder.go
index ace5e407..ac3eff4f 100644
--- a/pkg/github/repos/item_item_commits_item_check_runs_request_builder.go
+++ b/pkg/github/repos/item_item_commits_item_check_runs_request_builder.go
@@ -10,7 +10,7 @@ import (
type ItemItemCommitsItemCheckRunsRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
-// ItemItemCommitsItemCheckRunsRequestBuilderGetQueryParameters lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository.**Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.If there are more than 1000 check suites on a single git reference, this endpoint will limit check runs to the 1000 most recent check suites. To iterate over all possible check runs, use the [List check suites for a Git reference](https://docs.github.com/rest/reference/checks#list-check-suites-for-a-git-reference) endpoint and provide the `check_suite_id` parameter to the [List check runs in a check suite](https://docs.github.com/rest/reference/checks#list-check-runs-in-a-check-suite) endpoint.
+// ItemItemCommitsItemCheckRunsRequestBuilderGetQueryParameters lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name.GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository.**Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.If there are more than 1000 check suites on a single git reference, this endpoint will limit check runs to the 1000 most recent check suites. To iterate over all possible check runs, use the [List check suites for a Git reference](https://docs.github.com/rest/reference/checks#list-check-suites-for-a-git-reference) endpoint and provide the `check_suite_id` parameter to the [List check runs in a check suite](https://docs.github.com/rest/reference/checks#list-check-runs-in-a-check-suite) endpoint.
type ItemItemCommitsItemCheckRunsRequestBuilderGetQueryParameters struct {
//
App_id *int32 `uriparametername:"app_id"`
@@ -53,7 +53,7 @@ func NewItemItemCommitsItemCheckRunsRequestBuilder(rawUrl string, requestAdapter
urlParams["request-raw-url"] = rawUrl
return NewItemItemCommitsItemCheckRunsRequestBuilderInternal(urlParams, requestAdapter)
}
-// Get lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository.**Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.If there are more than 1000 check suites on a single git reference, this endpoint will limit check runs to the 1000 most recent check suites. To iterate over all possible check runs, use the [List check suites for a Git reference](https://docs.github.com/rest/reference/checks#list-check-suites-for-a-git-reference) endpoint and provide the `check_suite_id` parameter to the [List check runs in a check suite](https://docs.github.com/rest/reference/checks#list-check-runs-in-a-check-suite) endpoint.
+// Get lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name.GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository.**Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.If there are more than 1000 check suites on a single git reference, this endpoint will limit check runs to the 1000 most recent check suites. To iterate over all possible check runs, use the [List check suites for a Git reference](https://docs.github.com/rest/reference/checks#list-check-suites-for-a-git-reference) endpoint and provide the `check_suite_id` parameter to the [List check runs in a check suite](https://docs.github.com/rest/reference/checks#list-check-runs-in-a-check-suite) endpoint.
// Deprecated: This method is obsolete. Use GetAsCheckRunsGetResponse instead.
// [API method documentation]
//
@@ -72,7 +72,7 @@ func (m *ItemItemCommitsItemCheckRunsRequestBuilder) Get(ctx context.Context, re
}
return res.(ItemItemCommitsItemCheckRunsResponseable), nil
}
-// GetAsCheckRunsGetResponse lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository.**Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.If there are more than 1000 check suites on a single git reference, this endpoint will limit check runs to the 1000 most recent check suites. To iterate over all possible check runs, use the [List check suites for a Git reference](https://docs.github.com/rest/reference/checks#list-check-suites-for-a-git-reference) endpoint and provide the `check_suite_id` parameter to the [List check runs in a check suite](https://docs.github.com/rest/reference/checks#list-check-runs-in-a-check-suite) endpoint.
+// GetAsCheckRunsGetResponse lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name.GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository.**Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.If there are more than 1000 check suites on a single git reference, this endpoint will limit check runs to the 1000 most recent check suites. To iterate over all possible check runs, use the [List check suites for a Git reference](https://docs.github.com/rest/reference/checks#list-check-suites-for-a-git-reference) endpoint and provide the `check_suite_id` parameter to the [List check runs in a check suite](https://docs.github.com/rest/reference/checks#list-check-runs-in-a-check-suite) endpoint.
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/checks/runs#list-check-runs-for-a-git-reference
@@ -90,7 +90,7 @@ func (m *ItemItemCommitsItemCheckRunsRequestBuilder) GetAsCheckRunsGetResponse(c
}
return res.(ItemItemCommitsItemCheckRunsGetResponseable), nil
}
-// ToGetRequestInformation lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository.**Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.If there are more than 1000 check suites on a single git reference, this endpoint will limit check runs to the 1000 most recent check suites. To iterate over all possible check runs, use the [List check suites for a Git reference](https://docs.github.com/rest/reference/checks#list-check-suites-for-a-git-reference) endpoint and provide the `check_suite_id` parameter to the [List check runs in a check suite](https://docs.github.com/rest/reference/checks#list-check-runs-in-a-check-suite) endpoint.
+// ToGetRequestInformation lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name.GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth apps and authenticated users must have the `repo` scope to get check runs in a private repository.**Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.If there are more than 1000 check suites on a single git reference, this endpoint will limit check runs to the 1000 most recent check suites. To iterate over all possible check runs, use the [List check suites for a Git reference](https://docs.github.com/rest/reference/checks#list-check-suites-for-a-git-reference) endpoint and provide the `check_suite_id` parameter to the [List check runs in a check suite](https://docs.github.com/rest/reference/checks#list-check-runs-in-a-check-suite) endpoint.
func (m *ItemItemCommitsItemCheckRunsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemCommitsItemCheckRunsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
if requestConfiguration != nil {
diff --git a/pkg/github/repos/item_item_commits_item_check_suites_request_builder.go b/pkg/github/repos/item_item_commits_item_check_suites_request_builder.go
index 6a42ba06..d35ea84e 100644
--- a/pkg/github/repos/item_item_commits_item_check_suites_request_builder.go
+++ b/pkg/github/repos/item_item_commits_item_check_suites_request_builder.go
@@ -9,7 +9,7 @@ import (
type ItemItemCommitsItemCheckSuitesRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
-// ItemItemCommitsItemCheckSuitesRequestBuilderGetQueryParameters lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites. OAuth apps and authenticated users must have the `repo` scope to get check suites in a private repository.**Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.
+// ItemItemCommitsItemCheckSuitesRequestBuilderGetQueryParameters lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name.GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites. OAuth apps and authenticated users must have the `repo` scope to get check suites in a private repository.**Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.
type ItemItemCommitsItemCheckSuitesRequestBuilderGetQueryParameters struct {
// Filters check suites by GitHub App `id`.
App_id *int32 `uriparametername:"app_id"`
@@ -42,7 +42,7 @@ func NewItemItemCommitsItemCheckSuitesRequestBuilder(rawUrl string, requestAdapt
urlParams["request-raw-url"] = rawUrl
return NewItemItemCommitsItemCheckSuitesRequestBuilderInternal(urlParams, requestAdapter)
}
-// Get lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites. OAuth apps and authenticated users must have the `repo` scope to get check suites in a private repository.**Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.
+// Get lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name.GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites. OAuth apps and authenticated users must have the `repo` scope to get check suites in a private repository.**Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.
// Deprecated: This method is obsolete. Use GetAsCheckSuitesGetResponse instead.
// [API method documentation]
//
@@ -61,7 +61,7 @@ func (m *ItemItemCommitsItemCheckSuitesRequestBuilder) Get(ctx context.Context,
}
return res.(ItemItemCommitsItemCheckSuitesResponseable), nil
}
-// GetAsCheckSuitesGetResponse lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites. OAuth apps and authenticated users must have the `repo` scope to get check suites in a private repository.**Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.
+// GetAsCheckSuitesGetResponse lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name.GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites. OAuth apps and authenticated users must have the `repo` scope to get check suites in a private repository.**Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/checks/suites#list-check-suites-for-a-git-reference
@@ -79,7 +79,7 @@ func (m *ItemItemCommitsItemCheckSuitesRequestBuilder) GetAsCheckSuitesGetRespon
}
return res.(ItemItemCommitsItemCheckSuitesGetResponseable), nil
}
-// ToGetRequestInformation lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites. OAuth apps and authenticated users must have the `repo` scope to get check suites in a private repository.**Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.
+// ToGetRequestInformation lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name.GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites. OAuth apps and authenticated users must have the `repo` scope to get check suites in a private repository.**Note:** The endpoints to manage checks only look for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.
func (m *ItemItemCommitsItemCheckSuitesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemCommitsItemCheckSuitesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
if requestConfiguration != nil {
diff --git a/pkg/github/repos/item_item_deployments_post_request_body.go b/pkg/github/repos/item_item_deployments_post_request_body.go
index 3f6b2193..d039a883 100644
--- a/pkg/github/repos/item_item_deployments_post_request_body.go
+++ b/pkg/github/repos/item_item_deployments_post_request_body.go
@@ -15,7 +15,7 @@ type ItemItemDeploymentsPostRequestBody struct {
// Name for the target deployment environment (e.g., `production`, `staging`, `qa`).
environment *string
// The payload property
- payload ItemItemDeploymentsPostRequestBody_DeploymentsPostRequestBody_payloadable
+ payload *string
// Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.
production_environment *bool
// The ref to deploy. This can be a branch, tag, or SHA.
@@ -27,91 +27,6 @@ type ItemItemDeploymentsPostRequestBody struct {
// Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: `false`
transient_environment *bool
}
-// ItemItemDeploymentsPostRequestBody_DeploymentsPostRequestBody_payload composed type wrapper for classes ItemItemDeploymentsPostRequestBody_payloadMember1, string
-type ItemItemDeploymentsPostRequestBody_DeploymentsPostRequestBody_payload struct {
- // Composed type representation for type ItemItemDeploymentsPostRequestBody_payloadMember1
- itemItemDeploymentsPostRequestBody_payloadMember1 ItemItemDeploymentsPostRequestBody_payloadMember1able
- // Composed type representation for type string
- string *string
-}
-// NewItemItemDeploymentsPostRequestBody_DeploymentsPostRequestBody_payload instantiates a new deploymentsPostRequestBody_payload and sets the default values.
-func NewItemItemDeploymentsPostRequestBody_DeploymentsPostRequestBody_payload()(*ItemItemDeploymentsPostRequestBody_DeploymentsPostRequestBody_payload) {
- m := &ItemItemDeploymentsPostRequestBody_DeploymentsPostRequestBody_payload{
- }
- return m
-}
-// CreateItemItemDeploymentsPostRequestBody_DeploymentsPostRequestBody_payloadFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
-func CreateItemItemDeploymentsPostRequestBody_DeploymentsPostRequestBody_payloadFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
- result := NewItemItemDeploymentsPostRequestBody_DeploymentsPostRequestBody_payload()
- if parseNode != nil {
- mappingValueNode, err := parseNode.GetChildNode("")
- if err != nil {
- return nil, err
- }
- if mappingValueNode != nil {
- mappingValue, err := mappingValueNode.GetStringValue()
- if err != nil {
- return nil, err
- }
- if mappingValue != nil {
- }
- }
- }
- if val, err := parseNode.GetStringValue(); val != nil {
- if err != nil {
- return nil, err
- }
- result.SetString(val)
- }
- return result, nil
-}
-// GetFieldDeserializers the deserialization information for the current model
-func (m *ItemItemDeploymentsPostRequestBody_DeploymentsPostRequestBody_payload) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
- return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
-}
-// GetIsComposedType determines if the current object is a wrapper around a composed type
-func (m *ItemItemDeploymentsPostRequestBody_DeploymentsPostRequestBody_payload) GetIsComposedType()(bool) {
- return true
-}
-// GetItemItemDeploymentsPostRequestBodyPayloadMember1 gets the ItemItemDeploymentsPostRequestBody_payloadMember1 property value. Composed type representation for type ItemItemDeploymentsPostRequestBody_payloadMember1
-func (m *ItemItemDeploymentsPostRequestBody_DeploymentsPostRequestBody_payload) GetItemItemDeploymentsPostRequestBodyPayloadMember1()(ItemItemDeploymentsPostRequestBody_payloadMember1able) {
- return m.itemItemDeploymentsPostRequestBody_payloadMember1
-}
-// GetString gets the string property value. Composed type representation for type string
-func (m *ItemItemDeploymentsPostRequestBody_DeploymentsPostRequestBody_payload) GetString()(*string) {
- return m.string
-}
-// Serialize serializes information the current object
-func (m *ItemItemDeploymentsPostRequestBody_DeploymentsPostRequestBody_payload) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
- if m.GetItemItemDeploymentsPostRequestBodyPayloadMember1() != nil {
- err := writer.WriteObjectValue("", m.GetItemItemDeploymentsPostRequestBodyPayloadMember1())
- if err != nil {
- return err
- }
- } else if m.GetString() != nil {
- err := writer.WriteStringValue("", m.GetString())
- if err != nil {
- return err
- }
- }
- return nil
-}
-// SetItemItemDeploymentsPostRequestBodyPayloadMember1 sets the ItemItemDeploymentsPostRequestBody_payloadMember1 property value. Composed type representation for type ItemItemDeploymentsPostRequestBody_payloadMember1
-func (m *ItemItemDeploymentsPostRequestBody_DeploymentsPostRequestBody_payload) SetItemItemDeploymentsPostRequestBodyPayloadMember1(value ItemItemDeploymentsPostRequestBody_payloadMember1able)() {
- m.itemItemDeploymentsPostRequestBody_payloadMember1 = value
-}
-// SetString sets the string property value. Composed type representation for type string
-func (m *ItemItemDeploymentsPostRequestBody_DeploymentsPostRequestBody_payload) SetString(value *string)() {
- m.string = value
-}
-// ItemItemDeploymentsPostRequestBody_DeploymentsPostRequestBody_payloadable
-type ItemItemDeploymentsPostRequestBody_DeploymentsPostRequestBody_payloadable interface {
- i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
- GetItemItemDeploymentsPostRequestBodyPayloadMember1()(ItemItemDeploymentsPostRequestBody_payloadMember1able)
- GetString()(*string)
- SetItemItemDeploymentsPostRequestBodyPayloadMember1(value ItemItemDeploymentsPostRequestBody_payloadMember1able)()
- SetString(value *string)()
-}
// NewItemItemDeploymentsPostRequestBody instantiates a new ItemItemDeploymentsPostRequestBody and sets the default values.
func NewItemItemDeploymentsPostRequestBody()(*ItemItemDeploymentsPostRequestBody) {
m := &ItemItemDeploymentsPostRequestBody{
@@ -177,12 +92,12 @@ func (m *ItemItemDeploymentsPostRequestBody) GetFieldDeserializers()(map[string]
return nil
}
res["payload"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error {
- val, err := n.GetObjectValue(CreateItemItemDeploymentsPostRequestBody_DeploymentsPostRequestBody_payloadFromDiscriminatorValue)
+ val, err := n.GetStringValue()
if err != nil {
return err
}
if val != nil {
- m.SetPayload(val.(ItemItemDeploymentsPostRequestBody_DeploymentsPostRequestBody_payloadable))
+ m.SetPayload(val)
}
return nil
}
@@ -245,7 +160,7 @@ func (m *ItemItemDeploymentsPostRequestBody) GetFieldDeserializers()(map[string]
return res
}
// GetPayload gets the payload property value. The payload property
-func (m *ItemItemDeploymentsPostRequestBody) GetPayload()(ItemItemDeploymentsPostRequestBody_DeploymentsPostRequestBody_payloadable) {
+func (m *ItemItemDeploymentsPostRequestBody) GetPayload()(*string) {
return m.payload
}
// GetProductionEnvironment gets the production_environment property value. Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.
@@ -289,7 +204,7 @@ func (m *ItemItemDeploymentsPostRequestBody) Serialize(writer i878a80d2330e89d26
}
}
{
- err := writer.WriteObjectValue("payload", m.GetPayload())
+ err := writer.WriteStringValue("payload", m.GetPayload())
if err != nil {
return err
}
@@ -349,7 +264,7 @@ func (m *ItemItemDeploymentsPostRequestBody) SetEnvironment(value *string)() {
m.environment = value
}
// SetPayload sets the payload property value. The payload property
-func (m *ItemItemDeploymentsPostRequestBody) SetPayload(value ItemItemDeploymentsPostRequestBody_DeploymentsPostRequestBody_payloadable)() {
+func (m *ItemItemDeploymentsPostRequestBody) SetPayload(value *string)() {
m.payload = value
}
// SetProductionEnvironment sets the production_environment property value. Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise.
@@ -379,7 +294,7 @@ type ItemItemDeploymentsPostRequestBodyable interface {
GetAutoMerge()(*bool)
GetDescription()(*string)
GetEnvironment()(*string)
- GetPayload()(ItemItemDeploymentsPostRequestBody_DeploymentsPostRequestBody_payloadable)
+ GetPayload()(*string)
GetProductionEnvironment()(*bool)
GetRef()(*string)
GetRequiredContexts()([]string)
@@ -388,7 +303,7 @@ type ItemItemDeploymentsPostRequestBodyable interface {
SetAutoMerge(value *bool)()
SetDescription(value *string)()
SetEnvironment(value *string)()
- SetPayload(value ItemItemDeploymentsPostRequestBody_DeploymentsPostRequestBody_payloadable)()
+ SetPayload(value *string)()
SetProductionEnvironment(value *bool)()
SetRef(value *string)()
SetRequiredContexts(value []string)()
diff --git a/pkg/github/repos/item_item_interaction_limits_request_builder.go b/pkg/github/repos/item_item_interaction_limits_request_builder.go
index 9a2d2449..9175fe5b 100644
--- a/pkg/github/repos/item_item_interaction_limits_request_builder.go
+++ b/pkg/github/repos/item_item_interaction_limits_request_builder.go
@@ -3,7 +3,6 @@ package repos
import (
"context"
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
- i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models"
)
@@ -11,154 +10,6 @@ import (
type ItemItemInteractionLimitsRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
-// InteractionLimitsGetResponse composed type wrapper for classes interactionLimitResponse, ItemItemInteractionLimitsGetResponseMember1
-type InteractionLimitsGetResponse struct {
- // Composed type representation for type interactionLimitResponse
- interactionLimitResponse i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable
- // Composed type representation for type ItemItemInteractionLimitsGetResponseMember1
- itemItemInteractionLimitsGetResponseMember1 ItemItemInteractionLimitsGetResponseMember1able
-}
-// NewInteractionLimitsGetResponse instantiates a new interactionLimitsGetResponse and sets the default values.
-func NewInteractionLimitsGetResponse()(*InteractionLimitsGetResponse) {
- m := &InteractionLimitsGetResponse{
- }
- return m
-}
-// CreateInteractionLimitsGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
-func CreateInteractionLimitsGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
- result := NewInteractionLimitsGetResponse()
- if parseNode != nil {
- if val, err := parseNode.GetObjectValue(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateInteractionLimitResponseFromDiscriminatorValue); val != nil {
- if err != nil {
- return nil, err
- }
- if cast, ok := val.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable); ok {
- result.SetInteractionLimitResponse(cast)
- }
- } else if val, err := parseNode.GetObjectValue(CreateItemItemInteractionLimitsGetResponseMember1FromDiscriminatorValue); val != nil {
- if err != nil {
- return nil, err
- }
- if cast, ok := val.(ItemItemInteractionLimitsGetResponseMember1able); ok {
- result.SetItemItemInteractionLimitsGetResponseMember1(cast)
- }
- }
- }
- return result, nil
-}
-// GetFieldDeserializers the deserialization information for the current model
-func (m *InteractionLimitsGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
- return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
-}
-// GetInteractionLimitResponse gets the interactionLimitResponse property value. Composed type representation for type interactionLimitResponse
-func (m *InteractionLimitsGetResponse) GetInteractionLimitResponse()(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable) {
- return m.interactionLimitResponse
-}
-// GetIsComposedType determines if the current object is a wrapper around a composed type
-func (m *InteractionLimitsGetResponse) GetIsComposedType()(bool) {
- return true
-}
-// GetItemItemInteractionLimitsGetResponseMember1 gets the ItemItemInteractionLimitsGetResponseMember1 property value. Composed type representation for type ItemItemInteractionLimitsGetResponseMember1
-func (m *InteractionLimitsGetResponse) GetItemItemInteractionLimitsGetResponseMember1()(ItemItemInteractionLimitsGetResponseMember1able) {
- return m.itemItemInteractionLimitsGetResponseMember1
-}
-// Serialize serializes information the current object
-func (m *InteractionLimitsGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
- if m.GetInteractionLimitResponse() != nil {
- err := writer.WriteObjectValue("", m.GetInteractionLimitResponse())
- if err != nil {
- return err
- }
- } else if m.GetItemItemInteractionLimitsGetResponseMember1() != nil {
- err := writer.WriteObjectValue("", m.GetItemItemInteractionLimitsGetResponseMember1())
- if err != nil {
- return err
- }
- }
- return nil
-}
-// SetInteractionLimitResponse sets the interactionLimitResponse property value. Composed type representation for type interactionLimitResponse
-func (m *InteractionLimitsGetResponse) SetInteractionLimitResponse(value i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable)() {
- m.interactionLimitResponse = value
-}
-// SetItemItemInteractionLimitsGetResponseMember1 sets the ItemItemInteractionLimitsGetResponseMember1 property value. Composed type representation for type ItemItemInteractionLimitsGetResponseMember1
-func (m *InteractionLimitsGetResponse) SetItemItemInteractionLimitsGetResponseMember1(value ItemItemInteractionLimitsGetResponseMember1able)() {
- m.itemItemInteractionLimitsGetResponseMember1 = value
-}
-// InteractionLimitsResponse composed type wrapper for classes interactionLimitResponse, ItemItemInteractionLimitsGetResponseMember1
-type InteractionLimitsResponse struct {
- // Composed type representation for type interactionLimitResponse
- interactionLimitResponse i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable
- // Composed type representation for type ItemItemInteractionLimitsGetResponseMember1
- itemItemInteractionLimitsGetResponseMember1 ItemItemInteractionLimitsGetResponseMember1able
-}
-// NewInteractionLimitsResponse instantiates a new interactionLimitsResponse and sets the default values.
-func NewInteractionLimitsResponse()(*InteractionLimitsResponse) {
- m := &InteractionLimitsResponse{
- }
- return m
-}
-// CreateInteractionLimitsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
-func CreateInteractionLimitsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
- result := NewInteractionLimitsResponse()
- if parseNode != nil {
- if val, err := parseNode.GetObjectValue(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateInteractionLimitResponseFromDiscriminatorValue); val != nil {
- if err != nil {
- return nil, err
- }
- if cast, ok := val.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable); ok {
- result.SetInteractionLimitResponse(cast)
- }
- } else if val, err := parseNode.GetObjectValue(CreateItemItemInteractionLimitsGetResponseMember1FromDiscriminatorValue); val != nil {
- if err != nil {
- return nil, err
- }
- if cast, ok := val.(ItemItemInteractionLimitsGetResponseMember1able); ok {
- result.SetItemItemInteractionLimitsGetResponseMember1(cast)
- }
- }
- }
- return result, nil
-}
-// GetFieldDeserializers the deserialization information for the current model
-func (m *InteractionLimitsResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
- return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
-}
-// GetInteractionLimitResponse gets the interactionLimitResponse property value. Composed type representation for type interactionLimitResponse
-func (m *InteractionLimitsResponse) GetInteractionLimitResponse()(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable) {
- return m.interactionLimitResponse
-}
-// GetIsComposedType determines if the current object is a wrapper around a composed type
-func (m *InteractionLimitsResponse) GetIsComposedType()(bool) {
- return true
-}
-// GetItemItemInteractionLimitsGetResponseMember1 gets the ItemItemInteractionLimitsGetResponseMember1 property value. Composed type representation for type ItemItemInteractionLimitsGetResponseMember1
-func (m *InteractionLimitsResponse) GetItemItemInteractionLimitsGetResponseMember1()(ItemItemInteractionLimitsGetResponseMember1able) {
- return m.itemItemInteractionLimitsGetResponseMember1
-}
-// Serialize serializes information the current object
-func (m *InteractionLimitsResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
- if m.GetInteractionLimitResponse() != nil {
- err := writer.WriteObjectValue("", m.GetInteractionLimitResponse())
- if err != nil {
- return err
- }
- } else if m.GetItemItemInteractionLimitsGetResponseMember1() != nil {
- err := writer.WriteObjectValue("", m.GetItemItemInteractionLimitsGetResponseMember1())
- if err != nil {
- return err
- }
- }
- return nil
-}
-// SetInteractionLimitResponse sets the interactionLimitResponse property value. Composed type representation for type interactionLimitResponse
-func (m *InteractionLimitsResponse) SetInteractionLimitResponse(value i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable)() {
- m.interactionLimitResponse = value
-}
-// SetItemItemInteractionLimitsGetResponseMember1 sets the ItemItemInteractionLimitsGetResponseMember1 property value. Composed type representation for type ItemItemInteractionLimitsGetResponseMember1
-func (m *InteractionLimitsResponse) SetItemItemInteractionLimitsGetResponseMember1(value ItemItemInteractionLimitsGetResponseMember1able)() {
- m.itemItemInteractionLimitsGetResponseMember1 = value
-}
// ItemItemInteractionLimitsRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
type ItemItemInteractionLimitsRequestBuilderDeleteRequestConfiguration struct {
// Request headers
@@ -180,22 +31,6 @@ type ItemItemInteractionLimitsRequestBuilderPutRequestConfiguration struct {
// Request options
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
}
-// InteractionLimitsGetResponseable
-type InteractionLimitsGetResponseable interface {
- i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
- GetInteractionLimitResponse()(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable)
- GetItemItemInteractionLimitsGetResponseMember1()(ItemItemInteractionLimitsGetResponseMember1able)
- SetInteractionLimitResponse(value i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable)()
- SetItemItemInteractionLimitsGetResponseMember1(value ItemItemInteractionLimitsGetResponseMember1able)()
-}
-// InteractionLimitsResponseable
-type InteractionLimitsResponseable interface {
- i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
- GetInteractionLimitResponse()(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable)
- GetItemItemInteractionLimitsGetResponseMember1()(ItemItemInteractionLimitsGetResponseMember1able)
- SetInteractionLimitResponse(value i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable)()
- SetItemItemInteractionLimitsGetResponseMember1(value ItemItemInteractionLimitsGetResponseMember1able)()
-}
// NewItemItemInteractionLimitsRequestBuilderInternal instantiates a new InteractionLimitsRequestBuilder and sets the default values.
func NewItemItemInteractionLimitsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemItemInteractionLimitsRequestBuilder) {
m := &ItemItemInteractionLimitsRequestBuilder{
@@ -225,41 +60,22 @@ func (m *ItemItemInteractionLimitsRequestBuilder) Delete(ctx context.Context, re
return nil
}
// Get shows which type of GitHub user can interact with this repository and when the restriction expires. If there are no restrictions, you will see an empty response.
-// Deprecated: This method is obsolete. Use GetAsInteractionLimitsGetResponse instead.
-// [API method documentation]
-//
-// [API method documentation]: https://docs.github.com/rest/interactions/repos#get-interaction-restrictions-for-a-repository
-func (m *ItemItemInteractionLimitsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemInteractionLimitsRequestBuilderGetRequestConfiguration)(InteractionLimitsResponseable, error) {
- requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration);
- if err != nil {
- return nil, err
- }
- res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateInteractionLimitsResponseFromDiscriminatorValue, nil)
- if err != nil {
- return nil, err
- }
- if res == nil {
- return nil, nil
- }
- return res.(InteractionLimitsResponseable), nil
-}
-// GetAsInteractionLimitsGetResponse shows which type of GitHub user can interact with this repository and when the restriction expires. If there are no restrictions, you will see an empty response.
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/interactions/repos#get-interaction-restrictions-for-a-repository
-func (m *ItemItemInteractionLimitsRequestBuilder) GetAsInteractionLimitsGetResponse(ctx context.Context, requestConfiguration *ItemItemInteractionLimitsRequestBuilderGetRequestConfiguration)(InteractionLimitsGetResponseable, error) {
+func (m *ItemItemInteractionLimitsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemItemInteractionLimitsRequestBuilderGetRequestConfiguration)(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable, error) {
requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration);
if err != nil {
return nil, err
}
- res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateInteractionLimitsGetResponseFromDiscriminatorValue, nil)
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateInteractionLimitResponseFromDiscriminatorValue, nil)
if err != nil {
return nil, err
}
if res == nil {
return nil, nil
}
- return res.(InteractionLimitsGetResponseable), nil
+ return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable), nil
}
// Put temporarily restricts interactions to a certain type of GitHub user within the given repository. You must have owner or admin access to set these restrictions. If an interaction limit is set for the user or organization that owns this repository, you will receive a `409 Conflict` response and will not be able to use this endpoint to change the interaction limit for a single repository.
// [API method documentation]
diff --git a/pkg/github/repos/item_item_properties_values_request_builder.go b/pkg/github/repos/item_item_properties_values_request_builder.go
index d4c22d71..867ab121 100644
--- a/pkg/github/repos/item_item_properties_values_request_builder.go
+++ b/pkg/github/repos/item_item_properties_values_request_builder.go
@@ -30,7 +30,7 @@ func NewItemItemPropertiesValuesRequestBuilder(rawUrl string, requestAdapter i2a
urlParams["request-raw-url"] = rawUrl
return NewItemItemPropertiesValuesRequestBuilderInternal(urlParams, requestAdapter)
}
-// Get gets all custom property values that are set for a repository.Users with read access to the repository can use this endpoint.
+// Get gets all custom property values that are set for a repository.Users with read access to the repository can use this endpoint.GitHub Apps must have the `metadata:read` repository permission to use this endpoint.
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/repos/custom-properties#get-all-custom-property-values-for-a-repository
@@ -55,7 +55,7 @@ func (m *ItemItemPropertiesValuesRequestBuilder) Get(ctx context.Context, reques
}
return val, nil
}
-// ToGetRequestInformation gets all custom property values that are set for a repository.Users with read access to the repository can use this endpoint.
+// ToGetRequestInformation gets all custom property values that are set for a repository.Users with read access to the repository can use this endpoint.GitHub Apps must have the `metadata:read` repository permission to use this endpoint.
func (m *ItemItemPropertiesValuesRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemPropertiesValuesRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
if requestConfiguration != nil {
diff --git a/pkg/github/repos/item_item_releases_item_assets_request_builder.go b/pkg/github/repos/item_item_releases_item_assets_request_builder.go
index 2e600172..3f66e88b 100644
--- a/pkg/github/repos/item_item_releases_item_assets_request_builder.go
+++ b/pkg/github/repos/item_item_releases_item_assets_request_builder.go
@@ -26,7 +26,7 @@ type ItemItemReleasesItemAssetsRequestBuilderGetRequestConfiguration struct {
// Request query parameters
QueryParameters *ItemItemReleasesItemAssetsRequestBuilderGetQueryParameters
}
-// ItemItemReleasesItemAssetsRequestBuilderPostQueryParameters this endpoint makes use of [a Hypermedia relation](https://docs.github.com/rest/overview/resources-in-the-rest-api#hypermedia) to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the `upload_url` returned inthe response of the [Create a release endpoint](https://docs.github.com/rest/releases/releases#create-a-release) to upload a release asset.You need to use an HTTP client which supports [SNI](http://en.wikipedia.org/wiki/Server_Name_Indication) to make calls to this endpoint.Most libraries will set the required `Content-Length` header automatically. Use the required `Content-Type` header to provide the media type of the asset. For a list of media types, see [Media Types](https://www.iana.org/assignments/media-types/media-types.xhtml). For example: `application/zip`GitHub expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example,you'll still need to pass your authentication to be able to upload an asset.When an upstream failure occurs, you will receive a `502 Bad Gateway` status. This may leave an empty asset with a state of `starter`. It can be safely deleted.**Notes:*** GitHub renames asset filenames that have special characters, non-alphanumeric characters, and leading or trailing periods. The "[List release assets](https://docs.github.com/rest/releases/assets#list-release-assets)"endpoint lists the renamed filenames. For more information and help, contact [GitHub Support](https://support.github.com/contact?tags=dotcom-rest-api).* To find the `release_id` query the [`GET /repos/{owner}/{repo}/releases/latest` endpoint](https://docs.github.com/rest/releases/releases#get-the-latest-release). * If you upload an asset with the same filename as another uploaded asset, you'll receive an error and must delete the old file before you can re-upload the new asset.
+// ItemItemReleasesItemAssetsRequestBuilderPostQueryParameters this endpoint makes use of a [Hypermedia relation](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#hypermedia) to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the `upload_url` returned inthe response of the [Create a release endpoint](https://docs.github.com/rest/releases/releases#create-a-release) to upload a release asset.You need to use an HTTP client which supports [SNI](http://en.wikipedia.org/wiki/Server_Name_Indication) to make calls to this endpoint.Most libraries will set the required `Content-Length` header automatically. Use the required `Content-Type` header to provide the media type of the asset. For a list of media types, see [Media Types](https://www.iana.org/assignments/media-types/media-types.xhtml). For example: `application/zip`GitHub expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example,you'll still need to pass your authentication to be able to upload an asset.When an upstream failure occurs, you will receive a `502 Bad Gateway` status. This may leave an empty asset with a state of `starter`. It can be safely deleted.**Notes:*** GitHub renames asset filenames that have special characters, non-alphanumeric characters, and leading or trailing periods. The "[List release assets](https://docs.github.com/rest/releases/assets#list-release-assets)"endpoint lists the renamed filenames. For more information and help, contact [GitHub Support](https://support.github.com/contact?tags=dotcom-rest-api).* To find the `release_id` query the [`GET /repos/{owner}/{repo}/releases/latest` endpoint](https://docs.github.com/rest/releases/releases#get-the-latest-release). * If you upload an asset with the same filename as another uploaded asset, you'll receive an error and must delete the old file before you can re-upload the new asset.
type ItemItemReleasesItemAssetsRequestBuilderPostQueryParameters struct {
//
Label *string `uriparametername:"label"`
@@ -76,7 +76,7 @@ func (m *ItemItemReleasesItemAssetsRequestBuilder) Get(ctx context.Context, requ
}
return val, nil
}
-// Post this endpoint makes use of [a Hypermedia relation](https://docs.github.com/rest/overview/resources-in-the-rest-api#hypermedia) to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the `upload_url` returned inthe response of the [Create a release endpoint](https://docs.github.com/rest/releases/releases#create-a-release) to upload a release asset.You need to use an HTTP client which supports [SNI](http://en.wikipedia.org/wiki/Server_Name_Indication) to make calls to this endpoint.Most libraries will set the required `Content-Length` header automatically. Use the required `Content-Type` header to provide the media type of the asset. For a list of media types, see [Media Types](https://www.iana.org/assignments/media-types/media-types.xhtml). For example: `application/zip`GitHub expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example,you'll still need to pass your authentication to be able to upload an asset.When an upstream failure occurs, you will receive a `502 Bad Gateway` status. This may leave an empty asset with a state of `starter`. It can be safely deleted.**Notes:*** GitHub renames asset filenames that have special characters, non-alphanumeric characters, and leading or trailing periods. The "[List release assets](https://docs.github.com/rest/releases/assets#list-release-assets)"endpoint lists the renamed filenames. For more information and help, contact [GitHub Support](https://support.github.com/contact?tags=dotcom-rest-api).* To find the `release_id` query the [`GET /repos/{owner}/{repo}/releases/latest` endpoint](https://docs.github.com/rest/releases/releases#get-the-latest-release). * If you upload an asset with the same filename as another uploaded asset, you'll receive an error and must delete the old file before you can re-upload the new asset.
+// Post this endpoint makes use of a [Hypermedia relation](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#hypermedia) to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the `upload_url` returned inthe response of the [Create a release endpoint](https://docs.github.com/rest/releases/releases#create-a-release) to upload a release asset.You need to use an HTTP client which supports [SNI](http://en.wikipedia.org/wiki/Server_Name_Indication) to make calls to this endpoint.Most libraries will set the required `Content-Length` header automatically. Use the required `Content-Type` header to provide the media type of the asset. For a list of media types, see [Media Types](https://www.iana.org/assignments/media-types/media-types.xhtml). For example: `application/zip`GitHub expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example,you'll still need to pass your authentication to be able to upload an asset.When an upstream failure occurs, you will receive a `502 Bad Gateway` status. This may leave an empty asset with a state of `starter`. It can be safely deleted.**Notes:*** GitHub renames asset filenames that have special characters, non-alphanumeric characters, and leading or trailing periods. The "[List release assets](https://docs.github.com/rest/releases/assets#list-release-assets)"endpoint lists the renamed filenames. For more information and help, contact [GitHub Support](https://support.github.com/contact?tags=dotcom-rest-api).* To find the `release_id` query the [`GET /repos/{owner}/{repo}/releases/latest` endpoint](https://docs.github.com/rest/releases/releases#get-the-latest-release). * If you upload an asset with the same filename as another uploaded asset, you'll receive an error and must delete the old file before you can re-upload the new asset.
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/releases/assets#upload-a-release-asset
@@ -106,7 +106,7 @@ func (m *ItemItemReleasesItemAssetsRequestBuilder) ToGetRequestInformation(ctx c
requestInfo.Headers.TryAdd("Accept", "application/json")
return requestInfo, nil
}
-// ToPostRequestInformation this endpoint makes use of [a Hypermedia relation](https://docs.github.com/rest/overview/resources-in-the-rest-api#hypermedia) to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the `upload_url` returned inthe response of the [Create a release endpoint](https://docs.github.com/rest/releases/releases#create-a-release) to upload a release asset.You need to use an HTTP client which supports [SNI](http://en.wikipedia.org/wiki/Server_Name_Indication) to make calls to this endpoint.Most libraries will set the required `Content-Length` header automatically. Use the required `Content-Type` header to provide the media type of the asset. For a list of media types, see [Media Types](https://www.iana.org/assignments/media-types/media-types.xhtml). For example: `application/zip`GitHub expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example,you'll still need to pass your authentication to be able to upload an asset.When an upstream failure occurs, you will receive a `502 Bad Gateway` status. This may leave an empty asset with a state of `starter`. It can be safely deleted.**Notes:*** GitHub renames asset filenames that have special characters, non-alphanumeric characters, and leading or trailing periods. The "[List release assets](https://docs.github.com/rest/releases/assets#list-release-assets)"endpoint lists the renamed filenames. For more information and help, contact [GitHub Support](https://support.github.com/contact?tags=dotcom-rest-api).* To find the `release_id` query the [`GET /repos/{owner}/{repo}/releases/latest` endpoint](https://docs.github.com/rest/releases/releases#get-the-latest-release). * If you upload an asset with the same filename as another uploaded asset, you'll receive an error and must delete the old file before you can re-upload the new asset.
+// ToPostRequestInformation this endpoint makes use of a [Hypermedia relation](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#hypermedia) to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the `upload_url` returned inthe response of the [Create a release endpoint](https://docs.github.com/rest/releases/releases#create-a-release) to upload a release asset.You need to use an HTTP client which supports [SNI](http://en.wikipedia.org/wiki/Server_Name_Indication) to make calls to this endpoint.Most libraries will set the required `Content-Length` header automatically. Use the required `Content-Type` header to provide the media type of the asset. For a list of media types, see [Media Types](https://www.iana.org/assignments/media-types/media-types.xhtml). For example: `application/zip`GitHub expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example,you'll still need to pass your authentication to be able to upload an asset.When an upstream failure occurs, you will receive a `502 Bad Gateway` status. This may leave an empty asset with a state of `starter`. It can be safely deleted.**Notes:*** GitHub renames asset filenames that have special characters, non-alphanumeric characters, and leading or trailing periods. The "[List release assets](https://docs.github.com/rest/releases/assets#list-release-assets)"endpoint lists the renamed filenames. For more information and help, contact [GitHub Support](https://support.github.com/contact?tags=dotcom-rest-api).* To find the `release_id` query the [`GET /repos/{owner}/{repo}/releases/latest` endpoint](https://docs.github.com/rest/releases/releases#get-the-latest-release). * If you upload an asset with the same filename as another uploaded asset, you'll receive an error and must delete the old file before you can re-upload the new asset.
func (m *ItemItemReleasesItemAssetsRequestBuilder) ToPostRequestInformation(ctx context.Context, body []byte, requestConfiguration *ItemItemReleasesItemAssetsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
if requestConfiguration != nil {
diff --git a/pkg/github/repos/item_item_releases_with_release_item_request_builder.go b/pkg/github/repos/item_item_releases_with_release_item_request_builder.go
index eb477684..79ef1ec9 100644
--- a/pkg/github/repos/item_item_releases_with_release_item_request_builder.go
+++ b/pkg/github/repos/item_item_releases_with_release_item_request_builder.go
@@ -63,7 +63,7 @@ func (m *ItemItemReleasesWithRelease_ItemRequestBuilder) Delete(ctx context.Cont
}
return nil
}
-// Get **Note:** This returns an `upload_url` key corresponding to the endpoint for uploading release assets. This key is a [hypermedia resource](https://docs.github.com/rest/overview/resources-in-the-rest-api#hypermedia).
+// Get gets a public release with the specified release ID.**Note:** This returns an `upload_url` key corresponding to the endpointfor uploading release assets. This key is a hypermedia resource. For more information, see"[Getting started with the REST API](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#hypermedia)."
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/releases/releases#get-a-release
@@ -115,7 +115,7 @@ func (m *ItemItemReleasesWithRelease_ItemRequestBuilder) ToDeleteRequestInformat
}
return requestInfo, nil
}
-// ToGetRequestInformation **Note:** This returns an `upload_url` key corresponding to the endpoint for uploading release assets. This key is a [hypermedia resource](https://docs.github.com/rest/overview/resources-in-the-rest-api#hypermedia).
+// ToGetRequestInformation gets a public release with the specified release ID.**Note:** This returns an `upload_url` key corresponding to the endpointfor uploading release assets. This key is a hypermedia resource. For more information, see"[Getting started with the REST API](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#hypermedia)."
func (m *ItemItemReleasesWithRelease_ItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemItemReleasesWithRelease_ItemRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
if requestConfiguration != nil {
diff --git a/pkg/github/user/interaction_limits_request_builder.go b/pkg/github/user/interaction_limits_request_builder.go
index d4aad286..4785d6a0 100644
--- a/pkg/github/user/interaction_limits_request_builder.go
+++ b/pkg/github/user/interaction_limits_request_builder.go
@@ -3,7 +3,6 @@ package user
import (
"context"
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
- i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91 "github.com/microsoft/kiota-abstractions-go/serialization"
i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6 "github.com/octokit/go-sdk/pkg/github/models"
)
@@ -11,80 +10,6 @@ import (
type InteractionLimitsRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
-// InteractionLimitsGetResponse composed type wrapper for classes interactionLimitResponse, InteractionLimitsGetResponseMember1
-type InteractionLimitsGetResponse struct {
- // Composed type representation for type interactionLimitResponse
- interactionLimitResponse i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable
- // Composed type representation for type InteractionLimitsGetResponseMember1
- interactionLimitsGetResponseMember1 InteractionLimitsGetResponseMember1able
-}
-// NewInteractionLimitsGetResponse instantiates a new interactionLimitsGetResponse and sets the default values.
-func NewInteractionLimitsGetResponse()(*InteractionLimitsGetResponse) {
- m := &InteractionLimitsGetResponse{
- }
- return m
-}
-// CreateInteractionLimitsGetResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
-func CreateInteractionLimitsGetResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
- result := NewInteractionLimitsGetResponse()
- if parseNode != nil {
- if val, err := parseNode.GetObjectValue(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateInteractionLimitResponseFromDiscriminatorValue); val != nil {
- if err != nil {
- return nil, err
- }
- if cast, ok := val.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable); ok {
- result.SetInteractionLimitResponse(cast)
- }
- } else if val, err := parseNode.GetObjectValue(CreateInteractionLimitsGetResponseMember1FromDiscriminatorValue); val != nil {
- if err != nil {
- return nil, err
- }
- if cast, ok := val.(InteractionLimitsGetResponseMember1able); ok {
- result.SetInteractionLimitsGetResponseMember1(cast)
- }
- }
- }
- return result, nil
-}
-// GetFieldDeserializers the deserialization information for the current model
-func (m *InteractionLimitsGetResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
- return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
-}
-// GetInteractionLimitResponse gets the interactionLimitResponse property value. Composed type representation for type interactionLimitResponse
-func (m *InteractionLimitsGetResponse) GetInteractionLimitResponse()(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable) {
- return m.interactionLimitResponse
-}
-// GetInteractionLimitsGetResponseMember1 gets the InteractionLimitsGetResponseMember1 property value. Composed type representation for type InteractionLimitsGetResponseMember1
-func (m *InteractionLimitsGetResponse) GetInteractionLimitsGetResponseMember1()(InteractionLimitsGetResponseMember1able) {
- return m.interactionLimitsGetResponseMember1
-}
-// GetIsComposedType determines if the current object is a wrapper around a composed type
-func (m *InteractionLimitsGetResponse) GetIsComposedType()(bool) {
- return true
-}
-// Serialize serializes information the current object
-func (m *InteractionLimitsGetResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
- if m.GetInteractionLimitResponse() != nil {
- err := writer.WriteObjectValue("", m.GetInteractionLimitResponse())
- if err != nil {
- return err
- }
- } else if m.GetInteractionLimitsGetResponseMember1() != nil {
- err := writer.WriteObjectValue("", m.GetInteractionLimitsGetResponseMember1())
- if err != nil {
- return err
- }
- }
- return nil
-}
-// SetInteractionLimitResponse sets the interactionLimitResponse property value. Composed type representation for type interactionLimitResponse
-func (m *InteractionLimitsGetResponse) SetInteractionLimitResponse(value i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable)() {
- m.interactionLimitResponse = value
-}
-// SetInteractionLimitsGetResponseMember1 sets the InteractionLimitsGetResponseMember1 property value. Composed type representation for type InteractionLimitsGetResponseMember1
-func (m *InteractionLimitsGetResponse) SetInteractionLimitsGetResponseMember1(value InteractionLimitsGetResponseMember1able)() {
- m.interactionLimitsGetResponseMember1 = value
-}
// InteractionLimitsRequestBuilderDeleteRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
type InteractionLimitsRequestBuilderDeleteRequestConfiguration struct {
// Request headers
@@ -106,96 +31,6 @@ type InteractionLimitsRequestBuilderPutRequestConfiguration struct {
// Request options
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
}
-// InteractionLimitsResponse composed type wrapper for classes interactionLimitResponse, InteractionLimitsGetResponseMember1
-type InteractionLimitsResponse struct {
- // Composed type representation for type interactionLimitResponse
- interactionLimitResponse i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable
- // Composed type representation for type InteractionLimitsGetResponseMember1
- interactionLimitsGetResponseMember1 InteractionLimitsGetResponseMember1able
-}
-// NewInteractionLimitsResponse instantiates a new interactionLimitsResponse and sets the default values.
-func NewInteractionLimitsResponse()(*InteractionLimitsResponse) {
- m := &InteractionLimitsResponse{
- }
- return m
-}
-// CreateInteractionLimitsResponseFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value
-func CreateInteractionLimitsResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
- result := NewInteractionLimitsResponse()
- if parseNode != nil {
- if val, err := parseNode.GetObjectValue(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateInteractionLimitResponseFromDiscriminatorValue); val != nil {
- if err != nil {
- return nil, err
- }
- if cast, ok := val.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable); ok {
- result.SetInteractionLimitResponse(cast)
- }
- } else if val, err := parseNode.GetObjectValue(CreateInteractionLimitsGetResponseMember1FromDiscriminatorValue); val != nil {
- if err != nil {
- return nil, err
- }
- if cast, ok := val.(InteractionLimitsGetResponseMember1able); ok {
- result.SetInteractionLimitsGetResponseMember1(cast)
- }
- }
- }
- return result, nil
-}
-// GetFieldDeserializers the deserialization information for the current model
-func (m *InteractionLimitsResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
- return make(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error))
-}
-// GetInteractionLimitResponse gets the interactionLimitResponse property value. Composed type representation for type interactionLimitResponse
-func (m *InteractionLimitsResponse) GetInteractionLimitResponse()(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable) {
- return m.interactionLimitResponse
-}
-// GetInteractionLimitsGetResponseMember1 gets the InteractionLimitsGetResponseMember1 property value. Composed type representation for type InteractionLimitsGetResponseMember1
-func (m *InteractionLimitsResponse) GetInteractionLimitsGetResponseMember1()(InteractionLimitsGetResponseMember1able) {
- return m.interactionLimitsGetResponseMember1
-}
-// GetIsComposedType determines if the current object is a wrapper around a composed type
-func (m *InteractionLimitsResponse) GetIsComposedType()(bool) {
- return true
-}
-// Serialize serializes information the current object
-func (m *InteractionLimitsResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
- if m.GetInteractionLimitResponse() != nil {
- err := writer.WriteObjectValue("", m.GetInteractionLimitResponse())
- if err != nil {
- return err
- }
- } else if m.GetInteractionLimitsGetResponseMember1() != nil {
- err := writer.WriteObjectValue("", m.GetInteractionLimitsGetResponseMember1())
- if err != nil {
- return err
- }
- }
- return nil
-}
-// SetInteractionLimitResponse sets the interactionLimitResponse property value. Composed type representation for type interactionLimitResponse
-func (m *InteractionLimitsResponse) SetInteractionLimitResponse(value i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable)() {
- m.interactionLimitResponse = value
-}
-// SetInteractionLimitsGetResponseMember1 sets the InteractionLimitsGetResponseMember1 property value. Composed type representation for type InteractionLimitsGetResponseMember1
-func (m *InteractionLimitsResponse) SetInteractionLimitsGetResponseMember1(value InteractionLimitsGetResponseMember1able)() {
- m.interactionLimitsGetResponseMember1 = value
-}
-// InteractionLimitsGetResponseable
-type InteractionLimitsGetResponseable interface {
- i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
- GetInteractionLimitResponse()(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable)
- GetInteractionLimitsGetResponseMember1()(InteractionLimitsGetResponseMember1able)
- SetInteractionLimitResponse(value i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable)()
- SetInteractionLimitsGetResponseMember1(value InteractionLimitsGetResponseMember1able)()
-}
-// InteractionLimitsResponseable
-type InteractionLimitsResponseable interface {
- i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
- GetInteractionLimitResponse()(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable)
- GetInteractionLimitsGetResponseMember1()(InteractionLimitsGetResponseMember1able)
- SetInteractionLimitResponse(value i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable)()
- SetInteractionLimitsGetResponseMember1(value InteractionLimitsGetResponseMember1able)()
-}
// NewInteractionLimitsRequestBuilderInternal instantiates a new InteractionLimitsRequestBuilder and sets the default values.
func NewInteractionLimitsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*InteractionLimitsRequestBuilder) {
m := &InteractionLimitsRequestBuilder{
@@ -225,41 +60,22 @@ func (m *InteractionLimitsRequestBuilder) Delete(ctx context.Context, requestCon
return nil
}
// Get shows which type of GitHub user can interact with your public repositories and when the restriction expires.
-// Deprecated: This method is obsolete. Use GetAsInteractionLimitsGetResponse instead.
// [API method documentation]
//
// [API method documentation]: https://docs.github.com/rest/interactions/user#get-interaction-restrictions-for-your-public-repositories
-func (m *InteractionLimitsRequestBuilder) Get(ctx context.Context, requestConfiguration *InteractionLimitsRequestBuilderGetRequestConfiguration)(InteractionLimitsResponseable, error) {
+func (m *InteractionLimitsRequestBuilder) Get(ctx context.Context, requestConfiguration *InteractionLimitsRequestBuilderGetRequestConfiguration)(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable, error) {
requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration);
if err != nil {
return nil, err
}
- res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateInteractionLimitsResponseFromDiscriminatorValue, nil)
+ res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.CreateInteractionLimitResponseFromDiscriminatorValue, nil)
if err != nil {
return nil, err
}
if res == nil {
return nil, nil
}
- return res.(InteractionLimitsResponseable), nil
-}
-// GetAsInteractionLimitsGetResponse shows which type of GitHub user can interact with your public repositories and when the restriction expires.
-// [API method documentation]
-//
-// [API method documentation]: https://docs.github.com/rest/interactions/user#get-interaction-restrictions-for-your-public-repositories
-func (m *InteractionLimitsRequestBuilder) GetAsInteractionLimitsGetResponse(ctx context.Context, requestConfiguration *InteractionLimitsRequestBuilderGetRequestConfiguration)(InteractionLimitsGetResponseable, error) {
- requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration);
- if err != nil {
- return nil, err
- }
- res, err := m.BaseRequestBuilder.RequestAdapter.Send(ctx, requestInfo, CreateInteractionLimitsGetResponseFromDiscriminatorValue, nil)
- if err != nil {
- return nil, err
- }
- if res == nil {
- return nil, nil
- }
- return res.(InteractionLimitsGetResponseable), nil
+ return res.(i59ea7d99994c6a4bb9ef742ed717844297d055c7fd3742131406eea67a6404b6.InteractionLimitResponseable), nil
}
// Put temporarily restricts which type of GitHub user can interact with your public repositories. Setting the interaction limit at the user level will overwrite any interaction limits that are set for individual repositories owned by the user.
// [API method documentation]