Interface StorageTargetsClient


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

    • beginDnsRefresh

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDnsRefresh(String resourceGroupName, String cacheName, String storageTargetName)
      Tells a storage target to refresh its DNS information.
      Parameters:
      resourceGroupName - Target resource group.
      cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
      storageTargetName - Name of Storage 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.
    • beginDnsRefresh

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDnsRefresh(String resourceGroupName, String cacheName, String storageTargetName, com.azure.core.util.Context context)
      Tells a storage target to refresh its DNS information.
      Parameters:
      resourceGroupName - Target resource group.
      cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
      storageTargetName - Name of Storage 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.
    • dnsRefresh

      void dnsRefresh(String resourceGroupName, String cacheName, String storageTargetName)
      Tells a storage target to refresh its DNS information.
      Parameters:
      resourceGroupName - Target resource group.
      cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
      storageTargetName - Name of Storage 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.
    • dnsRefresh

      void dnsRefresh(String resourceGroupName, String cacheName, String storageTargetName, com.azure.core.util.Context context)
      Tells a storage target to refresh its DNS information.
      Parameters:
      resourceGroupName - Target resource group.
      cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
      storageTargetName - Name of Storage 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.
    • listByCache

      com.azure.core.http.rest.PagedIterable<StorageTargetInner> listByCache(String resourceGroupName, String cacheName)
      Returns a list of Storage Targets for the specified Cache.
      Parameters:
      resourceGroupName - Target resource group.
      cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
      Returns:
      a list of Storage Targets 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.
    • listByCache

      com.azure.core.http.rest.PagedIterable<StorageTargetInner> listByCache(String resourceGroupName, String cacheName, com.azure.core.util.Context context)
      Returns a list of Storage Targets for the specified Cache.
      Parameters:
      resourceGroupName - Target resource group.
      cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
      context - The context to associate with this operation.
      Returns:
      a list of Storage Targets 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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String cacheName, String storageTargetName, String force)
      Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is down or unhealthy, the actual removal of the Storage Target may be delayed until the Cache is healthy again. Note that if the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be deleted.
      Parameters:
      resourceGroupName - Target resource group.
      cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
      storageTargetName - Name of Storage Target.
      force - Boolean value requesting the force delete operation for a storage target. Force delete discards unwritten-data in the cache instead of flushing it to back-end storage.
      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 cacheName, String storageTargetName, String force, com.azure.core.util.Context context)
      Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is down or unhealthy, the actual removal of the Storage Target may be delayed until the Cache is healthy again. Note that if the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be deleted.
      Parameters:
      resourceGroupName - Target resource group.
      cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
      storageTargetName - Name of Storage Target.
      force - Boolean value requesting the force delete operation for a storage target. Force delete discards unwritten-data in the cache instead of flushing it to back-end storage.
      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 cacheName, String storageTargetName, String force)
      Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is down or unhealthy, the actual removal of the Storage Target may be delayed until the Cache is healthy again. Note that if the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be deleted.
      Parameters:
      resourceGroupName - Target resource group.
      cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
      storageTargetName - Name of Storage Target.
      force - Boolean value requesting the force delete operation for a storage target. Force delete discards unwritten-data in the cache instead of flushing it to back-end storage.
      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 cacheName, String storageTargetName)
      Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is down or unhealthy, the actual removal of the Storage Target may be delayed until the Cache is healthy again. Note that if the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be deleted.
      Parameters:
      resourceGroupName - Target resource group.
      cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
      storageTargetName - Name of Storage 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 cacheName, String storageTargetName, String force, com.azure.core.util.Context context)
      Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is down or unhealthy, the actual removal of the Storage Target may be delayed until the Cache is healthy again. Note that if the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be deleted.
      Parameters:
      resourceGroupName - Target resource group.
      cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
      storageTargetName - Name of Storage Target.
      force - Boolean value requesting the force delete operation for a storage target. Force delete discards unwritten-data in the cache instead of flushing it to back-end storage.
      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.
    • get

      StorageTargetInner get(String resourceGroupName, String cacheName, String storageTargetName)
      Returns a Storage Target from a Cache.
      Parameters:
      resourceGroupName - Target resource group.
      cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
      storageTargetName - Name of Storage Target.
      Returns:
      type of the Storage 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.
    • getWithResponse

      com.azure.core.http.rest.Response<StorageTargetInner> getWithResponse(String resourceGroupName, String cacheName, String storageTargetName, com.azure.core.util.Context context)
      Returns a Storage Target from a Cache.
      Parameters:
      resourceGroupName - Target resource group.
      cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
      storageTargetName - Name of Storage Target.
      context - The context to associate with this operation.
      Returns:
      type of the Storage 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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<StorageTargetInner>,StorageTargetInner> beginCreateOrUpdate(String resourceGroupName, String cacheName, String storageTargetName, StorageTargetInner storagetarget)
      Create or update a Storage Target. This operation is allowed at any time, but if the Cache is down or unhealthy, the actual creation/modification of the Storage Target may be delayed until the Cache is healthy again.
      Parameters:
      resourceGroupName - Target resource group.
      cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
      storageTargetName - Name of Storage Target.
      storagetarget - Object containing the definition of a Storage Target.
      Returns:
      the SyncPoller for polling of type of the Storage 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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<StorageTargetInner>,StorageTargetInner> beginCreateOrUpdate(String resourceGroupName, String cacheName, String storageTargetName, StorageTargetInner storagetarget, com.azure.core.util.Context context)
      Create or update a Storage Target. This operation is allowed at any time, but if the Cache is down or unhealthy, the actual creation/modification of the Storage Target may be delayed until the Cache is healthy again.
      Parameters:
      resourceGroupName - Target resource group.
      cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
      storageTargetName - Name of Storage Target.
      storagetarget - Object containing the definition of a Storage Target.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of type of the Storage 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.
    • createOrUpdate

      StorageTargetInner createOrUpdate(String resourceGroupName, String cacheName, String storageTargetName, StorageTargetInner storagetarget)
      Create or update a Storage Target. This operation is allowed at any time, but if the Cache is down or unhealthy, the actual creation/modification of the Storage Target may be delayed until the Cache is healthy again.
      Parameters:
      resourceGroupName - Target resource group.
      cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
      storageTargetName - Name of Storage Target.
      storagetarget - Object containing the definition of a Storage Target.
      Returns:
      type of the Storage 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.
    • createOrUpdate

      StorageTargetInner createOrUpdate(String resourceGroupName, String cacheName, String storageTargetName)
      Create or update a Storage Target. This operation is allowed at any time, but if the Cache is down or unhealthy, the actual creation/modification of the Storage Target may be delayed until the Cache is healthy again.
      Parameters:
      resourceGroupName - Target resource group.
      cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
      storageTargetName - Name of Storage Target.
      Returns:
      type of the Storage 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.
    • createOrUpdate

      StorageTargetInner createOrUpdate(String resourceGroupName, String cacheName, String storageTargetName, StorageTargetInner storagetarget, com.azure.core.util.Context context)
      Create or update a Storage Target. This operation is allowed at any time, but if the Cache is down or unhealthy, the actual creation/modification of the Storage Target may be delayed until the Cache is healthy again.
      Parameters:
      resourceGroupName - Target resource group.
      cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.
      storageTargetName - Name of Storage Target.
      storagetarget - Object containing the definition of a Storage Target.
      context - The context to associate with this operation.
      Returns:
      type of the Storage 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.