Ejemplo n.º 1
0
 public function __construct($vals = null)
 {
     if (!isset(self::$_TSPEC)) {
         self::$_TSPEC = array(1 => array('var' => 'gatewayID', 'type' => TType::STRING), 2 => array('var' => 'computeResourcePreferences', 'type' => TType::LST, 'etype' => TType::STRUCT, 'elem' => array('type' => TType::STRUCT, 'class' => '\\Airavata\\Model\\AppCatalog\\GatewayProfile\\ComputeResourcePreference')));
     }
     if (is_array($vals)) {
         if (isset($vals['gatewayID'])) {
             $this->gatewayID = $vals['gatewayID'];
         }
         if (isset($vals['computeResourcePreferences'])) {
             $this->computeResourcePreferences = $vals['computeResourcePreferences'];
         }
     }
 }
Ejemplo n.º 2
0
 public function __construct($vals=null) {
   if (!isset(self::$_TSPEC)) {
     self::$_TSPEC = array(
       1 => array(
         'var' => 'gatewayID',
         'type' => TType::STRING,
         ),
       2 => array(
         'var' => 'credentialStoreToken',
         'type' => TType::STRING,
         ),
       3 => array(
         'var' => 'computeResourcePreferences',
         'type' => TType::LST,
         'etype' => TType::STRUCT,
         'elem' => array(
           'type' => TType::STRUCT,
           'class' => '\Airavata\Model\AppCatalog\GatewayProfile\ComputeResourcePreference',
           ),
         ),
       4 => array(
         'var' => 'dataStoragePreferences',
         'type' => TType::LST,
         'etype' => TType::STRUCT,
         'elem' => array(
           'type' => TType::STRUCT,
           'class' => '\Airavata\Model\AppCatalog\GatewayProfile\DataStoragePreference',
           ),
         ),
       );
   }
   if (is_array($vals)) {
     if (isset($vals['gatewayID'])) {
       $this->gatewayID = $vals['gatewayID'];
     }
     if (isset($vals['credentialStoreToken'])) {
       $this->credentialStoreToken = $vals['credentialStoreToken'];
     }
     if (isset($vals['computeResourcePreferences'])) {
       $this->computeResourcePreferences = $vals['computeResourcePreferences'];
     }
     if (isset($vals['dataStoragePreferences'])) {
       $this->dataStoragePreferences = $vals['dataStoragePreferences'];
     }
   }
 }