Interface DscConfigurations


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

    • delete

      void delete(String resourceGroupName, String automationAccountName, String configurationName)
      Delete the dsc configuration identified by configuration name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      configurationName - The configuration 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 configurationName, com.azure.core.util.Context context)
      Delete the dsc configuration identified by configuration name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      configurationName - The configuration 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

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

      DscConfiguration createOrUpdate(String resourceGroupName, String automationAccountName, String configurationName, String parameters)
      Create the configuration identified by configuration name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      configurationName - The create or update parameters for configuration.
      parameters - The create or update parameters for configuration.
      Returns:
      definition of the configuration 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<DscConfiguration> createOrUpdateWithResponse(String resourceGroupName, String automationAccountName, String configurationName, String parameters, com.azure.core.util.Context context)
      Create the configuration identified by configuration name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      configurationName - The create or update parameters for configuration.
      parameters - The create or update parameters for configuration.
      context - The context to associate with this operation.
      Returns:
      definition of the configuration 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.
    • updateWithResponse

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

      String getContent(String resourceGroupName, String automationAccountName, String configurationName)
      Retrieve the configuration script identified by configuration name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      configurationName - The configuration name.
      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.
    • getContentWithResponse

      com.azure.core.http.rest.Response<String> getContentWithResponse(String resourceGroupName, String automationAccountName, String configurationName, com.azure.core.util.Context context)
      Retrieve the configuration script identified by configuration name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      configurationName - The configuration name.
      context - The context to associate with this operation.
      Returns:
      the response body 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<DscConfiguration> listByAutomationAccount(String resourceGroupName, String automationAccountName)
      Retrieve a list of configurations.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      Returns:
      the response model for the list configuration 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<DscConfiguration> listByAutomationAccount(String resourceGroupName, String automationAccountName, String filter, Integer skip, Integer top, String inlinecount, com.azure.core.util.Context context)
      Retrieve a list of configurations.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      filter - The filter to apply on the operation.
      skip - The number of rows to skip.
      top - The number of rows to take.
      inlinecount - Return total rows.
      context - The context to associate with this operation.
      Returns:
      the response model for the list configuration 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.
    • getById

      DscConfiguration getById(String id)
      Retrieve the configuration identified by configuration name.
      Parameters:
      id - the resource ID.
      Returns:
      definition of the configuration 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.
    • getByIdWithResponse

      com.azure.core.http.rest.Response<DscConfiguration> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Retrieve the configuration identified by configuration name.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      definition of the configuration 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.
    • deleteById

      void deleteById(String id)
      Delete the dsc configuration identified by configuration name.
      Parameters:
      id - the resource ID.
      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.
    • deleteByIdWithResponse

      com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Delete the dsc configuration identified by configuration name.
      Parameters:
      id - the resource ID.
      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.
    • define

      Begins definition for a new DscConfiguration resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new DscConfiguration definition.