Return-Path: X-Original-To: apmail-airavata-commits-archive@www.apache.org Delivered-To: apmail-airavata-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EB58819FA1 for ; Thu, 24 Mar 2016 18:41:37 +0000 (UTC) Received: (qmail 99403 invoked by uid 500); 24 Mar 2016 18:41:37 -0000 Delivered-To: apmail-airavata-commits-archive@airavata.apache.org Received: (qmail 99337 invoked by uid 500); 24 Mar 2016 18:41:37 -0000 Mailing-List: contact commits-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list commits@airavata.apache.org Received: (qmail 99240 invoked by uid 99); 24 Mar 2016 18:41:37 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Mar 2016 18:41:37 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 84312E025B; Thu, 24 Mar 2016 18:41:37 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: scnakandala@apache.org To: commits@airavata.apache.org Date: Thu, 24 Mar 2016 18:41:38 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [2/7] airavata git commit: adding API methods to get parent and child products http://git-wip-us.apache.org/repos/asf/airavata/blob/02cbb8dc/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/Airavata.php ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/Airavata.php b/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/Airavata.php index d397526..c7065a4 100644 --- a/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/Airavata.php +++ b/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/Airavata.php @@ -3422,7 +3422,7 @@ interface AiravataIf { */ public function isWorkflowExistWithName(\Airavata\Model\Security\AuthzToken $authzToken, $workflowName); /** - * API Methods related to data catalog + * API Methods related to replica catalog * * * @param \Airavata\Model\Security\AuthzToken $authzToken @@ -3454,6 +3454,26 @@ interface AiravataIf { * @throws \Airavata\API\Error\AuthorizationException */ public function registerReplicaLocation(\Airavata\Model\Security\AuthzToken $authzToken, \Airavata\Model\Data\Replica\DataReplicaLocationModel $replicaLocationModel); + /** + * @param \Airavata\Model\Security\AuthzToken $authzToken + * @param string $productUri + * @return \Airavata\Model\Data\Replica\DataProductModel + * @throws \Airavata\API\Error\InvalidRequestException + * @throws \Airavata\API\Error\AiravataClientException + * @throws \Airavata\API\Error\AiravataSystemException + * @throws \Airavata\API\Error\AuthorizationException + */ + public function getParentDataProduct(\Airavata\Model\Security\AuthzToken $authzToken, $productUri); + /** + * @param \Airavata\Model\Security\AuthzToken $authzToken + * @param string $productUri + * @return \Airavata\Model\Data\Replica\DataProductModel[] + * @throws \Airavata\API\Error\InvalidRequestException + * @throws \Airavata\API\Error\AiravataClientException + * @throws \Airavata\API\Error\AiravataSystemException + * @throws \Airavata\API\Error\AuthorizationException + */ + public function getChildDataProducts(\Airavata\Model\Security\AuthzToken $authzToken, $productUri); } class AiravataClient implements \Airavata\API\AiravataIf { @@ -12337,280 +12357,145 @@ class AiravataClient implements \Airavata\API\AiravataIf { throw new \Exception("registerReplicaLocation failed: unknown result"); } -} - -// HELPER FUNCTIONS AND STRUCTURES - -class Airavata_getAPIVersion_args { - static $_TSPEC; - - /** - * @var \Airavata\Model\Security\AuthzToken - */ - public $authzToken = null; + public function getParentDataProduct(\Airavata\Model\Security\AuthzToken $authzToken, $productUri) + { + $this->send_getParentDataProduct($authzToken, $productUri); + return $this->recv_getParentDataProduct(); + } - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'authzToken', - 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Security\AuthzToken', - ), - ); + public function send_getParentDataProduct(\Airavata\Model\Security\AuthzToken $authzToken, $productUri) + { + $args = new \Airavata\API\Airavata_getParentDataProduct_args(); + $args->authzToken = $authzToken; + $args->productUri = $productUri; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'getParentDataProduct', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); } - if (is_array($vals)) { - if (isset($vals['authzToken'])) { - $this->authzToken = $vals['authzToken']; - } + else + { + $this->output_->writeMessageBegin('getParentDataProduct', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); } } - public function getName() { - return 'Airavata_getAPIVersion_args'; - } - - public function read($input) + public function recv_getParentDataProduct() { - $xfer = 0; - $fname = null; - $ftype = 0; - $fid = 0; - $xfer += $input->readStructBegin($fname); - while (true) + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getParentDataProduct_result', $this->input_->isStrictRead()); + else { - $xfer += $input->readFieldBegin($fname, $ftype, $fid); - if ($ftype == TType::STOP) { - break; - } - switch ($fid) - { - case 1: - if ($ftype == TType::STRUCT) { - $this->authzToken = new \Airavata\Model\Security\AuthzToken(); - $xfer += $this->authzToken->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } + $rseqid = 0; + $fname = null; + $mtype = 0; - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getAPIVersion_args'); - if ($this->authzToken !== null) { - if (!is_object($this->authzToken)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + $this->input_->readMessageBegin($fname, $mtype, $rseqid); + if ($mtype == TMessageType::EXCEPTION) { + $x = new TApplicationException(); + $x->read($this->input_); + $this->input_->readMessageEnd(); + throw $x; } - $xfer += $output->writeFieldBegin('authzToken', TType::STRUCT, 1); - $xfer += $this->authzToken->write($output); - $xfer += $output->writeFieldEnd(); + $result = new \Airavata\API\Airavata_getParentDataProduct_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class Airavata_getAPIVersion_result { - static $_TSPEC; - - /** - * @var string - */ - public $success = null; - /** - * @var \Airavata\API\Error\InvalidRequestException - */ - public $ire = null; - /** - * @var \Airavata\API\Error\AiravataClientException - */ - public $ace = null; - /** - * @var \Airavata\API\Error\AiravataSystemException - */ - public $ase = null; - /** - * @var \Airavata\API\Error\AuthorizationException - */ - public $ae = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 0 => array( - 'var' => 'success', - 'type' => TType::STRING, - ), - 1 => array( - 'var' => 'ire', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\InvalidRequestException', - ), - 2 => array( - 'var' => 'ace', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AiravataClientException', - ), - 3 => array( - 'var' => 'ase', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AiravataSystemException', - ), - 4 => array( - 'var' => 'ae', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AuthorizationException', - ), - ); + if ($result->success !== null) { + return $result->success; } - if (is_array($vals)) { - if (isset($vals['success'])) { - $this->success = $vals['success']; - } - if (isset($vals['ire'])) { - $this->ire = $vals['ire']; - } - if (isset($vals['ace'])) { - $this->ace = $vals['ace']; - } - if (isset($vals['ase'])) { - $this->ase = $vals['ase']; - } - if (isset($vals['ae'])) { - $this->ae = $vals['ae']; - } + if ($result->ire !== null) { + throw $result->ire; + } + if ($result->ace !== null) { + throw $result->ace; + } + if ($result->ase !== null) { + throw $result->ase; + } + if ($result->ae !== null) { + throw $result->ae; } + throw new \Exception("getParentDataProduct failed: unknown result"); } - public function getName() { - return 'Airavata_getAPIVersion_result'; + public function getChildDataProducts(\Airavata\Model\Security\AuthzToken $authzToken, $productUri) + { + $this->send_getChildDataProducts($authzToken, $productUri); + return $this->recv_getChildDataProducts(); } - public function read($input) + public function send_getChildDataProducts(\Airavata\Model\Security\AuthzToken $authzToken, $productUri) { - $xfer = 0; - $fname = null; - $ftype = 0; - $fid = 0; - $xfer += $input->readStructBegin($fname); - while (true) + $args = new \Airavata\API\Airavata_getChildDataProducts_args(); + $args->authzToken = $authzToken; + $args->productUri = $productUri; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) { - $xfer += $input->readFieldBegin($fname, $ftype, $fid); - if ($ftype == TType::STOP) { - break; - } - switch ($fid) - { - case 0: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->success); - } else { - $xfer += $input->skip($ftype); - } - break; - case 1: - if ($ftype == TType::STRUCT) { - $this->ire = new \Airavata\API\Error\InvalidRequestException(); - $xfer += $this->ire->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 2: - if ($ftype == TType::STRUCT) { - $this->ace = new \Airavata\API\Error\AiravataClientException(); - $xfer += $this->ace->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRUCT) { - $this->ase = new \Airavata\API\Error\AiravataSystemException(); - $xfer += $this->ase->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 4: - if ($ftype == TType::STRUCT) { - $this->ae = new \Airavata\API\Error\AuthorizationException(); - $xfer += $this->ae->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); + thrift_protocol_write_binary($this->output_, 'getChildDataProducts', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('getChildDataProducts', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); } - $xfer += $input->readStructEnd(); - return $xfer; } - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getAPIVersion_result'); - if ($this->success !== null) { - $xfer += $output->writeFieldBegin('success', TType::STRING, 0); - $xfer += $output->writeString($this->success); - $xfer += $output->writeFieldEnd(); + public function recv_getChildDataProducts() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getChildDataProducts_result', $this->input_->isStrictRead()); + else + { + $rseqid = 0; + $fname = null; + $mtype = 0; + + $this->input_->readMessageBegin($fname, $mtype, $rseqid); + if ($mtype == TMessageType::EXCEPTION) { + $x = new TApplicationException(); + $x->read($this->input_); + $this->input_->readMessageEnd(); + throw $x; + } + $result = new \Airavata\API\Airavata_getChildDataProducts_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); } - if ($this->ire !== null) { - $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1); - $xfer += $this->ire->write($output); - $xfer += $output->writeFieldEnd(); + if ($result->success !== null) { + return $result->success; } - if ($this->ace !== null) { - $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 2); - $xfer += $this->ace->write($output); - $xfer += $output->writeFieldEnd(); + if ($result->ire !== null) { + throw $result->ire; } - if ($this->ase !== null) { - $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 3); - $xfer += $this->ase->write($output); - $xfer += $output->writeFieldEnd(); + if ($result->ace !== null) { + throw $result->ace; } - if ($this->ae !== null) { - $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 4); - $xfer += $this->ae->write($output); - $xfer += $output->writeFieldEnd(); + if ($result->ase !== null) { + throw $result->ase; } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; + if ($result->ae !== null) { + throw $result->ae; + } + throw new \Exception("getChildDataProducts failed: unknown result"); } } -class Airavata_isUserExists_args { +// HELPER FUNCTIONS AND STRUCTURES + +class Airavata_getAPIVersion_args { static $_TSPEC; /** * @var \Airavata\Model\Security\AuthzToken */ public $authzToken = null; - /** - * @var string - */ - public $gatewayId = null; - /** - * @var string - */ - public $userName = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -12620,31 +12505,17 @@ class Airavata_isUserExists_args { 'type' => TType::STRUCT, 'class' => '\Airavata\Model\Security\AuthzToken', ), - 2 => array( - 'var' => 'gatewayId', - 'type' => TType::STRING, - ), - 3 => array( - 'var' => 'userName', - 'type' => TType::STRING, - ), ); } if (is_array($vals)) { if (isset($vals['authzToken'])) { $this->authzToken = $vals['authzToken']; } - if (isset($vals['gatewayId'])) { - $this->gatewayId = $vals['gatewayId']; - } - if (isset($vals['userName'])) { - $this->userName = $vals['userName']; - } } } public function getName() { - return 'Airavata_isUserExists_args'; + return 'Airavata_getAPIVersion_args'; } public function read($input) @@ -12670,20 +12541,6 @@ class Airavata_isUserExists_args { $xfer += $input->skip($ftype); } break; - case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->gatewayId); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->userName); - } else { - $xfer += $input->skip($ftype); - } - break; default: $xfer += $input->skip($ftype); break; @@ -12696,7 +12553,7 @@ class Airavata_isUserExists_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_isUserExists_args'); + $xfer += $output->writeStructBegin('Airavata_getAPIVersion_args'); if ($this->authzToken !== null) { if (!is_object($this->authzToken)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -12705,16 +12562,6 @@ class Airavata_isUserExists_args { $xfer += $this->authzToken->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->gatewayId !== null) { - $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 2); - $xfer += $output->writeString($this->gatewayId); - $xfer += $output->writeFieldEnd(); - } - if ($this->userName !== null) { - $xfer += $output->writeFieldBegin('userName', TType::STRING, 3); - $xfer += $output->writeString($this->userName); - $xfer += $output->writeFieldEnd(); - } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -12722,11 +12569,11 @@ class Airavata_isUserExists_args { } -class Airavata_isUserExists_result { +class Airavata_getAPIVersion_result { static $_TSPEC; /** - * @var bool + * @var string */ public $success = null; /** @@ -12751,7 +12598,7 @@ class Airavata_isUserExists_result { self::$_TSPEC = array( 0 => array( 'var' => 'success', - 'type' => TType::BOOL, + 'type' => TType::STRING, ), 1 => array( 'var' => 'ire', @@ -12795,7 +12642,7 @@ class Airavata_isUserExists_result { } public function getName() { - return 'Airavata_isUserExists_result'; + return 'Airavata_getAPIVersion_result'; } public function read($input) @@ -12814,8 +12661,8 @@ class Airavata_isUserExists_result { switch ($fid) { case 0: - if ($ftype == TType::BOOL) { - $xfer += $input->readBool($this->success); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->success); } else { $xfer += $input->skip($ftype); } @@ -12864,10 +12711,10 @@ class Airavata_isUserExists_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_isUserExists_result'); + $xfer += $output->writeStructBegin('Airavata_getAPIVersion_result'); if ($this->success !== null) { - $xfer += $output->writeFieldBegin('success', TType::BOOL, 0); - $xfer += $output->writeBool($this->success); + $xfer += $output->writeFieldBegin('success', TType::STRING, 0); + $xfer += $output->writeString($this->success); $xfer += $output->writeFieldEnd(); } if ($this->ire !== null) { @@ -12897,7 +12744,7 @@ class Airavata_isUserExists_result { } -class Airavata_addGateway_args { +class Airavata_isUserExists_args { static $_TSPEC; /** @@ -12905,9 +12752,13 @@ class Airavata_addGateway_args { */ public $authzToken = null; /** - * @var \Airavata\Model\Workspace\Gateway + * @var string */ - public $gateway = null; + public $gatewayId = null; + /** + * @var string + */ + public $userName = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -12918,9 +12769,12 @@ class Airavata_addGateway_args { 'class' => '\Airavata\Model\Security\AuthzToken', ), 2 => array( - 'var' => 'gateway', - 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Workspace\Gateway', + 'var' => 'gatewayId', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'userName', + 'type' => TType::STRING, ), ); } @@ -12928,14 +12782,17 @@ class Airavata_addGateway_args { if (isset($vals['authzToken'])) { $this->authzToken = $vals['authzToken']; } - if (isset($vals['gateway'])) { - $this->gateway = $vals['gateway']; + if (isset($vals['gatewayId'])) { + $this->gatewayId = $vals['gatewayId']; + } + if (isset($vals['userName'])) { + $this->userName = $vals['userName']; } } } public function getName() { - return 'Airavata_addGateway_args'; + return 'Airavata_isUserExists_args'; } public function read($input) @@ -12962,9 +12819,15 @@ class Airavata_addGateway_args { } break; case 2: - if ($ftype == TType::STRUCT) { - $this->gateway = new \Airavata\Model\Workspace\Gateway(); - $xfer += $this->gateway->read($input); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->gatewayId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->userName); } else { $xfer += $input->skip($ftype); } @@ -12981,7 +12844,7 @@ class Airavata_addGateway_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_addGateway_args'); + $xfer += $output->writeStructBegin('Airavata_isUserExists_args'); if ($this->authzToken !== null) { if (!is_object($this->authzToken)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -12990,12 +12853,14 @@ class Airavata_addGateway_args { $xfer += $this->authzToken->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->gateway !== null) { - if (!is_object($this->gateway)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('gateway', TType::STRUCT, 2); - $xfer += $this->gateway->write($output); + if ($this->gatewayId !== null) { + $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 2); + $xfer += $output->writeString($this->gatewayId); + $xfer += $output->writeFieldEnd(); + } + if ($this->userName !== null) { + $xfer += $output->writeFieldBegin('userName', TType::STRING, 3); + $xfer += $output->writeString($this->userName); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -13005,11 +12870,11 @@ class Airavata_addGateway_args { } -class Airavata_addGateway_result { +class Airavata_isUserExists_result { static $_TSPEC; /** - * @var string + * @var bool */ public $success = null; /** @@ -13034,7 +12899,7 @@ class Airavata_addGateway_result { self::$_TSPEC = array( 0 => array( 'var' => 'success', - 'type' => TType::STRING, + 'type' => TType::BOOL, ), 1 => array( 'var' => 'ire', @@ -13078,7 +12943,7 @@ class Airavata_addGateway_result { } public function getName() { - return 'Airavata_addGateway_result'; + return 'Airavata_isUserExists_result'; } public function read($input) @@ -13097,8 +12962,8 @@ class Airavata_addGateway_result { switch ($fid) { case 0: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->success); + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->success); } else { $xfer += $input->skip($ftype); } @@ -13147,10 +13012,10 @@ class Airavata_addGateway_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_addGateway_result'); + $xfer += $output->writeStructBegin('Airavata_isUserExists_result'); if ($this->success !== null) { - $xfer += $output->writeFieldBegin('success', TType::STRING, 0); - $xfer += $output->writeString($this->success); + $xfer += $output->writeFieldBegin('success', TType::BOOL, 0); + $xfer += $output->writeBool($this->success); $xfer += $output->writeFieldEnd(); } if ($this->ire !== null) { @@ -13180,7 +13045,7 @@ class Airavata_addGateway_result { } -class Airavata_updateGateway_args { +class Airavata_addGateway_args { static $_TSPEC; /** @@ -13188,13 +13053,9 @@ class Airavata_updateGateway_args { */ public $authzToken = null; /** - * @var string - */ - public $gatewayId = null; - /** * @var \Airavata\Model\Workspace\Gateway */ - public $updatedGateway = null; + public $gateway = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -13205,11 +13066,7 @@ class Airavata_updateGateway_args { 'class' => '\Airavata\Model\Security\AuthzToken', ), 2 => array( - 'var' => 'gatewayId', - 'type' => TType::STRING, - ), - 3 => array( - 'var' => 'updatedGateway', + 'var' => 'gateway', 'type' => TType::STRUCT, 'class' => '\Airavata\Model\Workspace\Gateway', ), @@ -13219,17 +13076,14 @@ class Airavata_updateGateway_args { if (isset($vals['authzToken'])) { $this->authzToken = $vals['authzToken']; } - if (isset($vals['gatewayId'])) { - $this->gatewayId = $vals['gatewayId']; - } - if (isset($vals['updatedGateway'])) { - $this->updatedGateway = $vals['updatedGateway']; + if (isset($vals['gateway'])) { + $this->gateway = $vals['gateway']; } } } public function getName() { - return 'Airavata_updateGateway_args'; + return 'Airavata_addGateway_args'; } public function read($input) @@ -13256,16 +13110,9 @@ class Airavata_updateGateway_args { } break; case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->gatewayId); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: if ($ftype == TType::STRUCT) { - $this->updatedGateway = new \Airavata\Model\Workspace\Gateway(); - $xfer += $this->updatedGateway->read($input); + $this->gateway = new \Airavata\Model\Workspace\Gateway(); + $xfer += $this->gateway->read($input); } else { $xfer += $input->skip($ftype); } @@ -13282,7 +13129,7 @@ class Airavata_updateGateway_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_updateGateway_args'); + $xfer += $output->writeStructBegin('Airavata_addGateway_args'); if ($this->authzToken !== null) { if (!is_object($this->authzToken)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -13291,17 +13138,12 @@ class Airavata_updateGateway_args { $xfer += $this->authzToken->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->gatewayId !== null) { - $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 2); - $xfer += $output->writeString($this->gatewayId); - $xfer += $output->writeFieldEnd(); - } - if ($this->updatedGateway !== null) { - if (!is_object($this->updatedGateway)) { + if ($this->gateway !== null) { + if (!is_object($this->gateway)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('updatedGateway', TType::STRUCT, 3); - $xfer += $this->updatedGateway->write($output); + $xfer += $output->writeFieldBegin('gateway', TType::STRUCT, 2); + $xfer += $this->gateway->write($output); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -13311,10 +13153,14 @@ class Airavata_updateGateway_args { } -class Airavata_updateGateway_result { +class Airavata_addGateway_result { static $_TSPEC; /** + * @var string + */ + public $success = null; + /** * @var \Airavata\API\Error\InvalidRequestException */ public $ire = null; @@ -13334,6 +13180,10 @@ class Airavata_updateGateway_result { public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::STRING, + ), 1 => array( 'var' => 'ire', 'type' => TType::STRUCT, @@ -13357,6 +13207,9 @@ class Airavata_updateGateway_result { ); } if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } if (isset($vals['ire'])) { $this->ire = $vals['ire']; } @@ -13373,7 +13226,7 @@ class Airavata_updateGateway_result { } public function getName() { - return 'Airavata_updateGateway_result'; + return 'Airavata_addGateway_result'; } public function read($input) @@ -13391,6 +13244,13 @@ class Airavata_updateGateway_result { } switch ($fid) { + case 0: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->success); + } else { + $xfer += $input->skip($ftype); + } + break; case 1: if ($ftype == TType::STRUCT) { $this->ire = new \Airavata\API\Error\InvalidRequestException(); @@ -13435,7 +13295,12 @@ class Airavata_updateGateway_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_updateGateway_result'); + $xfer += $output->writeStructBegin('Airavata_addGateway_result'); + if ($this->success !== null) { + $xfer += $output->writeFieldBegin('success', TType::STRING, 0); + $xfer += $output->writeString($this->success); + $xfer += $output->writeFieldEnd(); + } if ($this->ire !== null) { $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1); $xfer += $this->ire->write($output); @@ -13463,7 +13328,7 @@ class Airavata_updateGateway_result { } -class Airavata_getGateway_args { +class Airavata_updateGateway_args { static $_TSPEC; /** @@ -13474,6 +13339,10 @@ class Airavata_getGateway_args { * @var string */ public $gatewayId = null; + /** + * @var \Airavata\Model\Workspace\Gateway + */ + public $updatedGateway = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -13487,6 +13356,11 @@ class Airavata_getGateway_args { 'var' => 'gatewayId', 'type' => TType::STRING, ), + 3 => array( + 'var' => 'updatedGateway', + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Workspace\Gateway', + ), ); } if (is_array($vals)) { @@ -13496,11 +13370,14 @@ class Airavata_getGateway_args { if (isset($vals['gatewayId'])) { $this->gatewayId = $vals['gatewayId']; } + if (isset($vals['updatedGateway'])) { + $this->updatedGateway = $vals['updatedGateway']; + } } } public function getName() { - return 'Airavata_getGateway_args'; + return 'Airavata_updateGateway_args'; } public function read($input) @@ -13533,6 +13410,14 @@ class Airavata_getGateway_args { $xfer += $input->skip($ftype); } break; + case 3: + if ($ftype == TType::STRUCT) { + $this->updatedGateway = new \Airavata\Model\Workspace\Gateway(); + $xfer += $this->updatedGateway->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -13545,7 +13430,7 @@ class Airavata_getGateway_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getGateway_args'); + $xfer += $output->writeStructBegin('Airavata_updateGateway_args'); if ($this->authzToken !== null) { if (!is_object($this->authzToken)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -13559,6 +13444,14 @@ class Airavata_getGateway_args { $xfer += $output->writeString($this->gatewayId); $xfer += $output->writeFieldEnd(); } + if ($this->updatedGateway !== null) { + if (!is_object($this->updatedGateway)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('updatedGateway', TType::STRUCT, 3); + $xfer += $this->updatedGateway->write($output); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -13566,14 +13459,10 @@ class Airavata_getGateway_args { } -class Airavata_getGateway_result { +class Airavata_updateGateway_result { static $_TSPEC; /** - * @var \Airavata\Model\Workspace\Gateway - */ - public $success = null; - /** * @var \Airavata\API\Error\InvalidRequestException */ public $ire = null; @@ -13593,11 +13482,6 @@ class Airavata_getGateway_result { public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( - 0 => array( - 'var' => 'success', - 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Workspace\Gateway', - ), 1 => array( 'var' => 'ire', 'type' => TType::STRUCT, @@ -13621,9 +13505,6 @@ class Airavata_getGateway_result { ); } if (is_array($vals)) { - if (isset($vals['success'])) { - $this->success = $vals['success']; - } if (isset($vals['ire'])) { $this->ire = $vals['ire']; } @@ -13640,7 +13521,7 @@ class Airavata_getGateway_result { } public function getName() { - return 'Airavata_getGateway_result'; + return 'Airavata_updateGateway_result'; } public function read($input) @@ -13658,14 +13539,6 @@ class Airavata_getGateway_result { } switch ($fid) { - case 0: - if ($ftype == TType::STRUCT) { - $this->success = new \Airavata\Model\Workspace\Gateway(); - $xfer += $this->success->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; case 1: if ($ftype == TType::STRUCT) { $this->ire = new \Airavata\API\Error\InvalidRequestException(); @@ -13710,15 +13583,7 @@ class Airavata_getGateway_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getGateway_result'); - if ($this->success !== null) { - if (!is_object($this->success)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0); - $xfer += $this->success->write($output); - $xfer += $output->writeFieldEnd(); - } + $xfer += $output->writeStructBegin('Airavata_updateGateway_result'); if ($this->ire !== null) { $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1); $xfer += $this->ire->write($output); @@ -13746,7 +13611,7 @@ class Airavata_getGateway_result { } -class Airavata_deleteGateway_args { +class Airavata_getGateway_args { static $_TSPEC; /** @@ -13783,7 +13648,7 @@ class Airavata_deleteGateway_args { } public function getName() { - return 'Airavata_deleteGateway_args'; + return 'Airavata_getGateway_args'; } public function read($input) @@ -13828,7 +13693,7 @@ class Airavata_deleteGateway_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_deleteGateway_args'); + $xfer += $output->writeStructBegin('Airavata_getGateway_args'); if ($this->authzToken !== null) { if (!is_object($this->authzToken)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -13849,11 +13714,11 @@ class Airavata_deleteGateway_args { } -class Airavata_deleteGateway_result { +class Airavata_getGateway_result { static $_TSPEC; /** - * @var bool + * @var \Airavata\Model\Workspace\Gateway */ public $success = null; /** @@ -13878,7 +13743,8 @@ class Airavata_deleteGateway_result { self::$_TSPEC = array( 0 => array( 'var' => 'success', - 'type' => TType::BOOL, + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Workspace\Gateway', ), 1 => array( 'var' => 'ire', @@ -13922,7 +13788,7 @@ class Airavata_deleteGateway_result { } public function getName() { - return 'Airavata_deleteGateway_result'; + return 'Airavata_getGateway_result'; } public function read($input) @@ -13941,8 +13807,9 @@ class Airavata_deleteGateway_result { switch ($fid) { case 0: - if ($ftype == TType::BOOL) { - $xfer += $input->readBool($this->success); + if ($ftype == TType::STRUCT) { + $this->success = new \Airavata\Model\Workspace\Gateway(); + $xfer += $this->success->read($input); } else { $xfer += $input->skip($ftype); } @@ -13991,10 +13858,13 @@ class Airavata_deleteGateway_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_deleteGateway_result'); + $xfer += $output->writeStructBegin('Airavata_getGateway_result'); if ($this->success !== null) { - $xfer += $output->writeFieldBegin('success', TType::BOOL, 0); - $xfer += $output->writeBool($this->success); + if (!is_object($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0); + $xfer += $this->success->write($output); $xfer += $output->writeFieldEnd(); } if ($this->ire !== null) { @@ -14024,13 +13894,17 @@ class Airavata_deleteGateway_result { } -class Airavata_getAllGateways_args { +class Airavata_deleteGateway_args { static $_TSPEC; /** * @var \Airavata\Model\Security\AuthzToken */ public $authzToken = null; + /** + * @var string + */ + public $gatewayId = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -14040,17 +13914,24 @@ class Airavata_getAllGateways_args { 'type' => TType::STRUCT, 'class' => '\Airavata\Model\Security\AuthzToken', ), + 2 => array( + 'var' => 'gatewayId', + 'type' => TType::STRING, + ), ); } if (is_array($vals)) { if (isset($vals['authzToken'])) { $this->authzToken = $vals['authzToken']; } + if (isset($vals['gatewayId'])) { + $this->gatewayId = $vals['gatewayId']; + } } } public function getName() { - return 'Airavata_getAllGateways_args'; + return 'Airavata_deleteGateway_args'; } public function read($input) @@ -14076,6 +13957,13 @@ class Airavata_getAllGateways_args { $xfer += $input->skip($ftype); } break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->gatewayId); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -14088,7 +13976,7 @@ class Airavata_getAllGateways_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getAllGateways_args'); + $xfer += $output->writeStructBegin('Airavata_deleteGateway_args'); if ($this->authzToken !== null) { if (!is_object($this->authzToken)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -14097,6 +13985,11 @@ class Airavata_getAllGateways_args { $xfer += $this->authzToken->write($output); $xfer += $output->writeFieldEnd(); } + if ($this->gatewayId !== null) { + $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 2); + $xfer += $output->writeString($this->gatewayId); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -14104,11 +13997,11 @@ class Airavata_getAllGateways_args { } -class Airavata_getAllGateways_result { +class Airavata_deleteGateway_result { static $_TSPEC; /** - * @var \Airavata\Model\Workspace\Gateway[] + * @var bool */ public $success = null; /** @@ -14133,12 +14026,7 @@ class Airavata_getAllGateways_result { self::$_TSPEC = array( 0 => array( 'var' => 'success', - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Workspace\Gateway', - ), + 'type' => TType::BOOL, ), 1 => array( 'var' => 'ire', @@ -14182,7 +14070,7 @@ class Airavata_getAllGateways_result { } public function getName() { - return 'Airavata_getAllGateways_result'; + return 'Airavata_deleteGateway_result'; } public function read($input) @@ -14201,19 +14089,8 @@ class Airavata_getAllGateways_result { switch ($fid) { case 0: - if ($ftype == TType::LST) { - $this->success = array(); - $_size0 = 0; - $_etype3 = 0; - $xfer += $input->readListBegin($_etype3, $_size0); - for ($_i4 = 0; $_i4 < $_size0; ++$_i4) - { - $elem5 = null; - $elem5 = new \Airavata\Model\Workspace\Gateway(); - $xfer += $elem5->read($input); - $this->success []= $elem5; - } - $xfer += $input->readListEnd(); + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->success); } else { $xfer += $input->skip($ftype); } @@ -14262,22 +14139,10 @@ class Airavata_getAllGateways_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getAllGateways_result'); + $xfer += $output->writeStructBegin('Airavata_deleteGateway_result'); if ($this->success !== null) { - if (!is_array($this->success)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('success', TType::LST, 0); - { - $output->writeListBegin(TType::STRUCT, count($this->success)); - { - foreach ($this->success as $iter6) - { - $xfer += $iter6->write($output); - } - } - $output->writeListEnd(); - } + $xfer += $output->writeFieldBegin('success', TType::BOOL, 0); + $xfer += $output->writeBool($this->success); $xfer += $output->writeFieldEnd(); } if ($this->ire !== null) { @@ -14307,17 +14172,13 @@ class Airavata_getAllGateways_result { } -class Airavata_isGatewayExist_args { +class Airavata_getAllGateways_args { static $_TSPEC; /** * @var \Airavata\Model\Security\AuthzToken */ public $authzToken = null; - /** - * @var string - */ - public $gatewayId = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -14327,24 +14188,17 @@ class Airavata_isGatewayExist_args { 'type' => TType::STRUCT, 'class' => '\Airavata\Model\Security\AuthzToken', ), - 2 => array( - 'var' => 'gatewayId', - 'type' => TType::STRING, - ), ); } if (is_array($vals)) { if (isset($vals['authzToken'])) { $this->authzToken = $vals['authzToken']; } - if (isset($vals['gatewayId'])) { - $this->gatewayId = $vals['gatewayId']; - } } } public function getName() { - return 'Airavata_isGatewayExist_args'; + return 'Airavata_getAllGateways_args'; } public function read($input) @@ -14370,13 +14224,6 @@ class Airavata_isGatewayExist_args { $xfer += $input->skip($ftype); } break; - case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->gatewayId); - } else { - $xfer += $input->skip($ftype); - } - break; default: $xfer += $input->skip($ftype); break; @@ -14389,7 +14236,7 @@ class Airavata_isGatewayExist_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_isGatewayExist_args'); + $xfer += $output->writeStructBegin('Airavata_getAllGateways_args'); if ($this->authzToken !== null) { if (!is_object($this->authzToken)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -14398,11 +14245,6 @@ class Airavata_isGatewayExist_args { $xfer += $this->authzToken->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->gatewayId !== null) { - $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 2); - $xfer += $output->writeString($this->gatewayId); - $xfer += $output->writeFieldEnd(); - } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -14410,11 +14252,11 @@ class Airavata_isGatewayExist_args { } -class Airavata_isGatewayExist_result { +class Airavata_getAllGateways_result { static $_TSPEC; /** - * @var bool + * @var \Airavata\Model\Workspace\Gateway[] */ public $success = null; /** @@ -14439,7 +14281,12 @@ class Airavata_isGatewayExist_result { self::$_TSPEC = array( 0 => array( 'var' => 'success', - 'type' => TType::BOOL, + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Workspace\Gateway', + ), ), 1 => array( 'var' => 'ire', @@ -14483,7 +14330,7 @@ class Airavata_isGatewayExist_result { } public function getName() { - return 'Airavata_isGatewayExist_result'; + return 'Airavata_getAllGateways_result'; } public function read($input) @@ -14502,8 +14349,19 @@ class Airavata_isGatewayExist_result { switch ($fid) { case 0: - if ($ftype == TType::BOOL) { - $xfer += $input->readBool($this->success); + if ($ftype == TType::LST) { + $this->success = array(); + $_size0 = 0; + $_etype3 = 0; + $xfer += $input->readListBegin($_etype3, $_size0); + for ($_i4 = 0; $_i4 < $_size0; ++$_i4) + { + $elem5 = null; + $elem5 = new \Airavata\Model\Workspace\Gateway(); + $xfer += $elem5->read($input); + $this->success []= $elem5; + } + $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } @@ -14552,10 +14410,22 @@ class Airavata_isGatewayExist_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_isGatewayExist_result'); + $xfer += $output->writeStructBegin('Airavata_getAllGateways_result'); if ($this->success !== null) { - $xfer += $output->writeFieldBegin('success', TType::BOOL, 0); - $xfer += $output->writeBool($this->success); + if (!is_array($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::LST, 0); + { + $output->writeListBegin(TType::STRUCT, count($this->success)); + { + foreach ($this->success as $iter6) + { + $xfer += $iter6->write($output); + } + } + $output->writeListEnd(); + } $xfer += $output->writeFieldEnd(); } if ($this->ire !== null) { @@ -14585,7 +14455,7 @@ class Airavata_isGatewayExist_result { } -class Airavata_generateAndRegisterSSHKeys_args { +class Airavata_isGatewayExist_args { static $_TSPEC; /** @@ -14596,10 +14466,6 @@ class Airavata_generateAndRegisterSSHKeys_args { * @var string */ public $gatewayId = null; - /** - * @var string - */ - public $userName = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -14613,10 +14479,6 @@ class Airavata_generateAndRegisterSSHKeys_args { 'var' => 'gatewayId', 'type' => TType::STRING, ), - 3 => array( - 'var' => 'userName', - 'type' => TType::STRING, - ), ); } if (is_array($vals)) { @@ -14626,14 +14488,11 @@ class Airavata_generateAndRegisterSSHKeys_args { if (isset($vals['gatewayId'])) { $this->gatewayId = $vals['gatewayId']; } - if (isset($vals['userName'])) { - $this->userName = $vals['userName']; - } } } public function getName() { - return 'Airavata_generateAndRegisterSSHKeys_args'; + return 'Airavata_isGatewayExist_args'; } public function read($input) @@ -14666,13 +14525,6 @@ class Airavata_generateAndRegisterSSHKeys_args { $xfer += $input->skip($ftype); } break; - case 3: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->userName); - } else { - $xfer += $input->skip($ftype); - } - break; default: $xfer += $input->skip($ftype); break; @@ -14685,7 +14537,7 @@ class Airavata_generateAndRegisterSSHKeys_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_generateAndRegisterSSHKeys_args'); + $xfer += $output->writeStructBegin('Airavata_isGatewayExist_args'); if ($this->authzToken !== null) { if (!is_object($this->authzToken)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -14699,11 +14551,6 @@ class Airavata_generateAndRegisterSSHKeys_args { $xfer += $output->writeString($this->gatewayId); $xfer += $output->writeFieldEnd(); } - if ($this->userName !== null) { - $xfer += $output->writeFieldBegin('userName', TType::STRING, 3); - $xfer += $output->writeString($this->userName); - $xfer += $output->writeFieldEnd(); - } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -14711,11 +14558,11 @@ class Airavata_generateAndRegisterSSHKeys_args { } -class Airavata_generateAndRegisterSSHKeys_result { +class Airavata_isGatewayExist_result { static $_TSPEC; /** - * @var string + * @var bool */ public $success = null; /** @@ -14730,13 +14577,17 @@ class Airavata_generateAndRegisterSSHKeys_result { * @var \Airavata\API\Error\AiravataSystemException */ public $ase = null; + /** + * @var \Airavata\API\Error\AuthorizationException + */ + public $ae = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 0 => array( 'var' => 'success', - 'type' => TType::STRING, + 'type' => TType::BOOL, ), 1 => array( 'var' => 'ire', @@ -14753,6 +14604,11 @@ class Airavata_generateAndRegisterSSHKeys_result { 'type' => TType::STRUCT, 'class' => '\Airavata\API\Error\AiravataSystemException', ), + 4 => array( + 'var' => 'ae', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\AuthorizationException', + ), ); } if (is_array($vals)) { @@ -14768,11 +14624,14 @@ class Airavata_generateAndRegisterSSHKeys_result { if (isset($vals['ase'])) { $this->ase = $vals['ase']; } + if (isset($vals['ae'])) { + $this->ae = $vals['ae']; + } } } public function getName() { - return 'Airavata_generateAndRegisterSSHKeys_result'; + return 'Airavata_isGatewayExist_result'; } public function read($input) @@ -14791,8 +14650,8 @@ class Airavata_generateAndRegisterSSHKeys_result { switch ($fid) { case 0: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->success); + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->success); } else { $xfer += $input->skip($ftype); } @@ -14821,6 +14680,14 @@ class Airavata_generateAndRegisterSSHKeys_result { $xfer += $input->skip($ftype); } break; + case 4: + if ($ftype == TType::STRUCT) { + $this->ae = new \Airavata\API\Error\AuthorizationException(); + $xfer += $this->ae->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; default: $xfer += $input->skip($ftype); break; @@ -14833,10 +14700,10 @@ class Airavata_generateAndRegisterSSHKeys_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_generateAndRegisterSSHKeys_result'); + $xfer += $output->writeStructBegin('Airavata_isGatewayExist_result'); if ($this->success !== null) { - $xfer += $output->writeFieldBegin('success', TType::STRING, 0); - $xfer += $output->writeString($this->success); + $xfer += $output->writeFieldBegin('success', TType::BOOL, 0); + $xfer += $output->writeBool($this->success); $xfer += $output->writeFieldEnd(); } if ($this->ire !== null) { @@ -14854,6 +14721,11 @@ class Airavata_generateAndRegisterSSHKeys_result { $xfer += $this->ase->write($output); $xfer += $output->writeFieldEnd(); } + if ($this->ae !== null) { + $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 4); + $xfer += $this->ae->write($output); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -14861,7 +14733,7 @@ class Airavata_generateAndRegisterSSHKeys_result { } -class Airavata_getSSHPubKey_args { +class Airavata_generateAndRegisterSSHKeys_args { static $_TSPEC; /** @@ -14871,11 +14743,11 @@ class Airavata_getSSHPubKey_args { /** * @var string */ - public $airavataCredStoreToken = null; + public $gatewayId = null; /** * @var string */ - public $gatewayId = null; + public $userName = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -14886,11 +14758,11 @@ class Airavata_getSSHPubKey_args { 'class' => '\Airavata\Model\Security\AuthzToken', ), 2 => array( - 'var' => 'airavataCredStoreToken', + 'var' => 'gatewayId', 'type' => TType::STRING, ), 3 => array( - 'var' => 'gatewayId', + 'var' => 'userName', 'type' => TType::STRING, ), ); @@ -14899,17 +14771,17 @@ class Airavata_getSSHPubKey_args { if (isset($vals['authzToken'])) { $this->authzToken = $vals['authzToken']; } - if (isset($vals['airavataCredStoreToken'])) { - $this->airavataCredStoreToken = $vals['airavataCredStoreToken']; - } if (isset($vals['gatewayId'])) { $this->gatewayId = $vals['gatewayId']; } + if (isset($vals['userName'])) { + $this->userName = $vals['userName']; + } } } public function getName() { - return 'Airavata_getSSHPubKey_args'; + return 'Airavata_generateAndRegisterSSHKeys_args'; } public function read($input) @@ -14937,14 +14809,14 @@ class Airavata_getSSHPubKey_args { break; case 2: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->airavataCredStoreToken); + $xfer += $input->readString($this->gatewayId); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->gatewayId); + $xfer += $input->readString($this->userName); } else { $xfer += $input->skip($ftype); } @@ -14961,7 +14833,7 @@ class Airavata_getSSHPubKey_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getSSHPubKey_args'); + $xfer += $output->writeStructBegin('Airavata_generateAndRegisterSSHKeys_args'); if ($this->authzToken !== null) { if (!is_object($this->authzToken)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -14970,16 +14842,16 @@ class Airavata_getSSHPubKey_args { $xfer += $this->authzToken->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->airavataCredStoreToken !== null) { - $xfer += $output->writeFieldBegin('airavataCredStoreToken', TType::STRING, 2); - $xfer += $output->writeString($this->airavataCredStoreToken); - $xfer += $output->writeFieldEnd(); - } if ($this->gatewayId !== null) { - $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 3); + $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 2); $xfer += $output->writeString($this->gatewayId); $xfer += $output->writeFieldEnd(); } + if ($this->userName !== null) { + $xfer += $output->writeFieldBegin('userName', TType::STRING, 3); + $xfer += $output->writeString($this->userName); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -14987,7 +14859,7 @@ class Airavata_getSSHPubKey_args { } -class Airavata_getSSHPubKey_result { +class Airavata_generateAndRegisterSSHKeys_result { static $_TSPEC; /** @@ -15048,7 +14920,7 @@ class Airavata_getSSHPubKey_result { } public function getName() { - return 'Airavata_getSSHPubKey_result'; + return 'Airavata_generateAndRegisterSSHKeys_result'; } public function read($input) @@ -15109,7 +14981,7 @@ class Airavata_getSSHPubKey_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getSSHPubKey_result'); + $xfer += $output->writeStructBegin('Airavata_generateAndRegisterSSHKeys_result'); if ($this->success !== null) { $xfer += $output->writeFieldBegin('success', TType::STRING, 0); $xfer += $output->writeString($this->success); @@ -15137,7 +15009,7 @@ class Airavata_getSSHPubKey_result { } -class Airavata_getAllUserSSHPubKeys_args { +class Airavata_getSSHPubKey_args { static $_TSPEC; /** @@ -15147,7 +15019,11 @@ class Airavata_getAllUserSSHPubKeys_args { /** * @var string */ - public $userName = null; + public $airavataCredStoreToken = null; + /** + * @var string + */ + public $gatewayId = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -15158,7 +15034,11 @@ class Airavata_getAllUserSSHPubKeys_args { 'class' => '\Airavata\Model\Security\AuthzToken', ), 2 => array( - 'var' => 'userName', + 'var' => 'airavataCredStoreToken', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'gatewayId', 'type' => TType::STRING, ), ); @@ -15167,14 +15047,17 @@ class Airavata_getAllUserSSHPubKeys_args { if (isset($vals['authzToken'])) { $this->authzToken = $vals['authzToken']; } - if (isset($vals['userName'])) { - $this->userName = $vals['userName']; + if (isset($vals['airavataCredStoreToken'])) { + $this->airavataCredStoreToken = $vals['airavataCredStoreToken']; + } + if (isset($vals['gatewayId'])) { + $this->gatewayId = $vals['gatewayId']; } } } public function getName() { - return 'Airavata_getAllUserSSHPubKeys_args'; + return 'Airavata_getSSHPubKey_args'; } public function read($input) @@ -15202,7 +15085,14 @@ class Airavata_getAllUserSSHPubKeys_args { break; case 2: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->userName); + $xfer += $input->readString($this->airavataCredStoreToken); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->gatewayId); } else { $xfer += $input->skip($ftype); } @@ -15219,7 +15109,7 @@ class Airavata_getAllUserSSHPubKeys_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getAllUserSSHPubKeys_args'); + $xfer += $output->writeStructBegin('Airavata_getSSHPubKey_args'); if ($this->authzToken !== null) { if (!is_object($this->authzToken)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -15228,9 +15118,14 @@ class Airavata_getAllUserSSHPubKeys_args { $xfer += $this->authzToken->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->userName !== null) { - $xfer += $output->writeFieldBegin('userName', TType::STRING, 2); - $xfer += $output->writeString($this->userName); + if ($this->airavataCredStoreToken !== null) { + $xfer += $output->writeFieldBegin('airavataCredStoreToken', TType::STRING, 2); + $xfer += $output->writeString($this->airavataCredStoreToken); + $xfer += $output->writeFieldEnd(); + } + if ($this->gatewayId !== null) { + $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 3); + $xfer += $output->writeString($this->gatewayId); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -15240,11 +15135,11 @@ class Airavata_getAllUserSSHPubKeys_args { } -class Airavata_getAllUserSSHPubKeys_result { +class Airavata_getSSHPubKey_result { static $_TSPEC; /** - * @var array + * @var string */ public $success = null; /** @@ -15265,15 +15160,7 @@ class Airavata_getAllUserSSHPubKeys_result { self::$_TSPEC = array( 0 => array( 'var' => 'success', - 'type' => TType::MAP, - 'ktype' => TType::STRING, - 'vtype' => TType::STRING, - 'key' => array( - 'type' => TType::STRING, - ), - 'val' => array( - 'type' => TType::STRING, - ), + 'type' => TType::STRING, ), 1 => array( 'var' => 'ire', @@ -15309,7 +15196,7 @@ class Airavata_getAllUserSSHPubKeys_result { } public function getName() { - return 'Airavata_getAllUserSSHPubKeys_result'; + return 'Airavata_getSSHPubKey_result'; } public function read($input) @@ -15328,21 +15215,8 @@ class Airavata_getAllUserSSHPubKeys_result { switch ($fid) { case 0: - if ($ftype == TType::MAP) { - $this->success = array(); - $_size7 = 0; - $_ktype8 = 0; - $_vtype9 = 0; - $xfer += $input->readMapBegin($_ktype8, $_vtype9, $_size7); - for ($_i11 = 0; $_i11 < $_size7; ++$_i11) - { - $key12 = ''; - $val13 = ''; - $xfer += $input->readString($key12); - $xfer += $input->readString($val13); - $this->success[$key12] = $val13; - } - $xfer += $input->readMapEnd(); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->success); } else { $xfer += $input->skip($ftype); } @@ -15383,23 +15257,10 @@ class Airavata_getAllUserSSHPubKeys_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getAllUserSSHPubKeys_result'); + $xfer += $output->writeStructBegin('Airavata_getSSHPubKey_result'); if ($this->success !== null) { - if (!is_array($this->success)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('success', TType::MAP, 0); - { - $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); - { - foreach ($this->success as $kiter14 => $viter15) - { - $xfer += $output->writeString($kiter14); - $xfer += $output->writeString($viter15); - } - } - $output->writeMapEnd(); - } + $xfer += $output->writeFieldBegin('success', TType::STRING, 0); + $xfer += $output->writeString($this->success); $xfer += $output->writeFieldEnd(); } if ($this->ire !== null) { @@ -15424,7 +15285,7 @@ class Airavata_getAllUserSSHPubKeys_result { } -class Airavata_getAllGatewaySSHPubKeys_args { +class Airavata_getAllUserSSHPubKeys_args { static $_TSPEC; /** @@ -15434,7 +15295,7 @@ class Airavata_getAllGatewaySSHPubKeys_args { /** * @var string */ - public $gatewayId = null; + public $userName = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -15445,7 +15306,7 @@ class Airavata_getAllGatewaySSHPubKeys_args { 'class' => '\Airavata\Model\Security\AuthzToken', ), 2 => array( - 'var' => 'gatewayId', + 'var' => 'userName', 'type' => TType::STRING, ), ); @@ -15454,14 +15315,14 @@ class Airavata_getAllGatewaySSHPubKeys_args { if (isset($vals['authzToken'])) { $this->authzToken = $vals['authzToken']; } - if (isset($vals['gatewayId'])) { - $this->gatewayId = $vals['gatewayId']; + if (isset($vals['userName'])) { + $this->userName = $vals['userName']; } } } public function getName() { - return 'Airavata_getAllGatewaySSHPubKeys_args'; + return 'Airavata_getAllUserSSHPubKeys_args'; } public function read($input) @@ -15489,7 +15350,7 @@ class Airavata_getAllGatewaySSHPubKeys_args { break; case 2: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->gatewayId); + $xfer += $input->readString($this->userName); } else { $xfer += $input->skip($ftype); } @@ -15506,7 +15367,7 @@ class Airavata_getAllGatewaySSHPubKeys_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getAllGatewaySSHPubKeys_args'); + $xfer += $output->writeStructBegin('Airavata_getAllUserSSHPubKeys_args'); if ($this->authzToken !== null) { if (!is_object($this->authzToken)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -15515,9 +15376,9 @@ class Airavata_getAllGatewaySSHPubKeys_args { $xfer += $this->authzToken->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->gatewayId !== null) { - $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 2); - $xfer += $output->writeString($this->gatewayId); + if ($this->userName !== null) { + $xfer += $output->writeFieldBegin('userName', TType::STRING, 2); + $xfer += $output->writeString($this->userName); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -15527,7 +15388,7 @@ class Airavata_getAllGatewaySSHPubKeys_args { } -class Airavata_getAllGatewaySSHPubKeys_result { +class Airavata_getAllUserSSHPubKeys_result { static $_TSPEC; /** @@ -15596,7 +15457,7 @@ class Airavata_getAllGatewaySSHPubKeys_result { } public function getName() { - return 'Airavata_getAllGatewaySSHPubKeys_result'; + return 'Airavata_getAllUserSSHPubKeys_result'; } public function read($input) @@ -15617,17 +15478,17 @@ class Airavata_getAllGatewaySSHPubKeys_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size16 = 0; - $_ktype17 = 0; - $_vtype18 = 0; - $xfer += $input->readMapBegin($_ktype17, $_vtype18, $_size16); - for ($_i20 = 0; $_i20 < $_size16; ++$_i20) + $_size7 = 0; + $_ktype8 = 0; + $_vtype9 = 0; + $xfer += $input->readMapBegin($_ktype8, $_vtype9, $_size7); + for ($_i11 = 0; $_i11 < $_size7; ++$_i11) { - $key21 = ''; - $val22 = ''; - $xfer += $input->readString($key21); - $xfer += $input->readString($val22); - $this->success[$key21] = $val22; + $key12 = ''; + $val13 = ''; + $xfer += $input->readString($key12); + $xfer += $input->readString($val13); + $this->success[$key12] = $val13; } $xfer += $input->readMapEnd(); } else { @@ -15670,7 +15531,7 @@ class Airavata_getAllGatewaySSHPubKeys_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getAllGatewaySSHPubKeys_result'); + $xfer += $output->writeStructBegin('Airavata_getAllUserSSHPubKeys_result'); if ($this->success !== null) { if (!is_array($this->success)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -15679,10 +15540,10 @@ class Airavata_getAllGatewaySSHPubKeys_result { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter23 => $viter24) + foreach ($this->success as $kiter14 => $viter15) { - $xfer += $output->writeString($kiter23); - $xfer += $output->writeString($viter24); + $xfer += $output->writeString($kiter14); + $xfer += $output->writeString($viter15); } } $output->writeMapEnd(); @@ -15711,7 +15572,7 @@ class Airavata_getAllGatewaySSHPubKeys_result { } -class Airavata_deleteSSHPubKey_args { +class Airavata_getAllGatewaySSHPubKeys_args { static $_TSPEC; /** @@ -15721,10 +15582,6 @@ class Airavata_deleteSSHPubKey_args { /** * @var string */ - public $airavataCredStoreToken = null; - /** - * @var string - */ public $gatewayId = null; public function __construct($vals=null) { @@ -15736,10 +15593,6 @@ class Airavata_deleteSSHPubKey_args { 'class' => '\Airavata\Model\Security\AuthzToken', ), 2 => array( - 'var' => 'airavataCredStoreToken', - 'type' => TType::STRING, - ), - 3 => array( 'var' => 'gatewayId', 'type' => TType::STRING, ), @@ -15749,9 +15602,6 @@ class Airavata_deleteSSHPubKey_args { if (isset($vals['authzToken'])) { $this->authzToken = $vals['authzToken']; } - if (isset($vals['airavataCredStoreToken'])) { - $this->airavataCredStoreToken = $vals['airavataCredStoreToken']; - } if (isset($vals['gatewayId'])) { $this->gatewayId = $vals['gatewayId']; } @@ -15759,7 +15609,7 @@ class Airavata_deleteSSHPubKey_args { } public function getName() { - return 'Airavata_deleteSSHPubKey_args'; + return 'Airavata_getAllGatewaySSHPubKeys_args'; } public function read($input) @@ -15787,13 +15637,6 @@ class Airavata_deleteSSHPubKey_args { break; case 2: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->airavataCredStoreToken); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRING) { $xfer += $input->readString($this->gatewayId); } else { $xfer += $input->skip($ftype); @@ -15811,7 +15654,7 @@ class Airavata_deleteSSHPubKey_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_deleteSSHPubKey_args'); + $xfer += $output->writeStructBegin('Airavata_getAllGatewaySSHPubKeys_args'); if ($this->authzToken !== null) { if (!is_object($this->authzToken)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -15820,13 +15663,8 @@ class Airavata_deleteSSHPubKey_args { $xfer += $this->authzToken->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->airavataCredStoreToken !== null) { - $xfer += $output->writeFieldBegin('airavataCredStoreToken', TType::STRING, 2); - $xfer += $output->writeString($this->airavataCredStoreToken); - $xfer += $output->writeFieldEnd(); - } if ($this->gatewayId !== null) { - $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 3); + $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 2); $xfer += $output->writeString($this->gatewayId); $xfer += $output->writeFieldEnd(); } @@ -15837,11 +15675,11 @@ class Airavata_deleteSSHPubKey_args { } -class Airavata_deleteSSHPubKey_result { +class Airavata_getAllGatewaySSHPubKeys_result { static $_TSPEC; /** - * @var bool + * @var array */ public $success = null; /** @@ -15862,7 +15700,15 @@ class Airavata_deleteSSHPubKey_result { self::$_TSPEC = array( 0 => array( 'var' => 'success', - 'type' => TType::BOOL, + 'type' => TType::MAP, + 'ktype' => TType::STRING, + 'vtype' => TType::STRING, + 'key' => array( + 'type' => TType::STRING, + ), + 'val' => array( + 'type' => TType::STRING, + ), ), 1 => array( 'var' => 'ire', @@ -15898,7 +15744,7 @@ class Airavata_deleteSSHPubKey_result { } public function getName() { - return 'Airavata_deleteSSHPubKey_result'; + return 'Airavata_getAllGatewaySSHPubKeys_result'; } public function read($input) @@ -15917,8 +15763,21 @@ class Airavata_deleteSSHPubKey_result { switch ($fid) { case 0: - if ($ftype == TType::BOOL) { - $xfer += $input->readBool($this->success); + if ($ftype == TType::MAP) { + $this->success = array(); + $_size16 = 0; + $_ktype17 = 0; + $_vtype18 = 0; + $xfer += $input->readMapBegin($_ktype17, $_vtype18, $_size16); + for ($_i20 = 0; $_i20 < $_size16; ++$_i20) + { + $key21 = ''; + $val22 = ''; + $xfer += $input->readString($key21); + $xfer += $input->readString($val22); + $this->success[$key21] = $val22; + } + $xfer += $input->readMapEnd(); } else { $xfer += $input->skip($ftype); } @@ -15959,10 +15818,23 @@ class Airavata_deleteSSHPubKey_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_deleteSSHPubKey_result'); + $xfer += $output->writeStructBegin('Airavata_getAllGatewaySSHPubKeys_result'); if ($this->success !== null) { - $xfer += $output->writeFieldBegin('success', TType::BOOL, 0); - $xfer += $output->writeBool($this->success); + if (!is_array($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::MAP, 0); + { + $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); + { + foreach ($this->success as $kiter23 => $viter24) + { + $xfer += $output->writeString($kiter23); + $xfer += $output->writeString($viter24); + } + } + $output->writeMapEnd(); + } $xfer += $output->writeFieldEnd(); } if ($this->ire !== null) { @@ -15987,7 +15859,7 @@ class Airavata_deleteSSHPubKey_result { } -class Airavata_createProject_args { +class Airavata_deleteSSHPubKey_args { static $_TSPEC; /** @@ -15997,11 +15869,11 @@ class Airavata_createProject_args { /** * @var string */ - public $gatewayId = null; + public $airavataCredStoreToken = null; /** - * @var \Airavata\Model\Workspace\Project + * @var string */ - public $project = null; + public $gatewayId = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -16012,13 +15884,12 @@ class Airavata_createProject_args { 'class' => '\Airavata\Model\Security\AuthzToken', ), 2 => array( - 'var' => 'gatewayId', + 'var' => 'airavataCredStoreToken', 'type' => TType::STRING, ), 3 => array( - 'var' => 'project', - 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Workspace\Project', + 'var' => 'gatewayId', + 'type' => TType::STRING, ), ); } @@ -16026,17 +15897,17 @@ class Airavata_createProject_args { if (isset($vals['authzToken'])) { $this->authzToken = $vals['authzToken']; } + if (isset($vals['airavataCredStoreToken'])) { + $this->airavataCredStoreToken = $vals['airavataCredStoreToken']; + } if (isset($vals['gatewayId'])) { $this->gatewayId = $vals['gatewayId']; } - if (isset($vals['project'])) { - $this->project = $vals['project']; - } } } public function getName() { - return 'Airavata_createProject_args'; + return 'Airavata_deleteSSHPubKey_args'; } public function read($input) @@ -16064,15 +15935,14 @@ class Airavata_createProject_args { break; case 2: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->gatewayId); + $xfer += $input->readString($this->airavataCredStoreToken); } else { $xfer += $input->skip($ftype); } break; case 3: - if ($ftype == TType::STRUCT) { - $this->project = new \Airavata\Model\Workspace\Project(); - $xfer += $this->project->read($input); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->gatewayId); } else { $xfer += $input->skip($ftype); } @@ -16089,7 +15959,7 @@ class Airavata_createProject_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_createProject_args'); + $xfer += $output->writeStructBegin('Airavata_deleteSSHPubKey_args'); if ($this->authzToken !== null) { if (!is_object($this->authzToken)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -16098,17 +15968,14 @@ class Airavata_createProject_args { $xfer += $this->authzToken->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->gatewayId !== null) { - $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 2); - $xfer += $output->writeString($this->gatewayId); + if ($this->airavataCredStoreToken !== null) { + $xfer += $output->writeFieldBegin('airavataCredStoreToken', TType::STRING, 2); + $xfer += $output->writeString($this->airavataCredStoreToken); $xfer += $output->writeFieldEnd(); } - if ($this->project !== null) { - if (!is_object($this->project)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('project', TType::STRUCT, 3); - $xfer += $this->project->write($output); + if ($this->gatewayId !== null) { + $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 3); + $xfer += $output->writeString($this->gatewayId); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -16118,11 +15985,11 @@ class Airavata_createProject_args { } -class Airavata_createProject_result { +class Airavata_deleteSSHPubKey_result { static $_TSPEC; /** - * @var string + * @var bool */ public $success = null; /** @@ -16137,17 +16004,13 @@ class Airavata_createProject_result { * @var \Airavata\API\Error\AiravataSystemException */ public $ase = null; - /** - * @var \Airavata\API\Error\AuthorizationException - */ - public $ae = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 0 => array( 'var' => 'success', - 'type' => TType::STRING, + 'type' => TType::BOOL, ), 1 => array( 'var' => 'ire', @@ -16164,11 +16027,6 @@ class Airavata_createProject_result { 'type' => TType::STRUCT, 'class' => '\Airavata\API\Error\AiravataSystemException', ), - 4 => array( - 'var' => 'ae', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AuthorizationException', - ), ); } if (is_array($vals)) { @@ -16184,14 +16042,11 @@ class Airavata_createProject_result { if (isset($vals['ase'])) { $this->ase = $vals['ase']; } - if (isset($vals['ae'])) { - $this->ae = $vals['ae']; - } } } public function getName() { - return 'Airavata_createProject_result'; + return 'Airavata_deleteSSHPubKey_result'; } public function read($input) @@ -16210,8 +16065,8 @@ class Airavata_createProject_result { switch ($fid) { case 0: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->success); + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->success); } else { $xfer += $input->skip($ftype); } @@ -16240,14 +16095,6 @@ class Airavata_createProject_result { $xfer += $input->skip($ftype); } break; - case 4: - if ($ftype == TType::STRUCT) { - $this->ae = new \Airavata\API\Error\AuthorizationException(); - $xfer += $this->ae->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; default: $xfer += $input->skip($ftype); break; @@ -16260,10 +16107,10 @@ class Airavata_createProject_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_createProject_result'); + $xfer += $output->writeStructBegin('Airavata_deleteSSHPubKey_result'); if ($this->success !== null) { - $xfer += $output->writeFieldBegin('success', TType::STRING, 0); - $xfer += $output->writeString($this->success); + $xfer += $output->writeFieldBegin('success', TType::BOOL, 0); + $xfer += $output->writeBool($this->success); $xfer += $output->writeFieldEnd(); } if ($this->ire !== null) { @@ -16281,11 +16128,6 @@ class Airavata_createProject_result { $xfer += $this->ase->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->ae !== null) { - $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 4); - $xfer += $this->ae->write($output); - $xfer += $output->writeFieldEnd(); - } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -16293,7 +16135,7 @@ class Airavata_createProject_result { } -class Airavata_updateProject_args { +class Airavata_createProject_args { static $_TSPEC; /** @@ -16303,11 +16145,11 @@ class Airavata_updateProject_args { /** * @var string */ - public $projectId = null; + public $gatewayId = null; /** * @var \Airavata\Model\Workspace\Project */ - public $updatedProject = null; + public $project = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -16318,11 +16160,11 @@ class Airavata_updateProject_args { 'class' => '\Airavata\Model\Security\AuthzToken', ), 2 => array( - 'var' => 'projectId', + 'var' => 'gatewayId', 'type' => TType::STRING, ), 3 => array( - 'var' => 'updatedProject', + 'var' => 'project', 'type' => TType::STRUCT, 'class' => '\Airavata\Model\Workspace\Project', ), @@ -16332,17 +16174,17 @@ class Airavata_updateProject_args { if (isset($vals['authzToken'])) { $this->authzToken = $vals['authzToken']; } - if (isset($vals['projectId'])) { - $this->projectId = $vals['projectId']; + if (isset($vals['gatewayId'])) { + $this->gatewayId = $vals['gatewayId']; } - if (isset($vals['updatedProject'])) { - $this->updatedProject = $vals['updatedProject']; + if (isset($vals['project'])) { + $this->project = $vals['project']; } } } public function getName() { - return 'Airavata_updateProject_args'; + return 'Airavata_createProject_args'; } public function read($input) @@ -16370,15 +16212,15 @@ class Airavata_updateProject_args { break; case 2: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->projectId); + $xfer += $input->readString($this->gatewayId); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::STRUCT) { - $this->updatedProject = new \Airavata\Model\Workspace\Project(); - $xfer += $this->updatedProject->read($input); + $this->project = new \Airavata\Model\Workspace\Project(); + $xfer += $this->project->read($input); } else { $xfer += $input->skip($ftype); } @@ -16395,7 +16237,7 @@ class Airavata_updateProject_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_updateProject_args'); + $xfer += $output->writeStructBegin('Airavata_createProject_args'); if ($this->authzToken !== null) { if (!is_object($this->authzToken)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -16404,17 +16246,17 @@ class Airavata_updateProject_args { $xfer += $this->authzToken->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->projectId !== null) { - $xfer += $output->writeFieldBegin('projectId', TType::STRING, 2); - $xfer += $output->writeString($this->projectId); + if ($this->gatewayId !== null) { + $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 2); + $xfer += $output->writeString($this->gatewayId); $xfer += $output->writeFieldEnd(); } - if ($this->updatedProject !== null) { - if (!is_object($this->updatedProject)) { + if ($this->project !== null) { + if (!is_object($this->project)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('updatedProject', TType::STRUCT, 3); - $xfer += $this->updatedProject->write($output); + $xfer += $output->writeFieldBegin('project', TType::STRUCT, 3); + $xfer += $this->project->write($output); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -16424,10 +16266,14 @@ class Airavata_updateProject_args { } -class Airavata_updateProject_result { +class Airavata_createProject_result { static $_TSPEC; /** + * @var string + */ + public $success = null; + /** * @var \Airavata\API\Error\InvalidRequestException */ public $ire = null; @@ -16440,10 +16286,