[11/12] airavata-php-gateway git commit: AIRAVATA-2500 Thrift stub code generation
AIRAVATA-2500 Thrift stub code generation 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/4727617a Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/4727617a Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/4727617a Branch: refs/heads/develop Commit: 4727617a70ffc190f1a2ffd388848d934534c24d Parents: 8a3b0ad Author: Marcus ChristieAuthored: Mon Sep 25 16:20:25 2017 -0400 Committer: Marcus Christie Committed: Mon Sep 25 16:20:25 2017 -0400 -- app/libraries/Airavata/API/Airavata.php | 10 +++ .../AppCatalog/UserResourceProfile/Types.php| 28 2 files changed, 38 insertions(+) -- http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/4727617a/app/libraries/Airavata/API/Airavata.php -- diff --git a/app/libraries/Airavata/API/Airavata.php b/app/libraries/Airavata/API/Airavata.php index c8976ba..a22ef84 100644 --- a/app/libraries/Airavata/API/Airavata.php +++ b/app/libraries/Airavata/API/Airavata.php @@ -3485,6 +3485,11 @@ interface AiravataIf { * Resource specific credential store token. If this token is specified, then it is superceeded by the gateway's * default credential store. * + * validated: + * If true the the configuration has been validated in the sense that the username and credential can be used to + * login to the remote host and the scratchLocation is a valid location that the user has permission to write to. + * Should be treated as read-only and only mutated by Airavata middleware. + * * * @throws \Airavata\API\Error\InvalidRequestException * @throws \Airavata\API\Error\AiravataClientException @@ -3717,6 +3722,11 @@ interface AiravataIf { * Resource specific credential store token. If this token is specified, then it is superceeded by the gateway's * default credential store. * + * validated: + * If true the the configuration has been validated in the sense that the username and credential can be used to + * login to the remote host and the scratchLocation is a valid location that the user has permission to write to. + * Should be treated as read-only and only mutated by Airavata middleware. + * * * @throws \Airavata\API\Error\InvalidRequestException * @throws \Airavata\API\Error\AiravataClientException http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/4727617a/app/libraries/Airavata/Model/AppCatalog/UserResourceProfile/Types.php -- diff --git a/app/libraries/Airavata/Model/AppCatalog/UserResourceProfile/Types.php b/app/libraries/Airavata/Model/AppCatalog/UserResourceProfile/Types.php index 8ab78a0..c4a0a9c 100644 --- a/app/libraries/Airavata/Model/AppCatalog/UserResourceProfile/Types.php +++ b/app/libraries/Airavata/Model/AppCatalog/UserResourceProfile/Types.php @@ -43,6 +43,11 @@ use Thrift\Exception\TApplicationException; * Resource specific credential store token. If this token is specified, then it is superceeded by the gateway's * default credential store. * + * validated: + * If true the the configuration has been validated in the sense that the username and credential can be used to + * login to the remote host and the scratchLocation is a valid location that the user has permission to write to. + * Should be treated as read-only and only mutated by Airavata middleware. + * */ class UserComputeResourcePreference { static $_TSPEC; @@ -87,6 +92,10 @@ class UserComputeResourcePreference { * @var int */ public $reservationEndTime = null; + /** + * @var bool + */ + public $validated = false; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -131,6 +140,10 @@ class UserComputeResourcePreference { 'var' => 'reservationEndTime', 'type' => TType::I64, ), +11 => array( + 'var' => 'validated', + 'type' => TType::BOOL, + ), ); } if (is_array($vals)) { @@ -164,6 +177,9 @@ class UserComputeResourcePreference { if (isset($vals['reservationEndTime'])) { $this->reservationEndTime = $vals['reservationEndTime']; } + if (isset($vals['validated'])) { +$this->validated = $vals['validated']; + } } } @@ -256,6 +272,13 @@ class UserComputeResourcePreference { $xfer += $input->skip($ftype); } break; +case 11: + if ($ftype == TType::BOOL) { +$xfer += $input->readBool($this->validated); + } else { +$xfer +=
[11/12] airavata-php-gateway git commit: AIRAVATA-2500 Thrift stub code generation
AIRAVATA-2500 Thrift stub code generation 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/4727617a Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/4727617a Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/4727617a Branch: refs/heads/AIRAVATA-2500 Commit: 4727617a70ffc190f1a2ffd388848d934534c24d Parents: 8a3b0ad Author: Marcus ChristieAuthored: Mon Sep 25 16:20:25 2017 -0400 Committer: Marcus Christie Committed: Mon Sep 25 16:20:25 2017 -0400 -- app/libraries/Airavata/API/Airavata.php | 10 +++ .../AppCatalog/UserResourceProfile/Types.php| 28 2 files changed, 38 insertions(+) -- http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/4727617a/app/libraries/Airavata/API/Airavata.php -- diff --git a/app/libraries/Airavata/API/Airavata.php b/app/libraries/Airavata/API/Airavata.php index c8976ba..a22ef84 100644 --- a/app/libraries/Airavata/API/Airavata.php +++ b/app/libraries/Airavata/API/Airavata.php @@ -3485,6 +3485,11 @@ interface AiravataIf { * Resource specific credential store token. If this token is specified, then it is superceeded by the gateway's * default credential store. * + * validated: + * If true the the configuration has been validated in the sense that the username and credential can be used to + * login to the remote host and the scratchLocation is a valid location that the user has permission to write to. + * Should be treated as read-only and only mutated by Airavata middleware. + * * * @throws \Airavata\API\Error\InvalidRequestException * @throws \Airavata\API\Error\AiravataClientException @@ -3717,6 +3722,11 @@ interface AiravataIf { * Resource specific credential store token. If this token is specified, then it is superceeded by the gateway's * default credential store. * + * validated: + * If true the the configuration has been validated in the sense that the username and credential can be used to + * login to the remote host and the scratchLocation is a valid location that the user has permission to write to. + * Should be treated as read-only and only mutated by Airavata middleware. + * * * @throws \Airavata\API\Error\InvalidRequestException * @throws \Airavata\API\Error\AiravataClientException http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/4727617a/app/libraries/Airavata/Model/AppCatalog/UserResourceProfile/Types.php -- diff --git a/app/libraries/Airavata/Model/AppCatalog/UserResourceProfile/Types.php b/app/libraries/Airavata/Model/AppCatalog/UserResourceProfile/Types.php index 8ab78a0..c4a0a9c 100644 --- a/app/libraries/Airavata/Model/AppCatalog/UserResourceProfile/Types.php +++ b/app/libraries/Airavata/Model/AppCatalog/UserResourceProfile/Types.php @@ -43,6 +43,11 @@ use Thrift\Exception\TApplicationException; * Resource specific credential store token. If this token is specified, then it is superceeded by the gateway's * default credential store. * + * validated: + * If true the the configuration has been validated in the sense that the username and credential can be used to + * login to the remote host and the scratchLocation is a valid location that the user has permission to write to. + * Should be treated as read-only and only mutated by Airavata middleware. + * */ class UserComputeResourcePreference { static $_TSPEC; @@ -87,6 +92,10 @@ class UserComputeResourcePreference { * @var int */ public $reservationEndTime = null; + /** + * @var bool + */ + public $validated = false; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -131,6 +140,10 @@ class UserComputeResourcePreference { 'var' => 'reservationEndTime', 'type' => TType::I64, ), +11 => array( + 'var' => 'validated', + 'type' => TType::BOOL, + ), ); } if (is_array($vals)) { @@ -164,6 +177,9 @@ class UserComputeResourcePreference { if (isset($vals['reservationEndTime'])) { $this->reservationEndTime = $vals['reservationEndTime']; } + if (isset($vals['validated'])) { +$this->validated = $vals['validated']; + } } } @@ -256,6 +272,13 @@ class UserComputeResourcePreference { $xfer += $input->skip($ftype); } break; +case 11: + if ($ftype == TType::BOOL) { +$xfer += $input->readBool($this->validated); + } else { +$xfer +=