Share via


ContainerRegistryCacheRuleCollection Class

Definition

A class representing a collection of ContainerRegistryCacheRuleResource and their operations. Each ContainerRegistryCacheRuleResource in the collection will belong to the same instance of ContainerRegistryResource. To get a ContainerRegistryCacheRuleCollection instance call the GetContainerRegistryCacheRules method from an instance of ContainerRegistryResource.

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

Constructors

ContainerRegistryCacheRuleCollection()

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

Creates a cache rule for a container registry with the specified parameters.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/cacheRules/{cacheRuleName}
  • Operation Id: CacheRules_Create
  • Default Api Version: 2024-11-01-preview
  • Resource: ContainerRegistryCacheRuleResource
CreateOrUpdateAsync(WaitUntil, String, ContainerRegistryCacheRuleData, CancellationToken)

Creates a cache rule for a container registry with the specified parameters.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/cacheRules/{cacheRuleName}
  • Operation Id: CacheRules_Create
  • Default Api Version: 2024-11-01-preview
  • Resource: ContainerRegistryCacheRuleResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/cacheRules/{cacheRuleName}
  • Operation Id: CacheRules_Get
  • Default Api Version: 2024-11-01-preview
  • Resource: ContainerRegistryCacheRuleResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/cacheRules/{cacheRuleName}
  • Operation Id: CacheRules_Get
  • Default Api Version: 2024-11-01-preview
  • Resource: ContainerRegistryCacheRuleResource
Get(String, CancellationToken)

Gets the properties of the specified cache rule resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/cacheRules/{cacheRuleName}
  • Operation Id: CacheRules_Get
  • Default Api Version: 2024-11-01-preview
  • Resource: ContainerRegistryCacheRuleResource
GetAll(CancellationToken)

Lists all cache rule resources for the specified container registry.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/cacheRules
  • Operation Id: CacheRules_List
  • Default Api Version: 2024-11-01-preview
  • Resource: ContainerRegistryCacheRuleResource
GetAllAsync(CancellationToken)

Lists all cache rule resources for the specified container registry.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/cacheRules
  • Operation Id: CacheRules_List
  • Default Api Version: 2024-11-01-preview
  • Resource: ContainerRegistryCacheRuleResource
GetAsync(String, CancellationToken)

Gets the properties of the specified cache rule resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/cacheRules/{cacheRuleName}
  • Operation Id: CacheRules_Get
  • Default Api Version: 2024-11-01-preview
  • Resource: ContainerRegistryCacheRuleResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/cacheRules/{cacheRuleName}
  • Operation Id: CacheRules_Get
  • Default Api Version: 2024-11-01-preview
  • Resource: ContainerRegistryCacheRuleResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/cacheRules/{cacheRuleName}
  • Operation Id: CacheRules_Get
  • Default Api Version: 2024-11-01-preview
  • Resource: ContainerRegistryCacheRuleResource
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<ContainerRegistryCacheRuleResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<ContainerRegistryCacheRuleResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to