/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='team'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <TeamDetailModelInner> CreateTeamAsync(this IAPIClient operations, TeamDetailModelInner team = default(TeamDetailModelInner), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateTeamWithHttpMessagesAsync(team, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='team'> /// </param> /// <param name='customHeaders'> /// Headers that will be added to request. /// </param> public static AzureOperationResponse <TeamDetailModelInner> CreateTeamWithHttpMessages(this IAPIClient operations, TeamDetailModelInner team = default(TeamDetailModelInner), Dictionary <string, List <string> > customHeaders = null) { return(operations.CreateTeamWithHttpMessagesAsync(team, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult()); }