You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2017/09/25 21:10:57 UTC

[03/12] airavata-php-gateway git commit: AIRAVATA-2500 Thrift stub code generation

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/cf2eae7e/app/libraries/Airavata/API/Airavata.php
----------------------------------------------------------------------
diff --git a/app/libraries/Airavata/API/Airavata.php b/app/libraries/Airavata/API/Airavata.php
index ae27035..c8976ba 100644
--- a/app/libraries/Airavata/API/Airavata.php
+++ b/app/libraries/Airavata/API/Airavata.php
@@ -3428,6 +3428,71 @@ interface AiravataIf {
    */
   public function deleteGatewayStoragePreference(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayID, $storageId);
   /**
+   * @param \Airavata\Model\Security\AuthzToken $authzToken
+   * @return \Airavata\Model\AppCatalog\AccountProvisioning\SSHAccountProvisioner[]
+   * @throws \Airavata\API\Error\InvalidRequestException
+   * @throws \Airavata\API\Error\AiravataClientException
+   * @throws \Airavata\API\Error\AiravataSystemException
+   * @throws \Airavata\API\Error\AuthorizationException
+   */
+  public function getSSHAccountProvisioners(\Airavata\Model\Security\AuthzToken $authzToken);
+  /**
+   * Check if user has an SSH account on the given compute resource. This
+   * method will only work if the compute resource has an SSHAccountProvisioner configured for it.
+   * 
+   * @param \Airavata\Model\Security\AuthzToken $authzToken
+   * @param string $computeResourceId
+   * @param string $userId
+   * @return bool
+   * @throws \Airavata\API\Error\InvalidRequestException
+   * @throws \Airavata\API\Error\AiravataClientException
+   * @throws \Airavata\API\Error\AiravataSystemException
+   * @throws \Airavata\API\Error\AuthorizationException
+   */
+  public function doesUserHaveSSHAccount(\Airavata\Model\Security\AuthzToken $authzToken, $computeResourceId, $userId);
+  /**
+   * Setup and return a UserComputeResourcePreference object for this user to SSH into the given compute resource with
+   * the given SSH credential. This method will only work if the compute resource has an SSHAccountProvisioner
+   * configured for it. The returned UserComputeResourcePreference object is not saved; it is up to the client to
+   * call addUserComputeResourcePreference to persist it.
+   * 
+   * @param \Airavata\Model\Security\AuthzToken $authzToken
+   * @param string $computeResourceId
+   * @param string $userId
+   * @param string $airavataCredStoreToken
+   * @return \Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference User specific preferences for a Computer Resource
+   * 
+   * computeResourceId:
+   *   Corelate the preference to a compute resource.
+   * 
+   * 
+   * loginUserName:
+   *   If turned true, Airavata will override the preferences of better alternatives exist.
+   * 
+   * 
+   * preferredBatchQueue:
+   *  Gateways can choose a defualt batch queue based on average job dimention, reservations or other metrics.
+   * 
+   * scratchLocation:
+   *  Path to the local scratch space on a HPC cluster. Typically used to create working directory for job execution.
+   * 
+   * allocationProjectNumber:
+   *  Typically used on HPC machines to charge computing usage to a account number. For instance, on XSEDE once an
+   *    allocation is approved, an allocation number is assigned. Before passing this number with job submittions, the
+   *    account to be used has to be added to the allocation.
+   * 
+   * resourceSpecificCredentialStoreToken:
+   *  Resource specific credential store token. If this token is specified, then it is superceeded by the gateway's
+   *   default credential store.
+   * 
+   * 
+   * @throws \Airavata\API\Error\InvalidRequestException
+   * @throws \Airavata\API\Error\AiravataClientException
+   * @throws \Airavata\API\Error\AiravataSystemException
+   * @throws \Airavata\API\Error\AuthorizationException
+   */
+  public function setupUserComputeResourcePreferencesForSSH(\Airavata\Model\Security\AuthzToken $authzToken, $computeResourceId, $userId, $airavataCredStoreToken);
+  /**
    * Register User Resource Profile.
    * 
    * @param UserResourceProfile
@@ -4045,7 +4110,7 @@ interface AiravataIf {
   /**
    * @param \Airavata\Model\Security\AuthzToken $authzToken
    * @param \Airavata\Model\Group\GroupModel $groupModel
-   * @return bool
+   * @return string
    * @throws \Airavata\API\Error\InvalidRequestException
    * @throws \Airavata\API\Error\AiravataClientException
    * @throws \Airavata\API\Error\AiravataSystemException
@@ -4066,14 +4131,13 @@ interface AiravataIf {
    * @param \Airavata\Model\Security\AuthzToken $authzToken
    * @param string $groupId
    * @param string $ownerId
-   * @param string $gatewayId
    * @return bool
    * @throws \Airavata\API\Error\InvalidRequestException
    * @throws \Airavata\API\Error\AiravataClientException
    * @throws \Airavata\API\Error\AiravataSystemException
    * @throws \Airavata\API\Error\AuthorizationException
    */
-  public function deleteGroup(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $ownerId, $gatewayId);
+  public function deleteGroup(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $ownerId);
   /**
    * @param \Airavata\Model\Security\AuthzToken $authzToken
    * @param string $groupId
@@ -4087,14 +4151,13 @@ interface AiravataIf {
   /**
    * @param \Airavata\Model\Security\AuthzToken $authzToken
    * @param string $userName
-   * @param string $gatewayId
    * @return \Airavata\Model\Group\GroupModel[]
    * @throws \Airavata\API\Error\InvalidRequestException
    * @throws \Airavata\API\Error\AiravataClientException
    * @throws \Airavata\API\Error\AiravataSystemException
    * @throws \Airavata\API\Error\AuthorizationException
    */
-  public function getAllGroupsUserBelongs(\Airavata\Model\Security\AuthzToken $authzToken, $userName, $gatewayId);
+  public function getAllGroupsUserBelongs(\Airavata\Model\Security\AuthzToken $authzToken, $userName);
 }
 
 class AiravataClient implements \Airavata\API\AiravataIf {
@@ -12722,6 +12785,200 @@ class AiravataClient implements \Airavata\API\AiravataIf {
     throw new \Exception("deleteGatewayStoragePreference failed: unknown result");
   }
 
+  public function getSSHAccountProvisioners(\Airavata\Model\Security\AuthzToken $authzToken)
+  {
+    $this->send_getSSHAccountProvisioners($authzToken);
+    return $this->recv_getSSHAccountProvisioners();
+  }
+
+  public function send_getSSHAccountProvisioners(\Airavata\Model\Security\AuthzToken $authzToken)
+  {
+    $args = new \Airavata\API\Airavata_getSSHAccountProvisioners_args();
+    $args->authzToken = $authzToken;
+    $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+    if ($bin_accel)
+    {
+      thrift_protocol_write_binary($this->output_, 'getSSHAccountProvisioners', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+    }
+    else
+    {
+      $this->output_->writeMessageBegin('getSSHAccountProvisioners', TMessageType::CALL, $this->seqid_);
+      $args->write($this->output_);
+      $this->output_->writeMessageEnd();
+      $this->output_->getTransport()->flush();
+    }
+  }
+
+  public function recv_getSSHAccountProvisioners()
+  {
+    $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_getSSHAccountProvisioners_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_getSSHAccountProvisioners_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;
+    }
+    if ($result->ae !== null) {
+      throw $result->ae;
+    }
+    throw new \Exception("getSSHAccountProvisioners failed: unknown result");
+  }
+
+  public function doesUserHaveSSHAccount(\Airavata\Model\Security\AuthzToken $authzToken, $computeResourceId, $userId)
+  {
+    $this->send_doesUserHaveSSHAccount($authzToken, $computeResourceId, $userId);
+    return $this->recv_doesUserHaveSSHAccount();
+  }
+
+  public function send_doesUserHaveSSHAccount(\Airavata\Model\Security\AuthzToken $authzToken, $computeResourceId, $userId)
+  {
+    $args = new \Airavata\API\Airavata_doesUserHaveSSHAccount_args();
+    $args->authzToken = $authzToken;
+    $args->computeResourceId = $computeResourceId;
+    $args->userId = $userId;
+    $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+    if ($bin_accel)
+    {
+      thrift_protocol_write_binary($this->output_, 'doesUserHaveSSHAccount', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+    }
+    else
+    {
+      $this->output_->writeMessageBegin('doesUserHaveSSHAccount', TMessageType::CALL, $this->seqid_);
+      $args->write($this->output_);
+      $this->output_->writeMessageEnd();
+      $this->output_->getTransport()->flush();
+    }
+  }
+
+  public function recv_doesUserHaveSSHAccount()
+  {
+    $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_doesUserHaveSSHAccount_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_doesUserHaveSSHAccount_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;
+    }
+    if ($result->ae !== null) {
+      throw $result->ae;
+    }
+    throw new \Exception("doesUserHaveSSHAccount failed: unknown result");
+  }
+
+  public function setupUserComputeResourcePreferencesForSSH(\Airavata\Model\Security\AuthzToken $authzToken, $computeResourceId, $userId, $airavataCredStoreToken)
+  {
+    $this->send_setupUserComputeResourcePreferencesForSSH($authzToken, $computeResourceId, $userId, $airavataCredStoreToken);
+    return $this->recv_setupUserComputeResourcePreferencesForSSH();
+  }
+
+  public function send_setupUserComputeResourcePreferencesForSSH(\Airavata\Model\Security\AuthzToken $authzToken, $computeResourceId, $userId, $airavataCredStoreToken)
+  {
+    $args = new \Airavata\API\Airavata_setupUserComputeResourcePreferencesForSSH_args();
+    $args->authzToken = $authzToken;
+    $args->computeResourceId = $computeResourceId;
+    $args->userId = $userId;
+    $args->airavataCredStoreToken = $airavataCredStoreToken;
+    $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
+    if ($bin_accel)
+    {
+      thrift_protocol_write_binary($this->output_, 'setupUserComputeResourcePreferencesForSSH', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+    }
+    else
+    {
+      $this->output_->writeMessageBegin('setupUserComputeResourcePreferencesForSSH', TMessageType::CALL, $this->seqid_);
+      $args->write($this->output_);
+      $this->output_->writeMessageEnd();
+      $this->output_->getTransport()->flush();
+    }
+  }
+
+  public function recv_setupUserComputeResourcePreferencesForSSH()
+  {
+    $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_setupUserComputeResourcePreferencesForSSH_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_setupUserComputeResourcePreferencesForSSH_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;
+    }
+    if ($result->ae !== null) {
+      throw $result->ae;
+    }
+    throw new \Exception("setupUserComputeResourcePreferencesForSSH failed: unknown result");
+  }
+
   public function registerUserResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, \Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile $userResourceProfile)
   {
     $this->send_registerUserResourceProfile($authzToken, $userResourceProfile);
@@ -14860,19 +15117,18 @@ class AiravataClient implements \Airavata\API\AiravataIf {
     throw new \Exception("updateGroup failed: unknown result");
   }
 
-  public function deleteGroup(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $ownerId, $gatewayId)
+  public function deleteGroup(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $ownerId)
   {
-    $this->send_deleteGroup($authzToken, $groupId, $ownerId, $gatewayId);
+    $this->send_deleteGroup($authzToken, $groupId, $ownerId);
     return $this->recv_deleteGroup();
   }
 
-  public function send_deleteGroup(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $ownerId, $gatewayId)
+  public function send_deleteGroup(\Airavata\Model\Security\AuthzToken $authzToken, $groupId, $ownerId)
   {
     $args = new \Airavata\API\Airavata_deleteGroup_args();
     $args->authzToken = $authzToken;
     $args->groupId = $groupId;
     $args->ownerId = $ownerId;
-    $args->gatewayId = $gatewayId;
     $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
     if ($bin_accel)
     {
@@ -14990,18 +15246,17 @@ class AiravataClient implements \Airavata\API\AiravataIf {
     throw new \Exception("getGroup failed: unknown result");
   }
 
-  public function getAllGroupsUserBelongs(\Airavata\Model\Security\AuthzToken $authzToken, $userName, $gatewayId)
+  public function getAllGroupsUserBelongs(\Airavata\Model\Security\AuthzToken $authzToken, $userName)
   {
-    $this->send_getAllGroupsUserBelongs($authzToken, $userName, $gatewayId);
+    $this->send_getAllGroupsUserBelongs($authzToken, $userName);
     return $this->recv_getAllGroupsUserBelongs();
   }
 
-  public function send_getAllGroupsUserBelongs(\Airavata\Model\Security\AuthzToken $authzToken, $userName, $gatewayId)
+  public function send_getAllGroupsUserBelongs(\Airavata\Model\Security\AuthzToken $authzToken, $userName)
   {
     $args = new \Airavata\API\Airavata_getAllGroupsUserBelongs_args();
     $args->authzToken = $authzToken;
     $args->userName = $userName;
-    $args->gatewayId = $gatewayId;
     $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
     if ($bin_accel)
     {
@@ -55773,17 +56028,13 @@ class Airavata_deleteGatewayStoragePreference_result {
 
 }
 
-class Airavata_registerUserResourceProfile_args {
+class Airavata_getSSHAccountProvisioners_args {
   static $_TSPEC;
 
   /**
    * @var \Airavata\Model\Security\AuthzToken
    */
   public $authzToken = null;
-  /**
-   * @var \Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile
-   */
-  public $userResourceProfile = null;
 
   public function __construct($vals=null) {
     if (!isset(self::$_TSPEC)) {
@@ -55793,25 +56044,17 @@ class Airavata_registerUserResourceProfile_args {
           'type' => TType::STRUCT,
           'class' => '\Airavata\Model\Security\AuthzToken',
           ),
-        2 => array(
-          'var' => 'userResourceProfile',
-          'type' => TType::STRUCT,
-          'class' => '\Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile',
-          ),
         );
     }
     if (is_array($vals)) {
       if (isset($vals['authzToken'])) {
         $this->authzToken = $vals['authzToken'];
       }
-      if (isset($vals['userResourceProfile'])) {
-        $this->userResourceProfile = $vals['userResourceProfile'];
-      }
     }
   }
 
   public function getName() {
-    return 'Airavata_registerUserResourceProfile_args';
+    return 'Airavata_getSSHAccountProvisioners_args';
   }
 
   public function read($input)
@@ -55837,14 +56080,6 @@ class Airavata_registerUserResourceProfile_args {
             $xfer += $input->skip($ftype);
           }
           break;
-        case 2:
-          if ($ftype == TType::STRUCT) {
-            $this->userResourceProfile = new \Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile();
-            $xfer += $this->userResourceProfile->read($input);
-          } else {
-            $xfer += $input->skip($ftype);
-          }
-          break;
         default:
           $xfer += $input->skip($ftype);
           break;
@@ -55857,7 +56092,7 @@ class Airavata_registerUserResourceProfile_args {
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('Airavata_registerUserResourceProfile_args');
+    $xfer += $output->writeStructBegin('Airavata_getSSHAccountProvisioners_args');
     if ($this->authzToken !== null) {
       if (!is_object($this->authzToken)) {
         throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -55866,14 +56101,6 @@ class Airavata_registerUserResourceProfile_args {
       $xfer += $this->authzToken->write($output);
       $xfer += $output->writeFieldEnd();
     }
-    if ($this->userResourceProfile !== null) {
-      if (!is_object($this->userResourceProfile)) {
-        throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
-      }
-      $xfer += $output->writeFieldBegin('userResourceProfile', TType::STRUCT, 2);
-      $xfer += $this->userResourceProfile->write($output);
-      $xfer += $output->writeFieldEnd();
-    }
     $xfer += $output->writeFieldStop();
     $xfer += $output->writeStructEnd();
     return $xfer;
@@ -55881,11 +56108,11 @@ class Airavata_registerUserResourceProfile_args {
 
 }
 
-class Airavata_registerUserResourceProfile_result {
+class Airavata_getSSHAccountProvisioners_result {
   static $_TSPEC;
 
   /**
-   * @var string
+   * @var \Airavata\Model\AppCatalog\AccountProvisioning\SSHAccountProvisioner[]
    */
   public $success = null;
   /**
@@ -55910,7 +56137,12 @@ class Airavata_registerUserResourceProfile_result {
       self::$_TSPEC = array(
         0 => array(
           'var' => 'success',
-          'type' => TType::STRING,
+          'type' => TType::LST,
+          'etype' => TType::STRUCT,
+          'elem' => array(
+            'type' => TType::STRUCT,
+            'class' => '\Airavata\Model\AppCatalog\AccountProvisioning\SSHAccountProvisioner',
+            ),
           ),
         1 => array(
           'var' => 'ire',
@@ -55954,7 +56186,7 @@ class Airavata_registerUserResourceProfile_result {
   }
 
   public function getName() {
-    return 'Airavata_registerUserResourceProfile_result';
+    return 'Airavata_getSSHAccountProvisioners_result';
   }
 
   public function read($input)
@@ -55973,8 +56205,19 @@ class Airavata_registerUserResourceProfile_result {
       switch ($fid)
       {
         case 0:
-          if ($ftype == TType::STRING) {
-            $xfer += $input->readString($this->success);
+          if ($ftype == TType::LST) {
+            $this->success = array();
+            $_size253 = 0;
+            $_etype256 = 0;
+            $xfer += $input->readListBegin($_etype256, $_size253);
+            for ($_i257 = 0; $_i257 < $_size253; ++$_i257)
+            {
+              $elem258 = null;
+              $elem258 = new \Airavata\Model\AppCatalog\AccountProvisioning\SSHAccountProvisioner();
+              $xfer += $elem258->read($input);
+              $this->success []= $elem258;
+            }
+            $xfer += $input->readListEnd();
           } else {
             $xfer += $input->skip($ftype);
           }
@@ -56023,10 +56266,22 @@ class Airavata_registerUserResourceProfile_result {
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('Airavata_registerUserResourceProfile_result');
+    $xfer += $output->writeStructBegin('Airavata_getSSHAccountProvisioners_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::LST, 0);
+      {
+        $output->writeListBegin(TType::STRUCT, count($this->success));
+        {
+          foreach ($this->success as $iter259)
+          {
+            $xfer += $iter259->write($output);
+          }
+        }
+        $output->writeListEnd();
+      }
       $xfer += $output->writeFieldEnd();
     }
     if ($this->ire !== null) {
@@ -56056,7 +56311,7 @@ class Airavata_registerUserResourceProfile_result {
 
 }
 
-class Airavata_getUserResourceProfile_args {
+class Airavata_doesUserHaveSSHAccount_args {
   static $_TSPEC;
 
   /**
@@ -56066,11 +56321,11 @@ class Airavata_getUserResourceProfile_args {
   /**
    * @var string
    */
-  public $userId = null;
+  public $computeResourceId = null;
   /**
    * @var string
    */
-  public $gatewayID = null;
+  public $userId = null;
 
   public function __construct($vals=null) {
     if (!isset(self::$_TSPEC)) {
@@ -56081,11 +56336,11 @@ class Airavata_getUserResourceProfile_args {
           'class' => '\Airavata\Model\Security\AuthzToken',
           ),
         2 => array(
-          'var' => 'userId',
+          'var' => 'computeResourceId',
           'type' => TType::STRING,
           ),
         3 => array(
-          'var' => 'gatewayID',
+          'var' => 'userId',
           'type' => TType::STRING,
           ),
         );
@@ -56094,17 +56349,17 @@ class Airavata_getUserResourceProfile_args {
       if (isset($vals['authzToken'])) {
         $this->authzToken = $vals['authzToken'];
       }
+      if (isset($vals['computeResourceId'])) {
+        $this->computeResourceId = $vals['computeResourceId'];
+      }
       if (isset($vals['userId'])) {
         $this->userId = $vals['userId'];
       }
-      if (isset($vals['gatewayID'])) {
-        $this->gatewayID = $vals['gatewayID'];
-      }
     }
   }
 
   public function getName() {
-    return 'Airavata_getUserResourceProfile_args';
+    return 'Airavata_doesUserHaveSSHAccount_args';
   }
 
   public function read($input)
@@ -56132,14 +56387,14 @@ class Airavata_getUserResourceProfile_args {
           break;
         case 2:
           if ($ftype == TType::STRING) {
-            $xfer += $input->readString($this->userId);
+            $xfer += $input->readString($this->computeResourceId);
           } else {
             $xfer += $input->skip($ftype);
           }
           break;
         case 3:
           if ($ftype == TType::STRING) {
-            $xfer += $input->readString($this->gatewayID);
+            $xfer += $input->readString($this->userId);
           } else {
             $xfer += $input->skip($ftype);
           }
@@ -56156,7 +56411,7 @@ class Airavata_getUserResourceProfile_args {
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('Airavata_getUserResourceProfile_args');
+    $xfer += $output->writeStructBegin('Airavata_doesUserHaveSSHAccount_args');
     if ($this->authzToken !== null) {
       if (!is_object($this->authzToken)) {
         throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -56165,14 +56420,14 @@ class Airavata_getUserResourceProfile_args {
       $xfer += $this->authzToken->write($output);
       $xfer += $output->writeFieldEnd();
     }
-    if ($this->userId !== null) {
-      $xfer += $output->writeFieldBegin('userId', TType::STRING, 2);
-      $xfer += $output->writeString($this->userId);
+    if ($this->computeResourceId !== null) {
+      $xfer += $output->writeFieldBegin('computeResourceId', TType::STRING, 2);
+      $xfer += $output->writeString($this->computeResourceId);
       $xfer += $output->writeFieldEnd();
     }
-    if ($this->gatewayID !== null) {
-      $xfer += $output->writeFieldBegin('gatewayID', TType::STRING, 3);
-      $xfer += $output->writeString($this->gatewayID);
+    if ($this->userId !== null) {
+      $xfer += $output->writeFieldBegin('userId', TType::STRING, 3);
+      $xfer += $output->writeString($this->userId);
       $xfer += $output->writeFieldEnd();
     }
     $xfer += $output->writeFieldStop();
@@ -56182,11 +56437,11 @@ class Airavata_getUserResourceProfile_args {
 
 }
 
-class Airavata_getUserResourceProfile_result {
+class Airavata_doesUserHaveSSHAccount_result {
   static $_TSPEC;
 
   /**
-   * @var \Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile
+   * @var bool
    */
   public $success = null;
   /**
@@ -56211,8 +56466,7 @@ class Airavata_getUserResourceProfile_result {
       self::$_TSPEC = array(
         0 => array(
           'var' => 'success',
-          'type' => TType::STRUCT,
-          'class' => '\Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile',
+          'type' => TType::BOOL,
           ),
         1 => array(
           'var' => 'ire',
@@ -56256,7 +56510,7 @@ class Airavata_getUserResourceProfile_result {
   }
 
   public function getName() {
-    return 'Airavata_getUserResourceProfile_result';
+    return 'Airavata_doesUserHaveSSHAccount_result';
   }
 
   public function read($input)
@@ -56275,9 +56529,8 @@ class Airavata_getUserResourceProfile_result {
       switch ($fid)
       {
         case 0:
-          if ($ftype == TType::STRUCT) {
-            $this->success = new \Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile();
-            $xfer += $this->success->read($input);
+          if ($ftype == TType::BOOL) {
+            $xfer += $input->readBool($this->success);
           } else {
             $xfer += $input->skip($ftype);
           }
@@ -56326,13 +56579,10 @@ class Airavata_getUserResourceProfile_result {
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('Airavata_getUserResourceProfile_result');
+    $xfer += $output->writeStructBegin('Airavata_doesUserHaveSSHAccount_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) {
@@ -56362,7 +56612,7 @@ class Airavata_getUserResourceProfile_result {
 
 }
 
-class Airavata_updateUserResourceProfile_args {
+class Airavata_setupUserComputeResourcePreferencesForSSH_args {
   static $_TSPEC;
 
   /**
@@ -56372,15 +56622,15 @@ class Airavata_updateUserResourceProfile_args {
   /**
    * @var string
    */
-  public $userId = null;
+  public $computeResourceId = null;
   /**
    * @var string
    */
-  public $gatewayID = null;
+  public $userId = null;
   /**
-   * @var \Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile
+   * @var string
    */
-  public $userResourceProfile = null;
+  public $airavataCredStoreToken = null;
 
   public function __construct($vals=null) {
     if (!isset(self::$_TSPEC)) {
@@ -56391,17 +56641,16 @@ class Airavata_updateUserResourceProfile_args {
           'class' => '\Airavata\Model\Security\AuthzToken',
           ),
         2 => array(
-          'var' => 'userId',
+          'var' => 'computeResourceId',
           'type' => TType::STRING,
           ),
         3 => array(
-          'var' => 'gatewayID',
+          'var' => 'userId',
           'type' => TType::STRING,
           ),
         4 => array(
-          'var' => 'userResourceProfile',
-          'type' => TType::STRUCT,
-          'class' => '\Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile',
+          'var' => 'airavataCredStoreToken',
+          'type' => TType::STRING,
           ),
         );
     }
@@ -56409,20 +56658,20 @@ class Airavata_updateUserResourceProfile_args {
       if (isset($vals['authzToken'])) {
         $this->authzToken = $vals['authzToken'];
       }
+      if (isset($vals['computeResourceId'])) {
+        $this->computeResourceId = $vals['computeResourceId'];
+      }
       if (isset($vals['userId'])) {
         $this->userId = $vals['userId'];
       }
-      if (isset($vals['gatewayID'])) {
-        $this->gatewayID = $vals['gatewayID'];
-      }
-      if (isset($vals['userResourceProfile'])) {
-        $this->userResourceProfile = $vals['userResourceProfile'];
+      if (isset($vals['airavataCredStoreToken'])) {
+        $this->airavataCredStoreToken = $vals['airavataCredStoreToken'];
       }
     }
   }
 
   public function getName() {
-    return 'Airavata_updateUserResourceProfile_args';
+    return 'Airavata_setupUserComputeResourcePreferencesForSSH_args';
   }
 
   public function read($input)
@@ -56450,22 +56699,21 @@ class Airavata_updateUserResourceProfile_args {
           break;
         case 2:
           if ($ftype == TType::STRING) {
-            $xfer += $input->readString($this->userId);
+            $xfer += $input->readString($this->computeResourceId);
           } else {
             $xfer += $input->skip($ftype);
           }
           break;
         case 3:
           if ($ftype == TType::STRING) {
-            $xfer += $input->readString($this->gatewayID);
+            $xfer += $input->readString($this->userId);
           } else {
             $xfer += $input->skip($ftype);
           }
           break;
         case 4:
-          if ($ftype == TType::STRUCT) {
-            $this->userResourceProfile = new \Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile();
-            $xfer += $this->userResourceProfile->read($input);
+          if ($ftype == TType::STRING) {
+            $xfer += $input->readString($this->airavataCredStoreToken);
           } else {
             $xfer += $input->skip($ftype);
           }
@@ -56482,7 +56730,7 @@ class Airavata_updateUserResourceProfile_args {
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('Airavata_updateUserResourceProfile_args');
+    $xfer += $output->writeStructBegin('Airavata_setupUserComputeResourcePreferencesForSSH_args');
     if ($this->authzToken !== null) {
       if (!is_object($this->authzToken)) {
         throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -56491,22 +56739,19 @@ class Airavata_updateUserResourceProfile_args {
       $xfer += $this->authzToken->write($output);
       $xfer += $output->writeFieldEnd();
     }
-    if ($this->userId !== null) {
-      $xfer += $output->writeFieldBegin('userId', TType::STRING, 2);
-      $xfer += $output->writeString($this->userId);
+    if ($this->computeResourceId !== null) {
+      $xfer += $output->writeFieldBegin('computeResourceId', TType::STRING, 2);
+      $xfer += $output->writeString($this->computeResourceId);
       $xfer += $output->writeFieldEnd();
     }
-    if ($this->gatewayID !== null) {
-      $xfer += $output->writeFieldBegin('gatewayID', TType::STRING, 3);
-      $xfer += $output->writeString($this->gatewayID);
+    if ($this->userId !== null) {
+      $xfer += $output->writeFieldBegin('userId', TType::STRING, 3);
+      $xfer += $output->writeString($this->userId);
       $xfer += $output->writeFieldEnd();
     }
-    if ($this->userResourceProfile !== null) {
-      if (!is_object($this->userResourceProfile)) {
-        throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
-      }
-      $xfer += $output->writeFieldBegin('userResourceProfile', TType::STRUCT, 4);
-      $xfer += $this->userResourceProfile->write($output);
+    if ($this->airavataCredStoreToken !== null) {
+      $xfer += $output->writeFieldBegin('airavataCredStoreToken', TType::STRING, 4);
+      $xfer += $output->writeString($this->airavataCredStoreToken);
       $xfer += $output->writeFieldEnd();
     }
     $xfer += $output->writeFieldStop();
@@ -56516,11 +56761,11 @@ class Airavata_updateUserResourceProfile_args {
 
 }
 
-class Airavata_updateUserResourceProfile_result {
+class Airavata_setupUserComputeResourcePreferencesForSSH_result {
   static $_TSPEC;
 
   /**
-   * @var bool
+   * @var \Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference
    */
   public $success = null;
   /**
@@ -56545,7 +56790,8 @@ class Airavata_updateUserResourceProfile_result {
       self::$_TSPEC = array(
         0 => array(
           'var' => 'success',
-          'type' => TType::BOOL,
+          'type' => TType::STRUCT,
+          'class' => '\Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference',
           ),
         1 => array(
           'var' => 'ire',
@@ -56589,7 +56835,7 @@ class Airavata_updateUserResourceProfile_result {
   }
 
   public function getName() {
-    return 'Airavata_updateUserResourceProfile_result';
+    return 'Airavata_setupUserComputeResourcePreferencesForSSH_result';
   }
 
   public function read($input)
@@ -56608,8 +56854,9 @@ class Airavata_updateUserResourceProfile_result {
       switch ($fid)
       {
         case 0:
-          if ($ftype == TType::BOOL) {
-            $xfer += $input->readBool($this->success);
+          if ($ftype == TType::STRUCT) {
+            $this->success = new \Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference();
+            $xfer += $this->success->read($input);
           } else {
             $xfer += $input->skip($ftype);
           }
@@ -56658,10 +56905,13 @@ class Airavata_updateUserResourceProfile_result {
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('Airavata_updateUserResourceProfile_result');
+    $xfer += $output->writeStructBegin('Airavata_setupUserComputeResourcePreferencesForSSH_result');
     if ($this->success !== null) {
-      $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
-      $xfer += $output->writeBool($this->success);
+      if (!is_object($this->success)) {
+        throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+      }
+      $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
+      $xfer += $this->success->write($output);
       $xfer += $output->writeFieldEnd();
     }
     if ($this->ire !== null) {
@@ -56691,7 +56941,7 @@ class Airavata_updateUserResourceProfile_result {
 
 }
 
-class Airavata_deleteUserResourceProfile_args {
+class Airavata_registerUserResourceProfile_args {
   static $_TSPEC;
 
   /**
@@ -56699,13 +56949,9 @@ class Airavata_deleteUserResourceProfile_args {
    */
   public $authzToken = null;
   /**
-   * @var string
-   */
-  public $userId = null;
-  /**
-   * @var string
+   * @var \Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile
    */
-  public $gatewayID = null;
+  public $userResourceProfile = null;
 
   public function __construct($vals=null) {
     if (!isset(self::$_TSPEC)) {
@@ -56716,12 +56962,9 @@ class Airavata_deleteUserResourceProfile_args {
           'class' => '\Airavata\Model\Security\AuthzToken',
           ),
         2 => array(
-          'var' => 'userId',
-          'type' => TType::STRING,
-          ),
-        3 => array(
-          'var' => 'gatewayID',
-          'type' => TType::STRING,
+          'var' => 'userResourceProfile',
+          'type' => TType::STRUCT,
+          'class' => '\Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile',
           ),
         );
     }
@@ -56729,17 +56972,14 @@ class Airavata_deleteUserResourceProfile_args {
       if (isset($vals['authzToken'])) {
         $this->authzToken = $vals['authzToken'];
       }
-      if (isset($vals['userId'])) {
-        $this->userId = $vals['userId'];
-      }
-      if (isset($vals['gatewayID'])) {
-        $this->gatewayID = $vals['gatewayID'];
+      if (isset($vals['userResourceProfile'])) {
+        $this->userResourceProfile = $vals['userResourceProfile'];
       }
     }
   }
 
   public function getName() {
-    return 'Airavata_deleteUserResourceProfile_args';
+    return 'Airavata_registerUserResourceProfile_args';
   }
 
   public function read($input)
@@ -56766,15 +57006,9 @@ class Airavata_deleteUserResourceProfile_args {
           }
           break;
         case 2:
-          if ($ftype == TType::STRING) {
-            $xfer += $input->readString($this->userId);
-          } else {
-            $xfer += $input->skip($ftype);
-          }
-          break;
-        case 3:
-          if ($ftype == TType::STRING) {
-            $xfer += $input->readString($this->gatewayID);
+          if ($ftype == TType::STRUCT) {
+            $this->userResourceProfile = new \Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile();
+            $xfer += $this->userResourceProfile->read($input);
           } else {
             $xfer += $input->skip($ftype);
           }
@@ -56791,7 +57025,7 @@ class Airavata_deleteUserResourceProfile_args {
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('Airavata_deleteUserResourceProfile_args');
+    $xfer += $output->writeStructBegin('Airavata_registerUserResourceProfile_args');
     if ($this->authzToken !== null) {
       if (!is_object($this->authzToken)) {
         throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -56800,14 +57034,12 @@ class Airavata_deleteUserResourceProfile_args {
       $xfer += $this->authzToken->write($output);
       $xfer += $output->writeFieldEnd();
     }
-    if ($this->userId !== null) {
-      $xfer += $output->writeFieldBegin('userId', TType::STRING, 2);
-      $xfer += $output->writeString($this->userId);
-      $xfer += $output->writeFieldEnd();
-    }
-    if ($this->gatewayID !== null) {
-      $xfer += $output->writeFieldBegin('gatewayID', TType::STRING, 3);
-      $xfer += $output->writeString($this->gatewayID);
+    if ($this->userResourceProfile !== null) {
+      if (!is_object($this->userResourceProfile)) {
+        throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+      }
+      $xfer += $output->writeFieldBegin('userResourceProfile', TType::STRUCT, 2);
+      $xfer += $this->userResourceProfile->write($output);
       $xfer += $output->writeFieldEnd();
     }
     $xfer += $output->writeFieldStop();
@@ -56817,11 +57049,11 @@ class Airavata_deleteUserResourceProfile_args {
 
 }
 
-class Airavata_deleteUserResourceProfile_result {
+class Airavata_registerUserResourceProfile_result {
   static $_TSPEC;
 
   /**
-   * @var bool
+   * @var string
    */
   public $success = null;
   /**
@@ -56846,7 +57078,7 @@ class Airavata_deleteUserResourceProfile_result {
       self::$_TSPEC = array(
         0 => array(
           'var' => 'success',
-          'type' => TType::BOOL,
+          'type' => TType::STRING,
           ),
         1 => array(
           'var' => 'ire',
@@ -56890,7 +57122,7 @@ class Airavata_deleteUserResourceProfile_result {
   }
 
   public function getName() {
-    return 'Airavata_deleteUserResourceProfile_result';
+    return 'Airavata_registerUserResourceProfile_result';
   }
 
   public function read($input)
@@ -56909,8 +57141,8 @@ class Airavata_deleteUserResourceProfile_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);
           }
@@ -56959,10 +57191,10 @@ class Airavata_deleteUserResourceProfile_result {
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('Airavata_deleteUserResourceProfile_result');
+    $xfer += $output->writeStructBegin('Airavata_registerUserResourceProfile_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) {
@@ -56992,7 +57224,7 @@ class Airavata_deleteUserResourceProfile_result {
 
 }
 
-class Airavata_addUserComputeResourcePreference_args {
+class Airavata_getUserResourceProfile_args {
   static $_TSPEC;
 
   /**
@@ -57007,14 +57239,6 @@ class Airavata_addUserComputeResourcePreference_args {
    * @var string
    */
   public $gatewayID = null;
-  /**
-   * @var string
-   */
-  public $userComputeResourceId = null;
-  /**
-   * @var \Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference
-   */
-  public $userComputeResourcePreference = null;
 
   public function __construct($vals=null) {
     if (!isset(self::$_TSPEC)) {
@@ -57032,15 +57256,6 @@ class Airavata_addUserComputeResourcePreference_args {
           'var' => 'gatewayID',
           'type' => TType::STRING,
           ),
-        4 => array(
-          'var' => 'userComputeResourceId',
-          'type' => TType::STRING,
-          ),
-        5 => array(
-          'var' => 'userComputeResourcePreference',
-          'type' => TType::STRUCT,
-          'class' => '\Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference',
-          ),
         );
     }
     if (is_array($vals)) {
@@ -57053,17 +57268,11 @@ class Airavata_addUserComputeResourcePreference_args {
       if (isset($vals['gatewayID'])) {
         $this->gatewayID = $vals['gatewayID'];
       }
-      if (isset($vals['userComputeResourceId'])) {
-        $this->userComputeResourceId = $vals['userComputeResourceId'];
-      }
-      if (isset($vals['userComputeResourcePreference'])) {
-        $this->userComputeResourcePreference = $vals['userComputeResourcePreference'];
-      }
     }
   }
 
   public function getName() {
-    return 'Airavata_addUserComputeResourcePreference_args';
+    return 'Airavata_getUserResourceProfile_args';
   }
 
   public function read($input)
@@ -57103,21 +57312,6 @@ class Airavata_addUserComputeResourcePreference_args {
             $xfer += $input->skip($ftype);
           }
           break;
-        case 4:
-          if ($ftype == TType::STRING) {
-            $xfer += $input->readString($this->userComputeResourceId);
-          } else {
-            $xfer += $input->skip($ftype);
-          }
-          break;
-        case 5:
-          if ($ftype == TType::STRUCT) {
-            $this->userComputeResourcePreference = new \Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference();
-            $xfer += $this->userComputeResourcePreference->read($input);
-          } else {
-            $xfer += $input->skip($ftype);
-          }
-          break;
         default:
           $xfer += $input->skip($ftype);
           break;
@@ -57130,7 +57324,7 @@ class Airavata_addUserComputeResourcePreference_args {
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('Airavata_addUserComputeResourcePreference_args');
+    $xfer += $output->writeStructBegin('Airavata_getUserResourceProfile_args');
     if ($this->authzToken !== null) {
       if (!is_object($this->authzToken)) {
         throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -57149,19 +57343,6 @@ class Airavata_addUserComputeResourcePreference_args {
       $xfer += $output->writeString($this->gatewayID);
       $xfer += $output->writeFieldEnd();
     }
-    if ($this->userComputeResourceId !== null) {
-      $xfer += $output->writeFieldBegin('userComputeResourceId', TType::STRING, 4);
-      $xfer += $output->writeString($this->userComputeResourceId);
-      $xfer += $output->writeFieldEnd();
-    }
-    if ($this->userComputeResourcePreference !== null) {
-      if (!is_object($this->userComputeResourcePreference)) {
-        throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
-      }
-      $xfer += $output->writeFieldBegin('userComputeResourcePreference', TType::STRUCT, 5);
-      $xfer += $this->userComputeResourcePreference->write($output);
-      $xfer += $output->writeFieldEnd();
-    }
     $xfer += $output->writeFieldStop();
     $xfer += $output->writeStructEnd();
     return $xfer;
@@ -57169,11 +57350,11 @@ class Airavata_addUserComputeResourcePreference_args {
 
 }
 
-class Airavata_addUserComputeResourcePreference_result {
+class Airavata_getUserResourceProfile_result {
   static $_TSPEC;
 
   /**
-   * @var bool
+   * @var \Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile
    */
   public $success = null;
   /**
@@ -57198,7 +57379,8 @@ class Airavata_addUserComputeResourcePreference_result {
       self::$_TSPEC = array(
         0 => array(
           'var' => 'success',
-          'type' => TType::BOOL,
+          'type' => TType::STRUCT,
+          'class' => '\Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile',
           ),
         1 => array(
           'var' => 'ire',
@@ -57242,7 +57424,7 @@ class Airavata_addUserComputeResourcePreference_result {
   }
 
   public function getName() {
-    return 'Airavata_addUserComputeResourcePreference_result';
+    return 'Airavata_getUserResourceProfile_result';
   }
 
   public function read($input)
@@ -57261,8 +57443,9 @@ class Airavata_addUserComputeResourcePreference_result {
       switch ($fid)
       {
         case 0:
-          if ($ftype == TType::BOOL) {
-            $xfer += $input->readBool($this->success);
+          if ($ftype == TType::STRUCT) {
+            $this->success = new \Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile();
+            $xfer += $this->success->read($input);
           } else {
             $xfer += $input->skip($ftype);
           }
@@ -57311,10 +57494,13 @@ class Airavata_addUserComputeResourcePreference_result {
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('Airavata_addUserComputeResourcePreference_result');
+    $xfer += $output->writeStructBegin('Airavata_getUserResourceProfile_result');
     if ($this->success !== null) {
-      $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
-      $xfer += $output->writeBool($this->success);
+      if (!is_object($this->success)) {
+        throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+      }
+      $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
+      $xfer += $this->success->write($output);
       $xfer += $output->writeFieldEnd();
     }
     if ($this->ire !== null) {
@@ -57344,7 +57530,7 @@ class Airavata_addUserComputeResourcePreference_result {
 
 }
 
-class Airavata_addUserStoragePreference_args {
+class Airavata_updateUserResourceProfile_args {
   static $_TSPEC;
 
   /**
@@ -57360,13 +57546,9 @@ class Airavata_addUserStoragePreference_args {
    */
   public $gatewayID = null;
   /**
-   * @var string
-   */
-  public $userStorageResourceId = null;
-  /**
-   * @var \Airavata\Model\AppCatalog\UserResourceProfile\UserStoragePreference
+   * @var \Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile
    */
-  public $userStoragePreference = null;
+  public $userResourceProfile = null;
 
   public function __construct($vals=null) {
     if (!isset(self::$_TSPEC)) {
@@ -57385,13 +57567,9 @@ class Airavata_addUserStoragePreference_args {
           'type' => TType::STRING,
           ),
         4 => array(
-          'var' => 'userStorageResourceId',
-          'type' => TType::STRING,
-          ),
-        5 => array(
-          'var' => 'userStoragePreference',
+          'var' => 'userResourceProfile',
           'type' => TType::STRUCT,
-          'class' => '\Airavata\Model\AppCatalog\UserResourceProfile\UserStoragePreference',
+          'class' => '\Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile',
           ),
         );
     }
@@ -57405,17 +57583,14 @@ class Airavata_addUserStoragePreference_args {
       if (isset($vals['gatewayID'])) {
         $this->gatewayID = $vals['gatewayID'];
       }
-      if (isset($vals['userStorageResourceId'])) {
-        $this->userStorageResourceId = $vals['userStorageResourceId'];
-      }
-      if (isset($vals['userStoragePreference'])) {
-        $this->userStoragePreference = $vals['userStoragePreference'];
+      if (isset($vals['userResourceProfile'])) {
+        $this->userResourceProfile = $vals['userResourceProfile'];
       }
     }
   }
 
   public function getName() {
-    return 'Airavata_addUserStoragePreference_args';
+    return 'Airavata_updateUserResourceProfile_args';
   }
 
   public function read($input)
@@ -57456,16 +57631,9 @@ class Airavata_addUserStoragePreference_args {
           }
           break;
         case 4:
-          if ($ftype == TType::STRING) {
-            $xfer += $input->readString($this->userStorageResourceId);
-          } else {
-            $xfer += $input->skip($ftype);
-          }
-          break;
-        case 5:
           if ($ftype == TType::STRUCT) {
-            $this->userStoragePreference = new \Airavata\Model\AppCatalog\UserResourceProfile\UserStoragePreference();
-            $xfer += $this->userStoragePreference->read($input);
+            $this->userResourceProfile = new \Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile();
+            $xfer += $this->userResourceProfile->read($input);
           } else {
             $xfer += $input->skip($ftype);
           }
@@ -57482,7 +57650,7 @@ class Airavata_addUserStoragePreference_args {
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('Airavata_addUserStoragePreference_args');
+    $xfer += $output->writeStructBegin('Airavata_updateUserResourceProfile_args');
     if ($this->authzToken !== null) {
       if (!is_object($this->authzToken)) {
         throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -57501,17 +57669,12 @@ class Airavata_addUserStoragePreference_args {
       $xfer += $output->writeString($this->gatewayID);
       $xfer += $output->writeFieldEnd();
     }
-    if ($this->userStorageResourceId !== null) {
-      $xfer += $output->writeFieldBegin('userStorageResourceId', TType::STRING, 4);
-      $xfer += $output->writeString($this->userStorageResourceId);
-      $xfer += $output->writeFieldEnd();
-    }
-    if ($this->userStoragePreference !== null) {
-      if (!is_object($this->userStoragePreference)) {
+    if ($this->userResourceProfile !== null) {
+      if (!is_object($this->userResourceProfile)) {
         throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
       }
-      $xfer += $output->writeFieldBegin('userStoragePreference', TType::STRUCT, 5);
-      $xfer += $this->userStoragePreference->write($output);
+      $xfer += $output->writeFieldBegin('userResourceProfile', TType::STRUCT, 4);
+      $xfer += $this->userResourceProfile->write($output);
       $xfer += $output->writeFieldEnd();
     }
     $xfer += $output->writeFieldStop();
@@ -57521,7 +57684,7 @@ class Airavata_addUserStoragePreference_args {
 
 }
 
-class Airavata_addUserStoragePreference_result {
+class Airavata_updateUserResourceProfile_result {
   static $_TSPEC;
 
   /**
@@ -57594,7 +57757,7 @@ class Airavata_addUserStoragePreference_result {
   }
 
   public function getName() {
-    return 'Airavata_addUserStoragePreference_result';
+    return 'Airavata_updateUserResourceProfile_result';
   }
 
   public function read($input)
@@ -57663,7 +57826,7 @@ class Airavata_addUserStoragePreference_result {
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('Airavata_addUserStoragePreference_result');
+    $xfer += $output->writeStructBegin('Airavata_updateUserResourceProfile_result');
     if ($this->success !== null) {
       $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
       $xfer += $output->writeBool($this->success);
@@ -57696,7 +57859,7 @@ class Airavata_addUserStoragePreference_result {
 
 }
 
-class Airavata_getUserComputeResourcePreference_args {
+class Airavata_deleteUserResourceProfile_args {
   static $_TSPEC;
 
   /**
@@ -57711,10 +57874,6 @@ class Airavata_getUserComputeResourcePreference_args {
    * @var string
    */
   public $gatewayID = null;
-  /**
-   * @var string
-   */
-  public $userComputeResourceId = null;
 
   public function __construct($vals=null) {
     if (!isset(self::$_TSPEC)) {
@@ -57732,10 +57891,6 @@ class Airavata_getUserComputeResourcePreference_args {
           'var' => 'gatewayID',
           'type' => TType::STRING,
           ),
-        4 => array(
-          'var' => 'userComputeResourceId',
-          'type' => TType::STRING,
-          ),
         );
     }
     if (is_array($vals)) {
@@ -57748,14 +57903,11 @@ class Airavata_getUserComputeResourcePreference_args {
       if (isset($vals['gatewayID'])) {
         $this->gatewayID = $vals['gatewayID'];
       }
-      if (isset($vals['userComputeResourceId'])) {
-        $this->userComputeResourceId = $vals['userComputeResourceId'];
-      }
     }
   }
 
   public function getName() {
-    return 'Airavata_getUserComputeResourcePreference_args';
+    return 'Airavata_deleteUserResourceProfile_args';
   }
 
   public function read($input)
@@ -57795,13 +57947,6 @@ class Airavata_getUserComputeResourcePreference_args {
             $xfer += $input->skip($ftype);
           }
           break;
-        case 4:
-          if ($ftype == TType::STRING) {
-            $xfer += $input->readString($this->userComputeResourceId);
-          } else {
-            $xfer += $input->skip($ftype);
-          }
-          break;
         default:
           $xfer += $input->skip($ftype);
           break;
@@ -57814,7 +57959,7 @@ class Airavata_getUserComputeResourcePreference_args {
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('Airavata_getUserComputeResourcePreference_args');
+    $xfer += $output->writeStructBegin('Airavata_deleteUserResourceProfile_args');
     if ($this->authzToken !== null) {
       if (!is_object($this->authzToken)) {
         throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -57833,11 +57978,6 @@ class Airavata_getUserComputeResourcePreference_args {
       $xfer += $output->writeString($this->gatewayID);
       $xfer += $output->writeFieldEnd();
     }
-    if ($this->userComputeResourceId !== null) {
-      $xfer += $output->writeFieldBegin('userComputeResourceId', TType::STRING, 4);
-      $xfer += $output->writeString($this->userComputeResourceId);
-      $xfer += $output->writeFieldEnd();
-    }
     $xfer += $output->writeFieldStop();
     $xfer += $output->writeStructEnd();
     return $xfer;
@@ -57845,11 +57985,11 @@ class Airavata_getUserComputeResourcePreference_args {
 
 }
 
-class Airavata_getUserComputeResourcePreference_result {
+class Airavata_deleteUserResourceProfile_result {
   static $_TSPEC;
 
   /**
-   * @var \Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference
+   * @var bool
    */
   public $success = null;
   /**
@@ -57874,8 +58014,7 @@ class Airavata_getUserComputeResourcePreference_result {
       self::$_TSPEC = array(
         0 => array(
           'var' => 'success',
-          'type' => TType::STRUCT,
-          'class' => '\Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference',
+          'type' => TType::BOOL,
           ),
         1 => array(
           'var' => 'ire',
@@ -57919,7 +58058,7 @@ class Airavata_getUserComputeResourcePreference_result {
   }
 
   public function getName() {
-    return 'Airavata_getUserComputeResourcePreference_result';
+    return 'Airavata_deleteUserResourceProfile_result';
   }
 
   public function read($input)
@@ -57938,9 +58077,8 @@ class Airavata_getUserComputeResourcePreference_result {
       switch ($fid)
       {
         case 0:
-          if ($ftype == TType::STRUCT) {
-            $this->success = new \Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference();
-            $xfer += $this->success->read($input);
+          if ($ftype == TType::BOOL) {
+            $xfer += $input->readBool($this->success);
           } else {
             $xfer += $input->skip($ftype);
           }
@@ -57989,13 +58127,10 @@ class Airavata_getUserComputeResourcePreference_result {
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('Airavata_getUserComputeResourcePreference_result');
+    $xfer += $output->writeStructBegin('Airavata_deleteUserResourceProfile_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) {
@@ -58025,7 +58160,7 @@ class Airavata_getUserComputeResourcePreference_result {
 
 }
 
-class Airavata_getUserStoragePreference_args {
+class Airavata_addUserComputeResourcePreference_args {
   static $_TSPEC;
 
   /**
@@ -58043,7 +58178,11 @@ class Airavata_getUserStoragePreference_args {
   /**
    * @var string
    */
-  public $userStorageResourceId = null;
+  public $userComputeResourceId = null;
+  /**
+   * @var \Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference
+   */
+  public $userComputeResourcePreference = null;
 
   public function __construct($vals=null) {
     if (!isset(self::$_TSPEC)) {
@@ -58062,9 +58201,14 @@ class Airavata_getUserStoragePreference_args {
           'type' => TType::STRING,
           ),
         4 => array(
-          'var' => 'userStorageResourceId',
+          'var' => 'userComputeResourceId',
           'type' => TType::STRING,
           ),
+        5 => array(
+          'var' => 'userComputeResourcePreference',
+          'type' => TType::STRUCT,
+          'class' => '\Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference',
+          ),
         );
     }
     if (is_array($vals)) {
@@ -58077,14 +58221,17 @@ class Airavata_getUserStoragePreference_args {
       if (isset($vals['gatewayID'])) {
         $this->gatewayID = $vals['gatewayID'];
       }
-      if (isset($vals['userStorageResourceId'])) {
-        $this->userStorageResourceId = $vals['userStorageResourceId'];
+      if (isset($vals['userComputeResourceId'])) {
+        $this->userComputeResourceId = $vals['userComputeResourceId'];
+      }
+      if (isset($vals['userComputeResourcePreference'])) {
+        $this->userComputeResourcePreference = $vals['userComputeResourcePreference'];
       }
     }
   }
 
   public function getName() {
-    return 'Airavata_getUserStoragePreference_args';
+    return 'Airavata_addUserComputeResourcePreference_args';
   }
 
   public function read($input)
@@ -58126,7 +58273,15 @@ class Airavata_getUserStoragePreference_args {
           break;
         case 4:
           if ($ftype == TType::STRING) {
-            $xfer += $input->readString($this->userStorageResourceId);
+            $xfer += $input->readString($this->userComputeResourceId);
+          } else {
+            $xfer += $input->skip($ftype);
+          }
+          break;
+        case 5:
+          if ($ftype == TType::STRUCT) {
+            $this->userComputeResourcePreference = new \Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference();
+            $xfer += $this->userComputeResourcePreference->read($input);
           } else {
             $xfer += $input->skip($ftype);
           }
@@ -58143,7 +58298,7 @@ class Airavata_getUserStoragePreference_args {
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('Airavata_getUserStoragePreference_args');
+    $xfer += $output->writeStructBegin('Airavata_addUserComputeResourcePreference_args');
     if ($this->authzToken !== null) {
       if (!is_object($this->authzToken)) {
         throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -58162,9 +58317,17 @@ class Airavata_getUserStoragePreference_args {
       $xfer += $output->writeString($this->gatewayID);
       $xfer += $output->writeFieldEnd();
     }
-    if ($this->userStorageResourceId !== null) {
-      $xfer += $output->writeFieldBegin('userStorageResourceId', TType::STRING, 4);
-      $xfer += $output->writeString($this->userStorageResourceId);
+    if ($this->userComputeResourceId !== null) {
+      $xfer += $output->writeFieldBegin('userComputeResourceId', TType::STRING, 4);
+      $xfer += $output->writeString($this->userComputeResourceId);
+      $xfer += $output->writeFieldEnd();
+    }
+    if ($this->userComputeResourcePreference !== null) {
+      if (!is_object($this->userComputeResourcePreference)) {
+        throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+      }
+      $xfer += $output->writeFieldBegin('userComputeResourcePreference', TType::STRUCT, 5);
+      $xfer += $this->userComputeResourcePreference->write($output);
       $xfer += $output->writeFieldEnd();
     }
     $xfer += $output->writeFieldStop();
@@ -58174,11 +58337,11 @@ class Airavata_getUserStoragePreference_args {
 
 }
 
-class Airavata_getUserStoragePreference_result {
+class Airavata_addUserComputeResourcePreference_result {
   static $_TSPEC;
 
   /**
-   * @var \Airavata\Model\AppCatalog\UserResourceProfile\UserStoragePreference
+   * @var bool
    */
   public $success = null;
   /**
@@ -58203,8 +58366,7 @@ class Airavata_getUserStoragePreference_result {
       self::$_TSPEC = array(
         0 => array(
           'var' => 'success',
-          'type' => TType::STRUCT,
-          'class' => '\Airavata\Model\AppCatalog\UserResourceProfile\UserStoragePreference',
+          'type' => TType::BOOL,
           ),
         1 => array(
           'var' => 'ire',
@@ -58248,7 +58410,7 @@ class Airavata_getUserStoragePreference_result {
   }
 
   public function getName() {
-    return 'Airavata_getUserStoragePreference_result';
+    return 'Airavata_addUserComputeResourcePreference_result';
   }
 
   public function read($input)
@@ -58267,9 +58429,8 @@ class Airavata_getUserStoragePreference_result {
       switch ($fid)
       {
         case 0:
-          if ($ftype == TType::STRUCT) {
-            $this->success = new \Airavata\Model\AppCatalog\UserResourceProfile\UserStoragePreference();
-            $xfer += $this->success->read($input);
+          if ($ftype == TType::BOOL) {
+            $xfer += $input->readBool($this->success);
           } else {
             $xfer += $input->skip($ftype);
           }
@@ -58318,13 +58479,10 @@ class Airavata_getUserStoragePreference_result {
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('Airavata_getUserStoragePreference_result');
+    $xfer += $output->writeStructBegin('Airavata_addUserComputeResourcePreference_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) {
@@ -58354,7 +58512,7 @@ class Airavata_getUserStoragePreference_result {
 
 }
 
-class Airavata_getAllUserComputeResourcePreferences_args {
+class Airavata_addUserStoragePreference_args {
   static $_TSPEC;
 
   /**
@@ -58369,6 +58527,14 @@ class Airavata_getAllUserComputeResourcePreferences_args {
    * @var string
    */
   public $gatewayID = null;
+  /**
+   * @var string
+   */
+  public $userStorageResourceId = null;
+  /**
+   * @var \Airavata\Model\AppCatalog\UserResourceProfile\UserStoragePreference
+   */
+  public $userStoragePreference = null;
 
   public function __construct($vals=null) {
     if (!isset(self::$_TSPEC)) {
@@ -58386,6 +58552,15 @@ class Airavata_getAllUserComputeResourcePreferences_args {
           'var' => 'gatewayID',
           'type' => TType::STRING,
           ),
+        4 => array(
+          'var' => 'userStorageResourceId',
+          'type' => TType::STRING,
+          ),
+        5 => array(
+          'var' => 'userStoragePreference',
+          'type' => TType::STRUCT,
+          'class' => '\Airavata\Model\AppCatalog\UserResourceProfile\UserStoragePreference',
+          ),
         );
     }
     if (is_array($vals)) {
@@ -58398,11 +58573,17 @@ class Airavata_getAllUserComputeResourcePreferences_args {
       if (isset($vals['gatewayID'])) {
         $this->gatewayID = $vals['gatewayID'];
       }
+      if (isset($vals['userStorageResourceId'])) {
+        $this->userStorageResourceId = $vals['userStorageResourceId'];
+      }
+      if (isset($vals['userStoragePreference'])) {
+        $this->userStoragePreference = $vals['userStoragePreference'];
+      }
     }
   }
 
   public function getName() {
-    return 'Airavata_getAllUserComputeResourcePreferences_args';
+    return 'Airavata_addUserStoragePreference_args';
   }
 
   public function read($input)
@@ -58442,6 +58623,21 @@ class Airavata_getAllUserComputeResourcePreferences_args {
             $xfer += $input->skip($ftype);
           }
           break;
+        case 4:
+          if ($ftype == TType::STRING) {
+            $xfer += $input->readString($this->userStorageResourceId);
+          } else {
+            $xfer += $input->skip($ftype);
+          }
+          break;
+        case 5:
+          if ($ftype == TType::STRUCT) {
+            $this->userStoragePreference = new \Airavata\Model\AppCatalog\UserResourceProfile\UserStoragePreference();
+            $xfer += $this->userStoragePreference->read($input);
+          } else {
+            $xfer += $input->skip($ftype);
+          }
+          break;
         default:
           $xfer += $input->skip($ftype);
           break;
@@ -58454,7 +58650,7 @@ class Airavata_getAllUserComputeResourcePreferences_args {
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('Airavata_getAllUserComputeResourcePreferences_args');
+    $xfer += $output->writeStructBegin('Airavata_addUserStoragePreference_args');
     if ($this->authzToken !== null) {
       if (!is_object($this->authzToken)) {
         throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -58473,6 +58669,19 @@ class Airavata_getAllUserComputeResourcePreferences_args {
       $xfer += $output->writeString($this->gatewayID);
       $xfer += $output->writeFieldEnd();
     }
+    if ($this->userStorageResourceId !== null) {
+      $xfer += $output->writeFieldBegin('userStorageResourceId', TType::STRING, 4);
+      $xfer += $output->writeString($this->userStorageResourceId);
+      $xfer += $output->writeFieldEnd();
+    }
+    if ($this->userStoragePreference !== null) {
+      if (!is_object($this->userStoragePreference)) {
+        throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+      }
+      $xfer += $output->writeFieldBegin('userStoragePreference', TType::STRUCT, 5);
+      $xfer += $this->userStoragePreference->write($output);
+      $xfer += $output->writeFieldEnd();
+    }
     $xfer += $output->writeFieldStop();
     $xfer += $output->writeStructEnd();
     return $xfer;
@@ -58480,11 +58689,11 @@ class Airavata_getAllUserComputeResourcePreferences_args {
 
 }
 
-class Airavata_getAllUserComputeResourcePreferences_result {
+class Airavata_addUserStoragePreference_result {
   static $_TSPEC;
 
   /**
-   * @var \Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference[]
+   * @var bool
    */
   public $success = null;
   /**
@@ -58509,12 +58718,7 @@ class Airavata_getAllUserComputeResourcePreferences_result {
       self::$_TSPEC = array(
         0 => array(
           'var' => 'success',
-          'type' => TType::LST,
-          'etype' => TType::STRUCT,
-          'elem' => array(
-            'type' => TType::STRUCT,
-            'class' => '\Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference',
-            ),
+          'type' => TType::BOOL,
           ),
         1 => array(
           'var' => 'ire',
@@ -58558,7 +58762,7 @@ class Airavata_getAllUserComputeResourcePreferences_result {
   }
 
   public function getName() {
-    return 'Airavata_getAllUserComputeResourcePreferences_result';
+    return 'Airavata_addUserStoragePreference_result';
   }
 
   public function read($input)
@@ -58577,19 +58781,8 @@ class Airavata_getAllUserComputeResourcePreferences_result {
       switch ($fid)
       {
         case 0:
-          if ($ftype == TType::LST) {
-            $this->success = array();
-            $_size253 = 0;
-            $_etype256 = 0;
-            $xfer += $input->readListBegin($_etype256, $_size253);
-            for ($_i257 = 0; $_i257 < $_size253; ++$_i257)
-            {
-              $elem258 = null;
-              $elem258 = new \Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference();
-              $xfer += $elem258->read($input);
-              $this->success []= $elem258;
-            }
-            $xfer += $input->readListEnd();
+          if ($ftype == TType::BOOL) {
+            $xfer += $input->readBool($this->success);
           } else {
             $xfer += $input->skip($ftype);
           }
@@ -58638,22 +58831,10 @@ class Airavata_getAllUserComputeResourcePreferences_result {
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('Airavata_getAllUserComputeResourcePreferences_result');
+    $xfer += $output->writeStructBegin('Airavata_addUserStoragePreference_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 $iter259)
-          {
-            $xfer += $iter259->write($output);
-          }
-        }
-        $output->writeListEnd();
-      }
+      $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+      $xfer += $output->writeBool($this->success);
       $xfer += $output->writeFieldEnd();
     }
     if ($this->ire !== null) {
@@ -58683,7 +58864,7 @@ class Airavata_getAllUserComputeResourcePreferences_result {
 
 }
 
-class Airavata_getAllUserStoragePreferences_args {
+class Airavata_getUserComputeResourcePreference_args {
   static $_TSPEC;
 
   /**
@@ -58698,6 +58879,10 @@ class Airavata_getAllUserStoragePreferences_args {
    * @var string
    */
   public $gatewayID = null;
+  /**
+   * @var string
+   */
+  public $userComputeResourceId = null;
 
   public function __construct($vals=null) {
     if (!isset(self::$_TSPEC)) {
@@ -58715,6 +58900,10 @@ class Airavata_getAllUserStoragePreferences_args {
           'var' => 'gatewayID',
           'type' => TType::STRING,
           ),
+        4 => array(
+          'var' => 'userComputeResourceId',
+          'type' => TType::STRING,
+          ),
         );
     }
     if (is_array($vals)) {
@@ -58727,11 +58916,14 @@ class Airavata_getAllUserStoragePreferences_args {
       if (isset($vals['gatewayID'])) {
         $this->gatewayID = $vals['gatewayID'];
       }
+      if (isset($vals['userComputeResourceId'])) {
+        $this->userComputeResourceId = $vals['userComputeResourceId'];
+      }
     }
   }
 
   public function getName() {
-    return 'Airavata_getAllUserStoragePreferences_args';
+    return 'Airavata_getUserComputeResourcePreference_args';
   }
 
   public function read($input)
@@ -58771,6 +58963,13 @@ class Airavata_getAllUserStoragePreferences_args {
             $xfer += $input->skip($ftype);
           }
           break;
+        case 4:
+          if ($ftype == TType::STRING) {
+            $xfer += $input->readString($this->userComputeResourceId);
+          } else {
+            $xfer += $input->skip($ftype);
+          }
+          break;
         default:
           $xfer += $input->skip($ftype);
           break;
@@ -58783,7 +58982,7 @@ class Airavata_getAllUserStoragePreferences_args {
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('Airavata_getAllUserStoragePreferences_args');
+    $xfer += $output->writeStructBegin('Airavata_getUserComputeResourcePreference_args');
     if ($this->authzToken !== null) {
       if (!is_object($this->authzToken)) {
         throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -58802,6 +59001,11 @@ class Airavata_getAllUserStoragePreferences_args {
       $xfer += $output->writeString($this->gatewayID);
       $xfer += $output->writeFieldEnd();
     }
+    if ($this->userComputeResourceId !== null) {
+      $xfer += $output->writeFieldBegin('userComputeResourceId', TType::STRING, 4);
+      $xfer += $output->writeString($this->userComputeResourceId);
+      $xfer += $output->writeFieldEnd();
+    }
     $xfer += $output->writeFieldStop();
     $xfer += $output->writeStructEnd();
     return $xfer;
@@ -58809,11 +59013,11 @@ class Airavata_getAllUserStoragePreferences_args {
 
 }
 
-class Airavata_getAllUserStoragePreferences_result {
+class Airavata_getUserComputeResourcePreference_result {
   static $_TSPEC;
 
   /**
-   * @var \Airavata\Model\AppCatalog\UserResourceProfile\UserStoragePreference[]
+   * @var \Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference
    */
   public $success = null;
   /**
@@ -58838,12 +59042,8 @@ class Airavata_getAllUserStoragePreferences_result {
       self::$_TSPEC = array(
         0 => array(
           'var' => 'success',
-          'type' => TType::LST,
-          'etype' => TType::STRUCT,
-          'elem' => array(
-            'type' => TType::STRUCT,
-            'class' => '\Airavata\Model\AppCatalog\UserResourceProfile\UserStoragePreference',
-            ),
+          'type' => TType::STRUCT,
+          'class' => '\Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference',
           ),
         1 => array(
           'var' => 'ire',
@@ -58887,7 +59087,7 @@ class Airavata_getAllUserStoragePreferences_result {
   }
 
   public function getName() {
-    return 'Airavata_getAllUserStoragePreferences_result';
+    return 'Airavata_getUserComputeResourcePreference_result';
   }
 
   public function read($input)
@@ -58906,19 +59106,9 @@ class Airavata_getAllUserStoragePreferences_result {
       switch ($fid)
       {
         case 0:
-          if ($ftype == TType::LST) {
-            $this->success = array();
-            $_size260 = 0;
-            $_etype263 = 0;
-            $xfer += $input->readListBegin($_etype263, $_size260);
-            for ($_i264 = 0; $_i264 < $_size260; ++$_i264)
-            {
-              $elem265 = null;
-              $elem265 = new \Airavata\Model\AppCatalog\UserResourceProfile\UserStoragePreference();
-              $xfer += $elem265->read($input);
-              $this->success []= $elem265;
-            }
-            $xfer += $input->readListEnd();
+          if ($ftype == TType::STRUCT) {
+            $this->success = new \Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference();
+            $xfer += $this->success->read($input);
           } else {
             $xfer += $input->skip($ftype);
           }
@@ -58967,22 +59157,13 @@ class Airavata_getAllUserStoragePreferences_result {
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('Airavata_getAllUserStoragePreferences_result');
+    $xfer += $output->writeStructBegin('Airavata_getUserComputeResourcePreference_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 $iter266)
-          {
-            $xfer += $iter266->write($output);
-          }
-        }
-        $output->writeListEnd();
-      }
+      $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
+      $xfer += $this->success->write($output);
       $xfer += $output->writeFieldEnd();
     }
     if ($this->ire !== null) {
@@ -59012,13 +59193,25 @@ class Airavata_getAllUserStoragePreferences_result {
 
 }
 
-class Airavata_getAllUserResourceProfiles_args {
+class Airavata_getUserStoragePreference_args {
   static $_TSPEC;
 
   /**
    * @var \Airavata\Model\Security\AuthzToken
    */
   public $authzToken = null;
+  /**
+   * @var string
+   */
+  public $userId = null;
+  /**
+   * @var string
+   */
+  public $gatewayID = null;
+  /**
+   * @var string
+   */
+  public $userStorageResourceId = null;
 
   public function __construct($vals=null) {
     if (!isset(self::$_TSPEC)) {
@@ -59028,17 +59221,38 @@ class Airavata_getAllUserResourceProfiles_args {
           'type' => TType::STRUCT,
           'class' => '\Airavata\Model\Security\AuthzToken',
           ),
+        2 => array(
+          'var' => 'userId',
+          'type' => TType::STRING,
+          ),
+        3 => array(
+          'var' => 'gatewayID',
+          'type' => TType::STRING,
+          ),
+        4 => array(
+          'var' => 'userStorageResourceId',
+          'type' => TType::STRING,
+          ),
         );
     }
     if (is_array($vals)) {
       if (isset($vals['authzToken'])) {
         $this->authzToken = $vals['authzToken'];
       }
+      if (isset($vals['userId'])) {
+        $this->userId = $vals['userId'];
+      }
+      if (isset($vals['gatewayID'])) {
+        $this->gatewayID = $vals['gatewayID'];
+      }
+      if (isset($vals['userStorageResourceId'])) {
+        $this->userStorageResourceId = $vals['userStorageResourceId'];
+      }
     }
   }
 
   public function getName() {
-    return 'Airavata_getAllUserResourceProfiles_args';
+    return 'Airavata_getUserStoragePreference_args';
   }
 
   public function read($input)
@@ -59064,6 +59278,27 @@ class Airavata_getAllUserResourceProfiles_args {
             $xfer += $input->skip($ftype);
           }
           break;
+        case 2:
+          if ($ftype == TType::STRING) {
+            $xfer += $input->readString($this->userId);
+          } else {
+            $xfer += $input->skip($ftype);
+          }
+          break;
+        case 3:
+          if ($ftype == TType::STRING) {
+            $xfer += $input->readString($this->gatewayID);
+          } else {
+            $xfer += $input->skip($ftype);
+          }
+          break;
+        case 4:
+          if ($ftype == TType::STRING) {
+            $xfer += $input->readString($this->userStorageResourceId);
+          } else {
+            $xfer += $input->skip($ftype);
+          }
+          break;
         default:
           $xfer += $input->skip($ftype);
           break;
@@ -59076,7 +59311,7 @@ class Airavata_getAllUserResourceProfiles_args {
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('Airavata_getAllUserResourceProfiles_args');
+    $xfer += $output->writeStructBegin('Airavata_getUserStoragePreference_args');
     if ($this->authzToken !== null) {
       if (!is_object($this->authzToken)) {
         throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -59085,6 +59320,21 @@ class Airavata_getAllUserResourceProfiles_args {
       $xfer += $this->authzToken->write($output);
       $xfer += $output->writeFieldEnd();
     }
+    if ($this->userId !== null) {
+      $xfer += $output->writeFieldBegin('userId', TType::STRING, 2);
+      $xfer += $output->writeString($this->userId);
+      $xfer += $output->writeFieldEnd();
+    }
+    if ($this->gatewayID !== null) {
+      $xfer += $output->writeFieldBegin('gatewayID', TType::STRING, 3);
+      $xfer += $output->writeString($this->gatewayID);
+      $xfer += $output->writeFieldEnd();
+    }
+    if ($this->userStorageResourceId !== null) {
+      $xfer += $output->writeFieldBegin('userStorageResourceId', TType::STRING, 4);
+      $xfer += $output->writeString($this->userStorageResourceId);
+      $xfer += $output->writeFieldEnd();
+    }
     $xfer += $output->writeFieldStop();
     $xfer += $output->writeStructEnd();
     return $xfer;
@@ -59092,11 +59342,11 @@ class Airavata_getAllUserResourceProfiles_args {
 
 }
 
-class Airavata_getAllUserResourceProfiles_result {
+class Airavata_getUserStoragePreference_result {
   static $_TSPEC;
 
   /**
-   * @var \Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile[]
+   * @var \Airavata\Model\AppCatalog\UserResourceProfile\UserStoragePreference
    */
   public $success = null;
   /**
@@ -59121,12 +59371,8 @@ class Airavata_getAllUserResourceProfiles_result {
       self::$_TSPEC = array(
         0 => array(
           'var' => 'success',
-          'type' => TType::LST,
-          'etype' => TType::STRUCT,
-          'elem' => array(
-            'type' => TType::STRUCT,
-            'class' => '\Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile',
-            ),
+          'type' => TType::STRUCT,
+          'class' => '\Airavata\Model\AppCatalog\UserResourceProfile\UserStoragePreference',
           ),
         1 => array(
           'var' => 'ire',
@@ -59170,7 +59416,7 @@ class Airavata_getAllUserResourceProfiles_result {
   }
 
   public function getName() {
-    return 'Airavata_getAllUserResourceProfiles_result';
+    return 'Airavata_getUserStoragePreference_result';
   }
 
   public function read($input)
@@ -59189,19 +59435,9 @@ class Airavata_getAllUserResourceProfiles_result {
       switch ($fid)
       {
         case 0:
-          if ($ftype == TType::LST) {
-            $this->success = array();
-            $_size267 = 0;
-            $_etype270 = 0;
-            $xfer += $input->readListBegin($_etype270, $_size267);
-            for ($_i271 = 0; $_i271 < $_size267; ++$_i271)
-            {
-              $elem272 = null;
-              $elem272 = new \Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile();
-              $xfer += $elem272->read($input);
-              $this->success []= $elem272;
-            }
-            $xfer += $input->readListEnd();
+          if ($ftype == TType::STRUCT) {
+            $this->success = new \Airavata\Model\AppCatalog\UserResourceProfile\UserStoragePreference();
+            $xfer += $this->success->read($input);
           } else {
             $xfer += $input->skip($ftype);
           }
@@ -59250,22 +59486,13 @@ class Airavata_getAllUserResourceProfiles_result {
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('Airavata_getAllUserResourceProfiles_result');
+    $xfer += $output->writeStructBegin('Airavata_getUserStoragePreference_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 $iter273)
-          {
-            $xfer += $iter273->write($output);
-          }
-        }
-        $output->writeListEnd();
-      }
+      $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
+      $xfer += $this->success->write($output);
       $xfer += $output->writeFieldEnd();
     }
     if ($this->ire !== null) {
@@ -59295,7 +59522,7 @@ class Airavata_getAllUserResourceProfiles_result {
 
 }
 
-class Airavata_updateUserComputeResourcePreference_args {
+class Airavata_getAllUserComputeResourcePreferences_args {
   static $_TSPEC;
 
   /**
@@ -59310,14 +59537,6 @@ class Airavata_updateUserComputeResourcePreference_args {
    * @var string
    */
   public $gatewayID = null;
-  /**
-   * @var string
-   */
-  public $userComputeResourceId = null;
-  /**
-   * @var \Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference
-   */
-  public $userComputeResourcePreference = null;
 
   public function __construct($vals=null) {
     if (!isset(self::$_TSPEC)) {
@@ -59335,15 +59554,6 @@ class Airavata_updateUserComputeResourcePreference_args {
           'var' => 'gatewayID',
           'type' => TType::STRING,
           ),
-        4 => array(
-          'var' => 'userComputeResourceId',
-          'type' => TType::STRING,
-          ),
-        5 => array(
-          'var' => 'userComputeResourcePreference',
-          'type' => TType::STRUCT,
-          'class' => '\Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference',
-          ),
         );
     }
     if (is_array($vals)) {
@@ -59356,17 +59566,11 @@ class Airavata_updateUserComputeResourcePreference_args {
       if (isset($vals['gatewayID'])) {
         $this->gatewayID = $vals['gatewayID'];
       }
-      if (isset($vals['userComputeResourceId'])) {
-        $this->userComputeResourceId = $vals['userComputeResourceId'];
-      }
-      if (isset($vals['userComputeResourcePreference'])) {
-        $this->userComputeResourcePreference = $vals['userComputeResourcePreference'];
-      }
     }
   }
 
   public function getName() {
-    return 'Airavata_updateUserComputeResourcePreference_args';
+    return 'Airavata_getAllUserComputeResourcePreferences_args';
   }
 
   public function read($input)
@@ -59406,21 +59610,6 @@ class Airavata_updateUserComputeResourcePreference_args {
             $xfer += $input->skip($ftype);
           }
           break;
-        case 4:
-          if ($ftype == TType::STRING) {
-            $xfer += $input->readString($this->userComputeResourceId);
-          } else {
-            $xfer += $input->skip($ftype);
-          }
-          break;
-        case 5:
-          if ($ftype == TType::STRUCT) {
-            $this->userComputeResourcePreference = new \Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference();
-            $xfer += $this->userComputeResourcePreference->read($input);
-          } else {
-            $xfer += $input->skip($ftype);
-          }
-          break;
         default:
           $xfer += $input->skip($ftype);
           break;
@@ -59433,7 +59622,7 @@ class Airavata_updateUserComputeResourcePreference_args {
 
   public functi

<TRUNCATED>