Debian Codegraph @

docs/dyn/admin_directory_v1.customers.chrome.printServers.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="admin_directory_v1.html">Admin SDK API</a> . <a href="admin_directory_v1.customers.html">customers</a> . <a href="admin_directory_v1.customers.chrome.html">chrome</a> . <a href="admin_directory_v1.customers.chrome.printServers.html">printServers</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#batchCreatePrintServers">batchCreatePrintServers(parent, body=None, x__xgafv=None)</a></code></p>
79 <p class="firstline">Creates multiple print servers.</p>
80 <p class="toc_element">
81 <code><a href="#batchDeletePrintServers">batchDeletePrintServers(parent, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Deletes multiple print servers.</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, x__xgafv=None)</a></code></p>
88 <p class="firstline">Creates a print server.</p>
89 <p class="toc_element">
90 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
91 <p class="firstline">Deletes a print server.</p>
92 <p class="toc_element">
93 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
94 <p class="firstline">Returns a print server's configuration.</p>
95 <p class="toc_element">
96 <code><a href="#list">list(parent, filter=None, orderBy=None, orgUnitId=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Lists print server configurations.</p>
98 <p class="toc_element">
99 <code><a href="#list_next">list_next()</a></code></p>
100 <p class="firstline">Retrieves the next page of results.</p>
101 <p class="toc_element">
102 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
103 <p class="firstline">Updates a print server's configuration.</p>
104 <h3>Method Details</h3>
105 <div class="method">
106 <code class="details" id="batchCreatePrintServers">batchCreatePrintServers(parent, body=None, x__xgafv=None)</code>
107 <pre>Creates multiple print servers.
108
109 Args:
110 parent: string, Required. The [unique ID](https://developers.google.com/workspace/admin/directory/reference/rest/v1/customers) of the customer&#x27;s Google Workspace account. Format: `customers/{id}` (required)
111 body: object, The request body.
112 The object takes the form of:
113
114 { # Request to add multiple new print servers in a batch.
115 &quot;requests&quot;: [ # Required. A list of `PrintServer` resources to be created (max `50` per batch).
116 { # Request for adding a new print server.
117 &quot;parent&quot;: &quot;A String&quot;, # Required. The [unique ID](https://developers.google.com/workspace/admin/directory/reference/rest/v1/customers) of the customer&#x27;s Google Workspace account. Format: `customers/{id}`
118 &quot;printServer&quot;: { # Configuration for a print server. # Required. A print server to create. If you want to place the print server under a specific organizational unit (OU), then populate the `org_unit_id`. Otherwise the print server is created under the root OU. The `org_unit_id` can be retrieved using the [Directory API](https://developers.google.com/workspace/admin/directory/v1/guides/manage-org-units).
119 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the print server was created.
120 &quot;description&quot;: &quot;A String&quot;, # Editable. Description of the print server (as shown in the Admin console).
121 &quot;displayName&quot;: &quot;A String&quot;, # Editable. Display name of the print server (as shown in the Admin console).
122 &quot;id&quot;: &quot;A String&quot;, # Immutable. ID of the print server. Leave empty when creating.
123 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of the print server. Leave empty when creating. Format: `customers/{customer.id}/printServers/{print_server.id}`
124 &quot;orgUnitId&quot;: &quot;A String&quot;, # ID of the organization unit (OU) that owns this print server. This value can only be set when the print server is initially created. If it&#x27;s not populated, the print server is placed under the root OU. The `org_unit_id` can be retrieved using the [Directory API](https://developers.google.com/workspace/admin/directory/reference/rest/v1/orgunits).
125 &quot;uri&quot;: &quot;A String&quot;, # Editable. Print server URI.
126 },
127 },
128 ],
129 }
130
131 x__xgafv: string, V1 error format.
132 Allowed values
133 1 - v1 error format
134 2 - v2 error format
135
136 Returns:
137 An object of the form:
138
139 {
140 &quot;failures&quot;: [ # A list of create failures. `PrintServer` IDs are not populated, as print servers were not created.
141 { # Info about failures
142 &quot;errorCode&quot;: &quot;A String&quot;, # Canonical code for why the update failed to apply.
143 &quot;errorMessage&quot;: &quot;A String&quot;, # Failure reason message.
144 &quot;printServer&quot;: { # Configuration for a print server. # Failed print server.
145 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the print server was created.
146 &quot;description&quot;: &quot;A String&quot;, # Editable. Description of the print server (as shown in the Admin console).
147 &quot;displayName&quot;: &quot;A String&quot;, # Editable. Display name of the print server (as shown in the Admin console).
148 &quot;id&quot;: &quot;A String&quot;, # Immutable. ID of the print server. Leave empty when creating.
149 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of the print server. Leave empty when creating. Format: `customers/{customer.id}/printServers/{print_server.id}`
150 &quot;orgUnitId&quot;: &quot;A String&quot;, # ID of the organization unit (OU) that owns this print server. This value can only be set when the print server is initially created. If it&#x27;s not populated, the print server is placed under the root OU. The `org_unit_id` can be retrieved using the [Directory API](https://developers.google.com/workspace/admin/directory/reference/rest/v1/orgunits).
151 &quot;uri&quot;: &quot;A String&quot;, # Editable. Print server URI.
152 },
153 &quot;printServerId&quot;: &quot;A String&quot;, # ID of a failed print server.
154 },
155 ],
156 &quot;printServers&quot;: [ # A list of successfully created print servers with their IDs populated.
157 { # Configuration for a print server.
158 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the print server was created.
159 &quot;description&quot;: &quot;A String&quot;, # Editable. Description of the print server (as shown in the Admin console).
160 &quot;displayName&quot;: &quot;A String&quot;, # Editable. Display name of the print server (as shown in the Admin console).
161 &quot;id&quot;: &quot;A String&quot;, # Immutable. ID of the print server. Leave empty when creating.
162 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of the print server. Leave empty when creating. Format: `customers/{customer.id}/printServers/{print_server.id}`
163 &quot;orgUnitId&quot;: &quot;A String&quot;, # ID of the organization unit (OU) that owns this print server. This value can only be set when the print server is initially created. If it&#x27;s not populated, the print server is placed under the root OU. The `org_unit_id` can be retrieved using the [Directory API](https://developers.google.com/workspace/admin/directory/reference/rest/v1/orgunits).
164 &quot;uri&quot;: &quot;A String&quot;, # Editable. Print server URI.
165 },
166 ],
167 }</pre>
168 </div>
169
170 <div class="method">
171 <code class="details" id="batchDeletePrintServers">batchDeletePrintServers(parent, body=None, x__xgafv=None)</code>
172 <pre>Deletes multiple print servers.
173
174 Args:
175 parent: string, Required. The [unique ID](https://developers.google.com/workspace/admin/directory/reference/rest/v1/customers) of the customer&#x27;s Google Workspace account. Format: `customers/{customer.id}` (required)
176 body: object, The request body.
177 The object takes the form of:
178
179 { # Request to delete multiple existing print servers in a batch.
180 &quot;printServerIds&quot;: [ # A list of print server IDs that should be deleted (max `100` per batch).
181 &quot;A String&quot;,
182 ],
183 }
184
185 x__xgafv: string, V1 error format.
186 Allowed values
187 1 - v1 error format
188 2 - v2 error format
189
190 Returns:
191 An object of the form:
192
193 {
194 &quot;failedPrintServers&quot;: [ # A list of update failures.
195 { # Info about failures
196 &quot;errorCode&quot;: &quot;A String&quot;, # Canonical code for why the update failed to apply.
197 &quot;errorMessage&quot;: &quot;A String&quot;, # Failure reason message.
198 &quot;printServer&quot;: { # Configuration for a print server. # Failed print server.
199 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the print server was created.
200 &quot;description&quot;: &quot;A String&quot;, # Editable. Description of the print server (as shown in the Admin console).
201 &quot;displayName&quot;: &quot;A String&quot;, # Editable. Display name of the print server (as shown in the Admin console).
202 &quot;id&quot;: &quot;A String&quot;, # Immutable. ID of the print server. Leave empty when creating.
203 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of the print server. Leave empty when creating. Format: `customers/{customer.id}/printServers/{print_server.id}`
204 &quot;orgUnitId&quot;: &quot;A String&quot;, # ID of the organization unit (OU) that owns this print server. This value can only be set when the print server is initially created. If it&#x27;s not populated, the print server is placed under the root OU. The `org_unit_id` can be retrieved using the [Directory API](https://developers.google.com/workspace/admin/directory/reference/rest/v1/orgunits).
205 &quot;uri&quot;: &quot;A String&quot;, # Editable. Print server URI.
206 },
207 &quot;printServerId&quot;: &quot;A String&quot;, # ID of a failed print server.
208 },
209 ],
210 &quot;printServerIds&quot;: [ # A list of print server IDs that were successfully deleted.
211 &quot;A String&quot;,
212 ],
213 }</pre>
214 </div>
215
216 <div class="method">
217 <code class="details" id="close">close()</code>
218 <pre>Close httplib2 connections.</pre>
219 </div>
220
221 <div class="method">
222 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
223 <pre>Creates a print server.
224
225 Args:
226 parent: string, Required. The [unique ID](https://developers.google.com/workspace/admin/directory/reference/rest/v1/customers) of the customer&#x27;s Google Workspace account. Format: `customers/{id}` (required)
227 body: object, The request body.
228 The object takes the form of:
229
230 { # Configuration for a print server.
231 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the print server was created.
232 &quot;description&quot;: &quot;A String&quot;, # Editable. Description of the print server (as shown in the Admin console).
233 &quot;displayName&quot;: &quot;A String&quot;, # Editable. Display name of the print server (as shown in the Admin console).
234 &quot;id&quot;: &quot;A String&quot;, # Immutable. ID of the print server. Leave empty when creating.
235 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of the print server. Leave empty when creating. Format: `customers/{customer.id}/printServers/{print_server.id}`
236 &quot;orgUnitId&quot;: &quot;A String&quot;, # ID of the organization unit (OU) that owns this print server. This value can only be set when the print server is initially created. If it&#x27;s not populated, the print server is placed under the root OU. The `org_unit_id` can be retrieved using the [Directory API](https://developers.google.com/workspace/admin/directory/reference/rest/v1/orgunits).
237 &quot;uri&quot;: &quot;A String&quot;, # Editable. Print server URI.
238 }
239
240 x__xgafv: string, V1 error format.
241 Allowed values
242 1 - v1 error format
243 2 - v2 error format
244
245 Returns:
246 An object of the form:
247
248 { # Configuration for a print server.
249 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the print server was created.
250 &quot;description&quot;: &quot;A String&quot;, # Editable. Description of the print server (as shown in the Admin console).
251 &quot;displayName&quot;: &quot;A String&quot;, # Editable. Display name of the print server (as shown in the Admin console).
252 &quot;id&quot;: &quot;A String&quot;, # Immutable. ID of the print server. Leave empty when creating.
253 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of the print server. Leave empty when creating. Format: `customers/{customer.id}/printServers/{print_server.id}`
254 &quot;orgUnitId&quot;: &quot;A String&quot;, # ID of the organization unit (OU) that owns this print server. This value can only be set when the print server is initially created. If it&#x27;s not populated, the print server is placed under the root OU. The `org_unit_id` can be retrieved using the [Directory API](https://developers.google.com/workspace/admin/directory/reference/rest/v1/orgunits).
255 &quot;uri&quot;: &quot;A String&quot;, # Editable. Print server URI.
256 }</pre>
257 </div>
258
259 <div class="method">
260 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
261 <pre>Deletes a print server.
262
263 Args:
264 name: string, Required. The name of the print server to be deleted. Format: `customers/{customer.id}/chrome/printServers/{print_server.id}` (required)
265 x__xgafv: string, V1 error format.
266 Allowed values
267 1 - v1 error format
268 2 - v2 error format
269
270 Returns:
271 An object of the form:
272
273 { # 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); }
274 }</pre>
275 </div>
276
277 <div class="method">
278 <code class="details" id="get">get(name, x__xgafv=None)</code>
279 <pre>Returns a print server&#x27;s configuration.
280
281 Args:
282 name: string, Required. The [unique ID](https://developers.google.com/workspace/admin/directory/reference/rest/v1/customers) of the customer&#x27;s Google Workspace account. Format: `customers/{id}` (required)
283 x__xgafv: string, V1 error format.
284 Allowed values
285 1 - v1 error format
286 2 - v2 error format
287
288 Returns:
289 An object of the form:
290
291 { # Configuration for a print server.
292 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the print server was created.
293 &quot;description&quot;: &quot;A String&quot;, # Editable. Description of the print server (as shown in the Admin console).
294 &quot;displayName&quot;: &quot;A String&quot;, # Editable. Display name of the print server (as shown in the Admin console).
295 &quot;id&quot;: &quot;A String&quot;, # Immutable. ID of the print server. Leave empty when creating.
296 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of the print server. Leave empty when creating. Format: `customers/{customer.id}/printServers/{print_server.id}`
297 &quot;orgUnitId&quot;: &quot;A String&quot;, # ID of the organization unit (OU) that owns this print server. This value can only be set when the print server is initially created. If it&#x27;s not populated, the print server is placed under the root OU. The `org_unit_id` can be retrieved using the [Directory API](https://developers.google.com/workspace/admin/directory/reference/rest/v1/orgunits).
298 &quot;uri&quot;: &quot;A String&quot;, # Editable. Print server URI.
299 }</pre>
300 </div>
301
302 <div class="method">
303 <code class="details" id="list">list(parent, filter=None, orderBy=None, orgUnitId=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
304 <pre>Lists print server configurations.
305
306 Args:
307 parent: string, Required. The [unique ID](https://developers.google.com/workspace/admin/directory/reference/rest/v1/customers) of the customer&#x27;s Google Workspace account. Format: `customers/{id}` (required)
308 filter: string, Search query in [Common Expression Language syntax](https://github.com/google/cel-spec). Supported filters are `display_name`, `description`, and `uri`. Example: `printServer.displayName==&#x27;marketing-queue&#x27;`.
309 orderBy: string, Sort order for results. Supported values are `display_name`, `description`, or `create_time`. Default order is ascending, but descending order can be returned by appending &quot;desc&quot; to the `order_by` field. For instance, `orderBy==&#x27;description desc&#x27;` returns the print servers sorted by description in descending order.
310 orgUnitId: string, If `org_unit_id` is present in the request, only print servers owned or inherited by the organizational unit (OU) are returned. If the `PrintServer` resource&#x27;s `org_unit_id` matches the one in the request, the OU owns the server. If `org_unit_id` is not specified in the request, all print servers are returned or filtered against.
311 pageSize: integer, The maximum number of objects to return (default `100`, max `100`). The service might return fewer than this value.
312 pageToken: string, A generated token to paginate results (the `next_page_token` from a previous call).
313 x__xgafv: string, V1 error format.
314 Allowed values
315 1 - v1 error format
316 2 - v2 error format
317
318 Returns:
319 An object of the form:
320
321 {
322 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token that can be sent as `page_token` in a request to retrieve the next page. If this field is omitted, there are no subsequent pages.
323 &quot;printServers&quot;: [ # List of print servers.
324 { # Configuration for a print server.
325 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the print server was created.
326 &quot;description&quot;: &quot;A String&quot;, # Editable. Description of the print server (as shown in the Admin console).
327 &quot;displayName&quot;: &quot;A String&quot;, # Editable. Display name of the print server (as shown in the Admin console).
328 &quot;id&quot;: &quot;A String&quot;, # Immutable. ID of the print server. Leave empty when creating.
329 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of the print server. Leave empty when creating. Format: `customers/{customer.id}/printServers/{print_server.id}`
330 &quot;orgUnitId&quot;: &quot;A String&quot;, # ID of the organization unit (OU) that owns this print server. This value can only be set when the print server is initially created. If it&#x27;s not populated, the print server is placed under the root OU. The `org_unit_id` can be retrieved using the [Directory API](https://developers.google.com/workspace/admin/directory/reference/rest/v1/orgunits).
331 &quot;uri&quot;: &quot;A String&quot;, # Editable. Print server URI.
332 },
333 ],
334 }</pre>
335 </div>
336
337 <div class="method">
338 <code class="details" id="list_next">list_next()</code>
339 <pre>Retrieves the next page of results.
340
341 Args:
342 previous_request: The request for the previous page. (required)
343 previous_response: The response from the request for the previous page. (required)
344
345 Returns:
346 A request object that you can call &#x27;execute()&#x27; on to request the next
347 page. Returns None if there are no more items in the collection.
348 </pre>
349 </div>
350
351 <div class="method">
352 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
353 <pre>Updates a print server&#x27;s configuration.
354
355 Args:
356 name: string, Identifier. Resource name of the print server. Leave empty when creating. Format: `customers/{customer.id}/printServers/{print_server.id}` (required)
357 body: object, The request body.
358 The object takes the form of:
359
360 { # Configuration for a print server.
361 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the print server was created.
362 &quot;description&quot;: &quot;A String&quot;, # Editable. Description of the print server (as shown in the Admin console).
363 &quot;displayName&quot;: &quot;A String&quot;, # Editable. Display name of the print server (as shown in the Admin console).
364 &quot;id&quot;: &quot;A String&quot;, # Immutable. ID of the print server. Leave empty when creating.
365 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of the print server. Leave empty when creating. Format: `customers/{customer.id}/printServers/{print_server.id}`
366 &quot;orgUnitId&quot;: &quot;A String&quot;, # ID of the organization unit (OU) that owns this print server. This value can only be set when the print server is initially created. If it&#x27;s not populated, the print server is placed under the root OU. The `org_unit_id` can be retrieved using the [Directory API](https://developers.google.com/workspace/admin/directory/reference/rest/v1/orgunits).
367 &quot;uri&quot;: &quot;A String&quot;, # Editable. Print server URI.
368 }
369
370 updateMask: string, The list of fields to update. Some fields are read-only and cannot be updated. Values for unspecified fields are patched.
371 x__xgafv: string, V1 error format.
372 Allowed values
373 1 - v1 error format
374 2 - v2 error format
375
376 Returns:
377 An object of the form:
378
379 { # Configuration for a print server.
380 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Time when the print server was created.
381 &quot;description&quot;: &quot;A String&quot;, # Editable. Description of the print server (as shown in the Admin console).
382 &quot;displayName&quot;: &quot;A String&quot;, # Editable. Display name of the print server (as shown in the Admin console).
383 &quot;id&quot;: &quot;A String&quot;, # Immutable. ID of the print server. Leave empty when creating.
384 &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name of the print server. Leave empty when creating. Format: `customers/{customer.id}/printServers/{print_server.id}`
385 &quot;orgUnitId&quot;: &quot;A String&quot;, # ID of the organization unit (OU) that owns this print server. This value can only be set when the print server is initially created. If it&#x27;s not populated, the print server is placed under the root OU. The `org_unit_id` can be retrieved using the [Directory API](https://developers.google.com/workspace/admin/directory/reference/rest/v1/orgunits).
386 &quot;uri&quot;: &quot;A String&quot;, # Editable. Print server URI.
387 }</pre>
388 </div>
389
390 </body></html>