teams

package
v0.0.8-GHES.3.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateItemDiscussionsItemCommentsItemReactionsPostRequestBodyFromDiscriminatorValue

func CreateItemDiscussionsItemCommentsItemReactionsPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)

CreateItemDiscussionsItemCommentsItemReactionsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful

func CreateItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBodyFromDiscriminatorValue

func CreateItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)

CreateItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful

func CreateItemDiscussionsItemCommentsPostRequestBodyFromDiscriminatorValue

CreateItemDiscussionsItemCommentsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful

func CreateItemDiscussionsItemReactionsPostRequestBodyFromDiscriminatorValue

CreateItemDiscussionsItemReactionsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful

func CreateItemDiscussionsItemWithDiscussion_numberPatchRequestBodyFromDiscriminatorValue

func CreateItemDiscussionsItemWithDiscussion_numberPatchRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)

CreateItemDiscussionsItemWithDiscussion_numberPatchRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful

func CreateItemDiscussionsPostRequestBodyFromDiscriminatorValue

CreateItemDiscussionsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful

func CreateItemMembershipsItemWithUsernamePutRequestBodyFromDiscriminatorValue

CreateItemMembershipsItemWithUsernamePutRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful

func CreateItemProjectsItemWithProject_403ErrorFromDiscriminatorValue

CreateItemProjectsItemWithProject_403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful

func CreateItemProjectsItemWithProject_PutRequestBodyFromDiscriminatorValue

CreateItemProjectsItemWithProject_PutRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful

func CreateItemReposItemItemWithRepoPutRequestBodyFromDiscriminatorValue

CreateItemReposItemItemWithRepoPutRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful

func CreateItemWithTeam_PatchRequestBodyFromDiscriminatorValue

CreateItemWithTeam_PatchRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful

Types

type ItemDiscussionsItemCommentsItemReactionsPostRequestBody

type ItemDiscussionsItemCommentsItemReactionsPostRequestBody struct {
	// contains filtered or unexported fields
}

func NewItemDiscussionsItemCommentsItemReactionsPostRequestBody

func NewItemDiscussionsItemCommentsItemReactionsPostRequestBody() *ItemDiscussionsItemCommentsItemReactionsPostRequestBody

NewItemDiscussionsItemCommentsItemReactionsPostRequestBody instantiates a new ItemDiscussionsItemCommentsItemReactionsPostRequestBody and sets the default values.

func (*ItemDiscussionsItemCommentsItemReactionsPostRequestBody) GetAdditionalData

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. returns a map[string]any when successful

func (*ItemDiscussionsItemCommentsItemReactionsPostRequestBody) GetFieldDeserializers

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*ItemDiscussionsItemCommentsItemReactionsPostRequestBody) Serialize

Serialize serializes information the current object

func (*ItemDiscussionsItemCommentsItemReactionsPostRequestBody) SetAdditionalData

func (m *ItemDiscussionsItemCommentsItemReactionsPostRequestBody) SetAdditionalData(value map[string]any)

SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

type ItemDiscussionsItemCommentsItemReactionsRequestBuilder

type ItemDiscussionsItemCommentsItemReactionsRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

ItemDiscussionsItemCommentsItemReactionsRequestBuilder builds and executes requests for operations under \teams\{team_id}\discussions\{discussion_number}\comments\{comment_number}\reactions

func NewItemDiscussionsItemCommentsItemReactionsRequestBuilder

func NewItemDiscussionsItemCommentsItemReactionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemDiscussionsItemCommentsItemReactionsRequestBuilder

NewItemDiscussionsItemCommentsItemReactionsRequestBuilder instantiates a new ItemDiscussionsItemCommentsItemReactionsRequestBuilder and sets the default values.

func NewItemDiscussionsItemCommentsItemReactionsRequestBuilderInternal

func NewItemDiscussionsItemCommentsItemReactionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemDiscussionsItemCommentsItemReactionsRequestBuilder

NewItemDiscussionsItemCommentsItemReactionsRequestBuilderInternal instantiates a new ItemDiscussionsItemCommentsItemReactionsRequestBuilder and sets the default values.

func (*ItemDiscussionsItemCommentsItemReactionsRequestBuilder) Get

