/// <summary> /// <para>Begins an asynchronous send to the groups update route.</para> /// </summary> /// <param name="group">Specify a group.</param> /// <param name="newGroupName">Optional argument. Set group name to this if /// provided.</param> /// <param name="newGroupExternalId">Optional argument. New group external ID. If the /// argument is None, the group's external_id won't be updated. If the argument is /// empty string, the group's external id will be cleared.</param> /// <param name="callback">The method to be called when the asynchronous send is /// completed.</param> /// <param name="callbackState">A user provided object that distinguished this send /// from other send requests.</param> /// <returns>An object that represents the asynchronous send request.</returns> public sys.IAsyncResult BeginGroupsUpdate(GroupSelector @group, string newGroupName = null, string newGroupExternalId = null, sys.AsyncCallback callback = null, object callbackState = null) { var groupUpdateArgs = new GroupUpdateArgs(@group, newGroupName, newGroupExternalId); return this.BeginGroupsUpdate(groupUpdateArgs, callback, callbackState); }
/// <summary> /// <para>Begins an asynchronous send to the groups update route.</para> /// </summary> /// <param name="groupUpdateArgs">The request parameters.</param> /// <param name="callback">The method to be called when the asynchronous send is /// completed.</param> /// <param name="state">A user provided object that distinguished this send from other /// send requests.</param> /// <returns>An object that represents the asynchronous send request.</returns> public sys.IAsyncResult BeginGroupsUpdate(GroupUpdateArgs groupUpdateArgs, sys.AsyncCallback callback, object state = null) { var task = this.GroupsUpdateAsync(groupUpdateArgs); return enc.Util.ToApm(task, callback, state); }
/// <summary> /// <para>Updates a group's name and/or external ID.</para> /// <para>Permission : Team member management</para> /// </summary> /// <param name="group">Specify a group.</param> /// <param name="newGroupName">Optional argument. Set group name to this if /// provided.</param> /// <param name="newGroupExternalId">Optional argument. New group external ID. If the /// argument is None, the group's external_id won't be updated. If the argument is /// empty string, the group's external id will be cleared.</param> /// <returns>The task that represents the asynchronous send operation. The TResult /// parameter contains the response from the server.</returns> /// <exception cref="Dropbox.Api.ApiException{GroupUpdateError}">Thrown if there is an /// error processing the request; This will contain a <see /// cref="GroupUpdateError"/>.</exception> public t.Task<GroupFullInfo> GroupsUpdateAsync(GroupSelector @group, string newGroupName = null, string newGroupExternalId = null) { var groupUpdateArgs = new GroupUpdateArgs(@group, newGroupName, newGroupExternalId); return this.GroupsUpdateAsync(groupUpdateArgs); }
/// <summary> /// <para>Updates a group's name and/or external ID.</para> /// <para>Permission : Team member management</para> /// </summary> /// <param name="groupUpdateArgs">The request parameters</param> /// <returns>The task that represents the asynchronous send operation. The TResult /// parameter contains the response from the server.</returns> /// <exception cref="Dropbox.Api.ApiException{GroupUpdateError}">Thrown if there is an /// error processing the request; This will contain a <see /// cref="GroupUpdateError"/>.</exception> public t.Task<GroupFullInfo> GroupsUpdateAsync(GroupUpdateArgs groupUpdateArgs) { return this.Transport.SendRpcRequestAsync<GroupUpdateArgs, GroupFullInfo, GroupUpdateError>(groupUpdateArgs, "api", "/team/groups/update", Dropbox.Api.Team.GroupUpdateArgs.Encoder, Dropbox.Api.Team.GroupFullInfo.Decoder, Dropbox.Api.Team.GroupUpdateError.Decoder); }