* $documentaiService = new Google\Service\Document(...); * $operations = $documentaiService->operations; * */ class Operations extends \Google\Service\Resource { /** * Deletes a long-running operation. This method indicates that the client is no * longer interested in the operation result. It does not cancel the operation. * If the server doesn't support this method, it returns * `google.rpc.Code.UNIMPLEMENTED`. (operations.delete) * * @param string $name The name of the operation resource to be deleted. * @param array $optParams Optional parameters. * @return GoogleProtobufEmpty */ public function delete($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('delete', [$params], GoogleProtobufEmpty::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Operations::class, 'Google_Service_Document_Resource_Operations');