blob: 7a66fa255badc861259fa268f28986c19cb8b064 [file] [log] [blame]
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001<html><body>
2<style>
3
4body, 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
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, 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="displayvideo_v1.html">Display & Video 360 API</a> . <a href="displayvideo_v1.users.html">users</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#bulkEditAssignedUserRoles">bulkEditAssignedUserRoles(userId, body=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Bulk edits user roles for a user. The operation will delete the assigned user roles provided in BulkEditAssignedUserRolesRequest.deletedAssignedUserRoles and then assign the user roles provided in BulkEditAssignedUserRolesRequest.createdAssignedUserRoles.</p>
80<p class="toc_element">
81 <code><a href="#close">close()</a></code></p>
82<p class="firstline">Close httplib2 connections.</p>
83<p class="toc_element">
84 <code><a href="#create">create(body=None, x__xgafv=None)</a></code></p>
85<p class="firstline">Creates a new user. Returns the newly created user if successful.</p>
86<p class="toc_element">
87 <code><a href="#delete">delete(userId, x__xgafv=None)</a></code></p>
88<p class="firstline">Deletes a user.</p>
89<p class="toc_element">
90 <code><a href="#get">get(userId, x__xgafv=None)</a></code></p>
91<p class="firstline">Gets a user.</p>
92<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070093 <code><a href="#list">list(pageToken=None, orderBy=None, filter=None, pageSize=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070094<p class="firstline">Lists users that are accessible to the current user. If two users have user roles on the same partner or advertiser, they can access each other.</p>
95<p class="toc_element">
96 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
97<p class="firstline">Retrieves the next page of results.</p>
98<p class="toc_element">
99 <code><a href="#patch">patch(userId, body=None, updateMask=None, x__xgafv=None)</a></code></p>
100<p class="firstline">Updates an existing user. Returns the updated user if successful.</p>
101<h3>Method Details</h3>
102<div class="method">
103 <code class="details" id="bulkEditAssignedUserRoles">bulkEditAssignedUserRoles(userId, body=None, x__xgafv=None)</code>
104 <pre>Bulk edits user roles for a user. The operation will delete the assigned user roles provided in BulkEditAssignedUserRolesRequest.deletedAssignedUserRoles and then assign the user roles provided in BulkEditAssignedUserRolesRequest.createdAssignedUserRoles.
105
106Args:
107 userId: string, Required. The ID of the user to which the assigned user roles belong. (required)
108 body: object, The request body.
109 The object takes the form of:
110
111{ # Request message for BulkEditAssignedUserRoles.
112 &quot;deletedAssignedUserRoles&quot;: [ # The assigned user roles to delete in batch, specified as a list of assigned_user_role_ids. The format of assigned_user_role_id is `entityType-entityid`, for example `partner-123`.
113 &quot;A String&quot;,
114 ],
115 &quot;createdAssignedUserRoles&quot;: [ # The assigned user roles to create in batch, specified as a list of AssignedUserRoles.
116 { # A single assigned user role, which defines a user&#x27;s authorized interaction with a specified partner or advertiser.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700117 &quot;userRole&quot;: &quot;A String&quot;, # Required. The user role to assign to a user for the entity.
118 &quot;assignedUserRoleId&quot;: &quot;A String&quot;, # Output only. The ID of the assigned user role.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700119 &quot;advertiserId&quot;: &quot;A String&quot;, # The ID of the advertiser that the assigend user role applies to.
120 &quot;partnerId&quot;: &quot;A String&quot;, # The ID of the partner that the assigned user role applies to.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700121 },
122 ],
123 }
124
125 x__xgafv: string, V1 error format.
126 Allowed values
127 1 - v1 error format
128 2 - v2 error format
129
130Returns:
131 An object of the form:
132
133 {
134 &quot;createdAssignedUserRoles&quot;: [ # The list of assigned user roles that have been successfully created. This list will be absent if empty.
135 { # A single assigned user role, which defines a user&#x27;s authorized interaction with a specified partner or advertiser.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700136 &quot;userRole&quot;: &quot;A String&quot;, # Required. The user role to assign to a user for the entity.
137 &quot;assignedUserRoleId&quot;: &quot;A String&quot;, # Output only. The ID of the assigned user role.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700138 &quot;advertiserId&quot;: &quot;A String&quot;, # The ID of the advertiser that the assigend user role applies to.
139 &quot;partnerId&quot;: &quot;A String&quot;, # The ID of the partner that the assigned user role applies to.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700140 },
141 ],
142 }</pre>
143</div>
144
145<div class="method">
146 <code class="details" id="close">close()</code>
147 <pre>Close httplib2 connections.</pre>
148</div>
149
150<div class="method">
151 <code class="details" id="create">create(body=None, x__xgafv=None)</code>
152 <pre>Creates a new user. Returns the newly created user if successful.
153
154Args:
155 body: object, The request body.
156 The object takes the form of:
157
158{ # A single user in Display &amp; Video 360.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700159 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the user. Must be UTF-8 encoded with a maximum size of 240 bytes.
160 &quot;userId&quot;: &quot;A String&quot;, # Output only. The unique ID of the user. Assigned by the system.
161 &quot;assignedUserRoles&quot;: [ # The assigned user roles. Required in CreateUser. Output only in UpdateUser. Can only be updated through BulkEditAssignedUserRoles.
162 { # A single assigned user role, which defines a user&#x27;s authorized interaction with a specified partner or advertiser.
163 &quot;userRole&quot;: &quot;A String&quot;, # Required. The user role to assign to a user for the entity.
164 &quot;assignedUserRoleId&quot;: &quot;A String&quot;, # Output only. The ID of the assigned user role.
165 &quot;advertiserId&quot;: &quot;A String&quot;, # The ID of the advertiser that the assigend user role applies to.
166 &quot;partnerId&quot;: &quot;A String&quot;, # The ID of the partner that the assigned user role applies to.
167 },
168 ],
169 &quot;email&quot;: &quot;A String&quot;, # Required. Immutable. The email address used to identify the user.
170 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the user.
171 }
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700172
173 x__xgafv: string, V1 error format.
174 Allowed values
175 1 - v1 error format
176 2 - v2 error format
177
178Returns:
179 An object of the form:
180
181 { # A single user in Display &amp; Video 360.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700182 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the user. Must be UTF-8 encoded with a maximum size of 240 bytes.
183 &quot;userId&quot;: &quot;A String&quot;, # Output only. The unique ID of the user. Assigned by the system.
184 &quot;assignedUserRoles&quot;: [ # The assigned user roles. Required in CreateUser. Output only in UpdateUser. Can only be updated through BulkEditAssignedUserRoles.
185 { # A single assigned user role, which defines a user&#x27;s authorized interaction with a specified partner or advertiser.
186 &quot;userRole&quot;: &quot;A String&quot;, # Required. The user role to assign to a user for the entity.
187 &quot;assignedUserRoleId&quot;: &quot;A String&quot;, # Output only. The ID of the assigned user role.
188 &quot;advertiserId&quot;: &quot;A String&quot;, # The ID of the advertiser that the assigend user role applies to.
189 &quot;partnerId&quot;: &quot;A String&quot;, # The ID of the partner that the assigned user role applies to.
190 },
191 ],
192 &quot;email&quot;: &quot;A String&quot;, # Required. Immutable. The email address used to identify the user.
193 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the user.
194 }</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700195</div>
196
197<div class="method">
198 <code class="details" id="delete">delete(userId, x__xgafv=None)</code>
199 <pre>Deletes a user.
200
201Args:
202 userId: string, Required. The ID of the user to delete. (required)
203 x__xgafv: string, V1 error format.
204 Allowed values
205 1 - v1 error format
206 2 - v2 error format
207
208Returns:
209 An object of the form:
210
211 { # 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); } The JSON representation for `Empty` is empty JSON object `{}`.
212 }</pre>
213</div>
214
215<div class="method">
216 <code class="details" id="get">get(userId, x__xgafv=None)</code>
217 <pre>Gets a user.
218
219Args:
220 userId: string, Required. The ID of the user to fetch. (required)
221 x__xgafv: string, V1 error format.
222 Allowed values
223 1 - v1 error format
224 2 - v2 error format
225
226Returns:
227 An object of the form:
228
229 { # A single user in Display &amp; Video 360.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700230 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the user. Must be UTF-8 encoded with a maximum size of 240 bytes.
231 &quot;userId&quot;: &quot;A String&quot;, # Output only. The unique ID of the user. Assigned by the system.
232 &quot;assignedUserRoles&quot;: [ # The assigned user roles. Required in CreateUser. Output only in UpdateUser. Can only be updated through BulkEditAssignedUserRoles.
233 { # A single assigned user role, which defines a user&#x27;s authorized interaction with a specified partner or advertiser.
234 &quot;userRole&quot;: &quot;A String&quot;, # Required. The user role to assign to a user for the entity.
235 &quot;assignedUserRoleId&quot;: &quot;A String&quot;, # Output only. The ID of the assigned user role.
236 &quot;advertiserId&quot;: &quot;A String&quot;, # The ID of the advertiser that the assigend user role applies to.
237 &quot;partnerId&quot;: &quot;A String&quot;, # The ID of the partner that the assigned user role applies to.
238 },
239 ],
240 &quot;email&quot;: &quot;A String&quot;, # Required. Immutable. The email address used to identify the user.
241 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the user.
242 }</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700243</div>
244
245<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700246 <code class="details" id="list">list(pageToken=None, orderBy=None, filter=None, pageSize=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700247 <pre>Lists users that are accessible to the current user. If two users have user roles on the same partner or advertiser, they can access each other.
248
249Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700250 pageToken: string, A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListUsers` method. If not specified, the first page of results will be returned.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700251 orderBy: string, Field by which to sort the list. Acceptable values are: * `displayName` (default) The default sorting order is ascending. To specify descending order for a field, a suffix &quot;desc&quot; should be added to the field name. For example, `displayName desc`.
252 filter: string, Allows filtering by user properties. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by the logical operator `AND`. * A restriction has the form of `{field} {operator} {value}`. * The operator must be `CONTAINS (:)` or `EQUALS (=)`. * The operator must be `CONTAINS (:)` for the following fields: - `displayName` - `email` * The operator must be `EQUALS (=)` for the following fields: - `assignedUserRole.userRole` - `assignedUserRole.partnerId` - `assignedUserRole.advertiserId` - `assignedUserRole.entityType`: A synthetic field of AssignedUserRole used for filtering. Identifies the type of entity to which the user role is assigned. Valid values are `Partner` and `Advertiser`. - `assignedUserRole.parentPartnerId`: A synthetic field of AssignedUserRole used for filtering. Identifies the parent partner of the entity to which the user role is assigned.&quot; Examples: * The user with displayName containing `foo`: `displayName:&quot;foo&quot;` * The user with email containing `bar`: `email:&quot;bar&quot;` * All users with standard user roles: `assignedUserRole.userRole=&quot;STANDARD&quot;` * All users with user roles for partner 123: `assignedUserRole.partnerId=&quot;123&quot;` * All users with user roles for advertiser 123: `assignedUserRole.advertiserId=&quot;123&quot;` * All users with partner level user roles: `entityType=&quot;PARTNER&quot;` * All users with user roles for partner 123 and advertisers under partner 123: `parentPartnerId=&quot;123&quot;` The length of this field should be no more than 500 characters.
253 pageSize: integer, Requested page size. Must be between `1` and `100`. If unspecified will default to `100`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700254 x__xgafv: string, V1 error format.
255 Allowed values
256 1 - v1 error format
257 2 - v2 error format
258
259Returns:
260 An object of the form:
261
262 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700263 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token to retrieve the next page of results. Pass this value in the page_token field in the subsequent call to `ListUsers` method to retrieve the next page of results. This token will be absent if there are no more results to return.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700264 &quot;users&quot;: [ # The list of users. This list will be absent if empty.
265 { # A single user in Display &amp; Video 360.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700266 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the user. Must be UTF-8 encoded with a maximum size of 240 bytes.
267 &quot;userId&quot;: &quot;A String&quot;, # Output only. The unique ID of the user. Assigned by the system.
268 &quot;assignedUserRoles&quot;: [ # The assigned user roles. Required in CreateUser. Output only in UpdateUser. Can only be updated through BulkEditAssignedUserRoles.
269 { # A single assigned user role, which defines a user&#x27;s authorized interaction with a specified partner or advertiser.
270 &quot;userRole&quot;: &quot;A String&quot;, # Required. The user role to assign to a user for the entity.
271 &quot;assignedUserRoleId&quot;: &quot;A String&quot;, # Output only. The ID of the assigned user role.
272 &quot;advertiserId&quot;: &quot;A String&quot;, # The ID of the advertiser that the assigend user role applies to.
273 &quot;partnerId&quot;: &quot;A String&quot;, # The ID of the partner that the assigned user role applies to.
274 },
275 ],
276 &quot;email&quot;: &quot;A String&quot;, # Required. Immutable. The email address used to identify the user.
277 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the user.
278 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700279 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700280 }</pre>
281</div>
282
283<div class="method">
284 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
285 <pre>Retrieves the next page of results.
286
287Args:
288 previous_request: The request for the previous page. (required)
289 previous_response: The response from the request for the previous page. (required)
290
291Returns:
292 A request object that you can call &#x27;execute()&#x27; on to request the next
293 page. Returns None if there are no more items in the collection.
294 </pre>
295</div>
296
297<div class="method">
298 <code class="details" id="patch">patch(userId, body=None, updateMask=None, x__xgafv=None)</code>
299 <pre>Updates an existing user. Returns the updated user if successful.
300
301Args:
302 userId: string, Output only. The unique ID of the user. Assigned by the system. (required)
303 body: object, The request body.
304 The object takes the form of:
305
306{ # A single user in Display &amp; Video 360.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700307 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the user. Must be UTF-8 encoded with a maximum size of 240 bytes.
308 &quot;userId&quot;: &quot;A String&quot;, # Output only. The unique ID of the user. Assigned by the system.
309 &quot;assignedUserRoles&quot;: [ # The assigned user roles. Required in CreateUser. Output only in UpdateUser. Can only be updated through BulkEditAssignedUserRoles.
310 { # A single assigned user role, which defines a user&#x27;s authorized interaction with a specified partner or advertiser.
311 &quot;userRole&quot;: &quot;A String&quot;, # Required. The user role to assign to a user for the entity.
312 &quot;assignedUserRoleId&quot;: &quot;A String&quot;, # Output only. The ID of the assigned user role.
313 &quot;advertiserId&quot;: &quot;A String&quot;, # The ID of the advertiser that the assigend user role applies to.
314 &quot;partnerId&quot;: &quot;A String&quot;, # The ID of the partner that the assigned user role applies to.
315 },
316 ],
317 &quot;email&quot;: &quot;A String&quot;, # Required. Immutable. The email address used to identify the user.
318 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the user.
319 }
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700320
321 updateMask: string, Required. The mask to control which fields to update.
322 x__xgafv: string, V1 error format.
323 Allowed values
324 1 - v1 error format
325 2 - v2 error format
326
327Returns:
328 An object of the form:
329
330 { # A single user in Display &amp; Video 360.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700331 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the user. Must be UTF-8 encoded with a maximum size of 240 bytes.
332 &quot;userId&quot;: &quot;A String&quot;, # Output only. The unique ID of the user. Assigned by the system.
333 &quot;assignedUserRoles&quot;: [ # The assigned user roles. Required in CreateUser. Output only in UpdateUser. Can only be updated through BulkEditAssignedUserRoles.
334 { # A single assigned user role, which defines a user&#x27;s authorized interaction with a specified partner or advertiser.
335 &quot;userRole&quot;: &quot;A String&quot;, # Required. The user role to assign to a user for the entity.
336 &quot;assignedUserRoleId&quot;: &quot;A String&quot;, # Output only. The ID of the assigned user role.
337 &quot;advertiserId&quot;: &quot;A String&quot;, # The ID of the advertiser that the assigend user role applies to.
338 &quot;partnerId&quot;: &quot;A String&quot;, # The ID of the partner that the assigned user role applies to.
339 },
340 ],
341 &quot;email&quot;: &quot;A String&quot;, # Required. Immutable. The email address used to identify the user.
342 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the user.
343 }</pre>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700344</div>
345
346</body></html>