Interface VariablesClient


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

    • createOrUpdate

      VariableInner createOrUpdate(String resourceGroupName, String automationAccountName, String variableName, VariableCreateOrUpdateParameters parameters)
      Create a variable.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      variableName - The variable name.
      parameters - The parameters supplied to the create or update variable operation.
      Returns:
      definition of the variable.
      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<VariableInner> createOrUpdateWithResponse(String resourceGroupName, String automationAccountName, String variableName, VariableCreateOrUpdateParameters parameters, com.azure.core.util.Context context)
      Create a variable.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      variableName - The variable name.
      parameters - The parameters supplied to the create or update variable operation.
      context - The context to associate with this operation.
      Returns:
      definition of the variable 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

      VariableInner update(String resourceGroupName, String automationAccountName, String variableName, VariableUpdateParameters parameters)
      Update a variable.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      variableName - The variable name.
      parameters - The parameters supplied to the update variable operation.
      Returns:
      definition of the variable.
      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<VariableInner> updateWithResponse(String resourceGroupName, String automationAccountName, String variableName, VariableUpdateParameters parameters, com.azure.core.util.Context context)
      Update a variable.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      variableName - The variable name.
      parameters - The parameters supplied to the update variable operation.
      context - The context to associate with this operation.
      Returns:
      definition of the variable 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 automationAccountName, String variableName)
      Delete the variable.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      variableName - The name of variable.
      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 variableName, com.azure.core.util.Context context)
      Delete the variable.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      variableName - The name of variable.
      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

      VariableInner get(String resourceGroupName, String automationAccountName, String variableName)
      Retrieve the variable identified by variable name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      variableName - The name of variable.
      Returns:
      definition of the variable.
      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<VariableInner> getWithResponse(String resourceGroupName, String automationAccountName, String variableName, com.azure.core.util.Context context)
      Retrieve the variable identified by variable name.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      variableName - The name of variable.
      context - The context to associate with this operation.
      Returns:
      definition of the variable 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<VariableInner> listByAutomationAccount(String resourceGroupName, String automationAccountName)
      Retrieve a list of variables.
      Parameters:
      resourceGroupName - Name of an Azure Resource group.
      automationAccountName - The name of the automation account.
      Returns:
      the response model for the list variables 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<VariableInner> listByAutomationAccount(String resourceGroupName, String automationAccountName, com.azure.core.util.Context context)
      Retrieve a list of variables.
      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 variables 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.