* $runService = new Google\Service\CloudRun(...); * $locations = $runService->projects_locations; * */ class ProjectsLocations extends \Google\Service\Resource { /** * Export image for a given resource. (locations.exportImage) * * @param string $name Required. The name of the resource of which image * metadata should be exported. Format: `projects/{project_id_or_number}/locatio * ns/{location}/services/{service}/revisions/{revision}` for Revision `projects * /{project_id_or_number}/locations/{location}/jobs/{job}/executions/{execution * }` for Execution * @param GoogleCloudRunV2ExportImageRequest $postBody * @param array $optParams Optional parameters. * @return GoogleCloudRunV2ExportImageResponse * @throws \Google\Service\Exception */ public function exportImage($name, GoogleCloudRunV2ExportImageRequest $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('exportImage', [$params], GoogleCloudRunV2ExportImageResponse::class); } /** * Export image metadata for a given resource. (locations.exportImageMetadata) * * @param string $name Required. The name of the resource of which image * metadata should be exported. Format: `projects/{project_id_or_number}/locatio * ns/{location}/services/{service}/revisions/{revision}` for Revision `projects * /{project_id_or_number}/locations/{location}/jobs/{job}/executions/{execution * }` for Execution * @param array $optParams Optional parameters. * @return GoogleCloudRunV2Metadata * @throws \Google\Service\Exception */ public function exportImageMetadata($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('exportImageMetadata', [$params], GoogleCloudRunV2Metadata::class); } /** * Export generated customer metadata for a given resource. * (locations.exportMetadata) * * @param string $name Required. The name of the resource of which metadata * should be exported. Format: * `projects/{project_id_or_number}/locations/{location}/services/{service}` for * Service `projects/{project_id_or_number}/locations/{location}/services/{servi * ce}/revisions/{revision}` for Revision `projects/{project_id_or_number}/locat * ions/{location}/jobs/{job}/executions/{execution}` for Execution * @param array $optParams Optional parameters. * @return GoogleCloudRunV2Metadata * @throws \Google\Service\Exception */ public function exportMetadata($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('exportMetadata', [$params], GoogleCloudRunV2Metadata::class); } /** * Export generated customer metadata for a given project. * (locations.exportProjectMetadata) * * @param string $name Required. The name of the project of which metadata * should be exported. Format: * `projects/{project_id_or_number}/locations/{location}` for Project in a given * location. * @param array $optParams Optional parameters. * @return GoogleCloudRunV2Metadata * @throws \Google\Service\Exception */ public function exportProjectMetadata($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('exportProjectMetadata', [$params], GoogleCloudRunV2Metadata::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsLocations::class, 'Google_Service_CloudRun_Resource_ProjectsLocations');