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
- class Google_WebResourceServiceResource extends Google_ServiceResource {
- /**
- * Attempt verification of a website or domain. (webResource.insert)
- *
- * @param string $verificationMethod The method to use for verifying a site or domain.
- * @param Google_SiteVerificationWebResourceResource $postBody
- * @param array $optParams Optional parameters.
- * @return Google_SiteVerificationWebResourceResource
- */
- public function insert($verificationMethod, Google_SiteVerificationWebResourceResource $postBody, $optParams = array()) {
- $params = array('verificationMethod' => $verificationMethod, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_SiteVerificationWebResourceResource($data);
- } else {
- return $data;
- }
- }
- /**
- * Get the most current data for a website or domain. (webResource.get)
- *
- * @param string $id The id of a verified site or domain.
- * @param array $optParams Optional parameters.
- * @return Google_SiteVerificationWebResourceResource
- */
- public function get($id, $optParams = array()) {
- $params = array('id' => $id);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_SiteVerificationWebResourceResource($data);
- } else {
- return $data;
- }
- }
- /**
- * Get the list of your verified websites and domains. (webResource.list)
- *
- * @param array $optParams Optional parameters.
- * @return Google_SiteVerificationWebResourceListResponse
- */
- public function listWebResource($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_SiteVerificationWebResourceListResponse($data);
- } else {
- return $data;
- }
- }
- /**
- * Modify the list of owners for your website or domain. (webResource.update)
- *
- * @param string $id The id of a verified site or domain.
- * @param Google_SiteVerificationWebResourceResource $postBody
- * @param array $optParams Optional parameters.
- * @return Google_SiteVerificationWebResourceResource
- */
- public function update($id, Google_SiteVerificationWebResourceResource $postBody, $optParams = array()) {
- $params = array('id' => $id, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('update', array($params));
- if ($this->useObjects()) {
- return new Google_SiteVerificationWebResourceResource($data);
- } else {
- return $data;
- }
- }
- /**
- * Modify the list of owners for your website or domain. This method supports patch semantics.
- * (webResource.patch)
- *
- * @param string $id The id of a verified site or domain.
- * @param Google_SiteVerificationWebResourceResource $postBody
- * @param array $optParams Optional parameters.
- * @return Google_SiteVerificationWebResourceResource
- */
- public function patch($id, Google_SiteVerificationWebResourceResource $postBody, $optParams = array()) {
- $params = array('id' => $id, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('patch', array($params));
- if ($this->useObjects()) {
- return new Google_SiteVerificationWebResourceResource($data);
- } else {
- return $data;
- }
- }
- /**
- * Get a verification token for placing on a website or domain. (webResource.getToken)
- *
- * @param Google_SiteVerificationWebResourceGettokenRequest $postBody
- * @param array $optParams Optional parameters.
- * @return Google_SiteVerificationWebResourceGettokenResponse
- */
- public function getToken(Google_SiteVerificationWebResourceGettokenRequest $postBody, $optParams = array()) {
- $params = array('postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('getToken', array($params));
- if ($this->useObjects()) {
- return new Google_SiteVerificationWebResourceGettokenResponse($data);
- } else {
- return $data;
- }
- }
- /**
- * Relinquish ownership of a website or domain. (webResource.delete)
- *
- * @param string $id The id of a verified site or domain.
- * @param array $optParams Optional parameters.
- */
- public function delete($id, $optParams = array()) {
- $params = array('id' => $id);
- $params = array_merge($params, $optParams);
- $data = $this->__call('delete', array($params));
- return $data;
- }
- }