-
Notifications
You must be signed in to change notification settings - Fork 159
Expand file tree
/
Copy pathIUserCollaborationsManager.cs
More file actions
93 lines (88 loc) · 4.28 KB
/
Copy pathIUserCollaborationsManager.cs
File metadata and controls
93 lines (88 loc) · 4.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
using Box.Sdk.Gen;
using System;
using System.Collections.ObjectModel;
using System.Collections.Generic;
using System.Text.Json.Serialization;
using Box.Sdk.Gen.Internal;
using Box.Sdk.Gen.Schemas;
namespace Box.Sdk.Gen.Managers {
public interface IUserCollaborationsManager {
/// <summary>
/// Retrieves a single collaboration.
/// </summary>
/// <param name="collaborationId">
/// The ID of the collaboration.
/// Example: "1234"
/// </param>
/// <param name="queryParams">
/// Query parameters of getCollaborationById method
/// </param>
/// <param name="headers">
/// Headers of getCollaborationById method
/// </param>
/// <param name="cancellationToken">
/// Token used for request cancellation.
/// </param>
public System.Threading.Tasks.Task<Collaboration> GetCollaborationByIdAsync(string collaborationId, GetCollaborationByIdQueryParams? queryParams = default, GetCollaborationByIdHeaders? headers = default, System.Threading.CancellationToken? cancellationToken = null) => throw new System.NotImplementedException("This method needs to be implemented by the derived class before calling it.");
/// <summary>
/// Updates a collaboration.
/// Can be used to change the owner of an item, or to
/// accept collaboration invites. In case of accepting collaboration invite, role is not required.
/// </summary>
/// <param name="collaborationId">
/// The ID of the collaboration.
/// Example: "1234"
/// </param>
/// <param name="requestBody">
/// Request body of updateCollaborationById method
/// </param>
/// <param name="headers">
/// Headers of updateCollaborationById method
/// </param>
/// <param name="cancellationToken">
/// Token used for request cancellation.
/// </param>
public System.Threading.Tasks.Task<Collaboration?> UpdateCollaborationByIdAsync(string collaborationId, UpdateCollaborationByIdRequestBody? requestBody = default, UpdateCollaborationByIdHeaders? headers = default, System.Threading.CancellationToken? cancellationToken = null) => throw new System.NotImplementedException("This method needs to be implemented by the derived class before calling it.");
/// <summary>
/// Deletes a single collaboration.
/// </summary>
/// <param name="collaborationId">
/// The ID of the collaboration.
/// Example: "1234"
/// </param>
/// <param name="headers">
/// Headers of deleteCollaborationById method
/// </param>
/// <param name="cancellationToken">
/// Token used for request cancellation.
/// </param>
public System.Threading.Tasks.Task DeleteCollaborationByIdAsync(string collaborationId, DeleteCollaborationByIdHeaders? headers = default, System.Threading.CancellationToken? cancellationToken = null) => throw new System.NotImplementedException("This method needs to be implemented by the derived class before calling it.");
/// <summary>
/// Adds a collaboration for a single user or a single group to a file
/// or folder.
///
/// Collaborations can be created using email address, user IDs, or a
/// group IDs.
///
/// If a collaboration is being created with a group, access to
/// this endpoint is dependent on the group's ability to be invited.
///
/// If collaboration is in `pending` status, field `name` is redacted when:
/// - a collaboration was created using `user_id`,
/// - a collaboration was created using `login`.
/// </summary>
/// <param name="requestBody">
/// Request body of createCollaboration method
/// </param>
/// <param name="queryParams">
/// Query parameters of createCollaboration method
/// </param>
/// <param name="headers">
/// Headers of createCollaboration method
/// </param>
/// <param name="cancellationToken">
/// Token used for request cancellation.
/// </param>
public System.Threading.Tasks.Task<Collaboration> CreateCollaborationAsync(CreateCollaborationRequestBody requestBody, CreateCollaborationQueryParams? queryParams = default, CreateCollaborationHeaders? headers = default, System.Threading.CancellationToken? cancellationToken = null) => throw new System.NotImplementedException("This method needs to be implemented by the derived class before calling it.");
}
}