Interface ModulesClient


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

    • delete

      void delete(String resourceGroupName, String automationAccountName, String moduleName)
      Delete the module by name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      moduleName - The module 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.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String automationAccountName, String moduleName, com.azure.core.util.Context context)
      Delete the module by name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      moduleName - The module 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.
    • get

      ModuleInner get(String resourceGroupName, String automationAccountName, String moduleName)
      Retrieve the module identified by module name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      moduleName - The module name.
      Returns:
      definition of the module type.
      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<ModuleInner> getWithResponse(String resourceGroupName, String automationAccountName, String moduleName, com.azure.core.util.Context context)
      Retrieve the module identified by module name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      moduleName - The module name.
      context - The context to associate with this operation.
      Returns:
      definition of the module type 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

      ModuleInner createOrUpdate(String resourceGroupName, String automationAccountName, String moduleName, ModuleCreateOrUpdateParameters parameters)
      Create or Update the module identified by module name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      moduleName - The name of module.
      parameters - The create or update parameters for module.
      Returns:
      definition of the module type.
      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.
    • createOrUpdateWithResponse

      com.azure.core.http.rest.Response<ModuleInner> createOrUpdateWithResponse(String resourceGroupName, String automationAccountName, String moduleName, ModuleCreateOrUpdateParameters parameters, com.azure.core.util.Context context)
      Create or Update the module identified by module name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      moduleName - The name of module.
      parameters - The create or update parameters for module.
      context - The context to associate with this operation.
      Returns:
      definition of the module type 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.
    • update

      ModuleInner update(String resourceGroupName, String automationAccountName, String moduleName, ModuleUpdateParameters parameters)
      Update the module identified by module name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      moduleName - The name of module.
      parameters - The update parameters for module.
      Returns:
      definition of the module type.
      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.
    • updateWithResponse

      com.azure.core.http.rest.Response<ModuleInner> updateWithResponse(String resourceGroupName, String automationAccountName, String moduleName, ModuleUpdateParameters parameters, com.azure.core.util.Context context)
      Update the module identified by module name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      moduleName - The name of module.
      parameters - The update parameters for module.
      context - The context to associate with this operation.
      Returns:
      definition of the module type 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.
    • listByAutomationAccount

      com.azure.core.http.rest.PagedIterable<ModuleInner> listByAutomationAccount(String resourceGroupName, String automationAccountName)
      Retrieve a list of modules.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      Returns:
      the response model for the list module operation 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.
    • listByAutomationAccount

      com.azure.core.http.rest.PagedIterable<ModuleInner> listByAutomationAccount(String resourceGroupName, String automationAccountName, com.azure.core.util.Context context)
      Retrieve a list of modules.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      context - The context to associate with this operation.
      Returns:
      the response model for the list module operation 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.