pub struct CollaboratorsClient { /* private fields */ }
Expand description
Collaborators API 客户端
Implementations§
Source§impl CollaboratorsClient
impl CollaboratorsClient
Sourcepub async fn get_repo_inherit_members(
&self,
repo: String,
search: Option<String>,
role: Option<String>,
page: Option<i64>,
page_size: Option<i64>,
) -> Result<Value>
pub async fn get_repo_inherit_members( &self, repo: String, search: Option<String>, role: Option<String>, page: Option<i64>, page_size: Option<i64>, ) -> Result<Value>
获取指定组织或仓库内的继承成员。List inherited members within specified organization or repository。
Sourcepub async fn get_group_inherit_members(
&self,
group: String,
search: Option<String>,
role: Option<String>,
page: Option<i64>,
page_size: Option<i64>,
) -> Result<Value>
pub async fn get_group_inherit_members( &self, group: String, search: Option<String>, role: Option<String>, page: Option<i64>, page_size: Option<i64>, ) -> Result<Value>
获取指定组织或仓库内的继承成员。List inherited members within specified organization or repository。
Sourcepub async fn post_group_members_username(
&self,
group: String,
username: String,
request_data: Value,
) -> Result<Value>
pub async fn post_group_members_username( &self, group: String, username: String, request_data: Value, ) -> Result<Value>
添加成员。Add members.
Sourcepub async fn put_group_members_username(
&self,
group: String,
username: String,
request_data: Value,
) -> Result<Value>
pub async fn put_group_members_username( &self, group: String, username: String, request_data: Value, ) -> Result<Value>
更新指定组织或仓库内的直接成员权限信息。Update permission information for direct members in specified organization/repository.
Sourcepub async fn delete_group_members_username(
&self,
group: String,
username: String,
) -> Result<Value>
pub async fn delete_group_members_username( &self, group: String, username: String, ) -> Result<Value>
删除指定组织或仓库的直接成员。Remove direct members from specified organization/repository.
Sourcepub async fn get_repo_outside_collaborators(
&self,
repo: String,
page: Option<i64>,
page_size: Option<i64>,
role: Option<String>,
search: Option<String>,
) -> Result<Value>
pub async fn get_repo_outside_collaborators( &self, repo: String, page: Option<i64>, page_size: Option<i64>, role: Option<String>, search: Option<String>, ) -> Result<Value>
获取指定仓库内的外部贡献者。List external contributors in specified repository.
Sourcepub async fn post_mission_members_username(
&self,
mission: String,
username: String,
request_data: Value,
) -> Result<Value>
pub async fn post_mission_members_username( &self, mission: String, username: String, request_data: Value, ) -> Result<Value>
添加成员。Add members.
Sourcepub async fn put_repo_outside_collaborators_username(
&self,
repo: String,
username: String,
role: String,
) -> Result<Value>
pub async fn put_repo_outside_collaborators_username( &self, repo: String, username: String, role: String, ) -> Result<Value>
更新指定仓库的外部贡献者权限信息。 Update permission information for external contributors in specified repository.
Sourcepub async fn delete_repo_outside_collaborators_username(
&self,
repo: String,
username: String,
) -> Result<Value>
pub async fn delete_repo_outside_collaborators_username( &self, repo: String, username: String, ) -> Result<Value>
删除指定仓库的外部贡献者。Removes external contributors from specified repository.
Sourcepub async fn post_repo_members_username(
&self,
repo: String,
username: String,
request_data: Value,
) -> Result<Value>
pub async fn post_repo_members_username( &self, repo: String, username: String, request_data: Value, ) -> Result<Value>
添加成员。Add members.
Sourcepub async fn put_repo_members_username(
&self,
repo: String,
username: String,
request_data: Value,
) -> Result<Value>
pub async fn put_repo_members_username( &self, repo: String, username: String, request_data: Value, ) -> Result<Value>
更新指定组织或仓库内的直接成员权限信息。Update permission information for direct members in specified organization/repository.
Sourcepub async fn delete_repo_members_username(
&self,
repo: String,
username: String,
) -> Result<Value>
pub async fn delete_repo_members_username( &self, repo: String, username: String, ) -> Result<Value>
删除指定组织或仓库的直接成员。Remove direct members from specified organization/repository.
Sourcepub async fn get_repo_members(
&self,
repo: String,
page: Option<i64>,
page_size: Option<i64>,
role: Option<String>,
search: Option<String>,
) -> Result<Value>
pub async fn get_repo_members( &self, repo: String, page: Option<i64>, page_size: Option<i64>, role: Option<String>, search: Option<String>, ) -> Result<Value>
获取指定组织或仓库内的所有直接成员。List all direct members within specified organization or repository.
Sourcepub async fn get_repo_list_members(
&self,
repo: String,
page: Option<i64>,
page_size: Option<i64>,
role: Option<String>,
search: Option<String>,
names: Option<String>,
order_by: Option<String>,
desc: Option<bool>,
) -> Result<Value>
pub async fn get_repo_list_members( &self, repo: String, page: Option<i64>, page_size: Option<i64>, role: Option<String>, search: Option<String>, names: Option<String>, order_by: Option<String>, desc: Option<bool>, ) -> Result<Value>
获取指定仓库内的有效成员列表,包含继承成员。List active members in specified repository including inherited members.
Sourcepub async fn get_group_members(
&self,
group: String,
page: Option<i64>,
page_size: Option<i64>,
role: Option<String>,
search: Option<String>,
) -> Result<Value>
pub async fn get_group_members( &self, group: String, page: Option<i64>, page_size: Option<i64>, role: Option<String>, search: Option<String>, ) -> Result<Value>
获取指定组织或仓库内的所有直接成员。List all direct members within specified organization or repository.