Interface Machines
public interface Machines
Resource collection API of Machines.
-
Method Summary
Modifier and TypeMethodDescriptionassessPatches(String resourceGroupName, String name) The operation to assess patches on a hybrid machine identity in Azure.assessPatches(String resourceGroupName, String name, com.azure.core.util.Context context) The operation to assess patches on a hybrid machine identity in Azure.voiddeleteByResourceGroup(String resourceGroupName, String machineName) The operation to delete a hybrid machine.com.azure.core.http.rest.Response<Void> deleteByResourceGroupWithResponse(String resourceGroupName, String machineName, com.azure.core.util.Context context) The operation to delete a hybrid machine.getByResourceGroup(String resourceGroupName, String machineName) Retrieves information about the model view or the instance view of a hybrid machine.com.azure.core.http.rest.Response<Machine> getByResourceGroupWithResponse(String resourceGroupName, String machineName, InstanceViewTypes expand, com.azure.core.util.Context context) Retrieves information about the model view or the instance view of a hybrid machine.installPatches(String resourceGroupName, String name, MachineInstallPatchesParameters installPatchesInput) The operation to install patches on a hybrid machine identity in Azure.installPatches(String resourceGroupName, String name, MachineInstallPatchesParameters installPatchesInput, com.azure.core.util.Context context) The operation to install patches on a hybrid machine identity in Azure.com.azure.core.http.rest.PagedIterable<Machine> list()Lists all the hybrid machines in the specified subscription.com.azure.core.http.rest.PagedIterable<Machine> list(com.azure.core.util.Context context) Lists all the hybrid machines in the specified subscription.com.azure.core.http.rest.PagedIterable<Machine> listByResourceGroup(String resourceGroupName) Lists all the hybrid machines in the specified resource group.com.azure.core.http.rest.PagedIterable<Machine> listByResourceGroup(String resourceGroupName, String expand, com.azure.core.util.Context context) Lists all the hybrid machines in the specified resource group.
-
Method Details
-
deleteByResourceGroupWithResponse
com.azure.core.http.rest.Response<Void> deleteByResourceGroupWithResponse(String resourceGroupName, String machineName, com.azure.core.util.Context context) The operation to delete a hybrid machine.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.machineName- The name of the hybrid machine.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.
-
deleteByResourceGroup
The operation to delete a hybrid machine.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.machineName- The name of the hybrid machine.- 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<Machine> getByResourceGroupWithResponse(String resourceGroupName, String machineName, InstanceViewTypes expand, com.azure.core.util.Context context) Retrieves information about the model view or the instance view of a hybrid machine.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.machineName- The name of the hybrid machine.expand- The expand expression to apply on the operation.context- The context to associate with this operation.- Returns:
- describes a hybrid machine 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.
-
getByResourceGroup
Retrieves information about the model view or the instance view of a hybrid machine.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.machineName- The name of the hybrid machine.- Returns:
- describes a hybrid machine.
- 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.
-
assessPatches
The operation to assess patches on a hybrid machine identity in Azure.- Parameters:
resourceGroupName- The name of the resource group.name- The name of the hybrid machine.- Returns:
- describes the properties of an AssessPatches result.
- 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.
-
assessPatches
MachineAssessPatchesResult assessPatches(String resourceGroupName, String name, com.azure.core.util.Context context) The operation to assess patches on a hybrid machine identity in Azure.- Parameters:
resourceGroupName- The name of the resource group.name- The name of the hybrid machine.context- The context to associate with this operation.- Returns:
- describes the properties of an AssessPatches result.
- 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.
-
installPatches
MachineInstallPatchesResult installPatches(String resourceGroupName, String name, MachineInstallPatchesParameters installPatchesInput) The operation to install patches on a hybrid machine identity in Azure.- Parameters:
resourceGroupName- The name of the resource group.name- The name of the hybrid machine.installPatchesInput- Input for InstallPatches as directly received by the API.- Returns:
- the result summary of an installation 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.
-
installPatches
MachineInstallPatchesResult installPatches(String resourceGroupName, String name, MachineInstallPatchesParameters installPatchesInput, com.azure.core.util.Context context) The operation to install patches on a hybrid machine identity in Azure.- Parameters:
resourceGroupName- The name of the resource group.name- The name of the hybrid machine.installPatchesInput- Input for InstallPatches as directly received by the API.context- The context to associate with this operation.- Returns:
- the result summary of an installation 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.
-
listByResourceGroup
Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.- Returns:
- the List hybrid machine operation response 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<Machine> listByResourceGroup(String resourceGroupName, String expand, com.azure.core.util.Context context) Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.expand- Expands referenced resources.context- The context to associate with this operation.- Returns:
- the List hybrid machine operation response 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<Machine> list()Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines.- Returns:
- the List hybrid machine operation response 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
Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines.- Parameters:
context- The context to associate with this operation.- Returns:
- the List hybrid machine operation response 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.
-