* $batchService = new Google\Service\Batch(...); * $state = $batchService->projects_locations_state; * */ class ProjectsLocationsState extends \Google\Service\Resource { /** * Report agent's state, e.g. agent status and tasks information (state.report) * * @param string $parent Required. Format: * projects/{project}/locations/{location} {project} should be a project number. * @param ReportAgentStateRequest $postBody * @param array $optParams Optional parameters. * @return ReportAgentStateResponse * @throws \Google\Service\Exception */ public function report($parent, ReportAgentStateRequest $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('report', [$params], ReportAgentStateResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsLocationsState::class, 'Google_Service_Batch_Resource_ProjectsLocationsState');