Interface GuestAgents


public interface GuestAgents
Resource collection API of GuestAgents.
  • Method Details

    • get

      GuestAgent get(String resourceGroupName, String virtualMachineName, String name)
      Gets GuestAgent.

      Implements GuestAgent GET method.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualMachineName - Name of the vm.
      name - Name of the GuestAgent.
      Returns:
      defines the GuestAgent.
      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<GuestAgent> getWithResponse(String resourceGroupName, String virtualMachineName, String name, com.azure.core.util.Context context)
      Gets GuestAgent.

      Implements GuestAgent GET method.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualMachineName - Name of the vm.
      name - Name of the GuestAgent.
      context - The context to associate with this operation.
      Returns:
      defines the GuestAgent 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 virtualMachineName, String name)
      Deletes an GuestAgent.

      Implements GuestAgent DELETE method.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualMachineName - Name of the vm.
      name - Name of the GuestAgent.
      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 virtualMachineName, String name, com.azure.core.util.Context context)
      Deletes an GuestAgent.

      Implements GuestAgent DELETE method.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualMachineName - Name of the vm.
      name - Name of the GuestAgent.
      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.
    • listByVm

      com.azure.core.http.rest.PagedIterable<GuestAgent> listByVm(String resourceGroupName, String virtualMachineName)
      Implements GET GuestAgent in a vm.

      Returns the list of GuestAgent of the given vm.

      Parameters:
      resourceGroupName - The Resource Group Name.
      virtualMachineName - Name of the vm.
      Returns:
      list of GuestAgent 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.
    • listByVm

      com.azure.core.http.rest.PagedIterable<GuestAgent> listByVm(String resourceGroupName, String virtualMachineName, com.azure.core.util.Context context)
      Implements GET GuestAgent in a vm.

      Returns the list of GuestAgent of the given vm.

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

      GuestAgent getById(String id)
      Gets GuestAgent.

      Implements GuestAgent GET method.

      Parameters:
      id - the resource ID.
      Returns:
      defines the GuestAgent 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<GuestAgent> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Gets GuestAgent.

      Implements GuestAgent GET method.

      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      defines the GuestAgent 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

      void deleteById(String id)
      Deletes an GuestAgent.

      Implements GuestAgent 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

      void deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Deletes an GuestAgent.

      Implements GuestAgent DELETE method.

      Parameters:
      id - the resource ID.
      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 GuestAgent resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new GuestAgent definition.