* $containeranalysisService = new Google\Service\ContainerAnalysis(...); * $resources = $containeranalysisService->projects_resources; * */ class ProjectsResources extends \Google\Service\Resource { /** * Generates an SBOM for the given resource. (resources.exportSBOM) * * @param string $name Required. The name of the resource in the form of * `projects/[PROJECT_ID]/resources/[RESOURCE_URL]`. * @param ExportSBOMRequest $postBody * @param array $optParams Optional parameters. * @return ExportSBOMResponse * @throws \Google\Service\Exception */ public function exportSBOM($name, ExportSBOMRequest $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('exportSBOM', [$params], ExportSBOMResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsResources::class, 'Google_Service_ContainerAnalysis_Resource_ProjectsResources');