Struct azure_devops_rust_api::git::import_requests::Client
source · pub struct Client(/* private fields */);
Implementations§
source§impl Client
impl Client
sourcepub fn query(
&self,
organization: impl Into<String>,
project: impl Into<String>,
repository_id: impl Into<String>
) -> RequestBuilder
pub fn query( &self, organization: impl Into<String>, project: impl Into<String>, repository_id: impl Into<String> ) -> RequestBuilder
Retrieve import requests for a repository.
Arguments:
organization
: The name of the Azure DevOps organization.project
: Project ID or project namerepository_id
: The name or ID of the repository.
sourcepub fn create(
&self,
organization: impl Into<String>,
body: impl Into<GitImportRequest>,
project: impl Into<String>,
repository_id: impl Into<String>
) -> RequestBuilder
pub fn create( &self, organization: impl Into<String>, body: impl Into<GitImportRequest>, project: impl Into<String>, repository_id: impl Into<String> ) -> RequestBuilder
Create an import request.
Arguments:
organization
: The name of the Azure DevOps organization.body
: The import request to create.project
: Project ID or project namerepository_id
: The name or ID of the repository.
sourcepub fn get(
&self,
organization: impl Into<String>,
project: impl Into<String>,
repository_id: impl Into<String>,
import_request_id: i32
) -> RequestBuilder
pub fn get( &self, organization: impl Into<String>, project: impl Into<String>, repository_id: impl Into<String>, import_request_id: i32 ) -> RequestBuilder
Retrieve a particular import request.
Arguments:
organization
: The name of the Azure DevOps organization.project
: Project ID or project namerepository_id
: The name or ID of the repository.import_request_id
: The unique identifier for the import request.
sourcepub fn update(
&self,
organization: impl Into<String>,
body: impl Into<GitImportRequest>,
project: impl Into<String>,
repository_id: impl Into<String>,
import_request_id: i32
) -> RequestBuilder
pub fn update( &self, organization: impl Into<String>, body: impl Into<GitImportRequest>, project: impl Into<String>, repository_id: impl Into<String>, import_request_id: i32 ) -> RequestBuilder
Retry or abandon a failed import request.
There can only be one active import request associated with a repository. Marking a failed import request abandoned makes it inactive.
Arguments:
organization
: The name of the Azure DevOps organization.body
: The updated version of the import request. Currently, the only change allowed is setting the Status to Queued or Abandoned.project
: Project ID or project namerepository_id
: The name or ID of the repository.import_request_id
: The unique identifier for the import request to update.
Auto Trait Implementations§
impl Freeze for Client
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