Interface VirtualMachineTemplatesClient


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

    • beginCreate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineTemplateInner>,VirtualMachineTemplateInner> beginCreate(String resourceGroupName, String virtualMachineTemplateName, VirtualMachineTemplateInner body)
      Implements virtual machine template PUT method.

      Create Or Update virtual machine template.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualMachineTemplateName - Name of the virtual machine template resource.
      body - Request payload.
      Returns:
      the SyncPoller for polling of define the virtualMachineTemplate.
      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.
    • beginCreate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineTemplateInner>,VirtualMachineTemplateInner> beginCreate(String resourceGroupName, String virtualMachineTemplateName, VirtualMachineTemplateInner body, com.azure.core.util.Context context)
      Implements virtual machine template PUT method.

      Create Or Update virtual machine template.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualMachineTemplateName - Name of the virtual machine template resource.
      body - Request payload.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of define the virtualMachineTemplate.
      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

      VirtualMachineTemplateInner create(String resourceGroupName, String virtualMachineTemplateName, VirtualMachineTemplateInner body)
      Implements virtual machine template PUT method.

      Create Or Update virtual machine template.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualMachineTemplateName - Name of the virtual machine template resource.
      body - Request payload.
      Returns:
      define the virtualMachineTemplate.
      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

      VirtualMachineTemplateInner create(String resourceGroupName, String virtualMachineTemplateName)
      Implements virtual machine template PUT method.

      Create Or Update virtual machine template.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualMachineTemplateName - Name of the virtual machine template resource.
      Returns:
      define the virtualMachineTemplate.
      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

      VirtualMachineTemplateInner create(String resourceGroupName, String virtualMachineTemplateName, VirtualMachineTemplateInner body, com.azure.core.util.Context context)
      Implements virtual machine template PUT method.

      Create Or Update virtual machine template.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualMachineTemplateName - Name of the virtual machine template resource.
      body - Request payload.
      context - The context to associate with this operation.
      Returns:
      define the virtualMachineTemplate.
      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.
    • getByResourceGroup

      VirtualMachineTemplateInner getByResourceGroup(String resourceGroupName, String virtualMachineTemplateName)
      Gets a virtual machine template.

      Implements virtual machine template GET method.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualMachineTemplateName - Name of the virtual machine template resource.
      Returns:
      define the virtualMachineTemplate.
      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<VirtualMachineTemplateInner> getByResourceGroupWithResponse(String resourceGroupName, String virtualMachineTemplateName, com.azure.core.util.Context context)
      Gets a virtual machine template.

      Implements virtual machine template GET method.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualMachineTemplateName - Name of the virtual machine template resource.
      context - The context to associate with this operation.
      Returns:
      define the virtualMachineTemplate 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

      VirtualMachineTemplateInner update(String resourceGroupName, String virtualMachineTemplateName)
      Updates a virtual machine template.

      API to update certain properties of the virtual machine template resource.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualMachineTemplateName - Name of the virtual machine template resource.
      Returns:
      define the virtualMachineTemplate.
      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<VirtualMachineTemplateInner> updateWithResponse(String resourceGroupName, String virtualMachineTemplateName, ResourcePatch body, com.azure.core.util.Context context)
      Updates a virtual machine template.

      API to update certain properties of the virtual machine template resource.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualMachineTemplateName - Name of the virtual machine template resource.
      body - Resource properties to update.
      context - The context to associate with this operation.
      Returns:
      define the virtualMachineTemplate 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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String virtualMachineTemplateName, Boolean force)
      Deletes an virtual machine template.

      Implements virtual machine template DELETE method.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualMachineTemplateName - Name of the virtual machine template resource.
      force - Whether force delete was specified.
      Returns:
      the SyncPoller for polling of long-running operation.
      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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String virtualMachineTemplateName, Boolean force, com.azure.core.util.Context context)
      Deletes an virtual machine template.

      Implements virtual machine template DELETE method.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualMachineTemplateName - Name of the virtual machine template resource.
      force - Whether force delete was specified.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      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 virtualMachineTemplateName, Boolean force)
      Deletes an virtual machine template.

      Implements virtual machine template DELETE method.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualMachineTemplateName - Name of the virtual machine template resource.
      force - Whether force delete was specified.
      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 virtualMachineTemplateName)
      Deletes an virtual machine template.

      Implements virtual machine template DELETE method.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualMachineTemplateName - Name of the virtual machine template resource.
      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 virtualMachineTemplateName, Boolean force, com.azure.core.util.Context context)
      Deletes an virtual machine template.

      Implements virtual machine template DELETE method.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualMachineTemplateName - Name of the virtual machine template resource.
      force - Whether force delete was specified.
      context - The context to associate with this operation.
      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<VirtualMachineTemplateInner> list()
      Implements GET virtualMachineTemplates in a subscription.

      List of virtualMachineTemplates in a subscription.

      Returns:
      list of VirtualMachineTemplates 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<VirtualMachineTemplateInner> list(com.azure.core.util.Context context)
      Implements GET virtualMachineTemplates in a subscription.

      List of virtualMachineTemplates in a subscription.

      Parameters:
      context - The context to associate with this operation.
      Returns:
      list of VirtualMachineTemplates 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<VirtualMachineTemplateInner> listByResourceGroup(String resourceGroupName)
      Implements GET virtualMachineTemplates in a resource group.

      List of virtualMachineTemplates in a resource group.

      Parameters:
      resourceGroupName - The Resource Group Name.
      Returns:
      list of VirtualMachineTemplates 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<VirtualMachineTemplateInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      Implements GET virtualMachineTemplates in a resource group.

      List of virtualMachineTemplates in a resource group.

      Parameters:
      resourceGroupName - The Resource Group Name.
      context - The context to associate with this operation.
      Returns:
      list of VirtualMachineTemplates 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.