Interface VirtualMachineTemplates
public interface VirtualMachineTemplates
Resource collection API of VirtualMachineTemplates.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new VirtualMachineTemplate resource.void
Deletes an virtual machine template.void
Deletes an virtual machine template.void
delete
(String resourceGroupName, String virtualMachineTemplateName, Boolean force, com.azure.core.util.Context context) Deletes an virtual machine template.void
deleteById
(String id) Deletes an virtual machine template.void
deleteByIdWithResponse
(String id, Boolean force, com.azure.core.util.Context context) Deletes an virtual machine template.Gets a virtual machine template.com.azure.core.http.rest.Response<VirtualMachineTemplate>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Gets a virtual machine template.getByResourceGroup
(String resourceGroupName, String virtualMachineTemplateName) Gets a virtual machine template.com.azure.core.http.rest.Response<VirtualMachineTemplate>
getByResourceGroupWithResponse
(String resourceGroupName, String virtualMachineTemplateName, com.azure.core.util.Context context) Gets a virtual machine template.com.azure.core.http.rest.PagedIterable<VirtualMachineTemplate>
list()
Implements GET virtualMachineTemplates in a subscription.com.azure.core.http.rest.PagedIterable<VirtualMachineTemplate>
list
(com.azure.core.util.Context context) Implements GET virtualMachineTemplates in a subscription.com.azure.core.http.rest.PagedIterable<VirtualMachineTemplate>
listByResourceGroup
(String resourceGroupName) Implements GET virtualMachineTemplates in a resource group.com.azure.core.http.rest.PagedIterable<VirtualMachineTemplate>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) Implements GET virtualMachineTemplates in a resource group.
-
Method Details
-
getByResourceGroup
VirtualMachineTemplate 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<VirtualMachineTemplate> 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.
-
delete
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
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<VirtualMachineTemplate> 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<VirtualMachineTemplate> 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<VirtualMachineTemplate> 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<VirtualMachineTemplate> 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.
-
getById
Gets a virtual machine template.Implements virtual machine template GET method.
- Parameters:
id
- the resource ID.- 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<VirtualMachineTemplate> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets a virtual machine template.Implements virtual machine template GET method.
- Parameters:
id
- the resource ID.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.
-
deleteById
Deletes an virtual machine template.Implements virtual machine template DELETE method.
- 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
Deletes an virtual machine template.Implements virtual machine template DELETE method.
- Parameters:
id
- the resource ID.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.
-
define
Begins definition for a new VirtualMachineTemplate resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new VirtualMachineTemplate definition.
-