/// <summary> /// Creates Network Mapping. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.SiteRecovery.INetworkMappingOperations. /// </param> /// <param name='fabricName'> /// Required. Fabric Name. /// </param> /// <param name='primaryNetworkName'> /// Required. Primary Network Name. /// </param> /// <param name='networkMappingName'> /// Required. Network Mapping Name. /// </param> /// <param name='input'> /// Required. Network Mapping input. /// </param> /// <param name='customRequestHeaders'> /// Optional. Request header parameters. /// </param> /// <returns> /// A standard service response for long running operations. /// </returns> public static Task <LongRunningOperationResponse> CreateAsync(this INetworkMappingOperations operations, string fabricName, string primaryNetworkName, string networkMappingName, CreateNetworkMappingInput input, CustomRequestHeaders customRequestHeaders) { return(operations.CreateAsync(fabricName, primaryNetworkName, networkMappingName, input, customRequestHeaders, CancellationToken.None)); }
/// <summary> /// Create network mapping. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.SiteRecovery.INetworkMappingOperations. /// </param> /// <param name='parameters'> /// Required. Create network mapping input. /// </param> /// <param name='customRequestHeaders'> /// Optional. Request header parameters. /// </param> /// <returns> /// The response model for the Job details object. /// </returns> public static Task <JobResponse> CreateAsync(this INetworkMappingOperations operations, NetworkMappingInput parameters, CustomRequestHeaders customRequestHeaders) { return(operations.CreateAsync(parameters, customRequestHeaders, CancellationToken.None)); }