Interface CustomAssessmentAutomationsClient


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

    • getByResourceGroup

      CustomAssessmentAutomationInner getByResourceGroup(String resourceGroupName, String customAssessmentAutomationName)
      Gets a custom assessment automation

      Gets a single custom assessment automation by name for the provided subscription and resource group.

      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      customAssessmentAutomationName - Name of the Custom Assessment Automation.
      Returns:
      a single custom assessment automation by name for the provided subscription and resource group.
      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.
    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<CustomAssessmentAutomationInner> getByResourceGroupWithResponse(String resourceGroupName, String customAssessmentAutomationName, com.azure.core.util.Context context)
      Gets a custom assessment automation

      Gets a single custom assessment automation by name for the provided subscription and resource group.

      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      customAssessmentAutomationName - Name of the Custom Assessment Automation.
      context - The context to associate with this operation.
      Returns:
      a single custom assessment automation by name for the provided subscription and resource group 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.
    • create

      CustomAssessmentAutomationInner create(String resourceGroupName, String customAssessmentAutomationName, CustomAssessmentAutomationRequest customAssessmentAutomationBody)
      Creates a custom assessment automation

      Creates or updates a custom assessment automation for the provided subscription. Please note that providing an existing custom assessment automation will replace the existing record.

      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      customAssessmentAutomationName - Name of the Custom Assessment Automation.
      customAssessmentAutomationBody - Custom Assessment Automation body.
      Returns:
      custom Assessment Automation.
      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.
    • createWithResponse

      com.azure.core.http.rest.Response<CustomAssessmentAutomationInner> createWithResponse(String resourceGroupName, String customAssessmentAutomationName, CustomAssessmentAutomationRequest customAssessmentAutomationBody, com.azure.core.util.Context context)
      Creates a custom assessment automation

      Creates or updates a custom assessment automation for the provided subscription. Please note that providing an existing custom assessment automation will replace the existing record.

      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      customAssessmentAutomationName - Name of the Custom Assessment Automation.
      customAssessmentAutomationBody - Custom Assessment Automation body.
      context - The context to associate with this operation.
      Returns:
      custom Assessment Automation 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.
    • delete

      void delete(String resourceGroupName, String customAssessmentAutomationName)
      Deletes a custom assessment automation

      Deletes a custom assessment automation by name for a provided subscription.

      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      customAssessmentAutomationName - Name of the Custom Assessment Automation.
      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 customAssessmentAutomationName, com.azure.core.util.Context context)
      Deletes a custom assessment automation

      Deletes a custom assessment automation by name for a provided subscription.

      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      customAssessmentAutomationName - Name of the Custom Assessment Automation.
      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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<CustomAssessmentAutomationInner> listByResourceGroup(String resourceGroupName)
      List custom assessment automations in a subscription and a resource group

      List custom assessment automations by provided subscription and resource group.

      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      Returns:
      a list of Custom Assessment Automations 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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<CustomAssessmentAutomationInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      List custom assessment automations in a subscription and a resource group

      List custom assessment automations by provided subscription and resource group.

      Parameters:
      resourceGroupName - The name of the resource group within the user's subscription. The name is case insensitive.
      context - The context to associate with this operation.
      Returns:
      a list of Custom Assessment Automations 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<CustomAssessmentAutomationInner> list()
      List custom assessment automations in a subscription

      List custom assessment automations by provided subscription.

      Returns:
      a list of Custom Assessment Automations 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.
    • list

      com.azure.core.http.rest.PagedIterable<CustomAssessmentAutomationInner> list(com.azure.core.util.Context context)
      List custom assessment automations in a subscription

      List custom assessment automations by provided subscription.

      Parameters:
      context - The context to associate with this operation.
      Returns:
      a list of Custom Assessment Automations 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.