Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3DCA82009C6 for ; Mon, 2 May 2016 02:26:45 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3C2B616098E; Mon, 2 May 2016 02:26:45 +0200 (CEST) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DFDBE1609AF for ; Mon, 2 May 2016 02:26:42 +0200 (CEST) Received: (qmail 45764 invoked by uid 500); 2 May 2016 00:26:42 -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 45709 invoked by uid 99); 2 May 2016 00:26:42 -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; Mon, 02 May 2016 00:26:42 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D5E03DFE04; Mon, 2 May 2016 00:26:41 +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: Mon, 02 May 2016 00:26:42 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [2/3] airavata-php-gateway git commit: adding updated thrift files and adding placeholders for IS specific configurations in GP archived-at: Mon, 02 May 2016 00:26:45 -0000 http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/f9fc0161/app/libraries/Airavata/API/Airavata.php ---------------------------------------------------------------------- diff --git a/app/libraries/Airavata/API/Airavata.php b/app/libraries/Airavata/API/Airavata.php index 1f4d90f..54f8228 100644 --- a/app/libraries/Airavata/API/Airavata.php +++ b/app/libraries/Airavata/API/Airavata.php @@ -248,6 +248,34 @@ interface AiravataIf { */ public function generateAndRegisterSSHKeys(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName); /** + * Generate and Register Username PWD Pair with Airavata Credential Store. + * + * @param gatewayId + * The identifier for the requested Gateway. + * + * @param userName + * The User for which the credential should be registered. For community accounts, this user is the name of the + * community user name. For computational resources, this user name need not be the same user name on resoruces. + * + * @param password + * + * @return airavataCredStoreToken + * An SSH Key pair is generated and stored in the credential store and associated with users or community account + * belonging to a Gateway. + * + * + * + * @param \Airavata\Model\Security\AuthzToken $authzToken + * @param string $gatewayId + * @param string $userName + * @param string $password + * @return string + * @throws \Airavata\API\Error\InvalidRequestException + * @throws \Airavata\API\Error\AiravataClientException + * @throws \Airavata\API\Error\AiravataSystemException + */ + public function registerPwdCredential(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $password); + /** * Get a Public Key by Providing the Token * * @param CredStoreToken @@ -314,6 +342,15 @@ interface AiravataIf { */ public function getAllGatewaySSHPubKeys(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId); /** + * @param \Airavata\Model\Security\AuthzToken $authzToken + * @param string $gatewayId + * @return array + * @throws \Airavata\API\Error\InvalidRequestException + * @throws \Airavata\API\Error\AiravataClientException + * @throws \Airavata\API\Error\AiravataSystemException + */ + public function getAllGatewayPWDCredentials(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId); + /** * * Delete a Gateway * @@ -335,6 +372,16 @@ interface AiravataIf { */ public function deleteSSHPubKey(\Airavata\Model\Security\AuthzToken $authzToken, $airavataCredStoreToken, $gatewayId); /** + * @param \Airavata\Model\Security\AuthzToken $authzToken + * @param string $airavataCredStoreToken + * @param string $gatewayId + * @return bool + * @throws \Airavata\API\Error\InvalidRequestException + * @throws \Airavata\API\Error\AiravataClientException + * @throws \Airavata\API\Error\AiravataSystemException + */ + public function deletePWDCredential(\Airavata\Model\Security\AuthzToken $authzToken, $airavataCredStoreToken, $gatewayId); + /** * * Creates a Project with basic metadata. * A Project is a container of experiments. @@ -3049,6 +3096,10 @@ interface AiravataIf { * computeResourcePreferences: * List of resource preferences for each of the registered compute resources. * + * identityServerTenant: + * + * identityServerPwdCredToken: + * * * @throws \Airavata\API\Error\InvalidRequestException * @throws \Airavata\API\Error\AiravataClientException @@ -4435,6 +4486,69 @@ class AiravataClient implements \Airavata\API\AiravataIf { throw new \Exception("generateAndRegisterSSHKeys failed: unknown result"); } + public function registerPwdCredential(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $password) + { + $this->send_registerPwdCredential($authzToken, $gatewayId, $userName, $password); + return $this->recv_registerPwdCredential(); + } + + public function send_registerPwdCredential(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $password) + { + $args = new \Airavata\API\Airavata_registerPwdCredential_args(); + $args->authzToken = $authzToken; + $args->gatewayId = $gatewayId; + $args->userName = $userName; + $args->password = $password; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'registerPwdCredential', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('registerPwdCredential', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_registerPwdCredential() + { + $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_registerPwdCredential_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_registerPwdCredential_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->ire !== null) { + throw $result->ire; + } + if ($result->ace !== null) { + throw $result->ace; + } + if ($result->ase !== null) { + throw $result->ase; + } + throw new \Exception("registerPwdCredential failed: unknown result"); + } + public function getSSHPubKey(\Airavata\Model\Security\AuthzToken $authzToken, $airavataCredStoreToken, $gatewayId) { $this->send_getSSHPubKey($authzToken, $airavataCredStoreToken, $gatewayId); @@ -4619,6 +4733,67 @@ class AiravataClient implements \Airavata\API\AiravataIf { throw new \Exception("getAllGatewaySSHPubKeys failed: unknown result"); } + public function getAllGatewayPWDCredentials(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId) + { + $this->send_getAllGatewayPWDCredentials($authzToken, $gatewayId); + return $this->recv_getAllGatewayPWDCredentials(); + } + + public function send_getAllGatewayPWDCredentials(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId) + { + $args = new \Airavata\API\Airavata_getAllGatewayPWDCredentials_args(); + $args->authzToken = $authzToken; + $args->gatewayId = $gatewayId; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'getAllGatewayPWDCredentials', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('getAllGatewayPWDCredentials', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_getAllGatewayPWDCredentials() + { + $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_getAllGatewayPWDCredentials_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_getAllGatewayPWDCredentials_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->ire !== null) { + throw $result->ire; + } + if ($result->ace !== null) { + throw $result->ace; + } + if ($result->ase !== null) { + throw $result->ase; + } + throw new \Exception("getAllGatewayPWDCredentials failed: unknown result"); + } + public function deleteSSHPubKey(\Airavata\Model\Security\AuthzToken $authzToken, $airavataCredStoreToken, $gatewayId) { $this->send_deleteSSHPubKey($authzToken, $airavataCredStoreToken, $gatewayId); @@ -4681,6 +4856,68 @@ class AiravataClient implements \Airavata\API\AiravataIf { throw new \Exception("deleteSSHPubKey failed: unknown result"); } + public function deletePWDCredential(\Airavata\Model\Security\AuthzToken $authzToken, $airavataCredStoreToken, $gatewayId) + { + $this->send_deletePWDCredential($authzToken, $airavataCredStoreToken, $gatewayId); + return $this->recv_deletePWDCredential(); + } + + public function send_deletePWDCredential(\Airavata\Model\Security\AuthzToken $authzToken, $airavataCredStoreToken, $gatewayId) + { + $args = new \Airavata\API\Airavata_deletePWDCredential_args(); + $args->authzToken = $authzToken; + $args->airavataCredStoreToken = $airavataCredStoreToken; + $args->gatewayId = $gatewayId; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'deletePWDCredential', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('deletePWDCredential', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_deletePWDCredential() + { + $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_deletePWDCredential_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_deletePWDCredential_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->ire !== null) { + throw $result->ire; + } + if ($result->ace !== null) { + throw $result->ace; + } + if ($result->ase !== null) { + throw $result->ase; + } + throw new \Exception("deletePWDCredential failed: unknown result"); + } + public function createProject(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, \Airavata\Model\Workspace\Project $project) { $this->send_createProject($authzToken, $gatewayId, $project); @@ -16865,7 +17102,7 @@ class Airavata_generateAndRegisterSSHKeys_result { } -class Airavata_getSSHPubKey_args { +class Airavata_registerPwdCredential_args { static $_TSPEC; /** @@ -16875,11 +17112,15 @@ class Airavata_getSSHPubKey_args { /** * @var string */ - public $airavataCredStoreToken = null; + public $gatewayId = null; /** * @var string */ - public $gatewayId = null; + public $userName = null; + /** + * @var string + */ + public $password = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -16890,11 +17131,15 @@ 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, + ), + 4 => array( + 'var' => 'password', 'type' => TType::STRING, ), ); @@ -16903,17 +17148,20 @@ 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']; + } + if (isset($vals['password'])) { + $this->password = $vals['password']; + } } } public function getName() { - return 'Airavata_getSSHPubKey_args'; + return 'Airavata_registerPwdCredential_args'; } public function read($input) @@ -16941,14 +17189,21 @@ 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); + } + break; + case 4: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->password); } else { $xfer += $input->skip($ftype); } @@ -16965,7 +17220,7 @@ class Airavata_getSSHPubKey_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getSSHPubKey_args'); + $xfer += $output->writeStructBegin('Airavata_registerPwdCredential_args'); if ($this->authzToken !== null) { if (!is_object($this->authzToken)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -16974,16 +17229,21 @@ 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(); + } + if ($this->password !== null) { + $xfer += $output->writeFieldBegin('password', TType::STRING, 4); + $xfer += $output->writeString($this->password); + $xfer += $output->writeFieldEnd(); + } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -16991,7 +17251,7 @@ class Airavata_getSSHPubKey_args { } -class Airavata_getSSHPubKey_result { +class Airavata_registerPwdCredential_result { static $_TSPEC; /** @@ -17052,7 +17312,7 @@ class Airavata_getSSHPubKey_result { } public function getName() { - return 'Airavata_getSSHPubKey_result'; + return 'Airavata_registerPwdCredential_result'; } public function read($input) @@ -17113,7 +17373,7 @@ class Airavata_getSSHPubKey_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getSSHPubKey_result'); + $xfer += $output->writeStructBegin('Airavata_registerPwdCredential_result'); if ($this->success !== null) { $xfer += $output->writeFieldBegin('success', TType::STRING, 0); $xfer += $output->writeString($this->success); @@ -17141,7 +17401,7 @@ class Airavata_getSSHPubKey_result { } -class Airavata_getAllUserSSHPubKeys_args { +class Airavata_getSSHPubKey_args { static $_TSPEC; /** @@ -17151,7 +17411,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)) { @@ -17162,7 +17426,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, ), ); @@ -17171,14 +17439,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) @@ -17206,7 +17477,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); } @@ -17223,7 +17501,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); @@ -17232,9 +17510,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(); @@ -17244,11 +17527,11 @@ class Airavata_getAllUserSSHPubKeys_args { } -class Airavata_getAllUserSSHPubKeys_result { +class Airavata_getSSHPubKey_result { static $_TSPEC; /** - * @var array + * @var string */ public $success = null; /** @@ -17269,15 +17552,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', @@ -17313,7 +17588,7 @@ class Airavata_getAllUserSSHPubKeys_result { } public function getName() { - return 'Airavata_getAllUserSSHPubKeys_result'; + return 'Airavata_getSSHPubKey_result'; } public function read($input) @@ -17332,21 +17607,8 @@ class Airavata_getAllUserSSHPubKeys_result { switch ($fid) { case 0: - if ($ftype == TType::MAP) { - $this->success = array(); - $_size14 = 0; - $_ktype15 = 0; - $_vtype16 = 0; - $xfer += $input->readMapBegin($_ktype15, $_vtype16, $_size14); - for ($_i18 = 0; $_i18 < $_size14; ++$_i18) - { - $key19 = ''; - $val20 = ''; - $xfer += $input->readString($key19); - $xfer += $input->readString($val20); - $this->success[$key19] = $val20; - } - $xfer += $input->readMapEnd(); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->success); } else { $xfer += $input->skip($ftype); } @@ -17387,23 +17649,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 $kiter21 => $viter22) - { - $xfer += $output->writeString($kiter21); - $xfer += $output->writeString($viter22); - } - } - $output->writeMapEnd(); - } + $xfer += $output->writeFieldBegin('success', TType::STRING, 0); + $xfer += $output->writeString($this->success); $xfer += $output->writeFieldEnd(); } if ($this->ire !== null) { @@ -17428,7 +17677,7 @@ class Airavata_getAllUserSSHPubKeys_result { } -class Airavata_getAllGatewaySSHPubKeys_args { +class Airavata_getAllUserSSHPubKeys_args { static $_TSPEC; /** @@ -17438,7 +17687,7 @@ class Airavata_getAllGatewaySSHPubKeys_args { /** * @var string */ - public $gatewayId = null; + public $userName = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -17449,7 +17698,7 @@ class Airavata_getAllGatewaySSHPubKeys_args { 'class' => '\Airavata\Model\Security\AuthzToken', ), 2 => array( - 'var' => 'gatewayId', + 'var' => 'userName', 'type' => TType::STRING, ), ); @@ -17458,14 +17707,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) @@ -17493,7 +17742,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); } @@ -17510,7 +17759,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); @@ -17519,9 +17768,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(); @@ -17531,7 +17780,7 @@ class Airavata_getAllGatewaySSHPubKeys_args { } -class Airavata_getAllGatewaySSHPubKeys_result { +class Airavata_getAllUserSSHPubKeys_result { static $_TSPEC; /** @@ -17600,7 +17849,7 @@ class Airavata_getAllGatewaySSHPubKeys_result { } public function getName() { - return 'Airavata_getAllGatewaySSHPubKeys_result'; + return 'Airavata_getAllUserSSHPubKeys_result'; } public function read($input) @@ -17621,17 +17870,17 @@ class Airavata_getAllGatewaySSHPubKeys_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size23 = 0; - $_ktype24 = 0; - $_vtype25 = 0; - $xfer += $input->readMapBegin($_ktype24, $_vtype25, $_size23); - for ($_i27 = 0; $_i27 < $_size23; ++$_i27) + $_size14 = 0; + $_ktype15 = 0; + $_vtype16 = 0; + $xfer += $input->readMapBegin($_ktype15, $_vtype16, $_size14); + for ($_i18 = 0; $_i18 < $_size14; ++$_i18) { - $key28 = ''; - $val29 = ''; - $xfer += $input->readString($key28); - $xfer += $input->readString($val29); - $this->success[$key28] = $val29; + $key19 = ''; + $val20 = ''; + $xfer += $input->readString($key19); + $xfer += $input->readString($val20); + $this->success[$key19] = $val20; } $xfer += $input->readMapEnd(); } else { @@ -17674,7 +17923,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); @@ -17683,10 +17932,10 @@ class Airavata_getAllGatewaySSHPubKeys_result { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter30 => $viter31) + foreach ($this->success as $kiter21 => $viter22) { - $xfer += $output->writeString($kiter30); - $xfer += $output->writeString($viter31); + $xfer += $output->writeString($kiter21); + $xfer += $output->writeString($viter22); } } $output->writeMapEnd(); @@ -17715,7 +17964,7 @@ class Airavata_getAllGatewaySSHPubKeys_result { } -class Airavata_deleteSSHPubKey_args { +class Airavata_getAllGatewaySSHPubKeys_args { static $_TSPEC; /** @@ -17725,10 +17974,6 @@ class Airavata_deleteSSHPubKey_args { /** * @var string */ - public $airavataCredStoreToken = null; - /** - * @var string - */ public $gatewayId = null; public function __construct($vals=null) { @@ -17740,10 +17985,6 @@ class Airavata_deleteSSHPubKey_args { 'class' => '\Airavata\Model\Security\AuthzToken', ), 2 => array( - 'var' => 'airavataCredStoreToken', - 'type' => TType::STRING, - ), - 3 => array( 'var' => 'gatewayId', 'type' => TType::STRING, ), @@ -17753,9 +17994,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']; } @@ -17763,7 +18001,7 @@ class Airavata_deleteSSHPubKey_args { } public function getName() { - return 'Airavata_deleteSSHPubKey_args'; + return 'Airavata_getAllGatewaySSHPubKeys_args'; } public function read($input) @@ -17791,13 +18029,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); @@ -17815,7 +18046,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); @@ -17824,13 +18055,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(); } @@ -17841,11 +18067,11 @@ class Airavata_deleteSSHPubKey_args { } -class Airavata_deleteSSHPubKey_result { +class Airavata_getAllGatewaySSHPubKeys_result { static $_TSPEC; /** - * @var bool + * @var array */ public $success = null; /** @@ -17866,7 +18092,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', @@ -17902,7 +18136,7 @@ class Airavata_deleteSSHPubKey_result { } public function getName() { - return 'Airavata_deleteSSHPubKey_result'; + return 'Airavata_getAllGatewaySSHPubKeys_result'; } public function read($input) @@ -17921,8 +18155,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(); + $_size23 = 0; + $_ktype24 = 0; + $_vtype25 = 0; + $xfer += $input->readMapBegin($_ktype24, $_vtype25, $_size23); + for ($_i27 = 0; $_i27 < $_size23; ++$_i27) + { + $key28 = ''; + $val29 = ''; + $xfer += $input->readString($key28); + $xfer += $input->readString($val29); + $this->success[$key28] = $val29; + } + $xfer += $input->readMapEnd(); } else { $xfer += $input->skip($ftype); } @@ -17963,10 +18210,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 $kiter30 => $viter31) + { + $xfer += $output->writeString($kiter30); + $xfer += $output->writeString($viter31); + } + } + $output->writeMapEnd(); + } $xfer += $output->writeFieldEnd(); } if ($this->ire !== null) { @@ -17991,7 +18251,7 @@ class Airavata_deleteSSHPubKey_result { } -class Airavata_createProject_args { +class Airavata_getAllGatewayPWDCredentials_args { static $_TSPEC; /** @@ -18002,10 +18262,6 @@ class Airavata_createProject_args { * @var string */ public $gatewayId = null; - /** - * @var \Airavata\Model\Workspace\Project - */ - public $project = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -18019,11 +18275,6 @@ class Airavata_createProject_args { 'var' => 'gatewayId', 'type' => TType::STRING, ), - 3 => array( - 'var' => 'project', - 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Workspace\Project', - ), ); } if (is_array($vals)) { @@ -18033,14 +18284,11 @@ class Airavata_createProject_args { 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_getAllGatewayPWDCredentials_args'; } public function read($input) @@ -18073,14 +18321,6 @@ class Airavata_createProject_args { $xfer += $input->skip($ftype); } break; - case 3: - if ($ftype == TType::STRUCT) { - $this->project = new \Airavata\Model\Workspace\Project(); - $xfer += $this->project->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; default: $xfer += $input->skip($ftype); break; @@ -18093,7 +18333,7 @@ class Airavata_createProject_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_createProject_args'); + $xfer += $output->writeStructBegin('Airavata_getAllGatewayPWDCredentials_args'); if ($this->authzToken !== null) { if (!is_object($this->authzToken)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -18107,14 +18347,6 @@ class Airavata_createProject_args { $xfer += $output->writeString($this->gatewayId); $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); - $xfer += $output->writeFieldEnd(); - } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -18122,11 +18354,11 @@ class Airavata_createProject_args { } -class Airavata_createProject_result { +class Airavata_getAllGatewayPWDCredentials_result { static $_TSPEC; /** - * @var string + * @var array */ public $success = null; /** @@ -18141,17 +18373,21 @@ 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::MAP, + 'ktype' => TType::STRING, + 'vtype' => TType::STRING, + 'key' => array( + 'type' => TType::STRING, + ), + 'val' => array( + 'type' => TType::STRING, + ), ), 1 => array( 'var' => 'ire', @@ -18168,11 +18404,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)) { @@ -18188,14 +18419,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_getAllGatewayPWDCredentials_result'; } public function read($input) @@ -18214,8 +18442,21 @@ class Airavata_createProject_result { switch ($fid) { case 0: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->success); + if ($ftype == TType::MAP) { + $this->success = array(); + $_size32 = 0; + $_ktype33 = 0; + $_vtype34 = 0; + $xfer += $input->readMapBegin($_ktype33, $_vtype34, $_size32); + for ($_i36 = 0; $_i36 < $_size32; ++$_i36) + { + $key37 = ''; + $val38 = ''; + $xfer += $input->readString($key37); + $xfer += $input->readString($val38); + $this->success[$key37] = $val38; + } + $xfer += $input->readMapEnd(); } else { $xfer += $input->skip($ftype); } @@ -18244,14 +18485,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; @@ -18264,10 +18497,23 @@ class Airavata_createProject_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_createProject_result'); + $xfer += $output->writeStructBegin('Airavata_getAllGatewayPWDCredentials_result'); if ($this->success !== null) { - $xfer += $output->writeFieldBegin('success', TType::STRING, 0); - $xfer += $output->writeString($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 $kiter39 => $viter40) + { + $xfer += $output->writeString($kiter39); + $xfer += $output->writeString($viter40); + } + } + $output->writeMapEnd(); + } $xfer += $output->writeFieldEnd(); } if ($this->ire !== null) { @@ -18285,11 +18531,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; @@ -18297,7 +18538,7 @@ class Airavata_createProject_result { } -class Airavata_updateProject_args { +class Airavata_deleteSSHPubKey_args { static $_TSPEC; /** @@ -18307,11 +18548,11 @@ class Airavata_updateProject_args { /** * @var string */ - public $projectId = null; + public $airavataCredStoreToken = null; /** - * @var \Airavata\Model\Workspace\Project + * @var string */ - public $updatedProject = null; + public $gatewayId = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -18322,13 +18563,12 @@ class Airavata_updateProject_args { 'class' => '\Airavata\Model\Security\AuthzToken', ), 2 => array( - 'var' => 'projectId', + 'var' => 'airavataCredStoreToken', 'type' => TType::STRING, ), 3 => array( - 'var' => 'updatedProject', - 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Workspace\Project', + 'var' => 'gatewayId', + 'type' => TType::STRING, ), ); } @@ -18336,17 +18576,17 @@ class Airavata_updateProject_args { if (isset($vals['authzToken'])) { $this->authzToken = $vals['authzToken']; } - if (isset($vals['projectId'])) { - $this->projectId = $vals['projectId']; + if (isset($vals['airavataCredStoreToken'])) { + $this->airavataCredStoreToken = $vals['airavataCredStoreToken']; } - if (isset($vals['updatedProject'])) { - $this->updatedProject = $vals['updatedProject']; + if (isset($vals['gatewayId'])) { + $this->gatewayId = $vals['gatewayId']; } } } public function getName() { - return 'Airavata_updateProject_args'; + return 'Airavata_deleteSSHPubKey_args'; } public function read($input) @@ -18374,15 +18614,14 @@ class Airavata_updateProject_args { break; case 2: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->projectId); + $xfer += $input->readString($this->airavataCredStoreToken); } else { $xfer += $input->skip($ftype); } break; case 3: - if ($ftype == TType::STRUCT) { - $this->updatedProject = new \Airavata\Model\Workspace\Project(); - $xfer += $this->updatedProject->read($input); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->gatewayId); } else { $xfer += $input->skip($ftype); } @@ -18399,7 +18638,7 @@ class Airavata_updateProject_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_updateProject_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); @@ -18408,17 +18647,14 @@ 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->airavataCredStoreToken !== null) { + $xfer += $output->writeFieldBegin('airavataCredStoreToken', TType::STRING, 2); + $xfer += $output->writeString($this->airavataCredStoreToken); $xfer += $output->writeFieldEnd(); } - if ($this->updatedProject !== null) { - if (!is_object($this->updatedProject)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('updatedProject', TType::STRUCT, 3); - $xfer += $this->updatedProject->write($output); + if ($this->gatewayId !== null) { + $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 3); + $xfer += $output->writeString($this->gatewayId); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -18428,10 +18664,14 @@ class Airavata_updateProject_args { } -class Airavata_updateProject_result { +class Airavata_deleteSSHPubKey_result { static $_TSPEC; /** + * @var bool + */ + public $success = null; + /** * @var \Airavata\API\Error\InvalidRequestException */ public $ire = null; @@ -18443,18 +18683,14 @@ class Airavata_updateProject_result { * @var \Airavata\API\Error\AiravataSystemException */ public $ase = null; - /** - * @var \Airavata\API\Error\ProjectNotFoundException - */ - public $pnfe = 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::BOOL, + ), 1 => array( 'var' => 'ire', 'type' => TType::STRUCT, @@ -18470,19 +18706,12 @@ class Airavata_updateProject_result { 'type' => TType::STRUCT, 'class' => '\Airavata\API\Error\AiravataSystemException', ), - 4 => array( - 'var' => 'pnfe', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\ProjectNotFoundException', - ), - 5 => array( - 'var' => 'ae', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AuthorizationException', - ), ); } if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } if (isset($vals['ire'])) { $this->ire = $vals['ire']; } @@ -18492,17 +18721,11 @@ class Airavata_updateProject_result { if (isset($vals['ase'])) { $this->ase = $vals['ase']; } - if (isset($vals['pnfe'])) { - $this->pnfe = $vals['pnfe']; - } - if (isset($vals['ae'])) { - $this->ae = $vals['ae']; - } } } public function getName() { - return 'Airavata_updateProject_result'; + return 'Airavata_deleteSSHPubKey_result'; } public function read($input) @@ -18520,6 +18743,13 @@ class Airavata_updateProject_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(); @@ -18544,22 +18774,6 @@ class Airavata_updateProject_result { $xfer += $input->skip($ftype); } break; - case 4: - if ($ftype == TType::STRUCT) { - $this->pnfe = new \Airavata\API\Error\ProjectNotFoundException(); - $xfer += $this->pnfe->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 5: - 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; @@ -18572,7 +18786,12 @@ class Airavata_updateProject_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_updateProject_result'); + $xfer += $output->writeStructBegin('Airavata_deleteSSHPubKey_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); @@ -18588,16 +18807,6 @@ class Airavata_updateProject_result { $xfer += $this->ase->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->pnfe !== null) { - $xfer += $output->writeFieldBegin('pnfe', TType::STRUCT, 4); - $xfer += $this->pnfe->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->ae !== null) { - $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 5); - $xfer += $this->ae->write($output); - $xfer += $output->writeFieldEnd(); - } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -18605,7 +18814,7 @@ class Airavata_updateProject_result { } -class Airavata_getProject_args { +class Airavata_deletePWDCredential_args { static $_TSPEC; /** @@ -18615,7 +18824,11 @@ class Airavata_getProject_args { /** * @var string */ - public $projectId = null; + public $airavataCredStoreToken = null; + /** + * @var string + */ + public $gatewayId = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -18626,7 +18839,11 @@ class Airavata_getProject_args { 'class' => '\Airavata\Model\Security\AuthzToken', ), 2 => array( - 'var' => 'projectId', + 'var' => 'airavataCredStoreToken', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'gatewayId', 'type' => TType::STRING, ), ); @@ -18635,14 +18852,17 @@ class Airavata_getProject_args { if (isset($vals['authzToken'])) { $this->authzToken = $vals['authzToken']; } - if (isset($vals['projectId'])) { - $this->projectId = $vals['projectId']; + if (isset($vals['airavataCredStoreToken'])) { + $this->airavataCredStoreToken = $vals['airavataCredStoreToken']; + } + if (isset($vals['gatewayId'])) { + $this->gatewayId = $vals['gatewayId']; } } } public function getName() { - return 'Airavata_getProject_args'; + return 'Airavata_deletePWDCredential_args'; } public function read($input) @@ -18670,7 +18890,14 @@ class Airavata_getProject_args { break; case 2: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->projectId); + $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); } @@ -18687,7 +18914,7 @@ class Airavata_getProject_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getProject_args'); + $xfer += $output->writeStructBegin('Airavata_deletePWDCredential_args'); if ($this->authzToken !== null) { if (!is_object($this->authzToken)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -18696,9 +18923,14 @@ class Airavata_getProject_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->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(); @@ -18708,11 +18940,11 @@ class Airavata_getProject_args { } -class Airavata_getProject_result { +class Airavata_deletePWDCredential_result { static $_TSPEC; /** - * @var \Airavata\Model\Workspace\Project + * @var bool */ public $success = null; /** @@ -18727,22 +18959,13 @@ class Airavata_getProject_result { * @var \Airavata\API\Error\AiravataSystemException */ public $ase = null; - /** - * @var \Airavata\API\Error\ProjectNotFoundException - */ - public $pnfe = 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::STRUCT, - 'class' => '\Airavata\Model\Workspace\Project', + 'type' => TType::BOOL, ), 1 => array( 'var' => 'ire', @@ -18759,16 +18982,6 @@ class Airavata_getProject_result { 'type' => TType::STRUCT, 'class' => '\Airavata\API\Error\AiravataSystemException', ), - 4 => array( - 'var' => 'pnfe', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\ProjectNotFoundException', - ), - 5 => array( - 'var' => 'ae', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AuthorizationException', - ), ); } if (is_array($vals)) { @@ -18784,17 +18997,11 @@ class Airavata_getProject_result { if (isset($vals['ase'])) { $this->ase = $vals['ase']; } - if (isset($vals['pnfe'])) { - $this->pnfe = $vals['pnfe']; - } - if (isset($vals['ae'])) { - $this->ae = $vals['ae']; - } } } public function getName() { - return 'Airavata_getProject_result'; + return 'Airavata_deletePWDCredential_result'; } public function read($input) @@ -18813,9 +19020,8 @@ class Airavata_getProject_result { switch ($fid) { case 0: - if ($ftype == TType::STRUCT) { - $this->success = new \Airavata\Model\Workspace\Project(); - $xfer += $this->success->read($input); + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->success); } else { $xfer += $input->skip($ftype); } @@ -18844,22 +19050,6 @@ class Airavata_getProject_result { $xfer += $input->skip($ftype); } break; - case 4: - if ($ftype == TType::STRUCT) { - $this->pnfe = new \Airavata\API\Error\ProjectNotFoundException(); - $xfer += $this->pnfe->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 5: - 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; @@ -18872,13 +19062,10 @@ class Airavata_getProject_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getProject_result'); + $xfer += $output->writeStructBegin('Airavata_deletePWDCredential_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->writeFieldBegin('success', TType::BOOL, 0); + $xfer += $output->writeBool($this->success); $xfer += $output->writeFieldEnd(); } if ($this->ire !== null) { @@ -18896,16 +19083,6 @@ class Airavata_getProject_result { $xfer += $this->ase->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->pnfe !== null) { - $xfer += $output->writeFieldBegin('pnfe', TType::STRUCT, 4); - $xfer += $this->pnfe->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->ae !== null) { - $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 5); - $xfer += $this->ae->write($output); - $xfer += $output->writeFieldEnd(); - } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -18913,7 +19090,7 @@ class Airavata_getProject_result { } -class Airavata_deleteProject_args { +class Airavata_createProject_args { static $_TSPEC; /** @@ -18923,7 +19100,11 @@ class Airavata_deleteProject_args { /** * @var string */ - public $projectId = null; + public $gatewayId = null; + /** + * @var \Airavata\Model\Workspace\Project + */ + public $project = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -18934,23 +19115,31 @@ class Airavata_deleteProject_args { 'class' => '\Airavata\Model\Security\AuthzToken', ), 2 => array( - 'var' => 'projectId', + 'var' => 'gatewayId', 'type' => TType::STRING, ), + 3 => array( + 'var' => 'project', + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Workspace\Project', + ), ); } if (is_array($vals)) { 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['project'])) { + $this->project = $vals['project']; } } } public function getName() { - return 'Airavata_deleteProject_args'; + return 'Airavata_createProject_args'; } public function read($input) @@ -18978,7 +19167,15 @@ class Airavata_deleteProject_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->project = new \Airavata\Model\Workspace\Project(); + $xfer += $this->project->read($input); } else { $xfer += $input->skip($ftype); } @@ -18995,7 +19192,7 @@ class Airavata_deleteProject_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_deleteProject_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); @@ -19004,9 +19201,17 @@ class Airavata_deleteProject_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->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); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -19016,11 +19221,11 @@ class Airavata_deleteProject_args { } -class Airavata_deleteProject_result { +class Airavata_createProject_result { static $_TSPEC; /** - * @var bool + * @var string */ public $success = null; /** @@ -19036,10 +19241,6 @@ class Airavata_deleteProject_result { */ public $ase = null; /** - * @var \Airavata\API\Error\ProjectNotFoundException - */ - public $pnfe = null; - /** * @var \Airavata\API\Error\AuthorizationException */ public $ae = null; @@ -19049,7 +19250,7 @@ class Airavata_deleteProject_result { self::$_TSPEC = array( 0 => array( 'var' => 'success', - 'type' => TType::BOOL, + 'type' => TType::STRING, ), 1 => array( 'var' => 'ire', @@ -19067,11 +19268,6 @@ class Airavata_deleteProject_result { 'class' => '\Airavata\API\Error\AiravataSystemException', ), 4 => array( - 'var' => 'pnfe', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\ProjectNotFoundException', - ), - 5 => array( 'var' => 'ae', 'type' => TType::STRUCT, 'class' => '\Airavata\API\Error\AuthorizationException', @@ -19091,9 +19287,6 @@ class Airavata_deleteProject_result { if (isset($vals['ase'])) { $this->ase = $vals['ase']; } - if (isset($vals['pnfe'])) { - $this->pnfe = $vals['pnfe']; - } if (isset($vals['ae'])) { $this->ae = $vals['ae']; } @@ -19101,7 +19294,7 @@ class Airavata_deleteProject_result { } public function getName() { - return 'Airavata_deleteProject_result'; + return 'Airavata_createProject_result'; } public function read($input) @@ -19120,8 +19313,8 @@ class Airavata_deleteProject_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); } @@ -19152,14 +19345,6 @@ class Airavata_deleteProject_result { break; case 4: if ($ftype == TType::STRUCT) { - $this->pnfe = new \Airavata\API\Error\ProjectNotFoundException(); - $xfer += $this->pnfe->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - case 5: - if ($ftype == TType::STRUCT) { $this->ae = new \Airavata\API\Error\AuthorizationException(); $xfer += $this->ae->read($input); } else { @@ -19178,10 +19363,10 @@ class Airavata_deleteProject_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_deleteProject_result'); + $xfer += $output->writeStructBegin('Airavata_createProject_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) { @@ -19199,13 +19384,8 @@ class Airavata_deleteProject_result { $xfer += $this->ase->write($output); $xfer += $output->writeFieldEnd(); } - if ($this->pnfe !== null) { - $xfer += $output->writeFieldBegin('pnfe', TType::STRUCT, 4); - $xfer += $this->pnfe->write($output); - $xfer += $output->writeFieldEnd(); - } if ($this->ae !== null) { - $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 5); + $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 4); $xfer += $this->ae->write($output); $xfer += $output->writeFieldEnd(); } @@ -19216,7 +19396,7 @@ class Airavata_deleteProject_result { } -class Airavata_getUserProjects_args { +class Airavata_updateProject_args { static $_TSPEC; /** @@ -19226,19 +19406,11 @@ class Airavata_getUserProjects_args { /** * @var string */ - public $gatewayId = null; - /** - * @var string - */ - public $userName = null; - /** - * @var int - */ - public $limit = null; + public $projectId = null; /** - * @var int + * @var \Airavata\Model\Workspace\Project */ - public $offset = null; + public $updatedProject = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -19249,20 +19421,13 @@ class Airavata_getUserProjects_args { 'class' => '\Airavata\Model\Security\AuthzToken', ), 2 => array( - 'var' => 'gatewayId', + 'var' => 'projectId', 'type' => TType::STRING, ), 3 => array( - 'var' => 'userName', - 'type' => TType::STRING, - ), - 4 => array( - 'var' => 'limit', - 'type' => TType::I32, - ), - 5 => array( - 'var' => 'offset', - 'type' => TType::I32, + 'var' => 'updatedProject', + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Workspace\Project', ), ); } @@ -19270,23 +19435,17 @@ class Airavata_getUserProjects_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']; - } - if (isset($vals['limit'])) { - $this->limit = $vals['limit']; + if (isset($vals['projectId'])) { + $this->projectId = $vals['projectId']; } - if (isset($vals['offset'])) { - $this->offset = $vals['offset']; + if (isset($vals['updatedProject'])) { + $this->updatedProject = $vals['updatedProject']; } } } public function getName() { - return 'Airavata_getUserProjects_args'; + return 'Airavata_updateProject_args'; } public function read($input) @@ -19314,28 +19473,15 @@ class Airavata_getUserProjects_args { break; case 2: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->gatewayId); + $xfer += $input->readString($this->projectId); } else { $xfer += $input->skip($ftype); } break; case 3: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->userName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 4: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->limit); - } else { - $xfer += $input->skip($ftype); - } - break; - case 5: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->offset); + if ($ftype == TType::STRUCT) { + $this->updatedProject = new \Airavata\Model\Workspace\Project(); + $xfer += $this->updatedProject->read($input); } else { $xfer += $input->skip($ftype); } @@ -19352,7 +19498,7 @@ class Airavata_getUserProjects_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getUserProjects_args'); + $xfer += $output->writeStructBegin('Airavata_updateProject_args'); if ($this->authzToken !== null) { if (!is_object($this->authzToken)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -19361,24 +19507,17 @@ class Airavata_getUserProjects_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(); - } - if ($this->limit !== null) { - $xfer += $output->writeFieldBegin('limit', TType::I32, 4); - $xfer += $output->writeI32($this->limit); + if ($this->projectId !== null) { + $xfer += $output->writeFieldBegin('projectId', TType::STRING, 2); + $xfer += $output->writeString($this->projectId); $xfer += $output->writeFieldEnd(); } - if ($this->offset !== null) { - $xfer += $output->writeFieldBegin('offset', TType::I32, 5); - $xfer += $output->writeI32($this->offset); + if ($this->updatedProject !== null) { + if (!is_object($this->updatedProject)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('updatedProject', TType::STRUCT, 3); + $xfer += $this->updatedProject->write($output); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -19388,14 +19527,10 @@ class Airavata_getUserProjects_args { } -class Airavata_getUserProjects_result { +class Airavata_updateProject_result { static $_TSPEC; /** - * @var \Airavata\Model\Workspace\Project[] - */ - public $success = null; - /** * @var \Airavata\API\Error\InvalidRequestException */ public $ire = null; @@ -19408,6 +19543,10 @@ class Airavata_getUserProjects_result { */ public $ase = null; /** + * @var \Airavata\API\Error\ProjectNotFoundException + */ + public $pnfe = null; + /** * @var \Airavata\API\Error\AuthorizationException */ public $ae = null; @@ -19415,15 +19554,6 @@ class Airavata_getUserProjects_result { public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( - 0 => array( - 'var' => 'success', - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Workspace\Project', - ), - ), 1 => array( 'var' => 'ire', 'type' => TType::STRUCT, @@ -19440,6 +19570,11 @@ class Airavata_getUserProjects_result { 'class' => '\Airavata\API\Error\AiravataSystemException', ), 4 => array( + 'var' => 'pnfe', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\ProjectNotFoundException', + ), + 5 => array( 'var' => 'ae', 'type' => TType::STRUCT, 'class' => '\Airavata\API\Error\AuthorizationException', @@ -19447,9 +19582,6 @@ class Airavata_getUserProjects_result { ); } if (is_array($vals)) { - if (isset($vals['success'])) { - $this->success = $vals['success']; - } if (isset($vals['ire'])) { $this->ire = $vals['ire']; } @@ -19459,6 +19591,9 @@ class Airavata_getUserProjects_result { if (isset($vals['ase'])) { $this->ase = $vals['ase']; } + if (isset($vals['pnfe'])) { + $this->pnfe = $vals['pnfe']; + } if (isset($vals['ae'])) { $this->ae = $vals['ae']; } @@ -19466,7 +19601,7 @@ class Airavata_getUserProjects_result { } public function getName() { - return 'Airavata_getUserProjects_result'; + return 'Airavata_updateProject_result'; } public function read($input) @@ -19484,24 +19619,6 @@ class Airavata_getUserProjects_result { } switch ($fid) { - case 0: - if ($ftype == TType::LST) { - $this->success = array(); - $_size32 = 0; - $_etype35 = 0; - $xfer += $input->readListBegin($_etype35, $_size32); - for ($_i36 = 0; $_i36 < $_size32; ++$_i36) - { - $elem37 = null; - $elem37 = new \Airavata\Model\Workspace\Project(); - $xfer += $elem37->read($input); - $this->success []= $elem37; - } - $xfer += $input->readListEnd(); - } else { - $xfer += $input->skip($ftype); - } - break; case 1: if ($ftype == TType::STRUCT) { $this->ire = new \Airavata\API\Error\InvalidRequestException(); @@ -19528,6 +19645,14 @@ class Airavata_getUserProjects_result { break; case 4: if ($ftype == TType::STRUCT) { + $this->pnfe = new \Airavata\API\Error\ProjectNotFoundException(); + $xfer += $this->pnfe->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::STRUCT) { $this->ae = new \Airavata\API\Error\AuthorizationException(); $xfer += $this->ae->read($input); } else { @@ -19546,24 +19671,7 @@ class Airavata_getUserProjects_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_getUserProjects_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 $iter38) - { - $xfer += $iter38->write($output); - } - } - $output->writeListEnd(); - } - $xfer += $output->writeFieldEnd(); - } + $xfer += $output->writeStructBegin('Airavata_updateProject_result'); if ($this->ire !== null) { $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1); $xfer += $this->ire->write($output); @@ -19579,8 +19687,13 @@ class Airavata_getUserProjects_result { $xfer += $this->ase->write($output); $xfer += $output->writeFieldEnd(); } + if ($this->pnfe !== null) { + $xfer += $output->writeFieldBegin('pnfe', TType::STRUCT, 4); + $xfer += $this->pnfe->write($output); + $xfer += $output->writeFieldEnd(); + } if ($this->ae !== null) { - $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 4); + $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 5); $xfer += $this->ae->write($output); $xfer += $output->writeFieldEnd(); } @@ -19591,7 +19704,7 @@ class Airavata_getUserProjects_result { } -class Airavata_searchProjectsByProjectName_args { +class Airavata_getProject_args { static $_TSPEC; /** @@ -19601,23 +19714,7 @@ class Airavata_searchProjectsByProjectName_args { /** * @var string */ - public $gatewayId = null; - /** - * @var string - */ - public $userName = null; - /** - * @var string - */ - public $projectName = null; - /** - * @var int - */ - public $limit = null; - /** - * @var int - */ - public $offset = null; + public $projectId = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -19628,51 +19725,23 @@ class Airavata_searchProjectsByProjectName_args { 'class' => '\Airavata\Model\Security\AuthzToken', ), 2 => array( - 'var' => 'gatewayId', - 'type' => TType::STRING, - ), - 3 => array( - 'var' => 'userName', - 'type' => TType::STRING, - ), - 4 => array( - 'var' => 'projectName', + 'var' => 'projectId', 'type' => TType::STRING, ), - 5 => array( - 'var' => 'limit', - 'type' => TType::I32, - ), - 6 => array( - 'var' => 'offset', - 'type' => TType::I32, - ), ); } 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']; - } - if (isset($vals['projectName'])) { - $this->projectName = $vals['projectName']; - } - if (isset($vals['limit'])) { - $this->limit = $vals['limit']; - } - if (isset($vals['offset'])) { - $this->offset = $vals['offset']; + if (isset($vals['projectId'])) { + $this->projectId = $vals['projectId']; } } } public function getName() { - return 'Airavata_searchProjectsByProjectName_args'; + return 'Airavata_getProject_args'; } public function read($input) @@ -19700,35 +19769,7 @@ class Airavata_searchProjectsByProjectName_args { 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; - case 4: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->projectName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 5: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->limit); - } else { - $xfer += $input->skip($ftype); - } - break; - case 6: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->offset); + $xfer += $input->readString($this->projectId); } else { $xfer += $input->skip($ftype); } @@ -19745,7 +19786,7 @@ class Airavata_searchProjectsByProjectName_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectName_args'); + $xfer += $output->writeStructBegin('Airavata_getProject_args'); if ($this->authzToken !== null) { if (!is_object($this->authzToken)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -19754,29 +19795,9 @@ class Airavata_searchProjectsByProjectName_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(); - } - if ($this->projectName !== null) { - $xfer += $output->writeFieldBegin('projectName', TType::STRING, 4); - $xfer += $output->writeString($this->projectName); - $xfer += $output->writeFieldEnd(); - } - if ($this->limit !== null) { - $xfer += $output->writeFieldBegin('limit', TType::I32, 5); - $xfer += $output->writeI32($this->limit); - $xfer += $output->writeFieldEnd(); - } - if ($this->offset !== null) { - $xfer += $output->writeFieldBegin('offset', TType::I32, 6); - $xfer += $output->writeI32($this->offset); + if ($this->projectId !== null) { + $xfer += $output->writeFieldBegin('projectId', TType::STRING, 2); + $xfer += $output->writeString($this->projectId); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -19786,11 +19807,11 @@ class Airavata_searchProjectsByProjectName_args { } -class Airavata_searchProjectsByProjectName_result { +class Airavata_getProject_result { static $_TSPEC; /** - * @var \Airavata\Model\Workspace\Project[] + * @var \Airavata\Model\Workspace\Project */ public $success = null; /** @@ -19806,6 +19827,10 @@ class Airavata_searchProjectsByProjectName_result { */ public $ase = null; /** + * @var \Airavata\API\Error\ProjectNotFoundException + */ + public $pnfe = null; + /** * @var \Airavata\API\Error\AuthorizationException */ public $ae = null; @@ -19815,12 +19840,8 @@ class Airavata_searchProjectsByProjectName_result { self::$_TSPEC = array( 0 => array( 'var' => 'success', - 'type' => TType::LST, - 'etype' => TType::STRUCT, - 'elem' => array( - 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Workspace\Project', - ), + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Workspace\Project', ), 1 => array( 'var' => 'ire', @@ -19838,6 +19859,11 @@ class Airavata_searchProjectsByProjectName_result { 'class' => '\Airavata\API\Error\AiravataSystemException', ), 4 => array( + 'var' => 'pnfe', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\ProjectNotFoundException', + ), + 5 => array( 'var' => 'ae', 'type' => TType::STRUCT, 'class' => '\Airavata\API\Error\AuthorizationException', @@ -19857,6 +19883,9 @@ class Airavata_searchProjectsByProjectName_result { if (isset($vals['ase'])) { $this->ase = $vals['ase']; } + if (isset($vals['pnfe'])) { + $this->pnfe = $vals['pnfe']; + } if (isset($vals['ae'])) { $this->ae = $vals['ae']; } @@ -19864,7 +19893,7 @@ class Airavata_searchProjectsByProjectName_result { } public function getName() { - return 'Airavata_searchProjectsByProjectName_result'; + return 'Airavata_getProject_result'; } public function read($input) @@ -19883,19 +19912,9 @@ class Airavata_searchProjectsByProjectName_result { switch ($fid) { case 0: - if ($ftype == TType::LST) { - $this->success = array(); - $_size39 = 0; - $_etype42 = 0; - $xfer += $input->readListBegin($_etype42, $_size39); - for ($_i43 = 0; $_i43 < $_size39; ++$_i43) - { - $elem44 = null; - $elem44 = new \Airavata\Model\Workspace\Project(); - $xfer += $elem44->read($input); - $this->success []= $elem44; - } - $xfer += $input->readListEnd(); + if ($ftype == TType::STRUCT) { + $this->success = new \Airavata\Model\Workspace\Project(); + $xfer += $this->success->read($input); } else { $xfer += $input->skip($ftype); } @@ -19926,6 +19945,14 @@ class Airavata_searchProjectsByProjectName_result { break; case 4: if ($ftype == TType::STRUCT) { + $this->pnfe = new \Airavata\API\Error\ProjectNotFoundException(); + $xfer += $this->pnfe->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::STRUCT) { $this->ae = new \Airavata\API\Error\AuthorizationException(); $xfer += $this->ae->read($input); } else { @@ -19944,22 +19971,13 @@ class Airavata_searchProjectsByProjectName_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectName_result'); + $xfer += $output->writeStructBegin('Airavata_getProject_result'); if ($this->success !== null) { - if (!is_array($this->success)) { + if (!is_object($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 $iter45) - { - $xfer += $iter45->write($output); - } - } - $output->writeListEnd(); - } + $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0); + $xfer += $this->success->write($output); $xfer += $output->writeFieldEnd(); } if ($this->ire !== null) { @@ -19977,8 +19995,13 @@ class Airavata_searchProjectsByProjectName_result { $xfer += $this->ase->write($output); $xfer += $output->writeFieldEnd(); } + if ($this->pnfe !== null) { + $xfer += $output->writeFieldBegin('pnfe', TType::STRUCT, 4); + $xfer += $this->pnfe->write($output); + $xfer += $output->writeFieldEnd(); + } if ($this->ae !== null) { - $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 4); + $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 5); $xfer += $this->ae->write($output); $xfer += $output->writeFieldEnd(); } @@ -19989,7 +20012,7 @@ class Airavata_searchProjectsByProjectName_result { } -class Airavata_searchProjectsByProjectDesc_args { +class Airavata_deleteProject_args { static $_TSPEC; /** @@ -19999,23 +20022,7 @@ class Airavata_searchProjectsByProjectDesc_args { /** * @var string */ - public $gatewayId = null; - /** - * @var string - */ - public $userName = null; - /** - * @var string - */ - public $description = null; - /** - * @var int - */ - public $limit = null; - /** - * @var int - */ - public $offset = null; + public $projectId = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -20026,51 +20033,23 @@ class Airavata_searchProjectsByProjectDesc_args { 'class' => '\Airavata\Model\Security\AuthzToken', ), 2 => array( - 'var' => 'gatewayId', - 'type' => TType::STRING, - ), - 3 => array( - 'var' => 'userName', - 'type' => TType::STRING, - ), - 4 => array( - 'var' => 'description', + 'var' => 'projectId', 'type' => TType::STRING, ), - 5 => array( - 'var' => 'limit', - 'type' => TType::I32, - ), - 6 => array( - 'var' => 'offset', - 'type' => TType::I32, - ), );