Skip to content

Commit

Permalink
Merge pull request #12 from bronhy/master
Browse files Browse the repository at this point in the history
Add version 4.5 of the library
  • Loading branch information
GuardsmanPanda authored Nov 28, 2019
2 parents 0fa1e63 + c0360d2 commit 62fa590
Showing 1 changed file with 136 additions and 3 deletions.
139 changes: 136 additions & 3 deletions MyBusiness.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
* </p>
*
* @author Google, Inc.
* @version v4p4-php-rev20190422-1
* Downloaded from https://developers.google.com/my-business/samples/
*/
class Google_Service_MyBusiness extends Google_Service
{
Expand All @@ -52,6 +50,7 @@ class Google_Service_MyBusiness extends Google_Service
public $categories;
public $chains;
public $googleLocations;
public $verificationTokens;


/**
Expand Down Expand Up @@ -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(),
),
)
)
);
}
}

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -2610,6 +2623,36 @@ public function search(Google_Service_MyBusiness_SearchGoogleLocationsRequest $p
}
}

/**
* The "verificationTokens" collection of methods.
* Typical usage is:
* <code>
* $mybusinessService = new Google_Service_MyBusiness(...);
* $verificationTokens = $mybusinessService->verificationTokens;
* </code>
*/
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");
}
}




Expand Down Expand Up @@ -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)
Expand All @@ -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
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand All @@ -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)
Expand Down Expand Up @@ -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
Expand All @@ -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;
}
}

0 comments on commit 62fa590

Please sign in to comment.