Interface IscsiTargetsClient


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

    • listByDiskPool

      com.azure.core.http.rest.PagedIterable<IscsiTargetInner> listByDiskPool(String resourceGroupName, String diskPoolName)
      Get iSCSI Targets in a Disk pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskPoolName - The name of the Disk Pool.
      Returns:
      iSCSI Targets in a Disk pool 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.
    • listByDiskPool

      com.azure.core.http.rest.PagedIterable<IscsiTargetInner> listByDiskPool(String resourceGroupName, String diskPoolName, com.azure.core.util.Context context)
      Get iSCSI Targets in a Disk pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskPoolName - The name of the Disk Pool.
      context - The context to associate with this operation.
      Returns:
      iSCSI Targets in a Disk pool 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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<IscsiTargetInner>,IscsiTargetInner> beginCreateOrUpdate(String resourceGroupName, String diskPoolName, String iscsiTargetName, IscsiTargetCreate iscsiTargetCreatePayload)
      Create or Update an iSCSI Target.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskPoolName - The name of the Disk Pool.
      iscsiTargetName - The name of the iSCSI Target.
      iscsiTargetCreatePayload - Request payload for iSCSI Target create operation.
      Returns:
      the SyncPoller for polling of response for iSCSI Target requests.
      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<IscsiTargetInner>,IscsiTargetInner> beginCreateOrUpdate(String resourceGroupName, String diskPoolName, String iscsiTargetName, IscsiTargetCreate iscsiTargetCreatePayload, com.azure.core.util.Context context)
      Create or Update an iSCSI Target.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskPoolName - The name of the Disk Pool.
      iscsiTargetName - The name of the iSCSI Target.
      iscsiTargetCreatePayload - Request payload for iSCSI Target create operation.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of response for iSCSI Target requests.
      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

      IscsiTargetInner createOrUpdate(String resourceGroupName, String diskPoolName, String iscsiTargetName, IscsiTargetCreate iscsiTargetCreatePayload)
      Create or Update an iSCSI Target.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskPoolName - The name of the Disk Pool.
      iscsiTargetName - The name of the iSCSI Target.
      iscsiTargetCreatePayload - Request payload for iSCSI Target create operation.
      Returns:
      response for iSCSI Target requests.
      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

      IscsiTargetInner createOrUpdate(String resourceGroupName, String diskPoolName, String iscsiTargetName, IscsiTargetCreate iscsiTargetCreatePayload, com.azure.core.util.Context context)
      Create or Update an iSCSI Target.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskPoolName - The name of the Disk Pool.
      iscsiTargetName - The name of the iSCSI Target.
      iscsiTargetCreatePayload - Request payload for iSCSI Target create operation.
      context - The context to associate with this operation.
      Returns:
      response for iSCSI Target requests.
      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<IscsiTargetInner>,IscsiTargetInner> beginUpdate(String resourceGroupName, String diskPoolName, String iscsiTargetName, IscsiTargetUpdate iscsiTargetUpdatePayload)
      Update an iSCSI Target.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskPoolName - The name of the Disk Pool.
      iscsiTargetName - The name of the iSCSI Target.
      iscsiTargetUpdatePayload - Request payload for iSCSI Target update operation.
      Returns:
      the SyncPoller for polling of response for iSCSI Target requests.
      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<IscsiTargetInner>,IscsiTargetInner> beginUpdate(String resourceGroupName, String diskPoolName, String iscsiTargetName, IscsiTargetUpdate iscsiTargetUpdatePayload, com.azure.core.util.Context context)
      Update an iSCSI Target.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskPoolName - The name of the Disk Pool.
      iscsiTargetName - The name of the iSCSI Target.
      iscsiTargetUpdatePayload - Request payload for iSCSI Target update operation.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of response for iSCSI Target requests.
      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

      IscsiTargetInner update(String resourceGroupName, String diskPoolName, String iscsiTargetName, IscsiTargetUpdate iscsiTargetUpdatePayload)
      Update an iSCSI Target.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskPoolName - The name of the Disk Pool.
      iscsiTargetName - The name of the iSCSI Target.
      iscsiTargetUpdatePayload - Request payload for iSCSI Target update operation.
      Returns:
      response for iSCSI Target requests.
      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

      IscsiTargetInner update(String resourceGroupName, String diskPoolName, String iscsiTargetName, IscsiTargetUpdate iscsiTargetUpdatePayload, com.azure.core.util.Context context)
      Update an iSCSI Target.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskPoolName - The name of the Disk Pool.
      iscsiTargetName - The name of the iSCSI Target.
      iscsiTargetUpdatePayload - Request payload for iSCSI Target update operation.
      context - The context to associate with this operation.
      Returns:
      response for iSCSI Target requests.
      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 diskPoolName, String iscsiTargetName)
      Delete an iSCSI Target.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskPoolName - The name of the Disk Pool.
      iscsiTargetName - The name of the iSCSI Target.
      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 diskPoolName, String iscsiTargetName, com.azure.core.util.Context context)
      Delete an iSCSI Target.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskPoolName - The name of the Disk Pool.
      iscsiTargetName - The name of the iSCSI Target.
      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 diskPoolName, String iscsiTargetName)
      Delete an iSCSI Target.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskPoolName - The name of the Disk Pool.
      iscsiTargetName - The name of the iSCSI Target.
      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 diskPoolName, String iscsiTargetName, com.azure.core.util.Context context)
      Delete an iSCSI Target.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskPoolName - The name of the Disk Pool.
      iscsiTargetName - The name of the iSCSI Target.
      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.
    • getWithResponse

      com.azure.core.http.rest.Response<IscsiTargetInner> getWithResponse(String resourceGroupName, String diskPoolName, String iscsiTargetName, com.azure.core.util.Context context)
      Get an iSCSI Target.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskPoolName - The name of the Disk Pool.
      iscsiTargetName - The name of the iSCSI Target.
      context - The context to associate with this operation.
      Returns:
      an iSCSI Target 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.
    • get

      IscsiTargetInner get(String resourceGroupName, String diskPoolName, String iscsiTargetName)
      Get an iSCSI Target.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      diskPoolName - The name of the Disk Pool.
      iscsiTargetName - The name of the iSCSI Target.
      Returns:
      an iSCSI Target.
      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.