* $androidpublisherService = new Google\Service\AndroidPublisher(...); * $applications = $androidpublisherService->applications; * */ class Applications extends \Google\Service\Resource { /** * Writes the Safety Labels declaration of an app. (applications.dataSafety) * * @param string $packageName Required. Package name of the app. * @param SafetyLabelsUpdateRequest $postBody * @param array $optParams Optional parameters. * @return SafetyLabelsUpdateResponse * @throws \Google\Service\Exception */ public function dataSafety($packageName, SafetyLabelsUpdateRequest $postBody, $optParams = []) { $params = ['packageName' => $packageName, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('dataSafety', [$params], SafetyLabelsUpdateResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Applications::class, 'Google_Service_AndroidPublisher_Resource_Applications');