Example #1
0
 /// <summary>
 /// Get list of Network Mappings.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.SiteRecovery.INetworkMappingOperations.
 /// </param>
 /// <param name='fabricName'>
 /// Required. Fabric unique name.
 /// </param>
 /// <param name='primaryNetworkName'>
 /// Required. Network name.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// The response model for the list of Network Mappings.
 /// </returns>
 public static Task <NetworkMappingsListResponse> ListAsync(this INetworkMappingOperations operations, string fabricName, string primaryNetworkName, CustomRequestHeaders customRequestHeaders)
 {
     return(operations.ListAsync(fabricName, primaryNetworkName, customRequestHeaders, CancellationToken.None));
 }
 /// <summary>
 /// Get the list of all network mappings under the vault.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.SiteRecovery.INetworkMappingOperations.
 /// </param>
 /// <param name='primaryServerId'>
 /// Required. Primary server Id.
 /// </param>
 /// <param name='recoveryServerId'>
 /// Required. Recovery server Id.
 /// </param>
 /// <param name='customRequestHeaders'>
 /// Optional. Request header parameters.
 /// </param>
 /// <returns>
 /// The response model for the list of network mappings operation.
 /// </returns>
 public static Task <NetworkMappingListResponse> ListAsync(this INetworkMappingOperations operations, string primaryServerId, string recoveryServerId, CustomRequestHeaders customRequestHeaders)
 {
     return(operations.ListAsync(primaryServerId, recoveryServerId, customRequestHeaders, CancellationToken.None));
 }