Share via


ProtectionContainerMappingCollection Class

Definition

A class representing a collection of ProtectionContainerMappingResource and their operations. Each ProtectionContainerMappingResource in the collection will belong to the same instance of SiteRecoveryProtectionContainerResource. To get a ProtectionContainerMappingCollection instance call the GetProtectionContainerMappings method from an instance of SiteRecoveryProtectionContainerResource.

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

Constructors

ProtectionContainerMappingCollection()

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

The operation to create a protection container mapping.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}
  • Operation Id: ReplicationProtectionContainerMappings_Create
  • Default Api Version: 2023-08-01
  • Resource: ProtectionContainerMappingResource
CreateOrUpdateAsync(WaitUntil, String, ProtectionContainerMappingCreateOrUpdateContent, CancellationToken)

The operation to create a protection container mapping.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}
  • Operation Id: ReplicationProtectionContainerMappings_Create
  • Default Api Version: 2023-08-01
  • Resource: ProtectionContainerMappingResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}
  • Operation Id: ReplicationProtectionContainerMappings_Get
  • Default Api Version: 2023-08-01
  • Resource: ProtectionContainerMappingResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}
  • Operation Id: ReplicationProtectionContainerMappings_Get
  • Default Api Version: 2023-08-01
  • Resource: ProtectionContainerMappingResource
Get(String, CancellationToken)

Gets the details of a protection container mapping.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}
  • Operation Id: ReplicationProtectionContainerMappings_Get
  • Default Api Version: 2023-08-01
  • Resource: ProtectionContainerMappingResource
GetAll(CancellationToken)

Lists the protection container mappings for a protection container.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings
  • Operation Id: ReplicationProtectionContainerMappings_ListByReplicationProtectionContainers
  • Default Api Version: 2023-08-01
  • Resource: ProtectionContainerMappingResource
GetAllAsync(CancellationToken)

Lists the protection container mappings for a protection container.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings
  • Operation Id: ReplicationProtectionContainerMappings_ListByReplicationProtectionContainers
  • Default Api Version: 2023-08-01
  • Resource: ProtectionContainerMappingResource
GetAsync(String, CancellationToken)

Gets the details of a protection container mapping.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}
  • Operation Id: ReplicationProtectionContainerMappings_Get
  • Default Api Version: 2023-08-01
  • Resource: ProtectionContainerMappingResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}
  • Operation Id: ReplicationProtectionContainerMappings_Get
  • Default Api Version: 2023-08-01
  • Resource: ProtectionContainerMappingResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionContainerMappings/{mappingName}
  • Operation Id: ReplicationProtectionContainerMappings_Get
  • Default Api Version: 2023-08-01
  • Resource: ProtectionContainerMappingResource
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<ProtectionContainerMappingResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<ProtectionContainerMappingResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to