/// <summary> /// Adds an app to a team /// </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='app'> /// The name of the app to be added to the team. The app has to be owned by the /// organization. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <AppWithTeamPermissionsResponse> AddAppAsync(this ITeams operations, string orgName, string teamName, AppAddRequest app, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.AddAppWithHttpMessagesAsync(orgName, teamName, app, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Adds an app to a team /// </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='app'> /// The name of the app to be added to the team. The app has to be owned by the /// organization. /// </param> public static AppWithTeamPermissionsResponse AddApp(this ITeams operations, string orgName, string teamName, AppAddRequest app) { return(operations.AddAppAsync(orgName, teamName, app).GetAwaiter().GetResult()); }