[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 * Copyright 2010 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 18 /** 19 * Service definition for SiteVerification (v1). 20 * 21 * <p> 22 * Lets you programatically verify ownership of websites or domains with Google. 23 * </p> 24 * 25 * <p> 26 * For more information about this service, see the API 27 * <a href="https://developers.google.com/site-verification/" target="_blank">Documentation</a> 28 * </p> 29 * 30 * @author Google, Inc. 31 */ 32 class Google_Service_SiteVerification extends Google_Service 33 { 34 /** Manage the list of sites and domains you control. */ 35 const SITEVERIFICATION = "https://www.googleapis.com/auth/siteverification"; 36 /** Manage your new site verifications with Google. */ 37 const SITEVERIFICATION_VERIFY_ONLY = "https://www.googleapis.com/auth/siteverification.verify_only"; 38 39 public $webResource; 40 41 42 /** 43 * Constructs the internal representation of the SiteVerification service. 44 * 45 * @param Google_Client $client 46 */ 47 public function __construct(Google_Client $client) 48 { 49 parent::__construct($client); 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 141 * The id of a verified site or domain. 142 * @param array $optParams Optional parameters. 143 */ 144 public function delete($id, $optParams = array()) 145 { 146 $params = array('id' => $id); 147 $params = array_merge($params, $optParams); 148 return $this->call('delete', array($params)); 149 } 150 /** 151 * Get the most current data for a website or domain. (webResource.get) 152 * 153 * @param string $id 154 * The id of a verified site or domain. 155 * @param array $optParams Optional parameters. 156 * @return Google_Service_SiteVerification_SiteVerificationWebResourceResource 157 */ 158 public function get($id, $optParams = array()) 159 { 160 $params = array('id' => $id); 161 $params = array_merge($params, $optParams); 162 return $this->call('get', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceResource"); 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 * Attempt verification of a website or domain. (webResource.insert) 180 * 181 * @param string $verificationMethod 182 * The method to use for verifying a site or domain. 183 * @param Google_SiteVerificationWebResourceResource $postBody 184 * @param array $optParams Optional parameters. 185 * @return Google_Service_SiteVerification_SiteVerificationWebResourceResource 186 */ 187 public function insert($verificationMethod, Google_Service_SiteVerification_SiteVerificationWebResourceResource $postBody, $optParams = array()) 188 { 189 $params = array('verificationMethod' => $verificationMethod, 'postBody' => $postBody); 190 $params = array_merge($params, $optParams); 191 return $this->call('insert', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceResource"); 192 } 193 /** 194 * Get the list of your verified websites and domains. 195 * (webResource.listWebResource) 196 * 197 * @param array $optParams Optional parameters. 198 * @return Google_Service_SiteVerification_SiteVerificationWebResourceListResponse 199 */ 200 public function listWebResource($optParams = array()) 201 { 202 $params = array(); 203 $params = array_merge($params, $optParams); 204 return $this->call('list', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceListResponse"); 205 } 206 /** 207 * Modify the list of owners for your website or domain. This method supports 208 * patch semantics. (webResource.patch) 209 * 210 * @param string $id 211 * The id of a verified site or domain. 212 * @param Google_SiteVerificationWebResourceResource $postBody 213 * @param array $optParams Optional parameters. 214 * @return Google_Service_SiteVerification_SiteVerificationWebResourceResource 215 */ 216 public function patch($id, Google_Service_SiteVerification_SiteVerificationWebResourceResource $postBody, $optParams = array()) 217 { 218 $params = array('id' => $id, 'postBody' => $postBody); 219 $params = array_merge($params, $optParams); 220 return $this->call('patch', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceResource"); 221 } 222 /** 223 * Modify the list of owners for your website or domain. (webResource.update) 224 * 225 * @param string $id 226 * The id of a verified site or domain. 227 * @param Google_SiteVerificationWebResourceResource $postBody 228 * @param array $optParams Optional parameters. 229 * @return Google_Service_SiteVerification_SiteVerificationWebResourceResource 230 */ 231 public function update($id, Google_Service_SiteVerification_SiteVerificationWebResourceResource $postBody, $optParams = array()) 232 { 233 $params = array('id' => $id, 'postBody' => $postBody); 234 $params = array_merge($params, $optParams); 235 return $this->call('update', array($params), "Google_Service_SiteVerification_SiteVerificationWebResourceResource"); 236 } 237 } 238 239 240 241 242 class Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequest extends Google_Model 243 { 244 protected $siteType = 'Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequestSite'; 245 protected $siteDataType = ''; 246 public $verificationMethod; 247 248 public function setSite(Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequestSite $site) 249 { 250 $this->site = $site; 251 } 252 253 public function getSite() 254 { 255 return $this->site; 256 } 257 258 public function setVerificationMethod($verificationMethod) 259 { 260 $this->verificationMethod = $verificationMethod; 261 } 262 263 public function getVerificationMethod() 264 { 265 return $this->verificationMethod; 266 } 267 } 268 269 class Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequestSite extends Google_Model 270 { 271 public $identifier; 272 public $type; 273 274 public function setIdentifier($identifier) 275 { 276 $this->identifier = $identifier; 277 } 278 279 public function getIdentifier() 280 { 281 return $this->identifier; 282 } 283 284 public function setType($type) 285 { 286 $this->type = $type; 287 } 288 289 public function getType() 290 { 291 return $this->type; 292 } 293 } 294 295 class Google_Service_SiteVerification_SiteVerificationWebResourceGettokenResponse extends Google_Model 296 { 297 public $method; 298 public $token; 299 300 public function setMethod($method) 301 { 302 $this->method = $method; 303 } 304 305 public function getMethod() 306 { 307 return $this->method; 308 } 309 310 public function setToken($token) 311 { 312 $this->token = $token; 313 } 314 315 public function getToken() 316 { 317 return $this->token; 318 } 319 } 320 321 class Google_Service_SiteVerification_SiteVerificationWebResourceListResponse extends Google_Collection 322 { 323 protected $collection_key = 'items'; 324 protected $itemsType = 'Google_Service_SiteVerification_SiteVerificationWebResourceResource'; 325 protected $itemsDataType = 'array'; 326 327 public function setItems($items) 328 { 329 $this->items = $items; 330 } 331 332 public function getItems() 333 { 334 return $this->items; 335 } 336 } 337 338 class Google_Service_SiteVerification_SiteVerificationWebResourceResource extends Google_Collection 339 { 340 protected $collection_key = 'owners'; 341 public $id; 342 public $owners; 343 protected $siteType = 'Google_Service_SiteVerification_SiteVerificationWebResourceResourceSite'; 344 protected $siteDataType = ''; 345 346 public function setId($id) 347 { 348 $this->id = $id; 349 } 350 351 public function getId() 352 { 353 return $this->id; 354 } 355 356 public function setOwners($owners) 357 { 358 $this->owners = $owners; 359 } 360 361 public function getOwners() 362 { 363 return $this->owners; 364 } 365 366 public function setSite(Google_Service_SiteVerification_SiteVerificationWebResourceResourceSite $site) 367 { 368 $this->site = $site; 369 } 370 371 public function getSite() 372 { 373 return $this->site; 374 } 375 } 376 377 class Google_Service_SiteVerification_SiteVerificationWebResourceResourceSite extends Google_Model 378 { 379 public $identifier; 380 public $type; 381 382 public function setIdentifier($identifier) 383 { 384 $this->identifier = $identifier; 385 } 386 387 public function getIdentifier() 388 { 389 return $this->identifier; 390 } 391 392 public function setType($type) 393 { 394 $this->type = $type; 395 } 396 397 public function getType() 398 { 399 return $this->type; 400 } 401 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |