Rust API for Gitea, automatically generated https://git.exmods.org/swagger.v1.json
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

55KB

\OrganizationApi

All URIs are relative to http://localhost/api/v1

Method HTTP request Description
create_org_repo Post /org/{org}/repos Create a repository in an organization
org_add_team_member Put /teams/{id}/members/{username} Add a team member
org_add_team_repository Put /teams/{id}/repos/{org}/{repo} Add a repository to a team
org_conceal_member Delete /orgs/{org}/public_members/{username} Conceal a user's membership
org_create Post /orgs Create an organization
org_create_hook Post /orgs/{org}/hooks/ Create a hook
org_create_team Post /orgs/{org}/teams Create a team
org_delete Delete /orgs/{org} Delete an organization
org_delete_hook Delete /orgs/{org}/hooks/{id} Delete a hook
org_delete_member Delete /orgs/{org}/members/{username} Remove a member from an organization
org_delete_team Delete /teams/{id} Delete a team
org_edit Patch /orgs/{org} Edit an organization
org_edit_hook Patch /orgs/{org}/hooks/{id} Update a hook
org_edit_team Patch /teams/{id} Edit a team
org_get Get /orgs/{org} Get an organization
org_get_hook Get /orgs/{org}/hooks/{id} Get a hook
org_get_team Get /teams/{id} Get a team
org_is_member Get /orgs/{org}/members/{username} Check if a user is a member of an organization
org_is_public_member Get /orgs/{org}/public_members/{username} Check if a user is a public member of an organization
org_list_current_user_orgs Get /user/orgs List the current user's organizations
org_list_hooks Get /orgs/{org}/hooks List an organization's webhooks
org_list_members Get /orgs/{org}/members List an organization's members
org_list_public_members Get /orgs/{org}/public_members List an organization's public members
org_list_repos Get /orgs/{org}/repos List an organization's repos
org_list_team_member Get /teams/{id}/members/{username} List a particular member of team
org_list_team_members Get /teams/{id}/members List a team's members
org_list_team_repos Get /teams/{id}/repos List a team's repos
org_list_teams Get /orgs/{org}/teams List an organization's teams
org_list_user_orgs Get /users/{username}/orgs List a user's organizations
org_publicize_member Put /orgs/{org}/public_members/{username} Publicize a user's membership
org_remove_team_member Delete /teams/{id}/members/{username} Remove a team member
org_remove_team_repository Delete /teams/{id}/repos/{org}/{repo} Remove a repository from a team
team_search Get /orgs/{org}/teams/search Search for teams within an organization

create_org_repo

::models::Repository create_org_repo(ctx, ctx, ctx, ctx, ctx, ctx, org, optional) Create a repository in an organization

Required Parameters

Name Type Description Notes
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
org String name of organization
optional map[string]interface{} optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a map[string]interface{}.

Name Type Description Notes
org String name of organization
body CreateRepoOption

Return type

::models::Repository

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]

org_add_team_member

org_add_team_member(ctx, ctx, ctx, ctx, ctx, ctx, id, username) Add a team member

Required Parameters

Name Type Description Notes
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
id i64 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]

org_add_team_repository

org_add_team_repository(ctx, ctx, ctx, ctx, ctx, ctx, id, org, repo) Add a repository to a team

Required Parameters

Name Type Description Notes
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
id i64 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]

org_conceal_member

org_conceal_member(ctx, ctx, ctx, ctx, ctx, ctx, org, username) Conceal a user's membership

Required Parameters

Name Type Description Notes
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
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]

org_create

::models::Organization org_create(ctx, ctx, ctx, ctx, ctx, ctx, organization) Create an organization

Required Parameters

Name Type Description Notes
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
organization CreateOrgOption

Return type

::models::Organization

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]

org_create_hook

::models::Hook org_create_hook(ctx, ctx, ctx, ctx, ctx, ctx, org, body) Create a hook

Required Parameters

Name Type Description Notes
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
org String name of the organization
body CreateHookOption

Return type

::models::Hook

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]

org_create_team

::models::Team org_create_team(ctx, ctx, ctx, ctx, ctx, ctx, org, optional) Create a team

Required Parameters

Name Type Description Notes
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
org String name of the organization
optional map[string]interface{} optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a map[string]interface{}.

Name Type Description Notes
org String name of the organization
body CreateTeamOption

Return type

::models::Team

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]

org_delete

org_delete(ctx, ctx, ctx, ctx, ctx, ctx, org) Delete an organization

Required Parameters

Name Type Description Notes
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
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]

org_delete_hook

org_delete_hook(ctx, ctx, ctx, ctx, ctx, ctx, org, id) Delete a hook

Required Parameters

Name Type Description Notes
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
org String name of the organization
id i64 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]

org_delete_member

org_delete_member(ctx, ctx, ctx, ctx, ctx, ctx, org, username) Remove a member from an organization

Required Parameters

Name Type Description Notes
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
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]

org_delete_team

org_delete_team(ctx, ctx, ctx, ctx, ctx, ctx, id) Delete a team

Required Parameters

Name Type Description Notes
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
id i64 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]

org_edit

::models::Organization org_edit(ctx, ctx, ctx, ctx, ctx, ctx, org, body) Edit an organization

Required Parameters

Name Type Description Notes
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
org String name of the organization to edit
body EditOrgOption

Return type

::models::Organization

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]

org_edit_hook

::models::Hook org_edit_hook(ctx, ctx, ctx, ctx, ctx, ctx, org, id, optional) Update a hook

