Class FeedPermissionsRequestBuilder

java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.artifacts.feedmanagement.FeedPermissionsRequestBuilder

public class FeedPermissionsRequestBuilder extends BaseRequestBuilder
Feed permissions request builder to manage Feed permissions Api.
  • Constructor Details

    • FeedPermissionsRequestBuilder

      public FeedPermissionsRequestBuilder(String organizationUrl, AccessTokenCredential accessTokenCredential)
      Instantiates a new RequestBuilder instance and sets the default values.
      Parameters:
      organizationUrl - Represents organization location request url.
      accessTokenCredential - Access token credential object.
  • Method Details

    • getAsync

      public CompletableFuture<FeedPermissions> getAsync(String feedId) throws AzDException
      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.
      Parameters:
      feedId - Id or name of the feed.
      Returns:
      Feed Permissions FeedPermissions
      Throws:
      AzDException - Default Api Exception handler.
    • getAsync

      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.
      Parameters:
      feedId - Id or name of the feed.
      Returns:
      Feed Permissions FeedPermissions
      Throws:
      AzDException - Default Api Exception handler.
    • setAsync

      public CompletableFuture<FeedPermissions> setAsync(String feedId, FeedPermissions feedPermissions) throws AzDException
      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.
      Parameters:
      feedPermissions - List of feed permissions to update the permissions for.
      Returns:
      array of feed permissions FeedPermissions
      Throws:
      AzDException - Default Api Exception handler.
    • get

      public FeedPermissions get(String feedId) throws AzDException
      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.
      Parameters:
      feedId - Id or name of the feed.
      Returns:
      Feed Permissions FeedPermissions
      Throws:
      AzDException - Default Api Exception handler.
    • get

      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.
      Parameters:
      feedId - Id or name of the feed.
      Returns:
      Feed Permissions FeedPermissions
      Throws:
      AzDException - Default Api Exception handler.
    • set

      public FeedPermissions set(String feedId, FeedPermissions feedPermissions) throws AzDException
      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.
      Parameters:
      feedPermissions - List of feed permissions to update the permissions for.
      Returns:
      array of feed permissions FeedPermissions
      Throws:
      AzDException - Default Api Exception handler.