/// <summary> /// Delete a data factory gateway. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.DataFactories.Core.IGatewayOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The resource group name of the data factory. /// </param> /// <param name='dataFactoryName'> /// Required. A unique data factory instance name. /// </param> /// <param name='gatewayName'> /// Required. Name of the gateway to delete. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task <AzureOperationResponse> DeleteAsync( this IGatewayOperations operations, string resourceGroupName, string dataFactoryName, string gatewayName) { return(operations.DeleteAsync(resourceGroupName, dataFactoryName, gatewayName, CancellationToken.None)); }
/// <summary> /// Deletes the gateway resource. /// </summary> /// <remarks> /// Deletes the gateway resource identified by the name. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Azure resource group name /// </param> /// <param name='gatewayResourceName'> /// The identity of the gateway. /// </param> public static void Delete(this IGatewayOperations operations, string resourceGroupName, string gatewayResourceName) { operations.DeleteAsync(resourceGroupName, gatewayResourceName).GetAwaiter().GetResult(); }
/// <summary> /// Deletes specific Gateway. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='serviceName'> /// The name of the API Management service. /// </param> /// <param name='gatewayId'> /// Gateway entity identifier. Must be unique in the current API Management /// service instance. Must not have value 'managed' /// </param> /// <param name='ifMatch'> /// ETag of the Entity. ETag should match the current entity state from the /// header response of the GET request or it should be * for unconditional /// update. /// </param> public static void Delete(this IGatewayOperations operations, string resourceGroupName, string serviceName, string gatewayId, string ifMatch) { operations.DeleteAsync(resourceGroupName, serviceName, gatewayId, ifMatch).GetAwaiter().GetResult(); }