Interface DatabasePrincipalAssignmentsClient
public interface DatabasePrincipalAssignmentsClient
An instance of this class provides access to all the operations defined in DatabasePrincipalAssignmentsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabasePrincipalAssignmentInner>,
DatabasePrincipalAssignmentInner> beginCreateOrUpdate
(String resourceGroupName, String clusterName, String databaseName, String principalAssignmentName, DatabasePrincipalAssignmentInner parameters) Creates a Kusto cluster database principalAssignment.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabasePrincipalAssignmentInner>,
DatabasePrincipalAssignmentInner> beginCreateOrUpdate
(String resourceGroupName, String clusterName, String databaseName, String principalAssignmentName, DatabasePrincipalAssignmentInner parameters, com.azure.core.util.Context context) Creates a Kusto cluster database principalAssignment.beginDelete
(String resourceGroupName, String clusterName, String databaseName, String principalAssignmentName) Deletes a Kusto principalAssignment.beginDelete
(String resourceGroupName, String clusterName, String databaseName, String principalAssignmentName, com.azure.core.util.Context context) Deletes a Kusto principalAssignment.checkNameAvailability
(String resourceGroupName, String clusterName, String databaseName, DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName) Checks that the database principal assignment is valid and is not already in use.com.azure.core.http.rest.Response<CheckNameResultInner>
checkNameAvailabilityWithResponse
(String resourceGroupName, String clusterName, String databaseName, DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName, com.azure.core.util.Context context) Checks that the database principal assignment is valid and is not already in use.createOrUpdate
(String resourceGroupName, String clusterName, String databaseName, String principalAssignmentName, DatabasePrincipalAssignmentInner parameters) Creates a Kusto cluster database principalAssignment.createOrUpdate
(String resourceGroupName, String clusterName, String databaseName, String principalAssignmentName, DatabasePrincipalAssignmentInner parameters, com.azure.core.util.Context context) Creates a Kusto cluster database principalAssignment.void
delete
(String resourceGroupName, String clusterName, String databaseName, String principalAssignmentName) Deletes a Kusto principalAssignment.void
delete
(String resourceGroupName, String clusterName, String databaseName, String principalAssignmentName, com.azure.core.util.Context context) Deletes a Kusto principalAssignment.get
(String resourceGroupName, String clusterName, String databaseName, String principalAssignmentName) Gets a Kusto cluster database principalAssignment.com.azure.core.http.rest.Response<DatabasePrincipalAssignmentInner>
getWithResponse
(String resourceGroupName, String clusterName, String databaseName, String principalAssignmentName, com.azure.core.util.Context context) Gets a Kusto cluster database principalAssignment.com.azure.core.http.rest.PagedIterable<DatabasePrincipalAssignmentInner>
Lists all Kusto cluster database principalAssignments.com.azure.core.http.rest.PagedIterable<DatabasePrincipalAssignmentInner>
list
(String resourceGroupName, String clusterName, String databaseName, com.azure.core.util.Context context) Lists all Kusto cluster database principalAssignments.
-
Method Details
-
checkNameAvailability
CheckNameResultInner checkNameAvailability(String resourceGroupName, String clusterName, String databaseName, DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName) Checks that the database principal assignment is valid and is not already in use.- Parameters:
resourceGroupName
- The name of the resource group containing the Kusto cluster.clusterName
- The name of the Kusto cluster.databaseName
- The name of the database in the Kusto cluster.principalAssignmentName
- The name of the resource.- Returns:
- the result returned from a check name availability request.
- 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.
-
checkNameAvailabilityWithResponse
com.azure.core.http.rest.Response<CheckNameResultInner> checkNameAvailabilityWithResponse(String resourceGroupName, String clusterName, String databaseName, DatabasePrincipalAssignmentCheckNameRequest principalAssignmentName, com.azure.core.util.Context context) Checks that the database principal assignment is valid and is not already in use.- Parameters:
resourceGroupName
- The name of the resource group containing the Kusto cluster.clusterName
- The name of the Kusto cluster.databaseName
- The name of the database in the Kusto cluster.principalAssignmentName
- The name of the resource.context
- The context to associate with this operation.- Returns:
- the result returned from a check name availability request 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
DatabasePrincipalAssignmentInner get(String resourceGroupName, String clusterName, String databaseName, String principalAssignmentName) Gets a Kusto cluster database principalAssignment.- Parameters:
resourceGroupName
- The name of the resource group containing the Kusto cluster.clusterName
- The name of the Kusto cluster.databaseName
- The name of the database in the Kusto cluster.principalAssignmentName
- The name of the Kusto principalAssignment.- Returns:
- a Kusto cluster database principalAssignment.
- 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<DatabasePrincipalAssignmentInner> getWithResponse(String resourceGroupName, String clusterName, String databaseName, String principalAssignmentName, com.azure.core.util.Context context) Gets a Kusto cluster database principalAssignment.- Parameters:
resourceGroupName
- The name of the resource group containing the Kusto cluster.clusterName
- The name of the Kusto cluster.databaseName
- The name of the database in the Kusto cluster.principalAssignmentName
- The name of the Kusto principalAssignment.context
- The context to associate with this operation.- Returns:
- a Kusto cluster database principalAssignment 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabasePrincipalAssignmentInner>,DatabasePrincipalAssignmentInner> beginCreateOrUpdate(String resourceGroupName, String clusterName, String databaseName, String principalAssignmentName, DatabasePrincipalAssignmentInner parameters) Creates a Kusto cluster database principalAssignment.- Parameters:
resourceGroupName
- The name of the resource group containing the Kusto cluster.clusterName
- The name of the Kusto cluster.databaseName
- The name of the database in the Kusto cluster.principalAssignmentName
- The name of the Kusto principalAssignment.parameters
- The Kusto principalAssignments parameters supplied for the operation.- Returns:
- the
SyncPoller
for polling of class representing a database principal assignment. - 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<DatabasePrincipalAssignmentInner>,DatabasePrincipalAssignmentInner> beginCreateOrUpdate(String resourceGroupName, String clusterName, String databaseName, String principalAssignmentName, DatabasePrincipalAssignmentInner parameters, com.azure.core.util.Context context) Creates a Kusto cluster database principalAssignment.- Parameters:
resourceGroupName
- The name of the resource group containing the Kusto cluster.clusterName
- The name of the Kusto cluster.databaseName
- The name of the database in the Kusto cluster.principalAssignmentName
- The name of the Kusto principalAssignment.parameters
- The Kusto principalAssignments parameters supplied for the operation.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of class representing a database principal assignment. - 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.
-
createOrUpdate
DatabasePrincipalAssignmentInner createOrUpdate(String resourceGroupName, String clusterName, String databaseName, String principalAssignmentName, DatabasePrincipalAssignmentInner parameters) Creates a Kusto cluster database principalAssignment.- Parameters:
resourceGroupName
- The name of the resource group containing the Kusto cluster.clusterName
- The name of the Kusto cluster.databaseName
- The name of the database in the Kusto cluster.principalAssignmentName
- The name of the Kusto principalAssignment.parameters
- The Kusto principalAssignments parameters supplied for the operation.- Returns:
- class representing a database principal assignment.
- 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.
-
createOrUpdate
DatabasePrincipalAssignmentInner createOrUpdate(String resourceGroupName, String clusterName, String databaseName, String principalAssignmentName, DatabasePrincipalAssignmentInner parameters, com.azure.core.util.Context context) Creates a Kusto cluster database principalAssignment.- Parameters:
resourceGroupName
- The name of the resource group containing the Kusto cluster.clusterName
- The name of the Kusto cluster.databaseName
- The name of the database in the Kusto cluster.principalAssignmentName
- The name of the Kusto principalAssignment.parameters
- The Kusto principalAssignments parameters supplied for the operation.context
- The context to associate with this operation.- Returns:
- class representing a database principal assignment.
- 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String clusterName, String databaseName, String principalAssignmentName) Deletes a Kusto principalAssignment.- Parameters:
resourceGroupName
- The name of the resource group containing the Kusto cluster.clusterName
- The name of the Kusto cluster.databaseName
- The name of the database in the Kusto cluster.principalAssignmentName
- The name of the Kusto principalAssignment.- Returns:
- the
SyncPoller
for polling of long-running operation. - 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String clusterName, String databaseName, String principalAssignmentName, com.azure.core.util.Context context) Deletes a Kusto principalAssignment.- Parameters:
resourceGroupName
- The name of the resource group containing the Kusto cluster.clusterName
- The name of the Kusto cluster.databaseName
- The name of the database in the Kusto cluster.principalAssignmentName
- The name of the Kusto principalAssignment.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running operation. - 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.
-
delete
void delete(String resourceGroupName, String clusterName, String databaseName, String principalAssignmentName) Deletes a Kusto principalAssignment.- Parameters:
resourceGroupName
- The name of the resource group containing the Kusto cluster.clusterName
- The name of the Kusto cluster.databaseName
- The name of the database in the Kusto cluster.principalAssignmentName
- The name of the Kusto principalAssignment.- 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.
-
delete
void delete(String resourceGroupName, String clusterName, String databaseName, String principalAssignmentName, com.azure.core.util.Context context) Deletes a Kusto principalAssignment.- Parameters:
resourceGroupName
- The name of the resource group containing the Kusto cluster.clusterName
- The name of the Kusto cluster.databaseName
- The name of the database in the Kusto cluster.principalAssignmentName
- The name of the Kusto principalAssignment.context
- The context to associate with this operation.- 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<DatabasePrincipalAssignmentInner> list(String resourceGroupName, String clusterName, String databaseName) Lists all Kusto cluster database principalAssignments.- Parameters:
resourceGroupName
- The name of the resource group containing the Kusto cluster.clusterName
- The name of the Kusto cluster.databaseName
- The name of the database in the Kusto cluster.- Returns:
- the list Kusto database principal assignments operation response 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<DatabasePrincipalAssignmentInner> list(String resourceGroupName, String clusterName, String databaseName, com.azure.core.util.Context context) Lists all Kusto cluster database principalAssignments.- Parameters:
resourceGroupName
- The name of the resource group containing the Kusto cluster.clusterName
- The name of the Kusto cluster.databaseName
- The name of the database in the Kusto cluster.context
- The context to associate with this operation.- Returns:
- the list Kusto database principal assignments operation response 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.
-