source: vendor/google/apiclient-services/src/RecaptchaEnterprise.php@ f9c482b

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

Upload new project files

  • Property mode set to 100644
File size: 12.5 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 RecaptchaEnterprise (v1).
24 *
25 * <p>
26 * Help protect your website from fraudulent activity, spam, and abuse without
27 * creating friction.</p>
28 *
29 * <p>
30 * For more information about this service, see the API
31 * <a href="https://cloud.google.com/recaptcha-enterprise/" target="_blank">Documentation</a>
32 * </p>
33 *
34 * @author Google, Inc.
35 */
36class RecaptchaEnterprise extends \Google\Service
37{
38 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
39 const CLOUD_PLATFORM =
40 "https://www.googleapis.com/auth/cloud-platform";
41
42 public $projects_assessments;
43 public $projects_firewallpolicies;
44 public $projects_keys;
45 public $projects_relatedaccountgroupmemberships;
46 public $projects_relatedaccountgroups;
47 public $projects_relatedaccountgroups_memberships;
48 public $rootUrlTemplate;
49
50 /**
51 * Constructs the internal representation of the RecaptchaEnterprise service.
52 *
53 * @param Client|array $clientOrConfig The client used to deliver requests, or a
54 * config array to pass to a new Client instance.
55 * @param string $rootUrl The root URL used for requests to the service.
56 */
57 public function __construct($clientOrConfig = [], $rootUrl = null)
58 {
59 parent::__construct($clientOrConfig);
60 $this->rootUrl = $rootUrl ?: 'https://recaptchaenterprise.googleapis.com/';
61 $this->rootUrlTemplate = $rootUrl ?: 'https://recaptchaenterprise.UNIVERSE_DOMAIN/';
62 $this->servicePath = '';
63 $this->batchPath = 'batch';
64 $this->version = 'v1';
65 $this->serviceName = 'recaptchaenterprise';
66
67 $this->projects_assessments = new RecaptchaEnterprise\Resource\ProjectsAssessments(
68 $this,
69 $this->serviceName,
70 'assessments',
71 [
72 'methods' => [
73 'annotate' => [
74 'path' => 'v1/{+name}:annotate',
75 'httpMethod' => 'POST',
76 'parameters' => [
77 'name' => [
78 'location' => 'path',
79 'type' => 'string',
80 'required' => true,
81 ],
82 ],
83 ],'create' => [
84 'path' => 'v1/{+parent}/assessments',
85 'httpMethod' => 'POST',
86 'parameters' => [
87 'parent' => [
88 'location' => 'path',
89 'type' => 'string',
90 'required' => true,
91 ],
92 ],
93 ],
94 ]
95 ]
96 );
97 $this->projects_firewallpolicies = new RecaptchaEnterprise\Resource\ProjectsFirewallpolicies(
98 $this,
99 $this->serviceName,
100 'firewallpolicies',
101 [
102 'methods' => [
103 'create' => [
104 'path' => 'v1/{+parent}/firewallpolicies',
105 'httpMethod' => 'POST',
106 'parameters' => [
107 'parent' => [
108 'location' => 'path',
109 'type' => 'string',
110 'required' => true,
111 ],
112 ],
113 ],'delete' => [
114 'path' => 'v1/{+name}',
115 'httpMethod' => 'DELETE',
116 'parameters' => [
117 'name' => [
118 'location' => 'path',
119 'type' => 'string',
120 'required' => true,
121 ],
122 ],
123 ],'get' => [
124 'path' => 'v1/{+name}',
125 'httpMethod' => 'GET',
126 'parameters' => [
127 'name' => [
128 'location' => 'path',
129 'type' => 'string',
130 'required' => true,
131 ],
132 ],
133 ],'list' => [
134 'path' => 'v1/{+parent}/firewallpolicies',
135 'httpMethod' => 'GET',
136 'parameters' => [
137 'parent' => [
138 'location' => 'path',
139 'type' => 'string',
140 'required' => true,
141 ],
142 'pageSize' => [
143 'location' => 'query',
144 'type' => 'integer',
145 ],
146 'pageToken' => [
147 'location' => 'query',
148 'type' => 'string',
149 ],
150 ],
151 ],'patch' => [
152 'path' => 'v1/{+name}',
153 'httpMethod' => 'PATCH',
154 'parameters' => [
155 'name' => [
156 'location' => 'path',
157 'type' => 'string',
158 'required' => true,
159 ],
160 'updateMask' => [
161 'location' => 'query',
162 'type' => 'string',
163 ],
164 ],
165 ],'reorder' => [
166 'path' => 'v1/{+parent}/firewallpolicies:reorder',
167 'httpMethod' => 'POST',
168 'parameters' => [
169 'parent' => [
170 'location' => 'path',
171 'type' => 'string',
172 'required' => true,
173 ],
174 ],
175 ],
176 ]
177 ]
178 );
179 $this->projects_keys = new RecaptchaEnterprise\Resource\ProjectsKeys(
180 $this,
181 $this->serviceName,
182 'keys',
183 [
184 'methods' => [
185 'addIpOverride' => [
186 'path' => 'v1/{+name}:addIpOverride',
187 'httpMethod' => 'POST',
188 'parameters' => [
189 'name' => [
190 'location' => 'path',
191 'type' => 'string',
192 'required' => true,
193 ],
194 ],
195 ],'create' => [
196 'path' => 'v1/{+parent}/keys',
197 'httpMethod' => 'POST',
198 'parameters' => [
199 'parent' => [
200 'location' => 'path',
201 'type' => 'string',
202 'required' => true,
203 ],
204 ],
205 ],'delete' => [
206 'path' => 'v1/{+name}',
207 'httpMethod' => 'DELETE',
208 'parameters' => [
209 'name' => [
210 'location' => 'path',
211 'type' => 'string',
212 'required' => true,
213 ],
214 ],
215 ],'get' => [
216 'path' => 'v1/{+name}',
217 'httpMethod' => 'GET',
218 'parameters' => [
219 'name' => [
220 'location' => 'path',
221 'type' => 'string',
222 'required' => true,
223 ],
224 ],
225 ],'getMetrics' => [
226 'path' => 'v1/{+name}',
227 'httpMethod' => 'GET',
228 'parameters' => [
229 'name' => [
230 'location' => 'path',
231 'type' => 'string',
232 'required' => true,
233 ],
234 ],
235 ],'list' => [
236 'path' => 'v1/{+parent}/keys',
237 'httpMethod' => 'GET',
238 'parameters' => [
239 'parent' => [
240 'location' => 'path',
241 'type' => 'string',
242 'required' => true,
243 ],
244 'pageSize' => [
245 'location' => 'query',
246 'type' => 'integer',
247 ],
248 'pageToken' => [
249 'location' => 'query',
250 'type' => 'string',
251 ],
252 ],
253 ],'listIpOverrides' => [
254 'path' => 'v1/{+parent}:listIpOverrides',
255 'httpMethod' => 'GET',
256 'parameters' => [
257 'parent' => [
258 'location' => 'path',
259 'type' => 'string',
260 'required' => true,
261 ],
262 'pageSize' => [
263 'location' => 'query',
264 'type' => 'integer',
265 ],
266 'pageToken' => [
267 'location' => 'query',
268 'type' => 'string',
269 ],
270 ],
271 ],'migrate' => [
272 'path' => 'v1/{+name}:migrate',
273 'httpMethod' => 'POST',
274 'parameters' => [
275 'name' => [
276 'location' => 'path',
277 'type' => 'string',
278 'required' => true,
279 ],
280 ],
281 ],'patch' => [
282 'path' => 'v1/{+name}',
283 'httpMethod' => 'PATCH',
284 'parameters' => [
285 'name' => [
286 'location' => 'path',
287 'type' => 'string',
288 'required' => true,
289 ],
290 'updateMask' => [
291 'location' => 'query',
292 'type' => 'string',
293 ],
294 ],
295 ],'removeIpOverride' => [
296 'path' => 'v1/{+name}:removeIpOverride',
297 'httpMethod' => 'POST',
298 'parameters' => [
299 'name' => [
300 'location' => 'path',
301 'type' => 'string',
302 'required' => true,
303 ],
304 ],
305 ],'retrieveLegacySecretKey' => [
306 'path' => 'v1/{+key}:retrieveLegacySecretKey',
307 'httpMethod' => 'GET',
308 'parameters' => [
309 'key' => [
310 'location' => 'path',
311 'type' => 'string',
312 'required' => true,
313 ],
314 ],
315 ],
316 ]
317 ]
318 );
319 $this->projects_relatedaccountgroupmemberships = new RecaptchaEnterprise\Resource\ProjectsRelatedaccountgroupmemberships(
320 $this,
321 $this->serviceName,
322 'relatedaccountgroupmemberships',
323 [
324 'methods' => [
325 'search' => [
326 'path' => 'v1/{+project}/relatedaccountgroupmemberships:search',
327 'httpMethod' => 'POST',
328 'parameters' => [
329 'project' => [
330 'location' => 'path',
331 'type' => 'string',
332 'required' => true,
333 ],
334 ],
335 ],
336 ]
337 ]
338 );
339 $this->projects_relatedaccountgroups = new RecaptchaEnterprise\Resource\ProjectsRelatedaccountgroups(
340 $this,
341 $this->serviceName,
342 'relatedaccountgroups',
343 [
344 'methods' => [
345 'list' => [
346 'path' => 'v1/{+parent}/relatedaccountgroups',
347 'httpMethod' => 'GET',
348 'parameters' => [
349 'parent' => [
350 'location' => 'path',
351 'type' => 'string',
352 'required' => true,
353 ],
354 'pageSize' => [
355 'location' => 'query',
356 'type' => 'integer',
357 ],
358 'pageToken' => [
359 'location' => 'query',
360 'type' => 'string',
361 ],
362 ],
363 ],
364 ]
365 ]
366 );
367 $this->projects_relatedaccountgroups_memberships = new RecaptchaEnterprise\Resource\ProjectsRelatedaccountgroupsMemberships(
368 $this,
369 $this->serviceName,
370 'memberships',
371 [
372 'methods' => [
373 'list' => [
374 'path' => 'v1/{+parent}/memberships',
375 'httpMethod' => 'GET',
376 'parameters' => [
377 'parent' => [
378 'location' => 'path',
379 'type' => 'string',
380 'required' => true,
381 ],
382 'pageSize' => [
383 'location' => 'query',
384 'type' => 'integer',
385 ],
386 'pageToken' => [
387 'location' => 'query',
388 'type' => 'string',
389 ],
390 ],
391 ],
392 ]
393 ]
394 );
395 }
396}
397
398// Adding a class alias for backwards compatibility with the previous class name.
399class_alias(RecaptchaEnterprise::class, 'Google_Service_RecaptchaEnterprise');
Note: See TracBrowser for help on using the repository browser.