Share via


StorageCacheCollection Class

Definition

A class representing a collection of StorageCacheResource and their operations. Each StorageCacheResource in the collection will belong to the same instance of ResourceGroupResource. To get a StorageCacheCollection instance call the GetStorageCaches method from an instance of ResourceGroupResource.

public class StorageCacheCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.StorageCache.StorageCacheResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.StorageCache.StorageCacheResource>
type StorageCacheCollection = class
    inherit ArmCollection
    interface seq<StorageCacheResource>
    interface IEnumerable
    interface IAsyncEnumerable<StorageCacheResource>
Public Class StorageCacheCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of StorageCacheResource), IEnumerable(Of StorageCacheResource)
Inheritance
StorageCacheCollection
Implements

Constructors

StorageCacheCollection()

Initializes a new instance of the StorageCacheCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

CreateOrUpdate(WaitUntil, String, StorageCacheData, CancellationToken)

Create or update a cache.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}
  • Operation Id: Caches_CreateOrUpdate
  • Default Api Version: 2023-11-01-preview
  • Resource: StorageCacheResource
CreateOrUpdateAsync(WaitUntil, String, StorageCacheData, CancellationToken)

Create or update a cache.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}
  • Operation Id: Caches_CreateOrUpdate
  • Default Api Version: 2023-11-01-preview
  • Resource: StorageCacheResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}
  • Operation Id: Caches_Get
  • Default Api Version: 2023-11-01-preview
  • Resource: StorageCacheResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}
  • Operation Id: Caches_Get
  • Default Api Version: 2023-11-01-preview
  • Resource: StorageCacheResource
Get(String, CancellationToken)

Returns a cache.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}
  • Operation Id: Caches_Get
  • Default Api Version: 2023-11-01-preview
  • Resource: StorageCacheResource
GetAll(CancellationToken)

Returns all caches the user has access to under a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches
  • Operation Id: Caches_ListByResourceGroup
  • Default Api Version: 2023-11-01-preview
  • Resource: StorageCacheResource
GetAllAsync(CancellationToken)

Returns all caches the user has access to under a resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches
  • Operation Id: Caches_ListByResourceGroup
  • Default Api Version: 2023-11-01-preview
  • Resource: StorageCacheResource
GetAsync(String, CancellationToken)

Returns a cache.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}
  • Operation Id: Caches_Get
  • Default Api Version: 2023-11-01-preview
  • Resource: StorageCacheResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}
  • Operation Id: Caches_Get
  • Default Api Version: 2023-11-01-preview
  • Resource: StorageCacheResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}
  • Operation Id: Caches_Get
  • Default Api Version: 2023-11-01-preview
  • Resource: StorageCacheResource
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<StorageCacheResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<StorageCacheResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to