* $cloudtraceService = new Google\Service\CloudTrace(...); * $traces = $cloudtraceService->traces; * */ class ProjectsTraces extends \Google\Service\Resource { /** * Batch writes new spans to new or existing traces. You cannot update existing * spans. (traces.batchWrite) * * @param string $name Required. The name of the project where the spans belong. * The format is `projects/[PROJECT_ID]`. * @param BatchWriteSpansRequest $postBody * @param array $optParams Optional parameters. * @return CloudtraceEmpty */ public function batchWrite($name, BatchWriteSpansRequest $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('batchWrite', [$params], CloudtraceEmpty::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsTraces::class, 'Google_Service_CloudTrace_Resource_ProjectsTraces');