/// <summary>
 /// Deletes specific group of the API Management service instance.
 /// </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='groupId'>
 /// Group identifier. Must be unique in the current API Management service
 /// instance.
 /// </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 IGroupOperations operations, string resourceGroupName, string serviceName, string groupId, string ifMatch)
 {
     operations.DeleteAsync(resourceGroupName, serviceName, groupId, ifMatch).GetAwaiter().GetResult();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Delete a group in the directory.  (see
 /// http://msdn.microsoft.com/en-us/library/azure/dn151608.aspx for
 /// more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the Microsoft.Azure.Graph.RBAC.IGroupOperations.
 /// </param>
 /// <param name='groupObjectId'>
 /// Required. Object id
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <AzureOperationResponse> DeleteAsync(this IGroupOperations operations, string groupObjectId)
 {
     return(operations.DeleteAsync(groupObjectId, CancellationToken.None));
 }