airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject airavata-php-gateway git commit: updating thrift generated files
Date Wed, 03 Aug 2016 14:41:56 GMT
Repository: airavata-php-gateway
Updated Branches:
  refs/heads/develop 67377932b -> 7edd1a7a2


updating thrift generated files


Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/7edd1a7a
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/7edd1a7a
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/7edd1a7a

Branch: refs/heads/develop
Commit: 7edd1a7a2c8da22553ac2914bfa2cfc64147dea7
Parents: 6737793
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Wed Aug 3 10:41:53 2016 -0400
Committer: scnakandala <supun.nakandala@gmail.com>
Committed: Wed Aug 3 10:41:53 2016 -0400

----------------------------------------------------------------------
 .../Airavata/Model/Workspace/Types.php          | 27 ++++++++++++++++++++
 1 file changed, 27 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/7edd1a7a/app/libraries/Airavata/Model/Workspace/Types.php
----------------------------------------------------------------------
diff --git a/app/libraries/Airavata/Model/Workspace/Types.php b/app/libraries/Airavata/Model/Workspace/Types.php
index 19c0117..34f2699 100644
--- a/app/libraries/Airavata/Model/Workspace/Types.php
+++ b/app/libraries/Airavata/Model/Workspace/Types.php
@@ -22,11 +22,15 @@ final class GatewayApprovalStatus {
   const APPROVED = 1;
   const ACTIVE = 2;
   const DEACTIVATED = 3;
+  const CANCELLED = 4;
+  const DENIED = 5;
   static public $__names = array(
     0 => 'REQUESTED',
     1 => 'APPROVED',
     2 => 'ACTIVE',
     3 => 'DEACTIVATED',
+    4 => 'CANCELLED',
+    5 => 'DENIED',
   );
 }
 
@@ -676,6 +680,10 @@ class Gateway {
    * @var string
    */
   public $identityServerPasswordToken = null;
+  /**
+   * @var string
+   */
+  public $declinedReason = null;
 
   public function __construct($vals=null) {
     if (!isset(self::$_TSPEC)) {
@@ -736,6 +744,10 @@ class Gateway {
           'var' => 'identityServerPasswordToken',
           'type' => TType::STRING,
           ),
+        15 => array(
+          'var' => 'declinedReason',
+          'type' => TType::STRING,
+          ),
         );
     }
     if (is_array($vals)) {
@@ -781,6 +793,9 @@ class Gateway {
       if (isset($vals['identityServerPasswordToken'])) {
         $this->identityServerPasswordToken = $vals['identityServerPasswordToken'];
       }
+      if (isset($vals['declinedReason'])) {
+        $this->declinedReason = $vals['declinedReason'];
+      }
     }
   }
 
@@ -901,6 +916,13 @@ class Gateway {
             $xfer += $input->skip($ftype);
           }
           break;
+        case 15:
+          if ($ftype == TType::STRING) {
+            $xfer += $input->readString($this->declinedReason);
+          } else {
+            $xfer += $input->skip($ftype);
+          }
+          break;
         default:
           $xfer += $input->skip($ftype);
           break;
@@ -984,6 +1006,11 @@ class Gateway {
       $xfer += $output->writeString($this->identityServerPasswordToken);
       $xfer += $output->writeFieldEnd();
     }
+    if ($this->declinedReason !== null) {
+      $xfer += $output->writeFieldBegin('declinedReason', TType::STRING, 15);
+      $xfer += $output->writeString($this->declinedReason);
+      $xfer += $output->writeFieldEnd();
+    }
     $xfer += $output->writeFieldStop();
     $xfer += $output->writeStructEnd();
     return $xfer;


Mime
View raw message