Documentation ¶
Index ¶
- type AddMemberLegacyReq
- type AddMemberLegacyResponse
- type AddOrUpdateMembershipForUserInOrgReq
- type AddOrUpdateMembershipForUserInOrgReqBody
- type AddOrUpdateMembershipForUserInOrgResponse
- type AddOrUpdateMembershipForUserLegacyReq
- type AddOrUpdateMembershipForUserLegacyReqBody
- type AddOrUpdateMembershipForUserLegacyResponse
- type AddOrUpdateProjectPermissionsInOrgReq
- type AddOrUpdateProjectPermissionsInOrgReqBody
- type AddOrUpdateProjectPermissionsInOrgResponse
- type AddOrUpdateProjectPermissionsLegacyReq
- type AddOrUpdateProjectPermissionsLegacyReqBody
- type AddOrUpdateProjectPermissionsLegacyResponse
- type AddOrUpdateRepoPermissionsInOrgReq
- type AddOrUpdateRepoPermissionsInOrgReqBody
- type AddOrUpdateRepoPermissionsInOrgResponse
- type AddOrUpdateRepoPermissionsLegacyReq
- type AddOrUpdateRepoPermissionsLegacyReqBody
- type AddOrUpdateRepoPermissionsLegacyResponse
- type CheckPermissionsForProjectInOrgReq
- type CheckPermissionsForProjectInOrgResponse
- type CheckPermissionsForProjectLegacyReq
- type CheckPermissionsForProjectLegacyResponse
- type CheckPermissionsForRepoInOrgReq
- type CheckPermissionsForRepoInOrgResponse
- type CheckPermissionsForRepoLegacyReq
- type CheckPermissionsForRepoLegacyResponse
- type Client
- func (c Client) AddMemberLegacy(ctx context.Context, req *AddMemberLegacyReq, opt ...requests.Option) (*AddMemberLegacyResponse, error)
- func (c Client) AddOrUpdateMembershipForUserInOrg(ctx context.Context, req *AddOrUpdateMembershipForUserInOrgReq, ...) (*AddOrUpdateMembershipForUserInOrgResponse, error)
- func (c Client) AddOrUpdateMembershipForUserLegacy(ctx context.Context, req *AddOrUpdateMembershipForUserLegacyReq, ...) (*AddOrUpdateMembershipForUserLegacyResponse, error)
- func (c Client) AddOrUpdateProjectPermissionsInOrg(ctx context.Context, req *AddOrUpdateProjectPermissionsInOrgReq, ...) (*AddOrUpdateProjectPermissionsInOrgResponse, error)
- func (c Client) AddOrUpdateProjectPermissionsLegacy(ctx context.Context, req *AddOrUpdateProjectPermissionsLegacyReq, ...) (*AddOrUpdateProjectPermissionsLegacyResponse, error)
- func (c Client) AddOrUpdateRepoPermissionsInOrg(ctx context.Context, req *AddOrUpdateRepoPermissionsInOrgReq, ...) (*AddOrUpdateRepoPermissionsInOrgResponse, error)
- func (c Client) AddOrUpdateRepoPermissionsLegacy(ctx context.Context, req *AddOrUpdateRepoPermissionsLegacyReq, ...) (*AddOrUpdateRepoPermissionsLegacyResponse, error)
- func (c Client) CheckPermissionsForProjectInOrg(ctx context.Context, req *CheckPermissionsForProjectInOrgReq, ...) (*CheckPermissionsForProjectInOrgResponse, error)
- func (c Client) CheckPermissionsForProjectLegacy(ctx context.Context, req *CheckPermissionsForProjectLegacyReq, ...) (*CheckPermissionsForProjectLegacyResponse, error)
- func (c Client) CheckPermissionsForRepoInOrg(ctx context.Context, req *CheckPermissionsForRepoInOrgReq, ...) (*CheckPermissionsForRepoInOrgResponse, error)
- func (c Client) CheckPermissionsForRepoLegacy(ctx context.Context, req *CheckPermissionsForRepoLegacyReq, ...) (*CheckPermissionsForRepoLegacyResponse, error)
- func (c Client) Create(ctx context.Context, req *CreateReq, opt ...requests.Option) (*CreateResponse, error)
- func (c Client) CreateDiscussionCommentInOrg(ctx context.Context, req *CreateDiscussionCommentInOrgReq, ...) (*CreateDiscussionCommentInOrgResponse, error)
- func (c Client) CreateDiscussionCommentLegacy(ctx context.Context, req *CreateDiscussionCommentLegacyReq, ...) (*CreateDiscussionCommentLegacyResponse, error)
- func (c Client) CreateDiscussionInOrg(ctx context.Context, req *CreateDiscussionInOrgReq, opt ...requests.Option) (*CreateDiscussionInOrgResponse, error)
- func (c Client) CreateDiscussionLegacy(ctx context.Context, req *CreateDiscussionLegacyReq, opt ...requests.Option) (*CreateDiscussionLegacyResponse, error)
- func (c Client) CreateOrUpdateIdpGroupConnectionsInOrg(ctx context.Context, req *CreateOrUpdateIdpGroupConnectionsInOrgReq, ...) (*CreateOrUpdateIdpGroupConnectionsInOrgResponse, error)
- func (c Client) CreateOrUpdateIdpGroupConnectionsLegacy(ctx context.Context, req *CreateOrUpdateIdpGroupConnectionsLegacyReq, ...) (*CreateOrUpdateIdpGroupConnectionsLegacyResponse, error)
- func (c Client) DeleteDiscussionCommentInOrg(ctx context.Context, req *DeleteDiscussionCommentInOrgReq, ...) (*DeleteDiscussionCommentInOrgResponse, error)
- func (c Client) DeleteDiscussionCommentLegacy(ctx context.Context, req *DeleteDiscussionCommentLegacyReq, ...) (*DeleteDiscussionCommentLegacyResponse, error)
- func (c Client) DeleteDiscussionInOrg(ctx context.Context, req *DeleteDiscussionInOrgReq, opt ...requests.Option) (*DeleteDiscussionInOrgResponse, error)
- func (c Client) DeleteDiscussionLegacy(ctx context.Context, req *DeleteDiscussionLegacyReq, opt ...requests.Option) (*DeleteDiscussionLegacyResponse, error)
- func (c Client) DeleteInOrg(ctx context.Context, req *DeleteInOrgReq, opt ...requests.Option) (*DeleteInOrgResponse, error)
- func (c Client) DeleteLegacy(ctx context.Context, req *DeleteLegacyReq, opt ...requests.Option) (*DeleteLegacyResponse, error)
- func (c Client) GetByName(ctx context.Context, req *GetByNameReq, opt ...requests.Option) (*GetByNameResponse, error)
- func (c Client) GetDiscussionCommentInOrg(ctx context.Context, req *GetDiscussionCommentInOrgReq, opt ...requests.Option) (*GetDiscussionCommentInOrgResponse, error)
- func (c Client) GetDiscussionCommentLegacy(ctx context.Context, req *GetDiscussionCommentLegacyReq, ...) (*GetDiscussionCommentLegacyResponse, error)
- func (c Client) GetDiscussionInOrg(ctx context.Context, req *GetDiscussionInOrgReq, opt ...requests.Option) (*GetDiscussionInOrgResponse, error)
- func (c Client) GetDiscussionLegacy(ctx context.Context, req *GetDiscussionLegacyReq, opt ...requests.Option) (*GetDiscussionLegacyResponse, error)
- func (c Client) GetLegacy(ctx context.Context, req *GetLegacyReq, opt ...requests.Option) (*GetLegacyResponse, error)
- func (c Client) GetMemberLegacy(ctx context.Context, req *GetMemberLegacyReq, opt ...requests.Option) (*GetMemberLegacyResponse, error)
- func (c Client) GetMembershipForUserInOrg(ctx context.Context, req *GetMembershipForUserInOrgReq, opt ...requests.Option) (*GetMembershipForUserInOrgResponse, error)
- func (c Client) GetMembershipForUserLegacy(ctx context.Context, req *GetMembershipForUserLegacyReq, ...) (*GetMembershipForUserLegacyResponse, error)
- func (c Client) List(ctx context.Context, req *ListReq, opt ...requests.Option) (*ListResponse, error)
- func (c Client) ListChildInOrg(ctx context.Context, req *ListChildInOrgReq, opt ...requests.Option) (*ListChildInOrgResponse, error)
- func (c Client) ListChildLegacy(ctx context.Context, req *ListChildLegacyReq, opt ...requests.Option) (*ListChildLegacyResponse, error)
- func (c Client) ListDiscussionCommentsInOrg(ctx context.Context, req *ListDiscussionCommentsInOrgReq, ...) (*ListDiscussionCommentsInOrgResponse, error)
- func (c Client) ListDiscussionCommentsLegacy(ctx context.Context, req *ListDiscussionCommentsLegacyReq, ...) (*ListDiscussionCommentsLegacyResponse, error)
- func (c Client) ListDiscussionsInOrg(ctx context.Context, req *ListDiscussionsInOrgReq, opt ...requests.Option) (*ListDiscussionsInOrgResponse, error)
- func (c Client) ListDiscussionsLegacy(ctx context.Context, req *ListDiscussionsLegacyReq, opt ...requests.Option) (*ListDiscussionsLegacyResponse, error)
- func (c Client) ListForAuthenticatedUser(ctx context.Context, req *ListForAuthenticatedUserReq, opt ...requests.Option) (*ListForAuthenticatedUserResponse, error)
- func (c Client) ListIdpGroupsForLegacy(ctx context.Context, req *ListIdpGroupsForLegacyReq, opt ...requests.Option) (*ListIdpGroupsForLegacyResponse, error)
- func (c Client) ListIdpGroupsForOrg(ctx context.Context, req *ListIdpGroupsForOrgReq, opt ...requests.Option) (*ListIdpGroupsForOrgResponse, error)
- func (c Client) ListIdpGroupsInOrg(ctx context.Context, req *ListIdpGroupsInOrgReq, opt ...requests.Option) (*ListIdpGroupsInOrgResponse, error)
- func (c Client) ListMembersInOrg(ctx context.Context, req *ListMembersInOrgReq, opt ...requests.Option) (*ListMembersInOrgResponse, error)
- func (c Client) ListMembersLegacy(ctx context.Context, req *ListMembersLegacyReq, opt ...requests.Option) (*ListMembersLegacyResponse, error)
- func (c Client) ListPendingInvitationsInOrg(ctx context.Context, req *ListPendingInvitationsInOrgReq, ...) (*ListPendingInvitationsInOrgResponse, error)
- func (c Client) ListPendingInvitationsLegacy(ctx context.Context, req *ListPendingInvitationsLegacyReq, ...) (*ListPendingInvitationsLegacyResponse, error)
- func (c Client) ListProjectsInOrg(ctx context.Context, req *ListProjectsInOrgReq, opt ...requests.Option) (*ListProjectsInOrgResponse, error)
- func (c Client) ListProjectsLegacy(ctx context.Context, req *ListProjectsLegacyReq, opt ...requests.Option) (*ListProjectsLegacyResponse, error)
- func (c Client) ListReposInOrg(ctx context.Context, req *ListReposInOrgReq, opt ...requests.Option) (*ListReposInOrgResponse, error)
- func (c Client) ListReposLegacy(ctx context.Context, req *ListReposLegacyReq, opt ...requests.Option) (*ListReposLegacyResponse, error)
- func (c Client) RemoveMemberLegacy(ctx context.Context, req *RemoveMemberLegacyReq, opt ...requests.Option) (*RemoveMemberLegacyResponse, error)
- func (c Client) RemoveMembershipForUserInOrg(ctx context.Context, req *RemoveMembershipForUserInOrgReq, ...) (*RemoveMembershipForUserInOrgResponse, error)
- func (c Client) RemoveMembershipForUserLegacy(ctx context.Context, req *RemoveMembershipForUserLegacyReq, ...) (*RemoveMembershipForUserLegacyResponse, error)
- func (c Client) RemoveProjectInOrg(ctx context.Context, req *RemoveProjectInOrgReq, opt ...requests.Option) (*RemoveProjectInOrgResponse, error)
- func (c Client) RemoveProjectLegacy(ctx context.Context, req *RemoveProjectLegacyReq, opt ...requests.Option) (*RemoveProjectLegacyResponse, error)
- func (c Client) RemoveRepoInOrg(ctx context.Context, req *RemoveRepoInOrgReq, opt ...requests.Option) (*RemoveRepoInOrgResponse, error)
- func (c Client) RemoveRepoLegacy(ctx context.Context, req *RemoveRepoLegacyReq, opt ...requests.Option) (*RemoveRepoLegacyResponse, error)
- func (c Client) UpdateDiscussionCommentInOrg(ctx context.Context, req *UpdateDiscussionCommentInOrgReq, ...) (*UpdateDiscussionCommentInOrgResponse, error)
- func (c Client) UpdateDiscussionCommentLegacy(ctx context.Context, req *UpdateDiscussionCommentLegacyReq, ...) (*UpdateDiscussionCommentLegacyResponse, error)
- func (c Client) UpdateDiscussionInOrg(ctx context.Context, req *UpdateDiscussionInOrgReq, opt ...requests.Option) (*UpdateDiscussionInOrgResponse, error)
- func (c Client) UpdateDiscussionLegacy(ctx context.Context, req *UpdateDiscussionLegacyReq, opt ...requests.Option) (*UpdateDiscussionLegacyResponse, error)
- func (c Client) UpdateInOrg(ctx context.Context, req *UpdateInOrgReq, opt ...requests.Option) (*UpdateInOrgResponse, error)
- func (c Client) UpdateLegacy(ctx context.Context, req *UpdateLegacyReq, opt ...requests.Option) (*UpdateLegacyResponse, error)
- type CreateDiscussionCommentInOrgReq
- type CreateDiscussionCommentInOrgReqBody
- type CreateDiscussionCommentInOrgResponse
- type CreateDiscussionCommentLegacyReq
- type CreateDiscussionCommentLegacyReqBody
- type CreateDiscussionCommentLegacyResponse
- type CreateDiscussionInOrgReq
- type CreateDiscussionInOrgReqBody
- type CreateDiscussionInOrgResponse
- type CreateDiscussionLegacyReq
- type CreateDiscussionLegacyReqBody
- type CreateDiscussionLegacyResponse
- type CreateOrUpdateIdpGroupConnectionsInOrgReq
- type CreateOrUpdateIdpGroupConnectionsInOrgReqBody
- type CreateOrUpdateIdpGroupConnectionsInOrgReqBodyGroups
- type CreateOrUpdateIdpGroupConnectionsInOrgResponse
- type CreateOrUpdateIdpGroupConnectionsLegacyReq
- type CreateOrUpdateIdpGroupConnectionsLegacyReqBody
- type CreateOrUpdateIdpGroupConnectionsLegacyReqBodyGroups
- type CreateOrUpdateIdpGroupConnectionsLegacyResponse
- type CreateReq
- type CreateReqBody
- type CreateResponse
- type DeleteDiscussionCommentInOrgReq
- type DeleteDiscussionCommentInOrgResponse
- type DeleteDiscussionCommentLegacyReq
- type DeleteDiscussionCommentLegacyResponse
- type DeleteDiscussionInOrgReq
- type DeleteDiscussionInOrgResponse
- type DeleteDiscussionLegacyReq
- type DeleteDiscussionLegacyResponse
- type DeleteInOrgReq
- type DeleteInOrgResponse
- type DeleteLegacyReq
- type DeleteLegacyResponse
- type GetByNameReq
- type GetByNameResponse
- type GetDiscussionCommentInOrgReq
- type GetDiscussionCommentInOrgResponse
- type GetDiscussionCommentLegacyReq
- type GetDiscussionCommentLegacyResponse
- type GetDiscussionInOrgReq
- type GetDiscussionInOrgResponse
- type GetDiscussionLegacyReq
- type GetDiscussionLegacyResponse
- type GetLegacyReq
- type GetLegacyResponse
- type GetMemberLegacyReq
- type GetMemberLegacyResponse
- type GetMembershipForUserInOrgReq
- type GetMembershipForUserInOrgResponse
- type GetMembershipForUserLegacyReq
- type GetMembershipForUserLegacyResponse
- type ListChildInOrgReq
- type ListChildInOrgResponse
- type ListChildLegacyReq
- type ListChildLegacyResponse
- type ListDiscussionCommentsInOrgReq
- type ListDiscussionCommentsInOrgResponse
- type ListDiscussionCommentsLegacyReq
- type ListDiscussionCommentsLegacyResponse
- type ListDiscussionsInOrgReq
- type ListDiscussionsInOrgResponse
- type ListDiscussionsLegacyReq
- type ListDiscussionsLegacyResponse
- type ListForAuthenticatedUserReq
- type ListForAuthenticatedUserResponse
- type ListIdpGroupsForLegacyReq
- type ListIdpGroupsForLegacyResponse
- type ListIdpGroupsForOrgReq
- type ListIdpGroupsForOrgResponse
- type ListIdpGroupsInOrgReq
- type ListIdpGroupsInOrgResponse
- type ListMembersInOrgReq
- type ListMembersInOrgResponse
- type ListMembersLegacyReq
- type ListMembersLegacyResponse
- type ListPendingInvitationsInOrgReq
- type ListPendingInvitationsInOrgResponse
- type ListPendingInvitationsLegacyReq
- type ListPendingInvitationsLegacyResponse
- type ListProjectsInOrgReq
- type ListProjectsInOrgResponse
- type ListProjectsLegacyReq
- type ListProjectsLegacyResponse
- type ListReposInOrgReq
- type ListReposInOrgResponse
- type ListReposLegacyReq
- type ListReposLegacyResponse
- type ListReq
- type ListResponse
- type RemoveMemberLegacyReq
- type RemoveMemberLegacyResponse
- type RemoveMembershipForUserInOrgReq
- type RemoveMembershipForUserInOrgResponse
- type RemoveMembershipForUserLegacyReq
- type RemoveMembershipForUserLegacyResponse
- type RemoveProjectInOrgReq
- type RemoveProjectInOrgResponse
- type RemoveProjectLegacyReq
- type RemoveProjectLegacyResponse
- type RemoveRepoInOrgReq
- type RemoveRepoInOrgResponse
- type RemoveRepoLegacyReq
- type RemoveRepoLegacyResponse
- type UpdateDiscussionCommentInOrgReq
- type UpdateDiscussionCommentInOrgReqBody
- type UpdateDiscussionCommentInOrgResponse
- type UpdateDiscussionCommentLegacyReq
- type UpdateDiscussionCommentLegacyReqBody
- type UpdateDiscussionCommentLegacyResponse
- type UpdateDiscussionInOrgReq
- type UpdateDiscussionInOrgReqBody
- type UpdateDiscussionInOrgResponse
- type UpdateDiscussionLegacyReq
- type UpdateDiscussionLegacyReqBody
- type UpdateDiscussionLegacyResponse
- type UpdateInOrgReq
- type UpdateInOrgReqBody
- type UpdateInOrgResponse
- type UpdateLegacyReq
- type UpdateLegacyReqBody
- type UpdateLegacyResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddMemberLegacyReq ¶
type AddMemberLegacyReq struct { TeamId int64 Username string // contains filtered or unexported fields }
AddMemberLegacyReq is request data for Client.AddMemberLegacy
https://developer.github.com/v3/teams/members/#add-team-member-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*AddMemberLegacyReq) HTTPRequest ¶
func (r *AddMemberLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*AddMemberLegacyReq) Rel ¶
func (r *AddMemberLegacyReq) Rel(link string, resp *AddMemberLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type AddMemberLegacyResponse ¶
type AddMemberLegacyResponse struct {
// contains filtered or unexported fields
}
AddMemberLegacyResponse is a response for AddMemberLegacy
https://developer.github.com/v3/teams/members/#add-team-member-legacy
func AddMemberLegacy ¶
func AddMemberLegacy(ctx context.Context, req *AddMemberLegacyReq, opt ...requests.Option) (*AddMemberLegacyResponse, error)
AddMemberLegacy performs requests for "teams/add-member-legacy"
Add team member (Legacy).
PUT /teams/{team_id}/members/{username}
https://developer.github.com/v3/teams/members/#add-team-member-legacy
func (*AddMemberLegacyResponse) HTTPResponse ¶
func (r *AddMemberLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*AddMemberLegacyResponse) ReadResponse ¶
func (r *AddMemberLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type AddOrUpdateMembershipForUserInOrgReq ¶
type AddOrUpdateMembershipForUserInOrgReq struct { Org string // team_slug parameter TeamSlug string Username string RequestBody AddOrUpdateMembershipForUserInOrgReqBody // contains filtered or unexported fields }
AddOrUpdateMembershipForUserInOrgReq is request data for Client.AddOrUpdateMembershipForUserInOrg
https://developer.github.com/v3/teams/members/#add-or-update-team-membership-for-a-user
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*AddOrUpdateMembershipForUserInOrgReq) HTTPRequest ¶
func (r *AddOrUpdateMembershipForUserInOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*AddOrUpdateMembershipForUserInOrgReq) Rel ¶
func (r *AddOrUpdateMembershipForUserInOrgReq) Rel(link string, resp *AddOrUpdateMembershipForUserInOrgResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type AddOrUpdateMembershipForUserInOrgReqBody ¶
type AddOrUpdateMembershipForUserInOrgReqBody struct { /* The role that this user should have in the team. Can be one of: \* `member` - a normal member of the team. \* `maintainer` - a team maintainer. Able to add/remove other team members, promote other team members to team maintainer, and edit the team's name and description. */ Role *string `json:"role,omitempty"` }
AddOrUpdateMembershipForUserInOrgReqBody is a request body for teams/add-or-update-membership-for-user-in-org
https://developer.github.com/v3/teams/members/#add-or-update-team-membership-for-a-user
type AddOrUpdateMembershipForUserInOrgResponse ¶
type AddOrUpdateMembershipForUserInOrgResponse struct { Data components.TeamMembership // contains filtered or unexported fields }
AddOrUpdateMembershipForUserInOrgResponse is a response for AddOrUpdateMembershipForUserInOrg
https://developer.github.com/v3/teams/members/#add-or-update-team-membership-for-a-user
func AddOrUpdateMembershipForUserInOrg ¶
func AddOrUpdateMembershipForUserInOrg(ctx context.Context, req *AddOrUpdateMembershipForUserInOrgReq, opt ...requests.Option) (*AddOrUpdateMembershipForUserInOrgResponse, error)
AddOrUpdateMembershipForUserInOrg performs requests for "teams/add-or-update-membership-for-user-in-org"
Add or update team membership for a user.
PUT /orgs/{org}/teams/{team_slug}/memberships/{username}
https://developer.github.com/v3/teams/members/#add-or-update-team-membership-for-a-user
func (*AddOrUpdateMembershipForUserInOrgResponse) HTTPResponse ¶
func (r *AddOrUpdateMembershipForUserInOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*AddOrUpdateMembershipForUserInOrgResponse) ReadResponse ¶
func (r *AddOrUpdateMembershipForUserInOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type AddOrUpdateMembershipForUserLegacyReq ¶
type AddOrUpdateMembershipForUserLegacyReq struct { TeamId int64 Username string RequestBody AddOrUpdateMembershipForUserLegacyReqBody // contains filtered or unexported fields }
AddOrUpdateMembershipForUserLegacyReq is request data for Client.AddOrUpdateMembershipForUserLegacy
https://developer.github.com/v3/teams/members/#add-or-update-team-membership-for-a-user-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*AddOrUpdateMembershipForUserLegacyReq) HTTPRequest ¶
func (r *AddOrUpdateMembershipForUserLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*AddOrUpdateMembershipForUserLegacyReq) Rel ¶
func (r *AddOrUpdateMembershipForUserLegacyReq) Rel(link string, resp *AddOrUpdateMembershipForUserLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type AddOrUpdateMembershipForUserLegacyReqBody ¶
type AddOrUpdateMembershipForUserLegacyReqBody struct { /* The role that this user should have in the team. Can be one of: \* `member` - a normal member of the team. \* `maintainer` - a team maintainer. Able to add/remove other team members, promote other team members to team maintainer, and edit the team's name and description. */ Role *string `json:"role,omitempty"` }
AddOrUpdateMembershipForUserLegacyReqBody is a request body for teams/add-or-update-membership-for-user-legacy
https://developer.github.com/v3/teams/members/#add-or-update-team-membership-for-a-user-legacy
type AddOrUpdateMembershipForUserLegacyResponse ¶
type AddOrUpdateMembershipForUserLegacyResponse struct { Data components.TeamMembership // contains filtered or unexported fields }
AddOrUpdateMembershipForUserLegacyResponse is a response for AddOrUpdateMembershipForUserLegacy
https://developer.github.com/v3/teams/members/#add-or-update-team-membership-for-a-user-legacy
func AddOrUpdateMembershipForUserLegacy ¶
func AddOrUpdateMembershipForUserLegacy(ctx context.Context, req *AddOrUpdateMembershipForUserLegacyReq, opt ...requests.Option) (*AddOrUpdateMembershipForUserLegacyResponse, error)
AddOrUpdateMembershipForUserLegacy performs requests for "teams/add-or-update-membership-for-user-legacy"
Add or update team membership for a user (Legacy).
PUT /teams/{team_id}/memberships/{username}
https://developer.github.com/v3/teams/members/#add-or-update-team-membership-for-a-user-legacy
func (*AddOrUpdateMembershipForUserLegacyResponse) HTTPResponse ¶
func (r *AddOrUpdateMembershipForUserLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*AddOrUpdateMembershipForUserLegacyResponse) ReadResponse ¶
func (r *AddOrUpdateMembershipForUserLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type AddOrUpdateProjectPermissionsInOrgReq ¶
type AddOrUpdateProjectPermissionsInOrgReq struct { Org string // team_slug parameter TeamSlug string ProjectId int64 RequestBody AddOrUpdateProjectPermissionsInOrgReqBody /* The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must set this to true. */ InertiaPreview bool // contains filtered or unexported fields }
AddOrUpdateProjectPermissionsInOrgReq is request data for Client.AddOrUpdateProjectPermissionsInOrg
https://developer.github.com/v3/teams/#add-or-update-team-project-permissions
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*AddOrUpdateProjectPermissionsInOrgReq) HTTPRequest ¶
func (r *AddOrUpdateProjectPermissionsInOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*AddOrUpdateProjectPermissionsInOrgReq) Rel ¶
func (r *AddOrUpdateProjectPermissionsInOrgReq) Rel(link string, resp *AddOrUpdateProjectPermissionsInOrgResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type AddOrUpdateProjectPermissionsInOrgReqBody ¶
type AddOrUpdateProjectPermissionsInOrgReqBody struct { /* The permission to grant to the team for this project. Can be one of: \* `read` - team members can read, but not write to or administer this project. \* `write` - team members can read and write, but not administer this project. \* `admin` - team members can read, write and administer this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. 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 verbs](https://developer.github.com/v3/#http-verbs)." */ Permission *string `json:"permission,omitempty"` }
AddOrUpdateProjectPermissionsInOrgReqBody is a request body for teams/add-or-update-project-permissions-in-org
https://developer.github.com/v3/teams/#add-or-update-team-project-permissions
type AddOrUpdateProjectPermissionsInOrgResponse ¶
type AddOrUpdateProjectPermissionsInOrgResponse struct {
// contains filtered or unexported fields
}
AddOrUpdateProjectPermissionsInOrgResponse is a response for AddOrUpdateProjectPermissionsInOrg
https://developer.github.com/v3/teams/#add-or-update-team-project-permissions
func AddOrUpdateProjectPermissionsInOrg ¶
func AddOrUpdateProjectPermissionsInOrg(ctx context.Context, req *AddOrUpdateProjectPermissionsInOrgReq, opt ...requests.Option) (*AddOrUpdateProjectPermissionsInOrgResponse, error)
AddOrUpdateProjectPermissionsInOrg performs requests for "teams/add-or-update-project-permissions-in-org"
Add or update team project permissions.
PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}
https://developer.github.com/v3/teams/#add-or-update-team-project-permissions
func (*AddOrUpdateProjectPermissionsInOrgResponse) HTTPResponse ¶
func (r *AddOrUpdateProjectPermissionsInOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*AddOrUpdateProjectPermissionsInOrgResponse) ReadResponse ¶
func (r *AddOrUpdateProjectPermissionsInOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type AddOrUpdateProjectPermissionsLegacyReq ¶
type AddOrUpdateProjectPermissionsLegacyReq struct { TeamId int64 ProjectId int64 RequestBody AddOrUpdateProjectPermissionsLegacyReqBody /* The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must set this to true. */ InertiaPreview bool // contains filtered or unexported fields }
AddOrUpdateProjectPermissionsLegacyReq is request data for Client.AddOrUpdateProjectPermissionsLegacy
https://developer.github.com/v3/teams/#add-or-update-team-project-permissions-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*AddOrUpdateProjectPermissionsLegacyReq) HTTPRequest ¶
func (r *AddOrUpdateProjectPermissionsLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*AddOrUpdateProjectPermissionsLegacyReq) Rel ¶
func (r *AddOrUpdateProjectPermissionsLegacyReq) Rel(link string, resp *AddOrUpdateProjectPermissionsLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type AddOrUpdateProjectPermissionsLegacyReqBody ¶
type AddOrUpdateProjectPermissionsLegacyReqBody struct { /* The permission to grant to the team for this project. Can be one of: \* `read` - team members can read, but not write to or administer this project. \* `write` - team members can read and write, but not administer this project. \* `admin` - team members can read, write and administer this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. 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 verbs](https://developer.github.com/v3/#http-verbs)." */ Permission *string `json:"permission,omitempty"` }
AddOrUpdateProjectPermissionsLegacyReqBody is a request body for teams/add-or-update-project-permissions-legacy
https://developer.github.com/v3/teams/#add-or-update-team-project-permissions-legacy
type AddOrUpdateProjectPermissionsLegacyResponse ¶
type AddOrUpdateProjectPermissionsLegacyResponse struct {
// contains filtered or unexported fields
}
AddOrUpdateProjectPermissionsLegacyResponse is a response for AddOrUpdateProjectPermissionsLegacy
https://developer.github.com/v3/teams/#add-or-update-team-project-permissions-legacy
func AddOrUpdateProjectPermissionsLegacy ¶
func AddOrUpdateProjectPermissionsLegacy(ctx context.Context, req *AddOrUpdateProjectPermissionsLegacyReq, opt ...requests.Option) (*AddOrUpdateProjectPermissionsLegacyResponse, error)
AddOrUpdateProjectPermissionsLegacy performs requests for "teams/add-or-update-project-permissions-legacy"
Add or update team project permissions (Legacy).
PUT /teams/{team_id}/projects/{project_id}
https://developer.github.com/v3/teams/#add-or-update-team-project-permissions-legacy
func (*AddOrUpdateProjectPermissionsLegacyResponse) HTTPResponse ¶
func (r *AddOrUpdateProjectPermissionsLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*AddOrUpdateProjectPermissionsLegacyResponse) ReadResponse ¶
func (r *AddOrUpdateProjectPermissionsLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type AddOrUpdateRepoPermissionsInOrgReq ¶
type AddOrUpdateRepoPermissionsInOrgReq struct { Org string // team_slug parameter TeamSlug string Owner string Repo string RequestBody AddOrUpdateRepoPermissionsInOrgReqBody // contains filtered or unexported fields }
AddOrUpdateRepoPermissionsInOrgReq is request data for Client.AddOrUpdateRepoPermissionsInOrg
https://developer.github.com/v3/teams/#add-or-update-team-repository-permissions
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*AddOrUpdateRepoPermissionsInOrgReq) HTTPRequest ¶
func (r *AddOrUpdateRepoPermissionsInOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*AddOrUpdateRepoPermissionsInOrgReq) Rel ¶
func (r *AddOrUpdateRepoPermissionsInOrgReq) Rel(link string, resp *AddOrUpdateRepoPermissionsInOrgResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type AddOrUpdateRepoPermissionsInOrgReqBody ¶
type AddOrUpdateRepoPermissionsInOrgReqBody struct { /* The permission to grant the team on this repository. Can be one of: \* `pull` - team members can pull, but not push to or administer this repository. \* `push` - team members can pull and push, but not administer this repository. \* `admin` - team members can pull, push and administer this repository. \* `maintain` - team members can manage the repository without access to sensitive or destructive actions. Recommended for project managers. Only applies to repositories owned by organizations. \* `triage` - team members can proactively manage issues and pull requests without write access. Recommended for contributors who triage a repository. Only applies to repositories owned by organizations. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository. */ Permission *string `json:"permission,omitempty"` }
AddOrUpdateRepoPermissionsInOrgReqBody is a request body for teams/add-or-update-repo-permissions-in-org
https://developer.github.com/v3/teams/#add-or-update-team-repository-permissions
type AddOrUpdateRepoPermissionsInOrgResponse ¶
type AddOrUpdateRepoPermissionsInOrgResponse struct {
// contains filtered or unexported fields
}
AddOrUpdateRepoPermissionsInOrgResponse is a response for AddOrUpdateRepoPermissionsInOrg
https://developer.github.com/v3/teams/#add-or-update-team-repository-permissions
func AddOrUpdateRepoPermissionsInOrg ¶
func AddOrUpdateRepoPermissionsInOrg(ctx context.Context, req *AddOrUpdateRepoPermissionsInOrgReq, opt ...requests.Option) (*AddOrUpdateRepoPermissionsInOrgResponse, error)
AddOrUpdateRepoPermissionsInOrg performs requests for "teams/add-or-update-repo-permissions-in-org"
Add or update team repository permissions.
PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}
https://developer.github.com/v3/teams/#add-or-update-team-repository-permissions
func (*AddOrUpdateRepoPermissionsInOrgResponse) HTTPResponse ¶
func (r *AddOrUpdateRepoPermissionsInOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*AddOrUpdateRepoPermissionsInOrgResponse) ReadResponse ¶
func (r *AddOrUpdateRepoPermissionsInOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type AddOrUpdateRepoPermissionsLegacyReq ¶
type AddOrUpdateRepoPermissionsLegacyReq struct { TeamId int64 Owner string Repo string RequestBody AddOrUpdateRepoPermissionsLegacyReqBody // contains filtered or unexported fields }
AddOrUpdateRepoPermissionsLegacyReq is request data for Client.AddOrUpdateRepoPermissionsLegacy
https://developer.github.com/v3/teams/#add-or-update-team-repository-permissions-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*AddOrUpdateRepoPermissionsLegacyReq) HTTPRequest ¶
func (r *AddOrUpdateRepoPermissionsLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*AddOrUpdateRepoPermissionsLegacyReq) Rel ¶
func (r *AddOrUpdateRepoPermissionsLegacyReq) Rel(link string, resp *AddOrUpdateRepoPermissionsLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type AddOrUpdateRepoPermissionsLegacyReqBody ¶
type AddOrUpdateRepoPermissionsLegacyReqBody struct { /* The permission to grant the team on this repository. Can be one of: \* `pull` - team members can pull, but not push to or administer this repository. \* `push` - team members can pull and push, but not administer this repository. \* `admin` - team members can pull, push and administer this repository. If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository. */ Permission *string `json:"permission,omitempty"` }
AddOrUpdateRepoPermissionsLegacyReqBody is a request body for teams/add-or-update-repo-permissions-legacy
https://developer.github.com/v3/teams/#add-or-update-team-repository-permissions-legacy
type AddOrUpdateRepoPermissionsLegacyResponse ¶
type AddOrUpdateRepoPermissionsLegacyResponse struct {
// contains filtered or unexported fields
}
AddOrUpdateRepoPermissionsLegacyResponse is a response for AddOrUpdateRepoPermissionsLegacy
https://developer.github.com/v3/teams/#add-or-update-team-repository-permissions-legacy
func AddOrUpdateRepoPermissionsLegacy ¶
func AddOrUpdateRepoPermissionsLegacy(ctx context.Context, req *AddOrUpdateRepoPermissionsLegacyReq, opt ...requests.Option) (*AddOrUpdateRepoPermissionsLegacyResponse, error)
AddOrUpdateRepoPermissionsLegacy performs requests for "teams/add-or-update-repo-permissions-legacy"
Add or update team repository permissions (Legacy).
PUT /teams/{team_id}/repos/{owner}/{repo}
https://developer.github.com/v3/teams/#add-or-update-team-repository-permissions-legacy
func (*AddOrUpdateRepoPermissionsLegacyResponse) HTTPResponse ¶
func (r *AddOrUpdateRepoPermissionsLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*AddOrUpdateRepoPermissionsLegacyResponse) ReadResponse ¶
func (r *AddOrUpdateRepoPermissionsLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type CheckPermissionsForProjectInOrgReq ¶
type CheckPermissionsForProjectInOrgReq struct { Org string // team_slug parameter TeamSlug string ProjectId int64 /* The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must set this to true. */ InertiaPreview bool // contains filtered or unexported fields }
CheckPermissionsForProjectInOrgReq is request data for Client.CheckPermissionsForProjectInOrg
https://developer.github.com/v3/teams/#check-team-permissions-for-a-project
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*CheckPermissionsForProjectInOrgReq) HTTPRequest ¶
func (r *CheckPermissionsForProjectInOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*CheckPermissionsForProjectInOrgReq) Rel ¶
func (r *CheckPermissionsForProjectInOrgReq) Rel(link string, resp *CheckPermissionsForProjectInOrgResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type CheckPermissionsForProjectInOrgResponse ¶
type CheckPermissionsForProjectInOrgResponse struct { Data components.TeamProject // contains filtered or unexported fields }
CheckPermissionsForProjectInOrgResponse is a response for CheckPermissionsForProjectInOrg
https://developer.github.com/v3/teams/#check-team-permissions-for-a-project
func CheckPermissionsForProjectInOrg ¶
func CheckPermissionsForProjectInOrg(ctx context.Context, req *CheckPermissionsForProjectInOrgReq, opt ...requests.Option) (*CheckPermissionsForProjectInOrgResponse, error)
CheckPermissionsForProjectInOrg performs requests for "teams/check-permissions-for-project-in-org"
Check team permissions for a project.
GET /orgs/{org}/teams/{team_slug}/projects/{project_id}
https://developer.github.com/v3/teams/#check-team-permissions-for-a-project
func (*CheckPermissionsForProjectInOrgResponse) HTTPResponse ¶
func (r *CheckPermissionsForProjectInOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*CheckPermissionsForProjectInOrgResponse) ReadResponse ¶
func (r *CheckPermissionsForProjectInOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type CheckPermissionsForProjectLegacyReq ¶
type CheckPermissionsForProjectLegacyReq struct { TeamId int64 ProjectId int64 /* The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must set this to true. */ InertiaPreview bool // contains filtered or unexported fields }
CheckPermissionsForProjectLegacyReq is request data for Client.CheckPermissionsForProjectLegacy
https://developer.github.com/v3/teams/#check-team-permissions-for-a-project-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*CheckPermissionsForProjectLegacyReq) HTTPRequest ¶
func (r *CheckPermissionsForProjectLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*CheckPermissionsForProjectLegacyReq) Rel ¶
func (r *CheckPermissionsForProjectLegacyReq) Rel(link string, resp *CheckPermissionsForProjectLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type CheckPermissionsForProjectLegacyResponse ¶
type CheckPermissionsForProjectLegacyResponse struct { Data components.TeamProject // contains filtered or unexported fields }
CheckPermissionsForProjectLegacyResponse is a response for CheckPermissionsForProjectLegacy
https://developer.github.com/v3/teams/#check-team-permissions-for-a-project-legacy
func CheckPermissionsForProjectLegacy ¶
func CheckPermissionsForProjectLegacy(ctx context.Context, req *CheckPermissionsForProjectLegacyReq, opt ...requests.Option) (*CheckPermissionsForProjectLegacyResponse, error)
CheckPermissionsForProjectLegacy performs requests for "teams/check-permissions-for-project-legacy"
Check team permissions for a project (Legacy).
GET /teams/{team_id}/projects/{project_id}
https://developer.github.com/v3/teams/#check-team-permissions-for-a-project-legacy
func (*CheckPermissionsForProjectLegacyResponse) HTTPResponse ¶
func (r *CheckPermissionsForProjectLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*CheckPermissionsForProjectLegacyResponse) ReadResponse ¶
func (r *CheckPermissionsForProjectLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type CheckPermissionsForRepoInOrgReq ¶
type CheckPermissionsForRepoInOrgReq struct { Org string // team_slug parameter TeamSlug string Owner string Repo string // contains filtered or unexported fields }
CheckPermissionsForRepoInOrgReq is request data for Client.CheckPermissionsForRepoInOrg
https://developer.github.com/v3/teams/#check-team-permissions-for-a-repository
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*CheckPermissionsForRepoInOrgReq) HTTPRequest ¶
func (r *CheckPermissionsForRepoInOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*CheckPermissionsForRepoInOrgReq) Rel ¶
func (r *CheckPermissionsForRepoInOrgReq) Rel(link string, resp *CheckPermissionsForRepoInOrgResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type CheckPermissionsForRepoInOrgResponse ¶
type CheckPermissionsForRepoInOrgResponse struct { Data components.TeamRepository // contains filtered or unexported fields }
CheckPermissionsForRepoInOrgResponse is a response for CheckPermissionsForRepoInOrg
https://developer.github.com/v3/teams/#check-team-permissions-for-a-repository
func CheckPermissionsForRepoInOrg ¶
func CheckPermissionsForRepoInOrg(ctx context.Context, req *CheckPermissionsForRepoInOrgReq, opt ...requests.Option) (*CheckPermissionsForRepoInOrgResponse, error)
CheckPermissionsForRepoInOrg performs requests for "teams/check-permissions-for-repo-in-org"
Check team permissions for a repository.
GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}
https://developer.github.com/v3/teams/#check-team-permissions-for-a-repository
func (*CheckPermissionsForRepoInOrgResponse) HTTPResponse ¶
func (r *CheckPermissionsForRepoInOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*CheckPermissionsForRepoInOrgResponse) ReadResponse ¶
func (r *CheckPermissionsForRepoInOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type CheckPermissionsForRepoLegacyReq ¶
type CheckPermissionsForRepoLegacyReq struct { TeamId int64 Owner string Repo string // contains filtered or unexported fields }
CheckPermissionsForRepoLegacyReq is request data for Client.CheckPermissionsForRepoLegacy
https://developer.github.com/v3/teams/#check-team-permissions-for-a-repository-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*CheckPermissionsForRepoLegacyReq) HTTPRequest ¶
func (r *CheckPermissionsForRepoLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*CheckPermissionsForRepoLegacyReq) Rel ¶
func (r *CheckPermissionsForRepoLegacyReq) Rel(link string, resp *CheckPermissionsForRepoLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type CheckPermissionsForRepoLegacyResponse ¶
type CheckPermissionsForRepoLegacyResponse struct { Data components.TeamRepository // contains filtered or unexported fields }
CheckPermissionsForRepoLegacyResponse is a response for CheckPermissionsForRepoLegacy
https://developer.github.com/v3/teams/#check-team-permissions-for-a-repository-legacy
func CheckPermissionsForRepoLegacy ¶
func CheckPermissionsForRepoLegacy(ctx context.Context, req *CheckPermissionsForRepoLegacyReq, opt ...requests.Option) (*CheckPermissionsForRepoLegacyResponse, error)
CheckPermissionsForRepoLegacy performs requests for "teams/check-permissions-for-repo-legacy"
Check team permissions for a repository (Legacy).
GET /teams/{team_id}/repos/{owner}/{repo}
https://developer.github.com/v3/teams/#check-team-permissions-for-a-repository-legacy
func (*CheckPermissionsForRepoLegacyResponse) HTTPResponse ¶
func (r *CheckPermissionsForRepoLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*CheckPermissionsForRepoLegacyResponse) ReadResponse ¶
func (r *CheckPermissionsForRepoLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type Client ¶
Client is a set of options to apply to requests
func (Client) AddMemberLegacy ¶
func (c Client) AddMemberLegacy(ctx context.Context, req *AddMemberLegacyReq, opt ...requests.Option) (*AddMemberLegacyResponse, error)
AddMemberLegacy performs requests for "teams/add-member-legacy"
Add team member (Legacy).
PUT /teams/{team_id}/members/{username}
https://developer.github.com/v3/teams/members/#add-team-member-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) AddOrUpdateMembershipForUserInOrg ¶
func (c Client) AddOrUpdateMembershipForUserInOrg(ctx context.Context, req *AddOrUpdateMembershipForUserInOrgReq, opt ...requests.Option) (*AddOrUpdateMembershipForUserInOrgResponse, error)
AddOrUpdateMembershipForUserInOrg performs requests for "teams/add-or-update-membership-for-user-in-org"
Add or update team membership for a user.
PUT /orgs/{org}/teams/{team_slug}/memberships/{username}
https://developer.github.com/v3/teams/members/#add-or-update-team-membership-for-a-user
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) AddOrUpdateMembershipForUserLegacy ¶
func (c Client) AddOrUpdateMembershipForUserLegacy(ctx context.Context, req *AddOrUpdateMembershipForUserLegacyReq, opt ...requests.Option) (*AddOrUpdateMembershipForUserLegacyResponse, error)
AddOrUpdateMembershipForUserLegacy performs requests for "teams/add-or-update-membership-for-user-legacy"
Add or update team membership for a user (Legacy).
PUT /teams/{team_id}/memberships/{username}
https://developer.github.com/v3/teams/members/#add-or-update-team-membership-for-a-user-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) AddOrUpdateProjectPermissionsInOrg ¶
func (c Client) AddOrUpdateProjectPermissionsInOrg(ctx context.Context, req *AddOrUpdateProjectPermissionsInOrgReq, opt ...requests.Option) (*AddOrUpdateProjectPermissionsInOrgResponse, error)
AddOrUpdateProjectPermissionsInOrg performs requests for "teams/add-or-update-project-permissions-in-org"
Add or update team project permissions.
PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}
https://developer.github.com/v3/teams/#add-or-update-team-project-permissions
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) AddOrUpdateProjectPermissionsLegacy ¶
func (c Client) AddOrUpdateProjectPermissionsLegacy(ctx context.Context, req *AddOrUpdateProjectPermissionsLegacyReq, opt ...requests.Option) (*AddOrUpdateProjectPermissionsLegacyResponse, error)
AddOrUpdateProjectPermissionsLegacy performs requests for "teams/add-or-update-project-permissions-legacy"
Add or update team project permissions (Legacy).
PUT /teams/{team_id}/projects/{project_id}
https://developer.github.com/v3/teams/#add-or-update-team-project-permissions-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) AddOrUpdateRepoPermissionsInOrg ¶
func (c Client) AddOrUpdateRepoPermissionsInOrg(ctx context.Context, req *AddOrUpdateRepoPermissionsInOrgReq, opt ...requests.Option) (*AddOrUpdateRepoPermissionsInOrgResponse, error)
AddOrUpdateRepoPermissionsInOrg performs requests for "teams/add-or-update-repo-permissions-in-org"
Add or update team repository permissions.
PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}
https://developer.github.com/v3/teams/#add-or-update-team-repository-permissions
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) AddOrUpdateRepoPermissionsLegacy ¶
func (c Client) AddOrUpdateRepoPermissionsLegacy(ctx context.Context, req *AddOrUpdateRepoPermissionsLegacyReq, opt ...requests.Option) (*AddOrUpdateRepoPermissionsLegacyResponse, error)
AddOrUpdateRepoPermissionsLegacy performs requests for "teams/add-or-update-repo-permissions-legacy"
Add or update team repository permissions (Legacy).
PUT /teams/{team_id}/repos/{owner}/{repo}
https://developer.github.com/v3/teams/#add-or-update-team-repository-permissions-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) CheckPermissionsForProjectInOrg ¶
func (c Client) CheckPermissionsForProjectInOrg(ctx context.Context, req *CheckPermissionsForProjectInOrgReq, opt ...requests.Option) (*CheckPermissionsForProjectInOrgResponse, error)
CheckPermissionsForProjectInOrg performs requests for "teams/check-permissions-for-project-in-org"
Check team permissions for a project.
GET /orgs/{org}/teams/{team_slug}/projects/{project_id}
https://developer.github.com/v3/teams/#check-team-permissions-for-a-project
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) CheckPermissionsForProjectLegacy ¶
func (c Client) CheckPermissionsForProjectLegacy(ctx context.Context, req *CheckPermissionsForProjectLegacyReq, opt ...requests.Option) (*CheckPermissionsForProjectLegacyResponse, error)
CheckPermissionsForProjectLegacy performs requests for "teams/check-permissions-for-project-legacy"
Check team permissions for a project (Legacy).
GET /teams/{team_id}/projects/{project_id}
https://developer.github.com/v3/teams/#check-team-permissions-for-a-project-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) CheckPermissionsForRepoInOrg ¶
func (c Client) CheckPermissionsForRepoInOrg(ctx context.Context, req *CheckPermissionsForRepoInOrgReq, opt ...requests.Option) (*CheckPermissionsForRepoInOrgResponse, error)
CheckPermissionsForRepoInOrg performs requests for "teams/check-permissions-for-repo-in-org"
Check team permissions for a repository.
GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}
https://developer.github.com/v3/teams/#check-team-permissions-for-a-repository
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) CheckPermissionsForRepoLegacy ¶
func (c Client) CheckPermissionsForRepoLegacy(ctx context.Context, req *CheckPermissionsForRepoLegacyReq, opt ...requests.Option) (*CheckPermissionsForRepoLegacyResponse, error)
CheckPermissionsForRepoLegacy performs requests for "teams/check-permissions-for-repo-legacy"
Check team permissions for a repository (Legacy).
GET /teams/{team_id}/repos/{owner}/{repo}
https://developer.github.com/v3/teams/#check-team-permissions-for-a-repository-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) Create ¶
func (c Client) Create(ctx context.Context, req *CreateReq, opt ...requests.Option) (*CreateResponse, error)
Create performs requests for "teams/create"
Create a team.
POST /orgs/{org}/teams
https://developer.github.com/v3/teams/#create-a-team
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) CreateDiscussionCommentInOrg ¶
func (c Client) CreateDiscussionCommentInOrg(ctx context.Context, req *CreateDiscussionCommentInOrgReq, opt ...requests.Option) (*CreateDiscussionCommentInOrgResponse, error)
CreateDiscussionCommentInOrg performs requests for "teams/create-discussion-comment-in-org"
Create a discussion comment.
POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments
https://developer.github.com/v3/teams/discussion_comments/#create-a-discussion-comment
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) CreateDiscussionCommentLegacy ¶
func (c Client) CreateDiscussionCommentLegacy(ctx context.Context, req *CreateDiscussionCommentLegacyReq, opt ...requests.Option) (*CreateDiscussionCommentLegacyResponse, error)
CreateDiscussionCommentLegacy performs requests for "teams/create-discussion-comment-legacy"
Create a discussion comment (Legacy).
POST /teams/{team_id}/discussions/{discussion_number}/comments
https://developer.github.com/v3/teams/discussion_comments/#create-a-discussion-comment-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) CreateDiscussionInOrg ¶
func (c Client) CreateDiscussionInOrg(ctx context.Context, req *CreateDiscussionInOrgReq, opt ...requests.Option) (*CreateDiscussionInOrgResponse, error)
CreateDiscussionInOrg performs requests for "teams/create-discussion-in-org"
Create a discussion.
POST /orgs/{org}/teams/{team_slug}/discussions
https://developer.github.com/v3/teams/discussions/#create-a-discussion
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) CreateDiscussionLegacy ¶
func (c Client) CreateDiscussionLegacy(ctx context.Context, req *CreateDiscussionLegacyReq, opt ...requests.Option) (*CreateDiscussionLegacyResponse, error)
CreateDiscussionLegacy performs requests for "teams/create-discussion-legacy"
Create a discussion (Legacy).
POST /teams/{team_id}/discussions
https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) CreateOrUpdateIdpGroupConnectionsInOrg ¶
func (c Client) CreateOrUpdateIdpGroupConnectionsInOrg(ctx context.Context, req *CreateOrUpdateIdpGroupConnectionsInOrgReq, opt ...requests.Option) (*CreateOrUpdateIdpGroupConnectionsInOrgResponse, error)
CreateOrUpdateIdpGroupConnectionsInOrg performs requests for "teams/create-or-update-idp-group-connections-in-org"
Create or update IdP group connections.
PATCH /orgs/{org}/teams/{team_slug}/team-sync/group-mappings
https://developer.github.com/v3/teams/team_sync/#create-or-update-idp-group-connections
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) CreateOrUpdateIdpGroupConnectionsLegacy ¶
func (c Client) CreateOrUpdateIdpGroupConnectionsLegacy(ctx context.Context, req *CreateOrUpdateIdpGroupConnectionsLegacyReq, opt ...requests.Option) (*CreateOrUpdateIdpGroupConnectionsLegacyResponse, error)
CreateOrUpdateIdpGroupConnectionsLegacy performs requests for "teams/create-or-update-idp-group-connections-legacy"
Create or update IdP group connections (Legacy).
PATCH /teams/{team_id}/team-sync/group-mappings
https://developer.github.com/v3/teams/team_sync/#create-or-update-idp-group-connections-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) DeleteDiscussionCommentInOrg ¶
func (c Client) DeleteDiscussionCommentInOrg(ctx context.Context, req *DeleteDiscussionCommentInOrgReq, opt ...requests.Option) (*DeleteDiscussionCommentInOrgResponse, error)
DeleteDiscussionCommentInOrg performs requests for "teams/delete-discussion-comment-in-org"
Delete a discussion comment.
DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}
https://developer.github.com/v3/teams/discussion_comments/#delete-a-discussion-comment
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) DeleteDiscussionCommentLegacy ¶
func (c Client) DeleteDiscussionCommentLegacy(ctx context.Context, req *DeleteDiscussionCommentLegacyReq, opt ...requests.Option) (*DeleteDiscussionCommentLegacyResponse, error)
DeleteDiscussionCommentLegacy performs requests for "teams/delete-discussion-comment-legacy"
Delete a discussion comment (Legacy).
DELETE /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}
https://developer.github.com/v3/teams/discussion_comments/#delete-a-discussion-comment-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) DeleteDiscussionInOrg ¶
func (c Client) DeleteDiscussionInOrg(ctx context.Context, req *DeleteDiscussionInOrgReq, opt ...requests.Option) (*DeleteDiscussionInOrgResponse, error)
DeleteDiscussionInOrg performs requests for "teams/delete-discussion-in-org"
Delete a discussion.
DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}
https://developer.github.com/v3/teams/discussions/#delete-a-discussion
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) DeleteDiscussionLegacy ¶
func (c Client) DeleteDiscussionLegacy(ctx context.Context, req *DeleteDiscussionLegacyReq, opt ...requests.Option) (*DeleteDiscussionLegacyResponse, error)
DeleteDiscussionLegacy performs requests for "teams/delete-discussion-legacy"
Delete a discussion (Legacy).
DELETE /teams/{team_id}/discussions/{discussion_number}
https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) DeleteInOrg ¶
func (c Client) DeleteInOrg(ctx context.Context, req *DeleteInOrgReq, opt ...requests.Option) (*DeleteInOrgResponse, error)
DeleteInOrg performs requests for "teams/delete-in-org"
Delete a team.
DELETE /orgs/{org}/teams/{team_slug}
https://developer.github.com/v3/teams/#delete-a-team
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) DeleteLegacy ¶
func (c Client) DeleteLegacy(ctx context.Context, req *DeleteLegacyReq, opt ...requests.Option) (*DeleteLegacyResponse, error)
DeleteLegacy performs requests for "teams/delete-legacy"
Delete a team (Legacy).
DELETE /teams/{team_id}
https://developer.github.com/v3/teams/#delete-a-team-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) GetByName ¶
func (c Client) GetByName(ctx context.Context, req *GetByNameReq, opt ...requests.Option) (*GetByNameResponse, error)
GetByName performs requests for "teams/get-by-name"
Get a team by name.
GET /orgs/{org}/teams/{team_slug}
https://developer.github.com/v3/teams/#get-a-team-by-name
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) GetDiscussionCommentInOrg ¶
func (c Client) GetDiscussionCommentInOrg(ctx context.Context, req *GetDiscussionCommentInOrgReq, opt ...requests.Option) (*GetDiscussionCommentInOrgResponse, error)
GetDiscussionCommentInOrg performs requests for "teams/get-discussion-comment-in-org"
Get a discussion comment.
GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}
https://developer.github.com/v3/teams/discussion_comments/#get-a-discussion-comment
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) GetDiscussionCommentLegacy ¶
func (c Client) GetDiscussionCommentLegacy(ctx context.Context, req *GetDiscussionCommentLegacyReq, opt ...requests.Option) (*GetDiscussionCommentLegacyResponse, error)
GetDiscussionCommentLegacy performs requests for "teams/get-discussion-comment-legacy"
Get a discussion comment (Legacy).
GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}
https://developer.github.com/v3/teams/discussion_comments/#get-a-discussion-comment-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) GetDiscussionInOrg ¶
func (c Client) GetDiscussionInOrg(ctx context.Context, req *GetDiscussionInOrgReq, opt ...requests.Option) (*GetDiscussionInOrgResponse, error)
GetDiscussionInOrg performs requests for "teams/get-discussion-in-org"
Get a discussion.
GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}
https://developer.github.com/v3/teams/discussions/#get-a-discussion
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) GetDiscussionLegacy ¶
func (c Client) GetDiscussionLegacy(ctx context.Context, req *GetDiscussionLegacyReq, opt ...requests.Option) (*GetDiscussionLegacyResponse, error)
GetDiscussionLegacy performs requests for "teams/get-discussion-legacy"
Get a discussion (Legacy).
GET /teams/{team_id}/discussions/{discussion_number}
https://developer.github.com/v3/teams/discussions/#get-a-discussion-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) GetLegacy ¶
func (c Client) GetLegacy(ctx context.Context, req *GetLegacyReq, opt ...requests.Option) (*GetLegacyResponse, error)
GetLegacy performs requests for "teams/get-legacy"
Get a team (Legacy).
GET /teams/{team_id}
https://developer.github.com/v3/teams/#get-a-team-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) GetMemberLegacy ¶
func (c Client) GetMemberLegacy(ctx context.Context, req *GetMemberLegacyReq, opt ...requests.Option) (*GetMemberLegacyResponse, error)
GetMemberLegacy performs requests for "teams/get-member-legacy"
Get team member (Legacy).
GET /teams/{team_id}/members/{username}
https://developer.github.com/v3/teams/members/#get-team-member-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) GetMembershipForUserInOrg ¶
func (c Client) GetMembershipForUserInOrg(ctx context.Context, req *GetMembershipForUserInOrgReq, opt ...requests.Option) (*GetMembershipForUserInOrgResponse, error)
GetMembershipForUserInOrg performs requests for "teams/get-membership-for-user-in-org"
Get team membership for a user.
GET /orgs/{org}/teams/{team_slug}/memberships/{username}
https://developer.github.com/v3/teams/members/#get-team-membership-for-a-user
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) GetMembershipForUserLegacy ¶
func (c Client) GetMembershipForUserLegacy(ctx context.Context, req *GetMembershipForUserLegacyReq, opt ...requests.Option) (*GetMembershipForUserLegacyResponse, error)
GetMembershipForUserLegacy performs requests for "teams/get-membership-for-user-legacy"
Get team membership for a user (Legacy).
GET /teams/{team_id}/memberships/{username}
https://developer.github.com/v3/teams/members/#get-team-membership-for-a-user-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) List ¶
func (c Client) List(ctx context.Context, req *ListReq, opt ...requests.Option) (*ListResponse, error)
List performs requests for "teams/list"
List teams.
GET /orgs/{org}/teams
https://developer.github.com/v3/teams/#list-teams
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListChildInOrg ¶
func (c Client) ListChildInOrg(ctx context.Context, req *ListChildInOrgReq, opt ...requests.Option) (*ListChildInOrgResponse, error)
ListChildInOrg performs requests for "teams/list-child-in-org"
List child teams.
GET /orgs/{org}/teams/{team_slug}/teams
https://developer.github.com/v3/teams/#list-child-teams
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListChildLegacy ¶
func (c Client) ListChildLegacy(ctx context.Context, req *ListChildLegacyReq, opt ...requests.Option) (*ListChildLegacyResponse, error)
ListChildLegacy performs requests for "teams/list-child-legacy"
List child teams (Legacy).
GET /teams/{team_id}/teams
https://developer.github.com/v3/teams/#list-child-teams-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListDiscussionCommentsInOrg ¶
func (c Client) ListDiscussionCommentsInOrg(ctx context.Context, req *ListDiscussionCommentsInOrgReq, opt ...requests.Option) (*ListDiscussionCommentsInOrgResponse, error)
ListDiscussionCommentsInOrg performs requests for "teams/list-discussion-comments-in-org"
List discussion comments.
GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments
https://developer.github.com/v3/teams/discussion_comments/#list-discussion-comments
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListDiscussionCommentsLegacy ¶
func (c Client) ListDiscussionCommentsLegacy(ctx context.Context, req *ListDiscussionCommentsLegacyReq, opt ...requests.Option) (*ListDiscussionCommentsLegacyResponse, error)
ListDiscussionCommentsLegacy performs requests for "teams/list-discussion-comments-legacy"
List discussion comments (Legacy).
GET /teams/{team_id}/discussions/{discussion_number}/comments
https://developer.github.com/v3/teams/discussion_comments/#list-discussion-comments-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListDiscussionsInOrg ¶
func (c Client) ListDiscussionsInOrg(ctx context.Context, req *ListDiscussionsInOrgReq, opt ...requests.Option) (*ListDiscussionsInOrgResponse, error)
ListDiscussionsInOrg performs requests for "teams/list-discussions-in-org"
List discussions.
GET /orgs/{org}/teams/{team_slug}/discussions
https://developer.github.com/v3/teams/discussions/#list-discussions
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListDiscussionsLegacy ¶
func (c Client) ListDiscussionsLegacy(ctx context.Context, req *ListDiscussionsLegacyReq, opt ...requests.Option) (*ListDiscussionsLegacyResponse, error)
ListDiscussionsLegacy performs requests for "teams/list-discussions-legacy"
List discussions (Legacy).
GET /teams/{team_id}/discussions
https://developer.github.com/v3/teams/discussions/#list-discussions-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListForAuthenticatedUser ¶
func (c Client) ListForAuthenticatedUser(ctx context.Context, req *ListForAuthenticatedUserReq, opt ...requests.Option) (*ListForAuthenticatedUserResponse, error)
ListForAuthenticatedUser performs requests for "teams/list-for-authenticated-user"
List teams for the authenticated user.
GET /user/teams
https://developer.github.com/v3/teams/#list-teams-for-the-authenticated-user
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListIdpGroupsForLegacy ¶
func (c Client) ListIdpGroupsForLegacy(ctx context.Context, req *ListIdpGroupsForLegacyReq, opt ...requests.Option) (*ListIdpGroupsForLegacyResponse, error)
ListIdpGroupsForLegacy performs requests for "teams/list-idp-groups-for-legacy"
List IdP groups for a team (Legacy).
GET /teams/{team_id}/team-sync/group-mappings
https://developer.github.com/v3/teams/team_sync/#list-idp-groups-for-a-team-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListIdpGroupsForOrg ¶
func (c Client) ListIdpGroupsForOrg(ctx context.Context, req *ListIdpGroupsForOrgReq, opt ...requests.Option) (*ListIdpGroupsForOrgResponse, error)
ListIdpGroupsForOrg performs requests for "teams/list-idp-groups-for-org"
List IdP groups for an organization.
GET /orgs/{org}/team-sync/groups
https://developer.github.com/v3/teams/team_sync/#list-idp-groups-for-an-organization
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListIdpGroupsInOrg ¶
func (c Client) ListIdpGroupsInOrg(ctx context.Context, req *ListIdpGroupsInOrgReq, opt ...requests.Option) (*ListIdpGroupsInOrgResponse, error)
ListIdpGroupsInOrg performs requests for "teams/list-idp-groups-in-org"
List IdP groups for a team.
GET /orgs/{org}/teams/{team_slug}/team-sync/group-mappings
https://developer.github.com/v3/teams/team_sync/#list-idp-groups-for-a-team
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListMembersInOrg ¶
func (c Client) ListMembersInOrg(ctx context.Context, req *ListMembersInOrgReq, opt ...requests.Option) (*ListMembersInOrgResponse, error)
ListMembersInOrg performs requests for "teams/list-members-in-org"
List team members.
GET /orgs/{org}/teams/{team_slug}/members
https://developer.github.com/v3/teams/members/#list-team-members
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListMembersLegacy ¶
func (c Client) ListMembersLegacy(ctx context.Context, req *ListMembersLegacyReq, opt ...requests.Option) (*ListMembersLegacyResponse, error)
ListMembersLegacy performs requests for "teams/list-members-legacy"
List team members (Legacy).
GET /teams/{team_id}/members
https://developer.github.com/v3/teams/members/#list-team-members-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListPendingInvitationsInOrg ¶
func (c Client) ListPendingInvitationsInOrg(ctx context.Context, req *ListPendingInvitationsInOrgReq, opt ...requests.Option) (*ListPendingInvitationsInOrgResponse, error)
ListPendingInvitationsInOrg performs requests for "teams/list-pending-invitations-in-org"
List pending team invitations.
GET /orgs/{org}/teams/{team_slug}/invitations
https://developer.github.com/v3/teams/members/#list-pending-team-invitations
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListPendingInvitationsLegacy ¶
func (c Client) ListPendingInvitationsLegacy(ctx context.Context, req *ListPendingInvitationsLegacyReq, opt ...requests.Option) (*ListPendingInvitationsLegacyResponse, error)
ListPendingInvitationsLegacy performs requests for "teams/list-pending-invitations-legacy"
List pending team invitations (Legacy).
GET /teams/{team_id}/invitations
https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListProjectsInOrg ¶
func (c Client) ListProjectsInOrg(ctx context.Context, req *ListProjectsInOrgReq, opt ...requests.Option) (*ListProjectsInOrgResponse, error)
ListProjectsInOrg performs requests for "teams/list-projects-in-org"
List team projects.
GET /orgs/{org}/teams/{team_slug}/projects
https://developer.github.com/v3/teams/#list-team-projects
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListProjectsLegacy ¶
func (c Client) ListProjectsLegacy(ctx context.Context, req *ListProjectsLegacyReq, opt ...requests.Option) (*ListProjectsLegacyResponse, error)
ListProjectsLegacy performs requests for "teams/list-projects-legacy"
List team projects (Legacy).
GET /teams/{team_id}/projects
https://developer.github.com/v3/teams/#list-team-projects-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListReposInOrg ¶
func (c Client) ListReposInOrg(ctx context.Context, req *ListReposInOrgReq, opt ...requests.Option) (*ListReposInOrgResponse, error)
ListReposInOrg performs requests for "teams/list-repos-in-org"
List team repositories.
GET /orgs/{org}/teams/{team_slug}/repos
https://developer.github.com/v3/teams/#list-team-repositories
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) ListReposLegacy ¶
func (c Client) ListReposLegacy(ctx context.Context, req *ListReposLegacyReq, opt ...requests.Option) (*ListReposLegacyResponse, error)
ListReposLegacy performs requests for "teams/list-repos-legacy"
List team repositories (Legacy).
GET /teams/{team_id}/repos
https://developer.github.com/v3/teams/#list-team-repositories-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) RemoveMemberLegacy ¶
func (c Client) RemoveMemberLegacy(ctx context.Context, req *RemoveMemberLegacyReq, opt ...requests.Option) (*RemoveMemberLegacyResponse, error)
RemoveMemberLegacy performs requests for "teams/remove-member-legacy"
Remove team member (Legacy).
DELETE /teams/{team_id}/members/{username}
https://developer.github.com/v3/teams/members/#remove-team-member-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) RemoveMembershipForUserInOrg ¶
func (c Client) RemoveMembershipForUserInOrg(ctx context.Context, req *RemoveMembershipForUserInOrgReq, opt ...requests.Option) (*RemoveMembershipForUserInOrgResponse, error)
RemoveMembershipForUserInOrg performs requests for "teams/remove-membership-for-user-in-org"
Remove team membership for a user.
DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}
https://developer.github.com/v3/teams/members/#remove-team-membership-for-a-user
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) RemoveMembershipForUserLegacy ¶
func (c Client) RemoveMembershipForUserLegacy(ctx context.Context, req *RemoveMembershipForUserLegacyReq, opt ...requests.Option) (*RemoveMembershipForUserLegacyResponse, error)
RemoveMembershipForUserLegacy performs requests for "teams/remove-membership-for-user-legacy"
Remove team membership for a user (Legacy).
DELETE /teams/{team_id}/memberships/{username}
https://developer.github.com/v3/teams/members/#remove-team-membership-for-a-user-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) RemoveProjectInOrg ¶
func (c Client) RemoveProjectInOrg(ctx context.Context, req *RemoveProjectInOrgReq, opt ...requests.Option) (*RemoveProjectInOrgResponse, error)
RemoveProjectInOrg performs requests for "teams/remove-project-in-org"
Remove a project from a team.
DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}
https://developer.github.com/v3/teams/#remove-a-project-from-a-team
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) RemoveProjectLegacy ¶
func (c Client) RemoveProjectLegacy(ctx context.Context, req *RemoveProjectLegacyReq, opt ...requests.Option) (*RemoveProjectLegacyResponse, error)
RemoveProjectLegacy performs requests for "teams/remove-project-legacy"
Remove a project from a team (Legacy).
DELETE /teams/{team_id}/projects/{project_id}
https://developer.github.com/v3/teams/#remove-a-project-from-a-team-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) RemoveRepoInOrg ¶
func (c Client) RemoveRepoInOrg(ctx context.Context, req *RemoveRepoInOrgReq, opt ...requests.Option) (*RemoveRepoInOrgResponse, error)
RemoveRepoInOrg performs requests for "teams/remove-repo-in-org"
Remove a repository from a team.
DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}
https://developer.github.com/v3/teams/#remove-a-repository-from-a-team
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) RemoveRepoLegacy ¶
func (c Client) RemoveRepoLegacy(ctx context.Context, req *RemoveRepoLegacyReq, opt ...requests.Option) (*RemoveRepoLegacyResponse, error)
RemoveRepoLegacy performs requests for "teams/remove-repo-legacy"
Remove a repository from a team (Legacy).
DELETE /teams/{team_id}/repos/{owner}/{repo}
https://developer.github.com/v3/teams/#remove-a-repository-from-a-team-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) UpdateDiscussionCommentInOrg ¶
func (c Client) UpdateDiscussionCommentInOrg(ctx context.Context, req *UpdateDiscussionCommentInOrgReq, opt ...requests.Option) (*UpdateDiscussionCommentInOrgResponse, error)
UpdateDiscussionCommentInOrg performs requests for "teams/update-discussion-comment-in-org"
Update a discussion comment.
PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}
https://developer.github.com/v3/teams/discussion_comments/#update-a-discussion-comment
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) UpdateDiscussionCommentLegacy ¶
func (c Client) UpdateDiscussionCommentLegacy(ctx context.Context, req *UpdateDiscussionCommentLegacyReq, opt ...requests.Option) (*UpdateDiscussionCommentLegacyResponse, error)
UpdateDiscussionCommentLegacy performs requests for "teams/update-discussion-comment-legacy"
Update a discussion comment (Legacy).
PATCH /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}
https://developer.github.com/v3/teams/discussion_comments/#update-a-discussion-comment-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) UpdateDiscussionInOrg ¶
func (c Client) UpdateDiscussionInOrg(ctx context.Context, req *UpdateDiscussionInOrgReq, opt ...requests.Option) (*UpdateDiscussionInOrgResponse, error)
UpdateDiscussionInOrg performs requests for "teams/update-discussion-in-org"
Update a discussion.
PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}
https://developer.github.com/v3/teams/discussions/#update-a-discussion
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) UpdateDiscussionLegacy ¶
func (c Client) UpdateDiscussionLegacy(ctx context.Context, req *UpdateDiscussionLegacyReq, opt ...requests.Option) (*UpdateDiscussionLegacyResponse, error)
UpdateDiscussionLegacy performs requests for "teams/update-discussion-legacy"
Update a discussion (Legacy).
PATCH /teams/{team_id}/discussions/{discussion_number}
https://developer.github.com/v3/teams/discussions/#update-a-discussion-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) UpdateInOrg ¶
func (c Client) UpdateInOrg(ctx context.Context, req *UpdateInOrgReq, opt ...requests.Option) (*UpdateInOrgResponse, error)
UpdateInOrg performs requests for "teams/update-in-org"
Update a team.
PATCH /orgs/{org}/teams/{team_slug}
https://developer.github.com/v3/teams/#update-a-team
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (Client) UpdateLegacy ¶
func (c Client) UpdateLegacy(ctx context.Context, req *UpdateLegacyReq, opt ...requests.Option) (*UpdateLegacyResponse, error)
UpdateLegacy performs requests for "teams/update-legacy"
Update a team (Legacy).
PATCH /teams/{team_id}
https://developer.github.com/v3/teams/#update-a-team-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
type CreateDiscussionCommentInOrgReq ¶
type CreateDiscussionCommentInOrgReq struct { Org string // team_slug parameter TeamSlug string DiscussionNumber int64 RequestBody CreateDiscussionCommentInOrgReqBody /* An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details. To access the API you must set this to true. */ SquirrelGirlPreview bool // contains filtered or unexported fields }
CreateDiscussionCommentInOrgReq is request data for Client.CreateDiscussionCommentInOrg
https://developer.github.com/v3/teams/discussion_comments/#create-a-discussion-comment
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*CreateDiscussionCommentInOrgReq) HTTPRequest ¶
func (r *CreateDiscussionCommentInOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*CreateDiscussionCommentInOrgReq) Rel ¶
func (r *CreateDiscussionCommentInOrgReq) Rel(link string, resp *CreateDiscussionCommentInOrgResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type CreateDiscussionCommentInOrgReqBody ¶
type CreateDiscussionCommentInOrgReqBody struct { // The discussion comment's body text. Body *string `json:"body"` }
CreateDiscussionCommentInOrgReqBody is a request body for teams/create-discussion-comment-in-org
https://developer.github.com/v3/teams/discussion_comments/#create-a-discussion-comment
type CreateDiscussionCommentInOrgResponse ¶
type CreateDiscussionCommentInOrgResponse struct { Data components.TeamDiscussionComment // contains filtered or unexported fields }
CreateDiscussionCommentInOrgResponse is a response for CreateDiscussionCommentInOrg
https://developer.github.com/v3/teams/discussion_comments/#create-a-discussion-comment
func CreateDiscussionCommentInOrg ¶
func CreateDiscussionCommentInOrg(ctx context.Context, req *CreateDiscussionCommentInOrgReq, opt ...requests.Option) (*CreateDiscussionCommentInOrgResponse, error)
CreateDiscussionCommentInOrg performs requests for "teams/create-discussion-comment-in-org"
Create a discussion comment.
POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments
https://developer.github.com/v3/teams/discussion_comments/#create-a-discussion-comment
func (*CreateDiscussionCommentInOrgResponse) HTTPResponse ¶
func (r *CreateDiscussionCommentInOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*CreateDiscussionCommentInOrgResponse) ReadResponse ¶
func (r *CreateDiscussionCommentInOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type CreateDiscussionCommentLegacyReq ¶
type CreateDiscussionCommentLegacyReq struct { TeamId int64 DiscussionNumber int64 RequestBody CreateDiscussionCommentLegacyReqBody /* An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details. To access the API you must set this to true. */ SquirrelGirlPreview bool // contains filtered or unexported fields }
CreateDiscussionCommentLegacyReq is request data for Client.CreateDiscussionCommentLegacy
https://developer.github.com/v3/teams/discussion_comments/#create-a-discussion-comment-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*CreateDiscussionCommentLegacyReq) HTTPRequest ¶
func (r *CreateDiscussionCommentLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*CreateDiscussionCommentLegacyReq) Rel ¶
func (r *CreateDiscussionCommentLegacyReq) Rel(link string, resp *CreateDiscussionCommentLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type CreateDiscussionCommentLegacyReqBody ¶
type CreateDiscussionCommentLegacyReqBody struct { // The discussion comment's body text. Body *string `json:"body"` }
CreateDiscussionCommentLegacyReqBody is a request body for teams/create-discussion-comment-legacy
https://developer.github.com/v3/teams/discussion_comments/#create-a-discussion-comment-legacy
type CreateDiscussionCommentLegacyResponse ¶
type CreateDiscussionCommentLegacyResponse struct { Data components.TeamDiscussionComment // contains filtered or unexported fields }
CreateDiscussionCommentLegacyResponse is a response for CreateDiscussionCommentLegacy
https://developer.github.com/v3/teams/discussion_comments/#create-a-discussion-comment-legacy
func CreateDiscussionCommentLegacy ¶
func CreateDiscussionCommentLegacy(ctx context.Context, req *CreateDiscussionCommentLegacyReq, opt ...requests.Option) (*CreateDiscussionCommentLegacyResponse, error)
CreateDiscussionCommentLegacy performs requests for "teams/create-discussion-comment-legacy"
Create a discussion comment (Legacy).
POST /teams/{team_id}/discussions/{discussion_number}/comments
https://developer.github.com/v3/teams/discussion_comments/#create-a-discussion-comment-legacy
func (*CreateDiscussionCommentLegacyResponse) HTTPResponse ¶
func (r *CreateDiscussionCommentLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*CreateDiscussionCommentLegacyResponse) ReadResponse ¶
func (r *CreateDiscussionCommentLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type CreateDiscussionInOrgReq ¶
type CreateDiscussionInOrgReq struct { Org string // team_slug parameter TeamSlug string RequestBody CreateDiscussionInOrgReqBody /* An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details. To access the API you must set this to true. */ SquirrelGirlPreview bool // contains filtered or unexported fields }
CreateDiscussionInOrgReq is request data for Client.CreateDiscussionInOrg
https://developer.github.com/v3/teams/discussions/#create-a-discussion
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*CreateDiscussionInOrgReq) HTTPRequest ¶
func (r *CreateDiscussionInOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*CreateDiscussionInOrgReq) Rel ¶
func (r *CreateDiscussionInOrgReq) Rel(link string, resp *CreateDiscussionInOrgResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type CreateDiscussionInOrgReqBody ¶
type CreateDiscussionInOrgReqBody struct { // The discussion post's body text. Body *string `json:"body"` /* 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. */ Private *bool `json:"private,omitempty"` // The discussion post's title. Title *string `json:"title"` }
CreateDiscussionInOrgReqBody is a request body for teams/create-discussion-in-org
https://developer.github.com/v3/teams/discussions/#create-a-discussion
type CreateDiscussionInOrgResponse ¶
type CreateDiscussionInOrgResponse struct { Data components.TeamDiscussion // contains filtered or unexported fields }
CreateDiscussionInOrgResponse is a response for CreateDiscussionInOrg
https://developer.github.com/v3/teams/discussions/#create-a-discussion
func CreateDiscussionInOrg ¶
func CreateDiscussionInOrg(ctx context.Context, req *CreateDiscussionInOrgReq, opt ...requests.Option) (*CreateDiscussionInOrgResponse, error)
CreateDiscussionInOrg performs requests for "teams/create-discussion-in-org"
Create a discussion.
POST /orgs/{org}/teams/{team_slug}/discussions
https://developer.github.com/v3/teams/discussions/#create-a-discussion
func (*CreateDiscussionInOrgResponse) HTTPResponse ¶
func (r *CreateDiscussionInOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*CreateDiscussionInOrgResponse) ReadResponse ¶
func (r *CreateDiscussionInOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type CreateDiscussionLegacyReq ¶
type CreateDiscussionLegacyReq struct { TeamId int64 RequestBody CreateDiscussionLegacyReqBody /* An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details. To access the API you must set this to true. */ SquirrelGirlPreview bool // contains filtered or unexported fields }
CreateDiscussionLegacyReq is request data for Client.CreateDiscussionLegacy
https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*CreateDiscussionLegacyReq) HTTPRequest ¶
func (r *CreateDiscussionLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*CreateDiscussionLegacyReq) Rel ¶
func (r *CreateDiscussionLegacyReq) Rel(link string, resp *CreateDiscussionLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type CreateDiscussionLegacyReqBody ¶
type CreateDiscussionLegacyReqBody struct { // The discussion post's body text. Body *string `json:"body"` /* 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. */ Private *bool `json:"private,omitempty"` // The discussion post's title. Title *string `json:"title"` }
CreateDiscussionLegacyReqBody is a request body for teams/create-discussion-legacy
https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy
type CreateDiscussionLegacyResponse ¶
type CreateDiscussionLegacyResponse struct { Data components.TeamDiscussion // contains filtered or unexported fields }
CreateDiscussionLegacyResponse is a response for CreateDiscussionLegacy
https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy
func CreateDiscussionLegacy ¶
func CreateDiscussionLegacy(ctx context.Context, req *CreateDiscussionLegacyReq, opt ...requests.Option) (*CreateDiscussionLegacyResponse, error)
CreateDiscussionLegacy performs requests for "teams/create-discussion-legacy"
Create a discussion (Legacy).
POST /teams/{team_id}/discussions
https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy
func (*CreateDiscussionLegacyResponse) HTTPResponse ¶
func (r *CreateDiscussionLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*CreateDiscussionLegacyResponse) ReadResponse ¶
func (r *CreateDiscussionLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type CreateOrUpdateIdpGroupConnectionsInOrgReq ¶
type CreateOrUpdateIdpGroupConnectionsInOrgReq struct { Org string // team_slug parameter TeamSlug string RequestBody CreateOrUpdateIdpGroupConnectionsInOrgReqBody // contains filtered or unexported fields }
CreateOrUpdateIdpGroupConnectionsInOrgReq is request data for Client.CreateOrUpdateIdpGroupConnectionsInOrg
https://developer.github.com/v3/teams/team_sync/#create-or-update-idp-group-connections
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*CreateOrUpdateIdpGroupConnectionsInOrgReq) HTTPRequest ¶
func (r *CreateOrUpdateIdpGroupConnectionsInOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*CreateOrUpdateIdpGroupConnectionsInOrgReq) Rel ¶
func (r *CreateOrUpdateIdpGroupConnectionsInOrgReq) Rel(link string, resp *CreateOrUpdateIdpGroupConnectionsInOrgResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type CreateOrUpdateIdpGroupConnectionsInOrgReqBody ¶
type CreateOrUpdateIdpGroupConnectionsInOrgReqBody struct { /* The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove. */ Groups []CreateOrUpdateIdpGroupConnectionsInOrgReqBodyGroups `json:"groups"` }
CreateOrUpdateIdpGroupConnectionsInOrgReqBody is a request body for teams/create-or-update-idp-group-connections-in-org
https://developer.github.com/v3/teams/team_sync/#create-or-update-idp-group-connections
type CreateOrUpdateIdpGroupConnectionsInOrgReqBodyGroups ¶
type CreateOrUpdateIdpGroupConnectionsInOrgReqBodyGroups struct { // Description of the IdP group. GroupDescription *string `json:"group_description"` // ID of the IdP group. GroupId *string `json:"group_id"` // Name of the IdP group. GroupName *string `json:"group_name"` }
CreateOrUpdateIdpGroupConnectionsInOrgReqBodyGroups is a value for CreateOrUpdateIdpGroupConnectionsInOrgReqBody's Groups field
type CreateOrUpdateIdpGroupConnectionsInOrgResponse ¶
type CreateOrUpdateIdpGroupConnectionsInOrgResponse struct { Data components.GroupMapping // contains filtered or unexported fields }
CreateOrUpdateIdpGroupConnectionsInOrgResponse is a response for CreateOrUpdateIdpGroupConnectionsInOrg
https://developer.github.com/v3/teams/team_sync/#create-or-update-idp-group-connections
func CreateOrUpdateIdpGroupConnectionsInOrg ¶
func CreateOrUpdateIdpGroupConnectionsInOrg(ctx context.Context, req *CreateOrUpdateIdpGroupConnectionsInOrgReq, opt ...requests.Option) (*CreateOrUpdateIdpGroupConnectionsInOrgResponse, error)
CreateOrUpdateIdpGroupConnectionsInOrg performs requests for "teams/create-or-update-idp-group-connections-in-org"
Create or update IdP group connections.
PATCH /orgs/{org}/teams/{team_slug}/team-sync/group-mappings
https://developer.github.com/v3/teams/team_sync/#create-or-update-idp-group-connections
func (*CreateOrUpdateIdpGroupConnectionsInOrgResponse) HTTPResponse ¶
func (r *CreateOrUpdateIdpGroupConnectionsInOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*CreateOrUpdateIdpGroupConnectionsInOrgResponse) ReadResponse ¶
func (r *CreateOrUpdateIdpGroupConnectionsInOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type CreateOrUpdateIdpGroupConnectionsLegacyReq ¶
type CreateOrUpdateIdpGroupConnectionsLegacyReq struct { TeamId int64 RequestBody CreateOrUpdateIdpGroupConnectionsLegacyReqBody // contains filtered or unexported fields }
CreateOrUpdateIdpGroupConnectionsLegacyReq is request data for Client.CreateOrUpdateIdpGroupConnectionsLegacy
https://developer.github.com/v3/teams/team_sync/#create-or-update-idp-group-connections-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*CreateOrUpdateIdpGroupConnectionsLegacyReq) HTTPRequest ¶
func (r *CreateOrUpdateIdpGroupConnectionsLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*CreateOrUpdateIdpGroupConnectionsLegacyReq) Rel ¶
func (r *CreateOrUpdateIdpGroupConnectionsLegacyReq) Rel(link string, resp *CreateOrUpdateIdpGroupConnectionsLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type CreateOrUpdateIdpGroupConnectionsLegacyReqBody ¶
type CreateOrUpdateIdpGroupConnectionsLegacyReqBody struct { /* The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove. */ Groups []CreateOrUpdateIdpGroupConnectionsLegacyReqBodyGroups `json:"groups"` SyncedAt *string `json:"synced_at,omitempty"` }
CreateOrUpdateIdpGroupConnectionsLegacyReqBody is a request body for teams/create-or-update-idp-group-connections-legacy
https://developer.github.com/v3/teams/team_sync/#create-or-update-idp-group-connections-legacy
type CreateOrUpdateIdpGroupConnectionsLegacyReqBodyGroups ¶
type CreateOrUpdateIdpGroupConnectionsLegacyReqBodyGroups struct { Description *string `json:"description,omitempty"` // Description of the IdP group. GroupDescription *string `json:"group_description"` // ID of the IdP group. GroupId *string `json:"group_id"` // Name of the IdP group. GroupName *string `json:"group_name"` Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` }
CreateOrUpdateIdpGroupConnectionsLegacyReqBodyGroups is a value for CreateOrUpdateIdpGroupConnectionsLegacyReqBody's Groups field
type CreateOrUpdateIdpGroupConnectionsLegacyResponse ¶
type CreateOrUpdateIdpGroupConnectionsLegacyResponse struct { Data components.GroupMapping // contains filtered or unexported fields }
CreateOrUpdateIdpGroupConnectionsLegacyResponse is a response for CreateOrUpdateIdpGroupConnectionsLegacy
https://developer.github.com/v3/teams/team_sync/#create-or-update-idp-group-connections-legacy
func CreateOrUpdateIdpGroupConnectionsLegacy ¶
func CreateOrUpdateIdpGroupConnectionsLegacy(ctx context.Context, req *CreateOrUpdateIdpGroupConnectionsLegacyReq, opt ...requests.Option) (*CreateOrUpdateIdpGroupConnectionsLegacyResponse, error)
CreateOrUpdateIdpGroupConnectionsLegacy performs requests for "teams/create-or-update-idp-group-connections-legacy"
Create or update IdP group connections (Legacy).
PATCH /teams/{team_id}/team-sync/group-mappings
https://developer.github.com/v3/teams/team_sync/#create-or-update-idp-group-connections-legacy
func (*CreateOrUpdateIdpGroupConnectionsLegacyResponse) HTTPResponse ¶
func (r *CreateOrUpdateIdpGroupConnectionsLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*CreateOrUpdateIdpGroupConnectionsLegacyResponse) ReadResponse ¶
func (r *CreateOrUpdateIdpGroupConnectionsLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type CreateReq ¶
type CreateReq struct { Org string RequestBody CreateReqBody // contains filtered or unexported fields }
CreateReq is request data for Client.Create
https://developer.github.com/v3/teams/#create-a-team
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*CreateReq) HTTPRequest ¶
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
type CreateReqBody ¶
type CreateReqBody struct { // The description of the team. Description *string `json:"description,omitempty"` // List GitHub IDs for organization members who will become team maintainers. Maintainers []string `json:"maintainers,omitempty"` // The name of the team. Name *string `json:"name"` // The ID of a team to set as the parent team. ParentTeamId *int64 `json:"parent_team_id,omitempty"` /* **Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of: \* `pull` - team members can pull, but not push to or administer newly-added repositories. \* `push` - team members can pull and push, but not administer newly-added repositories. \* `admin` - team members can pull, push and administer newly-added repositories. */ Permission *string `json:"permission,omitempty"` /* The level of privacy this team should have. The options are: **For a non-nested team:** \* `secret` - only visible to organization owners and members of this team. \* `closed` - visible to all members of this organization. Default: `secret` **For a parent or child team:** \* `closed` - visible to all members of this organization. Default for child team: `closed` */ Privacy *string `json:"privacy,omitempty"` // The full name (e.g., "organization-name/repository-name") of repositories to add the team to. RepoNames []string `json:"repo_names,omitempty"` }
CreateReqBody is a request body for teams/create
type CreateResponse ¶
type CreateResponse struct { Data components.TeamFull // contains filtered or unexported fields }
CreateResponse is a response for Create
https://developer.github.com/v3/teams/#create-a-team
func (*CreateResponse) HTTPResponse ¶
func (r *CreateResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*CreateResponse) ReadResponse ¶
func (r *CreateResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type DeleteDiscussionCommentInOrgReq ¶
type DeleteDiscussionCommentInOrgReq struct { Org string // team_slug parameter TeamSlug string DiscussionNumber int64 CommentNumber int64 // contains filtered or unexported fields }
DeleteDiscussionCommentInOrgReq is request data for Client.DeleteDiscussionCommentInOrg
https://developer.github.com/v3/teams/discussion_comments/#delete-a-discussion-comment
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*DeleteDiscussionCommentInOrgReq) HTTPRequest ¶
func (r *DeleteDiscussionCommentInOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*DeleteDiscussionCommentInOrgReq) Rel ¶
func (r *DeleteDiscussionCommentInOrgReq) Rel(link string, resp *DeleteDiscussionCommentInOrgResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type DeleteDiscussionCommentInOrgResponse ¶
type DeleteDiscussionCommentInOrgResponse struct {
// contains filtered or unexported fields
}
DeleteDiscussionCommentInOrgResponse is a response for DeleteDiscussionCommentInOrg
https://developer.github.com/v3/teams/discussion_comments/#delete-a-discussion-comment
func DeleteDiscussionCommentInOrg ¶
func DeleteDiscussionCommentInOrg(ctx context.Context, req *DeleteDiscussionCommentInOrgReq, opt ...requests.Option) (*DeleteDiscussionCommentInOrgResponse, error)
DeleteDiscussionCommentInOrg performs requests for "teams/delete-discussion-comment-in-org"
Delete a discussion comment.
DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}
https://developer.github.com/v3/teams/discussion_comments/#delete-a-discussion-comment
func (*DeleteDiscussionCommentInOrgResponse) HTTPResponse ¶
func (r *DeleteDiscussionCommentInOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*DeleteDiscussionCommentInOrgResponse) ReadResponse ¶
func (r *DeleteDiscussionCommentInOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type DeleteDiscussionCommentLegacyReq ¶
type DeleteDiscussionCommentLegacyReq struct { TeamId int64 DiscussionNumber int64 CommentNumber int64 // contains filtered or unexported fields }
DeleteDiscussionCommentLegacyReq is request data for Client.DeleteDiscussionCommentLegacy
https://developer.github.com/v3/teams/discussion_comments/#delete-a-discussion-comment-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*DeleteDiscussionCommentLegacyReq) HTTPRequest ¶
func (r *DeleteDiscussionCommentLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*DeleteDiscussionCommentLegacyReq) Rel ¶
func (r *DeleteDiscussionCommentLegacyReq) Rel(link string, resp *DeleteDiscussionCommentLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type DeleteDiscussionCommentLegacyResponse ¶
type DeleteDiscussionCommentLegacyResponse struct {
// contains filtered or unexported fields
}
DeleteDiscussionCommentLegacyResponse is a response for DeleteDiscussionCommentLegacy
https://developer.github.com/v3/teams/discussion_comments/#delete-a-discussion-comment-legacy
func DeleteDiscussionCommentLegacy ¶
func DeleteDiscussionCommentLegacy(ctx context.Context, req *DeleteDiscussionCommentLegacyReq, opt ...requests.Option) (*DeleteDiscussionCommentLegacyResponse, error)
DeleteDiscussionCommentLegacy performs requests for "teams/delete-discussion-comment-legacy"
Delete a discussion comment (Legacy).
DELETE /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}
https://developer.github.com/v3/teams/discussion_comments/#delete-a-discussion-comment-legacy
func (*DeleteDiscussionCommentLegacyResponse) HTTPResponse ¶
func (r *DeleteDiscussionCommentLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*DeleteDiscussionCommentLegacyResponse) ReadResponse ¶
func (r *DeleteDiscussionCommentLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type DeleteDiscussionInOrgReq ¶
type DeleteDiscussionInOrgReq struct { Org string // team_slug parameter TeamSlug string DiscussionNumber int64 // contains filtered or unexported fields }
DeleteDiscussionInOrgReq is request data for Client.DeleteDiscussionInOrg
https://developer.github.com/v3/teams/discussions/#delete-a-discussion
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*DeleteDiscussionInOrgReq) HTTPRequest ¶
func (r *DeleteDiscussionInOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*DeleteDiscussionInOrgReq) Rel ¶
func (r *DeleteDiscussionInOrgReq) Rel(link string, resp *DeleteDiscussionInOrgResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type DeleteDiscussionInOrgResponse ¶
type DeleteDiscussionInOrgResponse struct {
// contains filtered or unexported fields
}
DeleteDiscussionInOrgResponse is a response for DeleteDiscussionInOrg
https://developer.github.com/v3/teams/discussions/#delete-a-discussion
func DeleteDiscussionInOrg ¶
func DeleteDiscussionInOrg(ctx context.Context, req *DeleteDiscussionInOrgReq, opt ...requests.Option) (*DeleteDiscussionInOrgResponse, error)
DeleteDiscussionInOrg performs requests for "teams/delete-discussion-in-org"
Delete a discussion.
DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}
https://developer.github.com/v3/teams/discussions/#delete-a-discussion
func (*DeleteDiscussionInOrgResponse) HTTPResponse ¶
func (r *DeleteDiscussionInOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*DeleteDiscussionInOrgResponse) ReadResponse ¶
func (r *DeleteDiscussionInOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type DeleteDiscussionLegacyReq ¶
type DeleteDiscussionLegacyReq struct { TeamId int64 DiscussionNumber int64 // contains filtered or unexported fields }
DeleteDiscussionLegacyReq is request data for Client.DeleteDiscussionLegacy
https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*DeleteDiscussionLegacyReq) HTTPRequest ¶
func (r *DeleteDiscussionLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*DeleteDiscussionLegacyReq) Rel ¶
func (r *DeleteDiscussionLegacyReq) Rel(link string, resp *DeleteDiscussionLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type DeleteDiscussionLegacyResponse ¶
type DeleteDiscussionLegacyResponse struct {
// contains filtered or unexported fields
}
DeleteDiscussionLegacyResponse is a response for DeleteDiscussionLegacy
https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy
func DeleteDiscussionLegacy ¶
func DeleteDiscussionLegacy(ctx context.Context, req *DeleteDiscussionLegacyReq, opt ...requests.Option) (*DeleteDiscussionLegacyResponse, error)
DeleteDiscussionLegacy performs requests for "teams/delete-discussion-legacy"
Delete a discussion (Legacy).
DELETE /teams/{team_id}/discussions/{discussion_number}
https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy
func (*DeleteDiscussionLegacyResponse) HTTPResponse ¶
func (r *DeleteDiscussionLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*DeleteDiscussionLegacyResponse) ReadResponse ¶
func (r *DeleteDiscussionLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type DeleteInOrgReq ¶
type DeleteInOrgReq struct { Org string // team_slug parameter TeamSlug string // contains filtered or unexported fields }
DeleteInOrgReq is request data for Client.DeleteInOrg
https://developer.github.com/v3/teams/#delete-a-team
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*DeleteInOrgReq) HTTPRequest ¶
func (r *DeleteInOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*DeleteInOrgReq) Rel ¶
func (r *DeleteInOrgReq) Rel(link string, resp *DeleteInOrgResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type DeleteInOrgResponse ¶
type DeleteInOrgResponse struct {
// contains filtered or unexported fields
}
DeleteInOrgResponse is a response for DeleteInOrg
https://developer.github.com/v3/teams/#delete-a-team
func DeleteInOrg ¶
func DeleteInOrg(ctx context.Context, req *DeleteInOrgReq, opt ...requests.Option) (*DeleteInOrgResponse, error)
DeleteInOrg performs requests for "teams/delete-in-org"
Delete a team.
DELETE /orgs/{org}/teams/{team_slug}
func (*DeleteInOrgResponse) HTTPResponse ¶
func (r *DeleteInOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*DeleteInOrgResponse) ReadResponse ¶
func (r *DeleteInOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type DeleteLegacyReq ¶
type DeleteLegacyReq struct { TeamId int64 // contains filtered or unexported fields }
DeleteLegacyReq is request data for Client.DeleteLegacy
https://developer.github.com/v3/teams/#delete-a-team-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*DeleteLegacyReq) HTTPRequest ¶
func (r *DeleteLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*DeleteLegacyReq) Rel ¶
func (r *DeleteLegacyReq) Rel(link string, resp *DeleteLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type DeleteLegacyResponse ¶
type DeleteLegacyResponse struct {
// contains filtered or unexported fields
}
DeleteLegacyResponse is a response for DeleteLegacy
https://developer.github.com/v3/teams/#delete-a-team-legacy
func DeleteLegacy ¶
func DeleteLegacy(ctx context.Context, req *DeleteLegacyReq, opt ...requests.Option) (*DeleteLegacyResponse, error)
DeleteLegacy performs requests for "teams/delete-legacy"
Delete a team (Legacy).
DELETE /teams/{team_id}
func (*DeleteLegacyResponse) HTTPResponse ¶
func (r *DeleteLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*DeleteLegacyResponse) ReadResponse ¶
func (r *DeleteLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type GetByNameReq ¶
type GetByNameReq struct { Org string // team_slug parameter TeamSlug string // contains filtered or unexported fields }
GetByNameReq is request data for Client.GetByName
https://developer.github.com/v3/teams/#get-a-team-by-name
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*GetByNameReq) HTTPRequest ¶
func (r *GetByNameReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*GetByNameReq) Rel ¶
func (r *GetByNameReq) Rel(link string, resp *GetByNameResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type GetByNameResponse ¶
type GetByNameResponse struct { Data components.TeamFull // contains filtered or unexported fields }
GetByNameResponse is a response for GetByName
https://developer.github.com/v3/teams/#get-a-team-by-name
func GetByName ¶
func GetByName(ctx context.Context, req *GetByNameReq, opt ...requests.Option) (*GetByNameResponse, error)
GetByName performs requests for "teams/get-by-name"
Get a team by name.
GET /orgs/{org}/teams/{team_slug}
func (*GetByNameResponse) HTTPResponse ¶
func (r *GetByNameResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*GetByNameResponse) ReadResponse ¶
func (r *GetByNameResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type GetDiscussionCommentInOrgReq ¶
type GetDiscussionCommentInOrgReq struct { Org string // team_slug parameter TeamSlug string DiscussionNumber int64 CommentNumber int64 /* An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details. To access the API you must set this to true. */ SquirrelGirlPreview bool // contains filtered or unexported fields }
GetDiscussionCommentInOrgReq is request data for Client.GetDiscussionCommentInOrg
https://developer.github.com/v3/teams/discussion_comments/#get-a-discussion-comment
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*GetDiscussionCommentInOrgReq) HTTPRequest ¶
func (r *GetDiscussionCommentInOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*GetDiscussionCommentInOrgReq) Rel ¶
func (r *GetDiscussionCommentInOrgReq) Rel(link string, resp *GetDiscussionCommentInOrgResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type GetDiscussionCommentInOrgResponse ¶
type GetDiscussionCommentInOrgResponse struct { Data components.TeamDiscussionComment // contains filtered or unexported fields }
GetDiscussionCommentInOrgResponse is a response for GetDiscussionCommentInOrg
https://developer.github.com/v3/teams/discussion_comments/#get-a-discussion-comment
func GetDiscussionCommentInOrg ¶
func GetDiscussionCommentInOrg(ctx context.Context, req *GetDiscussionCommentInOrgReq, opt ...requests.Option) (*GetDiscussionCommentInOrgResponse, error)
GetDiscussionCommentInOrg performs requests for "teams/get-discussion-comment-in-org"
Get a discussion comment.
GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}
https://developer.github.com/v3/teams/discussion_comments/#get-a-discussion-comment
func (*GetDiscussionCommentInOrgResponse) HTTPResponse ¶
func (r *GetDiscussionCommentInOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*GetDiscussionCommentInOrgResponse) ReadResponse ¶
func (r *GetDiscussionCommentInOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type GetDiscussionCommentLegacyReq ¶
type GetDiscussionCommentLegacyReq struct { TeamId int64 DiscussionNumber int64 CommentNumber int64 /* An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details. To access the API you must set this to true. */ SquirrelGirlPreview bool // contains filtered or unexported fields }
GetDiscussionCommentLegacyReq is request data for Client.GetDiscussionCommentLegacy
https://developer.github.com/v3/teams/discussion_comments/#get-a-discussion-comment-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*GetDiscussionCommentLegacyReq) HTTPRequest ¶
func (r *GetDiscussionCommentLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*GetDiscussionCommentLegacyReq) Rel ¶
func (r *GetDiscussionCommentLegacyReq) Rel(link string, resp *GetDiscussionCommentLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type GetDiscussionCommentLegacyResponse ¶
type GetDiscussionCommentLegacyResponse struct { Data components.TeamDiscussionComment // contains filtered or unexported fields }
GetDiscussionCommentLegacyResponse is a response for GetDiscussionCommentLegacy
https://developer.github.com/v3/teams/discussion_comments/#get-a-discussion-comment-legacy
func GetDiscussionCommentLegacy ¶
func GetDiscussionCommentLegacy(ctx context.Context, req *GetDiscussionCommentLegacyReq, opt ...requests.Option) (*GetDiscussionCommentLegacyResponse, error)
GetDiscussionCommentLegacy performs requests for "teams/get-discussion-comment-legacy"
Get a discussion comment (Legacy).
GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}
https://developer.github.com/v3/teams/discussion_comments/#get-a-discussion-comment-legacy
func (*GetDiscussionCommentLegacyResponse) HTTPResponse ¶
func (r *GetDiscussionCommentLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*GetDiscussionCommentLegacyResponse) ReadResponse ¶
func (r *GetDiscussionCommentLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type GetDiscussionInOrgReq ¶
type GetDiscussionInOrgReq struct { Org string // team_slug parameter TeamSlug string DiscussionNumber int64 /* An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details. To access the API you must set this to true. */ SquirrelGirlPreview bool // contains filtered or unexported fields }
GetDiscussionInOrgReq is request data for Client.GetDiscussionInOrg
https://developer.github.com/v3/teams/discussions/#get-a-discussion
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*GetDiscussionInOrgReq) HTTPRequest ¶
func (r *GetDiscussionInOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*GetDiscussionInOrgReq) Rel ¶
func (r *GetDiscussionInOrgReq) Rel(link string, resp *GetDiscussionInOrgResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type GetDiscussionInOrgResponse ¶
type GetDiscussionInOrgResponse struct { Data components.TeamDiscussion // contains filtered or unexported fields }
GetDiscussionInOrgResponse is a response for GetDiscussionInOrg
https://developer.github.com/v3/teams/discussions/#get-a-discussion
func GetDiscussionInOrg ¶
func GetDiscussionInOrg(ctx context.Context, req *GetDiscussionInOrgReq, opt ...requests.Option) (*GetDiscussionInOrgResponse, error)
GetDiscussionInOrg performs requests for "teams/get-discussion-in-org"
Get a discussion.
GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}
https://developer.github.com/v3/teams/discussions/#get-a-discussion
func (*GetDiscussionInOrgResponse) HTTPResponse ¶
func (r *GetDiscussionInOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*GetDiscussionInOrgResponse) ReadResponse ¶
func (r *GetDiscussionInOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type GetDiscussionLegacyReq ¶
type GetDiscussionLegacyReq struct { TeamId int64 DiscussionNumber int64 /* An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details. To access the API you must set this to true. */ SquirrelGirlPreview bool // contains filtered or unexported fields }
GetDiscussionLegacyReq is request data for Client.GetDiscussionLegacy
https://developer.github.com/v3/teams/discussions/#get-a-discussion-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*GetDiscussionLegacyReq) HTTPRequest ¶
func (r *GetDiscussionLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*GetDiscussionLegacyReq) Rel ¶
func (r *GetDiscussionLegacyReq) Rel(link string, resp *GetDiscussionLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type GetDiscussionLegacyResponse ¶
type GetDiscussionLegacyResponse struct { Data components.TeamDiscussion // contains filtered or unexported fields }
GetDiscussionLegacyResponse is a response for GetDiscussionLegacy
https://developer.github.com/v3/teams/discussions/#get-a-discussion-legacy
func GetDiscussionLegacy ¶
func GetDiscussionLegacy(ctx context.Context, req *GetDiscussionLegacyReq, opt ...requests.Option) (*GetDiscussionLegacyResponse, error)
GetDiscussionLegacy performs requests for "teams/get-discussion-legacy"
Get a discussion (Legacy).
GET /teams/{team_id}/discussions/{discussion_number}
https://developer.github.com/v3/teams/discussions/#get-a-discussion-legacy
func (*GetDiscussionLegacyResponse) HTTPResponse ¶
func (r *GetDiscussionLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*GetDiscussionLegacyResponse) ReadResponse ¶
func (r *GetDiscussionLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type GetLegacyReq ¶
type GetLegacyReq struct { TeamId int64 // contains filtered or unexported fields }
GetLegacyReq is request data for Client.GetLegacy
https://developer.github.com/v3/teams/#get-a-team-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*GetLegacyReq) HTTPRequest ¶
func (r *GetLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*GetLegacyReq) Rel ¶
func (r *GetLegacyReq) Rel(link string, resp *GetLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type GetLegacyResponse ¶
type GetLegacyResponse struct { Data components.TeamFull // contains filtered or unexported fields }
GetLegacyResponse is a response for GetLegacy
https://developer.github.com/v3/teams/#get-a-team-legacy
func GetLegacy ¶
func GetLegacy(ctx context.Context, req *GetLegacyReq, opt ...requests.Option) (*GetLegacyResponse, error)
GetLegacy performs requests for "teams/get-legacy"
Get a team (Legacy).
GET /teams/{team_id}
func (*GetLegacyResponse) HTTPResponse ¶
func (r *GetLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*GetLegacyResponse) ReadResponse ¶
func (r *GetLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type GetMemberLegacyReq ¶
type GetMemberLegacyReq struct { TeamId int64 Username string // contains filtered or unexported fields }
GetMemberLegacyReq is request data for Client.GetMemberLegacy
https://developer.github.com/v3/teams/members/#get-team-member-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*GetMemberLegacyReq) HTTPRequest ¶
func (r *GetMemberLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*GetMemberLegacyReq) Rel ¶
func (r *GetMemberLegacyReq) Rel(link string, resp *GetMemberLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type GetMemberLegacyResponse ¶
type GetMemberLegacyResponse struct { Data bool // contains filtered or unexported fields }
GetMemberLegacyResponse is a response for GetMemberLegacy
https://developer.github.com/v3/teams/members/#get-team-member-legacy
func GetMemberLegacy ¶
func GetMemberLegacy(ctx context.Context, req *GetMemberLegacyReq, opt ...requests.Option) (*GetMemberLegacyResponse, error)
GetMemberLegacy performs requests for "teams/get-member-legacy"
Get team member (Legacy).
GET /teams/{team_id}/members/{username}
https://developer.github.com/v3/teams/members/#get-team-member-legacy
func (*GetMemberLegacyResponse) HTTPResponse ¶
func (r *GetMemberLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*GetMemberLegacyResponse) ReadResponse ¶
func (r *GetMemberLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type GetMembershipForUserInOrgReq ¶
type GetMembershipForUserInOrgReq struct { Org string // team_slug parameter TeamSlug string Username string // contains filtered or unexported fields }
GetMembershipForUserInOrgReq is request data for Client.GetMembershipForUserInOrg
https://developer.github.com/v3/teams/members/#get-team-membership-for-a-user
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*GetMembershipForUserInOrgReq) HTTPRequest ¶
func (r *GetMembershipForUserInOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*GetMembershipForUserInOrgReq) Rel ¶
func (r *GetMembershipForUserInOrgReq) Rel(link string, resp *GetMembershipForUserInOrgResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type GetMembershipForUserInOrgResponse ¶
type GetMembershipForUserInOrgResponse struct { Data components.TeamMembership // contains filtered or unexported fields }
GetMembershipForUserInOrgResponse is a response for GetMembershipForUserInOrg
https://developer.github.com/v3/teams/members/#get-team-membership-for-a-user
func GetMembershipForUserInOrg ¶
func GetMembershipForUserInOrg(ctx context.Context, req *GetMembershipForUserInOrgReq, opt ...requests.Option) (*GetMembershipForUserInOrgResponse, error)
GetMembershipForUserInOrg performs requests for "teams/get-membership-for-user-in-org"
Get team membership for a user.
GET /orgs/{org}/teams/{team_slug}/memberships/{username}
https://developer.github.com/v3/teams/members/#get-team-membership-for-a-user
func (*GetMembershipForUserInOrgResponse) HTTPResponse ¶
func (r *GetMembershipForUserInOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*GetMembershipForUserInOrgResponse) ReadResponse ¶
func (r *GetMembershipForUserInOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type GetMembershipForUserLegacyReq ¶
type GetMembershipForUserLegacyReq struct { TeamId int64 Username string // contains filtered or unexported fields }
GetMembershipForUserLegacyReq is request data for Client.GetMembershipForUserLegacy
https://developer.github.com/v3/teams/members/#get-team-membership-for-a-user-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*GetMembershipForUserLegacyReq) HTTPRequest ¶
func (r *GetMembershipForUserLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*GetMembershipForUserLegacyReq) Rel ¶
func (r *GetMembershipForUserLegacyReq) Rel(link string, resp *GetMembershipForUserLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type GetMembershipForUserLegacyResponse ¶
type GetMembershipForUserLegacyResponse struct { Data components.TeamMembership // contains filtered or unexported fields }
GetMembershipForUserLegacyResponse is a response for GetMembershipForUserLegacy
https://developer.github.com/v3/teams/members/#get-team-membership-for-a-user-legacy
func GetMembershipForUserLegacy ¶
func GetMembershipForUserLegacy(ctx context.Context, req *GetMembershipForUserLegacyReq, opt ...requests.Option) (*GetMembershipForUserLegacyResponse, error)
GetMembershipForUserLegacy performs requests for "teams/get-membership-for-user-legacy"
Get team membership for a user (Legacy).
GET /teams/{team_id}/memberships/{username}
https://developer.github.com/v3/teams/members/#get-team-membership-for-a-user-legacy
func (*GetMembershipForUserLegacyResponse) HTTPResponse ¶
func (r *GetMembershipForUserLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*GetMembershipForUserLegacyResponse) ReadResponse ¶
func (r *GetMembershipForUserLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListChildInOrgReq ¶
type ListChildInOrgReq struct { Org string // team_slug parameter TeamSlug string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListChildInOrgReq is request data for Client.ListChildInOrg
https://developer.github.com/v3/teams/#list-child-teams
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListChildInOrgReq) HTTPRequest ¶
func (r *ListChildInOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*ListChildInOrgReq) Rel ¶
func (r *ListChildInOrgReq) Rel(link string, resp *ListChildInOrgResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type ListChildInOrgResponse ¶
type ListChildInOrgResponse struct { Data []components.Team // contains filtered or unexported fields }
ListChildInOrgResponse is a response for ListChildInOrg
https://developer.github.com/v3/teams/#list-child-teams
func ListChildInOrg ¶
func ListChildInOrg(ctx context.Context, req *ListChildInOrgReq, opt ...requests.Option) (*ListChildInOrgResponse, error)
ListChildInOrg performs requests for "teams/list-child-in-org"
List child teams.
GET /orgs/{org}/teams/{team_slug}/teams
func (*ListChildInOrgResponse) HTTPResponse ¶
func (r *ListChildInOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListChildInOrgResponse) ReadResponse ¶
func (r *ListChildInOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListChildLegacyReq ¶
type ListChildLegacyReq struct { TeamId int64 // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListChildLegacyReq is request data for Client.ListChildLegacy
https://developer.github.com/v3/teams/#list-child-teams-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListChildLegacyReq) HTTPRequest ¶
func (r *ListChildLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*ListChildLegacyReq) Rel ¶
func (r *ListChildLegacyReq) Rel(link string, resp *ListChildLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type ListChildLegacyResponse ¶
type ListChildLegacyResponse struct { Data []components.Team // contains filtered or unexported fields }
ListChildLegacyResponse is a response for ListChildLegacy
https://developer.github.com/v3/teams/#list-child-teams-legacy
func ListChildLegacy ¶
func ListChildLegacy(ctx context.Context, req *ListChildLegacyReq, opt ...requests.Option) (*ListChildLegacyResponse, error)
ListChildLegacy performs requests for "teams/list-child-legacy"
List child teams (Legacy).
GET /teams/{team_id}/teams
https://developer.github.com/v3/teams/#list-child-teams-legacy
func (*ListChildLegacyResponse) HTTPResponse ¶
func (r *ListChildLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListChildLegacyResponse) ReadResponse ¶
func (r *ListChildLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListDiscussionCommentsInOrgReq ¶
type ListDiscussionCommentsInOrgReq struct { Org string // team_slug parameter TeamSlug string DiscussionNumber int64 // One of `asc` (ascending) or `desc` (descending). Direction *string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 /* An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details. To access the API you must set this to true. */ SquirrelGirlPreview bool // contains filtered or unexported fields }
ListDiscussionCommentsInOrgReq is request data for Client.ListDiscussionCommentsInOrg
https://developer.github.com/v3/teams/discussion_comments/#list-discussion-comments
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListDiscussionCommentsInOrgReq) HTTPRequest ¶
func (r *ListDiscussionCommentsInOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*ListDiscussionCommentsInOrgReq) Rel ¶
func (r *ListDiscussionCommentsInOrgReq) Rel(link string, resp *ListDiscussionCommentsInOrgResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type ListDiscussionCommentsInOrgResponse ¶
type ListDiscussionCommentsInOrgResponse struct { Data []components.TeamDiscussionComment // contains filtered or unexported fields }
ListDiscussionCommentsInOrgResponse is a response for ListDiscussionCommentsInOrg
https://developer.github.com/v3/teams/discussion_comments/#list-discussion-comments
func ListDiscussionCommentsInOrg ¶
func ListDiscussionCommentsInOrg(ctx context.Context, req *ListDiscussionCommentsInOrgReq, opt ...requests.Option) (*ListDiscussionCommentsInOrgResponse, error)
ListDiscussionCommentsInOrg performs requests for "teams/list-discussion-comments-in-org"
List discussion comments.
GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments
https://developer.github.com/v3/teams/discussion_comments/#list-discussion-comments
func (*ListDiscussionCommentsInOrgResponse) HTTPResponse ¶
func (r *ListDiscussionCommentsInOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListDiscussionCommentsInOrgResponse) ReadResponse ¶
func (r *ListDiscussionCommentsInOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListDiscussionCommentsLegacyReq ¶
type ListDiscussionCommentsLegacyReq struct { TeamId int64 DiscussionNumber int64 // One of `asc` (ascending) or `desc` (descending). Direction *string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 /* An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details. To access the API you must set this to true. */ SquirrelGirlPreview bool // contains filtered or unexported fields }
ListDiscussionCommentsLegacyReq is request data for Client.ListDiscussionCommentsLegacy
https://developer.github.com/v3/teams/discussion_comments/#list-discussion-comments-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListDiscussionCommentsLegacyReq) HTTPRequest ¶
func (r *ListDiscussionCommentsLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*ListDiscussionCommentsLegacyReq) Rel ¶
func (r *ListDiscussionCommentsLegacyReq) Rel(link string, resp *ListDiscussionCommentsLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type ListDiscussionCommentsLegacyResponse ¶
type ListDiscussionCommentsLegacyResponse struct { Data []components.TeamDiscussionComment // contains filtered or unexported fields }
ListDiscussionCommentsLegacyResponse is a response for ListDiscussionCommentsLegacy
https://developer.github.com/v3/teams/discussion_comments/#list-discussion-comments-legacy
func ListDiscussionCommentsLegacy ¶
func ListDiscussionCommentsLegacy(ctx context.Context, req *ListDiscussionCommentsLegacyReq, opt ...requests.Option) (*ListDiscussionCommentsLegacyResponse, error)
ListDiscussionCommentsLegacy performs requests for "teams/list-discussion-comments-legacy"
List discussion comments (Legacy).
GET /teams/{team_id}/discussions/{discussion_number}/comments
https://developer.github.com/v3/teams/discussion_comments/#list-discussion-comments-legacy
func (*ListDiscussionCommentsLegacyResponse) HTTPResponse ¶
func (r *ListDiscussionCommentsLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListDiscussionCommentsLegacyResponse) ReadResponse ¶
func (r *ListDiscussionCommentsLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListDiscussionsInOrgReq ¶
type ListDiscussionsInOrgReq struct { Org string // team_slug parameter TeamSlug string // One of `asc` (ascending) or `desc` (descending). Direction *string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 /* An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details. To access the API you must set this to true. */ SquirrelGirlPreview bool // contains filtered or unexported fields }
ListDiscussionsInOrgReq is request data for Client.ListDiscussionsInOrg
https://developer.github.com/v3/teams/discussions/#list-discussions
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListDiscussionsInOrgReq) HTTPRequest ¶
func (r *ListDiscussionsInOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*ListDiscussionsInOrgReq) Rel ¶
func (r *ListDiscussionsInOrgReq) Rel(link string, resp *ListDiscussionsInOrgResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type ListDiscussionsInOrgResponse ¶
type ListDiscussionsInOrgResponse struct { Data []components.TeamDiscussion // contains filtered or unexported fields }
ListDiscussionsInOrgResponse is a response for ListDiscussionsInOrg
https://developer.github.com/v3/teams/discussions/#list-discussions
func ListDiscussionsInOrg ¶
func ListDiscussionsInOrg(ctx context.Context, req *ListDiscussionsInOrgReq, opt ...requests.Option) (*ListDiscussionsInOrgResponse, error)
ListDiscussionsInOrg performs requests for "teams/list-discussions-in-org"
List discussions.
GET /orgs/{org}/teams/{team_slug}/discussions
https://developer.github.com/v3/teams/discussions/#list-discussions
func (*ListDiscussionsInOrgResponse) HTTPResponse ¶
func (r *ListDiscussionsInOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListDiscussionsInOrgResponse) ReadResponse ¶
func (r *ListDiscussionsInOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListDiscussionsLegacyReq ¶
type ListDiscussionsLegacyReq struct { TeamId int64 // One of `asc` (ascending) or `desc` (descending). Direction *string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 /* An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details. To access the API you must set this to true. */ SquirrelGirlPreview bool // contains filtered or unexported fields }
ListDiscussionsLegacyReq is request data for Client.ListDiscussionsLegacy
https://developer.github.com/v3/teams/discussions/#list-discussions-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListDiscussionsLegacyReq) HTTPRequest ¶
func (r *ListDiscussionsLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*ListDiscussionsLegacyReq) Rel ¶
func (r *ListDiscussionsLegacyReq) Rel(link string, resp *ListDiscussionsLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type ListDiscussionsLegacyResponse ¶
type ListDiscussionsLegacyResponse struct { Data []components.TeamDiscussion // contains filtered or unexported fields }
ListDiscussionsLegacyResponse is a response for ListDiscussionsLegacy
https://developer.github.com/v3/teams/discussions/#list-discussions-legacy
func ListDiscussionsLegacy ¶
func ListDiscussionsLegacy(ctx context.Context, req *ListDiscussionsLegacyReq, opt ...requests.Option) (*ListDiscussionsLegacyResponse, error)
ListDiscussionsLegacy performs requests for "teams/list-discussions-legacy"
List discussions (Legacy).
GET /teams/{team_id}/discussions
https://developer.github.com/v3/teams/discussions/#list-discussions-legacy
func (*ListDiscussionsLegacyResponse) HTTPResponse ¶
func (r *ListDiscussionsLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListDiscussionsLegacyResponse) ReadResponse ¶
func (r *ListDiscussionsLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListForAuthenticatedUserReq ¶
type ListForAuthenticatedUserReq struct { // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListForAuthenticatedUserReq is request data for Client.ListForAuthenticatedUser
https://developer.github.com/v3/teams/#list-teams-for-the-authenticated-user
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListForAuthenticatedUserReq) HTTPRequest ¶
func (r *ListForAuthenticatedUserReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*ListForAuthenticatedUserReq) Rel ¶
func (r *ListForAuthenticatedUserReq) Rel(link string, resp *ListForAuthenticatedUserResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type ListForAuthenticatedUserResponse ¶
type ListForAuthenticatedUserResponse struct { Data []components.TeamFull // contains filtered or unexported fields }
ListForAuthenticatedUserResponse is a response for ListForAuthenticatedUser
https://developer.github.com/v3/teams/#list-teams-for-the-authenticated-user
func ListForAuthenticatedUser ¶
func ListForAuthenticatedUser(ctx context.Context, req *ListForAuthenticatedUserReq, opt ...requests.Option) (*ListForAuthenticatedUserResponse, error)
ListForAuthenticatedUser performs requests for "teams/list-for-authenticated-user"
List teams for the authenticated user.
GET /user/teams
https://developer.github.com/v3/teams/#list-teams-for-the-authenticated-user
func (*ListForAuthenticatedUserResponse) HTTPResponse ¶
func (r *ListForAuthenticatedUserResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListForAuthenticatedUserResponse) ReadResponse ¶
func (r *ListForAuthenticatedUserResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListIdpGroupsForLegacyReq ¶
type ListIdpGroupsForLegacyReq struct { TeamId int64 // contains filtered or unexported fields }
ListIdpGroupsForLegacyReq is request data for Client.ListIdpGroupsForLegacy
https://developer.github.com/v3/teams/team_sync/#list-idp-groups-for-a-team-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListIdpGroupsForLegacyReq) HTTPRequest ¶
func (r *ListIdpGroupsForLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*ListIdpGroupsForLegacyReq) Rel ¶
func (r *ListIdpGroupsForLegacyReq) Rel(link string, resp *ListIdpGroupsForLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type ListIdpGroupsForLegacyResponse ¶
type ListIdpGroupsForLegacyResponse struct { Data components.GroupMapping // contains filtered or unexported fields }
ListIdpGroupsForLegacyResponse is a response for ListIdpGroupsForLegacy
https://developer.github.com/v3/teams/team_sync/#list-idp-groups-for-a-team-legacy
func ListIdpGroupsForLegacy ¶
func ListIdpGroupsForLegacy(ctx context.Context, req *ListIdpGroupsForLegacyReq, opt ...requests.Option) (*ListIdpGroupsForLegacyResponse, error)
ListIdpGroupsForLegacy performs requests for "teams/list-idp-groups-for-legacy"
List IdP groups for a team (Legacy).
GET /teams/{team_id}/team-sync/group-mappings
https://developer.github.com/v3/teams/team_sync/#list-idp-groups-for-a-team-legacy
func (*ListIdpGroupsForLegacyResponse) HTTPResponse ¶
func (r *ListIdpGroupsForLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListIdpGroupsForLegacyResponse) ReadResponse ¶
func (r *ListIdpGroupsForLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListIdpGroupsForOrgReq ¶
type ListIdpGroupsForOrgReq struct { Org string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListIdpGroupsForOrgReq is request data for Client.ListIdpGroupsForOrg
https://developer.github.com/v3/teams/team_sync/#list-idp-groups-for-an-organization
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListIdpGroupsForOrgReq) HTTPRequest ¶
func (r *ListIdpGroupsForOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*ListIdpGroupsForOrgReq) Rel ¶
func (r *ListIdpGroupsForOrgReq) Rel(link string, resp *ListIdpGroupsForOrgResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type ListIdpGroupsForOrgResponse ¶
type ListIdpGroupsForOrgResponse struct { Data components.GroupMapping // contains filtered or unexported fields }
ListIdpGroupsForOrgResponse is a response for ListIdpGroupsForOrg
https://developer.github.com/v3/teams/team_sync/#list-idp-groups-for-an-organization
func ListIdpGroupsForOrg ¶
func ListIdpGroupsForOrg(ctx context.Context, req *ListIdpGroupsForOrgReq, opt ...requests.Option) (*ListIdpGroupsForOrgResponse, error)
ListIdpGroupsForOrg performs requests for "teams/list-idp-groups-for-org"
List IdP groups for an organization.
GET /orgs/{org}/team-sync/groups
https://developer.github.com/v3/teams/team_sync/#list-idp-groups-for-an-organization
func (*ListIdpGroupsForOrgResponse) HTTPResponse ¶
func (r *ListIdpGroupsForOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListIdpGroupsForOrgResponse) ReadResponse ¶
func (r *ListIdpGroupsForOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListIdpGroupsInOrgReq ¶
type ListIdpGroupsInOrgReq struct { Org string // team_slug parameter TeamSlug string // contains filtered or unexported fields }
ListIdpGroupsInOrgReq is request data for Client.ListIdpGroupsInOrg
https://developer.github.com/v3/teams/team_sync/#list-idp-groups-for-a-team
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListIdpGroupsInOrgReq) HTTPRequest ¶
func (r *ListIdpGroupsInOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*ListIdpGroupsInOrgReq) Rel ¶
func (r *ListIdpGroupsInOrgReq) Rel(link string, resp *ListIdpGroupsInOrgResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type ListIdpGroupsInOrgResponse ¶
type ListIdpGroupsInOrgResponse struct { Data components.GroupMapping // contains filtered or unexported fields }
ListIdpGroupsInOrgResponse is a response for ListIdpGroupsInOrg
https://developer.github.com/v3/teams/team_sync/#list-idp-groups-for-a-team
func ListIdpGroupsInOrg ¶
func ListIdpGroupsInOrg(ctx context.Context, req *ListIdpGroupsInOrgReq, opt ...requests.Option) (*ListIdpGroupsInOrgResponse, error)
ListIdpGroupsInOrg performs requests for "teams/list-idp-groups-in-org"
List IdP groups for a team.
GET /orgs/{org}/teams/{team_slug}/team-sync/group-mappings
https://developer.github.com/v3/teams/team_sync/#list-idp-groups-for-a-team
func (*ListIdpGroupsInOrgResponse) HTTPResponse ¶
func (r *ListIdpGroupsInOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListIdpGroupsInOrgResponse) ReadResponse ¶
func (r *ListIdpGroupsInOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListMembersInOrgReq ¶
type ListMembersInOrgReq struct { Org string // team_slug parameter TeamSlug string /* Filters members returned by their role in the team. Can be one of: \* `member` - normal members of the team. \* `maintainer` - team maintainers. \* `all` - all members of the team. */ Role *string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListMembersInOrgReq is request data for Client.ListMembersInOrg
https://developer.github.com/v3/teams/members/#list-team-members
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListMembersInOrgReq) HTTPRequest ¶
func (r *ListMembersInOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*ListMembersInOrgReq) Rel ¶
func (r *ListMembersInOrgReq) Rel(link string, resp *ListMembersInOrgResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type ListMembersInOrgResponse ¶
type ListMembersInOrgResponse struct { Data []components.SimpleUser // contains filtered or unexported fields }
ListMembersInOrgResponse is a response for ListMembersInOrg
https://developer.github.com/v3/teams/members/#list-team-members
func ListMembersInOrg ¶
func ListMembersInOrg(ctx context.Context, req *ListMembersInOrgReq, opt ...requests.Option) (*ListMembersInOrgResponse, error)
ListMembersInOrg performs requests for "teams/list-members-in-org"
List team members.
GET /orgs/{org}/teams/{team_slug}/members
https://developer.github.com/v3/teams/members/#list-team-members
func (*ListMembersInOrgResponse) HTTPResponse ¶
func (r *ListMembersInOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListMembersInOrgResponse) ReadResponse ¶
func (r *ListMembersInOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListMembersLegacyReq ¶
type ListMembersLegacyReq struct { TeamId int64 /* Filters members returned by their role in the team. Can be one of: \* `member` - normal members of the team. \* `maintainer` - team maintainers. \* `all` - all members of the team. */ Role *string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListMembersLegacyReq is request data for Client.ListMembersLegacy
https://developer.github.com/v3/teams/members/#list-team-members-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListMembersLegacyReq) HTTPRequest ¶
func (r *ListMembersLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*ListMembersLegacyReq) Rel ¶
func (r *ListMembersLegacyReq) Rel(link string, resp *ListMembersLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type ListMembersLegacyResponse ¶
type ListMembersLegacyResponse struct { Data []components.SimpleUser // contains filtered or unexported fields }
ListMembersLegacyResponse is a response for ListMembersLegacy
https://developer.github.com/v3/teams/members/#list-team-members-legacy
func ListMembersLegacy ¶
func ListMembersLegacy(ctx context.Context, req *ListMembersLegacyReq, opt ...requests.Option) (*ListMembersLegacyResponse, error)
ListMembersLegacy performs requests for "teams/list-members-legacy"
List team members (Legacy).
GET /teams/{team_id}/members
https://developer.github.com/v3/teams/members/#list-team-members-legacy
func (*ListMembersLegacyResponse) HTTPResponse ¶
func (r *ListMembersLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListMembersLegacyResponse) ReadResponse ¶
func (r *ListMembersLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListPendingInvitationsInOrgReq ¶
type ListPendingInvitationsInOrgReq struct { Org string // team_slug parameter TeamSlug string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListPendingInvitationsInOrgReq is request data for Client.ListPendingInvitationsInOrg
https://developer.github.com/v3/teams/members/#list-pending-team-invitations
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListPendingInvitationsInOrgReq) HTTPRequest ¶
func (r *ListPendingInvitationsInOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*ListPendingInvitationsInOrgReq) Rel ¶
func (r *ListPendingInvitationsInOrgReq) Rel(link string, resp *ListPendingInvitationsInOrgResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type ListPendingInvitationsInOrgResponse ¶
type ListPendingInvitationsInOrgResponse struct { Data []components.OrganizationInvitation // contains filtered or unexported fields }
ListPendingInvitationsInOrgResponse is a response for ListPendingInvitationsInOrg
https://developer.github.com/v3/teams/members/#list-pending-team-invitations
func ListPendingInvitationsInOrg ¶
func ListPendingInvitationsInOrg(ctx context.Context, req *ListPendingInvitationsInOrgReq, opt ...requests.Option) (*ListPendingInvitationsInOrgResponse, error)
ListPendingInvitationsInOrg performs requests for "teams/list-pending-invitations-in-org"
List pending team invitations.
GET /orgs/{org}/teams/{team_slug}/invitations
https://developer.github.com/v3/teams/members/#list-pending-team-invitations
func (*ListPendingInvitationsInOrgResponse) HTTPResponse ¶
func (r *ListPendingInvitationsInOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListPendingInvitationsInOrgResponse) ReadResponse ¶
func (r *ListPendingInvitationsInOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListPendingInvitationsLegacyReq ¶
type ListPendingInvitationsLegacyReq struct { TeamId int64 // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListPendingInvitationsLegacyReq is request data for Client.ListPendingInvitationsLegacy
https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListPendingInvitationsLegacyReq) HTTPRequest ¶
func (r *ListPendingInvitationsLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*ListPendingInvitationsLegacyReq) Rel ¶
func (r *ListPendingInvitationsLegacyReq) Rel(link string, resp *ListPendingInvitationsLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type ListPendingInvitationsLegacyResponse ¶
type ListPendingInvitationsLegacyResponse struct { Data []components.OrganizationInvitation // contains filtered or unexported fields }
ListPendingInvitationsLegacyResponse is a response for ListPendingInvitationsLegacy
https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy
func ListPendingInvitationsLegacy ¶
func ListPendingInvitationsLegacy(ctx context.Context, req *ListPendingInvitationsLegacyReq, opt ...requests.Option) (*ListPendingInvitationsLegacyResponse, error)
ListPendingInvitationsLegacy performs requests for "teams/list-pending-invitations-legacy"
List pending team invitations (Legacy).
GET /teams/{team_id}/invitations
https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy
func (*ListPendingInvitationsLegacyResponse) HTTPResponse ¶
func (r *ListPendingInvitationsLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListPendingInvitationsLegacyResponse) ReadResponse ¶
func (r *ListPendingInvitationsLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListProjectsInOrgReq ¶
type ListProjectsInOrgReq struct { Org string // team_slug parameter TeamSlug string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 /* The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must set this to true. */ InertiaPreview bool // contains filtered or unexported fields }
ListProjectsInOrgReq is request data for Client.ListProjectsInOrg
https://developer.github.com/v3/teams/#list-team-projects
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListProjectsInOrgReq) HTTPRequest ¶
func (r *ListProjectsInOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*ListProjectsInOrgReq) Rel ¶
func (r *ListProjectsInOrgReq) Rel(link string, resp *ListProjectsInOrgResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type ListProjectsInOrgResponse ¶
type ListProjectsInOrgResponse struct { Data []components.TeamProject // contains filtered or unexported fields }
ListProjectsInOrgResponse is a response for ListProjectsInOrg
https://developer.github.com/v3/teams/#list-team-projects
func ListProjectsInOrg ¶
func ListProjectsInOrg(ctx context.Context, req *ListProjectsInOrgReq, opt ...requests.Option) (*ListProjectsInOrgResponse, error)
ListProjectsInOrg performs requests for "teams/list-projects-in-org"
List team projects.
GET /orgs/{org}/teams/{team_slug}/projects
func (*ListProjectsInOrgResponse) HTTPResponse ¶
func (r *ListProjectsInOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListProjectsInOrgResponse) ReadResponse ¶
func (r *ListProjectsInOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListProjectsLegacyReq ¶
type ListProjectsLegacyReq struct { TeamId int64 // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 /* The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must set this to true. */ InertiaPreview bool // contains filtered or unexported fields }
ListProjectsLegacyReq is request data for Client.ListProjectsLegacy
https://developer.github.com/v3/teams/#list-team-projects-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListProjectsLegacyReq) HTTPRequest ¶
func (r *ListProjectsLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*ListProjectsLegacyReq) Rel ¶
func (r *ListProjectsLegacyReq) Rel(link string, resp *ListProjectsLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type ListProjectsLegacyResponse ¶
type ListProjectsLegacyResponse struct { Data []components.TeamProject // contains filtered or unexported fields }
ListProjectsLegacyResponse is a response for ListProjectsLegacy
https://developer.github.com/v3/teams/#list-team-projects-legacy
func ListProjectsLegacy ¶
func ListProjectsLegacy(ctx context.Context, req *ListProjectsLegacyReq, opt ...requests.Option) (*ListProjectsLegacyResponse, error)
ListProjectsLegacy performs requests for "teams/list-projects-legacy"
List team projects (Legacy).
GET /teams/{team_id}/projects
https://developer.github.com/v3/teams/#list-team-projects-legacy
func (*ListProjectsLegacyResponse) HTTPResponse ¶
func (r *ListProjectsLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListProjectsLegacyResponse) ReadResponse ¶
func (r *ListProjectsLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListReposInOrgReq ¶
type ListReposInOrgReq struct { Org string // team_slug parameter TeamSlug string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListReposInOrgReq is request data for Client.ListReposInOrg
https://developer.github.com/v3/teams/#list-team-repositories
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListReposInOrgReq) HTTPRequest ¶
func (r *ListReposInOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*ListReposInOrgReq) Rel ¶
func (r *ListReposInOrgReq) Rel(link string, resp *ListReposInOrgResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type ListReposInOrgResponse ¶
type ListReposInOrgResponse struct { Data []components.MinimalRepository // contains filtered or unexported fields }
ListReposInOrgResponse is a response for ListReposInOrg
https://developer.github.com/v3/teams/#list-team-repositories
func ListReposInOrg ¶
func ListReposInOrg(ctx context.Context, req *ListReposInOrgReq, opt ...requests.Option) (*ListReposInOrgResponse, error)
ListReposInOrg performs requests for "teams/list-repos-in-org"
List team repositories.
GET /orgs/{org}/teams/{team_slug}/repos
https://developer.github.com/v3/teams/#list-team-repositories
func (*ListReposInOrgResponse) HTTPResponse ¶
func (r *ListReposInOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListReposInOrgResponse) ReadResponse ¶
func (r *ListReposInOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListReposLegacyReq ¶
type ListReposLegacyReq struct { TeamId int64 // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListReposLegacyReq is request data for Client.ListReposLegacy
https://developer.github.com/v3/teams/#list-team-repositories-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListReposLegacyReq) HTTPRequest ¶
func (r *ListReposLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*ListReposLegacyReq) Rel ¶
func (r *ListReposLegacyReq) Rel(link string, resp *ListReposLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type ListReposLegacyResponse ¶
type ListReposLegacyResponse struct { Data []components.MinimalRepository // contains filtered or unexported fields }
ListReposLegacyResponse is a response for ListReposLegacy
https://developer.github.com/v3/teams/#list-team-repositories-legacy
func ListReposLegacy ¶
func ListReposLegacy(ctx context.Context, req *ListReposLegacyReq, opt ...requests.Option) (*ListReposLegacyResponse, error)
ListReposLegacy performs requests for "teams/list-repos-legacy"
List team repositories (Legacy).
GET /teams/{team_id}/repos
https://developer.github.com/v3/teams/#list-team-repositories-legacy
func (*ListReposLegacyResponse) HTTPResponse ¶
func (r *ListReposLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListReposLegacyResponse) ReadResponse ¶
func (r *ListReposLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type ListReq ¶
type ListReq struct { Org string // Results per page (max 100) PerPage *int64 // Page number of the results to fetch. Page *int64 // contains filtered or unexported fields }
ListReq is request data for Client.List
https://developer.github.com/v3/teams/#list-teams
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*ListReq) HTTPRequest ¶
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
type ListResponse ¶
type ListResponse struct { Data []components.Team // contains filtered or unexported fields }
ListResponse is a response for List
https://developer.github.com/v3/teams/#list-teams
func (*ListResponse) HTTPResponse ¶
func (r *ListResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*ListResponse) ReadResponse ¶
func (r *ListResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type RemoveMemberLegacyReq ¶
type RemoveMemberLegacyReq struct { TeamId int64 Username string // contains filtered or unexported fields }
RemoveMemberLegacyReq is request data for Client.RemoveMemberLegacy
https://developer.github.com/v3/teams/members/#remove-team-member-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*RemoveMemberLegacyReq) HTTPRequest ¶
func (r *RemoveMemberLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*RemoveMemberLegacyReq) Rel ¶
func (r *RemoveMemberLegacyReq) Rel(link string, resp *RemoveMemberLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type RemoveMemberLegacyResponse ¶
type RemoveMemberLegacyResponse struct { Data bool // contains filtered or unexported fields }
RemoveMemberLegacyResponse is a response for RemoveMemberLegacy
https://developer.github.com/v3/teams/members/#remove-team-member-legacy
func RemoveMemberLegacy ¶
func RemoveMemberLegacy(ctx context.Context, req *RemoveMemberLegacyReq, opt ...requests.Option) (*RemoveMemberLegacyResponse, error)
RemoveMemberLegacy performs requests for "teams/remove-member-legacy"
Remove team member (Legacy).
DELETE /teams/{team_id}/members/{username}
https://developer.github.com/v3/teams/members/#remove-team-member-legacy
func (*RemoveMemberLegacyResponse) HTTPResponse ¶
func (r *RemoveMemberLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*RemoveMemberLegacyResponse) ReadResponse ¶
func (r *RemoveMemberLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type RemoveMembershipForUserInOrgReq ¶
type RemoveMembershipForUserInOrgReq struct { Org string // team_slug parameter TeamSlug string Username string // contains filtered or unexported fields }
RemoveMembershipForUserInOrgReq is request data for Client.RemoveMembershipForUserInOrg
https://developer.github.com/v3/teams/members/#remove-team-membership-for-a-user
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*RemoveMembershipForUserInOrgReq) HTTPRequest ¶
func (r *RemoveMembershipForUserInOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*RemoveMembershipForUserInOrgReq) Rel ¶
func (r *RemoveMembershipForUserInOrgReq) Rel(link string, resp *RemoveMembershipForUserInOrgResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type RemoveMembershipForUserInOrgResponse ¶
type RemoveMembershipForUserInOrgResponse struct {
// contains filtered or unexported fields
}
RemoveMembershipForUserInOrgResponse is a response for RemoveMembershipForUserInOrg
https://developer.github.com/v3/teams/members/#remove-team-membership-for-a-user
func RemoveMembershipForUserInOrg ¶
func RemoveMembershipForUserInOrg(ctx context.Context, req *RemoveMembershipForUserInOrgReq, opt ...requests.Option) (*RemoveMembershipForUserInOrgResponse, error)
RemoveMembershipForUserInOrg performs requests for "teams/remove-membership-for-user-in-org"
Remove team membership for a user.
DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}
https://developer.github.com/v3/teams/members/#remove-team-membership-for-a-user
func (*RemoveMembershipForUserInOrgResponse) HTTPResponse ¶
func (r *RemoveMembershipForUserInOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*RemoveMembershipForUserInOrgResponse) ReadResponse ¶
func (r *RemoveMembershipForUserInOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type RemoveMembershipForUserLegacyReq ¶
type RemoveMembershipForUserLegacyReq struct { TeamId int64 Username string // contains filtered or unexported fields }
RemoveMembershipForUserLegacyReq is request data for Client.RemoveMembershipForUserLegacy
https://developer.github.com/v3/teams/members/#remove-team-membership-for-a-user-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*RemoveMembershipForUserLegacyReq) HTTPRequest ¶
func (r *RemoveMembershipForUserLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*RemoveMembershipForUserLegacyReq) Rel ¶
func (r *RemoveMembershipForUserLegacyReq) Rel(link string, resp *RemoveMembershipForUserLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type RemoveMembershipForUserLegacyResponse ¶
type RemoveMembershipForUserLegacyResponse struct {
// contains filtered or unexported fields
}
RemoveMembershipForUserLegacyResponse is a response for RemoveMembershipForUserLegacy
https://developer.github.com/v3/teams/members/#remove-team-membership-for-a-user-legacy
func RemoveMembershipForUserLegacy ¶
func RemoveMembershipForUserLegacy(ctx context.Context, req *RemoveMembershipForUserLegacyReq, opt ...requests.Option) (*RemoveMembershipForUserLegacyResponse, error)
RemoveMembershipForUserLegacy performs requests for "teams/remove-membership-for-user-legacy"
Remove team membership for a user (Legacy).
DELETE /teams/{team_id}/memberships/{username}
https://developer.github.com/v3/teams/members/#remove-team-membership-for-a-user-legacy
func (*RemoveMembershipForUserLegacyResponse) HTTPResponse ¶
func (r *RemoveMembershipForUserLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*RemoveMembershipForUserLegacyResponse) ReadResponse ¶
func (r *RemoveMembershipForUserLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type RemoveProjectInOrgReq ¶
type RemoveProjectInOrgReq struct { Org string // team_slug parameter TeamSlug string ProjectId int64 // contains filtered or unexported fields }
RemoveProjectInOrgReq is request data for Client.RemoveProjectInOrg
https://developer.github.com/v3/teams/#remove-a-project-from-a-team
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*RemoveProjectInOrgReq) HTTPRequest ¶
func (r *RemoveProjectInOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*RemoveProjectInOrgReq) Rel ¶
func (r *RemoveProjectInOrgReq) Rel(link string, resp *RemoveProjectInOrgResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type RemoveProjectInOrgResponse ¶
type RemoveProjectInOrgResponse struct {
// contains filtered or unexported fields
}
RemoveProjectInOrgResponse is a response for RemoveProjectInOrg
https://developer.github.com/v3/teams/#remove-a-project-from-a-team
func RemoveProjectInOrg ¶
func RemoveProjectInOrg(ctx context.Context, req *RemoveProjectInOrgReq, opt ...requests.Option) (*RemoveProjectInOrgResponse, error)
RemoveProjectInOrg performs requests for "teams/remove-project-in-org"
Remove a project from a team.
DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}
https://developer.github.com/v3/teams/#remove-a-project-from-a-team
func (*RemoveProjectInOrgResponse) HTTPResponse ¶
func (r *RemoveProjectInOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*RemoveProjectInOrgResponse) ReadResponse ¶
func (r *RemoveProjectInOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type RemoveProjectLegacyReq ¶
type RemoveProjectLegacyReq struct { TeamId int64 ProjectId int64 // contains filtered or unexported fields }
RemoveProjectLegacyReq is request data for Client.RemoveProjectLegacy
https://developer.github.com/v3/teams/#remove-a-project-from-a-team-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*RemoveProjectLegacyReq) HTTPRequest ¶
func (r *RemoveProjectLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*RemoveProjectLegacyReq) Rel ¶
func (r *RemoveProjectLegacyReq) Rel(link string, resp *RemoveProjectLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type RemoveProjectLegacyResponse ¶
type RemoveProjectLegacyResponse struct {
// contains filtered or unexported fields
}
RemoveProjectLegacyResponse is a response for RemoveProjectLegacy
https://developer.github.com/v3/teams/#remove-a-project-from-a-team-legacy
func RemoveProjectLegacy ¶
func RemoveProjectLegacy(ctx context.Context, req *RemoveProjectLegacyReq, opt ...requests.Option) (*RemoveProjectLegacyResponse, error)
RemoveProjectLegacy performs requests for "teams/remove-project-legacy"
Remove a project from a team (Legacy).
DELETE /teams/{team_id}/projects/{project_id}
https://developer.github.com/v3/teams/#remove-a-project-from-a-team-legacy
func (*RemoveProjectLegacyResponse) HTTPResponse ¶
func (r *RemoveProjectLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*RemoveProjectLegacyResponse) ReadResponse ¶
func (r *RemoveProjectLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type RemoveRepoInOrgReq ¶
type RemoveRepoInOrgReq struct { Org string // team_slug parameter TeamSlug string Owner string Repo string // contains filtered or unexported fields }
RemoveRepoInOrgReq is request data for Client.RemoveRepoInOrg
https://developer.github.com/v3/teams/#remove-a-repository-from-a-team
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*RemoveRepoInOrgReq) HTTPRequest ¶
func (r *RemoveRepoInOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*RemoveRepoInOrgReq) Rel ¶
func (r *RemoveRepoInOrgReq) Rel(link string, resp *RemoveRepoInOrgResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type RemoveRepoInOrgResponse ¶
type RemoveRepoInOrgResponse struct {
// contains filtered or unexported fields
}
RemoveRepoInOrgResponse is a response for RemoveRepoInOrg
https://developer.github.com/v3/teams/#remove-a-repository-from-a-team
func RemoveRepoInOrg ¶
func RemoveRepoInOrg(ctx context.Context, req *RemoveRepoInOrgReq, opt ...requests.Option) (*RemoveRepoInOrgResponse, error)
RemoveRepoInOrg performs requests for "teams/remove-repo-in-org"
Remove a repository from a team.
DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}
https://developer.github.com/v3/teams/#remove-a-repository-from-a-team
func (*RemoveRepoInOrgResponse) HTTPResponse ¶
func (r *RemoveRepoInOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*RemoveRepoInOrgResponse) ReadResponse ¶
func (r *RemoveRepoInOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type RemoveRepoLegacyReq ¶
type RemoveRepoLegacyReq struct { TeamId int64 Owner string Repo string // contains filtered or unexported fields }
RemoveRepoLegacyReq is request data for Client.RemoveRepoLegacy
https://developer.github.com/v3/teams/#remove-a-repository-from-a-team-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*RemoveRepoLegacyReq) HTTPRequest ¶
func (r *RemoveRepoLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*RemoveRepoLegacyReq) Rel ¶
func (r *RemoveRepoLegacyReq) Rel(link string, resp *RemoveRepoLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type RemoveRepoLegacyResponse ¶
type RemoveRepoLegacyResponse struct {
// contains filtered or unexported fields
}
RemoveRepoLegacyResponse is a response for RemoveRepoLegacy
https://developer.github.com/v3/teams/#remove-a-repository-from-a-team-legacy
func RemoveRepoLegacy ¶
func RemoveRepoLegacy(ctx context.Context, req *RemoveRepoLegacyReq, opt ...requests.Option) (*RemoveRepoLegacyResponse, error)
RemoveRepoLegacy performs requests for "teams/remove-repo-legacy"
Remove a repository from a team (Legacy).
DELETE /teams/{team_id}/repos/{owner}/{repo}
https://developer.github.com/v3/teams/#remove-a-repository-from-a-team-legacy
func (*RemoveRepoLegacyResponse) HTTPResponse ¶
func (r *RemoveRepoLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*RemoveRepoLegacyResponse) ReadResponse ¶
func (r *RemoveRepoLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type UpdateDiscussionCommentInOrgReq ¶
type UpdateDiscussionCommentInOrgReq struct { Org string // team_slug parameter TeamSlug string DiscussionNumber int64 CommentNumber int64 RequestBody UpdateDiscussionCommentInOrgReqBody /* An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details. To access the API you must set this to true. */ SquirrelGirlPreview bool // contains filtered or unexported fields }
UpdateDiscussionCommentInOrgReq is request data for Client.UpdateDiscussionCommentInOrg
https://developer.github.com/v3/teams/discussion_comments/#update-a-discussion-comment
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*UpdateDiscussionCommentInOrgReq) HTTPRequest ¶
func (r *UpdateDiscussionCommentInOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*UpdateDiscussionCommentInOrgReq) Rel ¶
func (r *UpdateDiscussionCommentInOrgReq) Rel(link string, resp *UpdateDiscussionCommentInOrgResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type UpdateDiscussionCommentInOrgReqBody ¶
type UpdateDiscussionCommentInOrgReqBody struct { // The discussion comment's body text. Body *string `json:"body"` }
UpdateDiscussionCommentInOrgReqBody is a request body for teams/update-discussion-comment-in-org
https://developer.github.com/v3/teams/discussion_comments/#update-a-discussion-comment
type UpdateDiscussionCommentInOrgResponse ¶
type UpdateDiscussionCommentInOrgResponse struct { Data components.TeamDiscussionComment // contains filtered or unexported fields }
UpdateDiscussionCommentInOrgResponse is a response for UpdateDiscussionCommentInOrg
https://developer.github.com/v3/teams/discussion_comments/#update-a-discussion-comment
func UpdateDiscussionCommentInOrg ¶
func UpdateDiscussionCommentInOrg(ctx context.Context, req *UpdateDiscussionCommentInOrgReq, opt ...requests.Option) (*UpdateDiscussionCommentInOrgResponse, error)
UpdateDiscussionCommentInOrg performs requests for "teams/update-discussion-comment-in-org"
Update a discussion comment.
PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}
https://developer.github.com/v3/teams/discussion_comments/#update-a-discussion-comment
func (*UpdateDiscussionCommentInOrgResponse) HTTPResponse ¶
func (r *UpdateDiscussionCommentInOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*UpdateDiscussionCommentInOrgResponse) ReadResponse ¶
func (r *UpdateDiscussionCommentInOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type UpdateDiscussionCommentLegacyReq ¶
type UpdateDiscussionCommentLegacyReq struct { TeamId int64 DiscussionNumber int64 CommentNumber int64 RequestBody UpdateDiscussionCommentLegacyReqBody /* An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details. To access the API you must set this to true. */ SquirrelGirlPreview bool // contains filtered or unexported fields }
UpdateDiscussionCommentLegacyReq is request data for Client.UpdateDiscussionCommentLegacy
https://developer.github.com/v3/teams/discussion_comments/#update-a-discussion-comment-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*UpdateDiscussionCommentLegacyReq) HTTPRequest ¶
func (r *UpdateDiscussionCommentLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*UpdateDiscussionCommentLegacyReq) Rel ¶
func (r *UpdateDiscussionCommentLegacyReq) Rel(link string, resp *UpdateDiscussionCommentLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type UpdateDiscussionCommentLegacyReqBody ¶
type UpdateDiscussionCommentLegacyReqBody struct { // The discussion comment's body text. Body *string `json:"body"` }
UpdateDiscussionCommentLegacyReqBody is a request body for teams/update-discussion-comment-legacy
https://developer.github.com/v3/teams/discussion_comments/#update-a-discussion-comment-legacy
type UpdateDiscussionCommentLegacyResponse ¶
type UpdateDiscussionCommentLegacyResponse struct { Data components.TeamDiscussionComment // contains filtered or unexported fields }
UpdateDiscussionCommentLegacyResponse is a response for UpdateDiscussionCommentLegacy
https://developer.github.com/v3/teams/discussion_comments/#update-a-discussion-comment-legacy
func UpdateDiscussionCommentLegacy ¶
func UpdateDiscussionCommentLegacy(ctx context.Context, req *UpdateDiscussionCommentLegacyReq, opt ...requests.Option) (*UpdateDiscussionCommentLegacyResponse, error)
UpdateDiscussionCommentLegacy performs requests for "teams/update-discussion-comment-legacy"
Update a discussion comment (Legacy).
PATCH /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}
https://developer.github.com/v3/teams/discussion_comments/#update-a-discussion-comment-legacy
func (*UpdateDiscussionCommentLegacyResponse) HTTPResponse ¶
func (r *UpdateDiscussionCommentLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*UpdateDiscussionCommentLegacyResponse) ReadResponse ¶
func (r *UpdateDiscussionCommentLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type UpdateDiscussionInOrgReq ¶
type UpdateDiscussionInOrgReq struct { Org string // team_slug parameter TeamSlug string DiscussionNumber int64 RequestBody UpdateDiscussionInOrgReqBody /* An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details. To access the API you must set this to true. */ SquirrelGirlPreview bool // contains filtered or unexported fields }
UpdateDiscussionInOrgReq is request data for Client.UpdateDiscussionInOrg
https://developer.github.com/v3/teams/discussions/#update-a-discussion
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*UpdateDiscussionInOrgReq) HTTPRequest ¶
func (r *UpdateDiscussionInOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*UpdateDiscussionInOrgReq) Rel ¶
func (r *UpdateDiscussionInOrgReq) Rel(link string, resp *UpdateDiscussionInOrgResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type UpdateDiscussionInOrgReqBody ¶
type UpdateDiscussionInOrgReqBody struct { // The discussion post's body text. Body *string `json:"body,omitempty"` // The discussion post's title. Title *string `json:"title,omitempty"` }
UpdateDiscussionInOrgReqBody is a request body for teams/update-discussion-in-org
https://developer.github.com/v3/teams/discussions/#update-a-discussion
type UpdateDiscussionInOrgResponse ¶
type UpdateDiscussionInOrgResponse struct { Data components.TeamDiscussion // contains filtered or unexported fields }
UpdateDiscussionInOrgResponse is a response for UpdateDiscussionInOrg
https://developer.github.com/v3/teams/discussions/#update-a-discussion
func UpdateDiscussionInOrg ¶
func UpdateDiscussionInOrg(ctx context.Context, req *UpdateDiscussionInOrgReq, opt ...requests.Option) (*UpdateDiscussionInOrgResponse, error)
UpdateDiscussionInOrg performs requests for "teams/update-discussion-in-org"
Update a discussion.
PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}
https://developer.github.com/v3/teams/discussions/#update-a-discussion
func (*UpdateDiscussionInOrgResponse) HTTPResponse ¶
func (r *UpdateDiscussionInOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*UpdateDiscussionInOrgResponse) ReadResponse ¶
func (r *UpdateDiscussionInOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type UpdateDiscussionLegacyReq ¶
type UpdateDiscussionLegacyReq struct { TeamId int64 DiscussionNumber int64 RequestBody UpdateDiscussionLegacyReqBody /* An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details. To access the API you must set this to true. */ SquirrelGirlPreview bool // contains filtered or unexported fields }
UpdateDiscussionLegacyReq is request data for Client.UpdateDiscussionLegacy
https://developer.github.com/v3/teams/discussions/#update-a-discussion-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*UpdateDiscussionLegacyReq) HTTPRequest ¶
func (r *UpdateDiscussionLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*UpdateDiscussionLegacyReq) Rel ¶
func (r *UpdateDiscussionLegacyReq) Rel(link string, resp *UpdateDiscussionLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type UpdateDiscussionLegacyReqBody ¶
type UpdateDiscussionLegacyReqBody struct { // The discussion post's body text. Body *string `json:"body,omitempty"` // The discussion post's title. Title *string `json:"title,omitempty"` }
UpdateDiscussionLegacyReqBody is a request body for teams/update-discussion-legacy
https://developer.github.com/v3/teams/discussions/#update-a-discussion-legacy
type UpdateDiscussionLegacyResponse ¶
type UpdateDiscussionLegacyResponse struct { Data components.TeamDiscussion // contains filtered or unexported fields }
UpdateDiscussionLegacyResponse is a response for UpdateDiscussionLegacy
https://developer.github.com/v3/teams/discussions/#update-a-discussion-legacy
func UpdateDiscussionLegacy ¶
func UpdateDiscussionLegacy(ctx context.Context, req *UpdateDiscussionLegacyReq, opt ...requests.Option) (*UpdateDiscussionLegacyResponse, error)
UpdateDiscussionLegacy performs requests for "teams/update-discussion-legacy"
Update a discussion (Legacy).
PATCH /teams/{team_id}/discussions/{discussion_number}
https://developer.github.com/v3/teams/discussions/#update-a-discussion-legacy
func (*UpdateDiscussionLegacyResponse) HTTPResponse ¶
func (r *UpdateDiscussionLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*UpdateDiscussionLegacyResponse) ReadResponse ¶
func (r *UpdateDiscussionLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type UpdateInOrgReq ¶
type UpdateInOrgReq struct { Org string // team_slug parameter TeamSlug string RequestBody UpdateInOrgReqBody // contains filtered or unexported fields }
UpdateInOrgReq is request data for Client.UpdateInOrg
https://developer.github.com/v3/teams/#update-a-team
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*UpdateInOrgReq) HTTPRequest ¶
func (r *UpdateInOrgReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*UpdateInOrgReq) Rel ¶
func (r *UpdateInOrgReq) Rel(link string, resp *UpdateInOrgResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type UpdateInOrgReqBody ¶
type UpdateInOrgReqBody struct { // The description of the team. Description *string `json:"description,omitempty"` // The name of the team. Name *string `json:"name"` // The ID of a team to set as the parent team. ParentTeamId *int64 `json:"parent_team_id,omitempty"` /* **Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of: \* `pull` - team members can pull, but not push to or administer newly-added repositories. \* `push` - team members can pull and push, but not administer newly-added repositories. \* `admin` - team members can pull, push and administer newly-added repositories. */ Permission *string `json:"permission,omitempty"` /* The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: **For a non-nested team:** \* `secret` - only visible to organization owners and members of this team. \* `closed` - visible to all members of this organization. **For a parent or child team:** \* `closed` - visible to all members of this organization. */ Privacy *string `json:"privacy,omitempty"` }
UpdateInOrgReqBody is a request body for teams/update-in-org
type UpdateInOrgResponse ¶
type UpdateInOrgResponse struct { Data components.TeamFull // contains filtered or unexported fields }
UpdateInOrgResponse is a response for UpdateInOrg
https://developer.github.com/v3/teams/#update-a-team
func UpdateInOrg ¶
func UpdateInOrg(ctx context.Context, req *UpdateInOrgReq, opt ...requests.Option) (*UpdateInOrgResponse, error)
UpdateInOrg performs requests for "teams/update-in-org"
Update a team.
PATCH /orgs/{org}/teams/{team_slug}
func (*UpdateInOrgResponse) HTTPResponse ¶
func (r *UpdateInOrgResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*UpdateInOrgResponse) ReadResponse ¶
func (r *UpdateInOrgResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.
type UpdateLegacyReq ¶
type UpdateLegacyReq struct { TeamId int64 RequestBody UpdateLegacyReqBody // contains filtered or unexported fields }
UpdateLegacyReq is request data for Client.UpdateLegacy
https://developer.github.com/v3/teams/#update-a-team-legacy
Non-nil errors will have the type *requests.RequestError, octo.ResponseError or url.Error.
func (*UpdateLegacyReq) HTTPRequest ¶
func (r *UpdateLegacyReq) HTTPRequest(ctx context.Context, opt ...requests.Option) (*http.Request, error)
HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.
func (*UpdateLegacyReq) Rel ¶
func (r *UpdateLegacyReq) Rel(link string, resp *UpdateLegacyResponse) bool
Rel updates this request to point to a relative link from resp. Returns false if the link does not exist. Handy for paging.
type UpdateLegacyReqBody ¶
type UpdateLegacyReqBody struct { // The description of the team. Description *string `json:"description,omitempty"` // The name of the team. Name *string `json:"name"` // The ID of a team to set as the parent team. ParentTeamId *int64 `json:"parent_team_id,omitempty"` /* **Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of: \* `pull` - team members can pull, but not push to or administer newly-added repositories. \* `push` - team members can pull and push, but not administer newly-added repositories. \* `admin` - team members can pull, push and administer newly-added repositories. */ Permission *string `json:"permission,omitempty"` /* The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: **For a non-nested team:** \* `secret` - only visible to organization owners and members of this team. \* `closed` - visible to all members of this organization. **For a parent or child team:** \* `closed` - visible to all members of this organization. */ Privacy *string `json:"privacy,omitempty"` }
UpdateLegacyReqBody is a request body for teams/update-legacy
type UpdateLegacyResponse ¶
type UpdateLegacyResponse struct { Data components.TeamFull // contains filtered or unexported fields }
UpdateLegacyResponse is a response for UpdateLegacy
https://developer.github.com/v3/teams/#update-a-team-legacy
func UpdateLegacy ¶
func UpdateLegacy(ctx context.Context, req *UpdateLegacyReq, opt ...requests.Option) (*UpdateLegacyResponse, error)
UpdateLegacy performs requests for "teams/update-legacy"
Update a team (Legacy).
PATCH /teams/{team_id}
func (*UpdateLegacyResponse) HTTPResponse ¶
func (r *UpdateLegacyResponse) HTTPResponse() *http.Response
HTTPResponse returns the *http.Response
func (*UpdateLegacyResponse) ReadResponse ¶
func (r *UpdateLegacyResponse) ReadResponse(resp *http.Response) error
ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.