Struct azure_devops_rust_api::git::repositories::Client
source · pub struct Client(/* private fields */);
Implementations§
source§impl Client
impl Client
sourcepub fn get_repository_with_parent(
&self,
organization: impl Into<String>,
repository_id: impl Into<String>,
include_parent: bool,
project: impl Into<String>
) -> RequestBuilder
pub fn get_repository_with_parent( &self, organization: impl Into<String>, repository_id: impl Into<String>, include_parent: bool, project: impl Into<String> ) -> RequestBuilder
Retrieve a git repository.
Arguments:
organization
: The name of the Azure DevOps organization.repository_id
: The name or ID of the repository.include_parent
: Set to true to include parent repository. Only available in authenticated calls.project
: Project ID or project name
sourcepub fn get_deleted_repositories(
&self,
organization: impl Into<String>,
project: impl Into<String>
) -> RequestBuilder
pub fn get_deleted_repositories( &self, organization: impl Into<String>, project: impl Into<String> ) -> RequestBuilder
Retrieve deleted git repositories.
Arguments:
organization
: The name of the Azure DevOps organization.project
: Project ID or project name
sourcepub fn get_recycle_bin_repositories(
&self,
organization: impl Into<String>,
project: impl Into<String>
) -> RequestBuilder
pub fn get_recycle_bin_repositories( &self, organization: impl Into<String>, project: impl Into<String> ) -> RequestBuilder
Retrieve soft-deleted git repositories from the recycle bin.
Arguments:
organization
: The name of the Azure DevOps organization.project
: Project ID or project name
sourcepub fn restore_repository_from_recycle_bin(
&self,
organization: impl Into<String>,
body: impl Into<GitRecycleBinRepositoryDetails>,
project: impl Into<String>,
repository_id: impl Into<String>
) -> RequestBuilder
pub fn restore_repository_from_recycle_bin( &self, organization: impl Into<String>, body: impl Into<GitRecycleBinRepositoryDetails>, project: impl Into<String>, repository_id: impl Into<String> ) -> RequestBuilder
Recover a soft-deleted Git repository. Recently deleted repositories go into a soft-delete state for a period of time before they are hard deleted and become unrecoverable.
Arguments:
organization
: The name of the Azure DevOps organization.project
: Project ID or project namerepository_id
: The ID of the repository.
sourcepub fn delete_repository_from_recycle_bin(
&self,
organization: impl Into<String>,
project: impl Into<String>,
repository_id: impl Into<String>
) -> RequestBuilder
pub fn delete_repository_from_recycle_bin( &self, organization: impl Into<String>, project: impl Into<String>, repository_id: impl Into<String> ) -> RequestBuilder
Destroy (hard delete) a soft-deleted Git repository.
Arguments:
organization
: The name of the Azure DevOps organization.project
: Project ID or project namerepository_id
: The ID of the repository.
sourcepub fn list(
&self,
organization: impl Into<String>,
project: impl Into<String>
) -> RequestBuilder
pub fn list( &self, organization: impl Into<String>, project: impl Into<String> ) -> RequestBuilder
Retrieve git repositories.
Arguments:
organization
: The name of the Azure DevOps organization.project
: Project ID or project name
sourcepub fn create(
&self,
organization: impl Into<String>,
body: impl Into<GitRepositoryCreateOptions>,
project: impl Into<String>
) -> RequestBuilder
pub fn create( &self, organization: impl Into<String>, body: impl Into<GitRepositoryCreateOptions>, project: impl Into<String> ) -> RequestBuilder
Create a git repository in a team project.
Arguments:
organization
: The name of the Azure DevOps organization.body
: Specify the repo name, team project and/or parent repository. Team project information can be omitted from gitRepositoryToCreate if the request is project-scoped (i.e., includes project Id).project
: Project ID or project name
sourcepub fn get_repository(
&self,
organization: impl Into<String>,
repository_id: impl Into<String>,
project: impl Into<String>
) -> RequestBuilder
pub fn get_repository( &self, organization: impl Into<String>, repository_id: impl Into<String>, project: impl Into<String> ) -> RequestBuilder
Retrieve a git repository.
Arguments:
organization
: The name of the Azure DevOps organization.repository_id
: The name or ID of the repository.project
: Project ID or project name
sourcepub fn update(
&self,
organization: impl Into<String>,
body: impl Into<GitRepository>,
repository_id: impl Into<String>,
project: impl Into<String>
) -> RequestBuilder
pub fn update( &self, organization: impl Into<String>, body: impl Into<GitRepository>, repository_id: impl Into<String>, project: impl Into<String> ) -> RequestBuilder
Updates the Git repository with either a new repo name or a new default branch.
Arguments:
organization
: The name of the Azure DevOps organization.body
: Specify a new repo name or a new default branch of the repositoryrepository_id
: The ID of the repository.project
: Project ID or project name
sourcepub fn delete(
&self,
organization: impl Into<String>,
repository_id: impl Into<String>,
project: impl Into<String>
) -> RequestBuilder
pub fn delete( &self, organization: impl Into<String>, repository_id: impl Into<String>, project: impl Into<String> ) -> RequestBuilder
Delete a git repository
Arguments:
organization
: The name of the Azure DevOps organization.repository_id
: The ID of the repository.project
: Project ID or project name
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more