Get > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion comment`](https://docs.github.com/enterprise-server@3.13/rest/reactions/reactions#list-reactions-for-a-team-discussion-comment) endpoint.List the reactions to a [team discussion comment](https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#get-a-discussion-comment).OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. Deprecated: returns a []Reactionable when successful API method documentation

func (*ItemDiscussionsItemCommentsItemReactionsRequestBuilder) Post

Post > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new "[Create reaction for a team discussion comment](https://docs.github.com/enterprise-server@3.13/rest/reactions/reactions#create-reaction-for-a-team-discussion-comment)" endpoint.Create a reaction to a [team discussion comment](https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#get-a-discussion-comment).A response with an HTTP `200` status means that you already added the reaction type to this team discussion comment.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. Deprecated: returns a Reactionable when successful API method documentation

func (*ItemDiscussionsItemCommentsItemReactionsRequestBuilder) ToGetRequestInformation

ToGetRequestInformation > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion comment`](https://docs.github.com/enterprise-server@3.13/rest/reactions/reactions#list-reactions-for-a-team-discussion-comment) endpoint.List the reactions to a [team discussion comment](https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#get-a-discussion-comment).OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. Deprecated: returns a *RequestInformation when successful

func (*ItemDiscussionsItemCommentsItemReactionsRequestBuilder) ToPostRequestInformation

ToPostRequestInformation > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new "[Create reaction for a team discussion comment](https://docs.github.com/enterprise-server@3.13/rest/reactions/reactions#create-reaction-for-a-team-discussion-comment)" endpoint.Create a reaction to a [team discussion comment](https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#get-a-discussion-comment).A response with an HTTP `200` status means that you already added the reaction type to this team discussion comment.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. Deprecated: returns a *RequestInformation when successful

func (*ItemDiscussionsItemCommentsItemReactionsRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. Deprecated: returns a *ItemDiscussionsItemCommentsItemReactionsRequestBuilder when successful

type ItemDiscussionsItemCommentsItemReactionsRequestBuilderGetQueryParameters

type ItemDiscussionsItemCommentsItemReactionsRequestBuilderGetQueryParameters struct {
	// Returns a single [reaction type](https://docs.github.com/enterprise-server@3.13/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a team discussion comment.
	Content *i0e502917b2f0701ab8a9a6e2189eca63fadab16c6e7ceb276965613570b6ac9a.GetContentQueryParameterType `uriparametername:"content"`
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.13/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.13/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
}

ItemDiscussionsItemCommentsItemReactionsRequestBuilderGetQueryParameters > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion comment`](https://docs.github.com/enterprise-server@3.13/rest/reactions/reactions#list-reactions-for-a-team-discussion-comment) endpoint.List the reactions to a [team discussion comment](https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#get-a-discussion-comment).OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.

type ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBody

type ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBody struct {
	// contains filtered or unexported fields
}

func NewItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBody

func NewItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBody() *ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBody

NewItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBody instantiates a new ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBody and sets the default values.

func (*ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBody) GetAdditionalData

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. returns a map[string]any when successful

func (*ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBody) GetBody

GetBody gets the body property value. The discussion comment's body text. returns a *string when successful

func (*ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBody) GetFieldDeserializers

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBody) Serialize

Serialize serializes information the current object

func (*ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBody) SetAdditionalData

SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

func (*ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBody) SetBody

SetBody sets the body property value. The discussion comment's body text.

type ItemDiscussionsItemCommentsPostRequestBody

type ItemDiscussionsItemCommentsPostRequestBody struct {
	// contains filtered or unexported fields
}

func NewItemDiscussionsItemCommentsPostRequestBody

func NewItemDiscussionsItemCommentsPostRequestBody() *ItemDiscussionsItemCommentsPostRequestBody

NewItemDiscussionsItemCommentsPostRequestBody instantiates a new ItemDiscussionsItemCommentsPostRequestBody and sets the default values.

func (*ItemDiscussionsItemCommentsPostRequestBody) GetAdditionalData

func (m *ItemDiscussionsItemCommentsPostRequestBody) GetAdditionalData() map[string]any

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. returns a map[string]any when successful

func (*ItemDiscussionsItemCommentsPostRequestBody) GetBody

GetBody gets the body property value. The discussion comment's body text. returns a *string when successful

func (*ItemDiscussionsItemCommentsPostRequestBody) GetFieldDeserializers

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*ItemDiscussionsItemCommentsPostRequestBody) Serialize

Serialize serializes information the current object

func (*ItemDiscussionsItemCommentsPostRequestBody) SetAdditionalData

func (m *ItemDiscussionsItemCommentsPostRequestBody) SetAdditionalData(value map[string]any)

SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

func (*ItemDiscussionsItemCommentsPostRequestBody) SetBody

SetBody sets the body property value. The discussion comment's body text.

type ItemDiscussionsItemCommentsRequestBuilder

type ItemDiscussionsItemCommentsRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

ItemDiscussionsItemCommentsRequestBuilder builds and executes requests for operations under \teams\{team_id}\discussions\{discussion_number}\comments

func NewItemDiscussionsItemCommentsRequestBuilder

NewItemDiscussionsItemCommentsRequestBuilder instantiates a new ItemDiscussionsItemCommentsRequestBuilder and sets the default values.

func NewItemDiscussionsItemCommentsRequestBuilderInternal

func NewItemDiscussionsItemCommentsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemDiscussionsItemCommentsRequestBuilder

NewItemDiscussionsItemCommentsRequestBuilderInternal instantiates a new ItemDiscussionsItemCommentsRequestBuilder and sets the default values.

func (*ItemDiscussionsItemCommentsRequestBuilder) ByComment_number

ByComment_number gets an item from the github.com/octokit/go-sdk-enterprise-server/pkg/github.teams.item.discussions.item.comments.item collection Deprecated: returns a *ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder when successful

func (*ItemDiscussionsItemCommentsRequestBuilder) Get

Get > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [List discussion comments](https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#list-discussion-comments) endpoint.List all comments on a team discussion.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. Deprecated: returns a []TeamDiscussionCommentable when successful API method documentation

func (*ItemDiscussionsItemCommentsRequestBuilder) Post

Post > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Create a discussion comment](https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#create-a-discussion-comment) endpoint.Creates a new comment on a team discussion.This endpoint triggers [notifications](https://docs.github.com/enterprise-server@3.13/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-server@3.13/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/enterprise-server@3.13/rest/guides/best-practices-for-using-the-rest-api)."OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. Deprecated: returns a TeamDiscussionCommentable when successful API method documentation

func (*ItemDiscussionsItemCommentsRequestBuilder) ToGetRequestInformation

ToGetRequestInformation > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [List discussion comments](https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#list-discussion-comments) endpoint.List all comments on a team discussion.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. Deprecated: returns a *RequestInformation when successful

func (*ItemDiscussionsItemCommentsRequestBuilder) ToPostRequestInformation

ToPostRequestInformation > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Create a discussion comment](https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#create-a-discussion-comment) endpoint.Creates a new comment on a team discussion.This endpoint triggers [notifications](https://docs.github.com/enterprise-server@3.13/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-server@3.13/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/enterprise-server@3.13/rest/guides/best-practices-for-using-the-rest-api)."OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. Deprecated: returns a *RequestInformation when successful

func (*ItemDiscussionsItemCommentsRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. Deprecated: returns a *ItemDiscussionsItemCommentsRequestBuilder when successful

type ItemDiscussionsItemCommentsRequestBuilderGetQueryParameters

type ItemDiscussionsItemCommentsRequestBuilderGetQueryParameters struct {
	// The direction to sort the results by.
	Direction *i7f894752788a21e319d42021818012cfae50b0fcbfd6a0ab4d54cf93b24873d7.GetDirectionQueryParameterType `uriparametername:"direction"`
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.13/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.13/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
}

ItemDiscussionsItemCommentsRequestBuilderGetQueryParameters > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [List discussion comments](https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#list-discussion-comments) endpoint.List all comments on a team discussion.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.

type ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder

type ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder builds and executes requests for operations under \teams\{team_id}\discussions\{discussion_number}\comments\{comment_number}

func NewItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder

func NewItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder

NewItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder instantiates a new ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder and sets the default values.

func NewItemDiscussionsItemCommentsWithComment_numberItemRequestBuilderInternal

func NewItemDiscussionsItemCommentsWithComment_numberItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder

NewItemDiscussionsItemCommentsWithComment_numberItemRequestBuilderInternal instantiates a new ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder and sets the default values.

func (*ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder) Delete

Delete > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a discussion comment](https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#delete-a-discussion-comment) endpoint.Deletes a comment on a team discussion.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. Deprecated: API method documentation

func (*ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder) Get

Get > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion comment](https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#get-a-discussion-comment) endpoint.Get a specific comment on a team discussion.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. Deprecated: returns a TeamDiscussionCommentable when successful API method documentation

func (*ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder) Patch

Patch > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion comment](https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#update-a-discussion-comment) endpoint.Edits the body text of a discussion comment.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. Deprecated: returns a TeamDiscussionCommentable when successful API method documentation

func (*ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder) Reactions

Reactions the reactions property returns a *ItemDiscussionsItemCommentsItemReactionsRequestBuilder when successful

func (*ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a discussion comment](https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#delete-a-discussion-comment) endpoint.Deletes a comment on a team discussion.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. Deprecated: returns a *RequestInformation when successful

func (*ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder) ToGetRequestInformation

ToGetRequestInformation > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion comment](https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#get-a-discussion-comment) endpoint.Get a specific comment on a team discussion.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. Deprecated: returns a *RequestInformation when successful

func (*ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder) ToPatchRequestInformation

ToPatchRequestInformation > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion comment](https://docs.github.com/enterprise-server@3.13/rest/teams/discussion-comments#update-a-discussion-comment) endpoint.Edits the body text of a discussion comment.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. Deprecated: returns a *RequestInformation when successful

func (*ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. Deprecated: returns a *ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder when successful

type ItemDiscussionsItemReactionsPostRequestBody

type ItemDiscussionsItemReactionsPostRequestBody struct {
	// contains filtered or unexported fields
}

func NewItemDiscussionsItemReactionsPostRequestBody

func NewItemDiscussionsItemReactionsPostRequestBody() *ItemDiscussionsItemReactionsPostRequestBody

NewItemDiscussionsItemReactionsPostRequestBody instantiates a new ItemDiscussionsItemReactionsPostRequestBody and sets the default values.

func (*ItemDiscussionsItemReactionsPostRequestBody) GetAdditionalData

func (m *ItemDiscussionsItemReactionsPostRequestBody) GetAdditionalData() map[string]any

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. returns a map[string]any when successful

func (*ItemDiscussionsItemReactionsPostRequestBody) GetFieldDeserializers

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*ItemDiscussionsItemReactionsPostRequestBody) Serialize

Serialize serializes information the current object

func (*ItemDiscussionsItemReactionsPostRequestBody) SetAdditionalData

func (m *ItemDiscussionsItemReactionsPostRequestBody) SetAdditionalData(value map[string]any)

SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

type ItemDiscussionsItemReactionsRequestBuilder

type ItemDiscussionsItemReactionsRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

ItemDiscussionsItemReactionsRequestBuilder builds and executes requests for operations under \teams\{team_id}\discussions\{discussion_number}\reactions

func NewItemDiscussionsItemReactionsRequestBuilder

NewItemDiscussionsItemReactionsRequestBuilder instantiates a new ItemDiscussionsItemReactionsRequestBuilder and sets the default values.

func NewItemDiscussionsItemReactionsRequestBuilderInternal

func NewItemDiscussionsItemReactionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemDiscussionsItemReactionsRequestBuilder

NewItemDiscussionsItemReactionsRequestBuilderInternal instantiates a new ItemDiscussionsItemReactionsRequestBuilder and sets the default values.

func (*ItemDiscussionsItemReactionsRequestBuilder) Get

Get > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion`](https://docs.github.com/enterprise-server@3.13/rest/reactions/reactions#list-reactions-for-a-team-discussion) endpoint.List the reactions to a [team discussion](https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#get-a-discussion).OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. Deprecated: returns a []Reactionable when successful API method documentation

func (*ItemDiscussionsItemReactionsRequestBuilder) Post

Post > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion`](https://docs.github.com/enterprise-server@3.13/rest/reactions/reactions#create-reaction-for-a-team-discussion) endpoint.Create a reaction to a [team discussion](https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#get-a-discussion).A response with an HTTP `200` status means that you already added the reaction type to this team discussion.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. Deprecated: returns a Reactionable when successful API method documentation

func (*ItemDiscussionsItemReactionsRequestBuilder) ToGetRequestInformation

ToGetRequestInformation > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion`](https://docs.github.com/enterprise-server@3.13/rest/reactions/reactions#list-reactions-for-a-team-discussion) endpoint.List the reactions to a [team discussion](https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#get-a-discussion).OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. Deprecated: returns a *RequestInformation when successful

func (*ItemDiscussionsItemReactionsRequestBuilder) ToPostRequestInformation

ToPostRequestInformation > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion`](https://docs.github.com/enterprise-server@3.13/rest/reactions/reactions#create-reaction-for-a-team-discussion) endpoint.Create a reaction to a [team discussion](https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#get-a-discussion).A response with an HTTP `200` status means that you already added the reaction type to this team discussion.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. Deprecated: returns a *RequestInformation when successful

func (*ItemDiscussionsItemReactionsRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. Deprecated: returns a *ItemDiscussionsItemReactionsRequestBuilder when successful

type ItemDiscussionsItemReactionsRequestBuilderGetQueryParameters

type ItemDiscussionsItemReactionsRequestBuilderGetQueryParameters struct {
	// Returns a single [reaction type](https://docs.github.com/enterprise-server@3.13/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a team discussion.
	Content *i1a1e729735b51f95530640f79216c59be351602f9fad69552a42b1352cd6f655.GetContentQueryParameterType `uriparametername:"content"`
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.13/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.13/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
}

ItemDiscussionsItemReactionsRequestBuilderGetQueryParameters > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion`](https://docs.github.com/enterprise-server@3.13/rest/reactions/reactions#list-reactions-for-a-team-discussion) endpoint.List the reactions to a [team discussion](https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#get-a-discussion).OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.

type ItemDiscussionsItemWithDiscussion_numberPatchRequestBody

type ItemDiscussionsItemWithDiscussion_numberPatchRequestBody struct {
	// contains filtered or unexported fields
}

func NewItemDiscussionsItemWithDiscussion_numberPatchRequestBody

func NewItemDiscussionsItemWithDiscussion_numberPatchRequestBody() *ItemDiscussionsItemWithDiscussion_numberPatchRequestBody

NewItemDiscussionsItemWithDiscussion_numberPatchRequestBody instantiates a new ItemDiscussionsItemWithDiscussion_numberPatchRequestBody and sets the default values.

func (*ItemDiscussionsItemWithDiscussion_numberPatchRequestBody) GetAdditionalData

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. returns a map[string]any when successful

func (*ItemDiscussionsItemWithDiscussion_numberPatchRequestBody) GetBody

GetBody gets the body property value. The discussion post's body text. returns a *string when successful

func (*ItemDiscussionsItemWithDiscussion_numberPatchRequestBody) GetFieldDeserializers

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*ItemDiscussionsItemWithDiscussion_numberPatchRequestBody) GetTitle

GetTitle gets the title property value. The discussion post's title. returns a *string when successful

func (*ItemDiscussionsItemWithDiscussion_numberPatchRequestBody) Serialize

Serialize serializes information the current object

func (*ItemDiscussionsItemWithDiscussion_numberPatchRequestBody) SetAdditionalData

SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

func (*ItemDiscussionsItemWithDiscussion_numberPatchRequestBody) SetBody

SetBody sets the body property value. The discussion post's body text.

func (*ItemDiscussionsItemWithDiscussion_numberPatchRequestBody) SetTitle

SetTitle sets the title property value. The discussion post's title.

type ItemDiscussionsPostRequestBody

type ItemDiscussionsPostRequestBody struct {
	// contains filtered or unexported fields
}

func NewItemDiscussionsPostRequestBody

func NewItemDiscussionsPostRequestBody() *ItemDiscussionsPostRequestBody

NewItemDiscussionsPostRequestBody instantiates a new ItemDiscussionsPostRequestBody and sets the default values.

func (*ItemDiscussionsPostRequestBody) GetAdditionalData

func (m *ItemDiscussionsPostRequestBody) GetAdditionalData() map[string]any

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. returns a map[string]any when successful

func (*ItemDiscussionsPostRequestBody) GetBody

func (m *ItemDiscussionsPostRequestBody) GetBody() *string

GetBody gets the body property value. The discussion post's body text. returns a *string when successful

func (*ItemDiscussionsPostRequestBody) GetFieldDeserializers

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*ItemDiscussionsPostRequestBody) GetPrivate

func (m *ItemDiscussionsPostRequestBody) GetPrivate() *bool

GetPrivate gets the private property value. Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post. returns a *bool when successful

func (*ItemDiscussionsPostRequestBody) GetTitle

func (m *ItemDiscussionsPostRequestBody) GetTitle() *string

GetTitle gets the title property value. The discussion post's title. returns a *string when successful

func (*ItemDiscussionsPostRequestBody) Serialize

Serialize serializes information the current object

func (*ItemDiscussionsPostRequestBody) SetAdditionalData

func (m *ItemDiscussionsPostRequestBody) SetAdditionalData(value map[string]any)

SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

func (*ItemDiscussionsPostRequestBody) SetBody

func (m *ItemDiscussionsPostRequestBody) SetBody(value *string)

SetBody sets the body property value. The discussion post's body text.

func (*ItemDiscussionsPostRequestBody) SetPrivate

func (m *ItemDiscussionsPostRequestBody) SetPrivate(value *bool)

SetPrivate sets the private property value. Private posts are only visible to team members, organization owners, and team maintainers. Public posts are visible to all members of the organization. Set to `true` to create a private post.

func (*ItemDiscussionsPostRequestBody) SetTitle

func (m *ItemDiscussionsPostRequestBody) SetTitle(value *string)

SetTitle sets the title property value. The discussion post's title.

type ItemDiscussionsPostRequestBodyable

type ItemDiscussionsPostRequestBodyable interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetBody() *string
	GetPrivate() *bool
	GetTitle() *string
	SetBody(value *string)
	SetPrivate(value *bool)
	SetTitle(value *string)
}

