Debian Codegraph @

docs/dyn/drivelabels_v2.labels.revisions.permissions.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="drivelabels_v2.html">Drive Labels API</a> . <a href="drivelabels_v2.labels.html">labels</a> . <a href="drivelabels_v2.labels.revisions.html">revisions</a> . <a href="drivelabels_v2.labels.revisions.permissions.html">permissions</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#batchDelete">batchDelete(parent, body=None, x__xgafv=None)</a></code></p>
79 <p class="firstline">Deletes label permissions. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.</p>
80 <p class="toc_element">
81 <code><a href="#batchUpdate">batchUpdate(parent, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Updates label permissions. If a permission for the indicated principal doesn't exist, a label permission is created, otherwise the existing permission is updated. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.</p>
83 <p class="toc_element">
84 <code><a href="#close">close()</a></code></p>
85 <p class="firstline">Close httplib2 connections.</p>
86 <p class="toc_element">
87 <code><a href="#create">create(parent, body=None, useAdminAccess=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Updates a label's permissions. If a permission for the indicated principal doesn't exist, a label permission is created, otherwise the existing permission is updated. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.</p>
89 <p class="toc_element">
90 <code><a href="#delete">delete(name, useAdminAccess=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Deletes a label's permission. Permissions affect the label resource as a whole, aren't revisioned, and don't require publishing.</p>
92 <p class="toc_element">
93 <code><a href="#list">list(parent, pageSize=None, pageToken=None, useAdminAccess=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Lists a label's permissions.</p>
95 <p class="toc_element">
96 <code><a href="#list_next">list_next()</a></code></p>
97 <p class="firstline">Retrieves the next page of results.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="batchDelete">batchDelete(parent, body=None, x__xgafv=None)</code>
101 <pre>Deletes label permissions. Permissions affect the label resource as a whole, aren&#x27;t revisioned, and don&#x27;t require publishing.
102
103 Args:
104 parent: string, Required. The parent label resource name shared by all permissions being deleted. Format: `labels/{label}`. If this is set, the parent field in the `UpdateLabelPermissionRequest` messages must either be empty or match this field. (required)
105 body: object, The request body.
106 The object takes the form of:
107
108 { # Deletes one or more label permissions.
109 &quot;requests&quot;: [ # Required. The request message specifying the resources to update.
110 { # Deletes a label permission. Permissions affect the label resource as a whole, aren&#x27;t revisioned, and don&#x27;t require publishing.
111 &quot;name&quot;: &quot;A String&quot;, # Required. Label permission resource name.
112 &quot;useAdminAccess&quot;: True or False, # Set to `true` in order to use the user&#x27;s admin credentials. The server will verify the user is an admin for the label before allowing access.
113 },
114 ],
115 &quot;useAdminAccess&quot;: True or False, # Set to `true` in order to use the user&#x27;s admin credentials. The server will verify the user is an admin for the label before allowing access. If this is set, the `use_admin_access` field in the `DeleteLabelPermissionRequest` messages must either be empty or match this field.
116 }
117
118 x__xgafv: string, V1 error format.
119 Allowed values
120 1 - v1 error format
121 2 - v2 error format
122
123 Returns:
124 An object of the form:
125
126 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
127 }</pre>
128 </div>
129
130 <div class="method">
131 <code class="details" id="batchUpdate">batchUpdate(parent, body=None, x__xgafv=None)</code>
132 <pre>Updates label permissions. If a permission for the indicated principal doesn&#x27;t exist, a label permission is created, otherwise the existing permission is updated. Permissions affect the label resource as a whole, aren&#x27;t revisioned, and don&#x27;t require publishing.
133
134 Args:
135 parent: string, Required. The parent label resource name shared by all permissions being updated. Format: `labels/{label}`. If this is set, the parent field in the `UpdateLabelPermissionRequest` messages must either be empty or match this field. (required)
136 body: object, The request body.
137 The object takes the form of:
138
139 { # Updates one or more label permissions.
140 &quot;requests&quot;: [ # Required. The request message specifying the resources to update.
141 { # Updates a label permission. Permissions affect the label resource as a whole, aren&#x27;t revisioned, and don&#x27;t require publishing.
142 &quot;labelPermission&quot;: { # The permission that applies to a principal (user, group, audience) on a label. # Required. The permission to create or update on the label.
143 &quot;audience&quot;: &quot;A String&quot;, # Audience to grant a role to. The magic value of `audiences/default` may be used to apply the role to the default audience in the context of the organization that owns the label.
144 &quot;email&quot;: &quot;A String&quot;, # Specifies the email address for a user or group principal. Not populated for audience principals. User and group permissions may only be inserted using an email address. On update requests, if email address is specified, no principal should be specified.
145 &quot;group&quot;: &quot;A String&quot;, # Group resource name.
146 &quot;name&quot;: &quot;A String&quot;, # Resource name of this permission.
147 &quot;person&quot;: &quot;A String&quot;, # Person resource name.
148 &quot;role&quot;: &quot;A String&quot;, # The role the principal should have.
149 },
150 &quot;parent&quot;: &quot;A String&quot;, # Required. The parent label resource name.
151 &quot;useAdminAccess&quot;: True or False, # Set to `true` in order to use the user&#x27;s admin credentials. The server will verify the user is an admin for the label before allowing access.
152 },
153 ],
154 &quot;useAdminAccess&quot;: True or False, # Set to `true` in order to use the user&#x27;s admin credentials. The server will verify the user is an admin for the label before allowing access. If this is set, the `use_admin_access` field in the `UpdateLabelPermissionRequest` messages must either be empty or match this field.
155 }
156
157 x__xgafv: string, V1 error format.
158 Allowed values
159 1 - v1 error format
160 2 - v2 error format
161
162 Returns:
163 An object of the form:
164
165 { # Response for updating one or more label permissions.
166 &quot;permissions&quot;: [ # Required. Permissions updated.
167 { # The permission that applies to a principal (user, group, audience) on a label.
168 &quot;audience&quot;: &quot;A String&quot;, # Audience to grant a role to. The magic value of `audiences/default` may be used to apply the role to the default audience in the context of the organization that owns the label.
169 &quot;email&quot;: &quot;A String&quot;, # Specifies the email address for a user or group principal. Not populated for audience principals. User and group permissions may only be inserted using an email address. On update requests, if email address is specified, no principal should be specified.
170 &quot;group&quot;: &quot;A String&quot;, # Group resource name.
171 &quot;name&quot;: &quot;A String&quot;, # Resource name of this permission.
172 &quot;person&quot;: &quot;A String&quot;, # Person resource name.
173 &quot;role&quot;: &quot;A String&quot;, # The role the principal should have.
174 },
175 ],
176 }</pre>
177 </div>
178
179 <div class="method">
180 <code class="details" id="close">close()</code>
181 <pre>Close httplib2 connections.</pre>
182 </div>
183
184 <div class="method">
185 <code class="details" id="create">create(parent, body=None, useAdminAccess=None, x__xgafv=None)</code>
186 <pre>Updates a label&#x27;s permissions. If a permission for the indicated principal doesn&#x27;t exist, a label permission is created, otherwise the existing permission is updated. Permissions affect the label resource as a whole, aren&#x27;t revisioned, and don&#x27;t require publishing.
187
188 Args:
189 parent: string, Required. The parent label resource name on the label permission is created. Format: `labels/{label}`. (required)
190 body: object, The request body.
191 The object takes the form of:
192
193 { # The permission that applies to a principal (user, group, audience) on a label.
194 &quot;audience&quot;: &quot;A String&quot;, # Audience to grant a role to. The magic value of `audiences/default` may be used to apply the role to the default audience in the context of the organization that owns the label.
195 &quot;email&quot;: &quot;A String&quot;, # Specifies the email address for a user or group principal. Not populated for audience principals. User and group permissions may only be inserted using an email address. On update requests, if email address is specified, no principal should be specified.
196 &quot;group&quot;: &quot;A String&quot;, # Group resource name.
197 &quot;name&quot;: &quot;A String&quot;, # Resource name of this permission.
198 &quot;person&quot;: &quot;A String&quot;, # Person resource name.
199 &quot;role&quot;: &quot;A String&quot;, # The role the principal should have.
200 }
201
202 useAdminAccess: boolean, Set to `true` in order to use the user&#x27;s admin credentials. The server will verify the user is an admin for the label before allowing access.
203 x__xgafv: string, V1 error format.
204 Allowed values
205 1 - v1 error format
206 2 - v2 error format
207
208 Returns:
209 An object of the form:
210
211 { # The permission that applies to a principal (user, group, audience) on a label.
212 &quot;audience&quot;: &quot;A String&quot;, # Audience to grant a role to. The magic value of `audiences/default` may be used to apply the role to the default audience in the context of the organization that owns the label.
213 &quot;email&quot;: &quot;A String&quot;, # Specifies the email address for a user or group principal. Not populated for audience principals. User and group permissions may only be inserted using an email address. On update requests, if email address is specified, no principal should be specified.
214 &quot;group&quot;: &quot;A String&quot;, # Group resource name.
215 &quot;name&quot;: &quot;A String&quot;, # Resource name of this permission.
216 &quot;person&quot;: &quot;A String&quot;, # Person resource name.
217 &quot;role&quot;: &quot;A String&quot;, # The role the principal should have.
218 }</pre>
219 </div>
220
221 <div class="method">
222 <code class="details" id="delete">delete(name, useAdminAccess=None, x__xgafv=None)</code>
223 <pre>Deletes a label&#x27;s permission. Permissions affect the label resource as a whole, aren&#x27;t revisioned, and don&#x27;t require publishing.
224
225 Args:
226 name: string, Required. Label permission resource name. (required)
227 useAdminAccess: boolean, Set to `true` in order to use the user&#x27;s admin credentials. The server will verify the user is an admin for the label before allowing access.
228 x__xgafv: string, V1 error format.
229 Allowed values
230 1 - v1 error format
231 2 - v2 error format
232
233 Returns:
234 An object of the form:
235
236 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
237 }</pre>
238 </div>
239
240 <div class="method">
241 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, useAdminAccess=None, x__xgafv=None)</code>
242 <pre>Lists a label&#x27;s permissions.
243
244 Args:
245 parent: string, Required. The parent label resource name on which label permissions are listed. Format: `labels/{label}`. (required)
246 pageSize: integer, Maximum number of permissions to return per page. Default: 50. Max: 200.
247 pageToken: string, The token of the page to return.
248 useAdminAccess: boolean, Set to `true` in order to use the user&#x27;s admin credentials. The server will verify the user is an admin for the label before allowing access.
249 x__xgafv: string, V1 error format.
250 Allowed values
251 1 - v1 error format
252 2 - v2 error format
253
254 Returns:
255 An object of the form:
256
257 { # Response for listing the permissions on a label.
258 &quot;labelPermissions&quot;: [ # Label permissions.
259 { # The permission that applies to a principal (user, group, audience) on a label.
260 &quot;audience&quot;: &quot;A String&quot;, # Audience to grant a role to. The magic value of `audiences/default` may be used to apply the role to the default audience in the context of the organization that owns the label.
261 &quot;email&quot;: &quot;A String&quot;, # Specifies the email address for a user or group principal. Not populated for audience principals. User and group permissions may only be inserted using an email address. On update requests, if email address is specified, no principal should be specified.
262 &quot;group&quot;: &quot;A String&quot;, # Group resource name.
263 &quot;name&quot;: &quot;A String&quot;, # Resource name of this permission.
264 &quot;person&quot;: &quot;A String&quot;, # Person resource name.
265 &quot;role&quot;: &quot;A String&quot;, # The role the principal should have.
266 },
267 ],
268 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token of the next page in the response.
269 }</pre>
270 </div>
271
272 <div class="method">
273 <code class="details" id="list_next">list_next()</code>
274 <pre>Retrieves the next page of results.
275
276 Args:
277 previous_request: The request for the previous page. (required)
278 previous_response: The response from the request for the previous page. (required)
279
280 Returns:
281 A request object that you can call &#x27;execute()&#x27; on to request the next
282 page. Returns None if there are no more items in the collection.
283 </pre>
284 </div>
285
286 </body></html>