You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sc...@apache.org on 2016/04/29 22:06:04 UTC
airavata-php-gateway git commit: updating thrift files
Repository: airavata-php-gateway
Updated Branches:
refs/heads/develop c27685474 -> dc0f071b5
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/dc0f071b
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/dc0f071b
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/dc0f071b
Branch: refs/heads/develop
Commit: dc0f071b5613e04c0925e41feb9f72bb739f7e7f
Parents: c276854
Author: scnakandala <su...@gmail.com>
Authored: Fri Apr 29 16:06:00 2016 -0400
Committer: scnakandala <su...@gmail.com>
Committed: Fri Apr 29 16:06:00 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/dc0f071b/app/libraries/Airavata/API/Airavata.php
----------------------------------------------------------------------
diff --git a/app/libraries/Airavata/API/Airavata.php b/app/libraries/Airavata/API/Airavata.php
index 2029203..b3cc224 100644
--- a/app/libraries/Airavata/API/Airavata.php
+++ b/app/libraries/Airavata/API/Airavata.php
@@ -183,6 +183,7 @@ interface AiravataIf {
/**
* @param \Airavata\Model\Security\AuthzToken $authzToken
* @param \Airavata\Model\Workspace\Notification $notification
+ * @return bool
* @throws \Airavata\API\Error\InvalidRequestException
* @throws \Airavata\API\Error\AiravataClientException
* @throws \Airavata\API\Error\AiravataSystemException
@@ -4116,7 +4117,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
public function updateNotification(\Airavata\Model\Security\AuthzToken $authzToken, \Airavata\Model\Workspace\Notification $notification)
{
$this->send_updateNotification($authzToken, $notification);
- $this->recv_updateNotification();
+ return $this->recv_updateNotification();
}
public function send_updateNotification(\Airavata\Model\Security\AuthzToken $authzToken, \Airavata\Model\Workspace\Notification $notification)
@@ -4159,6 +4160,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;
}
@@ -4171,7 +4175,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ae !== null) {
throw $result->ae;
}
- return;
+ throw new \Exception("updateNotification failed: unknown result");
}
public function deleteNotification(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $notificationId)
@@ -15497,6 +15501,10 @@ class Airavata_updateNotification_result {
static $_TSPEC;
/**
+ * @var bool
+ */
+ public $success = null;
+ /**
* @var \Airavata\API\Error\InvalidRequestException
*/
public $ire = null;
@@ -15516,6 +15524,10 @@ class Airavata_updateNotification_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,
@@ -15539,6 +15551,9 @@ class Airavata_updateNotification_result {
);
}
if (is_array($vals)) {
+ if (isset($vals['success'])) {
+ $this->success = $vals['success'];
+ }
if (isset($vals['ire'])) {
$this->ire = $vals['ire'];
}
@@ -15573,6 +15588,13 @@ class Airavata_updateNotification_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();
@@ -15618,6 +15640,11 @@ class Airavata_updateNotification_result {
public function write($output) {
$xfer = 0;
$xfer += $output->writeStructBegin('Airavata_updateNotification_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);