/// <summary> /// Delete a group from the directory. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='groupObjectId'> /// The object ID of the group to delete. /// </param> public static void Delete(this IGroupsOperations operations, string groupObjectId) { operations.DeleteAsync(groupObjectId).GetAwaiter().GetResult(); }
/// <summary> /// Deletes specific group of the Api Management service instance. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.ApiManagement.IGroupsOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='serviceName'> /// Required. The name of the Api Management service. /// </param> /// <param name='gid'> /// Required. Identifier of the group. /// </param> /// <param name='etag'> /// Required. ETag. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task <AzureOperationResponse> DeleteAsync(this IGroupsOperations operations, string resourceGroupName, string serviceName, string gid, string etag) { return(operations.DeleteAsync(resourceGroupName, serviceName, gid, etag, CancellationToken.None)); }