/// <summary>
 /// Gets group information from the directory.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='objectId'>
 /// The object ID of the user for which to get group information.
 /// </param>
 public static ADGroup Get(this IGroupsOperations operations, string objectId)
 {
     return(operations.GetAsync(objectId).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets specific group.
 /// </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>
 /// <returns>
 /// Get Group operation response details.
 /// </returns>
 public static Task <GroupGetResponse> GetAsync(this IGroupsOperations operations, string resourceGroupName, string serviceName, string gid)
 {
     return(operations.GetAsync(resourceGroupName, serviceName, gid, CancellationToken.None));
 }