source: vendor/google/apiclient-services/src/Directory/Resource/CustomersChromePrintServers.php@ f9c482b

Last change on this file since f9c482b was f9c482b, checked in by Vlado 222039 <vlado.popovski@…>, 9 days ago

Upload new project files

  • Property mode set to 100644
File size: 7.6 KB
Line 
1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\Directory\Resource;
19
20use Google\Service\Directory\AdminEmpty;
21use Google\Service\Directory\BatchCreatePrintServersRequest;
22use Google\Service\Directory\BatchCreatePrintServersResponse;
23use Google\Service\Directory\BatchDeletePrintServersRequest;
24use Google\Service\Directory\BatchDeletePrintServersResponse;
25use Google\Service\Directory\ListPrintServersResponse;
26use Google\Service\Directory\PrintServer;
27
28/**
29 * The "printServers" collection of methods.
30 * Typical usage is:
31 * <code>
32 * $adminService = new Google\Service\Directory(...);
33 * $printServers = $adminService->customers_chrome_printServers;
34 * </code>
35 */
36class CustomersChromePrintServers extends \Google\Service\Resource
37{
38 /**
39 * Creates multiple print servers. (printServers.batchCreatePrintServers)
40 *
41 * @param string $parent Required. The [unique
42 * ID](https://developers.google.com/admin-
43 * sdk/directory/reference/rest/v1/customers) of the customer's Google Workspace
44 * account. Format: `customers/{id}`
45 * @param BatchCreatePrintServersRequest $postBody
46 * @param array $optParams Optional parameters.
47 * @return BatchCreatePrintServersResponse
48 * @throws \Google\Service\Exception
49 */
50 public function batchCreatePrintServers($parent, BatchCreatePrintServersRequest $postBody, $optParams = [])
51 {
52 $params = ['parent' => $parent, 'postBody' => $postBody];
53 $params = array_merge($params, $optParams);
54 return $this->call('batchCreatePrintServers', [$params], BatchCreatePrintServersResponse::class);
55 }
56 /**
57 * Deletes multiple print servers. (printServers.batchDeletePrintServers)
58 *
59 * @param string $parent Required. The [unique
60 * ID](https://developers.google.com/admin-
61 * sdk/directory/reference/rest/v1/customers) of the customer's Google Workspace
62 * account. Format: `customers/{customer.id}`
63 * @param BatchDeletePrintServersRequest $postBody
64 * @param array $optParams Optional parameters.
65 * @return BatchDeletePrintServersResponse
66 * @throws \Google\Service\Exception
67 */
68 public function batchDeletePrintServers($parent, BatchDeletePrintServersRequest $postBody, $optParams = [])
69 {
70 $params = ['parent' => $parent, 'postBody' => $postBody];
71 $params = array_merge($params, $optParams);
72 return $this->call('batchDeletePrintServers', [$params], BatchDeletePrintServersResponse::class);
73 }
74 /**
75 * Creates a print server. (printServers.create)
76 *
77 * @param string $parent Required. The [unique
78 * ID](https://developers.google.com/admin-
79 * sdk/directory/reference/rest/v1/customers) of the customer's Google Workspace
80 * account. Format: `customers/{id}`
81 * @param PrintServer $postBody
82 * @param array $optParams Optional parameters.
83 * @return PrintServer
84 * @throws \Google\Service\Exception
85 */
86 public function create($parent, PrintServer $postBody, $optParams = [])
87 {
88 $params = ['parent' => $parent, 'postBody' => $postBody];
89 $params = array_merge($params, $optParams);
90 return $this->call('create', [$params], PrintServer::class);
91 }
92 /**
93 * Deletes a print server. (printServers.delete)
94 *
95 * @param string $name Required. The name of the print server to be deleted.
96 * Format: `customers/{customer.id}/chrome/printServers/{print_server.id}`
97 * @param array $optParams Optional parameters.
98 * @return AdminEmpty
99 * @throws \Google\Service\Exception
100 */
101 public function delete($name, $optParams = [])
102 {
103 $params = ['name' => $name];
104 $params = array_merge($params, $optParams);
105 return $this->call('delete', [$params], AdminEmpty::class);
106 }
107 /**
108 * Returns a print server's configuration. (printServers.get)
109 *
110 * @param string $name Required. The [unique
111 * ID](https://developers.google.com/admin-
112 * sdk/directory/reference/rest/v1/customers) of the customer's Google Workspace
113 * account. Format: `customers/{id}`
114 * @param array $optParams Optional parameters.
115 * @return PrintServer
116 * @throws \Google\Service\Exception
117 */
118 public function get($name, $optParams = [])
119 {
120 $params = ['name' => $name];
121 $params = array_merge($params, $optParams);
122 return $this->call('get', [$params], PrintServer::class);
123 }
124 /**
125 * Lists print server configurations.
126 * (printServers.listCustomersChromePrintServers)
127 *
128 * @param string $parent Required. The [unique
129 * ID](https://developers.google.com/admin-
130 * sdk/directory/reference/rest/v1/customers) of the customer's Google Workspace
131 * account. Format: `customers/{id}`
132 * @param array $optParams Optional parameters.
133 *
134 * @opt_param string filter Search query in [Common Expression Language
135 * syntax](https://github.com/google/cel-spec). Supported filters are
136 * `display_name`, `description`, and `uri`. Example:
137 * `printServer.displayName=='marketing-queue'`.
138 * @opt_param string orderBy Sort order for results. Supported values are
139 * `display_name`, `description`, or `create_time`. Default order is ascending,
140 * but descending order can be returned by appending "desc" to the `order_by`
141 * field. For instance, `orderBy=='description desc'` returns the print servers
142 * sorted by description in descending order.
143 * @opt_param string orgUnitId If `org_unit_id` is present in the request, only
144 * print servers owned or inherited by the organizational unit (OU) are
145 * returned. If the `PrintServer` resource's `org_unit_id` matches the one in
146 * the request, the OU owns the server. If `org_unit_id` is not specified in the
147 * request, all print servers are returned or filtered against.
148 * @opt_param int pageSize The maximum number of objects to return (default
149 * `100`, max `100`). The service might return fewer than this value.
150 * @opt_param string pageToken A generated token to paginate results (the
151 * `next_page_token` from a previous call).
152 * @return ListPrintServersResponse
153 * @throws \Google\Service\Exception
154 */
155 public function listCustomersChromePrintServers($parent, $optParams = [])
156 {
157 $params = ['parent' => $parent];
158 $params = array_merge($params, $optParams);
159 return $this->call('list', [$params], ListPrintServersResponse::class);
160 }
161 /**
162 * Updates a print server's configuration. (printServers.patch)
163 *
164 * @param string $name Immutable. Resource name of the print server. Leave empty
165 * when creating. Format:
166 * `customers/{customer.id}/printServers/{print_server.id}`
167 * @param PrintServer $postBody
168 * @param array $optParams Optional parameters.
169 *
170 * @opt_param string updateMask The list of fields to update. Some fields are
171 * read-only and cannot be updated. Values for unspecified fields are patched.
172 * @return PrintServer
173 * @throws \Google\Service\Exception
174 */
175 public function patch($name, PrintServer $postBody, $optParams = [])
176 {
177 $params = ['name' => $name, 'postBody' => $postBody];
178 $params = array_merge($params, $optParams);
179 return $this->call('patch', [$params], PrintServer::class);
180 }
181}
182
183// Adding a class alias for backwards compatibility with the previous class name.
184class_alias(CustomersChromePrintServers::class, 'Google_Service_Directory_Resource_CustomersChromePrintServers');
Note: See TracBrowser for help on using the repository browser.