Repository: airavata-php-gateway Updated Branches: refs/heads/master 0f017de58 -> 3deb14dd1
updating libraries Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/3deb14dd Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/3deb14dd Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/3deb14dd Branch: refs/heads/master Commit: 3deb14dd14d73a6ffc6431ce5676f8f56baa8662 Parents: 0f017de Author: Chathuri Wimalasena <[email protected]> Authored: Wed Nov 25 14:58:48 2015 -0500 Committer: Chathuri Wimalasena <[email protected]> Committed: Wed Nov 25 14:58:48 2015 -0500 ---------------------------------------------------------------------- .../Model/AppCatalog/GatewayProfile/Types.php | 37 ++++---------------- 1 file changed, 7 insertions(+), 30 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/3deb14dd/app/libraries/Airavata/Model/AppCatalog/GatewayProfile/Types.php ---------------------------------------------------------------------- diff --git a/app/libraries/Airavata/Model/AppCatalog/GatewayProfile/Types.php b/app/libraries/Airavata/Model/AppCatalog/GatewayProfile/Types.php index 098ec1e..f63f2f0 100644 --- a/app/libraries/Airavata/Model/AppCatalog/GatewayProfile/Types.php +++ b/app/libraries/Airavata/Model/AppCatalog/GatewayProfile/Types.php @@ -477,10 +477,6 @@ class GatewayResourceProfile { /** * @var string */ - public $dataStorageHostName = null; - /** - * @var string - */ public $credentialStoreToken = null; /** * @var \Airavata\Model\AppCatalog\GatewayProfile\ComputeResourcePreference[] @@ -499,14 +495,10 @@ class GatewayResourceProfile { 'type' => TType::STRING, ), 2 => array( - 'var' => 'dataStorageHostName', - 'type' => TType::STRING, - ), - 3 => array( 'var' => 'credentialStoreToken', 'type' => TType::STRING, ), - 4 => array( + 3 => array( 'var' => 'computeResourcePreferences', 'type' => TType::LST, 'etype' => TType::STRUCT, @@ -515,7 +507,7 @@ class GatewayResourceProfile { 'class' => '\Airavata\Model\AppCatalog\GatewayProfile\ComputeResourcePreference', ), ), - 5 => array( + 4 => array( 'var' => 'dataStoragePreferences', 'type' => TType::LST, 'etype' => TType::STRUCT, @@ -530,9 +522,6 @@ class GatewayResourceProfile { if (isset($vals['gatewayID'])) { $this->gatewayID = $vals['gatewayID']; } - if (isset($vals['dataStorageHostName'])) { - $this->dataStorageHostName = $vals['dataStorageHostName']; - } if (isset($vals['credentialStoreToken'])) { $this->credentialStoreToken = $vals['credentialStoreToken']; } @@ -573,19 +562,12 @@ class GatewayResourceProfile { break; case 2: if ($ftype == TType::STRING) { - $xfer += $input->readString($this->dataStorageHostName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 3: - if ($ftype == TType::STRING) { $xfer += $input->readString($this->credentialStoreToken); } else { $xfer += $input->skip($ftype); } break; - case 4: + case 3: if ($ftype == TType::LST) { $this->computeResourcePreferences = array(); $_size0 = 0; @@ -603,7 +585,7 @@ class GatewayResourceProfile { $xfer += $input->skip($ftype); } break; - case 5: + case 4: if ($ftype == TType::LST) { $this->dataStoragePreferences = array(); $_size6 = 0; @@ -639,13 +621,8 @@ class GatewayResourceProfile { $xfer += $output->writeString($this->gatewayID); $xfer += $output->writeFieldEnd(); } - if ($this->dataStorageHostName !== null) { - $xfer += $output->writeFieldBegin('dataStorageHostName', TType::STRING, 2); - $xfer += $output->writeString($this->dataStorageHostName); - $xfer += $output->writeFieldEnd(); - } if ($this->credentialStoreToken !== null) { - $xfer += $output->writeFieldBegin('credentialStoreToken', TType::STRING, 3); + $xfer += $output->writeFieldBegin('credentialStoreToken', TType::STRING, 2); $xfer += $output->writeString($this->credentialStoreToken); $xfer += $output->writeFieldEnd(); } @@ -653,7 +630,7 @@ class GatewayResourceProfile { if (!is_array($this->computeResourcePreferences)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('computeResourcePreferences', TType::LST, 4); + $xfer += $output->writeFieldBegin('computeResourcePreferences', TType::LST, 3); { $output->writeListBegin(TType::STRUCT, count($this->computeResourcePreferences)); { @@ -670,7 +647,7 @@ class GatewayResourceProfile { if (!is_array($this->dataStoragePreferences)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); } - $xfer += $output->writeFieldBegin('dataStoragePreferences', TType::LST, 5); + $xfer += $output->writeFieldBegin('dataStoragePreferences', TType::LST, 4); { $output->writeListBegin(TType::STRUCT, count($this->dataStoragePreferences)); {
