Struct azure_devops_rust_api::git::pull_request_statuses::Client
source · pub struct Client(/* private fields */);
Implementations§
source§impl Client
impl Client
sourcepub fn list(
&self,
organization: impl Into<String>,
repository_id: impl Into<String>,
pull_request_id: i32,
project: impl Into<String>
) -> RequestBuilder
pub fn list( &self, organization: impl Into<String>, repository_id: impl Into<String>, pull_request_id: i32, project: impl Into<String> ) -> RequestBuilder
Get all the statuses associated with a pull request.
Arguments:
organization
: The name of the Azure DevOps organization.repository_id
: The repository ID of the pull request’s target branch.pull_request_id
: ID of the pull request.project
: Project ID or project name
sourcepub fn create(
&self,
organization: impl Into<String>,
body: impl Into<GitPullRequestStatus>,
repository_id: impl Into<String>,
pull_request_id: i32,
project: impl Into<String>
) -> RequestBuilder
pub fn create( &self, organization: impl Into<String>, body: impl Into<GitPullRequestStatus>, repository_id: impl Into<String>, pull_request_id: i32, project: impl Into<String> ) -> RequestBuilder
Create a pull request status.
The only required field for the status is Context.Name
that uniquely identifies the status.
Note that you can specify iterationId in the request body to post the status on the iteration.
Arguments:
organization
: The name of the Azure DevOps organization.body
: Pull request status to create.repository_id
: The repository ID of the pull request’s target branch.pull_request_id
: ID of the pull request.project
: Project ID or project name
sourcepub fn update(
&self,
organization: impl Into<String>,
body: impl Into<JsonPatchDocument>,
repository_id: impl Into<String>,
pull_request_id: i32,
project: impl Into<String>
) -> RequestBuilder
pub fn update( &self, organization: impl Into<String>, body: impl Into<JsonPatchDocument>, repository_id: impl Into<String>, pull_request_id: i32, project: impl Into<String> ) -> RequestBuilder
Update pull request statuses collection. The only supported operation type is remove
.
This operation allows to delete multiple statuses in one call.
The path of the remove
operation should refer to the ID of the pull request status.
For example path="/1"
refers to the pull request status with ID 1.
Arguments:
organization
: The name of the Azure DevOps organization.body
: Operations to apply to the pull request statuses in JSON Patch format.repository_id
: The repository ID of the pull request’s target branch.pull_request_id
: ID of the pull request.project
: Project ID or project name
sourcepub fn get(
&self,
organization: impl Into<String>,
repository_id: impl Into<String>,
pull_request_id: i32,
status_id: i32,
project: impl Into<String>
) -> RequestBuilder
pub fn get( &self, organization: impl Into<String>, repository_id: impl Into<String>, pull_request_id: i32, status_id: i32, project: impl Into<String> ) -> RequestBuilder
Get the specific pull request status by ID. The status ID is unique within the pull request across all iterations.
Arguments:
organization
: The name of the Azure DevOps organization.repository_id
: The repository ID of the pull request’s target branch.pull_request_id
: ID of the pull request.status_id
: ID of the pull request status.project
: Project ID or project name
sourcepub fn delete(
&self,
organization: impl Into<String>,
repository_id: impl Into<String>,
pull_request_id: i32,
status_id: i32,
project: impl Into<String>
) -> RequestBuilder
pub fn delete( &self, organization: impl Into<String>, repository_id: impl Into<String>, pull_request_id: i32, status_id: i32, project: impl Into<String> ) -> RequestBuilder
Delete pull request status.
You can remove multiple statuses in one call by using Update operation.
Arguments:
organization
: The name of the Azure DevOps organization.repository_id
: The repository ID of the pull request’s target branch.pull_request_id
: ID of the pull request.status_id
: ID of the pull request status.project
: Project ID or project name