Debian Codegraph @

docs/dyn/drive_v3.files.accessproposals.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="drive_v3.html">Google Drive API</a> . <a href="drive_v3.files.html">files</a> . <a href="drive_v3.files.accessproposals.html">accessproposals</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#list">list(fileId, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">List the AccessProposals on a file. Note: Only approvers are able to list AccessProposals on a file. If the user is not an approver, returns a 403.</p>
83 <p class="toc_element">
84 <code><a href="#list_next">list_next()</a></code></p>
85 <p class="firstline">Retrieves the next page of results.</p>
86 <p class="toc_element">
87 <code><a href="#resolve">resolve(fileId, proposalId, action=None, role=None, sendNotification=None, view=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Used to approve or deny an Access Proposal.</p>
89 <h3>Method Details</h3>
90 <div class="method">
91 <code class="details" id="close">close()</code>
92 <pre>Close httplib2 connections.</pre>
93 </div>
94
95 <div class="method">
96 <code class="details" id="list">list(fileId, pageSize=None, pageToken=None, x__xgafv=None)</code>
97 <pre>List the AccessProposals on a file. Note: Only approvers are able to list AccessProposals on a file. If the user is not an approver, returns a 403.
98
99 Args:
100 fileId: string, Required. The id of the item the request is on. (required)
101 pageSize: integer, Optional. The number of results per page
102 pageToken: string, Optional. The continuation token on the list of access requests.
103 x__xgafv: string, V1 error format.
104 Allowed values
105 1 - v1 error format
106 2 - v2 error format
107
108 Returns:
109 An object of the form:
110
111 { # The response to an Access Proposal list request.
112 &quot;accessProposals&quot;: [ # The list of Access Proposals. This field is only populated in v3 and v3beta.
113 { # The Access Proposal resource for outstanding access proposals on a file
114 &quot;createTime&quot;: &quot;A String&quot;, # The creation time
115 &quot;fileId&quot;: &quot;A String&quot;, # The file id that the proposal for access is on
116 &quot;proposalId&quot;: &quot;A String&quot;, # The id of the access proposal
117 &quot;recipientEmailAddress&quot;: &quot;A String&quot;, # The email address of the user that will receive permissions if accepted
118 &quot;requestMessage&quot;: &quot;A String&quot;, # The message that the requester added to the proposal
119 &quot;requesterEmailAddress&quot;: &quot;A String&quot;, # The email address of the requesting user
120 &quot;rolesAndViews&quot;: [ # A wrapper for the role and view of an access proposal.
121 { # A wrapper for the role and view of an access proposal.
122 &quot;role&quot;: &quot;A String&quot;, # The role that was proposed by the requester New values may be added in the future, but the following are currently possible: * `writer` * `commenter` * `reader`
123 &quot;view&quot;: &quot;A String&quot;, # Indicates the view for this access proposal. Only populated for proposals that belong to a view. `published` is the only supported value.
124 },
125 ],
126 },
127 ],
128 &quot;nextPageToken&quot;: &quot;A String&quot;, # The continuation token for the next page of results. This will be absent if the end of the results list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results.
129 }</pre>
130 </div>
131
132 <div class="method">
133 <code class="details" id="list_next">list_next()</code>
134 <pre>Retrieves the next page of results.
135
136 Args:
137 previous_request: The request for the previous page. (required)
138 previous_response: The response from the request for the previous page. (required)
139
140 Returns:
141 A request object that you can call &#x27;execute()&#x27; on to request the next
142 page. Returns None if there are no more items in the collection.
143 </pre>
144 </div>
145
146 <div class="method">
147 <code class="details" id="resolve">resolve(fileId, proposalId, action=None, role=None, sendNotification=None, view=None, x__xgafv=None)</code>
148 <pre>Used to approve or deny an Access Proposal.
149
150 Args:
151 fileId: string, Required. The id of the item the request is on. (required)
152 proposalId: string, Required. The id of the access proposal to resolve. (required)
153 action: string, Required. The action to take on the AccessProposal.
154 Allowed values
155 ACTION_UNSPECIFIED - Unspecified action
156 ACCEPT - The user accepts the proposal. Note: If this action is used, the `role` field must have at least one value.
157 DENY - The user denies the proposal
158 role: string, Optional. The roles the approver has allowed, if any. Note: This field is required for the `ACCEPT` action. (repeated)
159 sendNotification: boolean, Optional. Whether to send an email to the requester when the AccessProposal is denied or accepted.
160 view: string, Optional. Indicates the view for this access proposal. This should only be set when the proposal belongs to a view. `published` is the only supported value.
161 x__xgafv: string, V1 error format.
162 Allowed values
163 1 - v1 error format
164 2 - v2 error format
165 </pre>
166 </div>
167
168 </body></html>