45 KiB
\OrganizationApi
All URIs are relative to http://localhost/api/v1
Method | HTTP request | Description |
---|---|---|
CreateOrgRepo | Post /orgs/{org}/repos | Create a repository in an organization |
CreateOrgRepoDeprecated | Post /org/{org}/repos | Create a repository in an organization |
OrgAddTeamMember | Put /teams/{id}/members/{username} | Add a team member |
OrgAddTeamRepository | Put /teams/{id}/repos/{org}/{repo} | Add a repository to a team |
OrgConcealMember | Delete /orgs/{org}/public_members/{username} | Conceal a user's membership |
OrgCreate | Post /orgs | Create an organization |
OrgCreateHook | Post /orgs/{org}/hooks/ | Create a hook |
OrgCreateTeam | Post /orgs/{org}/teams | Create a team |
OrgDelete | Delete /orgs/{org} | Delete an organization |
OrgDeleteHook | Delete /orgs/{org}/hooks/{id} | Delete a hook |
OrgDeleteMember | Delete /orgs/{org}/members/{username} | Remove a member from an organization |
OrgDeleteTeam | Delete /teams/{id} | Delete a team |
OrgEdit | Patch /orgs/{org} | Edit an organization |
OrgEditHook | Patch /orgs/{org}/hooks/{id} | Update a hook |
OrgEditTeam | Patch /teams/{id} | Edit a team |
OrgGet | Get /orgs/{org} | Get an organization |
OrgGetAll | Get /orgs | Get list of organizations |
OrgGetHook | Get /orgs/{org}/hooks/{id} | Get a hook |
OrgGetTeam | Get /teams/{id} | Get a team |
OrgIsMember | Get /orgs/{org}/members/{username} | Check if a user is a member of an organization |
OrgIsPublicMember | Get /orgs/{org}/public_members/{username} | Check if a user is a public member of an organization |
OrgListCurrentUserOrgs | Get /user/orgs | List the current user's organizations |
OrgListHooks | Get /orgs/{org}/hooks | List an organization's webhooks |
OrgListMembers | Get /orgs/{org}/members | List an organization's members |
OrgListPublicMembers | Get /orgs/{org}/public_members | List an organization's public members |
OrgListRepos | Get /orgs/{org}/repos | List an organization's repos |
OrgListTeamMember | Get /teams/{id}/members/{username} | List a particular member of team |
OrgListTeamMembers | Get /teams/{id}/members | List a team's members |
OrgListTeamRepos | Get /teams/{id}/repos | List a team's repos |
OrgListTeams | Get /orgs/{org}/teams | List an organization's teams |
OrgListUserOrgs | Get /users/{username}/orgs | List a user's organizations |
OrgPublicizeMember | Put /orgs/{org}/public_members/{username} | Publicize a user's membership |
OrgRemoveTeamMember | Delete /teams/{id}/members/{username} | Remove a team member |
OrgRemoveTeamRepository | Delete /teams/{id}/repos/{org}/{repo} | Remove a repository from a team |
TeamSearch | Get /orgs/{org}/teams/search | Search for teams within an organization |
CreateOrgRepo
Repository CreateOrgRepo(ctx, org, optional) Create a repository in an organization
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
org | string | name of organization | |
optional | *CreateOrgRepoOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a CreateOrgRepoOpts struct
Name | Type | Description | Notes |
---|
body | optional.Interface of CreateRepoOption| |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateOrgRepoDeprecated
Repository CreateOrgRepoDeprecated(ctx, org, optional) Create a repository in an organization
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
org | string | name of organization | |
optional | *CreateOrgRepoDeprecatedOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a CreateOrgRepoDeprecatedOpts struct
Name | Type | Description | Notes |
---|
body | optional.Interface of CreateRepoOption| |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgAddTeamMember
OrgAddTeamMember(ctx, id, username) Add a team member
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 | id of the team | |
username | string | username of the user to add |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgAddTeamRepository
OrgAddTeamRepository(ctx, id, org, repo) Add a repository to a team
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 | id of the team | |
org | string | organization that owns the repo to add | |
repo | string | name of the repo to add |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgConcealMember
OrgConcealMember(ctx, org, username) Conceal a user's membership
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
org | string | name of the organization | |
username | string | username of the user |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgCreate
Organization OrgCreate(ctx, organization) Create an organization
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
organization | CreateOrgOption |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgCreateHook
Hook OrgCreateHook(ctx, org, body) Create a hook
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
org | string | name of the organization | |
body | CreateHookOption |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgCreateTeam
Team OrgCreateTeam(ctx, org, optional) Create a team
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
org | string | name of the organization | |
optional | *OrgCreateTeamOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a OrgCreateTeamOpts struct
Name | Type | Description | Notes |
---|
body | optional.Interface of CreateTeamOption| |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgDelete
OrgDelete(ctx, org) Delete an organization
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
org | string | organization that is to be deleted |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgDeleteHook
OrgDeleteHook(ctx, org, id) Delete a hook
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
org | string | name of the organization | |
id | int64 | id of the hook to delete |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgDeleteMember
OrgDeleteMember(ctx, org, username) Remove a member from an organization
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
org | string | name of the organization | |
username | string | username of the user |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgDeleteTeam
OrgDeleteTeam(ctx, id) Delete a team
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 | id of the team to delete |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json, text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgEdit
Organization OrgEdit(ctx, org, body) Edit an organization
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
org | string | name of the organization to edit | |
body | EditOrgOption |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgEditHook
Hook OrgEditHook(ctx, org, id, optional) Update a hook
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
org | string | name of the organization | |
id | int64 | id of the hook to update | |
optional | *OrgEditHookOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a OrgEditHookOpts struct
Name | Type | Description | Notes |
---|
body | optional.Interface of EditHookOption| |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgEditTeam
Team OrgEditTeam(ctx, id, optional) Edit a team
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int32 | id of the team to edit | |
optional | *OrgEditTeamOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a OrgEditTeamOpts struct
Name | Type | Description | Notes |
---|
body | optional.Interface of EditTeamOption| |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgGet
Organization OrgGet(ctx, org) Get an organization
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
org | string | name of the organization to get |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgGetAll
[]Organization OrgGetAll(ctx, optional) Get list of organizations
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *OrgGetAllOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a OrgGetAllOpts struct
Name | Type | Description | Notes |
---|---|---|---|
page | optional.Int32 | page number of results to return (1-based) | |
limit | optional.Int32 | page size of results, maximum page size is 50 |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgGetHook
Hook OrgGetHook(ctx, org, id) Get a hook
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
org | string | name of the organization | |
id | int64 | id of the hook to get |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgGetTeam
Team OrgGetTeam(ctx, id) Get a team
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 | id of the team to get |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgIsMember
OrgIsMember(ctx, org, username) Check if a user is a member of an organization
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
org | string | name of the organization | |
username | string | username of the user |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json, text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgIsPublicMember
OrgIsPublicMember(ctx, org, username) Check if a user is a public member of an organization
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
org | string | name of the organization | |
username | string | username of the user |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json, text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgListCurrentUserOrgs
[]Organization OrgListCurrentUserOrgs(ctx, optional) List the current user's organizations
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *OrgListCurrentUserOrgsOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a OrgListCurrentUserOrgsOpts struct
Name | Type | Description | Notes |
---|---|---|---|
page | optional.Int32 | page number of results to return (1-based) | |
limit | optional.Int32 | page size of results, maximum page size is 50 |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgListHooks
[]Hook OrgListHooks(ctx, org, optional) List an organization's webhooks
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
org | string | name of the organization | |
optional | *OrgListHooksOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a OrgListHooksOpts struct
Name | Type | Description | Notes |
---|
page | optional.Int32| page number of results to return (1-based) | limit | optional.Int32| page size of results, maximum page size is 50 |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgListMembers
[]User OrgListMembers(ctx, org, optional) List an organization's members
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
org | string | name of the organization | |
optional | *OrgListMembersOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a OrgListMembersOpts struct
Name | Type | Description | Notes |
---|
page | optional.Int32| page number of results to return (1-based) | limit | optional.Int32| page size of results, maximum page size is 50 |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgListPublicMembers
[]User OrgListPublicMembers(ctx, org, optional) List an organization's public members
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
org | string | name of the organization | |
optional | *OrgListPublicMembersOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a OrgListPublicMembersOpts struct
Name | Type | Description | Notes |
---|
page | optional.Int32| page number of results to return (1-based) | limit | optional.Int32| page size of results, maximum page size is 50 |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgListRepos
[]Repository OrgListRepos(ctx, org, optional) List an organization's repos
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
org | string | name of the organization | |
optional | *OrgListReposOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a OrgListReposOpts struct
Name | Type | Description | Notes |
---|
page | optional.Int32| page number of results to return (1-based) | limit | optional.Int32| page size of results, maximum page size is 50 |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgListTeamMember
User OrgListTeamMember(ctx, id, username) List a particular member of team
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 | id of the team | |
username | string | username of the member to list |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgListTeamMembers
[]User OrgListTeamMembers(ctx, id, optional) List a team's members
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 | id of the team | |
optional | *OrgListTeamMembersOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a OrgListTeamMembersOpts struct
Name | Type | Description | Notes |
---|
page | optional.Int32| page number of results to return (1-based) | limit | optional.Int32| page size of results, maximum page size is 50 |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgListTeamRepos
[]Repository OrgListTeamRepos(ctx, id, optional) List a team's repos
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 | id of the team | |
optional | *OrgListTeamReposOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a OrgListTeamReposOpts struct
Name | Type | Description | Notes |
---|
page | optional.Int32| page number of results to return (1-based) | limit | optional.Int32| page size of results, maximum page size is 50 |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgListTeams
[]Team OrgListTeams(ctx, org, optional) List an organization's teams
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
org | string | name of the organization | |
optional | *OrgListTeamsOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a OrgListTeamsOpts struct
Name | Type | Description | Notes |
---|
page | optional.Int32| page number of results to return (1-based) | limit | optional.Int32| page size of results, maximum page size is 50 |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgListUserOrgs
[]Organization OrgListUserOrgs(ctx, username, optional) List a user's organizations
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
username | string | username of user | |
optional | *OrgListUserOrgsOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a OrgListUserOrgsOpts struct
Name | Type | Description | Notes |
---|
page | optional.Int32| page number of results to return (1-based) | limit | optional.Int32| page size of results, maximum page size is 50 |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgPublicizeMember
OrgPublicizeMember(ctx, org, username) Publicize a user's membership
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
org | string | name of the organization | |
username | string | username of the user |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgRemoveTeamMember
OrgRemoveTeamMember(ctx, id, username) Remove a team member
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 | id of the team | |
username | string | username of the user to remove |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrgRemoveTeamRepository
OrgRemoveTeamRepository(ctx, id, org, repo) Remove a repository from a team
This does not delete the repository, it only removes the repository from the team.
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | int64 | id of the team | |
org | string | organization that owns the repo to remove | |
repo | string | name of the repo to remove |
Return type
(empty response body)
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TeamSearch
InlineResponse200 TeamSearch(ctx, org, optional) Search for teams within an organization
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
org | string | name of the organization | |
optional | *TeamSearchOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a TeamSearchOpts struct
Name | Type | Description | Notes |
---|
q | optional.String| keywords to search | includeDesc | optional.Bool| include search within team description (defaults to true) | page | optional.Int32| page number of results to return (1-based) | limit | optional.Int32| page size of results, maximum page size is 50 |
Return type
Authorization
AccessToken, AuthorizationHeaderToken, BasicAuth, SudoHeader, SudoParam, Token
HTTP request headers
- Content-Type: application/json, text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]