`BetaAnalyticsDataClient` is documented as deprecated
The BetaAnalyticsDataClient has {@inheritdoc} inline tag
https://github.com/googleapis/google-cloud-php/blob/7e7440d62a8317c7c75dd96d292fae5c32f95829/AnalyticsData/src/V1beta/BetaAnalyticsDataClient.php#L31-L36
And inherit its docs from BetaAnalyticsDataGapicClient. But BetaAnalyticsDataGapicClient marked as @deprecated
https://github.com/googleapis/google-cloud-php/blob/7e7440d62a8317c7c75dd96d292fae5c32f95829/AnalyticsData/src/V1beta/Gapic/BetaAnalyticsDataGapicClient.php#L94-L99
This leads to a false-positive deprecation warning:
BetaAnalyticsDataClient is deprecated.
Please use the new service client {@see \Google\Analytics\Data\V1beta\Client\BetaAnalyticsDataClient}
Same for AnalyticsAdminServiceClient
https://github.com/googleapis/google-cloud-php/blob/7e7440d62a8317c7c75dd96d292fae5c32f95829/AnalyticsAdmin/src/V1beta/AnalyticsAdminServiceClient.php#L31-L36
https://github.com/googleapis/google-cloud-php/blob/7e7440d62a8317c7c75dd96d292fae5c32f95829/AnalyticsAdmin/src/V1beta/Gapic/AnalyticsAdminServiceGapicClient.php#L144-L149
Hey @cawa-93!
Thanks for letting us know, will take a look on this for a proper solution.
Discussed offline but to summarize, these are separate classes. Let me try to explain better:
- The class
Google\Analytics\Data\V1beta\BetaAnalyticsDataClientis deprecated, and it extendsGoogle\Analytics\Data\V1beta\Gapic\BetaAnalyticsDataClient. Both of these classes are deprecated, and they recommend usingGoogle\Analytics\Data\V1beta\Client\BetaAnalyticsDataClientinstead. - The class
Google\Analytics\Data\V1beta\Client\BetaAnalyticsDataClientis NOT deprecated (notice it includes an extraClientnamespace), and is the one recommended for use.
This is the same for the other classes you've listed. Sorry for the confusion - we will be removing the deprecated classes soon.
That being said, the messaging could absolutely be more clear, and we will work to improve this.