/// <summary> /// Gets the details of the group specified by its identifier. /// </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> public static GroupContract Get(this IGroupOperations operations, string resourceGroupName, string serviceName, string groupId) { return(operations.GetAsync(resourceGroupName, serviceName, groupId).GetAwaiter().GetResult()); }
/// <summary> /// Gets group information from the directory. /// </summary> /// <param name='operations'> /// Reference to the Microsoft.Azure.Graph.RBAC.IGroupOperations. /// </param> /// <param name='objectId'> /// Required. User objectId to get group information. /// </param> /// <returns> /// Server response for Get group information API call /// </returns> public static Task <GroupGetResult> GetAsync(this IGroupOperations operations, string objectId) { return(operations.GetAsync(objectId, CancellationToken.None)); }