pub struct Client(/* private fields */);Implementations§
Source§impl Client
impl Client
Sourcepub fn get_feeds(
&self,
organization: impl Into<String>,
project: impl Into<String>,
) -> RequestBuilder
pub fn get_feeds( &self, organization: impl Into<String>, project: impl Into<String>, ) -> RequestBuilder
Get all feeds in an account where you have the provided role access.
If the project parameter is present, gets all feeds in the given project. If omitted, gets all feeds in the organization.
Arguments:
organization: The name of the Azure DevOps organization.project: Project ID or project name
Sourcepub fn create_feed(
&self,
organization: impl Into<String>,
body: impl Into<Feed>,
project: impl Into<String>,
) -> RequestBuilder
pub fn create_feed( &self, organization: impl Into<String>, body: impl Into<Feed>, project: impl Into<String>, ) -> RequestBuilder
Create a feed, a container for various package types.
Feeds can be created in a project if the project parameter is included in the request url. If the project parameter is omitted, the feed will not be associated with a project and will be created at the organization level.
Arguments:
organization: The name of the Azure DevOps organization.body: A JSON object containing both required and optional attributes for the feed. Name is the only required value.project: Project ID or project name
Sourcepub fn get_feed(
&self,
organization: impl Into<String>,
feed_id: impl Into<String>,
project: impl Into<String>,
) -> RequestBuilder
pub fn get_feed( &self, organization: impl Into<String>, feed_id: impl Into<String>, project: impl Into<String>, ) -> RequestBuilder
Get the settings for a specific feed.
The project parameter must be supplied if the feed was created in a project. If the feed is not associated with any project, omit the project parameter from the request.
Arguments:
organization: The name of the Azure DevOps organization.feed_id: Name or Id of the feed.project: Project ID or project name
Sourcepub fn update_feed(
&self,
organization: impl Into<String>,
body: impl Into<FeedUpdate>,
feed_id: impl Into<String>,
project: impl Into<String>,
) -> RequestBuilder
pub fn update_feed( &self, organization: impl Into<String>, body: impl Into<FeedUpdate>, feed_id: impl Into<String>, project: impl Into<String>, ) -> RequestBuilder
Change the attributes of a feed.
The project parameter must be supplied if the feed was created in a project. If the feed is not associated with any project, omit the project parameter from the request.
Arguments:
organization: The name of the Azure DevOps organization.body: A JSON object containing the feed settings to be updated.feed_id: Name or Id of the feed.project: Project ID or project name
Sourcepub fn delete_feed(
&self,
organization: impl Into<String>,
feed_id: impl Into<String>,
project: impl Into<String>,
) -> RequestBuilder
pub fn delete_feed( &self, organization: impl Into<String>, feed_id: impl Into<String>, project: impl Into<String>, ) -> RequestBuilder
Remove a feed and all its packages. The feed moves to the recycle bin and is reversible.
The project parameter must be supplied if the feed was created in a project. If the feed is not associated with any project, omit the project parameter from the request.
Arguments:
organization: The name of the Azure DevOps organization.feed_id: Name or Id of the feed.project: Project ID or project name
Sourcepub fn get_feed_permissions(
&self,
organization: impl Into<String>,
feed_id: impl Into<String>,
project: impl Into<String>,
) -> RequestBuilder
pub fn get_feed_permissions( &self, organization: impl Into<String>, feed_id: impl Into<String>, project: impl Into<String>, ) -> RequestBuilder
Get the permissions for a feed.
The project parameter must be supplied if the feed was created in a project. If the feed is not associated with any project, omit the project parameter from the request.
Arguments:
organization: The name of the Azure DevOps organization.feed_id: Name or Id of the feed.project: Project ID or project name
Sourcepub fn set_feed_permissions(
&self,
organization: impl Into<String>,
body: Vec<FeedPermission>,
feed_id: impl Into<String>,
project: impl Into<String>,
) -> RequestBuilder
pub fn set_feed_permissions( &self, organization: impl Into<String>, body: Vec<FeedPermission>, feed_id: impl Into<String>, project: impl Into<String>, ) -> RequestBuilder
Update the permissions on a feed.
The project parameter must be supplied if the feed was created in a project. If the feed is not associated with any project, omit the project parameter from the request.
Arguments:
organization: The name of the Azure DevOps organization.body: Permissions to set.feed_id: Name or Id of the feed.project: Project ID or project name
Sourcepub fn get_feed_views(
&self,
organization: impl Into<String>,
feed_id: impl Into<String>,
project: impl Into<String>,
) -> RequestBuilder
pub fn get_feed_views( &self, organization: impl Into<String>, feed_id: impl Into<String>, project: impl Into<String>, ) -> RequestBuilder
Get all views for a feed.
The project parameter must be supplied if the feed was created in a project.
Arguments:
organization: The name of the Azure DevOps organization.feed_id: Name or Id of the feed.project: Project ID or project name
Sourcepub fn create_feed_view(
&self,
organization: impl Into<String>,
body: impl Into<FeedView>,
feed_id: impl Into<String>,
project: impl Into<String>,
) -> RequestBuilder
pub fn create_feed_view( &self, organization: impl Into<String>, body: impl Into<FeedView>, feed_id: impl Into<String>, project: impl Into<String>, ) -> RequestBuilder
Create a new view on the referenced feed.
The project parameter must be supplied if the feed was created in a project.
Arguments:
organization: The name of the Azure DevOps organization.body: View to be created.feed_id: Name or Id of the feed.project: Project ID or project name
Sourcepub fn get_feed_view(
&self,
organization: impl Into<String>,
feed_id: impl Into<String>,
view_id: impl Into<String>,
project: impl Into<String>,
) -> RequestBuilder
pub fn get_feed_view( &self, organization: impl Into<String>, feed_id: impl Into<String>, view_id: impl Into<String>, project: impl Into<String>, ) -> RequestBuilder
Get a view by Id.
The project parameter must be supplied if the feed was created in a project.
Arguments:
organization: The name of the Azure DevOps organization.feed_id: Name or Id of the feed.view_id: Name or Id of the view.project: Project ID or project name
Sourcepub fn update_feed_view(
&self,
organization: impl Into<String>,
body: impl Into<FeedView>,
feed_id: impl Into<String>,
view_id: impl Into<String>,
project: impl Into<String>,
) -> RequestBuilder
pub fn update_feed_view( &self, organization: impl Into<String>, body: impl Into<FeedView>, feed_id: impl Into<String>, view_id: impl Into<String>, project: impl Into<String>, ) -> RequestBuilder
Update a view.
The project parameter must be supplied if the feed was created in a project.
Arguments:
organization: The name of the Azure DevOps organization.body: New settings to apply to the specified view.feed_id: Name or Id of the feed.view_id: Name or Id of the view.project: Project ID or project name
Sourcepub fn delete_feed_view(
&self,
organization: impl Into<String>,
feed_id: impl Into<String>,
view_id: impl Into<String>,
project: impl Into<String>,
) -> RequestBuilder
pub fn delete_feed_view( &self, organization: impl Into<String>, feed_id: impl Into<String>, view_id: impl Into<String>, project: impl Into<String>, ) -> RequestBuilder
Delete a feed view.
The project parameter must be supplied if the feed was created in a project.
Arguments:
organization: The name of the Azure DevOps organization.feed_id: Name or Id of the feed.view_id: Name or Id of the view.project: Project ID or project name