* $storageService = new Google\Service\Storage(...); * $serviceAccount = $storageService->serviceAccount; * */ class ProjectsServiceAccount extends \Google\Service\Resource { /** * Get the email address of this project's Google Cloud Storage service account. * (serviceAccount.get) * * @param string $projectId Project ID * @param array $optParams Optional parameters. * * @opt_param string userProject The project to be billed for this request. * @return ServiceAccount */ public function get($projectId, $optParams = []) { $params = ['projectId' => $projectId]; $params = array_merge($params, $optParams); return $this->call('get', [$params], ServiceAccount::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsServiceAccount::class, 'Google_Service_Storage_Resource_ProjectsServiceAccount');