teams

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

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

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*AddOrUpdateMembershipForUserInOrgReq) Rel

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

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

HTTPResponse returns the *http.Response

func (*AddOrUpdateMembershipForUserInOrgResponse) ReadResponse

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

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*AddOrUpdateMembershipForUserLegacyReq) Rel

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

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

HTTPResponse returns the *http.Response

func (*AddOrUpdateMembershipForUserLegacyResponse) ReadResponse

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

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*AddOrUpdateProjectPermissionsInOrgReq) Rel

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

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

HTTPResponse returns the *http.Response

func (*AddOrUpdateProjectPermissionsInOrgResponse) ReadResponse

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

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*AddOrUpdateProjectPermissionsLegacyReq) Rel

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

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

HTTPResponse returns the *http.Response

func (*AddOrUpdateProjectPermissionsLegacyResponse) ReadResponse

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

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*AddOrUpdateRepoPermissionsInOrgReq) Rel

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

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

HTTPResponse returns the *http.Response

func (*AddOrUpdateRepoPermissionsInOrgResponse) ReadResponse

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

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*AddOrUpdateRepoPermissionsLegacyReq) Rel

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

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

HTTPResponse returns the *http.Response

func (*AddOrUpdateRepoPermissionsLegacyResponse) ReadResponse

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

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*CheckPermissionsForProjectInOrgReq) Rel

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

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

HTTPResponse returns the *http.Response

func (*CheckPermissionsForProjectInOrgResponse) ReadResponse

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

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*CheckPermissionsForProjectLegacyReq) Rel

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

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

HTTPResponse returns the *http.Response

func (*CheckPermissionsForProjectLegacyResponse) ReadResponse

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

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*CheckPermissionsForRepoInOrgReq) Rel

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

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

HTTPResponse returns the *http.Response

func (*CheckPermissionsForRepoInOrgResponse) ReadResponse

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

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*CheckPermissionsForRepoLegacyReq) Rel

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

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

HTTPResponse returns the *http.Response

func (*CheckPermissionsForRepoLegacyResponse) ReadResponse

ReadResponse reads an *http.Response. Non-nil errors will have the type octo.ResponseError.

type Client

type Client []requests.Option

Client is a set of options to apply to requests

func NewClient

func NewClient(opt ...requests.Option) Client

NewClient returns a new Client

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*CreateDiscussionCommentInOrgReq) Rel

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

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

HTTPResponse returns the *http.Response

func (*CreateDiscussionCommentInOrgResponse) ReadResponse

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

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*CreateDiscussionCommentLegacyReq) Rel

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

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

HTTPResponse returns the *http.Response

func (*CreateDiscussionCommentLegacyResponse) ReadResponse

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

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

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

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*CreateOrUpdateIdpGroupConnectionsInOrgReq) Rel

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

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

HTTPResponse returns the *http.Response

func (*CreateOrUpdateIdpGroupConnectionsInOrgResponse) ReadResponse

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

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*CreateOrUpdateIdpGroupConnectionsLegacyReq) Rel

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

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

HTTPResponse returns the *http.Response

func (*CreateOrUpdateIdpGroupConnectionsLegacyResponse) ReadResponse

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

func (r *CreateReq) 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 (*CreateReq) Rel

func (r *CreateReq) Rel(link string, resp *CreateResponse) 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 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

https://developer.github.com/v3/teams/#create-a-team

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 Create

func 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

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

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*DeleteDiscussionCommentInOrgReq) Rel

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

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

HTTPResponse returns the *http.Response

func (*DeleteDiscussionCommentInOrgResponse) ReadResponse

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

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*DeleteDiscussionCommentLegacyReq) Rel

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

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

HTTPResponse returns the *http.Response

func (*DeleteDiscussionCommentLegacyResponse) ReadResponse

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

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

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}

https://developer.github.com/v3/teams/#delete-a-team

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}

https://developer.github.com/v3/teams/#delete-a-team-legacy

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}

https://developer.github.com/v3/teams/#get-a-team-by-name

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

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

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

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*GetDiscussionCommentLegacyReq) Rel

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

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

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

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

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}

https://developer.github.com/v3/teams/#get-a-team-legacy

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

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

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

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

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*GetMembershipForUserLegacyReq) Rel

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

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

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

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

https://developer.github.com/v3/teams/#list-child-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

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

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListDiscussionCommentsInOrgReq) Rel

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

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

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

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListDiscussionCommentsLegacyReq) Rel

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

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

HTTPResponse returns the *http.Response

func (*ListDiscussionCommentsLegacyResponse) ReadResponse

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

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

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

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

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

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

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

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

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

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

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListPendingInvitationsInOrgReq) Rel

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

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

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

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*ListPendingInvitationsLegacyReq) Rel

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

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

HTTPResponse returns the *http.Response

func (*ListPendingInvitationsLegacyResponse) ReadResponse

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

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

https://developer.github.com/v3/teams/#list-team-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

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

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

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

func (r *ListReq) 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 (*ListReq) Rel

func (r *ListReq) Rel(link string, resp *ListResponse) 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 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 List

func 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

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

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

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*RemoveMembershipForUserInOrgReq) Rel

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

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

HTTPResponse returns the *http.Response

func (*RemoveMembershipForUserInOrgResponse) ReadResponse

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

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*RemoveMembershipForUserLegacyReq) Rel

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

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

HTTPResponse returns the *http.Response

func (*RemoveMembershipForUserLegacyResponse) ReadResponse

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

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

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

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

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

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*UpdateDiscussionCommentInOrgReq) Rel

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

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

HTTPResponse returns the *http.Response

func (*UpdateDiscussionCommentInOrgResponse) ReadResponse

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

HTTPRequest builds an *http.Request. Non-nil errors will have the type *requests.RequestError.

func (*UpdateDiscussionCommentLegacyReq) Rel

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

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

HTTPResponse returns the *http.Response

func (*UpdateDiscussionCommentLegacyResponse) ReadResponse

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

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

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

https://developer.github.com/v3/teams/#update-a-team

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}

https://developer.github.com/v3/teams/#update-a-team

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

https://developer.github.com/v3/teams/#update-a-team-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}

https://developer.github.com/v3/teams/#update-a-team-legacy

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.

Jump to

Keyboard shortcuts

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