/// <summary> /// The Begin Reset Virtual network Gateway operation resets an /// existing gateway. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Network.IGatewayOperations. /// </param> /// <param name='networkName'> /// Required. The name of the virtual network for this gateway. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the Begin Reset Virtual Network /// Gateway operation. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task<GatewayOperationResponse> BeginResetAsync(this IGatewayOperations operations, string networkName, ResetGatewayParameters parameters) { return operations.BeginResetAsync(networkName, parameters, CancellationToken.None); }
/// <summary> /// The Reset VirtualNetworkGateway operation resets the primary of the /// virtual network gatewayin the specified resource group through /// Network resource provider. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Network.IVirtualNetworkGatewayOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='virtualNetworkGatewayName'> /// Required. The name of the virtual network gateway. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the Begin Reset Virtual Network /// Gateway operation through Network resource provider. /// </param> /// <returns> /// Response for PutVirtualNetworkGateway Api servive call /// </returns> public static Task<VirtualNetworkGatewayPutResponse> BeginResetAsync(this IVirtualNetworkGatewayOperations operations, string resourceGroupName, string virtualNetworkGatewayName, VirtualNetworkGateway parameters) { return operations.BeginResetAsync(resourceGroupName, virtualNetworkGatewayName, parameters, CancellationToken.None); }