Google_WebResourceServiceResource

The "webResource" collection of methods.

Defined (1)

The class is defined in the following location(s).

/google-api/src/contrib/Google_SiteVerificationService.php  
  1. class Google_WebResourceServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Attempt verification of a website or domain. (webResource.insert) 
  6. * @param string $verificationMethod The method to use for verifying a site or domain. 
  7. * @param Google_SiteVerificationWebResourceResource $postBody 
  8. * @param array $optParams Optional parameters. 
  9. * @return Google_SiteVerificationWebResourceResource 
  10. */ 
  11. public function insert($verificationMethod, Google_SiteVerificationWebResourceResource $postBody, $optParams = array()) { 
  12. $params = array('verificationMethod' => $verificationMethod, 'postBody' => $postBody); 
  13. $params = array_merge($params, $optParams); 
  14. $data = $this->__call('insert', array($params)); 
  15. if ($this->useObjects()) { 
  16. return new Google_SiteVerificationWebResourceResource($data); 
  17. } else { 
  18. return $data; 
  19. /** 
  20. * Get the most current data for a website or domain. (webResource.get) 
  21. * @param string $id The id of a verified site or domain. 
  22. * @param array $optParams Optional parameters. 
  23. * @return Google_SiteVerificationWebResourceResource 
  24. */ 
  25. public function get($id, $optParams = array()) { 
  26. $params = array('id' => $id); 
  27. $params = array_merge($params, $optParams); 
  28. $data = $this->__call('get', array($params)); 
  29. if ($this->useObjects()) { 
  30. return new Google_SiteVerificationWebResourceResource($data); 
  31. } else { 
  32. return $data; 
  33. /** 
  34. * Get the list of your verified websites and domains. (webResource.list) 
  35. * @param array $optParams Optional parameters. 
  36. * @return Google_SiteVerificationWebResourceListResponse 
  37. */ 
  38. public function listWebResource($optParams = array()) { 
  39. $params = array(); 
  40. $params = array_merge($params, $optParams); 
  41. $data = $this->__call('list', array($params)); 
  42. if ($this->useObjects()) { 
  43. return new Google_SiteVerificationWebResourceListResponse($data); 
  44. } else { 
  45. return $data; 
  46. /** 
  47. * Modify the list of owners for your website or domain. (webResource.update) 
  48. * @param string $id The id of a verified site or domain. 
  49. * @param Google_SiteVerificationWebResourceResource $postBody 
  50. * @param array $optParams Optional parameters. 
  51. * @return Google_SiteVerificationWebResourceResource 
  52. */ 
  53. public function update($id, Google_SiteVerificationWebResourceResource $postBody, $optParams = array()) { 
  54. $params = array('id' => $id, 'postBody' => $postBody); 
  55. $params = array_merge($params, $optParams); 
  56. $data = $this->__call('update', array($params)); 
  57. if ($this->useObjects()) { 
  58. return new Google_SiteVerificationWebResourceResource($data); 
  59. } else { 
  60. return $data; 
  61. /** 
  62. * Modify the list of owners for your website or domain. This method supports patch semantics. 
  63. * (webResource.patch) 
  64. * @param string $id The id of a verified site or domain. 
  65. * @param Google_SiteVerificationWebResourceResource $postBody 
  66. * @param array $optParams Optional parameters. 
  67. * @return Google_SiteVerificationWebResourceResource 
  68. */ 
  69. public function patch($id, Google_SiteVerificationWebResourceResource $postBody, $optParams = array()) { 
  70. $params = array('id' => $id, 'postBody' => $postBody); 
  71. $params = array_merge($params, $optParams); 
  72. $data = $this->__call('patch', array($params)); 
  73. if ($this->useObjects()) { 
  74. return new Google_SiteVerificationWebResourceResource($data); 
  75. } else { 
  76. return $data; 
  77. /** 
  78. * Get a verification token for placing on a website or domain. (webResource.getToken) 
  79. * @param Google_SiteVerificationWebResourceGettokenRequest $postBody 
  80. * @param array $optParams Optional parameters. 
  81. * @return Google_SiteVerificationWebResourceGettokenResponse 
  82. */ 
  83. public function getToken(Google_SiteVerificationWebResourceGettokenRequest $postBody, $optParams = array()) { 
  84. $params = array('postBody' => $postBody); 
  85. $params = array_merge($params, $optParams); 
  86. $data = $this->__call('getToken', array($params)); 
  87. if ($this->useObjects()) { 
  88. return new Google_SiteVerificationWebResourceGettokenResponse($data); 
  89. } else { 
  90. return $data; 
  91. /** 
  92. * Relinquish ownership of a website or domain. (webResource.delete) 
  93. * @param string $id The id of a verified site or domain. 
  94. * @param array $optParams Optional parameters. 
  95. */ 
  96. public function delete($id, $optParams = array()) { 
  97. $params = array('id' => $id); 
  98. $params = array_merge($params, $optParams); 
  99. $data = $this->__call('delete', array($params)); 
  100. return $data;