Interface Grants
public interface Grants
Resource collection API of Grants.
-
Method Summary
Modifier and TypeMethodDescriptionGet details for a specific grant linked to the provided billing account and billing profile.com.azure.core.http.rest.Response<GrantDetails> getWithResponse(String billingAccountName, String billingProfileName, Boolean includeAllocatedBudget, com.azure.core.util.Context context) Get details for a specific grant linked to the provided billing account and billing profile.com.azure.core.http.rest.PagedIterable<GrantDetails> Get details for a specific grant linked to the provided billing account and billing profile.com.azure.core.http.rest.PagedIterable<GrantDetails> list(String billingAccountName, String billingProfileName, Boolean includeAllocatedBudget, com.azure.core.util.Context context) Get details for a specific grant linked to the provided billing account and billing profile.com.azure.core.http.rest.PagedIterable<GrantDetails> listAll()Get a list of grants that Microsoft has provided.com.azure.core.http.rest.PagedIterable<GrantDetails> Get a list of grants that Microsoft has provided.
-
Method Details
-
listAll
com.azure.core.http.rest.PagedIterable<GrantDetails> listAll()Get a list of grants that Microsoft has provided.- Returns:
- a list of grants that Microsoft has provided as paginated response with
PagedIterable. - Throws:
com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listAll
com.azure.core.http.rest.PagedIterable<GrantDetails> listAll(Boolean includeAllocatedBudget, com.azure.core.util.Context context) Get a list of grants that Microsoft has provided.- Parameters:
includeAllocatedBudget- May be used to include information about budget that has been allocated.context- The context to associate with this operation.- Returns:
- a list of grants that Microsoft has provided as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<GrantDetails> list(String billingAccountName, String billingProfileName) Get details for a specific grant linked to the provided billing account and billing profile.- Parameters:
billingAccountName- The ID that uniquely identifies a billing account.billingProfileName- The ID that uniquely identifies a billing profile.- Returns:
- details for a specific grant linked to the provided billing account and billing profile as paginated
response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<GrantDetails> list(String billingAccountName, String billingProfileName, Boolean includeAllocatedBudget, com.azure.core.util.Context context) Get details for a specific grant linked to the provided billing account and billing profile.- Parameters:
billingAccountName- The ID that uniquely identifies a billing account.billingProfileName- The ID that uniquely identifies a billing profile.includeAllocatedBudget- May be used to include information about budget that has been allocated.context- The context to associate with this operation.- Returns:
- details for a specific grant linked to the provided billing account and billing profile as paginated
response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<GrantDetails> getWithResponse(String billingAccountName, String billingProfileName, Boolean includeAllocatedBudget, com.azure.core.util.Context context) Get details for a specific grant linked to the provided billing account and billing profile.- Parameters:
billingAccountName- The ID that uniquely identifies a billing account.billingProfileName- The ID that uniquely identifies a billing profile.includeAllocatedBudget- May be used to include information about budget that has been allocated.context- The context to associate with this operation.- Returns:
- details for a specific grant linked to the provided billing account and billing profile along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
get
Get details for a specific grant linked to the provided billing account and billing profile.- Parameters:
billingAccountName- The ID that uniquely identifies a billing account.billingProfileName- The ID that uniquely identifies a billing profile.- Returns:
- details for a specific grant linked to the provided billing account and billing profile.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-