You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pclass="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>
fileId: string, Required. The id of the item the request is on. (required)
104
+
proposalId: string, Required. The id of the access proposal to resolve. (required)
105
+
x__xgafv: string, V1 error format.
106
+
Allowed values
107
+
1 - v1 error format
108
+
2 - v2 error format
109
+
110
+
Returns:
111
+
An object of the form:
112
+
113
+
{ # The Access Proposal resource for outstanding access proposals on a file
114
+
"createTime": "A String", # The creation time
115
+
"fileId": "A String", # The file id that the proposal for access is on
116
+
"proposalId": "A String", # The id of the access proposal
117
+
"recipientEmailAddress": "A String", # The email address of the user that will receive permissions if accepted
118
+
"requestMessage": "A String", # The message that the requester added to the proposal
119
+
"requesterEmailAddress": "A String", # The email address of the requesting user
120
+
"rolesAndViews": [ # A wrapper for the role and view of an access proposal.
121
+
{ # A wrapper for the role and view of an access proposal.
122
+
"role": "A String", # 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
+
"view": "A String", # Indicates the view for this access proposal. Only populated for proposals that belong to a view. `published` is the only supported value.
<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.
132
+
133
+
Args:
134
+
fileId: string, Required. The id of the item the request is on. (required)
135
+
pageSize: integer, Optional. The number of results per page
136
+
pageToken: string, Optional. The continuation token on the list of access requests.
137
+
x__xgafv: string, V1 error format.
138
+
Allowed values
139
+
1 - v1 error format
140
+
2 - v2 error format
141
+
142
+
Returns:
143
+
An object of the form:
144
+
145
+
{ # The response to an Access Proposal list request.
146
+
"accessProposals": [ # The list of Access Proposals. This field is only populated in v3 and v3beta.
147
+
{ # The Access Proposal resource for outstanding access proposals on a file
148
+
"createTime": "A String", # The creation time
149
+
"fileId": "A String", # The file id that the proposal for access is on
150
+
"proposalId": "A String", # The id of the access proposal
151
+
"recipientEmailAddress": "A String", # The email address of the user that will receive permissions if accepted
152
+
"requestMessage": "A String", # The message that the requester added to the proposal
153
+
"requesterEmailAddress": "A String", # The email address of the requesting user
154
+
"rolesAndViews": [ # A wrapper for the role and view of an access proposal.
155
+
{ # A wrapper for the role and view of an access proposal.
156
+
"role": "A String", # 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`
157
+
"view": "A String", # Indicates the view for this access proposal. Only populated for proposals that belong to a view. `published` is the only supported value.
158
+
},
159
+
],
160
+
},
161
+
],
162
+
"nextPageToken": "A String", # 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.
fileId: string, Required. The id of the item the request is on. (required)
186
+
proposalId: string, Required. The id of the access proposal to resolve. (required)
187
+
body: object, The request body.
188
+
The object takes the form of:
189
+
190
+
{ # Request message for resolving an AccessProposal on a file.
191
+
"action": "A String", # Required. The action to take on the AccessProposal.
192
+
"role": [ # Optional. The roles the approver has allowed, if any. Note: This field is required for the `ACCEPT` action.
193
+
"A String",
194
+
],
195
+
"sendNotification": True or False, # Optional. Whether to send an email to the requester when the AccessProposal is denied or accepted.
196
+
"view": "A 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.
0 commit comments