http://git-wip-us.apache.org/repos/asf/airavata/blob/82e57526/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/Airavata.php ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/Airavata.php b/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/Airavata.php index dea5fab..0b41f51 100644 --- a/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/Airavata.php +++ b/airavata-api/airavata-client-sdks/airavata-php-sdk/src/main/resources/lib/Airavata/API/Airavata.php @@ -3255,13 +3255,20 @@ interface AiravataIf { * @param userId * The identifier for the requested user resource profile. * + * @param gatewayID + * The identifier to link a gateway for the requested user resource profile. + * * @return UserResourceProfile * User Resource Profile Object. * * * @param \Airavata\Model\Security\AuthzToken $authzToken * @param string $userId - * @return \Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile Gateway Resource Profile + * @param string $gatewayID + * @return \Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile User Resource Profile + * + * userId: + * Unique identifier used to link user to corresponding user data model * * gatewayID: * Unique identifier for the gateway assigned by Airavata. Corelate this to Airavata Admin API Gateway Registration. @@ -3282,13 +3289,16 @@ interface AiravataIf { * @throws \Airavata\API\Error\AiravataSystemException * @throws \Airavata\API\Error\AuthorizationException */ - public function getUserResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, $userId); + public function getUserResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID); /** * Update a User Resource Profile. * * @param userId * The identifier for the requested user resource to be updated. * + * @param gatewayID + * The identifier to link a gateway for the requested user resource profile. + * * @param UserResourceProfile * User Resource Profile Object. * @@ -3298,6 +3308,7 @@ interface AiravataIf { * * @param \Airavata\Model\Security\AuthzToken $authzToken * @param string $userId + * @param string $gatewayID * @param \Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile $userResourceProfile * @return bool * @throws \Airavata\API\Error\InvalidRequestException @@ -3305,32 +3316,39 @@ interface AiravataIf { * @throws \Airavata\API\Error\AiravataSystemException * @throws \Airavata\API\Error\AuthorizationException */ - public function updateUserResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, $userId, \Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile $userResourceProfile); + public function updateUserResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID, \Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile $userResourceProfile); /** * Delete the given User Resource Profile. * * @param userId * The identifier for the requested user resource to be deleted. * + * @param gatewayID + * The identifier to link a gateway for the requested user resource profile. + * * @return status * Returns a success/failure of the deletion. * * * @param \Airavata\Model\Security\AuthzToken $authzToken * @param string $userId + * @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 deleteUserResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, $userId); + public function deleteUserResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID); /** * Add a Compute Resource Preference to a registered User profile. * * @param userId * The identifier for the User resource profile to be added. * + * @param gatewayID + * The identifier to link a gateway for the requested user resource profile. + * * @param computeResourceId * Preferences related to a particular compute resource * @@ -3344,21 +3362,25 @@ interface AiravataIf { * * @param \Airavata\Model\Security\AuthzToken $authzToken * @param string $userId - * @param string $computeResourceId - * @param \Airavata\Model\AppCatalog\UserResourceProfile\ComputeResourcePreference $computeResourcePreference + * @param string $gatewayID + * @param string $userComputeResourceId + * @param \Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference $userComputeResourcePreference * @return bool * @throws \Airavata\API\Error\InvalidRequestException * @throws \Airavata\API\Error\AiravataClientException * @throws \Airavata\API\Error\AiravataSystemException * @throws \Airavata\API\Error\AuthorizationException */ - public function addUserComputeResourcePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $computeResourceId, \Airavata\Model\AppCatalog\UserResourceProfile\ComputeResourcePreference $computeResourcePreference); + public function addUserComputeResourcePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID, $userComputeResourceId, \Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference $userComputeResourcePreference); /** * Add a Storage Resource Preference to a registered user resource profile. * * @param userId * The identifier of the user resource profile to be added. * + * @param gatewayID + * The identifier to link a gateway for the requested user resource profile. + * * @param storageResourceId * Preferences related to a particular compute resource * @@ -3372,15 +3394,16 @@ interface AiravataIf { * * @param \Airavata\Model\Security\AuthzToken $authzToken * @param string $userId - * @param string $storageResourceId - * @param \Airavata\Model\AppCatalog\UserResourceProfile\StoragePreference $storagePreference + * @param string $gatewayID + * @param string $userStorageResourceId + * @param \Airavata\Model\AppCatalog\UserResourceProfile\UserStoragePreference $userStoragePreference * @return bool * @throws \Airavata\API\Error\InvalidRequestException * @throws \Airavata\API\Error\AiravataClientException * @throws \Airavata\API\Error\AiravataSystemException * @throws \Airavata\API\Error\AuthorizationException */ - public function addUserStoragePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $storageResourceId, \Airavata\Model\AppCatalog\UserResourceProfile\StoragePreference $storagePreference); + public function addUserStoragePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID, $userStorageResourceId, \Airavata\Model\AppCatalog\UserResourceProfile\UserStoragePreference $userStoragePreference); /** * * Fetch a Compute Resource Preference of a registered user resource profile. @@ -3388,7 +3411,10 @@ interface AiravataIf { * @param userId * The identifier for the user profile to be requested * - * @param computeResourceId + * @param gatewayID + * The identifier to link a gateway for the requested user resource profile. + * + * @param userComputeResourceId * Preferences related to a particular compute resource * * @return computeResourcePreference @@ -3397,8 +3423,9 @@ interface AiravataIf { * * @param \Airavata\Model\Security\AuthzToken $authzToken * @param string $userId - * @param string $computeResourceId - * @return \Airavata\Model\AppCatalog\UserResourceProfile\ComputeResourcePreference Gateway specific preferences for a Computer Resource + * @param string $gatewayID + * @param string $userComputeResourceId + * @return \Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference User specific preferences for a Computer Resource * * computeResourceId: * Corelate the preference to a compute resource. @@ -3429,7 +3456,7 @@ interface AiravataIf { * @throws \Airavata\API\Error\AiravataSystemException * @throws \Airavata\API\Error\AuthorizationException */ - public function getUserComputeResourcePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $computeResourceId); + public function getUserComputeResourcePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID, $userComputeResourceId); /** * * Fetch a Storage Resource Preference of a registered user resource profile. @@ -3437,23 +3464,74 @@ interface AiravataIf { * @param userId * The identifier of the user resource profile to request to fetch the particular storage resource preference. * - * @param storageResourceId + * @param gatewayID + * The identifier to link a gateway for the requested user resource profile. + * + * @param userStorageResourceId * Identifier of the Stprage Preference required to be fetched. * + * @return UserStoragePreference + * Returns the StoragePreference object. + * + * + * @param \Airavata\Model\Security\AuthzToken $authzToken + * @param string $userId + * @param string $gatewayID + * @param string $userStorageResourceId + * @return \Airavata\Model\AppCatalog\UserResourceProfile\UserStoragePreference + * @throws \Airavata\API\Error\InvalidRequestException + * @throws \Airavata\API\Error\AiravataClientException + * @throws \Airavata\API\Error\AiravataSystemException + * @throws \Airavata\API\Error\AuthorizationException + */ + public function getUserStoragePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID, $userStorageResourceId); + /** + * + * Fetch all Compute Resource Preferences of a registered gateway profile. + * + * @param userId + * The identifier of the user resource profile to request to fetch the particular storage resource preference. + * + * @param gatewayID + * The identifier for the gateway profile to be requested + * + * @return computeResourcePreference + * Returns the ComputeResourcePreference object. + * + * + * @param \Airavata\Model\Security\AuthzToken $authzToken + * @param string $userId + * @param string $gatewayID + * @return \Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference[] + * @throws \Airavata\API\Error\InvalidRequestException + * @throws \Airavata\API\Error\AiravataClientException + * @throws \Airavata\API\Error\AiravataSystemException + * @throws \Airavata\API\Error\AuthorizationException + */ + public function getAllUserComputeResourcePreferences(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID); + /** + * Fetch all User Storage Resource Preferences of a registered user profile. + * + * @param userId + * The identifier of the user resource profile to request to fetch the particular storage resource preference. + * + * @param gatewayID + * The identifier for the gateway profile to be requested + * * @return StoragePreference * Returns the StoragePreference object. * * * @param \Airavata\Model\Security\AuthzToken $authzToken * @param string $userId - * @param string $storageResourceId - * @return \Airavata\Model\AppCatalog\UserResourceProfile\StoragePreference + * @param string $gatewayID + * @return \Airavata\Model\AppCatalog\UserResourceProfile\UserStoragePreference[] * @throws \Airavata\API\Error\InvalidRequestException * @throws \Airavata\API\Error\AiravataClientException * @throws \Airavata\API\Error\AiravataSystemException * @throws \Airavata\API\Error\AuthorizationException */ - public function getUserStoragePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $storageResourceId); + public function getAllUserStoragePreferences(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID); /** * * Fetch all user resources Profiles registered @@ -3477,10 +3555,13 @@ interface AiravataIf { * @param userId * The identifier for the user profile to be updated. * - * @param computeResourceId + * @param gatewayID + * The identifier to link a gateway for the requested user resource profile. + * + * @param userComputeResourceId * Preferences related to a particular compute resource * - * @param computeResourcePreference + * @param userComputeResourcePreference * The ComputeResourcePreference object to be updated to the resource profile. * * @return status @@ -3489,25 +3570,29 @@ interface AiravataIf { * * @param \Airavata\Model\Security\AuthzToken $authzToken * @param string $userId - * @param string $computeResourceId - * @param \Airavata\Model\AppCatalog\UserResourceProfile\ComputeResourcePreference $computeResourcePreference + * @param string $gatewayID + * @param string $userComputeResourceId + * @param \Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference $userComputeResourcePreference * @return bool * @throws \Airavata\API\Error\InvalidRequestException * @throws \Airavata\API\Error\AiravataClientException * @throws \Airavata\API\Error\AiravataSystemException * @throws \Airavata\API\Error\AuthorizationException */ - public function updateUserComputeResourcePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $computeResourceId, \Airavata\Model\AppCatalog\UserResourceProfile\ComputeResourcePreference $computeResourcePreference); + public function updateUserComputeResourcePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID, $userComputeResourceId, \Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference $userComputeResourcePreference); /** * Update a Storage Resource Preference of a registered user resource profile. * * @param userId * The identifier of the user resource profile to be updated. * - * @param storageId + * @param gatewayID + * The identifier to link a gateway for the requested user resource profile. + * + * @param userStorageId * The Storage resource identifier of the one that you want to update * - * @param storagePreference + * @param userStoragePreference * The storagePreference object to be updated to the resource profile. * * @return status @@ -3516,22 +3601,26 @@ interface AiravataIf { * * @param \Airavata\Model\Security\AuthzToken $authzToken * @param string $userId - * @param string $storageId - * @param \Airavata\Model\AppCatalog\UserResourceProfile\StoragePreference $storagePreference + * @param string $gatewayID + * @param string $userStorageId + * @param \Airavata\Model\AppCatalog\UserResourceProfile\UserStoragePreference $userStoragePreference * @return bool * @throws \Airavata\API\Error\InvalidRequestException * @throws \Airavata\API\Error\AiravataClientException * @throws \Airavata\API\Error\AiravataSystemException * @throws \Airavata\API\Error\AuthorizationException */ - public function updateUserStoragePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $storageId, \Airavata\Model\AppCatalog\UserResourceProfile\StoragePreference $storagePreference); + public function updateUserStoragePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID, $userStorageId, \Airavata\Model\AppCatalog\UserResourceProfile\UserStoragePreference $userStoragePreference); /** * Delete the Compute Resource Preference of a registered user resource profile. * * @param userId * The identifier for the user resource profile to be deleted. * - * @param computeResourceId + * @param gatewayID + * The identifier to link a gateway for the requested user resource profile. + * + * @param userComputeResourceId * Preferences related to a particular compute resource * * @return status @@ -3540,21 +3629,25 @@ interface AiravataIf { * * @param \Airavata\Model\Security\AuthzToken $authzToken * @param string $userId - * @param string $computeResourceId + * @param string $gatewayID + * @param string $userComputeResourceId * @return bool * @throws \Airavata\API\Error\InvalidRequestException * @throws \Airavata\API\Error\AiravataClientException * @throws \Airavata\API\Error\AiravataSystemException * @throws \Airavata\API\Error\AuthorizationException */ - public function deleteUserComputeResourcePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $computeResourceId); + public function deleteUserComputeResourcePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID, $userComputeResourceId); /** * Delete the Storage Resource Preference of a registered user resource profile. * * @param userId * The identifier of the user profile to be deleted. * - * @param storageId + * @param gatewayID + * The identifier to link a gateway for the requested user resource profile. + * + * @param userStorageId * ID of the storage preference you want to delete. * * @return status @@ -3563,14 +3656,15 @@ interface AiravataIf { * * @param \Airavata\Model\Security\AuthzToken $authzToken * @param string $userId - * @param string $storageId + * @param string $gatewayID + * @param string $userStorageId * @return bool * @throws \Airavata\API\Error\InvalidRequestException * @throws \Airavata\API\Error\AiravataClientException * @throws \Airavata\API\Error\AiravataSystemException * @throws \Airavata\API\Error\AuthorizationException */ - public function deleteUserStoragePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $storageId); + public function deleteUserStoragePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID, $userStorageId); /** * @param \Airavata\Model\Security\AuthzToken $authzToken * @param string $gatewayId @@ -3790,14 +3884,6 @@ interface AiravataIf { * @throws \Airavata\API\Error\AuthorizationException */ public function getAllGroupsUserBelongs(\Airavata\Model\Security\AuthzToken $authzToken, $userName, $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 isDataSharingEnabled(); } class AiravataClient implements \Airavata\API\AiravataIf { @@ -12216,17 +12302,18 @@ class AiravataClient implements \Airavata\API\AiravataIf { throw new \Exception("registerUserResourceProfile failed: unknown result"); } - public function getUserResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, $userId) + public function getUserResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID) { - $this->send_getUserResourceProfile($authzToken, $userId); + $this->send_getUserResourceProfile($authzToken, $userId, $gatewayID); return $this->recv_getUserResourceProfile(); } - public function send_getUserResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, $userId) + public function send_getUserResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID) { $args = new \Airavata\API\Airavata_getUserResourceProfile_args(); $args->authzToken = $authzToken; $args->userId = $userId; + $args->gatewayID = $gatewayID; $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { @@ -12280,17 +12367,18 @@ class AiravataClient implements \Airavata\API\AiravataIf { throw new \Exception("getUserResourceProfile failed: unknown result"); } - public function updateUserResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, $userId, \Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile $userResourceProfile) + public function updateUserResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID, \Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile $userResourceProfile) { - $this->send_updateUserResourceProfile($authzToken, $userId, $userResourceProfile); + $this->send_updateUserResourceProfile($authzToken, $userId, $gatewayID, $userResourceProfile); return $this->recv_updateUserResourceProfile(); } - public function send_updateUserResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, $userId, \Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile $userResourceProfile) + public function send_updateUserResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID, \Airavata\Model\AppCatalog\UserResourceProfile\UserResourceProfile $userResourceProfile) { $args = new \Airavata\API\Airavata_updateUserResourceProfile_args(); $args->authzToken = $authzToken; $args->userId = $userId; + $args->gatewayID = $gatewayID; $args->userResourceProfile = $userResourceProfile; $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) @@ -12345,17 +12433,18 @@ class AiravataClient implements \Airavata\API\AiravataIf { throw new \Exception("updateUserResourceProfile failed: unknown result"); } - public function deleteUserResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, $userId) + public function deleteUserResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID) { - $this->send_deleteUserResourceProfile($authzToken, $userId); + $this->send_deleteUserResourceProfile($authzToken, $userId, $gatewayID); return $this->recv_deleteUserResourceProfile(); } - public function send_deleteUserResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, $userId) + public function send_deleteUserResourceProfile(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID) { $args = new \Airavata\API\Airavata_deleteUserResourceProfile_args(); $args->authzToken = $authzToken; $args->userId = $userId; + $args->gatewayID = $gatewayID; $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { @@ -12409,19 +12498,20 @@ class AiravataClient implements \Airavata\API\AiravataIf { throw new \Exception("deleteUserResourceProfile failed: unknown result"); } - public function addUserComputeResourcePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $computeResourceId, \Airavata\Model\AppCatalog\UserResourceProfile\ComputeResourcePreference $computeResourcePreference) + public function addUserComputeResourcePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID, $userComputeResourceId, \Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference $userComputeResourcePreference) { - $this->send_addUserComputeResourcePreference($authzToken, $userId, $computeResourceId, $computeResourcePreference); + $this->send_addUserComputeResourcePreference($authzToken, $userId, $gatewayID, $userComputeResourceId, $userComputeResourcePreference); return $this->recv_addUserComputeResourcePreference(); } - public function send_addUserComputeResourcePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $computeResourceId, \Airavata\Model\AppCatalog\UserResourceProfile\ComputeResourcePreference $computeResourcePreference) + public function send_addUserComputeResourcePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID, $userComputeResourceId, \Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference $userComputeResourcePreference) { $args = new \Airavata\API\Airavata_addUserComputeResourcePreference_args(); $args->authzToken = $authzToken; $args->userId = $userId; - $args->computeResourceId = $computeResourceId; - $args->computeResourcePreference = $computeResourcePreference; + $args->gatewayID = $gatewayID; + $args->userComputeResourceId = $userComputeResourceId; + $args->userComputeResourcePreference = $userComputeResourcePreference; $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { @@ -12475,19 +12565,20 @@ class AiravataClient implements \Airavata\API\AiravataIf { throw new \Exception("addUserComputeResourcePreference failed: unknown result"); } - public function addUserStoragePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $storageResourceId, \Airavata\Model\AppCatalog\UserResourceProfile\StoragePreference $storagePreference) + public function addUserStoragePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID, $userStorageResourceId, \Airavata\Model\AppCatalog\UserResourceProfile\UserStoragePreference $userStoragePreference) { - $this->send_addUserStoragePreference($authzToken, $userId, $storageResourceId, $storagePreference); + $this->send_addUserStoragePreference($authzToken, $userId, $gatewayID, $userStorageResourceId, $userStoragePreference); return $this->recv_addUserStoragePreference(); } - public function send_addUserStoragePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $storageResourceId, \Airavata\Model\AppCatalog\UserResourceProfile\StoragePreference $storagePreference) + public function send_addUserStoragePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID, $userStorageResourceId, \Airavata\Model\AppCatalog\UserResourceProfile\UserStoragePreference $userStoragePreference) { $args = new \Airavata\API\Airavata_addUserStoragePreference_args(); $args->authzToken = $authzToken; $args->userId = $userId; - $args->storageResourceId = $storageResourceId; - $args->storagePreference = $storagePreference; + $args->gatewayID = $gatewayID; + $args->userStorageResourceId = $userStorageResourceId; + $args->userStoragePreference = $userStoragePreference; $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { @@ -12541,18 +12632,19 @@ class AiravataClient implements \Airavata\API\AiravataIf { throw new \Exception("addUserStoragePreference failed: unknown result"); } - public function getUserComputeResourcePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $computeResourceId) + public function getUserComputeResourcePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID, $userComputeResourceId) { - $this->send_getUserComputeResourcePreference($authzToken, $userId, $computeResourceId); + $this->send_getUserComputeResourcePreference($authzToken, $userId, $gatewayID, $userComputeResourceId); return $this->recv_getUserComputeResourcePreference(); } - public function send_getUserComputeResourcePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $computeResourceId) + public function send_getUserComputeResourcePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID, $userComputeResourceId) { $args = new \Airavata\API\Airavata_getUserComputeResourcePreference_args(); $args->authzToken = $authzToken; $args->userId = $userId; - $args->computeResourceId = $computeResourceId; + $args->gatewayID = $gatewayID; + $args->userComputeResourceId = $userComputeResourceId; $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { @@ -12606,18 +12698,19 @@ class AiravataClient implements \Airavata\API\AiravataIf { throw new \Exception("getUserComputeResourcePreference failed: unknown result"); } - public function getUserStoragePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $storageResourceId) + public function getUserStoragePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID, $userStorageResourceId) { - $this->send_getUserStoragePreference($authzToken, $userId, $storageResourceId); + $this->send_getUserStoragePreference($authzToken, $userId, $gatewayID, $userStorageResourceId); return $this->recv_getUserStoragePreference(); } - public function send_getUserStoragePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $storageResourceId) + public function send_getUserStoragePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID, $userStorageResourceId) { $args = new \Airavata\API\Airavata_getUserStoragePreference_args(); $args->authzToken = $authzToken; $args->userId = $userId; - $args->storageResourceId = $storageResourceId; + $args->gatewayID = $gatewayID; + $args->userStorageResourceId = $userStorageResourceId; $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { @@ -12671,6 +12764,136 @@ class AiravataClient implements \Airavata\API\AiravataIf { throw new \Exception("getUserStoragePreference failed: unknown result"); } + public function getAllUserComputeResourcePreferences(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID) + { + $this->send_getAllUserComputeResourcePreferences($authzToken, $userId, $gatewayID); + return $this->recv_getAllUserComputeResourcePreferences(); + } + + public function send_getAllUserComputeResourcePreferences(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID) + { + $args = new \Airavata\API\Airavata_getAllUserComputeResourcePreferences_args(); + $args->authzToken = $authzToken; + $args->userId = $userId; + $args->gatewayID = $gatewayID; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'getAllUserComputeResourcePreferences', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('getAllUserComputeResourcePreferences', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_getAllUserComputeResourcePreferences() + { + $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_getAllUserComputeResourcePreferences_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_getAllUserComputeResourcePreferences_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("getAllUserComputeResourcePreferences failed: unknown result"); + } + + public function getAllUserStoragePreferences(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID) + { + $this->send_getAllUserStoragePreferences($authzToken, $userId, $gatewayID); + return $this->recv_getAllUserStoragePreferences(); + } + + public function send_getAllUserStoragePreferences(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID) + { + $args = new \Airavata\API\Airavata_getAllUserStoragePreferences_args(); + $args->authzToken = $authzToken; + $args->userId = $userId; + $args->gatewayID = $gatewayID; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'getAllUserStoragePreferences', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('getAllUserStoragePreferences', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_getAllUserStoragePreferences() + { + $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_getAllUserStoragePreferences_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_getAllUserStoragePreferences_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("getAllUserStoragePreferences failed: unknown result"); + } + public function getAllUserResourceProfiles(\Airavata\Model\Security\AuthzToken $authzToken) { $this->send_getAllUserResourceProfiles($authzToken); @@ -12734,19 +12957,20 @@ class AiravataClient implements \Airavata\API\AiravataIf { throw new \Exception("getAllUserResourceProfiles failed: unknown result"); } - public function updateUserComputeResourcePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $computeResourceId, \Airavata\Model\AppCatalog\UserResourceProfile\ComputeResourcePreference $computeResourcePreference) + public function updateUserComputeResourcePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID, $userComputeResourceId, \Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference $userComputeResourcePreference) { - $this->send_updateUserComputeResourcePreference($authzToken, $userId, $computeResourceId, $computeResourcePreference); + $this->send_updateUserComputeResourcePreference($authzToken, $userId, $gatewayID, $userComputeResourceId, $userComputeResourcePreference); return $this->recv_updateUserComputeResourcePreference(); } - public function send_updateUserComputeResourcePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $computeResourceId, \Airavata\Model\AppCatalog\UserResourceProfile\ComputeResourcePreference $computeResourcePreference) + public function send_updateUserComputeResourcePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID, $userComputeResourceId, \Airavata\Model\AppCatalog\UserResourceProfile\UserComputeResourcePreference $userComputeResourcePreference) { $args = new \Airavata\API\Airavata_updateUserComputeResourcePreference_args(); $args->authzToken = $authzToken; $args->userId = $userId; - $args->computeResourceId = $computeResourceId; - $args->computeResourcePreference = $computeResourcePreference; + $args->gatewayID = $gatewayID; + $args->userComputeResourceId = $userComputeResourceId; + $args->userComputeResourcePreference = $userComputeResourcePreference; $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { @@ -12800,19 +13024,20 @@ class AiravataClient implements \Airavata\API\AiravataIf { throw new \Exception("updateUserComputeResourcePreference failed: unknown result"); } - public function updateUserStoragePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $storageId, \Airavata\Model\AppCatalog\UserResourceProfile\StoragePreference $storagePreference) + public function updateUserStoragePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID, $userStorageId, \Airavata\Model\AppCatalog\UserResourceProfile\UserStoragePreference $userStoragePreference) { - $this->send_updateUserStoragePreference($authzToken, $userId, $storageId, $storagePreference); + $this->send_updateUserStoragePreference($authzToken, $userId, $gatewayID, $userStorageId, $userStoragePreference); return $this->recv_updateUserStoragePreference(); } - public function send_updateUserStoragePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $storageId, \Airavata\Model\AppCatalog\UserResourceProfile\StoragePreference $storagePreference) + public function send_updateUserStoragePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID, $userStorageId, \Airavata\Model\AppCatalog\UserResourceProfile\UserStoragePreference $userStoragePreference) { $args = new \Airavata\API\Airavata_updateUserStoragePreference_args(); $args->authzToken = $authzToken; $args->userId = $userId; - $args->storageId = $storageId; - $args->storagePreference = $storagePreference; + $args->gatewayID = $gatewayID; + $args->userStorageId = $userStorageId; + $args->userStoragePreference = $userStoragePreference; $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { @@ -12866,18 +13091,19 @@ class AiravataClient implements \Airavata\API\AiravataIf { throw new \Exception("updateUserStoragePreference failed: unknown result"); } - public function deleteUserComputeResourcePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $computeResourceId) + public function deleteUserComputeResourcePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID, $userComputeResourceId) { - $this->send_deleteUserComputeResourcePreference($authzToken, $userId, $computeResourceId); + $this->send_deleteUserComputeResourcePreference($authzToken, $userId, $gatewayID, $userComputeResourceId); return $this->recv_deleteUserComputeResourcePreference(); } - public function send_deleteUserComputeResourcePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $computeResourceId) + public function send_deleteUserComputeResourcePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID, $userComputeResourceId) { $args = new \Airavata\API\Airavata_deleteUserComputeResourcePreference_args(); $args->authzToken = $authzToken; $args->userId = $userId; - $args->computeResourceId = $computeResourceId; + $args->gatewayID = $gatewayID; + $args->userComputeResourceId = $userComputeResourceId; $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { @@ -12931,18 +13157,19 @@ class AiravataClient implements \Airavata\API\AiravataIf { throw new \Exception("deleteUserComputeResourcePreference failed: unknown result"); } - public function deleteUserStoragePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $storageId) + public function deleteUserStoragePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID, $userStorageId) { - $this->send_deleteUserStoragePreference($authzToken, $userId, $storageId); + $this->send_deleteUserStoragePreference($authzToken, $userId, $gatewayID, $userStorageId); return $this->recv_deleteUserStoragePreference(); } - public function send_deleteUserStoragePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $storageId) + public function send_deleteUserStoragePreference(\Airavata\Model\Security\AuthzToken $authzToken, $userId, $gatewayID, $userStorageId) { $args = new \Airavata\API\Airavata_deleteUserStoragePreference_args(); $args->authzToken = $authzToken; $args->userId = $userId; - $args->storageId = $storageId; + $args->gatewayID = $gatewayID; + $args->userStorageId = $userStorageId; $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); if ($bin_accel) { @@ -13440,79 +13667,11 @@ class AiravataClient implements \Airavata\API\AiravataIf { throw new \Exception("isWorkflowExistWithName failed: unknown result"); } -<<<<<<< HEAD public function registerDataProduct(\Airavata\Model\Security\AuthzToken $authzToken, \Airavata\Model\Data\Replica\DataProductModel $dataProductModel) { $this->send_registerDataProduct($authzToken, $dataProductModel); return $this->recv_registerDataProduct(); } -======= - public function isDataSharingEnabled() - { - $this->send_isDataSharingEnabled(); - return $this->recv_isDataSharingEnabled(); - } - - public function send_isDataSharingEnabled() - { - $args = new \Airavata\API\Airavata_isDataSharingEnabled_args(); - $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); - if ($bin_accel) - { - thrift_protocol_write_binary($this->output_, 'isDataSharingEnabled', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); - } - else - { - $this->output_->writeMessageBegin('isDataSharingEnabled', TMessageType::CALL, $this->seqid_); - $args->write($this->output_); - $this->output_->writeMessageEnd(); - $this->output_->getTransport()->flush(); - } - } - - public function recv_isDataSharingEnabled() - { - $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_isDataSharingEnabled_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_isDataSharingEnabled_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("isDataSharingEnabled failed: unknown result"); - } - -} - -// HELPER FUNCTIONS AND STRUCTURES ->>>>>>> upstream/develop public function send_registerDataProduct(\Airavata\Model\Security\AuthzToken $authzToken, \Airavata\Model\Data\Replica\DataProductModel $dataProductModel) { @@ -25376,7 +25535,714 @@ class Airavata_updateExperiment_result { } public function getName() { - return 'Airavata_updateExperiment_result'; + return 'Airavata_updateExperiment_result'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRUCT) { + $this->ire = new \Airavata\API\Error\InvalidRequestException(); + $xfer += $this->ire->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->enf = new \Airavata\API\Error\ExperimentNotFoundException(); + $xfer += $this->enf->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRUCT) { + $this->ace = new \Airavata\API\Error\AiravataClientException(); + $xfer += $this->ace->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::STRUCT) { + $this->ase = new \Airavata\API\Error\AiravataSystemException(); + $xfer += $this->ase->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::STRUCT) { + $this->ae = new \Airavata\API\Error\AuthorizationException(); + $xfer += $this->ae->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('Airavata_updateExperiment_result'); + if ($this->ire !== null) { + $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1); + $xfer += $this->ire->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->enf !== null) { + $xfer += $output->writeFieldBegin('enf', TType::STRUCT, 2); + $xfer += $this->enf->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->ace !== null) { + $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 3); + $xfer += $this->ace->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->ase !== null) { + $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 4); + $xfer += $this->ase->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->ae !== null) { + $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 5); + $xfer += $this->ae->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class Airavata_updateExperimentConfiguration_args { + static $_TSPEC; + + /** + * @var \Airavata\Model\Security\AuthzToken + */ + public $authzToken = null; + /** + * @var string + */ + public $airavataExperimentId = null; + /** + * @var \Airavata\Model\Experiment\UserConfigurationDataModel + */ + public $userConfiguration = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'authzToken', + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Security\AuthzToken', + ), + 2 => array( + 'var' => 'airavataExperimentId', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'userConfiguration', + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Experiment\UserConfigurationDataModel', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['authzToken'])) { + $this->authzToken = $vals['authzToken']; + } + if (isset($vals['airavataExperimentId'])) { + $this->airavataExperimentId = $vals['airavataExperimentId']; + } + if (isset($vals['userConfiguration'])) { + $this->userConfiguration = $vals['userConfiguration']; + } + } + } + + public function getName() { + return 'Airavata_updateExperimentConfiguration_args'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRUCT) { + $this->authzToken = new \Airavata\Model\Security\AuthzToken(); + $xfer += $this->authzToken->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->airavataExperimentId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRUCT) { + $this->userConfiguration = new \Airavata\Model\Experiment\UserConfigurationDataModel(); + $xfer += $this->userConfiguration->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('Airavata_updateExperimentConfiguration_args'); + if ($this->authzToken !== null) { + if (!is_object($this->authzToken)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('authzToken', TType::STRUCT, 1); + $xfer += $this->authzToken->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->airavataExperimentId !== null) { + $xfer += $output->writeFieldBegin('airavataExperimentId', TType::STRING, 2); + $xfer += $output->writeString($this->airavataExperimentId); + $xfer += $output->writeFieldEnd(); + } + if ($this->userConfiguration !== null) { + if (!is_object($this->userConfiguration)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('userConfiguration', TType::STRUCT, 3); + $xfer += $this->userConfiguration->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class Airavata_updateExperimentConfiguration_result { + static $_TSPEC; + + /** + * @var \Airavata\API\Error\AuthorizationException + */ + public $ae = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'ae', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\AuthorizationException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['ae'])) { + $this->ae = $vals['ae']; + } + } + } + + public function getName() { + return 'Airavata_updateExperimentConfiguration_result'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRUCT) { + $this->ae = new \Airavata\API\Error\AuthorizationException(); + $xfer += $this->ae->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('Airavata_updateExperimentConfiguration_result'); + if ($this->ae !== null) { + $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 1); + $xfer += $this->ae->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class Airavata_updateResourceScheduleing_args { + static $_TSPEC; + + /** + * @var \Airavata\Model\Security\AuthzToken + */ + public $authzToken = null; + /** + * @var string + */ + public $airavataExperimentId = null; + /** + * @var \Airavata\Model\Scheduling\ComputationalResourceSchedulingModel + */ + public $resourceScheduling = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'authzToken', + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Security\AuthzToken', + ), + 2 => array( + 'var' => 'airavataExperimentId', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'resourceScheduling', + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Scheduling\ComputationalResourceSchedulingModel', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['authzToken'])) { + $this->authzToken = $vals['authzToken']; + } + if (isset($vals['airavataExperimentId'])) { + $this->airavataExperimentId = $vals['airavataExperimentId']; + } + if (isset($vals['resourceScheduling'])) { + $this->resourceScheduling = $vals['resourceScheduling']; + } + } + } + + public function getName() { + return 'Airavata_updateResourceScheduleing_args'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRUCT) { + $this->authzToken = new \Airavata\Model\Security\AuthzToken(); + $xfer += $this->authzToken->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->airavataExperimentId); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRUCT) { + $this->resourceScheduling = new \Airavata\Model\Scheduling\ComputationalResourceSchedulingModel(); + $xfer += $this->resourceScheduling->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('Airavata_updateResourceScheduleing_args'); + if ($this->authzToken !== null) { + if (!is_object($this->authzToken)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('authzToken', TType::STRUCT, 1); + $xfer += $this->authzToken->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->airavataExperimentId !== null) { + $xfer += $output->writeFieldBegin('airavataExperimentId', TType::STRING, 2); + $xfer += $output->writeString($this->airavataExperimentId); + $xfer += $output->writeFieldEnd(); + } + if ($this->resourceScheduling !== null) { + if (!is_object($this->resourceScheduling)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('resourceScheduling', TType::STRUCT, 3); + $xfer += $this->resourceScheduling->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class Airavata_updateResourceScheduleing_result { + static $_TSPEC; + + /** + * @var \Airavata\API\Error\AuthorizationException + */ + public $ae = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'ae', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\AuthorizationException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['ae'])) { + $this->ae = $vals['ae']; + } + } + } + + public function getName() { + return 'Airavata_updateResourceScheduleing_result'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRUCT) { + $this->ae = new \Airavata\API\Error\AuthorizationException(); + $xfer += $this->ae->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('Airavata_updateResourceScheduleing_result'); + if ($this->ae !== null) { + $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 1); + $xfer += $this->ae->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class Airavata_validateExperiment_args { + static $_TSPEC; + + /** + * @var \Airavata\Model\Security\AuthzToken + */ + public $authzToken = null; + /** + * @var string + */ + public $airavataExperimentId = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'authzToken', + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Security\AuthzToken', + ), + 2 => array( + 'var' => 'airavataExperimentId', + 'type' => TType::STRING, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['authzToken'])) { + $this->authzToken = $vals['authzToken']; + } + if (isset($vals['airavataExperimentId'])) { + $this->airavataExperimentId = $vals['airavataExperimentId']; + } + } + } + + public function getName() { + return 'Airavata_validateExperiment_args'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRUCT) { + $this->authzToken = new \Airavata\Model\Security\AuthzToken(); + $xfer += $this->authzToken->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->airavataExperimentId); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('Airavata_validateExperiment_args'); + if ($this->authzToken !== null) { + if (!is_object($this->authzToken)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('authzToken', TType::STRUCT, 1); + $xfer += $this->authzToken->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->airavataExperimentId !== null) { + $xfer += $output->writeFieldBegin('airavataExperimentId', TType::STRING, 2); + $xfer += $output->writeString($this->airavataExperimentId); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class Airavata_validateExperiment_result { + static $_TSPEC; + + /** + * @var bool + */ + public $success = null; + /** + * @var \Airavata\API\Error\InvalidRequestException + */ + public $ire = null; + /** + * @var \Airavata\API\Error\ExperimentNotFoundException + */ + public $enf = null; + /** + * @var \Airavata\API\Error\AiravataClientException + */ + public $ace = null; + /** + * @var \Airavata\API\Error\AiravataSystemException + */ + public $ase = null; + /** + * @var \Airavata\API\Error\AuthorizationException + */ + public $ae = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::BOOL, + ), + 1 => array( + 'var' => 'ire', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\InvalidRequestException', + ), + 2 => array( + 'var' => 'enf', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\ExperimentNotFoundException', + ), + 3 => array( + 'var' => 'ace', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\AiravataClientException', + ), + 4 => array( + 'var' => 'ase', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\AiravataSystemException', + ), + 5 => array( + 'var' => 'ae', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\AuthorizationException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + if (isset($vals['ire'])) { + $this->ire = $vals['ire']; + } + if (isset($vals['enf'])) { + $this->enf = $vals['enf']; + } + if (isset($vals['ace'])) { + $this->ace = $vals['ace']; + } + if (isset($vals['ase'])) { + $this->ase = $vals['ase']; + } + if (isset($vals['ae'])) { + $this->ae = $vals['ae']; + } + } + } + + public function getName() { + return 'Airavata_validateExperiment_result'; } public function read($input) @@ -25394,6 +26260,13 @@ class Airavata_updateExperiment_result { } switch ($fid) { + case 0: + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->success); + } else { + $xfer += $input->skip($ftype); + } + break; case 1: if ($ftype == TType::STRUCT) { $this->ire = new \Airavata\API\Error\InvalidRequestException(); @@ -25446,7 +26319,12 @@ class Airavata_updateExperiment_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_updateExperiment_result'); + $xfer += $output->writeStructBegin('Airavata_validateExperiment_result'); + if ($this->success !== null) { + $xfer += $output->writeFieldBegin('success', TType::BOOL, 0); + $xfer += $output->writeBool($this->success); + $xfer += $output->writeFieldEnd(); + } if ($this->ire !== null) { $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1); $xfer += $this->ire->write($output); @@ -25479,7 +26357,7 @@ class Airavata_updateExperiment_result { } -class Airavata_updateExperimentConfiguration_args { +class Airavata_launchExperiment_args { static $_TSPEC; /** @@ -25491,9 +26369,9 @@ class Airavata_updateExperimentConfiguration_args { */ public $airavataExperimentId = null; /** - * @var \Airavata\Model\Experiment\UserConfigurationDataModel + * @var string */ - public $userConfiguration = null; + public $gatewayId = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -25508,9 +26386,8 @@ class Airavata_updateExperimentConfiguration_args { 'type' => TType::STRING, ), 3 => array( - 'var' => 'userConfiguration', - 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Experiment\UserConfigurationDataModel', + 'var' => 'gatewayId', + 'type' => TType::STRING, ), ); } @@ -25521,14 +26398,14 @@ class Airavata_updateExperimentConfiguration_args { if (isset($vals['airavataExperimentId'])) { $this->airavataExperimentId = $vals['airavataExperimentId']; } - if (isset($vals['userConfiguration'])) { - $this->userConfiguration = $vals['userConfiguration']; + if (isset($vals['gatewayId'])) { + $this->gatewayId = $vals['gatewayId']; } } } public function getName() { - return 'Airavata_updateExperimentConfiguration_args'; + return 'Airavata_launchExperiment_args'; } public function read($input) @@ -25562,9 +26439,8 @@ class Airavata_updateExperimentConfiguration_args { } break; case 3: - if ($ftype == TType::STRUCT) { - $this->userConfiguration = new \Airavata\Model\Experiment\UserConfigurationDataModel(); - $xfer += $this->userConfiguration->read($input); + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->gatewayId); } else { $xfer += $input->skip($ftype); } @@ -25581,7 +26457,7 @@ class Airavata_updateExperimentConfiguration_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_updateExperimentConfiguration_args'); + $xfer += $output->writeStructBegin('Airavata_launchExperiment_args'); if ($this->authzToken !== null) { if (!is_object($this->authzToken)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -25595,12 +26471,9 @@ class Airavata_updateExperimentConfiguration_args { $xfer += $output->writeString($this->airavataExperimentId); $xfer += $output->writeFieldEnd(); } - if ($this->userConfiguration !== null) { - if (!is_object($this->userConfiguration)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('userConfiguration', TType::STRUCT, 3); - $xfer += $this->userConfiguration->write($output); + if ($this->gatewayId !== null) { + $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 3); + $xfer += $output->writeString($this->gatewayId); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); @@ -25610,133 +26483,81 @@ class Airavata_updateExperimentConfiguration_args { } -class Airavata_updateExperimentConfiguration_result { +class Airavata_launchExperiment_result { static $_TSPEC; /** - * @var \Airavata\API\Error\AuthorizationException + * @var \Airavata\API\Error\InvalidRequestException */ - public $ae = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'ae', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AuthorizationException', - ), - ); - } - if (is_array($vals)) { - if (isset($vals['ae'])) { - $this->ae = $vals['ae']; - } - } - } - - public function getName() { - return 'Airavata_updateExperimentConfiguration_result'; - } - - public function read($input) - { - $xfer = 0; - $fname = null; - $ftype = 0; - $fid = 0; - $xfer += $input->readStructBegin($fname); - while (true) - { - $xfer += $input->readFieldBegin($fname, $ftype, $fid); - if ($ftype == TType::STOP) { - break; - } - switch ($fid) - { - case 1: - if ($ftype == TType::STRUCT) { - $this->ae = new \Airavata\API\Error\AuthorizationException(); - $xfer += $this->ae->read($input); - } else { - $xfer += $input->skip($ftype); - } - break; - default: - $xfer += $input->skip($ftype); - break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_updateExperimentConfiguration_result'); - if ($this->ae !== null) { - $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 1); - $xfer += $this->ae->write($output); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class Airavata_updateResourceScheduleing_args { - static $_TSPEC; - + public $ire = null; /** - * @var \Airavata\Model\Security\AuthzToken + * @var \Airavata\API\Error\ExperimentNotFoundException */ - public $authzToken = null; + public $enf = null; /** - * @var string + * @var \Airavata\API\Error\AiravataClientException */ - public $airavataExperimentId = null; + public $ace = null; /** - * @var \Airavata\Model\Scheduling\ComputationalResourceSchedulingModel + * @var \Airavata\API\Error\AiravataSystemException */ - public $resourceScheduling = null; + public $ase = null; + /** + * @var \Airavata\API\Error\AuthorizationException + */ + public $ae = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( 1 => array( - 'var' => 'authzToken', + 'var' => 'ire', 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Security\AuthzToken', + 'class' => '\Airavata\API\Error\InvalidRequestException', ), 2 => array( - 'var' => 'airavataExperimentId', - 'type' => TType::STRING, + 'var' => 'enf', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\ExperimentNotFoundException', ), 3 => array( - 'var' => 'resourceScheduling', + 'var' => 'ace', 'type' => TType::STRUCT, - 'class' => '\Airavata\Model\Scheduling\ComputationalResourceSchedulingModel', + 'class' => '\Airavata\API\Error\AiravataClientException', + ), + 4 => array( + 'var' => 'ase', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\AiravataSystemException', + ), + 5 => array( + 'var' => 'ae', + 'type' => TType::STRUCT, + 'class' => '\Airavata\API\Error\AuthorizationException', ), ); } if (is_array($vals)) { - if (isset($vals['authzToken'])) { - $this->authzToken = $vals['authzToken']; + if (isset($vals['ire'])) { + $this->ire = $vals['ire']; } - if (isset($vals['airavataExperimentId'])) { - $this->airavataExperimentId = $vals['airavataExperimentId']; + if (isset($vals['enf'])) { + $this->enf = $vals['enf']; } - if (isset($vals['resourceScheduling'])) { - $this->resourceScheduling = $vals['resourceScheduling']; + if (isset($vals['ace'])) { + $this->ace = $vals['ace']; + } + if (isset($vals['ase'])) { + $this->ase = $vals['ase']; + } + if (isset($vals['ae'])) { + $this->ae = $vals['ae']; } } } public function getName() { - return 'Airavata_updateResourceScheduleing_args'; + return 'Airavata_launchExperiment_result'; } public function read($input) @@ -25756,113 +26577,37 @@ class Airavata_updateResourceScheduleing_args { { case 1: if ($ftype == TType::STRUCT) { - $this->authzToken = new \Airavata\Model\Security\AuthzToken(); - $xfer += $this->authzToken->read($input); + $this->ire = new \Airavata\API\Error\InvalidRequestException(); + $xfer += $this->ire->read($input); } else { $xfer += $input->skip($ftype); } break; case 2: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->airavataExperimentId); + if ($ftype == TType::STRUCT) { + $this->enf = new \Airavata\API\Error\ExperimentNotFoundException(); + $xfer += $this->enf->read($input); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::STRUCT) { - $this->resourceScheduling = new \Airavata\Model\Scheduling\ComputationalResourceSchedulingModel(); - $xfer += $this->resourceScheduling->read($input); + $this->ace = new \Airavata\API\Error\AiravataClientException(); + $xfer += $this->ace->read($input); } else { $xfer += $input->skip($ftype); } break; - default: - $xfer += $input->skip($ftype); + case 4: + if ($ftype == TType::STRUCT) { + $this->ase = new \Airavata\API\Error\AiravataSystemException(); + $xfer += $this->ase->read($input); + } else { + $xfer += $input->skip($ftype); + } break; - } - $xfer += $input->readFieldEnd(); - } - $xfer += $input->readStructEnd(); - return $xfer; - } - - public function write($output) { - $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_updateResourceScheduleing_args'); - if ($this->authzToken !== null) { - if (!is_object($this->authzToken)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('authzToken', TType::STRUCT, 1); - $xfer += $this->authzToken->write($output); - $xfer += $output->writeFieldEnd(); - } - if ($this->airavataExperimentId !== null) { - $xfer += $output->writeFieldBegin('airavataExperimentId', TType::STRING, 2); - $xfer += $output->writeString($this->airavataExperimentId); - $xfer += $output->writeFieldEnd(); - } - if ($this->resourceScheduling !== null) { - if (!is_object($this->resourceScheduling)) { - throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); - } - $xfer += $output->writeFieldBegin('resourceScheduling', TType::STRUCT, 3); - $xfer += $this->resourceScheduling->write($output); - $xfer += $output->writeFieldEnd(); - } - $xfer += $output->writeFieldStop(); - $xfer += $output->writeStructEnd(); - return $xfer; - } - -} - -class Airavata_updateResourceScheduleing_result { - static $_TSPEC; - - /** - * @var \Airavata\API\Error\AuthorizationException - */ - public $ae = null; - - public function __construct($vals=null) { - if (!isset(self::$_TSPEC)) { - self::$_TSPEC = array( - 1 => array( - 'var' => 'ae', - 'type' => TType::STRUCT, - 'class' => '\Airavata\API\Error\AuthorizationException', - ), - ); - } - if (is_array($vals)) { - if (isset($vals['ae'])) { - $this->ae = $vals['ae']; - } - } - } - - public function getName() { - return 'Airavata_updateResourceScheduleing_result'; - } - - public function read($input) - { - $xfer = 0; - $fname = null; - $ftype = 0; - $fid = 0; - $xfer += $input->readStructBegin($fname); - while (true) - { - $xfer += $input->readFieldBegin($fname, $ftype, $fid); - if ($ftype == TType::STOP) { - break; - } - switch ($fid) - { - case 1: + case 5: if ($ftype == TType::STRUCT) { $this->ae = new \Airavata\API\Error\AuthorizationException(); $xfer += $this->ae->read($input); @@ -25882,9 +26627,29 @@ class Airavata_updateResourceScheduleing_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_updateResourceScheduleing_result'); + $xfer += $output->writeStructBegin('Airavata_launchExperiment_result'); + if ($this->ire !== null) { + $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1); + $xfer += $this->ire->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->enf !== null) { + $xfer += $output->writeFieldBegin('enf', TType::STRUCT, 2); + $xfer += $this->enf->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->ace !== null) { + $xfer += $output->writeFieldBegin('ace', TType::STRUCT, 3); + $xfer += $this->ace->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->ase !== null) { + $xfer += $output->writeFieldBegin('ase', TType::STRUCT, 4); + $xfer += $this->ase->write($output); + $xfer += $output->writeFieldEnd(); + } if ($this->ae !== null) { - $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 1); + $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 5); $xfer += $this->ae->write($output); $xfer += $output->writeFieldEnd(); } @@ -25895,7 +26660,7 @@ class Airavata_updateResourceScheduleing_result { } -class Airavata_validateExperiment_args { +class Airavata_getExperimentStatus_args { static $_TSPEC; /** @@ -25932,7 +26697,7 @@ class Airavata_validateExperiment_args { } public function getName() { - return 'Airavata_validateExperiment_args'; + return 'Airavata_getExperimentStatus_args'; } public function read($input) @@ -25977,7 +26742,7 @@ class Airavata_validateExperiment_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_validateExperiment_args'); + $xfer += $output->writeStructBegin('Airavata_getExperimentStatus_args'); if ($this->authzToken !== null) { if (!is_object($this->authzToken)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -25998,11 +26763,11 @@ class Airavata_validateExperiment_args { } -class Airavata_validateExperiment_result { +class Airavata_getExperimentStatus_result { static $_TSPEC; /** - * @var bool + * @var \Airavata\Model\Status\ExperimentStatus */ public $success = null; /** @@ -26031,7 +26796,8 @@ class Airavata_validateExperiment_result { self::$_TSPEC = array( 0 => array( 'var' => 'success', - 'type' => TType::BOOL, + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Status\ExperimentStatus', ), 1 => array( 'var' => 'ire', @@ -26083,7 +26849,7 @@ class Airavata_validateExperiment_result { } public function getName() { - return 'Airavata_validateExperiment_result'; + return 'Airavata_getExperimentStatus_result'; } public function read($input) @@ -26102,8 +26868,9 @@ class Airavata_validateExperiment_result { switch ($fid) { case 0: - if ($ftype == TType::BOOL) { - $xfer += $input->readBool($this->success); + if ($ftype == TType::STRUCT) { + $this->success = new \Airavata\Model\Status\ExperimentStatus(); + $xfer += $this->success->read($input); } else { $xfer += $input->skip($ftype); } @@ -26160,10 +26927,13 @@ class Airavata_validateExperiment_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_validateExperiment_result'); + $xfer += $output->writeStructBegin('Airavata_getExperimentStatus_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) { @@ -26198,7 +26968,7 @@ class Airavata_validateExperiment_result { } -class Airavata_launchExperiment_args { +class Airavata_getExperimentOutputs_args { static $_TSPEC; /** @@ -26209,10 +26979,6 @@ class Airavata_launchExperiment_args { * @var string */ public $airavataExperimentId = null; - /** - * @var string - */ - public $gatewayId = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -26226,10 +26992,6 @@ class Airavata_launchExperiment_args { 'var' => 'airavataExperimentId', 'type' => TType::STRING, ), - 3 => array( - 'var' => 'gatewayId', - 'type' => TType::STRING, - ), ); } if (is_array($vals)) { @@ -26239,14 +27001,11 @@ class Airavata_launchExperiment_args { if (isset($vals['airavataExperimentId'])) { $this->airavataExperimentId = $vals['airavataExperimentId']; } - if (isset($vals['gatewayId'])) { - $this->gatewayId = $vals['gatewayId']; - } } } public function getName() { - return 'Airavata_launchExperiment_args'; + return 'Airavata_getExperimentOutputs_args'; } public function read($input) @@ -26279,13 +27038,6 @@ class Airavata_launchExperiment_args { $xfer += $input->skip($ftype); } break; - case 3: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->gatewayId); - } else { - $xfer += $input->skip($ftype); - } - break; default: $xfer += $input->skip($ftype); break; @@ -26298,7 +27050,7 @@ class Airavata_launchExperiment_args { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_launchExperiment_args'); + $xfer += $output->writeStructBegin('Airavata_getExperimentOutputs_args'); if ($this->authzToken !== null) { if (!is_object($this->authzToken)) { throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); @@ -26312,11 +27064,6 @@ class Airavata_launchExperiment_args { $xfer += $output->writeString($this->airavataExperimentId); $xfer += $output->writeFieldEnd(); } - if ($this->gatewayId !== null) { - $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 3); - $xfer += $output->writeString($this->gatewayId); - $xfer += $output->writeFieldEnd(); - } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -26324,10 +27071,14 @@ class Airavata_launchExperiment_args { } -class Airavata_launchExperiment_result { +class Airavata_getExperimentOutputs_result { static $_TSPEC; /** + * @var \Airavata\Model\Application\Io\OutputDataObjectType[] + */ + public $success = null; + /** * @var \Airavata\API\Error\InvalidRequestException */ public $ire = null; @@ -26351,6 +27102,15 @@ class Airavata_launchExperiment_result { public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\Airavata\Model\Application\Io\OutputDataObjectType', + ), + ), 1 => array( 'var' => 'ire', 'type' => TType::STRUCT, @@ -26379,6 +27139,9 @@ class Airavata_launchExperiment_result { ); } if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } if (isset($vals['ire'])) { $this->ire = $vals['ire']; } @@ -26398,7 +27161,7 @@ class Airavata_launchExperiment_result { } public function getName() { - return 'Airavata_launchExperiment_result'; + return 'Airavata_getExperimentOutputs_result'; } public function read($input) @@ -26416,6 +27179,24 @@ class Airavata_launchExperiment_result { } switch ($fid) { + case 0: + if ($ftype == TType::LST) { + $this->success = array(); + $_size92 = 0; + $_etype95 = 0; + $xfer += $input->readListBegin($_etype95, $_size92); + for ($_i96 = 0; $_i96 < $_size92; ++$_i96) + { + $elem97 = null; + $elem97 = new \Airavata\Model\Application\Io\OutputDataObjectType(); + $xfer += $elem97->read($input); + $this->success []= $elem97; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; case 1: if ($ftype == TType::STRUCT) { $this->ire = new \Airavata\API\Error\InvalidRequestException(); @@ -26468,7 +27249,24 @@ class Airavata_launchExperiment_result { public function write($output) { $xfer = 0; - $xfer += $output->writeStructBegin('Airavata_launchExperiment_result'); + $xfer += $output->writeStructBegin('Airavata_getExperimentOutputs_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 $iter98) + { + $xfer += $iter98->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } if ($this->ire !== null) { $xfer += $output->writeFieldBegin('ire', TType::STRUCT, 1); $xfer += $this->ire->write($output); @@ -26501,7 +27299,7 @@ class Airavata_launchExperime
<TRUNCATED>
