Repository: airavata-php-gateway Updated Branches: refs/heads/develop dc0f071b5 -> d14ea846b
updating thrift files Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/d14ea846 Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/d14ea846 Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/d14ea846 Branch: refs/heads/develop Commit: d14ea846b1788c56cd2357f9b6309471ab1aec15 Parents: dc0f071 Author: scnakandala <[email protected]> Authored: Fri Apr 29 16:07:33 2016 -0400 Committer: scnakandala <[email protected]> Committed: Fri Apr 29 16:07:33 2016 -0400 ---------------------------------------------------------------------- app/libraries/Airavata/API/Airavata.php | 31 ++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/d14ea846/app/libraries/Airavata/API/Airavata.php ---------------------------------------------------------------------- diff --git a/app/libraries/Airavata/API/Airavata.php b/app/libraries/Airavata/API/Airavata.php index b3cc224..1f4d90f 100644 --- a/app/libraries/Airavata/API/Airavata.php +++ b/app/libraries/Airavata/API/Airavata.php @@ -194,6 +194,7 @@ interface AiravataIf { * @param \Airavata\Model\Security\AuthzToken $authzToken * @param string $gatewayId * @param string $notificationId + * @return bool * @throws \Airavata\API\Error\InvalidRequestException * @throws \Airavata\API\Error\AiravataClientException * @throws \Airavata\API\Error\AiravataSystemException @@ -4181,7 +4182,7 @@ class AiravataClient implements \Airavata\API\AiravataIf { public function deleteNotification(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $notificationId) { $this->send_deleteNotification($authzToken, $gatewayId, $notificationId); - $this->recv_deleteNotification(); + return $this->recv_deleteNotification(); } public function send_deleteNotification(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $notificationId) @@ -4225,6 +4226,9 @@ class AiravataClient implements \Airavata\API\AiravataIf { $result->read($this->input_); $this->input_->readMessageEnd(); } + if ($result->success !== null) { + return $result->success; + } if ($result->ire !== null) { throw $result->ire; } @@ -4237,7 +4241,7 @@ class AiravataClient implements \Airavata\API\AiravataIf { if ($result->ae !== null) { throw $result->ae; } - return; + throw new \Exception("deleteNotification failed: unknown result"); } public function getNotification(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $notificationId) @@ -15802,6 +15806,10 @@ class Airavata_deleteNotification_result { static $_TSPEC; /** + * @var bool + */ + public $success = null; + /** * @var \Airavata\API\Error\InvalidRequestException */ public $ire = null; @@ -15821,6 +15829,10 @@ class Airavata_deleteNotification_result { public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::BOOL, + ), 1 => array( 'var' => 'ire', 'type' => TType::STRUCT, @@ -15844,6 +15856,9 @@ class Airavata_deleteNotification_result { ); } if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } if (isset($vals['ire'])) { $this->ire = $vals['ire']; } @@ -15878,6 +15893,13 @@ class Airavata_deleteNotification_result { } switch ($fid) { + case 0: + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->success); + } else { + $xfer += $input->skip($ftype); + } + break; case 1: if ($ftype == TType::STRUCT) { $this->ire = new \Airavata\API\Error\InvalidRequestException(); @@ -15923,6 +15945,11 @@ class Airavata_deleteNotification_result { public function write($output) { $xfer = 0; $xfer += $output->writeStructBegin('Airavata_deleteNotification_result'); + if ($this->success !== null) { + $xfer += $output->writeFieldBegin('success', TType::BOOL, 0); + $xfer += $output->writeBool($this->success); + $xfer += $output->writeFieldEnd(); + } if ($this->ire !== null) { $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1); $xfer += $this->ire->write($output);
