StorageTargetCollection Class

Definition

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

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

Constructors

StorageTargetCollection()

Initializes a new instance of the StorageTargetCollection 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, StorageTargetData, CancellationToken)

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.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}
  • Operation Id: StorageTargets_CreateOrUpdate
  • Default Api Version: 2024-03-01
  • Resource: StorageTargetResource
CreateOrUpdateAsync(WaitUntil, String, StorageTargetData, CancellationToken)

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.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}
  • Operation Id: StorageTargets_CreateOrUpdate
  • Default Api Version: 2024-03-01
  • Resource: StorageTargetResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}
  • Operation Id: StorageTargets_Get
  • Default Api Version: 2024-03-01
  • Resource: StorageTargetResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}
  • Operation Id: StorageTargets_Get
  • Default Api Version: 2024-03-01
  • Resource: StorageTargetResource
Get(String, CancellationToken)

Returns a Storage Target from a cache.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}
  • Operation Id: StorageTargets_Get
  • Default Api Version: 2024-03-01
  • Resource: StorageTargetResource
GetAll(CancellationToken)

Returns a list of Storage Targets for the specified cache.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets
  • Operation Id: StorageTargets_ListByCache
  • Default Api Version: 2024-03-01
  • Resource: StorageTargetResource
GetAllAsync(CancellationToken)

Returns a list of Storage Targets for the specified cache.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets
  • Operation Id: StorageTargets_ListByCache
  • Default Api Version: 2024-03-01
  • Resource: StorageTargetResource
GetAsync(String, CancellationToken)

Returns a Storage Target from a cache.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}
  • Operation Id: StorageTargets_Get
  • Default Api Version: 2024-03-01
  • Resource: StorageTargetResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}
  • Operation Id: StorageTargets_Get
  • Default Api Version: 2024-03-01
  • Resource: StorageTargetResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}
  • Operation Id: StorageTargets_Get
  • Default Api Version: 2024-03-01
  • Resource: StorageTargetResource
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<StorageTargetResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<StorageTargetResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to