Documentation
¶
Index ¶
- func CreateItemDiscussionsItemCommentsItemReactionsPostRequestBodyFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBodyFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateItemDiscussionsItemCommentsPostRequestBodyFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateItemDiscussionsItemReactionsPostRequestBodyFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateItemDiscussionsItemWithDiscussion_numberPatchRequestBodyFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateItemDiscussionsPostRequestBodyFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateItemMembershipsItemWithUsernamePutRequestBodyFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateItemProjectsItemWithProject_403ErrorFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateItemProjectsItemWithProject_PutRequestBodyFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateItemReposItemItemWithRepoPutRequestBodyFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- func CreateItemWithTeam_PatchRequestBodyFromDiscriminatorValue(...) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, ...)
- type ItemDiscussionsItemCommentsItemReactionsPostRequestBody
- func (m *ItemDiscussionsItemCommentsItemReactionsPostRequestBody) GetAdditionalData() map[string]any
- func (m *ItemDiscussionsItemCommentsItemReactionsPostRequestBody) GetFieldDeserializers() ...
- func (m *ItemDiscussionsItemCommentsItemReactionsPostRequestBody) Serialize(...) error
- func (m *ItemDiscussionsItemCommentsItemReactionsPostRequestBody) SetAdditionalData(value map[string]any)
- type ItemDiscussionsItemCommentsItemReactionsPostRequestBodyable
- type ItemDiscussionsItemCommentsItemReactionsRequestBuilder
- func NewItemDiscussionsItemCommentsItemReactionsRequestBuilder(rawUrl string, ...) *ItemDiscussionsItemCommentsItemReactionsRequestBuilder
- func NewItemDiscussionsItemCommentsItemReactionsRequestBuilderInternal(pathParameters map[string]string, ...) *ItemDiscussionsItemCommentsItemReactionsRequestBuilder
- func (m *ItemDiscussionsItemCommentsItemReactionsRequestBuilder) Get(ctx context.Context, ...) (...)
- func (m *ItemDiscussionsItemCommentsItemReactionsRequestBuilder) Post(ctx context.Context, ...) (ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.Reactionable, ...)
- func (m *ItemDiscussionsItemCommentsItemReactionsRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemDiscussionsItemCommentsItemReactionsRequestBuilder) ToPostRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemDiscussionsItemCommentsItemReactionsRequestBuilder) WithUrl(rawUrl string) *ItemDiscussionsItemCommentsItemReactionsRequestBuilder
- type ItemDiscussionsItemCommentsItemReactionsRequestBuilderGetQueryParameters
- type ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBody
- func (m *ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBody) GetAdditionalData() map[string]any
- func (m *ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBody) GetBody() *string
- func (m *ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBody) GetFieldDeserializers() ...
- func (m *ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBody) Serialize(...) error
- func (m *ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBody) SetAdditionalData(value map[string]any)
- func (m *ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBody) SetBody(value *string)
- type ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBodyable
- type ItemDiscussionsItemCommentsPostRequestBody
- func (m *ItemDiscussionsItemCommentsPostRequestBody) GetAdditionalData() map[string]any
- func (m *ItemDiscussionsItemCommentsPostRequestBody) GetBody() *string
- func (m *ItemDiscussionsItemCommentsPostRequestBody) GetFieldDeserializers() ...
- func (m *ItemDiscussionsItemCommentsPostRequestBody) Serialize(...) error
- func (m *ItemDiscussionsItemCommentsPostRequestBody) SetAdditionalData(value map[string]any)
- func (m *ItemDiscussionsItemCommentsPostRequestBody) SetBody(value *string)
- type ItemDiscussionsItemCommentsPostRequestBodyable
- type ItemDiscussionsItemCommentsRequestBuilder
- func (m *ItemDiscussionsItemCommentsRequestBuilder) ByComment_number(comment_number int32) *ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder
- func (m *ItemDiscussionsItemCommentsRequestBuilder) Get(ctx context.Context, ...) (...)
- func (m *ItemDiscussionsItemCommentsRequestBuilder) Post(ctx context.Context, body ItemDiscussionsItemCommentsPostRequestBodyable, ...) (...)
- func (m *ItemDiscussionsItemCommentsRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemDiscussionsItemCommentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemDiscussionsItemCommentsPostRequestBodyable, ...) (...)
- func (m *ItemDiscussionsItemCommentsRequestBuilder) WithUrl(rawUrl string) *ItemDiscussionsItemCommentsRequestBuilder
- type ItemDiscussionsItemCommentsRequestBuilderGetQueryParameters
- type ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder
- func NewItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder(rawUrl string, ...) *ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder
- func NewItemDiscussionsItemCommentsWithComment_numberItemRequestBuilderInternal(pathParameters map[string]string, ...) *ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder
- func (m *ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder) Delete(ctx context.Context, ...) error
- func (m *ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder) Get(ctx context.Context, ...) (...)
- func (m *ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder) Patch(ctx context.Context, ...) (...)
- func (m *ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder) Reactions() *ItemDiscussionsItemCommentsItemReactionsRequestBuilder
- func (m *ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder) WithUrl(rawUrl string) *ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder
- type ItemDiscussionsItemReactionsPostRequestBody
- func (m *ItemDiscussionsItemReactionsPostRequestBody) GetAdditionalData() map[string]any
- func (m *ItemDiscussionsItemReactionsPostRequestBody) GetFieldDeserializers() ...
- func (m *ItemDiscussionsItemReactionsPostRequestBody) Serialize(...) error
- func (m *ItemDiscussionsItemReactionsPostRequestBody) SetAdditionalData(value map[string]any)
- type ItemDiscussionsItemReactionsPostRequestBodyable
- type ItemDiscussionsItemReactionsRequestBuilder
- func (m *ItemDiscussionsItemReactionsRequestBuilder) Get(ctx context.Context, ...) (...)
- func (m *ItemDiscussionsItemReactionsRequestBuilder) Post(ctx context.Context, body ItemDiscussionsItemReactionsPostRequestBodyable, ...) (ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.Reactionable, ...)
- func (m *ItemDiscussionsItemReactionsRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemDiscussionsItemReactionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemDiscussionsItemReactionsPostRequestBodyable, ...) (...)
- func (m *ItemDiscussionsItemReactionsRequestBuilder) WithUrl(rawUrl string) *ItemDiscussionsItemReactionsRequestBuilder
- type ItemDiscussionsItemReactionsRequestBuilderGetQueryParameters
- type ItemDiscussionsItemWithDiscussion_numberPatchRequestBody
- func (m *ItemDiscussionsItemWithDiscussion_numberPatchRequestBody) GetAdditionalData() map[string]any
- func (m *ItemDiscussionsItemWithDiscussion_numberPatchRequestBody) GetBody() *string
- func (m *ItemDiscussionsItemWithDiscussion_numberPatchRequestBody) GetFieldDeserializers() ...
- func (m *ItemDiscussionsItemWithDiscussion_numberPatchRequestBody) GetTitle() *string
- func (m *ItemDiscussionsItemWithDiscussion_numberPatchRequestBody) Serialize(...) error
- func (m *ItemDiscussionsItemWithDiscussion_numberPatchRequestBody) SetAdditionalData(value map[string]any)
- func (m *ItemDiscussionsItemWithDiscussion_numberPatchRequestBody) SetBody(value *string)
- func (m *ItemDiscussionsItemWithDiscussion_numberPatchRequestBody) SetTitle(value *string)
- type ItemDiscussionsItemWithDiscussion_numberPatchRequestBodyable
- type ItemDiscussionsPostRequestBody
- func (m *ItemDiscussionsPostRequestBody) GetAdditionalData() map[string]any
- func (m *ItemDiscussionsPostRequestBody) GetBody() *string
- func (m *ItemDiscussionsPostRequestBody) GetFieldDeserializers() ...
- func (m *ItemDiscussionsPostRequestBody) GetPrivate() *bool
- func (m *ItemDiscussionsPostRequestBody) GetTitle() *string
- func (m *ItemDiscussionsPostRequestBody) Serialize(...) error
- func (m *ItemDiscussionsPostRequestBody) SetAdditionalData(value map[string]any)
- func (m *ItemDiscussionsPostRequestBody) SetBody(value *string)
- func (m *ItemDiscussionsPostRequestBody) SetPrivate(value *bool)
- func (m *ItemDiscussionsPostRequestBody) SetTitle(value *string)
- type ItemDiscussionsPostRequestBodyable
- type ItemDiscussionsRequestBuilder
- func (m *ItemDiscussionsRequestBuilder) ByDiscussion_number(discussion_number int32) *ItemDiscussionsWithDiscussion_numberItemRequestBuilder
- func (m *ItemDiscussionsRequestBuilder) Get(ctx context.Context, ...) (...)
- func (m *ItemDiscussionsRequestBuilder) Post(ctx context.Context, body ItemDiscussionsPostRequestBodyable, ...) (...)
- func (m *ItemDiscussionsRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemDiscussionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemDiscussionsPostRequestBodyable, ...) (...)
- func (m *ItemDiscussionsRequestBuilder) WithUrl(rawUrl string) *ItemDiscussionsRequestBuilder
- type ItemDiscussionsRequestBuilderGetQueryParameters
- type ItemDiscussionsWithDiscussion_numberItemRequestBuilder
- func NewItemDiscussionsWithDiscussion_numberItemRequestBuilder(rawUrl string, ...) *ItemDiscussionsWithDiscussion_numberItemRequestBuilder
- func NewItemDiscussionsWithDiscussion_numberItemRequestBuilderInternal(pathParameters map[string]string, ...) *ItemDiscussionsWithDiscussion_numberItemRequestBuilder
- func (m *ItemDiscussionsWithDiscussion_numberItemRequestBuilder) Comments() *ItemDiscussionsItemCommentsRequestBuilder
- func (m *ItemDiscussionsWithDiscussion_numberItemRequestBuilder) Delete(ctx context.Context, ...) error
- func (m *ItemDiscussionsWithDiscussion_numberItemRequestBuilder) Get(ctx context.Context, ...) (...)
- func (m *ItemDiscussionsWithDiscussion_numberItemRequestBuilder) Patch(ctx context.Context, ...) (...)
- func (m *ItemDiscussionsWithDiscussion_numberItemRequestBuilder) Reactions() *ItemDiscussionsItemReactionsRequestBuilder
- func (m *ItemDiscussionsWithDiscussion_numberItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemDiscussionsWithDiscussion_numberItemRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemDiscussionsWithDiscussion_numberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemDiscussionsWithDiscussion_numberItemRequestBuilder) WithUrl(rawUrl string) *ItemDiscussionsWithDiscussion_numberItemRequestBuilder
- type ItemMembersRequestBuilder
- func (m *ItemMembersRequestBuilder) ByUsername(username string) *ItemMembersWithUsernameItemRequestBuilder
- func (m *ItemMembersRequestBuilder) Get(ctx context.Context, ...) (...)
- func (m *ItemMembersRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemMembersRequestBuilder) WithUrl(rawUrl string) *ItemMembersRequestBuilder
- type ItemMembersRequestBuilderGetQueryParameters
- type ItemMembersWithUsernameItemRequestBuilder
- func (m *ItemMembersWithUsernameItemRequestBuilder) Delete(ctx context.Context, ...) error
- func (m *ItemMembersWithUsernameItemRequestBuilder) Get(ctx context.Context, ...) error
- func (m *ItemMembersWithUsernameItemRequestBuilder) Put(ctx context.Context, ...) error
- func (m *ItemMembersWithUsernameItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemMembersWithUsernameItemRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemMembersWithUsernameItemRequestBuilder) ToPutRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemMembersWithUsernameItemRequestBuilder) WithUrl(rawUrl string) *ItemMembersWithUsernameItemRequestBuilder
- type ItemMembershipsItemWithUsernamePutRequestBody
- func (m *ItemMembershipsItemWithUsernamePutRequestBody) GetAdditionalData() map[string]any
- func (m *ItemMembershipsItemWithUsernamePutRequestBody) GetFieldDeserializers() ...
- func (m *ItemMembershipsItemWithUsernamePutRequestBody) Serialize(...) error
- func (m *ItemMembershipsItemWithUsernamePutRequestBody) SetAdditionalData(value map[string]any)
- type ItemMembershipsItemWithUsernamePutRequestBodyable
- type ItemMembershipsRequestBuilder
- type ItemMembershipsWithUsernameItemRequestBuilder
- func (m *ItemMembershipsWithUsernameItemRequestBuilder) Delete(ctx context.Context, ...) error
- func (m *ItemMembershipsWithUsernameItemRequestBuilder) Get(ctx context.Context, ...) (...)
- func (m *ItemMembershipsWithUsernameItemRequestBuilder) Put(ctx context.Context, body ItemMembershipsItemWithUsernamePutRequestBodyable, ...) (...)
- func (m *ItemMembershipsWithUsernameItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemMembershipsWithUsernameItemRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemMembershipsWithUsernameItemRequestBuilder) ToPutRequestInformation(ctx context.Context, body ItemMembershipsItemWithUsernamePutRequestBodyable, ...) (...)
- func (m *ItemMembershipsWithUsernameItemRequestBuilder) WithUrl(rawUrl string) *ItemMembershipsWithUsernameItemRequestBuilder
- type ItemProjectsItemWithProject_403Error
- func (m *ItemProjectsItemWithProject_403Error) Error() string
- func (m *ItemProjectsItemWithProject_403Error) GetAdditionalData() map[string]any
- func (m *ItemProjectsItemWithProject_403Error) GetDocumentationUrl() *string
- func (m *ItemProjectsItemWithProject_403Error) GetFieldDeserializers() ...
- func (m *ItemProjectsItemWithProject_403Error) GetMessage() *string
- func (m *ItemProjectsItemWithProject_403Error) Serialize(...) error
- func (m *ItemProjectsItemWithProject_403Error) SetAdditionalData(value map[string]any)
- func (m *ItemProjectsItemWithProject_403Error) SetDocumentationUrl(value *string)
- func (m *ItemProjectsItemWithProject_403Error) SetMessage(value *string)
- type ItemProjectsItemWithProject_403Errorable
- type ItemProjectsItemWithProject_PutRequestBody
- func (m *ItemProjectsItemWithProject_PutRequestBody) GetAdditionalData() map[string]any
- func (m *ItemProjectsItemWithProject_PutRequestBody) GetFieldDeserializers() ...
- func (m *ItemProjectsItemWithProject_PutRequestBody) Serialize(...) error
- func (m *ItemProjectsItemWithProject_PutRequestBody) SetAdditionalData(value map[string]any)
- type ItemProjectsItemWithProject_PutRequestBodyable
- type ItemProjectsRequestBuilder
- func (m *ItemProjectsRequestBuilder) ByProject_id(project_id int32) *ItemProjectsWithProject_ItemRequestBuilder
- func (m *ItemProjectsRequestBuilder) Get(ctx context.Context, ...) (...)
- func (m *ItemProjectsRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemProjectsRequestBuilder) WithUrl(rawUrl string) *ItemProjectsRequestBuilder
- type ItemProjectsRequestBuilderGetQueryParameters
- type ItemProjectsWithProject_ItemRequestBuilder
- func (m *ItemProjectsWithProject_ItemRequestBuilder) Delete(ctx context.Context, ...) error
- func (m *ItemProjectsWithProject_ItemRequestBuilder) Get(ctx context.Context, ...) (...)
- func (m *ItemProjectsWithProject_ItemRequestBuilder) Put(ctx context.Context, body ItemProjectsItemWithProject_PutRequestBodyable, ...) error
- func (m *ItemProjectsWithProject_ItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemProjectsWithProject_ItemRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemProjectsWithProject_ItemRequestBuilder) ToPutRequestInformation(ctx context.Context, body ItemProjectsItemWithProject_PutRequestBodyable, ...) (...)
- func (m *ItemProjectsWithProject_ItemRequestBuilder) WithUrl(rawUrl string) *ItemProjectsWithProject_ItemRequestBuilder
- type ItemReposItemItemWithRepoPutRequestBody
- func (m *ItemReposItemItemWithRepoPutRequestBody) GetAdditionalData() map[string]any
- func (m *ItemReposItemItemWithRepoPutRequestBody) GetFieldDeserializers() ...
- func (m *ItemReposItemItemWithRepoPutRequestBody) Serialize(...) error
- func (m *ItemReposItemItemWithRepoPutRequestBody) SetAdditionalData(value map[string]any)
- type ItemReposItemItemWithRepoPutRequestBodyable
- type ItemReposItemWithRepoItemRequestBuilder
- func (m *ItemReposItemWithRepoItemRequestBuilder) Delete(ctx context.Context, ...) error
- func (m *ItemReposItemWithRepoItemRequestBuilder) Get(ctx context.Context, ...) (...)
- func (m *ItemReposItemWithRepoItemRequestBuilder) Put(ctx context.Context, body ItemReposItemItemWithRepoPutRequestBodyable, ...) error
- func (m *ItemReposItemWithRepoItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemReposItemWithRepoItemRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemReposItemWithRepoItemRequestBuilder) ToPutRequestInformation(ctx context.Context, body ItemReposItemItemWithRepoPutRequestBodyable, ...) (...)
- func (m *ItemReposItemWithRepoItemRequestBuilder) WithUrl(rawUrl string) *ItemReposItemWithRepoItemRequestBuilder
- type ItemReposRequestBuilder
- func (m *ItemReposRequestBuilder) ByOwner(owner string) *ItemReposWithOwnerItemRequestBuilder
- func (m *ItemReposRequestBuilder) Get(ctx context.Context, ...) (...)
- func (m *ItemReposRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemReposRequestBuilder) WithUrl(rawUrl string) *ItemReposRequestBuilder
- type ItemReposRequestBuilderGetQueryParameters
- type ItemReposWithOwnerItemRequestBuilder
- type ItemTeamsRequestBuilder
- func (m *ItemTeamsRequestBuilder) Get(ctx context.Context, ...) ([]ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.Teamable, ...)
- func (m *ItemTeamsRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *ItemTeamsRequestBuilder) WithUrl(rawUrl string) *ItemTeamsRequestBuilder
- type ItemTeamsRequestBuilderGetQueryParameters
- type ItemWithTeam_PatchRequestBody
- func (m *ItemWithTeam_PatchRequestBody) GetAdditionalData() map[string]any
- func (m *ItemWithTeam_PatchRequestBody) GetDescription() *string
- func (m *ItemWithTeam_PatchRequestBody) GetFieldDeserializers() ...
- func (m *ItemWithTeam_PatchRequestBody) GetName() *string
- func (m *ItemWithTeam_PatchRequestBody) GetParentTeamId() *int32
- func (m *ItemWithTeam_PatchRequestBody) Serialize(...) error
- func (m *ItemWithTeam_PatchRequestBody) SetAdditionalData(value map[string]any)
- func (m *ItemWithTeam_PatchRequestBody) SetDescription(value *string)
- func (m *ItemWithTeam_PatchRequestBody) SetName(value *string)
- func (m *ItemWithTeam_PatchRequestBody) SetParentTeamId(value *int32)
- type ItemWithTeam_PatchRequestBodyable
- type TeamsRequestBuilder
- type WithTeam_ItemRequestBuilder
- func (m *WithTeam_ItemRequestBuilder) Delete(ctx context.Context, ...) error
- func (m *WithTeam_ItemRequestBuilder) Discussions() *ItemDiscussionsRequestBuilder
- func (m *WithTeam_ItemRequestBuilder) Get(ctx context.Context, ...) (ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.TeamFullable, ...)
- func (m *WithTeam_ItemRequestBuilder) Members() *ItemMembersRequestBuilder
- func (m *WithTeam_ItemRequestBuilder) Memberships() *ItemMembershipsRequestBuilder
- func (m *WithTeam_ItemRequestBuilder) Patch(ctx context.Context, body ItemWithTeam_PatchRequestBodyable, ...) (ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.TeamFullable, ...)
- func (m *WithTeam_ItemRequestBuilder) Projects() *ItemProjectsRequestBuilder
- func (m *WithTeam_ItemRequestBuilder) Repos() *ItemReposRequestBuilder
- func (m *WithTeam_ItemRequestBuilder) Teams() *ItemTeamsRequestBuilder
- func (m *WithTeam_ItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, ...) (...)
- func (m *WithTeam_ItemRequestBuilder) ToGetRequestInformation(ctx context.Context, ...) (...)
- func (m *WithTeam_ItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ItemWithTeam_PatchRequestBodyable, ...) (...)
- func (m *WithTeam_ItemRequestBuilder) WithUrl(rawUrl string) *WithTeam_ItemRequestBuilder
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 ¶
func CreateItemDiscussionsItemCommentsPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateItemDiscussionsItemCommentsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreateItemDiscussionsItemReactionsPostRequestBodyFromDiscriminatorValue ¶
func CreateItemDiscussionsItemReactionsPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
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 ¶
func CreateItemDiscussionsPostRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateItemDiscussionsPostRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreateItemMembershipsItemWithUsernamePutRequestBodyFromDiscriminatorValue ¶
func CreateItemMembershipsItemWithUsernamePutRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateItemMembershipsItemWithUsernamePutRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreateItemProjectsItemWithProject_403ErrorFromDiscriminatorValue ¶
func CreateItemProjectsItemWithProject_403ErrorFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateItemProjectsItemWithProject_403ErrorFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreateItemProjectsItemWithProject_PutRequestBodyFromDiscriminatorValue ¶
func CreateItemProjectsItemWithProject_PutRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateItemProjectsItemWithProject_PutRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreateItemReposItemItemWithRepoPutRequestBodyFromDiscriminatorValue ¶
func CreateItemReposItemItemWithRepoPutRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
CreateItemReposItemItemWithRepoPutRequestBodyFromDiscriminatorValue creates a new instance of the appropriate class based on discriminator value returns a Parsable when successful
func CreateItemWithTeam_PatchRequestBodyFromDiscriminatorValue ¶
func CreateItemWithTeam_PatchRequestBodyFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) (i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error)
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 ¶
func (m *ItemDiscussionsItemCommentsItemReactionsPostRequestBody) 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 (*ItemDiscussionsItemCommentsItemReactionsPostRequestBody) GetFieldDeserializers ¶
func (m *ItemDiscussionsItemCommentsItemReactionsPostRequestBody) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (*ItemDiscussionsItemCommentsItemReactionsPostRequestBody) Serialize ¶
func (m *ItemDiscussionsItemCommentsItemReactionsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
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 ItemDiscussionsItemCommentsItemReactionsPostRequestBodyable ¶
type ItemDiscussionsItemCommentsItemReactionsPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable }
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 ¶
func (m *ItemDiscussionsItemCommentsItemReactionsRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemDiscussionsItemCommentsItemReactionsRequestBuilderGetQueryParameters]) ([]ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.Reactionable, error)
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 ¶
func (m *ItemDiscussionsItemCommentsItemReactionsRequestBuilder) Post(ctx context.Context, body ItemDiscussionsItemCommentsItemReactionsPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.Reactionable, error)
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 ¶
func (m *ItemDiscussionsItemCommentsItemReactionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemDiscussionsItemCommentsItemReactionsRequestBuilderGetQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemDiscussionsItemCommentsItemReactionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemDiscussionsItemCommentsItemReactionsPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemDiscussionsItemCommentsItemReactionsRequestBuilder) WithUrl(rawUrl string) *ItemDiscussionsItemCommentsItemReactionsRequestBuilder
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 ¶
func (m *ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBody) 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 (*ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBody) GetBody ¶
func (m *ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBody) GetBody() *string
GetBody gets the body property value. The discussion comment's body text. returns a *string when successful
func (*ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBody) GetFieldDeserializers ¶
func (m *ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBody) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (*ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBody) Serialize ¶
func (m *ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
Serialize serializes information the current object
func (*ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBody) SetAdditionalData ¶
func (m *ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBody) 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 (*ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBody) SetBody ¶
func (m *ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBody) SetBody(value *string)
SetBody sets the body property value. The discussion comment's body text.
type ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBodyable ¶
type ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBody() *string SetBody(value *string) }
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 ¶
func (m *ItemDiscussionsItemCommentsPostRequestBody) GetBody() *string
GetBody gets the body property value. The discussion comment's body text. returns a *string when successful
func (*ItemDiscussionsItemCommentsPostRequestBody) GetFieldDeserializers ¶
func (m *ItemDiscussionsItemCommentsPostRequestBody) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (*ItemDiscussionsItemCommentsPostRequestBody) Serialize ¶
func (m *ItemDiscussionsItemCommentsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
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 ¶
func (m *ItemDiscussionsItemCommentsPostRequestBody) SetBody(value *string)
SetBody sets the body property value. The discussion comment's body text.
type ItemDiscussionsItemCommentsPostRequestBodyable ¶
type ItemDiscussionsItemCommentsPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBody() *string SetBody(value *string) }
type ItemDiscussionsItemCommentsRequestBuilder ¶
type ItemDiscussionsItemCommentsRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
ItemDiscussionsItemCommentsRequestBuilder builds and executes requests for operations under \teams\{team_id}\discussions\{discussion_number}\comments
func NewItemDiscussionsItemCommentsRequestBuilder ¶
func NewItemDiscussionsItemCommentsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemDiscussionsItemCommentsRequestBuilder
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 ¶
func (m *ItemDiscussionsItemCommentsRequestBuilder) ByComment_number(comment_number int32) *ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder
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 ¶
func (m *ItemDiscussionsItemCommentsRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemDiscussionsItemCommentsRequestBuilderGetQueryParameters]) ([]ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.TeamDiscussionCommentable, error)
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 ¶
func (m *ItemDiscussionsItemCommentsRequestBuilder) Post(ctx context.Context, body ItemDiscussionsItemCommentsPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.TeamDiscussionCommentable, error)
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 ¶
func (m *ItemDiscussionsItemCommentsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemDiscussionsItemCommentsRequestBuilderGetQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemDiscussionsItemCommentsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemDiscussionsItemCommentsPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemDiscussionsItemCommentsRequestBuilder) WithUrl(rawUrl string) *ItemDiscussionsItemCommentsRequestBuilder
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 ¶
func (m *ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) error
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 ¶
func (m *ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.TeamDiscussionCommentable, error)
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 ¶
func (m *ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder) Patch(ctx context.Context, body ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.TeamDiscussionCommentable, error)
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 ¶
func (m *ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder) Reactions() *ItemDiscussionsItemCommentsItemReactionsRequestBuilder
Reactions the reactions property returns a *ItemDiscussionsItemCommentsItemReactionsRequestBuilder when successful
func (*ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder) ToDeleteRequestInformation ¶
func (m *ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ItemDiscussionsItemCommentsItemWithComment_numberPatchRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder) WithUrl(rawUrl string) *ItemDiscussionsItemCommentsWithComment_numberItemRequestBuilder
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 ¶
func (m *ItemDiscussionsItemReactionsPostRequestBody) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (*ItemDiscussionsItemReactionsPostRequestBody) Serialize ¶
func (m *ItemDiscussionsItemReactionsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
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 ItemDiscussionsItemReactionsPostRequestBodyable ¶
type ItemDiscussionsItemReactionsPostRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable }
type ItemDiscussionsItemReactionsRequestBuilder ¶
type ItemDiscussionsItemReactionsRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
ItemDiscussionsItemReactionsRequestBuilder builds and executes requests for operations under \teams\{team_id}\discussions\{discussion_number}\reactions
func NewItemDiscussionsItemReactionsRequestBuilder ¶
func NewItemDiscussionsItemReactionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemDiscussionsItemReactionsRequestBuilder
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 ¶
func (m *ItemDiscussionsItemReactionsRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemDiscussionsItemReactionsRequestBuilderGetQueryParameters]) ([]ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.Reactionable, error)
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 ¶
func (m *ItemDiscussionsItemReactionsRequestBuilder) Post(ctx context.Context, body ItemDiscussionsItemReactionsPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.Reactionable, error)
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 ¶
func (m *ItemDiscussionsItemReactionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemDiscussionsItemReactionsRequestBuilderGetQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemDiscussionsItemReactionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemDiscussionsItemReactionsPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemDiscussionsItemReactionsRequestBuilder) WithUrl(rawUrl string) *ItemDiscussionsItemReactionsRequestBuilder
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 ¶
func (m *ItemDiscussionsItemWithDiscussion_numberPatchRequestBody) 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 (*ItemDiscussionsItemWithDiscussion_numberPatchRequestBody) GetBody ¶
func (m *ItemDiscussionsItemWithDiscussion_numberPatchRequestBody) GetBody() *string
GetBody gets the body property value. The discussion post's body text. returns a *string when successful
func (*ItemDiscussionsItemWithDiscussion_numberPatchRequestBody) GetFieldDeserializers ¶
func (m *ItemDiscussionsItemWithDiscussion_numberPatchRequestBody) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (*ItemDiscussionsItemWithDiscussion_numberPatchRequestBody) GetTitle ¶
func (m *ItemDiscussionsItemWithDiscussion_numberPatchRequestBody) GetTitle() *string
GetTitle gets the title property value. The discussion post's title. returns a *string when successful
func (*ItemDiscussionsItemWithDiscussion_numberPatchRequestBody) Serialize ¶
func (m *ItemDiscussionsItemWithDiscussion_numberPatchRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
Serialize serializes information the current object
func (*ItemDiscussionsItemWithDiscussion_numberPatchRequestBody) SetAdditionalData ¶
func (m *ItemDiscussionsItemWithDiscussion_numberPatchRequestBody) 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 (*ItemDiscussionsItemWithDiscussion_numberPatchRequestBody) SetBody ¶
func (m *ItemDiscussionsItemWithDiscussion_numberPatchRequestBody) SetBody(value *string)
SetBody sets the body property value. The discussion post's body text.
func (*ItemDiscussionsItemWithDiscussion_numberPatchRequestBody) SetTitle ¶
func (m *ItemDiscussionsItemWithDiscussion_numberPatchRequestBody) SetTitle(value *string)
SetTitle sets the title property value. The discussion post's title.
type ItemDiscussionsItemWithDiscussion_numberPatchRequestBodyable ¶
type ItemDiscussionsItemWithDiscussion_numberPatchRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable GetBody() *string GetTitle() *string SetBody(value *string) SetTitle(value *string) }
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 ¶
func (m *ItemDiscussionsPostRequestBody) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
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 ¶
func (m *ItemDiscussionsPostRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
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 ¶
type ItemDiscussionsRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
ItemDiscussionsRequestBuilder builds and executes requests for operations under \teams\{team_id}\discussions
func NewItemDiscussionsRequestBuilder ¶
func NewItemDiscussionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemDiscussionsRequestBuilder
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 ¶
func (m *ItemDiscussionsRequestBuilder) ByDiscussion_number(discussion_number int32) *ItemDiscussionsWithDiscussion_numberItemRequestBuilder
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 ¶
func (m *ItemDiscussionsRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemDiscussionsRequestBuilderGetQueryParameters]) ([]ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.TeamDiscussionable, error)
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 ¶
func (m *ItemDiscussionsRequestBuilder) Post(ctx context.Context, body ItemDiscussionsPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.TeamDiscussionable, error)
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 ¶
func (m *ItemDiscussionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemDiscussionsRequestBuilderGetQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemDiscussionsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ItemDiscussionsPostRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemDiscussionsRequestBuilder) WithUrl(rawUrl string) *ItemDiscussionsRequestBuilder
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 ¶
func (m *ItemDiscussionsWithDiscussion_numberItemRequestBuilder) Comments() *ItemDiscussionsItemCommentsRequestBuilder
Comments the comments property returns a *ItemDiscussionsItemCommentsRequestBuilder when successful
func (*ItemDiscussionsWithDiscussion_numberItemRequestBuilder) Delete ¶
func (m *ItemDiscussionsWithDiscussion_numberItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) error
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 ¶
func (m *ItemDiscussionsWithDiscussion_numberItemRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.TeamDiscussionable, error)
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 ¶
func (m *ItemDiscussionsWithDiscussion_numberItemRequestBuilder) Patch(ctx context.Context, body ItemDiscussionsItemWithDiscussion_numberPatchRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.TeamDiscussionable, error)
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 ¶
func (m *ItemDiscussionsWithDiscussion_numberItemRequestBuilder) Reactions() *ItemDiscussionsItemReactionsRequestBuilder
Reactions the reactions property returns a *ItemDiscussionsItemReactionsRequestBuilder when successful
func (*ItemDiscussionsWithDiscussion_numberItemRequestBuilder) ToDeleteRequestInformation ¶
func (m *ItemDiscussionsWithDiscussion_numberItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemDiscussionsWithDiscussion_numberItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemDiscussionsWithDiscussion_numberItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ItemDiscussionsItemWithDiscussion_numberPatchRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemDiscussionsWithDiscussion_numberItemRequestBuilder) WithUrl(rawUrl string) *ItemDiscussionsWithDiscussion_numberItemRequestBuilder
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 ¶
type ItemMembersRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
ItemMembersRequestBuilder builds and executes requests for operations under \teams\{team_id}\members
func NewItemMembersRequestBuilder ¶
func NewItemMembersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemMembersRequestBuilder
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 ¶
func (m *ItemMembersRequestBuilder) ByUsername(username string) *ItemMembersWithUsernameItemRequestBuilder
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 ¶
func (m *ItemMembersRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemMembersRequestBuilderGetQueryParameters]) ([]ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.SimpleUserable, error)
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 ¶
func (m *ItemMembersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemMembersRequestBuilderGetQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemMembersRequestBuilder) WithUrl(rawUrl string) *ItemMembersRequestBuilder
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 ¶
func NewItemMembersWithUsernameItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemMembersWithUsernameItemRequestBuilder
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 ¶
func (m *ItemMembersWithUsernameItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) error
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 ¶
func (m *ItemMembersWithUsernameItemRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) error
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 ¶
func (m *ItemMembersWithUsernameItemRequestBuilder) Put(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) error
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 ¶
func (m *ItemMembersWithUsernameItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemMembersWithUsernameItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemMembersWithUsernameItemRequestBuilder) ToPutRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemMembersWithUsernameItemRequestBuilder) WithUrl(rawUrl string) *ItemMembersWithUsernameItemRequestBuilder
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 ¶
func (m *ItemMembershipsItemWithUsernamePutRequestBody) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (*ItemMembershipsItemWithUsernamePutRequestBody) Serialize ¶
func (m *ItemMembershipsItemWithUsernamePutRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
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 ItemMembershipsItemWithUsernamePutRequestBodyable ¶
type ItemMembershipsItemWithUsernamePutRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable }
type ItemMembershipsRequestBuilder ¶
type ItemMembershipsRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
ItemMembershipsRequestBuilder builds and executes requests for operations under \teams\{team_id}\memberships
func NewItemMembershipsRequestBuilder ¶
func NewItemMembershipsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemMembershipsRequestBuilder
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 ¶
func (m *ItemMembershipsRequestBuilder) ByUsername(username string) *ItemMembershipsWithUsernameItemRequestBuilder
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 ¶
func NewItemMembershipsWithUsernameItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemMembershipsWithUsernameItemRequestBuilder
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 ¶
func (m *ItemMembershipsWithUsernameItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) error
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 ¶
func (m *ItemMembershipsWithUsernameItemRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.TeamMembershipable, error)
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 ¶
func (m *ItemMembershipsWithUsernameItemRequestBuilder) Put(ctx context.Context, body ItemMembershipsItemWithUsernamePutRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.TeamMembershipable, error)
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 ¶
func (m *ItemMembershipsWithUsernameItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemMembershipsWithUsernameItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemMembershipsWithUsernameItemRequestBuilder) ToPutRequestInformation(ctx context.Context, body ItemMembershipsItemWithUsernamePutRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemMembershipsWithUsernameItemRequestBuilder) WithUrl(rawUrl string) *ItemMembershipsWithUsernameItemRequestBuilder
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 ¶
func (m *ItemProjectsItemWithProject_403Error) Error() string
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 ¶
func (m *ItemProjectsItemWithProject_403Error) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (*ItemProjectsItemWithProject_403Error) GetMessage ¶
func (m *ItemProjectsItemWithProject_403Error) GetMessage() *string
GetMessage gets the message property value. The message property returns a *string when successful
func (*ItemProjectsItemWithProject_403Error) Serialize ¶
func (m *ItemProjectsItemWithProject_403Error) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
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 ¶
func (m *ItemProjectsItemWithProject_PutRequestBody) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (*ItemProjectsItemWithProject_PutRequestBody) Serialize ¶
func (m *ItemProjectsItemWithProject_PutRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
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 ItemProjectsItemWithProject_PutRequestBodyable ¶
type ItemProjectsItemWithProject_PutRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable }
type ItemProjectsRequestBuilder ¶
type ItemProjectsRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
ItemProjectsRequestBuilder builds and executes requests for operations under \teams\{team_id}\projects
func NewItemProjectsRequestBuilder ¶
func NewItemProjectsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemProjectsRequestBuilder
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 ¶
func (m *ItemProjectsRequestBuilder) ByProject_id(project_id int32) *ItemProjectsWithProject_ItemRequestBuilder
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 ¶
func (m *ItemProjectsRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemProjectsRequestBuilderGetQueryParameters]) ([]ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.TeamProjectable, error)
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 ¶
func (m *ItemProjectsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemProjectsRequestBuilderGetQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemProjectsRequestBuilder) WithUrl(rawUrl string) *ItemProjectsRequestBuilder
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 ¶
func NewItemProjectsWithProject_ItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemProjectsWithProject_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 ¶
func (m *ItemProjectsWithProject_ItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) error
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 ¶
func (m *ItemProjectsWithProject_ItemRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.TeamProjectable, error)
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 ¶
func (m *ItemProjectsWithProject_ItemRequestBuilder) Put(ctx context.Context, body ItemProjectsItemWithProject_PutRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) error
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 ¶
func (m *ItemProjectsWithProject_ItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemProjectsWithProject_ItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemProjectsWithProject_ItemRequestBuilder) ToPutRequestInformation(ctx context.Context, body ItemProjectsItemWithProject_PutRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemProjectsWithProject_ItemRequestBuilder) WithUrl(rawUrl string) *ItemProjectsWithProject_ItemRequestBuilder
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 ¶
func (m *ItemReposItemItemWithRepoPutRequestBody) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
GetFieldDeserializers the deserialization information for the current model returns a map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error) when successful
func (*ItemReposItemItemWithRepoPutRequestBody) Serialize ¶
func (m *ItemReposItemItemWithRepoPutRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
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 ItemReposItemItemWithRepoPutRequestBodyable ¶
type ItemReposItemItemWithRepoPutRequestBodyable interface { i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.AdditionalDataHolder i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable }
type ItemReposItemWithRepoItemRequestBuilder ¶
type ItemReposItemWithRepoItemRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
ItemReposItemWithRepoItemRequestBuilder builds and executes requests for operations under \teams\{team_id}\repos\{owner}\{repo}
func NewItemReposItemWithRepoItemRequestBuilder ¶
func NewItemReposItemWithRepoItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemReposItemWithRepoItemRequestBuilder
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 ¶
func (m *ItemReposItemWithRepoItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) error
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 ¶
func (m *ItemReposItemWithRepoItemRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.TeamRepositoryable, error)
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 ¶
func (m *ItemReposItemWithRepoItemRequestBuilder) Put(ctx context.Context, body ItemReposItemItemWithRepoPutRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) error
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 ¶
func (m *ItemReposItemWithRepoItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemReposItemWithRepoItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemReposItemWithRepoItemRequestBuilder) ToPutRequestInformation(ctx context.Context, body ItemReposItemItemWithRepoPutRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemReposItemWithRepoItemRequestBuilder) WithUrl(rawUrl string) *ItemReposItemWithRepoItemRequestBuilder
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 ¶
type ItemReposRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
ItemReposRequestBuilder builds and executes requests for operations under \teams\{team_id}\repos
func NewItemReposRequestBuilder ¶
func NewItemReposRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemReposRequestBuilder
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 ¶
func (m *ItemReposRequestBuilder) ByOwner(owner string) *ItemReposWithOwnerItemRequestBuilder
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 ¶
func (m *ItemReposRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemReposRequestBuilderGetQueryParameters]) ([]ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.MinimalRepositoryable, error)
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 ¶
func (m *ItemReposRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemReposRequestBuilderGetQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemReposRequestBuilder) WithUrl(rawUrl string) *ItemReposRequestBuilder
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 ¶
func NewItemReposWithOwnerItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemReposWithOwnerItemRequestBuilder
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 ¶
func (m *ItemReposWithOwnerItemRequestBuilder) ByRepo(repo string) *ItemReposItemWithRepoItemRequestBuilder
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 ¶
type ItemTeamsRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
ItemTeamsRequestBuilder builds and executes requests for operations under \teams\{team_id}\teams
func NewItemTeamsRequestBuilder ¶
func NewItemTeamsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *ItemTeamsRequestBuilder
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 ¶
func (m *ItemTeamsRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemTeamsRequestBuilderGetQueryParameters]) ([]ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.Teamable, error)
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 ¶
func (m *ItemTeamsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[ItemTeamsRequestBuilderGetQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *ItemTeamsRequestBuilder) WithUrl(rawUrl string) *ItemTeamsRequestBuilder
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 ¶
func (m *ItemWithTeam_PatchRequestBody) GetFieldDeserializers() map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode) error
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 ¶
func (m *ItemWithTeam_PatchRequestBody) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter) error
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 ¶
type TeamsRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
TeamsRequestBuilder builds and executes requests for operations under \teams
func NewTeamsRequestBuilder ¶
func NewTeamsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *TeamsRequestBuilder
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 ¶
type WithTeam_ItemRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
WithTeam_ItemRequestBuilder builds and executes requests for operations under \teams\{team_id}
func NewWithTeam_ItemRequestBuilder ¶
func NewWithTeam_ItemRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter) *WithTeam_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 ¶
func (m *WithTeam_ItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) error
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 ¶
func (m *WithTeam_ItemRequestBuilder) Discussions() *ItemDiscussionsRequestBuilder
Discussions the discussions property returns a *ItemDiscussionsRequestBuilder when successful
func (*WithTeam_ItemRequestBuilder) Get ¶
func (m *WithTeam_ItemRequestBuilder) Get(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.TeamFullable, error)
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 ¶
func (m *WithTeam_ItemRequestBuilder) Members() *ItemMembersRequestBuilder
Members the members property returns a *ItemMembersRequestBuilder when successful
func (*WithTeam_ItemRequestBuilder) Memberships ¶
func (m *WithTeam_ItemRequestBuilder) Memberships() *ItemMembershipsRequestBuilder
Memberships the memberships property returns a *ItemMembershipsRequestBuilder when successful
func (*WithTeam_ItemRequestBuilder) Patch ¶
func (m *WithTeam_ItemRequestBuilder) Patch(ctx context.Context, body ItemWithTeam_PatchRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (ie1e2072a5a4eb80f74a1387d59644d3f70804e6b7b2f406016da8826571f1207.TeamFullable, error)
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 ¶
func (m *WithTeam_ItemRequestBuilder) Projects() *ItemProjectsRequestBuilder
Projects the projects property returns a *ItemProjectsRequestBuilder when successful
func (*WithTeam_ItemRequestBuilder) Repos ¶
func (m *WithTeam_ItemRequestBuilder) Repos() *ItemReposRequestBuilder
Repos the repos property returns a *ItemReposRequestBuilder when successful
func (*WithTeam_ItemRequestBuilder) Teams ¶
func (m *WithTeam_ItemRequestBuilder) Teams() *ItemTeamsRequestBuilder
Teams the teams property returns a *ItemTeamsRequestBuilder when successful
func (*WithTeam_ItemRequestBuilder) ToDeleteRequestInformation ¶
func (m *WithTeam_ItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *WithTeam_ItemRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *WithTeam_ItemRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ItemWithTeam_PatchRequestBodyable, requestConfiguration *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestConfiguration[i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DefaultQueryParameters]) (*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error)
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 ¶
func (m *WithTeam_ItemRequestBuilder) WithUrl(rawUrl string) *WithTeam_ItemRequestBuilder
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
¶
- item_discussions_item_comments_item_reactions_post_request_body.go
- item_discussions_item_comments_item_reactions_request_builder.go
- item_discussions_item_comments_item_with_comment_escaped_number_patch_request_body.go
- item_discussions_item_comments_post_request_body.go
- item_discussions_item_comments_request_builder.go
- item_discussions_item_comments_with_comment_escaped_number_item_request_builder.go
- item_discussions_item_reactions_post_request_body.go
- item_discussions_item_reactions_request_builder.go
- item_discussions_item_with_discussion_escaped_number_patch_request_body.go
- item_discussions_post_request_body.go
- item_discussions_request_builder.go
- item_discussions_with_discussion_escaped_number_item_request_builder.go
- item_members_request_builder.go
- item_members_with_username_item_request_builder.go
- item_memberships_item_with_username_put_request_body.go
- item_memberships_request_builder.go
- item_memberships_with_username_item_request_builder.go
- item_projects_item_with_project_escaped_403_error.go
- item_projects_item_with_project_escaped_put_request_body.go
- item_projects_request_builder.go
- item_projects_with_project_escaped_item_request_builder.go
- item_repos_item_item_with_repo_put_request_body.go
- item_repos_item_with_repo_item_request_builder.go
- item_repos_request_builder.go
- item_repos_with_owner_item_request_builder.go
- item_teams_request_builder.go
- item_with_team_escaped_patch_request_body.go
- teams_request_builder.go
- with_team_escaped_item_request_builder.go