From c0360d2ba87d2f2b5955c70c346d4eb36e2868bd Mon Sep 17 00:00:00 2001 From: Marko Antolovic Date: Wed, 6 Nov 2019 16:52:09 +0100 Subject: [PATCH] Add version 4.5 of the library --- MyBusiness.php | 139 +++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 136 insertions(+), 3 deletions(-) diff --git a/MyBusiness.php b/MyBusiness.php index aeaf1a3..b0492e6 100644 --- a/MyBusiness.php +++ b/MyBusiness.php @@ -28,8 +28,6 @@ *

* * @author Google, Inc. - * @version v4p4-php-rev20190422-1 - * Downloaded from https://developers.google.com/my-business/samples/ */ class Google_Service_MyBusiness extends Google_Service { @@ -52,6 +50,7 @@ class Google_Service_MyBusiness extends Google_Service public $categories; public $chains; public $googleLocations; + public $verificationTokens; /** @@ -1108,6 +1107,20 @@ public function __construct(Google_Client $client) ) ) ); + $this->verificationTokens = new Google_Service_MyBusiness_VerificationTokens_Resource( + $this, + $this->serviceName, + 'verificationTokens', + array( + 'methods' => array( + 'generate' => array( + 'path' => 'v4/verificationTokens:generate', + 'httpMethod' => 'POST', + 'parameters' => array(), + ), + ) + ) + ); } } @@ -1668,7 +1681,7 @@ public function getGoogleUpdated($name, $optParams = array()) * * For more information about valid fields and example usage, see [Work with * Location Data Guide](https://developers.google.com/my-business/content - * /location-data#filter_results_when_listing_locations). + * /location-data#filter_results_when_you_list_locations). * @opt_param string pageToken If specified, it fetches the next `page` of * locations. The page token is returned by previous calls to `ListLocations` * when there were more locations than could fit in the requested page size. @@ -2610,6 +2623,36 @@ public function search(Google_Service_MyBusiness_SearchGoogleLocationsRequest $p } } +/** + * The "verificationTokens" collection of methods. + * Typical usage is: + * + * $mybusinessService = new Google_Service_MyBusiness(...); + * $verificationTokens = $mybusinessService->verificationTokens; + * + */ +class Google_Service_MyBusiness_VerificationTokens_Resource extends Google_Service_Resource +{ + + /** + * Generates a token for the provided location data as a vetted partner. + * + * Throws PERMISSION_DENIED if the caller is not a vetted partner account. + * Throws FAILED_PRECONDITION if the caller's VettedStatus is INVALID. + * (verificationTokens.generate) + * + * @param Google_GenerateVerificationTokenRequest $postBody + * @param array $optParams Optional parameters. + * @return Google_Service_MyBusiness_GenerateVerificationTokenResponse + */ + public function generate(Google_Service_MyBusiness_GenerateVerificationTokenRequest $postBody, $optParams = array()) + { + $params = array('postBody' => $postBody); + $params = array_merge($params, $optParams); + return $this->call('generate', array($params), "Google_Service_MyBusiness_GenerateVerificationTokenResponse"); + } +} + @@ -2713,6 +2756,7 @@ class Google_Service_MyBusiness_AccountState extends Google_Model protected $internal_gapi_mappings = array( ); public $status; + public $vettedStatus; public function setStatus($status) @@ -2723,6 +2767,14 @@ public function getStatus() { return $this->status; } + public function setVettedStatus($vettedStatus) + { + $this->vettedStatus = $vettedStatus; + } + public function getVettedStatus() + { + return $this->vettedStatus; + } } class Google_Service_MyBusiness_AdWordsLocationExtensions extends Google_Model @@ -3845,6 +3897,42 @@ class Google_Service_MyBusiness_GenerateAccountNumberRequest extends Google_Mode { } +class Google_Service_MyBusiness_GenerateVerificationTokenRequest extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $locationType = 'Google_Service_MyBusiness_Location'; + protected $locationDataType = ''; + + + public function setLocation(Google_Service_MyBusiness_Location $location) + { + $this->location = $location; + } + public function getLocation() + { + return $this->location; + } +} + +class Google_Service_MyBusiness_GenerateVerificationTokenResponse extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $tokenType = 'Google_Service_MyBusiness_VerificationToken'; + protected $tokenDataType = ''; + + + public function setToken(Google_Service_MyBusiness_VerificationToken $token) + { + $this->token = $token; + } + public function getToken() + { + return $this->token; + } +} + class Google_Service_MyBusiness_GoogleLocation extends Google_Model { protected $internal_gapi_mappings = array( @@ -7180,6 +7268,23 @@ public function getVerificationMethod() } } +class Google_Service_MyBusiness_VerificationToken extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + public $tokenString; + + + public function setTokenString($tokenString) + { + $this->tokenString = $tokenString; + } + public function getTokenString() + { + return $this->tokenString; + } +} + class Google_Service_MyBusiness_VerifyLocationRequest extends Google_Model { protected $internal_gapi_mappings = array( @@ -7194,6 +7299,8 @@ class Google_Service_MyBusiness_VerifyLocationRequest extends Google_Model public $method; protected $phoneInputType = 'Google_Service_MyBusiness_PhoneInput'; protected $phoneInputDataType = ''; + protected $vettedPartnerInputType = 'Google_Service_MyBusiness_VettedPartnerInput'; + protected $vettedPartnerInputDataType = ''; public function setAddressInput(Google_Service_MyBusiness_AddressInput $addressInput) @@ -7244,6 +7351,14 @@ public function getPhoneInput() { return $this->phoneInput; } + public function setVettedPartnerInput(Google_Service_MyBusiness_VettedPartnerInput $vettedPartnerInput) + { + $this->vettedPartnerInput = $vettedPartnerInput; + } + public function getVettedPartnerInput() + { + return $this->vettedPartnerInput; + } } class Google_Service_MyBusiness_VerifyLocationResponse extends Google_Model @@ -7263,3 +7378,21 @@ public function getVerification() return $this->verification; } } + +class Google_Service_MyBusiness_VettedPartnerInput extends Google_Model +{ + protected $internal_gapi_mappings = array( + ); + protected $tokenType = 'Google_Service_MyBusiness_VerificationToken'; + protected $tokenDataType = ''; + + + public function setToken(Google_Service_MyBusiness_VerificationToken $token) + { + $this->token = $token; + } + public function getToken() + { + return $this->token; + } +}