com.azure.resourcemanager.storagecache.fluent.StorageTargetsClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-storagecache Show documentation
Show all versions of azure-resourcemanager-storagecache Show documentation
This package contains Microsoft Azure SDK for StorageCache Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Managed Lustre provides a fully managed Lustre® file system, integrated with Blob storage, for use on demand. These operations create and manage Azure Managed Lustre file systems. Package tag package-2024-03.
The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.storagecache.fluent;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.storagecache.fluent.models.StorageTargetInner;
/**
* An instance of this class provides access to all the operations defined in StorageTargetsClient.
*/
public interface StorageTargetsClient {
/**
* Tells a storage target to refresh its DNS information.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param 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.
* @param storageTargetName Name of Storage Target.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDnsRefresh(String resourceGroupName, String cacheName,
String storageTargetName);
/**
* Tells a storage target to refresh its DNS information.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param 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.
* @param storageTargetName Name of Storage Target.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDnsRefresh(String resourceGroupName, String cacheName,
String storageTargetName, Context context);
/**
* Tells a storage target to refresh its DNS information.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param 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.
* @param storageTargetName Name of Storage Target.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void dnsRefresh(String resourceGroupName, String cacheName, String storageTargetName);
/**
* Tells a storage target to refresh its DNS information.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param 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.
* @param storageTargetName Name of Storage Target.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void dnsRefresh(String resourceGroupName, String cacheName, String storageTargetName, Context context);
/**
* Returns a list of Storage Targets for the specified cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of Storage Targets as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByCache(String resourceGroupName, String cacheName);
/**
* Returns a list of Storage Targets for the specified cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param 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.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of Storage Targets as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByCache(String resourceGroupName, String cacheName, 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.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param 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.
* @param storageTargetName Name of Storage Target.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(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.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param 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.
* @param storageTargetName Name of Storage Target.
* @param 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.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String cacheName, String storageTargetName,
String force, 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.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param 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.
* @param storageTargetName Name of Storage Target.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
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.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param 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.
* @param storageTargetName Name of Storage Target.
* @param 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.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String cacheName, String storageTargetName, String force, Context context);
/**
* Returns a Storage Target from a cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param 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.
* @param storageTargetName Name of Storage Target.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return type of the Storage Target along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String resourceGroupName, String cacheName, String storageTargetName,
Context context);
/**
* Returns a Storage Target from a cache.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param 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.
* @param storageTargetName Name of Storage Target.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return type of the Storage Target.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
StorageTargetInner get(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.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param 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.
* @param storageTargetName Name of Storage Target.
* @param storagetarget Object containing the definition of a Storage Target.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of type of the Storage Target.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, 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.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param 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.
* @param storageTargetName Name of Storage Target.
* @param storagetarget Object containing the definition of a Storage Target.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of type of the Storage Target.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, StorageTargetInner> beginCreateOrUpdate(String resourceGroupName,
String cacheName, String storageTargetName, StorageTargetInner storagetarget, 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.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param 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.
* @param storageTargetName Name of Storage Target.
* @param storagetarget Object containing the definition of a Storage Target.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return type of the Storage Target.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
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.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param 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.
* @param storageTargetName Name of Storage Target.
* @param storagetarget Object containing the definition of a Storage Target.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return type of the Storage Target.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
StorageTargetInner createOrUpdate(String resourceGroupName, String cacheName, String storageTargetName,
StorageTargetInner storagetarget, Context context);
/**
* Tells a storage target to restore its settings to their default values.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param 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.
* @param storageTargetName Name of Storage Target.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginRestoreDefaults(String resourceGroupName, String cacheName,
String storageTargetName);
/**
* Tells a storage target to restore its settings to their default values.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param 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.
* @param storageTargetName Name of Storage Target.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginRestoreDefaults(String resourceGroupName, String cacheName,
String storageTargetName, Context context);
/**
* Tells a storage target to restore its settings to their default values.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param 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.
* @param storageTargetName Name of Storage Target.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void restoreDefaults(String resourceGroupName, String cacheName, String storageTargetName);
/**
* Tells a storage target to restore its settings to their default values.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param 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.
* @param storageTargetName Name of Storage Target.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void restoreDefaults(String resourceGroupName, String cacheName, String storageTargetName, Context context);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy