PluginProbe
Authorizer / 2.6.10
Authorizer v2.6.10
3.15.3 3.15.2 3.15.1 3.15.0 3.14.3 3.14.4 3.14.2 3.14.1 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.9.0 2.9.1 2.9.10 2.9.11 2.9.12 2.9.13 2.9.2 2.9.3 2.9.6 All 126 releases
authorizer / vendor / google-api-php-client / src / Google / Service / SiteVerification.php

SiteVerification.php in Authorizer 2.6.10, at vendor/google-api-php-client/src/Google/Service/SiteVerification.php

404 lines 11.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 * use this file except in compliance with the License. You may obtain a copy of
5 * the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 * License for the specific language governing permissions and limitations under
13 * the License.
14 */
15
16 /**
17 * Service definition for SiteVerification (v1).
18 *
19 * <p>
20 * Lets you programatically verify ownership of websites or domains with Google.</p>
21 *
22 * <p>
23 * For more information about this service, see the API
24 * <a href="https://developers.google.com/site-verification/" target="_blank">Documentation</a>
25 * </p>
26 *
27 * @author Google, Inc.
28 */
29 class Google_Service_SiteVerification extends Google_Service
30 {
31 /** Manage the list of sites and domains you control. */
32 const SITEVERIFICATION =
33 "https://www.googleapis.com/auth/siteverification";
34 /** Manage your new site verifications with Google. */
35 const SITEVERIFICATION_VERIFY_ONLY =
36 "https://www.googleapis.com/auth/siteverification.verify_only";
37
38 public $webResource;
39
40
41 /**
42 * Constructs the internal representation of the SiteVerification service.
43 *
44 * @param Google_Client $client
45 */
46 public function __construct(Google_Client $client)
47 {
48 parent::__construct($client);
49 $this->rootUrl = 'https://www.googleapis.com/';
50 $this->servicePath = 'siteVerification/v1/';
51 $this->version = 'v1';
52 $this->serviceName = 'siteVerification';
53
54 $this->webResource = new Google_Service_SiteVerification_WebResource_Resource(
55 $this,
56 $this->serviceName,
57 'webResource',
58 array(
59 'methods' => array(
60 'delete' => array(
61 'path' => 'webResource/{id}',
62 'httpMethod' => 'DELETE',
63 'parameters' => array(
64 'id' => array(
65 'location' => 'path',
66 'type' => 'string',
67 'required' => true,
68 ),
69 ),
70 ),'get' => array(
71 'path' => 'webResource/{id}',
72 'httpMethod' => 'GET',
73 'parameters' => array(
74 'id' => array(
75 'location' => 'path',
76 'type' => 'string',
77 'required' => true,
78 ),
79 ),
80 ),'getToken' => array(
81 'path' => 'token',
82 'httpMethod' => 'POST',
83 'parameters' => array(),
84 ),'insert' => array(
85 'path' => 'webResource',
86 'httpMethod' => 'POST',
87 'parameters' => array(
88 'verificationMethod' => array(
89 'location' => 'query',
90 'type' => 'string',
91 'required' => true,
92 ),
93 ),
94 ),'list' => array(
95 'path' => 'webResource',
96 'httpMethod' => 'GET',
97 'parameters' => array(),
98 ),'patch' => array(
99 'path' => 'webResource/{id}',
100 'httpMethod' => 'PATCH',
101 'parameters' => array(
102 'id' => array(
103 'location' => 'path',
104 'type' => 'string',
105 'required' => true,
106 ),
107 ),
108 ),'update' => array(
109 'path' => 'webResource/{id}',
110 'httpMethod' => 'PUT',
111 'parameters' => array(
112 'id' => array(
113 'location' => 'path',
114 'type' => 'string',
115 'required' => true,
116 ),
117 ),
118 ),
119 )
120 )
121 );
122 }
123 }
124
125
126 /**
127 * The "webResource" collection of methods.
128 * Typical usage is:
129 * <code>
130 * $siteVerificationService = new Google_Service_SiteVerification(...);
131 * $webResource = $siteVerificationService->webResource;
132 * </code>
133 */
134 class Google_Service_SiteVerification_WebResource_Resource extends Google_Service_Resource
135 {
136
137 /**
138 * Relinquish ownership of a website or domain. (webResource.delete)
139 *
140 * @param string $id The id of a verified site or domain.
141 * @param array $optParams Optional parameters.
142 */
143 public function delete($id, $optParams = array())
144 {
145 $params = array('id' => $id);
146 $params = array_merge($params, $optParams);
147 return $this->call('delete', array($params));
148 }
149
150 /**
151 * Get the most current data for a website or domain. (webResource.get)
152 *
153 * @param string $id The id of a verified site or domain.
154 * @param array $optParams Optional parameters.
155 * @return Google_Service_SiteVerification_SiteVerificationWebResourceResource
156 */
157 public function get($id, $optParams = array())
158 {
159 $params = array('id' => $id);
160 $params = array_merge($params, $optParams);
161 return $this->call('get', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceResource");
162 }
163
164 /**
165 * Get a verification token for placing on a website or domain.
166 * (webResource.getToken)
167 *
168 * @param Google_SiteVerificationWebResourceGettokenRequest $postBody
169 * @param array $optParams Optional parameters.
170 * @return Google_Service_SiteVerification_SiteVerificationWebResourceGettokenResponse
171 */
172 public function getToken(Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequest $postBody, $optParams = array())
173 {
174 $params = array('postBody' => $postBody);
175 $params = array_merge($params, $optParams);
176 return $this->call('getToken', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceGettokenResponse");
177 }
178
179 /**
180 * Attempt verification of a website or domain. (webResource.insert)
181 *
182 * @param string $verificationMethod The method to use for verifying a site or
183 * domain.
184 * @param Google_SiteVerificationWebResourceResource $postBody
185 * @param array $optParams Optional parameters.
186 * @return Google_Service_SiteVerification_SiteVerificationWebResourceResource
187 */
188 public function insert($verificationMethod, Google_Service_SiteVerification_SiteVerificationWebResourceResource $postBody, $optParams = array())
189 {
190 $params = array('verificationMethod' => $verificationMethod, 'postBody' => $postBody);
191 $params = array_merge($params, $optParams);
192 return $this->call('insert', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceResource");
193 }
194
195 /**
196 * Get the list of your verified websites and domains.
197 * (webResource.listWebResource)
198 *
199 * @param array $optParams Optional parameters.
200 * @return Google_Service_SiteVerification_SiteVerificationWebResourceListResponse
201 */
202 public function listWebResource($optParams = array())
203 {
204 $params = array();
205 $params = array_merge($params, $optParams);
206 return $this->call('list', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceListResponse");
207 }
208
209 /**
210 * Modify the list of owners for your website or domain. This method supports
211 * patch semantics. (webResource.patch)
212 *
213 * @param string $id The id of a verified site or domain.
214 * @param Google_SiteVerificationWebResourceResource $postBody
215 * @param array $optParams Optional parameters.
216 * @return Google_Service_SiteVerification_SiteVerificationWebResourceResource
217 */
218 public function patch($id, Google_Service_SiteVerification_SiteVerificationWebResourceResource $postBody, $optParams = array())
219 {
220 $params = array('id' => $id, 'postBody' => $postBody);
221 $params = array_merge($params, $optParams);
222 return $this->call('patch', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceResource");
223 }
224
225 /**
226 * Modify the list of owners for your website or domain. (webResource.update)
227 *
228 * @param string $id The id of a verified site or domain.
229 * @param Google_SiteVerificationWebResourceResource $postBody
230 * @param array $optParams Optional parameters.
231 * @return Google_Service_SiteVerification_SiteVerificationWebResourceResource
232 */
233 public function update($id, Google_Service_SiteVerification_SiteVerificationWebResourceResource $postBody, $optParams = array())
234 {
235 $params = array('id' => $id, 'postBody' => $postBody);
236 $params = array_merge($params, $optParams);
237 return $this->call('update', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceResource");
238 }
239 }
240
241
242
243
244 class Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequest extends Google_Model
245 {
246 protected $internal_gapi_mappings = array(
247 );
248 protected $siteType = 'Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequestSite';
249 protected $siteDataType = '';
250 public $verificationMethod;
251
252
253 public function setSite(Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequestSite $site)
254 {
255 $this->site = $site;
256 }
257 public function getSite()
258 {
259 return $this->site;
260 }
261 public function setVerificationMethod($verificationMethod)
262 {
263 $this->verificationMethod = $verificationMethod;
264 }
265 public function getVerificationMethod()
266 {
267 return $this->verificationMethod;
268 }
269 }
270
271 class Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequestSite extends Google_Model
272 {
273 protected $internal_gapi_mappings = array(
274 );
275 public $identifier;
276 public $type;
277
278
279 public function setIdentifier($identifier)
280 {
281 $this->identifier = $identifier;
282 }
283 public function getIdentifier()
284 {
285 return $this->identifier;
286 }
287 public function setType($type)
288 {
289 $this->type = $type;
290 }
291 public function getType()
292 {
293 return $this->type;
294 }
295 }
296
297 class Google_Service_SiteVerification_SiteVerificationWebResourceGettokenResponse extends Google_Model
298 {
299 protected $internal_gapi_mappings = array(
300 );
301 public $method;
302 public $token;
303
304
305 public function setMethod($method)
306 {
307 $this->method = $method;
308 }
309 public function getMethod()
310 {
311 return $this->method;
312 }
313 public function setToken($token)
314 {
315 $this->token = $token;
316 }
317 public function getToken()
318 {
319 return $this->token;
320 }
321 }
322
323 class Google_Service_SiteVerification_SiteVerificationWebResourceListResponse extends Google_Collection
324 {
325 protected $collection_key = 'items';
326 protected $internal_gapi_mappings = array(
327 );
328 protected $itemsType = 'Google_Service_SiteVerification_SiteVerificationWebResourceResource';
329 protected $itemsDataType = 'array';
330
331
332 public function setItems($items)
333 {
334 $this->items = $items;
335 }
336 public function getItems()
337 {
338 return $this->items;
339 }
340 }
341
342 class Google_Service_SiteVerification_SiteVerificationWebResourceResource extends Google_Collection
343 {
344 protected $collection_key = 'owners';
345 protected $internal_gapi_mappings = array(
346 );
347 public $id;
348 public $owners;
349 protected $siteType = 'Google_Service_SiteVerification_SiteVerificationWebResourceResourceSite';
350 protected $siteDataType = '';
351
352
353 public function setId($id)
354 {
355 $this->id = $id;
356 }
357 public function getId()
358 {
359 return $this->id;
360 }
361 public function setOwners($owners)
362 {
363 $this->owners = $owners;
364 }
365 public function getOwners()
366 {
367 return $this->owners;
368 }
369 public function setSite(Google_Service_SiteVerification_SiteVerificationWebResourceResourceSite $site)
370 {
371 $this->site = $site;
372 }
373 public function getSite()
374 {
375 return $this->site;
376 }
377 }
378
379 class Google_Service_SiteVerification_SiteVerificationWebResourceResourceSite extends Google_Model
380 {
381 protected $internal_gapi_mappings = array(
382 );
383 public $identifier;
384 public $type;
385
386
387 public function setIdentifier($identifier)
388 {
389 $this->identifier = $identifier;
390 }
391 public function getIdentifier()
392 {
393 return $this->identifier;
394 }
395 public function setType($type)
396 {
397 $this->type = $type;
398 }
399 public function getType()
400 {
401 return $this->type;
402 }
403 }
404