Struct azure_devops_rust_api::build::definitions::Client
source · pub struct Client(_);Implementations§
source§impl Client
impl Client
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
Gets a list of definitions.
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<BuildDefinition>,
project: impl Into<String>
) -> RequestBuilder
pub fn create( &self, organization: impl Into<String>, body: impl Into<BuildDefinition>, project: impl Into<String> ) -> RequestBuilder
Creates a new definition.
Arguments:
organization: The name of the Azure DevOps organization.body: The definition.project: Project ID or project name
sourcepub fn get(
&self,
organization: impl Into<String>,
project: impl Into<String>,
definition_id: i32
) -> RequestBuilder
pub fn get( &self, organization: impl Into<String>, project: impl Into<String>, definition_id: i32 ) -> RequestBuilder
Gets a definition, optionally at a specific revision.
Arguments:
organization: The name of the Azure DevOps organization.project: Project ID or project namedefinition_id: The ID of the definition.
sourcepub fn update(
&self,
organization: impl Into<String>,
body: impl Into<BuildDefinition>,
project: impl Into<String>,
definition_id: i32
) -> RequestBuilder
pub fn update( &self, organization: impl Into<String>, body: impl Into<BuildDefinition>, project: impl Into<String>, definition_id: i32 ) -> RequestBuilder
Updates an existing build definition. In order for this operation to succeed, the value of the “Revision” property of the request body must match the existing build definition’s. It is recommended that you obtain the existing build definition by using GET, modify the build definition as necessary, and then submit the modified definition with PUT.
Arguments:
organization: The name of the Azure DevOps organization.body: The new version of the definition. Its “Revision” property must match the existing definition for the update to be accepted.project: Project ID or project namedefinition_id: The ID of the definition.
sourcepub fn restore_definition(
&self,
organization: impl Into<String>,
project: impl Into<String>,
definition_id: i32,
deleted: bool
) -> RequestBuilder
pub fn restore_definition( &self, organization: impl Into<String>, project: impl Into<String>, definition_id: i32, deleted: bool ) -> RequestBuilder
Restores a deleted definition
Arguments:
organization: The name of the Azure DevOps organization.project: Project ID or project namedefinition_id: The identifier of the definition to restore.deleted: When false, restores a deleted definition.
sourcepub fn delete(
&self,
organization: impl Into<String>,
project: impl Into<String>,
definition_id: i32
) -> RequestBuilder
pub fn delete( &self, organization: impl Into<String>, project: impl Into<String>, definition_id: i32 ) -> RequestBuilder
Deletes a definition and all associated builds.
Arguments:
organization: The name of the Azure DevOps organization.project: Project ID or project namedefinition_id: The ID of the definition.
sourcepub fn get_definition_revisions(
&self,
organization: impl Into<String>,
project: impl Into<String>,
definition_id: i32
) -> RequestBuilder
pub fn get_definition_revisions( &self, organization: impl Into<String>, project: impl Into<String>, definition_id: i32 ) -> RequestBuilder
Gets all revisions of a definition.
Arguments:
organization: The name of the Azure DevOps organization.project: Project ID or project namedefinition_id: The ID of the definition.
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