Debian Codegraph @

docs/dyn/drivelabels_v2.labels.revisions.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></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="drivelabels_v2.labels.revisions.locks.html">locks()</a></code>
79 </p>
80 <p class="firstline">Returns the locks Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="drivelabels_v2.labels.revisions.permissions.html">permissions()</a></code>
84 </p>
85 <p class="firstline">Returns the permissions Resource.</p>
86
87 <p class="toc_element">
88 <code><a href="#close">close()</a></code></p>
89 <p class="firstline">Close httplib2 connections.</p>
90 <p class="toc_element">
91 <code><a href="#updatePermissions">updatePermissions(parent, body=None, useAdminAccess=None, x__xgafv=None)</a></code></p>
92 <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>
93 <h3>Method Details</h3>
94 <div class="method">
95 <code class="details" id="close">close()</code>
96 <pre>Close httplib2 connections.</pre>
97 </div>
98
99 <div class="method">
100 <code class="details" id="updatePermissions">updatePermissions(parent, body=None, useAdminAccess=None, x__xgafv=None)</code>
101 <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.
102
103 Args:
104 parent: string, Required. The parent label resource name. (required)
105 body: object, The request body.
106 The object takes the form of:
107
108 { # The permission that applies to a principal (user, group, audience) on a label.
109 &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.
110 &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.
111 &quot;group&quot;: &quot;A String&quot;, # Group resource name.
112 &quot;name&quot;: &quot;A String&quot;, # Resource name of this permission.
113 &quot;person&quot;: &quot;A String&quot;, # Person resource name.
114 &quot;role&quot;: &quot;A String&quot;, # The role the principal should have.
115 }
116
117 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.
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 { # The permission that applies to a principal (user, group, audience) on a label.
127 &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.
128 &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.
129 &quot;group&quot;: &quot;A String&quot;, # Group resource name.
130 &quot;name&quot;: &quot;A String&quot;, # Resource name of this permission.
131 &quot;person&quot;: &quot;A String&quot;, # Person resource name.
132 &quot;role&quot;: &quot;A String&quot;, # The role the principal should have.
133 }</pre>
134 </div>
135
136 </body></html>