From d1e4b69027cd76745960e0916356de477f5fde24 Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Fri, 2 Aug 2024 11:36:21 -0700 Subject: [PATCH] New updates to generated code (#97) --- pkg/github/events/events_request_builder.go | 6 +++--- pkg/github/kiota-lock.json | 2 +- pkg/github/models/pull_request_review.go | 16 ++++++++-------- .../networks/item_item_events_request_builder.go | 5 +++-- pkg/github/orgs/item_events_request_builder.go | 5 +++-- ..._events_orgs_with_org_item_request_builder.go | 6 +++--- .../users/item_events_public_request_builder.go | 5 +++-- pkg/github/users/item_events_request_builder.go | 6 +++--- ...tem_received_events_public_request_builder.go | 5 +++-- .../item_received_events_request_builder.go | 6 +++--- 10 files changed, 33 insertions(+), 29 deletions(-) diff --git a/pkg/github/events/events_request_builder.go b/pkg/github/events/events_request_builder.go index 40c67b38..9c786bfc 100644 --- a/pkg/github/events/events_request_builder.go +++ b/pkg/github/events/events_request_builder.go @@ -10,7 +10,7 @@ import ( type EventsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// EventsRequestBuilderGetQueryParameters we delay the public events feed by five minutes, which means the most recent event returned by the public events API actually occurred at least five minutes ago. +// EventsRequestBuilderGetQueryParameters > [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. type EventsRequestBuilderGetQueryParameters struct { // The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Page *int32 `uriparametername:"page"` @@ -30,7 +30,7 @@ func NewEventsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371c urlParams["request-raw-url"] = rawUrl return NewEventsRequestBuilderInternal(urlParams, requestAdapter) } -// Get we delay the public events feed by five minutes, which means the most recent event returned by the public events API actually occurred at least five minutes ago. +// Get > [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. // returns a []Eventable when successful // returns a BasicError error when the service returns a 403 status code // returns a Events503Error error when the service returns a 503 status code @@ -58,7 +58,7 @@ func (m *EventsRequestBuilder) Get(ctx context.Context, requestConfiguration *i2 } return val, nil } -// ToGetRequestInformation we delay the public events feed by five minutes, which means the most recent event returned by the public events API actually occurred at least five minutes ago. +// ToGetRequestInformation > [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. // returns a *RequestInformation when successful func (m *EventsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[EventsRequestBuilderGetQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/pkg/github/kiota-lock.json b/pkg/github/kiota-lock.json index b6c25293..ab55d839 100644 --- a/pkg/github/kiota-lock.json +++ b/pkg/github/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "145BCDC18ADD0C8E2EC561562308D43480017AD06C35365B09A27C83A9E6AAA51A6AF94048AF9F372388146007325C1DB4ED2E86F5CBFCEAD3625FBFBE1F9D51", + "descriptionHash": "69B161AEBDE87E127DB15C26F687951F2C4EC154754CC81FAEE2C1258265EA737FE15B6459B3F721B15D2F078A075486011134B82AE8CDB0828C485EE1CE03E8", "descriptionLocation": "../../../../../schemas/api.github.com.json", "lockFileVersion": "1.0.0", "kiotaVersion": "1.14.0", diff --git a/pkg/github/models/pull_request_review.go b/pkg/github/models/pull_request_review.go index 544ee8d6..159a3191 100644 --- a/pkg/github/models/pull_request_review.go +++ b/pkg/github/models/pull_request_review.go @@ -24,7 +24,7 @@ type PullRequestReview struct { // The html_url property html_url *string // Unique identifier of the review - id *int32 + id *int64 // The node_id property node_id *string // The pull_request_url property @@ -153,7 +153,7 @@ func (m *PullRequestReview) GetFieldDeserializers()(map[string]func(i878a80d2330 return nil } res["id"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error { - val, err := n.GetInt32Value() + val, err := n.GetInt64Value() if err != nil { return err } @@ -220,8 +220,8 @@ func (m *PullRequestReview) GetHtmlUrl()(*string) { return m.html_url } // GetId gets the id property value. Unique identifier of the review -// returns a *int32 when successful -func (m *PullRequestReview) GetId()(*int32) { +// returns a *int64 when successful +func (m *PullRequestReview) GetId()(*int64) { return m.id } // GetLinks gets the _links property value. The _links property @@ -294,7 +294,7 @@ func (m *PullRequestReview) Serialize(writer i878a80d2330e89d26896388a3f487eef27 } } { - err := writer.WriteInt32Value("id", m.GetId()) + err := writer.WriteInt64Value("id", m.GetId()) if err != nil { return err } @@ -372,7 +372,7 @@ func (m *PullRequestReview) SetHtmlUrl(value *string)() { m.html_url = value } // SetId sets the id property value. Unique identifier of the review -func (m *PullRequestReview) SetId(value *int32)() { +func (m *PullRequestReview) SetId(value *int64)() { m.id = value } // SetLinks sets the _links property value. The _links property @@ -408,7 +408,7 @@ type PullRequestReviewable interface { GetBodyText()(*string) GetCommitId()(*string) GetHtmlUrl()(*string) - GetId()(*int32) + GetId()(*int64) GetLinks()(PullRequestReview__linksable) GetNodeId()(*string) GetPullRequestUrl()(*string) @@ -421,7 +421,7 @@ type PullRequestReviewable interface { SetBodyText(value *string)() SetCommitId(value *string)() SetHtmlUrl(value *string)() - SetId(value *int32)() + SetId(value *int64)() SetLinks(value PullRequestReview__linksable)() SetNodeId(value *string)() SetPullRequestUrl(value *string)() diff --git a/pkg/github/networks/item_item_events_request_builder.go b/pkg/github/networks/item_item_events_request_builder.go index 7e9dbfb0..3d876ada 100644 --- a/pkg/github/networks/item_item_events_request_builder.go +++ b/pkg/github/networks/item_item_events_request_builder.go @@ -10,7 +10,7 @@ import ( type ItemItemEventsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemItemEventsRequestBuilderGetQueryParameters list public events for a network of repositories +// ItemItemEventsRequestBuilderGetQueryParameters > [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. type ItemItemEventsRequestBuilderGetQueryParameters struct { // The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Page *int32 `uriparametername:"page"` @@ -30,7 +30,7 @@ func NewItemItemEventsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7dae urlParams["request-raw-url"] = rawUrl return NewItemItemEventsRequestBuilderInternal(urlParams, requestAdapter) } -// Get list public events for a network of repositories +// Get > [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. // returns a []Eventable when successful // returns a BasicError error when the service returns a 403 status code // returns a BasicError error when the service returns a 404 status code @@ -58,6 +58,7 @@ func (m *ItemItemEventsRequestBuilder) Get(ctx context.Context, requestConfigura } return val, nil } +// ToGetRequestInformation > [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. // returns a *RequestInformation when successful func (m *ItemItemEventsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemItemEventsRequestBuilderGetQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/pkg/github/orgs/item_events_request_builder.go b/pkg/github/orgs/item_events_request_builder.go index f28f1d2d..6c509bc3 100644 --- a/pkg/github/orgs/item_events_request_builder.go +++ b/pkg/github/orgs/item_events_request_builder.go @@ -10,7 +10,7 @@ import ( type ItemEventsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemEventsRequestBuilderGetQueryParameters list public organization events +// ItemEventsRequestBuilderGetQueryParameters > [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. type ItemEventsRequestBuilderGetQueryParameters struct { // The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Page *int32 `uriparametername:"page"` @@ -30,7 +30,7 @@ func NewItemEventsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263 urlParams["request-raw-url"] = rawUrl return NewItemEventsRequestBuilderInternal(urlParams, requestAdapter) } -// Get list public organization events +// Get > [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. // returns a []Eventable when successful // [API method documentation] // @@ -52,6 +52,7 @@ func (m *ItemEventsRequestBuilder) Get(ctx context.Context, requestConfiguration } return val, nil } +// ToGetRequestInformation > [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. // returns a *RequestInformation when successful func (m *ItemEventsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemEventsRequestBuilderGetQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/pkg/github/users/item_events_orgs_with_org_item_request_builder.go b/pkg/github/users/item_events_orgs_with_org_item_request_builder.go index 0a01e888..572d478a 100644 --- a/pkg/github/users/item_events_orgs_with_org_item_request_builder.go +++ b/pkg/github/users/item_events_orgs_with_org_item_request_builder.go @@ -10,7 +10,7 @@ import ( type ItemEventsOrgsWithOrgItemRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemEventsOrgsWithOrgItemRequestBuilderGetQueryParameters this is the user's organization dashboard. You must be authenticated as the user to view this. +// ItemEventsOrgsWithOrgItemRequestBuilderGetQueryParameters this is the user's organization dashboard. You must be authenticated as the user to view this.> [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. type ItemEventsOrgsWithOrgItemRequestBuilderGetQueryParameters struct { // The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Page *int32 `uriparametername:"page"` @@ -30,7 +30,7 @@ func NewItemEventsOrgsWithOrgItemRequestBuilder(rawUrl string, requestAdapter i2 urlParams["request-raw-url"] = rawUrl return NewItemEventsOrgsWithOrgItemRequestBuilderInternal(urlParams, requestAdapter) } -// Get this is the user's organization dashboard. You must be authenticated as the user to view this. +// Get this is the user's organization dashboard. You must be authenticated as the user to view this.> [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. // returns a []Eventable when successful // [API method documentation] // @@ -52,7 +52,7 @@ func (m *ItemEventsOrgsWithOrgItemRequestBuilder) Get(ctx context.Context, reque } return val, nil } -// ToGetRequestInformation this is the user's organization dashboard. You must be authenticated as the user to view this. +// ToGetRequestInformation this is the user's organization dashboard. You must be authenticated as the user to view this.> [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. // returns a *RequestInformation when successful func (m *ItemEventsOrgsWithOrgItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemEventsOrgsWithOrgItemRequestBuilderGetQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/pkg/github/users/item_events_public_request_builder.go b/pkg/github/users/item_events_public_request_builder.go index ebb49bda..09fae104 100644 --- a/pkg/github/users/item_events_public_request_builder.go +++ b/pkg/github/users/item_events_public_request_builder.go @@ -10,7 +10,7 @@ import ( type ItemEventsPublicRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemEventsPublicRequestBuilderGetQueryParameters list public events for a user +// ItemEventsPublicRequestBuilderGetQueryParameters > [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. type ItemEventsPublicRequestBuilderGetQueryParameters struct { // The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Page *int32 `uriparametername:"page"` @@ -30,7 +30,7 @@ func NewItemEventsPublicRequestBuilder(rawUrl string, requestAdapter i2ae4187f7d urlParams["request-raw-url"] = rawUrl return NewItemEventsPublicRequestBuilderInternal(urlParams, requestAdapter) } -// Get list public events for a user +// Get > [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. // returns a []Eventable when successful // [API method documentation] // @@ -52,6 +52,7 @@ func (m *ItemEventsPublicRequestBuilder) Get(ctx context.Context, requestConfigu } return val, nil } +// ToGetRequestInformation > [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. // returns a *RequestInformation when successful func (m *ItemEventsPublicRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemEventsPublicRequestBuilderGetQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/pkg/github/users/item_events_request_builder.go b/pkg/github/users/item_events_request_builder.go index f03f608c..1f14edf1 100644 --- a/pkg/github/users/item_events_request_builder.go +++ b/pkg/github/users/item_events_request_builder.go @@ -10,7 +10,7 @@ import ( type ItemEventsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemEventsRequestBuilderGetQueryParameters if you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events. +// ItemEventsRequestBuilderGetQueryParameters if you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events.> [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. type ItemEventsRequestBuilderGetQueryParameters struct { // The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Page *int32 `uriparametername:"page"` @@ -30,7 +30,7 @@ func NewItemEventsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263 urlParams["request-raw-url"] = rawUrl return NewItemEventsRequestBuilderInternal(urlParams, requestAdapter) } -// Get if you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events. +// Get if you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events.> [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. // returns a []Eventable when successful // [API method documentation] // @@ -62,7 +62,7 @@ func (m *ItemEventsRequestBuilder) Orgs()(*ItemEventsOrgsRequestBuilder) { func (m *ItemEventsRequestBuilder) Public()(*ItemEventsPublicRequestBuilder) { return NewItemEventsPublicRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation if you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events. +// ToGetRequestInformation if you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events.> [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. // returns a *RequestInformation when successful func (m *ItemEventsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemEventsRequestBuilderGetQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/pkg/github/users/item_received_events_public_request_builder.go b/pkg/github/users/item_received_events_public_request_builder.go index 8871fe3d..78e129c2 100644 --- a/pkg/github/users/item_received_events_public_request_builder.go +++ b/pkg/github/users/item_received_events_public_request_builder.go @@ -10,7 +10,7 @@ import ( type ItemReceived_eventsPublicRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemReceived_eventsPublicRequestBuilderGetQueryParameters list public events received by a user +// ItemReceived_eventsPublicRequestBuilderGetQueryParameters > [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. type ItemReceived_eventsPublicRequestBuilderGetQueryParameters struct { // The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Page *int32 `uriparametername:"page"` @@ -30,7 +30,7 @@ func NewItemReceived_eventsPublicRequestBuilder(rawUrl string, requestAdapter i2 urlParams["request-raw-url"] = rawUrl return NewItemReceived_eventsPublicRequestBuilderInternal(urlParams, requestAdapter) } -// Get list public events received by a user +// Get > [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. // returns a []Eventable when successful // [API method documentation] // @@ -52,6 +52,7 @@ func (m *ItemReceived_eventsPublicRequestBuilder) Get(ctx context.Context, reque } return val, nil } +// ToGetRequestInformation > [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. // returns a *RequestInformation when successful func (m *ItemReceived_eventsPublicRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemReceived_eventsPublicRequestBuilderGetQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters) diff --git a/pkg/github/users/item_received_events_request_builder.go b/pkg/github/users/item_received_events_request_builder.go index 1bdf0076..b451ef5a 100644 --- a/pkg/github/users/item_received_events_request_builder.go +++ b/pkg/github/users/item_received_events_request_builder.go @@ -10,7 +10,7 @@ import ( type ItemReceived_eventsRequestBuilder struct { i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder } -// ItemReceived_eventsRequestBuilderGetQueryParameters these are events that you've received by watching repositories and following users. If you are authenticated as the given user, you will see private events. Otherwise, you'll only see public events. +// ItemReceived_eventsRequestBuilderGetQueryParameters these are events that you've received by watching repositories and following users. If you are authenticated as thegiven user, you will see private events. Otherwise, you'll only see public events.> [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. type ItemReceived_eventsRequestBuilderGetQueryParameters struct { // The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." Page *int32 `uriparametername:"page"` @@ -30,7 +30,7 @@ func NewItemReceived_eventsRequestBuilder(rawUrl string, requestAdapter i2ae4187 urlParams["request-raw-url"] = rawUrl return NewItemReceived_eventsRequestBuilderInternal(urlParams, requestAdapter) } -// Get these are events that you've received by watching repositories and following users. If you are authenticated as the given user, you will see private events. Otherwise, you'll only see public events. +// Get these are events that you've received by watching repositories and following users. If you are authenticated as thegiven user, you will see private events. Otherwise, you'll only see public events.> [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. // returns a []Eventable when successful // [API method documentation] // @@ -57,7 +57,7 @@ func (m *ItemReceived_eventsRequestBuilder) Get(ctx context.Context, requestConf func (m *ItemReceived_eventsRequestBuilder) Public()(*ItemReceived_eventsPublicRequestBuilder) { return NewItemReceived_eventsPublicRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) } -// ToGetRequestInformation these are events that you've received by watching repositories and following users. If you are authenticated as the given user, you will see private events. Otherwise, you'll only see public events. +// ToGetRequestInformation these are events that you've received by watching repositories and following users. If you are authenticated as thegiven user, you will see private events. Otherwise, you'll only see public events.> [!NOTE]> This API is not built to serve real-time use cases. Depending on the time of day, event latency can be anywhere from 30s to 6h. // returns a *RequestInformation when successful func (m *ItemReceived_eventsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemReceived_eventsRequestBuilderGetQueryParameters])(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)