Package org.azd.artifacts.feedmanagement
Class FeedPermissionsRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.artifacts.feedmanagement.FeedPermissionsRequestBuilder
Feed permissions request builder to manage Feed permissions Api.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents the query parameters.static classRequest configuration object for the query parameters.Nested classes/interfaces inherited from class org.azd.abstractions.BaseRequestBuilder
BaseRequestBuilder.ProjectExcludeParameter -
Field Summary
Fields inherited from class org.azd.abstractions.BaseRequestBuilder
accessTokenCredential, apiVersion, area, locationId, organizationUrl, serializer -
Constructor Summary
ConstructorsConstructorDescriptionFeedPermissionsRequestBuilder(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionGet the permissions for a feed.get(String feedId, Consumer<FeedPermissionsRequestBuilder.RequestConfiguration> requestConfiguration) Get the permissions for a feed.Get the permissions for a feed.getAsync(String feedId, Consumer<FeedPermissionsRequestBuilder.RequestConfiguration> requestConfiguration) Get the permissions for a feed.set(String feedId, FeedPermissions feedPermissions) Update the permissions on a feed.setAsync(String feedId, FeedPermissions feedPermissions) Update the permissions on a feed.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
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
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
public CompletableFuture<FeedPermissions> getAsync(String feedId, Consumer<FeedPermissionsRequestBuilder.RequestConfiguration> requestConfiguration) 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.
-
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
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
public FeedPermissions get(String feedId, Consumer<FeedPermissionsRequestBuilder.RequestConfiguration> requestConfiguration) 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.
-
set
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.
-