Class AuthorizedResourcesRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.build.authorizedresources.AuthorizedResourcesRequestBuilder
Provides the functionality to manage Build Authorized resources 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
ConstructorsConstructorDescriptionAuthorizedResourcesRequestBuilder(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionauthorize(List<DefinitionResourceReference> definitionResourceReferences) Authorize Project Resources.authorizeAsync(List<DefinitionResourceReference> definitionResourceReferences) Authorize Project Resources.list()Get a collection of Authorize Project Resources.list(Consumer<AuthorizedResourcesRequestBuilder.RequestConfiguration> requestConfiguration) Get a collection of Authorize Project Resources.Get a collection of Authorize Project Resources.listAsync(Consumer<AuthorizedResourcesRequestBuilder.RequestConfiguration> requestConfiguration) Get a collection of Authorize Project Resources.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
AuthorizedResourcesRequestBuilder
public AuthorizedResourcesRequestBuilder(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
-
authorizeAsync
public CompletableFuture<DefinitionResourceReferences> authorizeAsync(List<DefinitionResourceReference> definitionResourceReferences) throws AzDException Authorize Project Resources.- Parameters:
definitionResourceReferences- Collection of DefinitionResourceReference.- Returns:
- A future object of collection of DefinitionResourceReference
DefinitionResourceReferences - Throws:
AzDException- Default Api exception handler.
-
listAsync
Get a collection of Authorize Project Resources.- Returns:
- A future object of collection of DefinitionResourceReference
DefinitionResourceReferences - Throws:
AzDException- Default Api exception handler.
-
listAsync
public CompletableFuture<DefinitionResourceReferences> listAsync(Consumer<AuthorizedResourcesRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Get a collection of Authorize Project Resources.- Parameters:
requestConfiguration- Consumer of request configuration that represents the query parameters.- Returns:
- Collection of DefinitionResourceReference
DefinitionResourceReferences - Throws:
AzDException- Default Api exception handler.
-
authorize
public DefinitionResourceReferences authorize(List<DefinitionResourceReference> definitionResourceReferences) throws AzDException Authorize Project Resources.- Parameters:
definitionResourceReferences- Collection of DefinitionResourceReference.- Returns:
- A future object of collection of DefinitionResourceReference
DefinitionResourceReferences - Throws:
AzDException- Default Api exception handler.
-
list
Get a collection of Authorize Project Resources.- Returns:
- A future object of collection of DefinitionResourceReference
DefinitionResourceReferences - Throws:
AzDException- Default Api exception handler.
-
list
public DefinitionResourceReferences list(Consumer<AuthorizedResourcesRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Get a collection of Authorize Project Resources.- Parameters:
requestConfiguration- Consumer of request configuration that represents the query parameters.- Returns:
- Collection of DefinitionResourceReference
DefinitionResourceReferences - Throws:
AzDException- Default Api exception handler.
-