Interface CachesClient
-
public interface CachesClient
An instance of this class provides access to all the operations defined in CachesClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CacheInner>,CacheInner>
beginCreateOrUpdate(String resourceGroupName, String cacheName, CacheInner cache)
Create or update a Cache.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<CacheInner>,CacheInner>
beginCreateOrUpdate(String resourceGroupName, String cacheName, CacheInner cache, com.azure.core.util.Context context)
Create or update a Cache.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginDebugInfo(String resourceGroupName, String cacheName)
Tells a Cache to write generate debug info for support to process.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginDebugInfo(String resourceGroupName, String cacheName, com.azure.core.util.Context context)
Tells a Cache to write generate debug info for support to process.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginDelete(String resourceGroupName, String cacheName)
Schedules a Cache for deletion.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginDelete(String resourceGroupName, String cacheName, com.azure.core.util.Context context)
Schedules a Cache for deletion.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginFlush(String resourceGroupName, String cacheName)
Tells a Cache to write all dirty data to the Storage Target(s).com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginFlush(String resourceGroupName, String cacheName, com.azure.core.util.Context context)
Tells a Cache to write all dirty data to the Storage Target(s).com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginStart(String resourceGroupName, String cacheName)
Tells a Stopped state Cache to transition to Active state.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginStart(String resourceGroupName, String cacheName, com.azure.core.util.Context context)
Tells a Stopped state Cache to transition to Active state.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginStop(String resourceGroupName, String cacheName)
Tells an Active Cache to transition to Stopped state.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginStop(String resourceGroupName, String cacheName, com.azure.core.util.Context context)
Tells an Active Cache to transition to Stopped state.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginUpgradeFirmware(String resourceGroupName, String cacheName)
Upgrade a Cache's firmware if a new version is available.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>
beginUpgradeFirmware(String resourceGroupName, String cacheName, com.azure.core.util.Context context)
Upgrade a Cache's firmware if a new version is available.CacheInner
createOrUpdate(String resourceGroupName, String cacheName)
Create or update a Cache.CacheInner
createOrUpdate(String resourceGroupName, String cacheName, CacheInner cache)
Create or update a Cache.CacheInner
createOrUpdate(String resourceGroupName, String cacheName, CacheInner cache, com.azure.core.util.Context context)
Create or update a Cache.void
debugInfo(String resourceGroupName, String cacheName)
Tells a Cache to write generate debug info for support to process.void
debugInfo(String resourceGroupName, String cacheName, com.azure.core.util.Context context)
Tells a Cache to write generate debug info for support to process.void
delete(String resourceGroupName, String cacheName)
Schedules a Cache for deletion.void
delete(String resourceGroupName, String cacheName, com.azure.core.util.Context context)
Schedules a Cache for deletion.void
flush(String resourceGroupName, String cacheName)
Tells a Cache to write all dirty data to the Storage Target(s).void
flush(String resourceGroupName, String cacheName, com.azure.core.util.Context context)
Tells a Cache to write all dirty data to the Storage Target(s).CacheInner
getByResourceGroup(String resourceGroupName, String cacheName)
Returns a Cache.com.azure.core.http.rest.Response<CacheInner>
getByResourceGroupWithResponse(String resourceGroupName, String cacheName, com.azure.core.util.Context context)
Returns a Cache.com.azure.core.http.rest.PagedIterable<CacheInner>
list()
Returns all Caches the user has access to under a subscription.com.azure.core.http.rest.PagedIterable<CacheInner>
list(com.azure.core.util.Context context)
Returns all Caches the user has access to under a subscription.com.azure.core.http.rest.PagedIterable<CacheInner>
listByResourceGroup(String resourceGroupName)
Returns all Caches the user has access to under a resource group.com.azure.core.http.rest.PagedIterable<CacheInner>
listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
Returns all Caches the user has access to under a resource group.void
start(String resourceGroupName, String cacheName)
Tells a Stopped state Cache to transition to Active state.void
start(String resourceGroupName, String cacheName, com.azure.core.util.Context context)
Tells a Stopped state Cache to transition to Active state.void
stop(String resourceGroupName, String cacheName)
Tells an Active Cache to transition to Stopped state.void
stop(String resourceGroupName, String cacheName, com.azure.core.util.Context context)
Tells an Active Cache to transition to Stopped state.CacheInner
update(String resourceGroupName, String cacheName)
Update a Cache instance.com.azure.core.http.rest.Response<CacheInner>
updateWithResponse(String resourceGroupName, String cacheName, CacheInner cache, com.azure.core.util.Context context)
Update a Cache instance.void
upgradeFirmware(String resourceGroupName, String cacheName)
Upgrade a Cache's firmware if a new version is available.void
upgradeFirmware(String resourceGroupName, String cacheName, com.azure.core.util.Context context)
Upgrade a Cache's firmware if a new version is available.
-
-
-
Method Detail
-
list
com.azure.core.http.rest.PagedIterable<CacheInner> list()
Returns all Caches the user has access to under a subscription.- Returns:
- result of the request to list Caches 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
com.azure.core.http.rest.PagedIterable<CacheInner> list(com.azure.core.util.Context context)
Returns all Caches the user has access to under a subscription.- Parameters:
context
- The context to associate with this operation.- Returns:
- result of the request to list Caches 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<CacheInner> listByResourceGroup(String resourceGroupName)
Returns all Caches the user has access to under a resource group.- Parameters:
resourceGroupName
- Target resource group.- Returns:
- result of the request to list Caches 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<CacheInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
Returns all Caches the user has access to under a resource group.- Parameters:
resourceGroupName
- Target resource group.context
- The context to associate with this operation.- Returns:
- result of the request to list Caches 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)
Schedules a Cache for deletion.- 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:
- 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, com.azure.core.util.Context context)
Schedules a Cache for deletion.- 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:
- 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)
Schedules a Cache for deletion.- 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.- 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, com.azure.core.util.Context context)
Schedules a Cache for deletion.- 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.- 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
CacheInner getByResourceGroup(String resourceGroupName, String cacheName)
Returns 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.- Returns:
- a Cache instance.
- 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<CacheInner> getByResourceGroupWithResponse(String resourceGroupName, String cacheName, com.azure.core.util.Context context)
Returns 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.context
- The context to associate with this operation.- Returns:
- a Cache instance 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<CacheInner>,CacheInner> beginCreateOrUpdate(String resourceGroupName, String cacheName, CacheInner cache)
Create or update 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.cache
- Object containing the user-selectable properties of the new Cache. If read-only properties are included, they must match the existing values of those properties.- Returns:
- the
SyncPoller
for polling of a Cache instance. - 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<CacheInner>,CacheInner> beginCreateOrUpdate(String resourceGroupName, String cacheName, CacheInner cache, com.azure.core.util.Context context)
Create or update 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.cache
- Object containing the user-selectable properties of the new Cache. If read-only properties are included, they must match the existing values of those properties.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of a Cache instance. - 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
CacheInner createOrUpdate(String resourceGroupName, String cacheName, CacheInner cache)
Create or update 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.cache
- Object containing the user-selectable properties of the new Cache. If read-only properties are included, they must match the existing values of those properties.- Returns:
- a Cache instance.
- 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
CacheInner createOrUpdate(String resourceGroupName, String cacheName)
Create or update 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.- Returns:
- a Cache instance.
- 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
CacheInner createOrUpdate(String resourceGroupName, String cacheName, CacheInner cache, com.azure.core.util.Context context)
Create or update 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.cache
- Object containing the user-selectable properties of the new Cache. If read-only properties are included, they must match the existing values of those properties.context
- The context to associate with this operation.- Returns:
- a Cache instance.
- 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
CacheInner update(String resourceGroupName, String cacheName)
Update a Cache instance.- 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 Cache instance.
- 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.
-
updateWithResponse
com.azure.core.http.rest.Response<CacheInner> updateWithResponse(String resourceGroupName, String cacheName, CacheInner cache, com.azure.core.util.Context context)
Update a Cache instance.- 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.cache
- Object containing the user-selectable properties of the Cache. If read-only properties are included, they must match the existing values of those properties.context
- The context to associate with this operation.- Returns:
- a Cache instance 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.
-
beginDebugInfo
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDebugInfo(String resourceGroupName, String cacheName)
Tells a Cache to write generate debug info for support to process.- 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:
- 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.
-
beginDebugInfo
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDebugInfo(String resourceGroupName, String cacheName, com.azure.core.util.Context context)
Tells a Cache to write generate debug info for support to process.- 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:
- 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.
-
debugInfo
void debugInfo(String resourceGroupName, String cacheName)
Tells a Cache to write generate debug info for support to process.- 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.- 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.
-
debugInfo
void debugInfo(String resourceGroupName, String cacheName, com.azure.core.util.Context context)
Tells a Cache to write generate debug info for support to process.- 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.- 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.
-
beginFlush
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginFlush(String resourceGroupName, String cacheName)
Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors returned until the flush is complete.- 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:
- 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.
-
beginFlush
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginFlush(String resourceGroupName, String cacheName, com.azure.core.util.Context context)
Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors returned until the flush is complete.- 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:
- 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.
-
flush
void flush(String resourceGroupName, String cacheName)
Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors returned until the flush is complete.- 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.- 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.
-
flush
void flush(String resourceGroupName, String cacheName, com.azure.core.util.Context context)
Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors returned until the flush is complete.- 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.- 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.
-
beginStart
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStart(String resourceGroupName, String cacheName)
Tells a Stopped state Cache to transition to Active state.- 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:
- 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.
-
beginStart
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStart(String resourceGroupName, String cacheName, com.azure.core.util.Context context)
Tells a Stopped state Cache to transition to Active state.- 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:
- 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.
-
start
void start(String resourceGroupName, String cacheName)
Tells a Stopped state Cache to transition to Active state.- 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.- 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.
-
start
void start(String resourceGroupName, String cacheName, com.azure.core.util.Context context)
Tells a Stopped state Cache to transition to Active state.- 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.- 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.
-
beginStop
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStop(String resourceGroupName, String cacheName)
Tells an Active Cache to transition to Stopped state.- 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:
- 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.
-
beginStop
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStop(String resourceGroupName, String cacheName, com.azure.core.util.Context context)
Tells an Active Cache to transition to Stopped state.- 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:
- 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.
-
stop
void stop(String resourceGroupName, String cacheName)
Tells an Active Cache to transition to Stopped state.- 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.- 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.
-
stop
void stop(String resourceGroupName, String cacheName, com.azure.core.util.Context context)
Tells an Active Cache to transition to Stopped state.- 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.- 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.
-
beginUpgradeFirmware
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginUpgradeFirmware(String resourceGroupName, String cacheName)
Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect.- 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:
- 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.
-
beginUpgradeFirmware
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginUpgradeFirmware(String resourceGroupName, String cacheName, com.azure.core.util.Context context)
Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect.- 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:
- 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.
-
upgradeFirmware
void upgradeFirmware(String resourceGroupName, String cacheName)
Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect.- 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.- 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.
-
upgradeFirmware
void upgradeFirmware(String resourceGroupName, String cacheName, com.azure.core.util.Context context)
Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect.- 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.- 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.
-
-