/// <summary> /// <para>Begins an asynchronous send to the update folder policy route.</para> /// </summary> /// <param name="sharedFolderId">The ID for the shared folder.</param> /// <param name="memberPolicy">Who can be a member of this shared folder. Only set this /// if the current user is on a team.</param> /// <param name="aclUpdatePolicy">Who can add and remove members of this shared /// folder.</param> /// <param name="sharedLinkPolicy">The policy to apply to shared links created for /// content inside this shared folder.</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 BeginUpdateFolderPolicy(string sharedFolderId, MemberPolicy memberPolicy = null, AclUpdatePolicy aclUpdatePolicy = null, SharedLinkPolicy sharedLinkPolicy = null, sys.AsyncCallback callback = null, object callbackState = null) { var updateFolderPolicyArg = new UpdateFolderPolicyArg(sharedFolderId, memberPolicy, aclUpdatePolicy, sharedLinkPolicy); return this.BeginUpdateFolderPolicy(updateFolderPolicyArg, callback, callbackState); }
/// <summary> /// <para>Begins an asynchronous send to the update folder policy route.</para> /// </summary> /// <param name="updateFolderPolicyArg">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 BeginUpdateFolderPolicy(UpdateFolderPolicyArg updateFolderPolicyArg, sys.AsyncCallback callback, object state = null) { var task = this.UpdateFolderPolicyAsync(updateFolderPolicyArg); return enc.Util.ToApm(task, callback, state); }
/// <summary> /// <para>Update the sharing policies for a shared folder.</para> /// <para>Warning: This endpoint is in beta and is subject to minor but possibly /// backwards-incompatible changes.</para> /// </summary> /// <param name="sharedFolderId">The ID for the shared folder.</param> /// <param name="memberPolicy">Who can be a member of this shared folder. Only set this /// if the current user is on a team.</param> /// <param name="aclUpdatePolicy">Who can add and remove members of this shared /// folder.</param> /// <param name="sharedLinkPolicy">The policy to apply to shared links created for /// content inside this shared folder.</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{UpdateFolderPolicyError}">Thrown if there /// is an error processing the request; This will contain a <see /// cref="UpdateFolderPolicyError"/>.</exception> public t.Task<BasicSharedFolderMetadata> UpdateFolderPolicyAsync(string sharedFolderId, MemberPolicy memberPolicy = null, AclUpdatePolicy aclUpdatePolicy = null, SharedLinkPolicy sharedLinkPolicy = null) { var updateFolderPolicyArg = new UpdateFolderPolicyArg(sharedFolderId, memberPolicy, aclUpdatePolicy, sharedLinkPolicy); return this.UpdateFolderPolicyAsync(updateFolderPolicyArg); }
/// <summary> /// <para>Update the sharing policies for a shared folder.</para> /// <para>Warning: This endpoint is in beta and is subject to minor but possibly /// backwards-incompatible changes.</para> /// </summary> /// <param name="updateFolderPolicyArg">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{UpdateFolderPolicyError}">Thrown if there /// is an error processing the request; This will contain a <see /// cref="UpdateFolderPolicyError"/>.</exception> public t.Task<BasicSharedFolderMetadata> UpdateFolderPolicyAsync(UpdateFolderPolicyArg updateFolderPolicyArg) { return this.Transport.SendRpcRequestAsync<UpdateFolderPolicyArg, BasicSharedFolderMetadata, UpdateFolderPolicyError>(updateFolderPolicyArg, "api", "/sharing/update_folder_policy", UpdateFolderPolicyArg.Encoder, BasicSharedFolderMetadata.Decoder, UpdateFolderPolicyError.Decoder); }