* $mybusinessaccountmanagementService = new Google\Service\MyBusinessAccountManagement(...); * $locations = $mybusinessaccountmanagementService->locations; * */ class Locations extends \Google\Service\Resource { /** * Moves a location from an account that the user owns to another account that * the same user administers. The user must be an owner of the account the * location is currently associated with and must also be at least a manager of * the destination account. (locations.transfer) * * @param string $name Required. The name of the location to transfer. * `locations/{location_id}`. * @param TransferLocationRequest $postBody * @param array $optParams Optional parameters. * @return MybusinessaccountmanagementEmpty */ public function transfer($name, TransferLocationRequest $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('transfer', [$params], MybusinessaccountmanagementEmpty::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Locations::class, 'Google_Service_MyBusinessAccountManagement_Resource_Locations');