Debian Codegraph @

docs/dyn/dfareporting_v5.userRoles.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="dfareporting_v5.html">Campaign Manager 360 API</a> . <a href="dfareporting_v5.userRoles.html">userRoles</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="#delete">delete(profileId, id, x__xgafv=None)</a></code></p>
82 <p class="firstline">Deletes an existing user role.</p>
83 <p class="toc_element">
84 <code><a href="#get">get(profileId, id, x__xgafv=None)</a></code></p>
85 <p class="firstline">Gets one user role by ID.</p>
86 <p class="toc_element">
87 <code><a href="#insert">insert(profileId, body=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Inserts a new user role.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(profileId, accountUserRoleOnly=None, ids=None, maxResults=None, pageToken=None, searchString=None, sortField=None, sortOrder=None, subaccountId=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Retrieves a list of user roles, possibly filtered. This method supports paging.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(profileId, id, body=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Updates an existing user role. This method supports patch semantics.</p>
98 <p class="toc_element">
99 <code><a href="#update">update(profileId, body=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">Updates an existing user role.</p>
101 <h3>Method Details</h3>
102 <div class="method">
103 <code class="details" id="close">close()</code>
104 <pre>Close httplib2 connections.</pre>
105 </div>
106
107 <div class="method">
108 <code class="details" id="delete">delete(profileId, id, x__xgafv=None)</code>
109 <pre>Deletes an existing user role.
110
111 Args:
112 profileId: string, User profile ID associated with this request. (required)
113 id: string, User role ID. (required)
114 x__xgafv: string, V1 error format.
115 Allowed values
116 1 - v1 error format
117 2 - v2 error format
118 </pre>
119 </div>
120
121 <div class="method">
122 <code class="details" id="get">get(profileId, id, x__xgafv=None)</code>
123 <pre>Gets one user role by ID.
124
125 Args:
126 profileId: string, User profile ID associated with this request. (required)
127 id: string, User role ID. (required)
128 x__xgafv: string, V1 error format.
129 Allowed values
130 1 - v1 error format
131 2 - v2 error format
132
133 Returns:
134 An object of the form:
135
136 { # Contains properties of auser role, which is used to manage user access.
137 &quot;accountId&quot;: &quot;A String&quot;, # Account ID of this user role. This is a read-only field that can be left blank.
138 &quot;defaultUserRole&quot;: True or False, # Whether this is a default user role. Default user roles are created by the system for the account/subaccount and cannot be modified or deleted. Each default user role comes with a basic set of preassigned permissions.
139 &quot;id&quot;: &quot;A String&quot;, # ID of this user role. This is a read-only, auto-generated field.
140 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#userRole&quot;.
141 &quot;name&quot;: &quot;A String&quot;, # Name of this user role. This is a required field. Must be less than 256 characters long. If this user role is under a subaccount, the name must be unique among sites of the same subaccount. Otherwise, this user role is a top-level user role, and the name must be unique among top-level user roles of the same account.
142 &quot;parentUserRoleId&quot;: &quot;A String&quot;, # ID of the user role that this user role is based on or copied from. This is a required field.
143 &quot;permissions&quot;: [ # List of permissions associated with this user role.
144 { # Contains properties of a user role permission.
145 &quot;availability&quot;: &quot;A String&quot;, # Levels of availability for a user role permission.
146 &quot;id&quot;: &quot;A String&quot;, # ID of this user role permission.
147 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#userRolePermission&quot;.
148 &quot;name&quot;: &quot;A String&quot;, # Name of this user role permission.
149 &quot;permissionGroupId&quot;: &quot;A String&quot;, # ID of the permission group that this user role permission belongs to.
150 },
151 ],
152 &quot;subaccountId&quot;: &quot;A String&quot;, # Subaccount ID of this user role. This is a read-only field that can be left blank.
153 }</pre>
154 </div>
155
156 <div class="method">
157 <code class="details" id="insert">insert(profileId, body=None, x__xgafv=None)</code>
158 <pre>Inserts a new user role.
159
160 Args:
161 profileId: string, User profile ID associated with this request. (required)
162 body: object, The request body.
163 The object takes the form of:
164
165 { # Contains properties of auser role, which is used to manage user access.
166 &quot;accountId&quot;: &quot;A String&quot;, # Account ID of this user role. This is a read-only field that can be left blank.
167 &quot;defaultUserRole&quot;: True or False, # Whether this is a default user role. Default user roles are created by the system for the account/subaccount and cannot be modified or deleted. Each default user role comes with a basic set of preassigned permissions.
168 &quot;id&quot;: &quot;A String&quot;, # ID of this user role. This is a read-only, auto-generated field.
169 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#userRole&quot;.
170 &quot;name&quot;: &quot;A String&quot;, # Name of this user role. This is a required field. Must be less than 256 characters long. If this user role is under a subaccount, the name must be unique among sites of the same subaccount. Otherwise, this user role is a top-level user role, and the name must be unique among top-level user roles of the same account.
171 &quot;parentUserRoleId&quot;: &quot;A String&quot;, # ID of the user role that this user role is based on or copied from. This is a required field.
172 &quot;permissions&quot;: [ # List of permissions associated with this user role.
173 { # Contains properties of a user role permission.
174 &quot;availability&quot;: &quot;A String&quot;, # Levels of availability for a user role permission.
175 &quot;id&quot;: &quot;A String&quot;, # ID of this user role permission.
176 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#userRolePermission&quot;.
177 &quot;name&quot;: &quot;A String&quot;, # Name of this user role permission.
178 &quot;permissionGroupId&quot;: &quot;A String&quot;, # ID of the permission group that this user role permission belongs to.
179 },
180 ],
181 &quot;subaccountId&quot;: &quot;A String&quot;, # Subaccount ID of this user role. This is a read-only field that can be left blank.
182 }
183
184 x__xgafv: string, V1 error format.
185 Allowed values
186 1 - v1 error format
187 2 - v2 error format
188
189 Returns:
190 An object of the form:
191
192 { # Contains properties of auser role, which is used to manage user access.
193 &quot;accountId&quot;: &quot;A String&quot;, # Account ID of this user role. This is a read-only field that can be left blank.
194 &quot;defaultUserRole&quot;: True or False, # Whether this is a default user role. Default user roles are created by the system for the account/subaccount and cannot be modified or deleted. Each default user role comes with a basic set of preassigned permissions.
195 &quot;id&quot;: &quot;A String&quot;, # ID of this user role. This is a read-only, auto-generated field.
196 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#userRole&quot;.
197 &quot;name&quot;: &quot;A String&quot;, # Name of this user role. This is a required field. Must be less than 256 characters long. If this user role is under a subaccount, the name must be unique among sites of the same subaccount. Otherwise, this user role is a top-level user role, and the name must be unique among top-level user roles of the same account.
198 &quot;parentUserRoleId&quot;: &quot;A String&quot;, # ID of the user role that this user role is based on or copied from. This is a required field.
199 &quot;permissions&quot;: [ # List of permissions associated with this user role.
200 { # Contains properties of a user role permission.
201 &quot;availability&quot;: &quot;A String&quot;, # Levels of availability for a user role permission.
202 &quot;id&quot;: &quot;A String&quot;, # ID of this user role permission.
203 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#userRolePermission&quot;.
204 &quot;name&quot;: &quot;A String&quot;, # Name of this user role permission.
205 &quot;permissionGroupId&quot;: &quot;A String&quot;, # ID of the permission group that this user role permission belongs to.
206 },
207 ],
208 &quot;subaccountId&quot;: &quot;A String&quot;, # Subaccount ID of this user role. This is a read-only field that can be left blank.
209 }</pre>
210 </div>
211
212 <div class="method">
213 <code class="details" id="list">list(profileId, accountUserRoleOnly=None, ids=None, maxResults=None, pageToken=None, searchString=None, sortField=None, sortOrder=None, subaccountId=None, x__xgafv=None)</code>
214 <pre>Retrieves a list of user roles, possibly filtered. This method supports paging.
215
216 Args:
217 profileId: string, User profile ID associated with this request. (required)
218 accountUserRoleOnly: boolean, Select only account level user roles not associated with any specific subaccount.
219 ids: string, Select only user roles with the specified IDs. (repeated)
220 maxResults: integer, Maximum number of results to return.
221 pageToken: string, Value of the nextPageToken from the previous result page.
222 searchString: string, Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, &quot;userrole*2015&quot; will return objects with names like &quot;userrole June 2015&quot;, &quot;userrole April 2015&quot;, or simply &quot;userrole 2015&quot;. Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of &quot;userrole&quot; will match objects with name &quot;my userrole&quot;, &quot;userrole 2015&quot;, or simply &quot;userrole&quot;.
223 sortField: string, Field by which to sort the list.
224 Allowed values
225 ID -
226 NAME -
227 sortOrder: string, Order of sorted results.
228 Allowed values
229 ASCENDING - Ascending order.
230 DESCENDING - Descending order.
231 subaccountId: string, Select only user roles that belong to this subaccount.
232 x__xgafv: string, V1 error format.
233 Allowed values
234 1 - v1 error format
235 2 - v2 error format
236
237 Returns:
238 An object of the form:
239
240 { # User Role List Response
241 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#userRolesListResponse&quot;.
242 &quot;nextPageToken&quot;: &quot;A String&quot;, # Pagination token to be used for the next list operation.
243 &quot;userRoles&quot;: [ # User role collection.
244 { # Contains properties of auser role, which is used to manage user access.
245 &quot;accountId&quot;: &quot;A String&quot;, # Account ID of this user role. This is a read-only field that can be left blank.
246 &quot;defaultUserRole&quot;: True or False, # Whether this is a default user role. Default user roles are created by the system for the account/subaccount and cannot be modified or deleted. Each default user role comes with a basic set of preassigned permissions.
247 &quot;id&quot;: &quot;A String&quot;, # ID of this user role. This is a read-only, auto-generated field.
248 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#userRole&quot;.
249 &quot;name&quot;: &quot;A String&quot;, # Name of this user role. This is a required field. Must be less than 256 characters long. If this user role is under a subaccount, the name must be unique among sites of the same subaccount. Otherwise, this user role is a top-level user role, and the name must be unique among top-level user roles of the same account.
250 &quot;parentUserRoleId&quot;: &quot;A String&quot;, # ID of the user role that this user role is based on or copied from. This is a required field.
251 &quot;permissions&quot;: [ # List of permissions associated with this user role.
252 { # Contains properties of a user role permission.
253 &quot;availability&quot;: &quot;A String&quot;, # Levels of availability for a user role permission.
254 &quot;id&quot;: &quot;A String&quot;, # ID of this user role permission.
255 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#userRolePermission&quot;.
256 &quot;name&quot;: &quot;A String&quot;, # Name of this user role permission.
257 &quot;permissionGroupId&quot;: &quot;A String&quot;, # ID of the permission group that this user role permission belongs to.
258 },
259 ],
260 &quot;subaccountId&quot;: &quot;A String&quot;, # Subaccount ID of this user role. This is a read-only field that can be left blank.
261 },
262 ],
263 }</pre>
264 </div>
265
266 <div class="method">
267 <code class="details" id="list_next">list_next()</code>
268 <pre>Retrieves the next page of results.
269
270 Args:
271 previous_request: The request for the previous page. (required)
272 previous_response: The response from the request for the previous page. (required)
273
274 Returns:
275 A request object that you can call &#x27;execute()&#x27; on to request the next
276 page. Returns None if there are no more items in the collection.
277 </pre>
278 </div>
279
280 <div class="method">
281 <code class="details" id="patch">patch(profileId, id, body=None, x__xgafv=None)</code>
282 <pre>Updates an existing user role. This method supports patch semantics.
283
284 Args:
285 profileId: string, User profile ID associated with this request. (required)
286 id: string, Required. UserRole ID. (required)
287 body: object, The request body.
288 The object takes the form of:
289
290 { # Contains properties of auser role, which is used to manage user access.
291 &quot;accountId&quot;: &quot;A String&quot;, # Account ID of this user role. This is a read-only field that can be left blank.
292 &quot;defaultUserRole&quot;: True or False, # Whether this is a default user role. Default user roles are created by the system for the account/subaccount and cannot be modified or deleted. Each default user role comes with a basic set of preassigned permissions.
293 &quot;id&quot;: &quot;A String&quot;, # ID of this user role. This is a read-only, auto-generated field.
294 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#userRole&quot;.
295 &quot;name&quot;: &quot;A String&quot;, # Name of this user role. This is a required field. Must be less than 256 characters long. If this user role is under a subaccount, the name must be unique among sites of the same subaccount. Otherwise, this user role is a top-level user role, and the name must be unique among top-level user roles of the same account.
296 &quot;parentUserRoleId&quot;: &quot;A String&quot;, # ID of the user role that this user role is based on or copied from. This is a required field.
297 &quot;permissions&quot;: [ # List of permissions associated with this user role.
298 { # Contains properties of a user role permission.
299 &quot;availability&quot;: &quot;A String&quot;, # Levels of availability for a user role permission.
300 &quot;id&quot;: &quot;A String&quot;, # ID of this user role permission.
301 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#userRolePermission&quot;.
302 &quot;name&quot;: &quot;A String&quot;, # Name of this user role permission.
303 &quot;permissionGroupId&quot;: &quot;A String&quot;, # ID of the permission group that this user role permission belongs to.
304 },
305 ],
306 &quot;subaccountId&quot;: &quot;A String&quot;, # Subaccount ID of this user role. This is a read-only field that can be left blank.
307 }
308
309 x__xgafv: string, V1 error format.
310 Allowed values
311 1 - v1 error format
312 2 - v2 error format
313
314 Returns:
315 An object of the form:
316
317 { # Contains properties of auser role, which is used to manage user access.
318 &quot;accountId&quot;: &quot;A String&quot;, # Account ID of this user role. This is a read-only field that can be left blank.
319 &quot;defaultUserRole&quot;: True or False, # Whether this is a default user role. Default user roles are created by the system for the account/subaccount and cannot be modified or deleted. Each default user role comes with a basic set of preassigned permissions.
320 &quot;id&quot;: &quot;A String&quot;, # ID of this user role. This is a read-only, auto-generated field.
321 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#userRole&quot;.
322 &quot;name&quot;: &quot;A String&quot;, # Name of this user role. This is a required field. Must be less than 256 characters long. If this user role is under a subaccount, the name must be unique among sites of the same subaccount. Otherwise, this user role is a top-level user role, and the name must be unique among top-level user roles of the same account.
323 &quot;parentUserRoleId&quot;: &quot;A String&quot;, # ID of the user role that this user role is based on or copied from. This is a required field.
324 &quot;permissions&quot;: [ # List of permissions associated with this user role.
325 { # Contains properties of a user role permission.
326 &quot;availability&quot;: &quot;A String&quot;, # Levels of availability for a user role permission.
327 &quot;id&quot;: &quot;A String&quot;, # ID of this user role permission.
328 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#userRolePermission&quot;.
329 &quot;name&quot;: &quot;A String&quot;, # Name of this user role permission.
330 &quot;permissionGroupId&quot;: &quot;A String&quot;, # ID of the permission group that this user role permission belongs to.
331 },
332 ],
333 &quot;subaccountId&quot;: &quot;A String&quot;, # Subaccount ID of this user role. This is a read-only field that can be left blank.
334 }</pre>
335 </div>
336
337 <div class="method">
338 <code class="details" id="update">update(profileId, body=None, x__xgafv=None)</code>
339 <pre>Updates an existing user role.
340
341 Args:
342 profileId: string, User profile ID associated with this request. (required)
343 body: object, The request body.
344 The object takes the form of:
345
346 { # Contains properties of auser role, which is used to manage user access.
347 &quot;accountId&quot;: &quot;A String&quot;, # Account ID of this user role. This is a read-only field that can be left blank.
348 &quot;defaultUserRole&quot;: True or False, # Whether this is a default user role. Default user roles are created by the system for the account/subaccount and cannot be modified or deleted. Each default user role comes with a basic set of preassigned permissions.
349 &quot;id&quot;: &quot;A String&quot;, # ID of this user role. This is a read-only, auto-generated field.
350 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#userRole&quot;.
351 &quot;name&quot;: &quot;A String&quot;, # Name of this user role. This is a required field. Must be less than 256 characters long. If this user role is under a subaccount, the name must be unique among sites of the same subaccount. Otherwise, this user role is a top-level user role, and the name must be unique among top-level user roles of the same account.
352 &quot;parentUserRoleId&quot;: &quot;A String&quot;, # ID of the user role that this user role is based on or copied from. This is a required field.
353 &quot;permissions&quot;: [ # List of permissions associated with this user role.
354 { # Contains properties of a user role permission.
355 &quot;availability&quot;: &quot;A String&quot;, # Levels of availability for a user role permission.
356 &quot;id&quot;: &quot;A String&quot;, # ID of this user role permission.
357 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#userRolePermission&quot;.
358 &quot;name&quot;: &quot;A String&quot;, # Name of this user role permission.
359 &quot;permissionGroupId&quot;: &quot;A String&quot;, # ID of the permission group that this user role permission belongs to.
360 },
361 ],
362 &quot;subaccountId&quot;: &quot;A String&quot;, # Subaccount ID of this user role. This is a read-only field that can be left blank.
363 }
364
365 x__xgafv: string, V1 error format.
366 Allowed values
367 1 - v1 error format
368 2 - v2 error format
369
370 Returns:
371 An object of the form:
372
373 { # Contains properties of auser role, which is used to manage user access.
374 &quot;accountId&quot;: &quot;A String&quot;, # Account ID of this user role. This is a read-only field that can be left blank.
375 &quot;defaultUserRole&quot;: True or False, # Whether this is a default user role. Default user roles are created by the system for the account/subaccount and cannot be modified or deleted. Each default user role comes with a basic set of preassigned permissions.
376 &quot;id&quot;: &quot;A String&quot;, # ID of this user role. This is a read-only, auto-generated field.
377 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#userRole&quot;.
378 &quot;name&quot;: &quot;A String&quot;, # Name of this user role. This is a required field. Must be less than 256 characters long. If this user role is under a subaccount, the name must be unique among sites of the same subaccount. Otherwise, this user role is a top-level user role, and the name must be unique among top-level user roles of the same account.
379 &quot;parentUserRoleId&quot;: &quot;A String&quot;, # ID of the user role that this user role is based on or copied from. This is a required field.
380 &quot;permissions&quot;: [ # List of permissions associated with this user role.
381 { # Contains properties of a user role permission.
382 &quot;availability&quot;: &quot;A String&quot;, # Levels of availability for a user role permission.
383 &quot;id&quot;: &quot;A String&quot;, # ID of this user role permission.
384 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#userRolePermission&quot;.
385 &quot;name&quot;: &quot;A String&quot;, # Name of this user role permission.
386 &quot;permissionGroupId&quot;: &quot;A String&quot;, # ID of the permission group that this user role permission belongs to.
387 },
388 ],
389 &quot;subaccountId&quot;: &quot;A String&quot;, # Subaccount ID of this user role. This is a read-only field that can be left blank.
390 }</pre>
391 </div>
392
393 </body></html>