Required Parameters

Name Type Description Notes
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
org String name of the organization
id i64 id of the hook to update
optional map[string]interface{} optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a map[string]interface{}.

Name Type Description Notes
org String name of the organization
id i64 id of the hook to update
body EditHookOption

Return type

::models::Hook

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]

org_edit_team

::models::Team org_edit_team(ctx, ctx, ctx, ctx, ctx, ctx, id, optional) Edit a team

Required Parameters

Name Type Description Notes
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
id i32 id of the team to edit
optional map[string]interface{} optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a map[string]interface{}.

Name Type Description Notes
id i32 id of the team to edit
body EditTeamOption

Return type

::models::Team

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]

org_get

::models::Organization org_get(ctx, ctx, ctx, ctx, ctx, ctx, org) Get an organization

Required Parameters

Name Type Description Notes
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
org String name of the organization to get

Return type

::models::Organization

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]

org_get_hook

::models::Hook org_get_hook(ctx, ctx, ctx, ctx, ctx, ctx, org, id) Get a hook

Required Parameters

Name Type Description Notes
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
org String name of the organization
id i64 id of the hook to get

Return type

::models::Hook

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]

org_get_team

::models::Team org_get_team(ctx, ctx, ctx, ctx, ctx, ctx, id) Get a team

Required Parameters

Name Type Description Notes
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
id i64 id of the team to get

Return type

::models::Team

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]

org_is_member

org_is_member(ctx, ctx, ctx, ctx, ctx, ctx, org, username) Check if a user is a member of an organization

Required Parameters

Name Type Description Notes
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
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]

org_is_public_member

org_is_public_member(ctx, ctx, ctx, ctx, ctx, ctx, org, username) Check if a user is a public member of an organization

Required Parameters

Name Type Description Notes
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
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]

org_list_current_user_orgs

Vec<::models::Organization> org_list_current_user_orgs(ctx, ctx, ctx, ctx, ctx, ctx, ) List the current user's organizations

Required Parameters

This endpoint does not need any parameter.

Return type

Vec<::models::Organization>

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]

org_list_hooks

Vec<::models::Hook> org_list_hooks(ctx, ctx, ctx, ctx, ctx, ctx, org) List an organization's webhooks

Required Parameters

Name Type Description Notes
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
org String name of the organization

Return type

Vec<::models::Hook>

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]

org_list_members

Vec<::models::User> org_list_members(ctx, ctx, ctx, ctx, ctx, ctx, org) List an organization's members

Required Parameters

Name Type Description Notes
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
org String name of the organization

Return type

Vec<::models::User>

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]

org_list_public_members

Vec<::models::User> org_list_public_members(ctx, ctx, ctx, ctx, ctx, ctx, org) List an organization's public members

Required Parameters

Name Type Description Notes
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
org String name of the organization

Return type

Vec<::models::User>

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]

org_list_repos

Vec<::models::Repository> org_list_repos(ctx, ctx, ctx, ctx, ctx, ctx, org) List an organization's repos

Required Parameters

Name Type Description Notes
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
org String name of the organization

Return type

Vec<::models::Repository>

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]

org_list_team_member

::models::User org_list_team_member(ctx, ctx, ctx, ctx, ctx, ctx, id, username) List a particular member of team

Required Parameters

Name Type Description Notes
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
id i64 id of the team
username String username of the member to list

Return type

::models::User

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]

org_list_team_members

Vec<::models::User> org_list_team_members(ctx, ctx, ctx, ctx, ctx, ctx, id) List a team's members

Required Parameters

Name Type Description Notes
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
id i64 id of the team

Return type

Vec<::models::User>

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]

org_list_team_repos

Vec<::models::Repository> org_list_team_repos(ctx, ctx, ctx, ctx, ctx, ctx, id) List a team's repos

Required Parameters

Name Type Description Notes
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
id i64 id of the team

Return type

Vec<::models::Repository>

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]

org_list_teams

Vec<::models::Team> org_list_teams(ctx, ctx, ctx, ctx, ctx, ctx, org) List an organization's teams

Required Parameters

Name Type Description Notes
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
org String name of the organization

Return type

Vec<::models::Team>

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]

org_list_user_orgs

Vec<::models::Organization> org_list_user_orgs(ctx, ctx, ctx, ctx, ctx, ctx, username) List a user's organizations

Required Parameters

Name Type Description Notes
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
username String username of user

Return type

Vec<::models::Organization>

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]

org_publicize_member

org_publicize_member(ctx, ctx, ctx, ctx, ctx, ctx, org, username) Publicize a user's membership

Required Parameters

Name Type Description Notes
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
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]

org_remove_team_member

org_remove_team_member(ctx, ctx, ctx, ctx, ctx, ctx, id, username) Remove a team member

Required Parameters

Name Type Description Notes
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
id i64 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]

org_remove_team_repository

org_remove_team_repository(ctx, ctx, ctx, ctx, ctx, 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 containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
id i64 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]

team_search

::models::InlineResponse200 team_search(ctx, ctx, ctx, ctx, ctx, ctx, org, optional) Search for teams within an organization

Required Parameters

Name Type Description Notes
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
ctx context.Context context containing the authentication nil if no authentication
org String name of the organization
optional map[string]interface{} optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a map[string]interface{}.

Name Type Description Notes
org String name of the organization
q String keywords to search
include_desc bool include search within team description (defaults to true)
limit i32 limit size of results
page i32 page number of results to return (1-based)

Return type

::models::InlineResponse200

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]