source: vendor/google/apiclient-services/src/ChecksService.php

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

Upload project files

  • Property mode set to 100644
File size: 9.9 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;
19
20use Google\Client;
21
22/**
23 * Service definition for ChecksService (v1alpha).
24 *
25 * <p>
26 * The Checks API contains powerful and easy-to-use privacy and compliance APIs
27 * that interact with the Checks product and its underlying technology.</p>
28 *
29 * <p>
30 * For more information about this service, see the API
31 * <a href="https://developers.google.com/checks" target="_blank">Documentation</a>
32 * </p>
33 *
34 * @author Google, Inc.
35 */
36class ChecksService extends \Google\Service
37{
38
39
40 public $accounts_apps;
41 public $accounts_apps_operations;
42 public $accounts_apps_reports;
43 public $accounts_repos_operations;
44 public $accounts_repos_scans;
45 public $aisafety;
46 public $media;
47 public $rootUrlTemplate;
48
49 /**
50 * Constructs the internal representation of the ChecksService service.
51 *
52 * @param Client|array $clientOrConfig The client used to deliver requests, or a
53 * config array to pass to a new Client instance.
54 * @param string $rootUrl The root URL used for requests to the service.
55 */
56 public function __construct($clientOrConfig = [], $rootUrl = null)
57 {
58 parent::__construct($clientOrConfig);
59 $this->rootUrl = $rootUrl ?: 'https://checks.googleapis.com/';
60 $this->rootUrlTemplate = $rootUrl ?: 'https://checks.UNIVERSE_DOMAIN/';
61 $this->servicePath = '';
62 $this->batchPath = 'batch';
63 $this->version = 'v1alpha';
64 $this->serviceName = 'checks';
65
66 $this->accounts_apps = new ChecksService\Resource\AccountsApps(
67 $this,
68 $this->serviceName,
69 'apps',
70 [
71 'methods' => [
72 'get' => [
73 'path' => 'v1alpha/{+name}',
74 'httpMethod' => 'GET',
75 'parameters' => [
76 'name' => [
77 'location' => 'path',
78 'type' => 'string',
79 'required' => true,
80 ],
81 ],
82 ],'list' => [
83 'path' => 'v1alpha/{+parent}/apps',
84 'httpMethod' => 'GET',
85 'parameters' => [
86 'parent' => [
87 'location' => 'path',
88 'type' => 'string',
89 'required' => true,
90 ],
91 'pageSize' => [
92 'location' => 'query',
93 'type' => 'integer',
94 ],
95 'pageToken' => [
96 'location' => 'query',
97 'type' => 'string',
98 ],
99 ],
100 ],
101 ]
102 ]
103 );
104 $this->accounts_apps_operations = new ChecksService\Resource\AccountsAppsOperations(
105 $this,
106 $this->serviceName,
107 'operations',
108 [
109 'methods' => [
110 'cancel' => [
111 'path' => 'v1alpha/{+name}:cancel',
112 'httpMethod' => 'POST',
113 'parameters' => [
114 'name' => [
115 'location' => 'path',
116 'type' => 'string',
117 'required' => true,
118 ],
119 ],
120 ],'delete' => [
121 'path' => 'v1alpha/{+name}',
122 'httpMethod' => 'DELETE',
123 'parameters' => [
124 'name' => [
125 'location' => 'path',
126 'type' => 'string',
127 'required' => true,
128 ],
129 ],
130 ],'get' => [
131 'path' => 'v1alpha/{+name}',
132 'httpMethod' => 'GET',
133 'parameters' => [
134 'name' => [
135 'location' => 'path',
136 'type' => 'string',
137 'required' => true,
138 ],
139 ],
140 ],'list' => [
141 'path' => 'v1alpha/{+name}/operations',
142 'httpMethod' => 'GET',
143 'parameters' => [
144 'name' => [
145 'location' => 'path',
146 'type' => 'string',
147 'required' => true,
148 ],
149 'filter' => [
150 'location' => 'query',
151 'type' => 'string',
152 ],
153 'pageSize' => [
154 'location' => 'query',
155 'type' => 'integer',
156 ],
157 'pageToken' => [
158 'location' => 'query',
159 'type' => 'string',
160 ],
161 ],
162 ],'wait' => [
163 'path' => 'v1alpha/{+name}:wait',
164 'httpMethod' => 'POST',
165 'parameters' => [
166 'name' => [
167 'location' => 'path',
168 'type' => 'string',
169 'required' => true,
170 ],
171 ],
172 ],
173 ]
174 ]
175 );
176 $this->accounts_apps_reports = new ChecksService\Resource\AccountsAppsReports(
177 $this,
178 $this->serviceName,
179 'reports',
180 [
181 'methods' => [
182 'get' => [
183 'path' => 'v1alpha/{+name}',
184 'httpMethod' => 'GET',
185 'parameters' => [
186 'name' => [
187 'location' => 'path',
188 'type' => 'string',
189 'required' => true,
190 ],
191 'checksFilter' => [
192 'location' => 'query',
193 'type' => 'string',
194 ],
195 ],
196 ],'list' => [
197 'path' => 'v1alpha/{+parent}/reports',
198 'httpMethod' => 'GET',
199 'parameters' => [
200 'parent' => [
201 'location' => 'path',
202 'type' => 'string',
203 'required' => true,
204 ],
205 'checksFilter' => [
206 'location' => 'query',
207 'type' => 'string',
208 ],
209 'filter' => [
210 'location' => 'query',
211 'type' => 'string',
212 ],
213 'pageSize' => [
214 'location' => 'query',
215 'type' => 'integer',
216 ],
217 'pageToken' => [
218 'location' => 'query',
219 'type' => 'string',
220 ],
221 ],
222 ],
223 ]
224 ]
225 );
226 $this->accounts_repos_operations = new ChecksService\Resource\AccountsReposOperations(
227 $this,
228 $this->serviceName,
229 'operations',
230 [
231 'methods' => [
232 'get' => [
233 'path' => 'v1alpha/{+name}',
234 'httpMethod' => 'GET',
235 'parameters' => [
236 'name' => [
237 'location' => 'path',
238 'type' => 'string',
239 'required' => true,
240 ],
241 ],
242 ],
243 ]
244 ]
245 );
246 $this->accounts_repos_scans = new ChecksService\Resource\AccountsReposScans(
247 $this,
248 $this->serviceName,
249 'scans',
250 [
251 'methods' => [
252 'generate' => [
253 'path' => 'v1alpha/{+parent}/scans:generate',
254 'httpMethod' => 'POST',
255 'parameters' => [
256 'parent' => [
257 'location' => 'path',
258 'type' => 'string',
259 'required' => true,
260 ],
261 ],
262 ],'get' => [
263 'path' => 'v1alpha/{+name}',
264 'httpMethod' => 'GET',
265 'parameters' => [
266 'name' => [
267 'location' => 'path',
268 'type' => 'string',
269 'required' => true,
270 ],
271 ],
272 ],'list' => [
273 'path' => 'v1alpha/{+parent}/scans',
274 'httpMethod' => 'GET',
275 'parameters' => [
276 'parent' => [
277 'location' => 'path',
278 'type' => 'string',
279 'required' => true,
280 ],
281 'filter' => [
282 'location' => 'query',
283 'type' => 'string',
284 ],
285 'pageSize' => [
286 'location' => 'query',
287 'type' => 'integer',
288 ],
289 'pageToken' => [
290 'location' => 'query',
291 'type' => 'string',
292 ],
293 ],
294 ],
295 ]
296 ]
297 );
298 $this->aisafety = new ChecksService\Resource\Aisafety(
299 $this,
300 $this->serviceName,
301 'aisafety',
302 [
303 'methods' => [
304 'classifyContent' => [
305 'path' => 'v1alpha/aisafety:classifyContent',
306 'httpMethod' => 'POST',
307 'parameters' => [],
308 ],
309 ]
310 ]
311 );
312 $this->media = new ChecksService\Resource\Media(
313 $this,
314 $this->serviceName,
315 'media',
316 [
317 'methods' => [
318 'upload' => [
319 'path' => 'v1alpha/{+parent}/reports:analyzeUpload',
320 'httpMethod' => 'POST',
321 'parameters' => [
322 'parent' => [
323 'location' => 'path',
324 'type' => 'string',
325 'required' => true,
326 ],
327 ],
328 ],
329 ]
330 ]
331 );
332 }
333}
334
335// Adding a class alias for backwards compatibility with the previous class name.
336class_alias(ChecksService::class, 'Google_Service_ChecksService');
Note: See TracBrowser for help on using the repository browser.