Interface AzureADAdministratorsClient


public interface AzureADAdministratorsClient
An instance of this class provides access to all the operations defined in AzureADAdministratorsClient.
  • Method Details

    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<AzureADAdministratorInner>,AzureADAdministratorInner> beginCreateOrUpdate(String resourceGroupName, String serverName, AdministratorName administratorName, AzureADAdministratorInner parameters)
      Creates or updates an existing Azure Active Directory administrator.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serverName - The name of the server.
      administratorName - The name of the Azure AD Administrator.
      parameters - The required parameters for creating or updating an aad administrator.
      Returns:
      the SyncPoller for polling of represents a Administrator.
      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<AzureADAdministratorInner>,AzureADAdministratorInner> beginCreateOrUpdate(String resourceGroupName, String serverName, AdministratorName administratorName, AzureADAdministratorInner parameters, com.azure.core.util.Context context)
      Creates or updates an existing Azure Active Directory administrator.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serverName - The name of the server.
      administratorName - The name of the Azure AD Administrator.
      parameters - The required parameters for creating or updating an aad administrator.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of represents a Administrator.
      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

      AzureADAdministratorInner createOrUpdate(String resourceGroupName, String serverName, AdministratorName administratorName, AzureADAdministratorInner parameters)
      Creates or updates an existing Azure Active Directory administrator.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serverName - The name of the server.
      administratorName - The name of the Azure AD Administrator.
      parameters - The required parameters for creating or updating an aad administrator.
      Returns:
      represents a Administrator.
      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

      AzureADAdministratorInner createOrUpdate(String resourceGroupName, String serverName, AdministratorName administratorName, AzureADAdministratorInner parameters, com.azure.core.util.Context context)
      Creates or updates an existing Azure Active Directory administrator.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serverName - The name of the server.
      administratorName - The name of the Azure AD Administrator.
      parameters - The required parameters for creating or updating an aad administrator.
      context - The context to associate with this operation.
      Returns:
      represents a Administrator.
      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 serverName, AdministratorName administratorName)
      Deletes an Azure AD Administrator.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serverName - The name of the server.
      administratorName - The name of the Azure AD Administrator.
      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 serverName, AdministratorName administratorName, com.azure.core.util.Context context)
      Deletes an Azure AD Administrator.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serverName - The name of the server.
      administratorName - The name of the Azure AD Administrator.
      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 serverName, AdministratorName administratorName)
      Deletes an Azure AD Administrator.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serverName - The name of the server.
      administratorName - The name of the Azure AD Administrator.
      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 serverName, AdministratorName administratorName, com.azure.core.util.Context context)
      Deletes an Azure AD Administrator.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serverName - The name of the server.
      administratorName - The name of the Azure AD Administrator.
      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.
    • getWithResponse

      com.azure.core.http.rest.Response<AzureADAdministratorInner> getWithResponse(String resourceGroupName, String serverName, AdministratorName administratorName, com.azure.core.util.Context context)
      Gets information about an azure ad administrator.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serverName - The name of the server.
      administratorName - The name of the Azure AD Administrator.
      context - The context to associate with this operation.
      Returns:
      information about an azure ad administrator 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

      AzureADAdministratorInner get(String resourceGroupName, String serverName, AdministratorName administratorName)
      Gets information about an azure ad administrator.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serverName - The name of the server.
      administratorName - The name of the Azure AD Administrator.
      Returns:
      information about an azure ad administrator.
      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.
    • listByServer

      com.azure.core.http.rest.PagedIterable<AzureADAdministratorInner> listByServer(String resourceGroupName, String serverName)
      List all the AAD administrators in a given server.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serverName - The name of the server.
      Returns:
      a List of azure ad administrators 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.
    • listByServer

      com.azure.core.http.rest.PagedIterable<AzureADAdministratorInner> listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context)
      List all the AAD administrators in a given server.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serverName - The name of the server.
      context - The context to associate with this operation.
      Returns:
      a List of azure ad administrators 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.