Interface ManagementAssociations


public interface ManagementAssociations
Resource collection API of ManagementAssociations.
  • Method Details

    • listBySubscriptionWithResponse

      com.azure.core.http.rest.Response<ManagementAssociationPropertiesList> listBySubscriptionWithResponse(com.azure.core.util.Context context)
      Retrieves the ManagementAssociations list for the subscription

      Retrieves the ManagementAssociations list.

      Parameters:
      context - The context to associate with this operation.
      Returns:
      the list of ManagementAssociation response 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.
    • listBySubscription

      Retrieves the ManagementAssociations list for the subscription

      Retrieves the ManagementAssociations list.

      Returns:
      the list of ManagementAssociation response.
      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.
    • createOrUpdateWithResponse

      com.azure.core.http.rest.Response<ManagementAssociation> createOrUpdateWithResponse(String resourceGroupName, String providerName, String resourceType, String resourceName, String managementAssociationName, ManagementAssociationInner parameters, com.azure.core.util.Context context)
      Create/Update ManagementAssociation.

      Creates or updates the ManagementAssociation.

      Parameters:
      resourceGroupName - The name of the resource group to get. The name is case insensitive.
      providerName - Provider name for the parent resource.
      resourceType - Resource type for the parent resource.
      resourceName - Parent resource name.
      managementAssociationName - User ManagementAssociation Name.
      parameters - The parameters required to create ManagementAssociation extension.
      context - The context to associate with this operation.
      Returns:
      the container for solution 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.
    • createOrUpdate

      ManagementAssociation createOrUpdate(String resourceGroupName, String providerName, String resourceType, String resourceName, String managementAssociationName, ManagementAssociationInner parameters)
      Create/Update ManagementAssociation.

      Creates or updates the ManagementAssociation.

      Parameters:
      resourceGroupName - The name of the resource group to get. The name is case insensitive.
      providerName - Provider name for the parent resource.
      resourceType - Resource type for the parent resource.
      resourceName - Parent resource name.
      managementAssociationName - User ManagementAssociation Name.
      parameters - The parameters required to create ManagementAssociation extension.
      Returns:
      the container for solution.
      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.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String providerName, String resourceType, String resourceName, String managementAssociationName, com.azure.core.util.Context context)
      Deletes the ManagementAssociation

      Deletes the ManagementAssociation in the subscription.

      Parameters:
      resourceGroupName - The name of the resource group to get. The name is case insensitive.
      providerName - Provider name for the parent resource.
      resourceType - Resource type for the parent resource.
      resourceName - Parent resource name.
      managementAssociationName - User ManagementAssociation Name.
      context - The context to associate with this operation.
      Returns:
      the 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.
    • delete

      void delete(String resourceGroupName, String providerName, String resourceType, String resourceName, String managementAssociationName)
      Deletes the ManagementAssociation

      Deletes the ManagementAssociation in the subscription.

      Parameters:
      resourceGroupName - The name of the resource group to get. The name is case insensitive.
      providerName - Provider name for the parent resource.
      resourceType - Resource type for the parent resource.
      resourceName - Parent resource name.
      managementAssociationName - User ManagementAssociation Name.
      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<ManagementAssociation> getWithResponse(String resourceGroupName, String providerName, String resourceType, String resourceName, String managementAssociationName, com.azure.core.util.Context context)
      Retrieve ManagementAssociation.

      Retrieves the user ManagementAssociation.

      Parameters:
      resourceGroupName - The name of the resource group to get. The name is case insensitive.
      providerName - Provider name for the parent resource.
      resourceType - Resource type for the parent resource.
      resourceName - Parent resource name.
      managementAssociationName - User ManagementAssociation Name.
      context - The context to associate with this operation.
      Returns:
      the container for solution 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

      ManagementAssociation get(String resourceGroupName, String providerName, String resourceType, String resourceName, String managementAssociationName)
      Retrieve ManagementAssociation.

      Retrieves the user ManagementAssociation.

      Parameters:
      resourceGroupName - The name of the resource group to get. The name is case insensitive.
      providerName - Provider name for the parent resource.
      resourceType - Resource type for the parent resource.
      resourceName - Parent resource name.
      managementAssociationName - User ManagementAssociation Name.
      Returns:
      the container for solution.
      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.