* $storagetransferService = new Google\Service\Storagetransfer(...); * $googleServiceAccounts = $storagetransferService->googleServiceAccounts; * */ class GoogleServiceAccounts extends \Google\Service\Resource { /** * Returns the Google service account that is used by Storage Transfer Service * to access buckets in the project where transfers run or in other projects. * Each Google service account is associated with one Google Cloud project. * Users should add this service account to the Google Cloud Storage bucket ACLs * to grant access to Storage Transfer Service. This service account is created * and owned by Storage Transfer Service and can only be used by Storage * Transfer Service. (googleServiceAccounts.get) * * @param string $projectId Required. The ID of the Google Cloud project that * the Google service account is associated with. * @param array $optParams Optional parameters. * @return GoogleServiceAccount */ public function get($projectId, $optParams = []) { $params = ['projectId' => $projectId]; $params = array_merge($params, $optParams); return $this->call('get', [$params], GoogleServiceAccount::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GoogleServiceAccounts::class, 'Google_Service_Storagetransfer_Resource_GoogleServiceAccounts');