Struct azure_devops_rust_api::wiki::pages::Client
source · pub struct Client(_);Implementations§
source§impl Client
impl Client
sourcepub fn get_page(
&self,
organization: impl Into<String>,
project: impl Into<String>,
wiki_identifier: impl Into<String>
) -> RequestBuilder
pub fn get_page( &self, organization: impl Into<String>, project: impl Into<String>, wiki_identifier: impl Into<String> ) -> RequestBuilder
Gets metadata or content of the wiki page for the provided path. Content negotiation is done based on the Accept header sent in the request.
Arguments:
organization: The name of the Azure DevOps organization.project: Project ID or project namewiki_identifier: Wiki ID or wiki name.
sourcepub fn create_or_update(
&self,
organization: impl Into<String>,
body: impl Into<WikiPageCreateOrUpdateParameters>,
project: impl Into<String>,
wiki_identifier: impl Into<String>,
path: impl Into<String>,
if_match: impl Into<String>
) -> RequestBuilder
pub fn create_or_update( &self, organization: impl Into<String>, body: impl Into<WikiPageCreateOrUpdateParameters>, project: impl Into<String>, wiki_identifier: impl Into<String>, path: impl Into<String>, if_match: impl Into<String> ) -> RequestBuilder
Creates or edits a wiki page.
Arguments:
organization: The name of the Azure DevOps organization.body: Wiki create or update operation parameters.project: Project ID or project namewiki_identifier: Wiki ID or wiki name.path: Wiki page path.if_match: Version of the page on which the change is to be made. Mandatory forEditscenario. To be populated in the If-Match header of the request.
sourcepub fn delete_page(
&self,
organization: impl Into<String>,
project: impl Into<String>,
wiki_identifier: impl Into<String>,
path: impl Into<String>
) -> RequestBuilder
pub fn delete_page( &self, organization: impl Into<String>, project: impl Into<String>, wiki_identifier: impl Into<String>, path: impl Into<String> ) -> RequestBuilder
Deletes a wiki page.
Arguments:
organization: The name of the Azure DevOps organization.project: Project ID or project namewiki_identifier: Wiki ID or wiki name.path: Wiki page path.
sourcepub fn get_page_by_id(
&self,
organization: impl Into<String>,
project: impl Into<String>,
wiki_identifier: impl Into<String>,
id: i32
) -> RequestBuilder
pub fn get_page_by_id( &self, organization: impl Into<String>, project: impl Into<String>, wiki_identifier: impl Into<String>, id: i32 ) -> RequestBuilder
Gets metadata or content of the wiki page for the provided page id. Content negotiation is done based on the Accept header sent in the request.
Arguments:
organization: The name of the Azure DevOps organization.project: Project ID or project namewiki_identifier: Wiki ID or wiki name..id: Wiki page ID.
sourcepub fn update(
&self,
organization: impl Into<String>,
body: impl Into<WikiPageCreateOrUpdateParameters>,
project: impl Into<String>,
wiki_identifier: impl Into<String>,
id: i32,
if_match: impl Into<String>
) -> RequestBuilder
pub fn update( &self, organization: impl Into<String>, body: impl Into<WikiPageCreateOrUpdateParameters>, project: impl Into<String>, wiki_identifier: impl Into<String>, id: i32, if_match: impl Into<String> ) -> RequestBuilder
Edits a wiki page.
Arguments:
organization: The name of the Azure DevOps organization.body: Wiki update operation parameters.project: Project ID or project namewiki_identifier: Wiki ID or wiki name.id: Wiki page ID.if_match: Version of the page on which the change is to be made. Mandatory forEditscenario. To be populated in the If-Match header of the request.
sourcepub fn delete_page_by_id(
&self,
organization: impl Into<String>,
project: impl Into<String>,
wiki_identifier: impl Into<String>,
id: i32
) -> RequestBuilder
pub fn delete_page_by_id( &self, organization: impl Into<String>, project: impl Into<String>, wiki_identifier: impl Into<String>, id: i32 ) -> RequestBuilder
Deletes a wiki page.
Arguments:
organization: The name of the Azure DevOps organization.project: Project ID or project namewiki_identifier: Wiki ID or wiki name.id: Wiki page ID.