Interface VirtualMachineTemplatesClient
-
public interface VirtualMachineTemplatesClient
An instance of this class provides access to all the operations defined in VirtualMachineTemplatesClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineTemplateInner>,VirtualMachineTemplateInner>
beginCreateOrUpdate(String resourceGroupName, String virtualMachineTemplateName, VirtualMachineTemplateInner body)
Onboards the ScVmm VM Template as an Azure VM Template resource.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineTemplateInner>,VirtualMachineTemplateInner>
beginCreateOrUpdate(String resourceGroupName, String virtualMachineTemplateName, VirtualMachineTemplateInner body, com.azure.core.util.Context context)
Onboards the ScVmm VM Template as an Azure VM Template resource.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginDelete(String resourceGroupName, String virtualMachineTemplateName, Boolean force)
Deregisters the ScVmm VM Template from Azure.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)
Deregisters the ScVmm VM Template from Azure.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineTemplateInner>,VirtualMachineTemplateInner>
beginUpdate(String resourceGroupName, String virtualMachineTemplateName, ResourcePatch body)
Updates the VirtualMachineTemplate resource.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineTemplateInner>,VirtualMachineTemplateInner>
beginUpdate(String resourceGroupName, String virtualMachineTemplateName, ResourcePatch body, com.azure.core.util.Context context)
Updates the VirtualMachineTemplate resource.VirtualMachineTemplateInner
createOrUpdate(String resourceGroupName, String virtualMachineTemplateName, VirtualMachineTemplateInner body)
Onboards the ScVmm VM Template as an Azure VM Template resource.VirtualMachineTemplateInner
createOrUpdate(String resourceGroupName, String virtualMachineTemplateName, VirtualMachineTemplateInner body, com.azure.core.util.Context context)
Onboards the ScVmm VM Template as an Azure VM Template resource.void
delete(String resourceGroupName, String virtualMachineTemplateName)
Deregisters the ScVmm VM Template from Azure.void
delete(String resourceGroupName, String virtualMachineTemplateName, Boolean force)
Deregisters the ScVmm VM Template from Azure.void
delete(String resourceGroupName, String virtualMachineTemplateName, Boolean force, com.azure.core.util.Context context)
Deregisters the ScVmm VM Template from Azure.VirtualMachineTemplateInner
getByResourceGroup(String resourceGroupName, String virtualMachineTemplateName)
Implements VirtualMachineTemplate GET method.com.azure.core.http.rest.Response<VirtualMachineTemplateInner>
getByResourceGroupWithResponse(String resourceGroupName, String virtualMachineTemplateName, com.azure.core.util.Context context)
Implements VirtualMachineTemplate GET method.com.azure.core.http.rest.PagedIterable<VirtualMachineTemplateInner>
list()
List of VirtualMachineTemplates in a subscription.com.azure.core.http.rest.PagedIterable<VirtualMachineTemplateInner>
list(com.azure.core.util.Context context)
List of VirtualMachineTemplates in a subscription.com.azure.core.http.rest.PagedIterable<VirtualMachineTemplateInner>
listByResourceGroup(String resourceGroupName)
List of VirtualMachineTemplates in a resource group.com.azure.core.http.rest.PagedIterable<VirtualMachineTemplateInner>
listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
List of VirtualMachineTemplates in a resource group.VirtualMachineTemplateInner
update(String resourceGroupName, String virtualMachineTemplateName, ResourcePatch body)
Updates the VirtualMachineTemplate resource.VirtualMachineTemplateInner
update(String resourceGroupName, String virtualMachineTemplateName, ResourcePatch body, com.azure.core.util.Context context)
Updates the VirtualMachineTemplate resource.
-
-
-
Method Detail
-
getByResourceGroup
VirtualMachineTemplateInner getByResourceGroup(String resourceGroupName, String virtualMachineTemplateName)
Implements VirtualMachineTemplate GET method.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineTemplateName
- Name of the VirtualMachineTemplate.- Returns:
- the VirtualMachineTemplates resource definition.
- 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)
Implements VirtualMachineTemplate GET method.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineTemplateName
- Name of the VirtualMachineTemplate.context
- The context to associate with this operation.- Returns:
- the VirtualMachineTemplates resource definition 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineTemplateInner>,VirtualMachineTemplateInner> beginCreateOrUpdate(String resourceGroupName, String virtualMachineTemplateName, VirtualMachineTemplateInner body)
Onboards the ScVmm VM Template as an Azure VM Template resource.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineTemplateName
- Name of the VirtualMachineTemplate.body
- Request payload.- Returns:
- the
SyncPoller
for polling of the VirtualMachineTemplates resource definition. - 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineTemplateInner>,VirtualMachineTemplateInner> beginCreateOrUpdate(String resourceGroupName, String virtualMachineTemplateName, VirtualMachineTemplateInner body, com.azure.core.util.Context context)
Onboards the ScVmm VM Template as an Azure VM Template resource.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineTemplateName
- Name of the VirtualMachineTemplate.body
- Request payload.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of the VirtualMachineTemplates resource definition. - 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
VirtualMachineTemplateInner createOrUpdate(String resourceGroupName, String virtualMachineTemplateName, VirtualMachineTemplateInner body)
Onboards the ScVmm VM Template as an Azure VM Template resource.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineTemplateName
- Name of the VirtualMachineTemplate.body
- Request payload.- Returns:
- the VirtualMachineTemplates resource definition.
- 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
VirtualMachineTemplateInner createOrUpdate(String resourceGroupName, String virtualMachineTemplateName, VirtualMachineTemplateInner body, com.azure.core.util.Context context)
Onboards the ScVmm VM Template as an Azure VM Template resource.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineTemplateName
- Name of the VirtualMachineTemplate.body
- Request payload.context
- The context to associate with this operation.- Returns:
- the VirtualMachineTemplates resource definition.
- 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)
Deregisters the ScVmm VM Template from Azure.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineTemplateName
- Name of the VirtualMachineTemplate.force
- Forces the resource to be deleted from azure. The corresponding CR would be attempted to be deleted too.- 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)
Deregisters the ScVmm VM Template from Azure.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineTemplateName
- Name of the VirtualMachineTemplate.force
- Forces the resource to be deleted from azure. The corresponding CR would be attempted to be deleted too.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)
Deregisters the ScVmm VM Template from Azure.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineTemplateName
- Name of the VirtualMachineTemplate.force
- Forces the resource to be deleted from azure. The corresponding CR would be attempted to be deleted too.- 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)
Deregisters the ScVmm VM Template from Azure.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineTemplateName
- Name of 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.
-
delete
void delete(String resourceGroupName, String virtualMachineTemplateName, Boolean force, com.azure.core.util.Context context)
Deregisters the ScVmm VM Template from Azure.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineTemplateName
- Name of the VirtualMachineTemplate.force
- Forces the resource to be deleted from azure. The corresponding CR would be attempted to be deleted too.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.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineTemplateInner>,VirtualMachineTemplateInner> beginUpdate(String resourceGroupName, String virtualMachineTemplateName, ResourcePatch body)
Updates the VirtualMachineTemplate resource.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineTemplateName
- Name of the VirtualMachineTemplate.body
- VirtualMachineTemplates patch details.- Returns:
- the
SyncPoller
for polling of the VirtualMachineTemplates resource definition. - 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.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VirtualMachineTemplateInner>,VirtualMachineTemplateInner> beginUpdate(String resourceGroupName, String virtualMachineTemplateName, ResourcePatch body, com.azure.core.util.Context context)
Updates the VirtualMachineTemplate resource.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineTemplateName
- Name of the VirtualMachineTemplate.body
- VirtualMachineTemplates patch details.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of the VirtualMachineTemplates resource definition. - 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, ResourcePatch body)
Updates the VirtualMachineTemplate resource.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineTemplateName
- Name of the VirtualMachineTemplate.body
- VirtualMachineTemplates patch details.- Returns:
- the VirtualMachineTemplates resource definition.
- 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, ResourcePatch body, com.azure.core.util.Context context)
Updates the VirtualMachineTemplate resource.- Parameters:
resourceGroupName
- The name of the resource group.virtualMachineTemplateName
- Name of the VirtualMachineTemplate.body
- VirtualMachineTemplates patch details.context
- The context to associate with this operation.- Returns:
- the VirtualMachineTemplates resource definition.
- 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)
List of VirtualMachineTemplates in a resource group.- Parameters:
resourceGroupName
- The name of the resource group.- 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)
List of VirtualMachineTemplates in a resource group.- Parameters:
resourceGroupName
- The name of the resource group.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.
-
list
com.azure.core.http.rest.PagedIterable<VirtualMachineTemplateInner> list()
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)
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.
-
-