type ItemDiscussionsRequestBuilder

ItemDiscussionsRequestBuilder builds and executes requests for operations under \teams\{team_id}\discussions

func NewItemDiscussionsRequestBuilder

NewItemDiscussionsRequestBuilder instantiates a new ItemDiscussionsRequestBuilder and sets the default values.

func NewItemDiscussionsRequestBuilderInternal

func NewItemDiscussionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemDiscussionsRequestBuilder

NewItemDiscussionsRequestBuilderInternal instantiates a new ItemDiscussionsRequestBuilder and sets the default values.

func (*ItemDiscussionsRequestBuilder) ByDiscussion_number

ByDiscussion_number gets an item from the github.com/octokit/go-sdk-enterprise-server/pkg/github.teams.item.discussions.item collection Deprecated: returns a *ItemDiscussionsWithDiscussion_numberItemRequestBuilder when successful

func (*ItemDiscussionsRequestBuilder) Get

Get > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#list-discussions) endpoint.List all discussions on a team's page.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. Deprecated: returns a []TeamDiscussionable when successful API method documentation

func (*ItemDiscussionsRequestBuilder) Post

Post > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create a discussion`](https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#create-a-discussion) endpoint.Creates a new discussion post on a team's page.This endpoint triggers [notifications](https://docs.github.com/enterprise-server@3.13/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-server@3.13/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/enterprise-server@3.13/rest/guides/best-practices-for-using-the-rest-api)."OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. Deprecated: returns a TeamDiscussionable when successful API method documentation

func (*ItemDiscussionsRequestBuilder) ToGetRequestInformation

ToGetRequestInformation > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#list-discussions) endpoint.List all discussions on a team's page.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. Deprecated: returns a *RequestInformation when successful

func (*ItemDiscussionsRequestBuilder) ToPostRequestInformation

ToPostRequestInformation > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create a discussion`](https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#create-a-discussion) endpoint.Creates a new discussion post on a team's page.This endpoint triggers [notifications](https://docs.github.com/enterprise-server@3.13/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-server@3.13/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/enterprise-server@3.13/rest/guides/best-practices-for-using-the-rest-api)."OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. Deprecated: returns a *RequestInformation when successful

func (*ItemDiscussionsRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. Deprecated: returns a *ItemDiscussionsRequestBuilder when successful

type ItemDiscussionsRequestBuilderGetQueryParameters

type ItemDiscussionsRequestBuilderGetQueryParameters struct {
	// The direction to sort the results by.
	Direction *i74905effaddfad2641db8adcacd6698497990d022175c92bee611240571486b8.GetDirectionQueryParameterType `uriparametername:"direction"`
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.13/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.13/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
}

ItemDiscussionsRequestBuilderGetQueryParameters > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#list-discussions) endpoint.List all discussions on a team's page.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.

type ItemDiscussionsWithDiscussion_numberItemRequestBuilder

type ItemDiscussionsWithDiscussion_numberItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

ItemDiscussionsWithDiscussion_numberItemRequestBuilder builds and executes requests for operations under \teams\{team_id}\discussions\{discussion_number}

func NewItemDiscussionsWithDiscussion_numberItemRequestBuilder

func NewItemDiscussionsWithDiscussion_numberItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemDiscussionsWithDiscussion_numberItemRequestBuilder

NewItemDiscussionsWithDiscussion_numberItemRequestBuilder instantiates a new ItemDiscussionsWithDiscussion_numberItemRequestBuilder and sets the default values.

func NewItemDiscussionsWithDiscussion_numberItemRequestBuilderInternal

func NewItemDiscussionsWithDiscussion_numberItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemDiscussionsWithDiscussion_numberItemRequestBuilder

NewItemDiscussionsWithDiscussion_numberItemRequestBuilderInternal instantiates a new ItemDiscussionsWithDiscussion_numberItemRequestBuilder and sets the default values.

func (*ItemDiscussionsWithDiscussion_numberItemRequestBuilder) Comments

Comments the comments property returns a *ItemDiscussionsItemCommentsRequestBuilder when successful

func (*ItemDiscussionsWithDiscussion_numberItemRequestBuilder) Delete

Delete > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete a discussion`](https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#delete-a-discussion) endpoint.Delete a discussion from a team's page.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. Deprecated: API method documentation

func (*ItemDiscussionsWithDiscussion_numberItemRequestBuilder) Get

Get > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion](https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#get-a-discussion) endpoint.Get a specific discussion on a team's page.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. Deprecated: returns a TeamDiscussionable when successful API method documentation

func (*ItemDiscussionsWithDiscussion_numberItemRequestBuilder) Patch

Patch > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion](https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#update-a-discussion) endpoint.Edits the title and body text of a discussion post. Only the parameters you provide are updated.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. Deprecated: returns a TeamDiscussionable when successful API method documentation

func (*ItemDiscussionsWithDiscussion_numberItemRequestBuilder) Reactions

Reactions the reactions property returns a *ItemDiscussionsItemReactionsRequestBuilder when successful

func (*ItemDiscussionsWithDiscussion_numberItemRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete a discussion`](https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#delete-a-discussion) endpoint.Delete a discussion from a team's page.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. Deprecated: returns a *RequestInformation when successful

func (*ItemDiscussionsWithDiscussion_numberItemRequestBuilder) ToGetRequestInformation

ToGetRequestInformation > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion](https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#get-a-discussion) endpoint.Get a specific discussion on a team's page.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. Deprecated: returns a *RequestInformation when successful

func (*ItemDiscussionsWithDiscussion_numberItemRequestBuilder) ToPatchRequestInformation

ToPatchRequestInformation > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion](https://docs.github.com/enterprise-server@3.13/rest/teams/discussions#update-a-discussion) endpoint.Edits the title and body text of a discussion post. Only the parameters you provide are updated.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. Deprecated: returns a *RequestInformation when successful

func (*ItemDiscussionsWithDiscussion_numberItemRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. Deprecated: returns a *ItemDiscussionsWithDiscussion_numberItemRequestBuilder when successful

type ItemMembersRequestBuilder

ItemMembersRequestBuilder builds and executes requests for operations under \teams\{team_id}\members

func NewItemMembersRequestBuilder

NewItemMembersRequestBuilder instantiates a new ItemMembersRequestBuilder and sets the default values.

func NewItemMembersRequestBuilderInternal

func NewItemMembersRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemMembersRequestBuilder

NewItemMembersRequestBuilderInternal instantiates a new ItemMembersRequestBuilder and sets the default values.

func (*ItemMembersRequestBuilder) ByUsername

ByUsername gets an item from the github.com/octokit/go-sdk-enterprise-server/pkg/github.teams.item.members.item collection Deprecated: returns a *ItemMembersWithUsernameItemRequestBuilder when successful

func (*ItemMembersRequestBuilder) Get

Get > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team members`](https://docs.github.com/enterprise-server@3.13/rest/teams/members#list-team-members) endpoint.Team members will include the members of child teams. Deprecated: returns a []SimpleUserable when successful returns a BasicError error when the service returns a 404 status code API method documentation

func (*ItemMembersRequestBuilder) ToGetRequestInformation

ToGetRequestInformation > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team members`](https://docs.github.com/enterprise-server@3.13/rest/teams/members#list-team-members) endpoint.Team members will include the members of child teams. Deprecated: returns a *RequestInformation when successful

func (*ItemMembersRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. Deprecated: returns a *ItemMembersRequestBuilder when successful

type ItemMembersRequestBuilderGetQueryParameters

type ItemMembersRequestBuilderGetQueryParameters struct {
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.13/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.13/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
	// Filters members returned by their role in the team.
	Role *i4f50812fb596eef609cfbe24dd53d962613e025aa96b09d82fd9cab69eec53b9.GetRoleQueryParameterType `uriparametername:"role"`
}

ItemMembersRequestBuilderGetQueryParameters > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team members`](https://docs.github.com/enterprise-server@3.13/rest/teams/members#list-team-members) endpoint.Team members will include the members of child teams.

type ItemMembersWithUsernameItemRequestBuilder

type ItemMembersWithUsernameItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

ItemMembersWithUsernameItemRequestBuilder builds and executes requests for operations under \teams\{team_id}\members\{username}

func NewItemMembersWithUsernameItemRequestBuilder

NewItemMembersWithUsernameItemRequestBuilder instantiates a new ItemMembersWithUsernameItemRequestBuilder and sets the default values.

func NewItemMembersWithUsernameItemRequestBuilderInternal

func NewItemMembersWithUsernameItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemMembersWithUsernameItemRequestBuilder

NewItemMembersWithUsernameItemRequestBuilderInternal instantiates a new ItemMembersWithUsernameItemRequestBuilder and sets the default values.

func (*ItemMembersWithUsernameItemRequestBuilder) Delete

Delete the "Remove team member" endpoint (described below) is closing down.We recommend using the [Remove team membership for a user](https://docs.github.com/enterprise-server@3.13/rest/teams/members#remove-team-membership-for-a-user) endpoint instead. It allows you to remove both active and pending memberships.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-server@3.13/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.To remove a team member, the authenticated user must have 'admin' permissions to the team or be an owner of the org that the team is associated with. Removing a team member does not delete the user, it just removes them from the team.> [!NOTE]> When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub Enterprise Server team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub Enterprise Server](https://docs.github.com/enterprise-server@3.13/articles/synchronizing-teams-between-your-identity-provider-and-github/)." Deprecated: API method documentation

func (*ItemMembersWithUsernameItemRequestBuilder) Get

Get the "Get team member" endpoint (described below) is closing down.We recommend using the [Get team membership for a user](https://docs.github.com/enterprise-server@3.13/rest/teams/members#get-team-membership-for-a-user) endpoint instead. It allows you to get both active and pending memberships.To list members in a team, the team must be visible to the authenticated user. Deprecated: API method documentation

func (*ItemMembersWithUsernameItemRequestBuilder) Put

Put the "Add team member" endpoint (described below) is closing down.We recommend using the [Add or update team membership for a user](https://docs.github.com/enterprise-server@3.13/rest/teams/members#add-or-update-team-membership-for-a-user) endpoint instead. It allows you to invite new organization members to your teams.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-server@3.13/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.To add someone to a team, the authenticated user must be an organization owner or a team maintainer in the team they're changing. The person being added to the team must be a member of the team's organization.> [!NOTE]> When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub Enterprise Server team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub Enterprise Server](https://docs.github.com/enterprise-server@3.13/articles/synchronizing-teams-between-your-identity-provider-and-github/)."Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/enterprise-server@3.13/rest/guides/getting-started-with-the-rest-api#http-method)." Deprecated: returns a BasicError error when the service returns a 403 status code API method documentation

func (*ItemMembersWithUsernameItemRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation the "Remove team member" endpoint (described below) is closing down.We recommend using the [Remove team membership for a user](https://docs.github.com/enterprise-server@3.13/rest/teams/members#remove-team-membership-for-a-user) endpoint instead. It allows you to remove both active and pending memberships.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-server@3.13/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.To remove a team member, the authenticated user must have 'admin' permissions to the team or be an owner of the org that the team is associated with. Removing a team member does not delete the user, it just removes them from the team.> [!NOTE]> When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub Enterprise Server team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub Enterprise Server](https://docs.github.com/enterprise-server@3.13/articles/synchronizing-teams-between-your-identity-provider-and-github/)." Deprecated: returns a *RequestInformation when successful

func (*ItemMembersWithUsernameItemRequestBuilder) ToGetRequestInformation

ToGetRequestInformation the "Get team member" endpoint (described below) is closing down.We recommend using the [Get team membership for a user](https://docs.github.com/enterprise-server@3.13/rest/teams/members#get-team-membership-for-a-user) endpoint instead. It allows you to get both active and pending memberships.To list members in a team, the team must be visible to the authenticated user. Deprecated: returns a *RequestInformation when successful

func (*ItemMembersWithUsernameItemRequestBuilder) ToPutRequestInformation

ToPutRequestInformation the "Add team member" endpoint (described below) is closing down.We recommend using the [Add or update team membership for a user](https://docs.github.com/enterprise-server@3.13/rest/teams/members#add-or-update-team-membership-for-a-user) endpoint instead. It allows you to invite new organization members to your teams.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-server@3.13/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.To add someone to a team, the authenticated user must be an organization owner or a team maintainer in the team they're changing. The person being added to the team must be a member of the team's organization.> [!NOTE]> When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub Enterprise Server team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub Enterprise Server](https://docs.github.com/enterprise-server@3.13/articles/synchronizing-teams-between-your-identity-provider-and-github/)."Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/enterprise-server@3.13/rest/guides/getting-started-with-the-rest-api#http-method)." Deprecated: returns a *RequestInformation when successful

func (*ItemMembersWithUsernameItemRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. Deprecated: returns a *ItemMembersWithUsernameItemRequestBuilder when successful

type ItemMembershipsItemWithUsernamePutRequestBody

type ItemMembershipsItemWithUsernamePutRequestBody struct {
	// contains filtered or unexported fields
}

func NewItemMembershipsItemWithUsernamePutRequestBody

func NewItemMembershipsItemWithUsernamePutRequestBody() *ItemMembershipsItemWithUsernamePutRequestBody

NewItemMembershipsItemWithUsernamePutRequestBody instantiates a new ItemMembershipsItemWithUsernamePutRequestBody and sets the default values.

func (*ItemMembershipsItemWithUsernamePutRequestBody) GetAdditionalData

func (m *ItemMembershipsItemWithUsernamePutRequestBody) GetAdditionalData() map[string]any

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. returns a map[string]any when successful

func (*ItemMembershipsItemWithUsernamePutRequestBody) GetFieldDeserializers

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*ItemMembershipsItemWithUsernamePutRequestBody) Serialize

Serialize serializes information the current object

func (*ItemMembershipsItemWithUsernamePutRequestBody) SetAdditionalData

func (m *ItemMembershipsItemWithUsernamePutRequestBody) SetAdditionalData(value map[string]any)

SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

type ItemMembershipsRequestBuilder

ItemMembershipsRequestBuilder builds and executes requests for operations under \teams\{team_id}\memberships

func NewItemMembershipsRequestBuilder

NewItemMembershipsRequestBuilder instantiates a new ItemMembershipsRequestBuilder and sets the default values.

func NewItemMembershipsRequestBuilderInternal

func NewItemMembershipsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemMembershipsRequestBuilder

NewItemMembershipsRequestBuilderInternal instantiates a new ItemMembershipsRequestBuilder and sets the default values.

func (*ItemMembershipsRequestBuilder) ByUsername

ByUsername gets an item from the github.com/octokit/go-sdk-enterprise-server/pkg/github.teams.item.memberships.item collection Deprecated: returns a *ItemMembershipsWithUsernameItemRequestBuilder when successful

type ItemMembershipsWithUsernameItemRequestBuilder

type ItemMembershipsWithUsernameItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

ItemMembershipsWithUsernameItemRequestBuilder builds and executes requests for operations under \teams\{team_id}\memberships\{username}

func NewItemMembershipsWithUsernameItemRequestBuilder

NewItemMembershipsWithUsernameItemRequestBuilder instantiates a new ItemMembershipsWithUsernameItemRequestBuilder and sets the default values.

func NewItemMembershipsWithUsernameItemRequestBuilderInternal

func NewItemMembershipsWithUsernameItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemMembershipsWithUsernameItemRequestBuilder

NewItemMembershipsWithUsernameItemRequestBuilderInternal instantiates a new ItemMembershipsWithUsernameItemRequestBuilder and sets the default values.

func (*ItemMembershipsWithUsernameItemRequestBuilder) Delete

Delete > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove team membership for a user](https://docs.github.com/enterprise-server@3.13/rest/teams/members#remove-team-membership-for-a-user) endpoint.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-server@3.13/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.To remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. Removing team membership does not delete the user, it just removes their membership from the team.> [!NOTE]> When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub Enterprise Server team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub Enterprise Server](https://docs.github.com/enterprise-server@3.13/articles/synchronizing-teams-between-your-identity-provider-and-github/)." Deprecated: API method documentation

func (*ItemMembershipsWithUsernameItemRequestBuilder) Get

Get > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get team membership for a user](https://docs.github.com/enterprise-server@3.13/rest/teams/members#get-team-membership-for-a-user) endpoint.Team members will include the members of child teams.To get a user's membership with a team, the team must be visible to the authenticated user.**Note:**The response contains the `state` of the membership and the member's `role`.The `role` for organization owners is set to `maintainer`. For more information about `maintainer` roles, see [Create a team](https://docs.github.com/enterprise-server@3.13/rest/teams/teams#create-a-team). Deprecated: returns a TeamMembershipable when successful returns a BasicError error when the service returns a 404 status code API method documentation

func (*ItemMembershipsWithUsernameItemRequestBuilder) Put

Put > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team membership for a user](https://docs.github.com/enterprise-server@3.13/rest/teams/members#add-or-update-team-membership-for-a-user) endpoint.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-server@3.13/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.If the user is already a member of the team's organization, this endpoint will add the user to the team. To add a membership between an organization member and a team, the authenticated user must be an organization owner or a team maintainer.> [!NOTE]> When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub Enterprise Server team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub Enterprise Server](https://docs.github.com/enterprise-server@3.13/articles/synchronizing-teams-between-your-identity-provider-and-github/)."If the user is unaffiliated with the team's organization, this endpoint will send an invitation to the user via email. This newly-created membership will be in the "pending" state until the user accepts the invitation, at which point the membership will transition to the "active" state and the user will be added as a member of the team. To add a membership between an unaffiliated user and a team, the authenticated user must be an organization owner.If the user is already a member of the team, this endpoint will update the role of the team member's role. To update the membership of a team member, the authenticated user must be an organization owner or a team maintainer. Deprecated: returns a TeamMembershipable when successful returns a BasicError error when the service returns a 404 status code API method documentation

func (*ItemMembershipsWithUsernameItemRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove team membership for a user](https://docs.github.com/enterprise-server@3.13/rest/teams/members#remove-team-membership-for-a-user) endpoint.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-server@3.13/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.To remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. Removing team membership does not delete the user, it just removes their membership from the team.> [!NOTE]> When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub Enterprise Server team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub Enterprise Server](https://docs.github.com/enterprise-server@3.13/articles/synchronizing-teams-between-your-identity-provider-and-github/)." Deprecated: returns a *RequestInformation when successful

func (*ItemMembershipsWithUsernameItemRequestBuilder) ToGetRequestInformation

ToGetRequestInformation > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get team membership for a user](https://docs.github.com/enterprise-server@3.13/rest/teams/members#get-team-membership-for-a-user) endpoint.Team members will include the members of child teams.To get a user's membership with a team, the team must be visible to the authenticated user.**Note:**The response contains the `state` of the membership and the member's `role`.The `role` for organization owners is set to `maintainer`. For more information about `maintainer` roles, see [Create a team](https://docs.github.com/enterprise-server@3.13/rest/teams/teams#create-a-team). Deprecated: returns a *RequestInformation when successful

func (*ItemMembershipsWithUsernameItemRequestBuilder) ToPutRequestInformation

ToPutRequestInformation > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team membership for a user](https://docs.github.com/enterprise-server@3.13/rest/teams/members#add-or-update-team-membership-for-a-user) endpoint.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-server@3.13/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.If the user is already a member of the team's organization, this endpoint will add the user to the team. To add a membership between an organization member and a team, the authenticated user must be an organization owner or a team maintainer.> [!NOTE]> When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub Enterprise Server team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub Enterprise Server](https://docs.github.com/enterprise-server@3.13/articles/synchronizing-teams-between-your-identity-provider-and-github/)."If the user is unaffiliated with the team's organization, this endpoint will send an invitation to the user via email. This newly-created membership will be in the "pending" state until the user accepts the invitation, at which point the membership will transition to the "active" state and the user will be added as a member of the team. To add a membership between an unaffiliated user and a team, the authenticated user must be an organization owner.If the user is already a member of the team, this endpoint will update the role of the team member's role. To update the membership of a team member, the authenticated user must be an organization owner or a team maintainer. Deprecated: returns a *RequestInformation when successful

func (*ItemMembershipsWithUsernameItemRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. Deprecated: returns a *ItemMembershipsWithUsernameItemRequestBuilder when successful

type ItemProjectsItemWithProject_403Error

type ItemProjectsItemWithProject_403Error struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ApiError
	// contains filtered or unexported fields
}

func NewItemProjectsItemWithProject_403Error

func NewItemProjectsItemWithProject_403Error() *ItemProjectsItemWithProject_403Error

NewItemProjectsItemWithProject_403Error instantiates a new ItemProjectsItemWithProject_403Error and sets the default values.

func (*ItemProjectsItemWithProject_403Error) Error

Error the primary error message. returns a string when successful

func (*ItemProjectsItemWithProject_403Error) GetAdditionalData

func (m *ItemProjectsItemWithProject_403Error) GetAdditionalData() map[string]any

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. returns a map[string]any when successful

func (*ItemProjectsItemWithProject_403Error) GetDocumentationUrl

func (m *ItemProjectsItemWithProject_403Error) GetDocumentationUrl() *string

GetDocumentationUrl gets the documentation_url property value. The documentation_url property returns a *string when successful

func (*ItemProjectsItemWithProject_403Error) GetFieldDeserializers

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*ItemProjectsItemWithProject_403Error) GetMessage

GetMessage gets the message property value. The message property returns a *string when successful

func (*ItemProjectsItemWithProject_403Error) Serialize

Serialize serializes information the current object

func (*ItemProjectsItemWithProject_403Error) SetAdditionalData

func (m *ItemProjectsItemWithProject_403Error) SetAdditionalData(value map[string]any)

SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

func (*ItemProjectsItemWithProject_403Error) SetDocumentationUrl

func (m *ItemProjectsItemWithProject_403Error) SetDocumentationUrl(value *string)

SetDocumentationUrl sets the documentation_url property value. The documentation_url property

func (*ItemProjectsItemWithProject_403Error) SetMessage

func (m *ItemProjectsItemWithProject_403Error) SetMessage(value *string)

SetMessage sets the message property value. The message property

type ItemProjectsItemWithProject_403Errorable

type ItemProjectsItemWithProject_403Errorable interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetDocumentationUrl() *string
	GetMessage() *string
	SetDocumentationUrl(value *string)
	SetMessage(value *string)
}

type ItemProjectsItemWithProject_PutRequestBody

type ItemProjectsItemWithProject_PutRequestBody struct {
	// contains filtered or unexported fields
}

func NewItemProjectsItemWithProject_PutRequestBody

func NewItemProjectsItemWithProject_PutRequestBody() *ItemProjectsItemWithProject_PutRequestBody

NewItemProjectsItemWithProject_PutRequestBody instantiates a new ItemProjectsItemWithProject_PutRequestBody and sets the default values.

func (*ItemProjectsItemWithProject_PutRequestBody) GetAdditionalData

func (m *ItemProjectsItemWithProject_PutRequestBody) GetAdditionalData() map[string]any

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. returns a map[string]any when successful

func (*ItemProjectsItemWithProject_PutRequestBody) GetFieldDeserializers

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*ItemProjectsItemWithProject_PutRequestBody) Serialize

Serialize serializes information the current object

func (*ItemProjectsItemWithProject_PutRequestBody) SetAdditionalData

func (m *ItemProjectsItemWithProject_PutRequestBody) SetAdditionalData(value map[string]any)

SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

type ItemProjectsRequestBuilder

ItemProjectsRequestBuilder builds and executes requests for operations under \teams\{team_id}\projects

func NewItemProjectsRequestBuilder

NewItemProjectsRequestBuilder instantiates a new ItemProjectsRequestBuilder and sets the default values.

func NewItemProjectsRequestBuilderInternal

func NewItemProjectsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemProjectsRequestBuilder

NewItemProjectsRequestBuilderInternal instantiates a new ItemProjectsRequestBuilder and sets the default values.

func (*ItemProjectsRequestBuilder) ByProject_id

ByProject_id gets an item from the github.com/octokit/go-sdk-enterprise-server/pkg/github.teams.item.projects.item collection Deprecated: returns a *ItemProjectsWithProject_ItemRequestBuilder when successful

func (*ItemProjectsRequestBuilder) Get

Get > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team projects`](https://docs.github.com/enterprise-server@3.13/rest/teams/teams#list-team-projects) endpoint.Lists the organization projects for a team. Deprecated: returns a []TeamProjectable when successful returns a BasicError error when the service returns a 404 status code API method documentation

func (*ItemProjectsRequestBuilder) ToGetRequestInformation

ToGetRequestInformation > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team projects`](https://docs.github.com/enterprise-server@3.13/rest/teams/teams#list-team-projects) endpoint.Lists the organization projects for a team. Deprecated: returns a *RequestInformation when successful

func (*ItemProjectsRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. Deprecated: returns a *ItemProjectsRequestBuilder when successful

type ItemProjectsRequestBuilderGetQueryParameters

type ItemProjectsRequestBuilderGetQueryParameters struct {
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.13/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.13/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
}

ItemProjectsRequestBuilderGetQueryParameters > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team projects`](https://docs.github.com/enterprise-server@3.13/rest/teams/teams#list-team-projects) endpoint.Lists the organization projects for a team.

type ItemProjectsWithProject_ItemRequestBuilder

type ItemProjectsWithProject_ItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

ItemProjectsWithProject_ItemRequestBuilder builds and executes requests for operations under \teams\{team_id}\projects\{project_id}

func NewItemProjectsWithProject_ItemRequestBuilder

NewItemProjectsWithProject_ItemRequestBuilder instantiates a new ItemProjectsWithProject_ItemRequestBuilder and sets the default values.

func NewItemProjectsWithProject_ItemRequestBuilderInternal

func NewItemProjectsWithProject_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemProjectsWithProject_ItemRequestBuilder

NewItemProjectsWithProject_ItemRequestBuilderInternal instantiates a new ItemProjectsWithProject_ItemRequestBuilder and sets the default values.

func (*ItemProjectsWithProject_ItemRequestBuilder) Delete

Delete > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a project from a team](https://docs.github.com/enterprise-server@3.13/rest/teams/teams#remove-a-project-from-a-team) endpoint.Removes an organization project from a team. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have `read` access to both the team and project, or `admin` access to the team or project. **Note:** This endpoint removes the project from the team, but does not delete it. Deprecated: returns a BasicError error when the service returns a 404 status code returns a ValidationError error when the service returns a 422 status code API method documentation

func (*ItemProjectsWithProject_ItemRequestBuilder) Get

Get > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a project](https://docs.github.com/enterprise-server@3.13/rest/teams/teams#check-team-permissions-for-a-project) endpoint.Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. The response includes projects inherited from a parent team. Deprecated: returns a TeamProjectable when successful API method documentation

func (*ItemProjectsWithProject_ItemRequestBuilder) Put

Put > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team project permissions](https://docs.github.com/enterprise-server@3.13/rest/teams/teams#add-or-update-team-project-permissions) endpoint.Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization. Deprecated: returns a ItemProjectsItemWithProject_403Error error when the service returns a 403 status code returns a BasicError error when the service returns a 404 status code returns a ValidationError error when the service returns a 422 status code API method documentation

func (*ItemProjectsWithProject_ItemRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a project from a team](https://docs.github.com/enterprise-server@3.13/rest/teams/teams#remove-a-project-from-a-team) endpoint.Removes an organization project from a team. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have `read` access to both the team and project, or `admin` access to the team or project. **Note:** This endpoint removes the project from the team, but does not delete it. Deprecated: returns a *RequestInformation when successful

func (*ItemProjectsWithProject_ItemRequestBuilder) ToGetRequestInformation

ToGetRequestInformation > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a project](https://docs.github.com/enterprise-server@3.13/rest/teams/teams#check-team-permissions-for-a-project) endpoint.Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. The response includes projects inherited from a parent team. Deprecated: returns a *RequestInformation when successful

func (*ItemProjectsWithProject_ItemRequestBuilder) ToPutRequestInformation

ToPutRequestInformation > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team project permissions](https://docs.github.com/enterprise-server@3.13/rest/teams/teams#add-or-update-team-project-permissions) endpoint.Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization. Deprecated: returns a *RequestInformation when successful

func (*ItemProjectsWithProject_ItemRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. Deprecated: returns a *ItemProjectsWithProject_ItemRequestBuilder when successful

type ItemReposItemItemWithRepoPutRequestBody

type ItemReposItemItemWithRepoPutRequestBody struct {
	// contains filtered or unexported fields
}

func NewItemReposItemItemWithRepoPutRequestBody

func NewItemReposItemItemWithRepoPutRequestBody() *ItemReposItemItemWithRepoPutRequestBody

NewItemReposItemItemWithRepoPutRequestBody instantiates a new ItemReposItemItemWithRepoPutRequestBody and sets the default values.

func (*ItemReposItemItemWithRepoPutRequestBody) GetAdditionalData

func (m *ItemReposItemItemWithRepoPutRequestBody) GetAdditionalData() map[string]any

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. returns a map[string]any when successful

func (*ItemReposItemItemWithRepoPutRequestBody) GetFieldDeserializers

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*ItemReposItemItemWithRepoPutRequestBody) Serialize

Serialize serializes information the current object

func (*ItemReposItemItemWithRepoPutRequestBody) SetAdditionalData

func (m *ItemReposItemItemWithRepoPutRequestBody) SetAdditionalData(value map[string]any)

SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

type ItemReposItemWithRepoItemRequestBuilder

type ItemReposItemWithRepoItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

ItemReposItemWithRepoItemRequestBuilder builds and executes requests for operations under \teams\{team_id}\repos\{owner}\{repo}

func NewItemReposItemWithRepoItemRequestBuilder

NewItemReposItemWithRepoItemRequestBuilder instantiates a new ItemReposItemWithRepoItemRequestBuilder and sets the default values.

func NewItemReposItemWithRepoItemRequestBuilderInternal

func NewItemReposItemWithRepoItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemReposItemWithRepoItemRequestBuilder

NewItemReposItemWithRepoItemRequestBuilderInternal instantiates a new ItemReposItemWithRepoItemRequestBuilder and sets the default values.

func (*ItemReposItemWithRepoItemRequestBuilder) Delete

Delete > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a repository from a team](https://docs.github.com/enterprise-server@3.13/rest/teams/teams#remove-a-repository-from-a-team) endpoint.If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team. Deprecated: API method documentation

func (*ItemReposItemWithRepoItemRequestBuilder) Get

Get > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a repository](https://docs.github.com/enterprise-server@3.13/rest/teams/teams#check-team-permissions-for-a-repository) endpoint.> [!NOTE]> Repositories inherited through a parent team will also be checked.You can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom [media type](https://docs.github.com/enterprise-server@3.13/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types/) via the `Accept` header: Deprecated: returns a TeamRepositoryable when successful API method documentation

func (*ItemReposItemWithRepoItemRequestBuilder) Put

Put > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new "[Add or update team repository permissions](https://docs.github.com/enterprise-server@3.13/rest/teams/teams#add-or-update-team-repository-permissions)" endpoint.To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization.Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/enterprise-server@3.13/rest/guides/getting-started-with-the-rest-api#http-method)." Deprecated: returns a BasicError error when the service returns a 403 status code returns a ValidationError error when the service returns a 422 status code API method documentation

func (*ItemReposItemWithRepoItemRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a repository from a team](https://docs.github.com/enterprise-server@3.13/rest/teams/teams#remove-a-repository-from-a-team) endpoint.If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team. Deprecated: returns a *RequestInformation when successful

func (*ItemReposItemWithRepoItemRequestBuilder) ToGetRequestInformation

ToGetRequestInformation > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a repository](https://docs.github.com/enterprise-server@3.13/rest/teams/teams#check-team-permissions-for-a-repository) endpoint.> [!NOTE]> Repositories inherited through a parent team will also be checked.You can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom [media type](https://docs.github.com/enterprise-server@3.13/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types/) via the `Accept` header: Deprecated: returns a *RequestInformation when successful

func (*ItemReposItemWithRepoItemRequestBuilder) ToPutRequestInformation

ToPutRequestInformation > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new "[Add or update team repository permissions](https://docs.github.com/enterprise-server@3.13/rest/teams/teams#add-or-update-team-repository-permissions)" endpoint.To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization.Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/enterprise-server@3.13/rest/guides/getting-started-with-the-rest-api#http-method)." Deprecated: returns a *RequestInformation when successful

func (*ItemReposItemWithRepoItemRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. Deprecated: returns a *ItemReposItemWithRepoItemRequestBuilder when successful

type ItemReposRequestBuilder

ItemReposRequestBuilder builds and executes requests for operations under \teams\{team_id}\repos

func NewItemReposRequestBuilder

NewItemReposRequestBuilder instantiates a new ItemReposRequestBuilder and sets the default values.

func NewItemReposRequestBuilderInternal

func NewItemReposRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemReposRequestBuilder

NewItemReposRequestBuilderInternal instantiates a new ItemReposRequestBuilder and sets the default values.

func (*ItemReposRequestBuilder) ByOwner

ByOwner gets an item from the github.com/octokit/go-sdk-enterprise-server/pkg/github.teams.item.repos.item collection returns a *ItemReposWithOwnerItemRequestBuilder when successful

func (*ItemReposRequestBuilder) Get

Get > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [List team repositories](https://docs.github.com/enterprise-server@3.13/rest/teams/teams#list-team-repositories) endpoint. Deprecated: returns a []MinimalRepositoryable when successful returns a BasicError error when the service returns a 404 status code API method documentation

func (*ItemReposRequestBuilder) ToGetRequestInformation

ToGetRequestInformation > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [List team repositories](https://docs.github.com/enterprise-server@3.13/rest/teams/teams#list-team-repositories) endpoint. Deprecated: returns a *RequestInformation when successful

func (*ItemReposRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. Deprecated: returns a *ItemReposRequestBuilder when successful

type ItemReposRequestBuilderGetQueryParameters

type ItemReposRequestBuilderGetQueryParameters struct {
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.13/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.13/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
}

ItemReposRequestBuilderGetQueryParameters > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [List team repositories](https://docs.github.com/enterprise-server@3.13/rest/teams/teams#list-team-repositories) endpoint.

type ItemReposWithOwnerItemRequestBuilder

type ItemReposWithOwnerItemRequestBuilder struct {
	i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}

ItemReposWithOwnerItemRequestBuilder builds and executes requests for operations under \teams\{team_id}\repos\{owner}

func NewItemReposWithOwnerItemRequestBuilder

NewItemReposWithOwnerItemRequestBuilder instantiates a new ItemReposWithOwnerItemRequestBuilder and sets the default values.

func NewItemReposWithOwnerItemRequestBuilderInternal

func NewItemReposWithOwnerItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemReposWithOwnerItemRequestBuilder

NewItemReposWithOwnerItemRequestBuilderInternal instantiates a new ItemReposWithOwnerItemRequestBuilder and sets the default values.

func (*ItemReposWithOwnerItemRequestBuilder) ByRepo

ByRepo gets an item from the github.com/octokit/go-sdk-enterprise-server/pkg/github.teams.item.repos.item.item collection Deprecated: returns a *ItemReposItemWithRepoItemRequestBuilder when successful

type ItemTeamsRequestBuilder

ItemTeamsRequestBuilder builds and executes requests for operations under \teams\{team_id}\teams

func NewItemTeamsRequestBuilder

NewItemTeamsRequestBuilder instantiates a new ItemTeamsRequestBuilder and sets the default values.

func NewItemTeamsRequestBuilderInternal

func NewItemTeamsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemTeamsRequestBuilder

NewItemTeamsRequestBuilderInternal instantiates a new ItemTeamsRequestBuilder and sets the default values.

func (*ItemTeamsRequestBuilder) Get

Get > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List child teams`](https://docs.github.com/enterprise-server@3.13/rest/teams/teams#list-child-teams) endpoint. Deprecated: returns a []Teamable 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 returns a ValidationError error when the service returns a 422 status code API method documentation

func (*ItemTeamsRequestBuilder) ToGetRequestInformation

ToGetRequestInformation > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List child teams`](https://docs.github.com/enterprise-server@3.13/rest/teams/teams#list-child-teams) endpoint. Deprecated: returns a *RequestInformation when successful

func (*ItemTeamsRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. Deprecated: returns a *ItemTeamsRequestBuilder when successful

type ItemTeamsRequestBuilderGetQueryParameters

type ItemTeamsRequestBuilderGetQueryParameters struct {
	// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.13/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Page *int32 `uriparametername:"page"`
	// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-server@3.13/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
	Per_page *int32 `uriparametername:"per_page"`
}

ItemTeamsRequestBuilderGetQueryParameters > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List child teams`](https://docs.github.com/enterprise-server@3.13/rest/teams/teams#list-child-teams) endpoint.

type ItemWithTeam_PatchRequestBody

type ItemWithTeam_PatchRequestBody struct {
	// contains filtered or unexported fields
}

func NewItemWithTeam_PatchRequestBody

func NewItemWithTeam_PatchRequestBody() *ItemWithTeam_PatchRequestBody

NewItemWithTeam_PatchRequestBody instantiates a new ItemWithTeam_PatchRequestBody and sets the default values.

func (*ItemWithTeam_PatchRequestBody) GetAdditionalData

func (m *ItemWithTeam_PatchRequestBody) GetAdditionalData() map[string]any

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. returns a map[string]any when successful

func (*ItemWithTeam_PatchRequestBody) GetDescription

func (m *ItemWithTeam_PatchRequestBody) GetDescription() *string

GetDescription gets the description property value. The description of the team. returns a *string when successful

func (*ItemWithTeam_PatchRequestBody) GetFieldDeserializers

GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful

func (*ItemWithTeam_PatchRequestBody) GetName

func (m *ItemWithTeam_PatchRequestBody) GetName() *string

GetName gets the name property value. The name of the team. returns a *string when successful

func (*ItemWithTeam_PatchRequestBody) GetParentTeamId

func (m *ItemWithTeam_PatchRequestBody) GetParentTeamId() *int32

GetParentTeamId gets the parent_team_id property value. The ID of a team to set as the parent team. returns a *int32 when successful

func (*ItemWithTeam_PatchRequestBody) Serialize

Serialize serializes information the current object

func (*ItemWithTeam_PatchRequestBody) SetAdditionalData

func (m *ItemWithTeam_PatchRequestBody) SetAdditionalData(value map[string]any)

SetAdditionalData sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

func (*ItemWithTeam_PatchRequestBody) SetDescription

func (m *ItemWithTeam_PatchRequestBody) SetDescription(value *string)

SetDescription sets the description property value. The description of the team.

func (*ItemWithTeam_PatchRequestBody) SetName

func (m *ItemWithTeam_PatchRequestBody) SetName(value *string)

SetName sets the name property value. The name of the team.

func (*ItemWithTeam_PatchRequestBody) SetParentTeamId

func (m *ItemWithTeam_PatchRequestBody) SetParentTeamId(value *int32)

SetParentTeamId sets the parent_team_id property value. The ID of a team to set as the parent team.

type ItemWithTeam_PatchRequestBodyable

type ItemWithTeam_PatchRequestBodyable interface {
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder
	i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable
	GetDescription() *string
	GetName() *string
	GetParentTeamId() *int32
	SetDescription(value *string)
	SetName(value *string)
	SetParentTeamId(value *int32)
}

type TeamsRequestBuilder

TeamsRequestBuilder builds and executes requests for operations under \teams

func NewTeamsRequestBuilder

NewTeamsRequestBuilder instantiates a new TeamsRequestBuilder and sets the default values.

func NewTeamsRequestBuilderInternal

func NewTeamsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *TeamsRequestBuilder

NewTeamsRequestBuilderInternal instantiates a new TeamsRequestBuilder and sets the default values.

func (*TeamsRequestBuilder) ByTeam_id

func (m *TeamsRequestBuilder) ByTeam_id(team_id int32) *WithTeam_ItemRequestBuilder

ByTeam_id gets an item from the github.com/octokit/go-sdk-enterprise-server/pkg/github.teams.item collection Deprecated: returns a *WithTeam_ItemRequestBuilder when successful

type WithTeam_ItemRequestBuilder

WithTeam_ItemRequestBuilder builds and executes requests for operations under \teams\{team_id}

func NewWithTeam_ItemRequestBuilder

NewWithTeam_ItemRequestBuilder instantiates a new WithTeam_ItemRequestBuilder and sets the default values.

func NewWithTeam_ItemRequestBuilderInternal

func NewWithTeam_ItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *WithTeam_ItemRequestBuilder

NewWithTeam_ItemRequestBuilderInternal instantiates a new WithTeam_ItemRequestBuilder and sets the default values.

func (*WithTeam_ItemRequestBuilder) Delete

Delete > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a team](https://docs.github.com/enterprise-server@3.13/rest/teams/teams#delete-a-team) endpoint.To delete a team, the authenticated user must be an organization owner or team maintainer.If you are an organization owner, deleting a parent team will delete all of its child teams as well. Deprecated: returns a BasicError error when the service returns a 404 status code returns a ValidationError error when the service returns a 422 status code API method documentation

func (*WithTeam_ItemRequestBuilder) Discussions

Discussions the discussions property returns a *ItemDiscussionsRequestBuilder when successful

func (*WithTeam_ItemRequestBuilder) Get

Get > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the [Get a team by name](https://docs.github.com/enterprise-server@3.13/rest/teams/teams#get-a-team-by-name) endpoint. Deprecated: returns a TeamFullable when successful returns a BasicError error when the service returns a 404 status code API method documentation

func (*WithTeam_ItemRequestBuilder) Members

Members the members property returns a *ItemMembersRequestBuilder when successful

func (*WithTeam_ItemRequestBuilder) Memberships

Memberships the memberships property returns a *ItemMembershipsRequestBuilder when successful

func (*WithTeam_ItemRequestBuilder) Patch

Patch > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a team](https://docs.github.com/enterprise-server@3.13/rest/teams/teams#update-a-team) endpoint.To edit a team, the authenticated user must either be an organization owner or a team maintainer.> [!NOTE]> With nested teams, the `privacy` for parent teams cannot be `secret`. Deprecated: returns a TeamFullable 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 returns a ValidationError error when the service returns a 422 status code API method documentation

func (*WithTeam_ItemRequestBuilder) Projects

Projects the projects property returns a *ItemProjectsRequestBuilder when successful

func (*WithTeam_ItemRequestBuilder) Repos

Repos the repos property returns a *ItemReposRequestBuilder when successful

func (*WithTeam_ItemRequestBuilder) Teams

Teams the teams property returns a *ItemTeamsRequestBuilder when successful

func (*WithTeam_ItemRequestBuilder) ToDeleteRequestInformation

ToDeleteRequestInformation > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a team](https://docs.github.com/enterprise-server@3.13/rest/teams/teams#delete-a-team) endpoint.To delete a team, the authenticated user must be an organization owner or team maintainer.If you are an organization owner, deleting a parent team will delete all of its child teams as well. Deprecated: returns a *RequestInformation when successful

func (*WithTeam_ItemRequestBuilder) ToGetRequestInformation

ToGetRequestInformation > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the [Get a team by name](https://docs.github.com/enterprise-server@3.13/rest/teams/teams#get-a-team-by-name) endpoint. Deprecated: returns a *RequestInformation when successful

func (*WithTeam_ItemRequestBuilder) ToPatchRequestInformation

ToPatchRequestInformation > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a team](https://docs.github.com/enterprise-server@3.13/rest/teams/teams#update-a-team) endpoint.To edit a team, the authenticated user must either be an organization owner or a team maintainer.> [!NOTE]> With nested teams, the `privacy` for parent teams cannot be `secret`. Deprecated: returns a *RequestInformation when successful

func (*WithTeam_ItemRequestBuilder) WithUrl

WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. Deprecated: returns a *WithTeam_ItemRequestBuilder when successful

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL