/// <summary> /// Updates the permissions the team has to the app /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='orgName'> /// The organization's name /// </param> /// <param name='teamName'> /// The team's name /// </param> /// <param name='appName'> /// The name of the application /// </param> /// <param name='team'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <AppWithTeamPermissionsResponse> UpdatePermissionsAsync(this ITeams operations, string orgName, string teamName, string appName, TeamAppUpdateRequest team = default(TeamAppUpdateRequest), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdatePermissionsWithHttpMessagesAsync(orgName, teamName, appName, team, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Updates the permissions the team has to the app /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='orgName'> /// The organization's name /// </param> /// <param name='teamName'> /// The team's name /// </param> /// <param name='appName'> /// The name of the application /// </param> /// <param name='team'> /// </param> public static AppWithTeamPermissionsResponse UpdatePermissions(this ITeams operations, string orgName, string teamName, string appName, TeamAppUpdateRequest team = default(TeamAppUpdateRequest)) { return(operations.UpdatePermissionsAsync(orgName, teamName, appName, team).GetAwaiter().GetResult()); }