You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sc...@apache.org on 2015/08/02 22:42:46 UTC
[05/13] airavata git commit: removing non paginated versions of API
methods for project and experiment retrieval, from Airavata API
http://git-wip-us.apache.org/repos/asf/airavata/blob/dc61c676/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 fba2a7c..38e6e6a 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
@@ -188,25 +188,6 @@ interface AiravataIf {
*/
public function deleteProject(\Airavata\Model\Security\AuthzToken $authzToken, $projectId);
/**
- * * Get all Project by user
- * *
- * * @param gatewayId
- * * The identifier for the requested gateway.
- * *
- * * @param userName
- * * The Project Object described in the workspace_model
- * * @deprecated Instead use getAllUserProjectsWithPagination
- * *
- *
- * @param string $gatewayId
- * @param string $userName
- * @return \Airavata\Model\Workspace\Project[]
- * @throws \Airavata\API\Error\InvalidRequestException
- * @throws \Airavata\API\Error\AiravataClientException
- * @throws \Airavata\API\Error\AiravataSystemException
- */
- public function getAllUserProjects($gatewayId, $userName);
- /**
* * Get all Project by user with pagination. Results will be ordered based
* * on creation time DESC
* *
@@ -231,27 +212,7 @@ interface AiravataIf {
* @throws \Airavata\API\Error\AiravataSystemException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function getAllUserProjectsWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset);
- /**
- * Get all Project for user by project name
- *
- * @param gatewayId
- * The identifier for the requested gateway.
- * @param userName
- * The identifier of the user
- * @param projectName
- * The name of the project on which the results to be fetched
- * @deprecated Instead use searchProjectsByProjectNameWithPagination
- *
- * @param string $gatewayId
- * @param string $userName
- * @param string $projectName
- * @return \Airavata\Model\Workspace\Project[]
- * @throws \Airavata\API\Error\InvalidRequestException
- * @throws \Airavata\API\Error\AiravataClientException
- * @throws \Airavata\API\Error\AiravataSystemException
- */
- public function searchProjectsByProjectName($gatewayId, $userName, $projectName);
+ public function getUserProjects(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset);
/**
* Get all Project for user by project name with pagination.Results will be ordered based
* on creation time DESC
@@ -279,26 +240,7 @@ interface AiravataIf {
* @throws \Airavata\API\Error\AiravataSystemException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function searchProjectsByProjectNameWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $projectName, $limit, $offset);
- /**
- * Get all Project for user by project description
- * @param gatewayId
- * The identifier for the requested gateway.
- * @param userName
- * The identifier of the user
- * @param description
- * The description to be matched
- * @deprecated Instead use searchProjectsByProjectDescWithPagination
- *
- * @param string $gatewayId
- * @param string $userName
- * @param string $description
- * @return \Airavata\Model\Workspace\Project[]
- * @throws \Airavata\API\Error\InvalidRequestException
- * @throws \Airavata\API\Error\AiravataClientException
- * @throws \Airavata\API\Error\AiravataSystemException
- */
- public function searchProjectsByProjectDesc($gatewayId, $userName, $description);
+ public function searchProjectsByProjectName(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $projectName, $limit, $offset);
/**
* Search and get all Projects for user by project description with pagination. Results
* will be ordered based on creation time DESC
@@ -326,29 +268,7 @@ interface AiravataIf {
* @throws \Airavata\API\Error\AiravataSystemException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function searchProjectsByProjectDescWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset);
- /**
- * Search Experiments by experiment name
- *
- * @param gatewayId
- * Identifier of the requested gateway
- * @param useNname
- * Username of the requested user
- * @param expName
- * Experiment name to be matched
- * @deprecated
- * Instead use searchExperimentsByNameWithPagination
- *
- *
- * @param string $gatewayId
- * @param string $userName
- * @param string $expName
- * @return \Airavata\Model\Experiment\ExperimentSummaryModel[]
- * @throws \Airavata\API\Error\InvalidRequestException
- * @throws \Airavata\API\Error\AiravataClientException
- * @throws \Airavata\API\Error\AiravataSystemException
- */
- public function searchExperimentsByName($gatewayId, $userName, $expName);
+ public function searchProjectsByProjectDesc(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset);
/**
* Search Experiments by experiment name with pagination. Results will be sorted
* based on creation time DESC
@@ -376,28 +296,7 @@ interface AiravataIf {
* @throws \Airavata\API\Error\AiravataSystemException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function searchExperimentsByNameWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $expName, $limit, $offset);
- /**
- * Search Experiments by experiment name
- *
- * @param gatewayId
- * Identifier of the requested gateway
- * @param userName
- * Username of the requested user
- * @param description
- * Experiment description to be matched
- * @deprecated
- * Instead use searchExperimentsByDescWithPagination
- *
- * @param string $gatewayId
- * @param string $userName
- * @param string $description
- * @return \Airavata\Model\Experiment\ExperimentSummaryModel[]
- * @throws \Airavata\API\Error\InvalidRequestException
- * @throws \Airavata\API\Error\AiravataClientException
- * @throws \Airavata\API\Error\AiravataSystemException
- */
- public function searchExperimentsByDesc($gatewayId, $userName, $description);
+ public function searchExperimentsByName(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $expName, $limit, $offset);
/**
* Search Experiments by experiment name with pagination. Results will be sorted
* based on creation time DESC
@@ -425,28 +324,7 @@ interface AiravataIf {
* @throws \Airavata\API\Error\AiravataSystemException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function searchExperimentsByDescWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset);
- /**
- * Search Experiments by application id
- *
- * @param gatewayId
- * Identifier of the requested gateway
- * @param userName
- * Username of the requested user
- * @param applicationId
- * Application id to be matched
- * @deprecated
- * Instead use searchExperimentsByApplicationWithPagination
- *
- * @param string $gatewayId
- * @param string $userName
- * @param string $applicationId
- * @return \Airavata\Model\Experiment\ExperimentSummaryModel[]
- * @throws \Airavata\API\Error\InvalidRequestException
- * @throws \Airavata\API\Error\AiravataClientException
- * @throws \Airavata\API\Error\AiravataSystemException
- */
- public function searchExperimentsByApplication($gatewayId, $userName, $applicationId);
+ public function searchExperimentsByDesc(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset);
/**
* Search Experiments by application id with pagination. Results will be sorted
* based on creation time DESC
@@ -474,28 +352,7 @@ interface AiravataIf {
* @throws \Airavata\API\Error\AiravataSystemException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function searchExperimentsByApplicationWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $applicationId, $limit, $offset);
- /**
- * Search Experiments by experiment status
- *
- * @param gatewayId
- * Identifier of the requested gateway
- * @param userName
- * Username of the requested user
- * @param experimentState
- * Experiement state to be matched
- * @deprecated
- * Instead use searchExperimentsByStatusWithPagination
- *
- * @param string $gatewayId
- * @param string $userName
- * @param int $experimentState
- * @return \Airavata\Model\Experiment\ExperimentSummaryModel[]
- * @throws \Airavata\API\Error\InvalidRequestException
- * @throws \Airavata\API\Error\AiravataClientException
- * @throws \Airavata\API\Error\AiravataSystemException
- */
- public function searchExperimentsByStatus($gatewayId, $userName, $experimentState);
+ public function searchExperimentsByApplication(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $applicationId, $limit, $offset);
/**
* Search Experiments by experiment status with pagination. Results will be sorted
* based on creation time DESC
@@ -523,31 +380,7 @@ interface AiravataIf {
* @throws \Airavata\API\Error\AiravataSystemException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function searchExperimentsByStatusWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $experimentState, $limit, $offset);
- /**
- * Search Experiments by experiment creation time
- *
- * @param gatewayId
- * Identifier of the requested gateway
- * @param userName
- * Username of the requested user
- * @param fromTime
- * Start time of the experiments creation time
- * @param toTime
- * End time of the experiement creation time
- * @deprecated
- * Instead use searchExperimentsByCreationTimeWithPagination
- *
- * @param string $gatewayId
- * @param string $userName
- * @param int $fromTime
- * @param int $toTime
- * @return \Airavata\Model\Experiment\ExperimentSummaryModel[]
- * @throws \Airavata\API\Error\InvalidRequestException
- * @throws \Airavata\API\Error\AiravataClientException
- * @throws \Airavata\API\Error\AiravataSystemException
- */
- public function searchExperimentsByCreationTime($gatewayId, $userName, $fromTime, $toTime);
+ public function searchExperimentsByStatus(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $experimentState, $limit, $offset);
/**
* Search Experiments by experiment creation time with pagination. Results will be sorted
* based on creation time DESC
@@ -578,7 +411,7 @@ interface AiravataIf {
* @throws \Airavata\API\Error\AiravataSystemException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function searchExperimentsByCreationTimeWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $fromTime, $toTime, $limit, $offset);
+ public function searchExperimentsByCreationTime(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $fromTime, $toTime, $limit, $offset);
/**
* Search Experiments by using multiple filter criteria with pagination. Results will be sorted
* based on creation time DESC
@@ -629,23 +462,7 @@ interface AiravataIf {
*/
public function getExperimentStatistics(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $fromTime, $toTime);
/**
- * Get all Experiments within a Project
- *
- * @param projectId
- * Identifier of the project
- * @deprecated
- * Instead use getAllExperimentsInProjectWithPagination
- *
- * @param string $projectId
- * @return \Airavata\Model\Experiment\ExperimentModel[]
- * @throws \Airavata\API\Error\InvalidRequestException
- * @throws \Airavata\API\Error\AiravataClientException
- * @throws \Airavata\API\Error\AiravataSystemException
- * @throws \Airavata\API\Error\ProjectNotFoundException
- */
- public function getAllExperimentsInProject($projectId);
- /**
- * Get all Experiments within project with pagination. Results will be sorted
+ * Get Experiments within project with pagination. Results will be sorted
* based on creation time DESC
*
* @param projectId
@@ -666,27 +483,9 @@ interface AiravataIf {
* @throws \Airavata\API\Error\ProjectNotFoundException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function getAllExperimentsInProjectWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $projectId, $limit, $offset);
+ public function getExperimentsInProject(\Airavata\Model\Security\AuthzToken $authzToken, $projectId, $limit, $offset);
/**
- * Get all Experiments by user
- *
- * @param gatewayId
- * Identifier of the requesting gateway
- * @param userName
- * Username of the requested user
- * @deprecated
- * Instead use getAllUserExperimentsWithPagination
- *
- * @param string $gatewayId
- * @param string $userName
- * @return \Airavata\Model\Experiment\ExperimentModel[]
- * @throws \Airavata\API\Error\InvalidRequestException
- * @throws \Airavata\API\Error\AiravataClientException
- * @throws \Airavata\API\Error\AiravataSystemException
- */
- public function getAllUserExperiments($gatewayId, $userName);
- /**
- * Get all Experiments by user pagination. Results will be sorted
+ * Get experiments by user with pagination. Results will be sorted
* based on creation time DESC
*
* @param gatewayId
@@ -709,7 +508,7 @@ interface AiravataIf {
* @throws \Airavata\API\Error\AiravataSystemException
* @throws \Airavata\API\Error\AuthorizationException
*/
- public function getAllUserExperimentsWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset);
+ public function getUserExperiments(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset);
/**
* Create an experiment for the specified user belonging to the gateway. The gateway identity is not explicitly passed
* but inferred from the authentication header. This experiment is just a persistent place holder. The client
@@ -3613,76 +3412,15 @@ class AiravataClient implements \Airavata\API\AiravataIf {
throw new \Exception("deleteProject failed: unknown result");
}
- public function getAllUserProjects($gatewayId, $userName)
+ public function getUserProjects(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset)
{
- $this->send_getAllUserProjects($gatewayId, $userName);
- return $this->recv_getAllUserProjects();
+ $this->send_getUserProjects($authzToken, $gatewayId, $userName, $limit, $offset);
+ return $this->recv_getUserProjects();
}
- public function send_getAllUserProjects($gatewayId, $userName)
+ public function send_getUserProjects(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset)
{
- $args = new \Airavata\API\Airavata_getAllUserProjects_args();
- $args->gatewayId = $gatewayId;
- $args->userName = $userName;
- $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'getAllUserProjects', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('getAllUserProjects', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
-
- public function recv_getAllUserProjects()
- {
- $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_getAllUserProjects_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_getAllUserProjects_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;
- }
- throw new \Exception("getAllUserProjects failed: unknown result");
- }
-
- public function getAllUserProjectsWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset)
- {
- $this->send_getAllUserProjectsWithPagination($authzToken, $gatewayId, $userName, $limit, $offset);
- return $this->recv_getAllUserProjectsWithPagination();
- }
-
- public function send_getAllUserProjectsWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset)
- {
- $args = new \Airavata\API\Airavata_getAllUserProjectsWithPagination_args();
+ $args = new \Airavata\API\Airavata_getUserProjects_args();
$args->authzToken = $authzToken;
$args->gatewayId = $gatewayId;
$args->userName = $userName;
@@ -3691,21 +3429,21 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'getAllUserProjectsWithPagination', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'getUserProjects', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('getAllUserProjectsWithPagination', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('getUserProjects', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_getAllUserProjectsWithPagination()
+ public function recv_getUserProjects()
{
$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_getAllUserProjectsWithPagination_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getUserProjects_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -3719,7 +3457,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_getAllUserProjectsWithPagination_result();
+ $result = new \Airavata\API\Airavata_getUserProjects_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -3738,21 +3476,24 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ae !== null) {
throw $result->ae;
}
- throw new \Exception("getAllUserProjectsWithPagination failed: unknown result");
+ throw new \Exception("getUserProjects failed: unknown result");
}
- public function searchProjectsByProjectName($gatewayId, $userName, $projectName)
+ public function searchProjectsByProjectName(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $projectName, $limit, $offset)
{
- $this->send_searchProjectsByProjectName($gatewayId, $userName, $projectName);
+ $this->send_searchProjectsByProjectName($authzToken, $gatewayId, $userName, $projectName, $limit, $offset);
return $this->recv_searchProjectsByProjectName();
}
- public function send_searchProjectsByProjectName($gatewayId, $userName, $projectName)
+ public function send_searchProjectsByProjectName(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $projectName, $limit, $offset)
{
$args = new \Airavata\API\Airavata_searchProjectsByProjectName_args();
+ $args->authzToken = $authzToken;
$args->gatewayId = $gatewayId;
$args->userName = $userName;
$args->projectName = $projectName;
+ $args->limit = $limit;
+ $args->offset = $offset;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
@@ -3800,89 +3541,27 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ase !== null) {
throw $result->ase;
}
- throw new \Exception("searchProjectsByProjectName failed: unknown result");
- }
-
- public function searchProjectsByProjectNameWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $projectName, $limit, $offset)
- {
- $this->send_searchProjectsByProjectNameWithPagination($authzToken, $gatewayId, $userName, $projectName, $limit, $offset);
- return $this->recv_searchProjectsByProjectNameWithPagination();
- }
-
- public function send_searchProjectsByProjectNameWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $projectName, $limit, $offset)
- {
- $args = new \Airavata\API\Airavata_searchProjectsByProjectNameWithPagination_args();
- $args->authzToken = $authzToken;
- $args->gatewayId = $gatewayId;
- $args->userName = $userName;
- $args->projectName = $projectName;
- $args->limit = $limit;
- $args->offset = $offset;
- $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'searchProjectsByProjectNameWithPagination', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('searchProjectsByProjectNameWithPagination', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
-
- public function recv_searchProjectsByProjectNameWithPagination()
- {
- $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_searchProjectsByProjectNameWithPagination_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_searchProjectsByProjectNameWithPagination_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("searchProjectsByProjectNameWithPagination failed: unknown result");
+ throw new \Exception("searchProjectsByProjectName failed: unknown result");
}
- public function searchProjectsByProjectDesc($gatewayId, $userName, $description)
+ public function searchProjectsByProjectDesc(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset)
{
- $this->send_searchProjectsByProjectDesc($gatewayId, $userName, $description);
+ $this->send_searchProjectsByProjectDesc($authzToken, $gatewayId, $userName, $description, $limit, $offset);
return $this->recv_searchProjectsByProjectDesc();
}
- public function send_searchProjectsByProjectDesc($gatewayId, $userName, $description)
+ public function send_searchProjectsByProjectDesc(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset)
{
$args = new \Airavata\API\Airavata_searchProjectsByProjectDesc_args();
+ $args->authzToken = $authzToken;
$args->gatewayId = $gatewayId;
$args->userName = $userName;
$args->description = $description;
+ $args->limit = $limit;
+ $args->offset = $offset;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
@@ -3930,89 +3609,27 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ase !== null) {
throw $result->ase;
}
- throw new \Exception("searchProjectsByProjectDesc failed: unknown result");
- }
-
- public function searchProjectsByProjectDescWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset)
- {
- $this->send_searchProjectsByProjectDescWithPagination($authzToken, $gatewayId, $userName, $description, $limit, $offset);
- return $this->recv_searchProjectsByProjectDescWithPagination();
- }
-
- public function send_searchProjectsByProjectDescWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset)
- {
- $args = new \Airavata\API\Airavata_searchProjectsByProjectDescWithPagination_args();
- $args->authzToken = $authzToken;
- $args->gatewayId = $gatewayId;
- $args->userName = $userName;
- $args->description = $description;
- $args->limit = $limit;
- $args->offset = $offset;
- $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'searchProjectsByProjectDescWithPagination', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('searchProjectsByProjectDescWithPagination', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
-
- public function recv_searchProjectsByProjectDescWithPagination()
- {
- $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_searchProjectsByProjectDescWithPagination_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_searchProjectsByProjectDescWithPagination_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("searchProjectsByProjectDescWithPagination failed: unknown result");
+ throw new \Exception("searchProjectsByProjectDesc failed: unknown result");
}
- public function searchExperimentsByName($gatewayId, $userName, $expName)
+ public function searchExperimentsByName(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $expName, $limit, $offset)
{
- $this->send_searchExperimentsByName($gatewayId, $userName, $expName);
+ $this->send_searchExperimentsByName($authzToken, $gatewayId, $userName, $expName, $limit, $offset);
return $this->recv_searchExperimentsByName();
}
- public function send_searchExperimentsByName($gatewayId, $userName, $expName)
+ public function send_searchExperimentsByName(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $expName, $limit, $offset)
{
$args = new \Airavata\API\Airavata_searchExperimentsByName_args();
+ $args->authzToken = $authzToken;
$args->gatewayId = $gatewayId;
$args->userName = $userName;
$args->expName = $expName;
+ $args->limit = $limit;
+ $args->offset = $offset;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
@@ -4060,89 +3677,27 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ase !== null) {
throw $result->ase;
}
- throw new \Exception("searchExperimentsByName failed: unknown result");
- }
-
- public function searchExperimentsByNameWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $expName, $limit, $offset)
- {
- $this->send_searchExperimentsByNameWithPagination($authzToken, $gatewayId, $userName, $expName, $limit, $offset);
- return $this->recv_searchExperimentsByNameWithPagination();
- }
-
- public function send_searchExperimentsByNameWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $expName, $limit, $offset)
- {
- $args = new \Airavata\API\Airavata_searchExperimentsByNameWithPagination_args();
- $args->authzToken = $authzToken;
- $args->gatewayId = $gatewayId;
- $args->userName = $userName;
- $args->expName = $expName;
- $args->limit = $limit;
- $args->offset = $offset;
- $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'searchExperimentsByNameWithPagination', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('searchExperimentsByNameWithPagination', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
-
- public function recv_searchExperimentsByNameWithPagination()
- {
- $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_searchExperimentsByNameWithPagination_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_searchExperimentsByNameWithPagination_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("searchExperimentsByNameWithPagination failed: unknown result");
+ throw new \Exception("searchExperimentsByName failed: unknown result");
}
- public function searchExperimentsByDesc($gatewayId, $userName, $description)
+ public function searchExperimentsByDesc(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset)
{
- $this->send_searchExperimentsByDesc($gatewayId, $userName, $description);
+ $this->send_searchExperimentsByDesc($authzToken, $gatewayId, $userName, $description, $limit, $offset);
return $this->recv_searchExperimentsByDesc();
}
- public function send_searchExperimentsByDesc($gatewayId, $userName, $description)
+ public function send_searchExperimentsByDesc(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset)
{
$args = new \Airavata\API\Airavata_searchExperimentsByDesc_args();
+ $args->authzToken = $authzToken;
$args->gatewayId = $gatewayId;
$args->userName = $userName;
$args->description = $description;
+ $args->limit = $limit;
+ $args->offset = $offset;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
@@ -4190,89 +3745,27 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ase !== null) {
throw $result->ase;
}
- throw new \Exception("searchExperimentsByDesc failed: unknown result");
- }
-
- public function searchExperimentsByDescWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset)
- {
- $this->send_searchExperimentsByDescWithPagination($authzToken, $gatewayId, $userName, $description, $limit, $offset);
- return $this->recv_searchExperimentsByDescWithPagination();
- }
-
- public function send_searchExperimentsByDescWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $description, $limit, $offset)
- {
- $args = new \Airavata\API\Airavata_searchExperimentsByDescWithPagination_args();
- $args->authzToken = $authzToken;
- $args->gatewayId = $gatewayId;
- $args->userName = $userName;
- $args->description = $description;
- $args->limit = $limit;
- $args->offset = $offset;
- $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'searchExperimentsByDescWithPagination', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('searchExperimentsByDescWithPagination', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
-
- public function recv_searchExperimentsByDescWithPagination()
- {
- $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_searchExperimentsByDescWithPagination_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_searchExperimentsByDescWithPagination_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("searchExperimentsByDescWithPagination failed: unknown result");
+ throw new \Exception("searchExperimentsByDesc failed: unknown result");
}
- public function searchExperimentsByApplication($gatewayId, $userName, $applicationId)
+ public function searchExperimentsByApplication(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $applicationId, $limit, $offset)
{
- $this->send_searchExperimentsByApplication($gatewayId, $userName, $applicationId);
+ $this->send_searchExperimentsByApplication($authzToken, $gatewayId, $userName, $applicationId, $limit, $offset);
return $this->recv_searchExperimentsByApplication();
}
- public function send_searchExperimentsByApplication($gatewayId, $userName, $applicationId)
+ public function send_searchExperimentsByApplication(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $applicationId, $limit, $offset)
{
$args = new \Airavata\API\Airavata_searchExperimentsByApplication_args();
+ $args->authzToken = $authzToken;
$args->gatewayId = $gatewayId;
$args->userName = $userName;
$args->applicationId = $applicationId;
+ $args->limit = $limit;
+ $args->offset = $offset;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
@@ -4320,42 +3813,45 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ase !== null) {
throw $result->ase;
}
+ if ($result->ae !== null) {
+ throw $result->ae;
+ }
throw new \Exception("searchExperimentsByApplication failed: unknown result");
}
- public function searchExperimentsByApplicationWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $applicationId, $limit, $offset)
+ public function searchExperimentsByStatus(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $experimentState, $limit, $offset)
{
- $this->send_searchExperimentsByApplicationWithPagination($authzToken, $gatewayId, $userName, $applicationId, $limit, $offset);
- return $this->recv_searchExperimentsByApplicationWithPagination();
+ $this->send_searchExperimentsByStatus($authzToken, $gatewayId, $userName, $experimentState, $limit, $offset);
+ return $this->recv_searchExperimentsByStatus();
}
- public function send_searchExperimentsByApplicationWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $applicationId, $limit, $offset)
+ public function send_searchExperimentsByStatus(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $experimentState, $limit, $offset)
{
- $args = new \Airavata\API\Airavata_searchExperimentsByApplicationWithPagination_args();
+ $args = new \Airavata\API\Airavata_searchExperimentsByStatus_args();
$args->authzToken = $authzToken;
$args->gatewayId = $gatewayId;
$args->userName = $userName;
- $args->applicationId = $applicationId;
+ $args->experimentState = $experimentState;
$args->limit = $limit;
$args->offset = $offset;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'searchExperimentsByApplicationWithPagination', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'searchExperimentsByStatus', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('searchExperimentsByApplicationWithPagination', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('searchExperimentsByStatus', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_searchExperimentsByApplicationWithPagination()
+ public function recv_searchExperimentsByStatus()
{
$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_searchExperimentsByApplicationWithPagination_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchExperimentsByStatus_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -4369,7 +3865,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_searchExperimentsByApplicationWithPagination_result();
+ $result = new \Airavata\API\Airavata_searchExperimentsByStatus_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -4388,39 +3884,43 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ae !== null) {
throw $result->ae;
}
- throw new \Exception("searchExperimentsByApplicationWithPagination failed: unknown result");
+ throw new \Exception("searchExperimentsByStatus failed: unknown result");
}
- public function searchExperimentsByStatus($gatewayId, $userName, $experimentState)
+ public function searchExperimentsByCreationTime(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $fromTime, $toTime, $limit, $offset)
{
- $this->send_searchExperimentsByStatus($gatewayId, $userName, $experimentState);
- return $this->recv_searchExperimentsByStatus();
+ $this->send_searchExperimentsByCreationTime($authzToken, $gatewayId, $userName, $fromTime, $toTime, $limit, $offset);
+ return $this->recv_searchExperimentsByCreationTime();
}
- public function send_searchExperimentsByStatus($gatewayId, $userName, $experimentState)
+ public function send_searchExperimentsByCreationTime(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $fromTime, $toTime, $limit, $offset)
{
- $args = new \Airavata\API\Airavata_searchExperimentsByStatus_args();
+ $args = new \Airavata\API\Airavata_searchExperimentsByCreationTime_args();
+ $args->authzToken = $authzToken;
$args->gatewayId = $gatewayId;
$args->userName = $userName;
- $args->experimentState = $experimentState;
+ $args->fromTime = $fromTime;
+ $args->toTime = $toTime;
+ $args->limit = $limit;
+ $args->offset = $offset;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'searchExperimentsByStatus', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'searchExperimentsByCreationTime', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('searchExperimentsByStatus', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('searchExperimentsByCreationTime', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_searchExperimentsByStatus()
+ public function recv_searchExperimentsByCreationTime()
{
$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_searchExperimentsByStatus_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchExperimentsByCreationTime_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -4434,7 +3934,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_searchExperimentsByStatus_result();
+ $result = new \Airavata\API\Airavata_searchExperimentsByCreationTime_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -4450,42 +3950,45 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ase !== null) {
throw $result->ase;
}
- throw new \Exception("searchExperimentsByStatus failed: unknown result");
+ if ($result->ae !== null) {
+ throw $result->ae;
+ }
+ throw new \Exception("searchExperimentsByCreationTime failed: unknown result");
}
- public function searchExperimentsByStatusWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $experimentState, $limit, $offset)
+ public function searchExperiments(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, array $filters, $limit, $offset)
{
- $this->send_searchExperimentsByStatusWithPagination($authzToken, $gatewayId, $userName, $experimentState, $limit, $offset);
- return $this->recv_searchExperimentsByStatusWithPagination();
+ $this->send_searchExperiments($authzToken, $gatewayId, $userName, $filters, $limit, $offset);
+ return $this->recv_searchExperiments();
}
- public function send_searchExperimentsByStatusWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $experimentState, $limit, $offset)
+ public function send_searchExperiments(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, array $filters, $limit, $offset)
{
- $args = new \Airavata\API\Airavata_searchExperimentsByStatusWithPagination_args();
+ $args = new \Airavata\API\Airavata_searchExperiments_args();
$args->authzToken = $authzToken;
$args->gatewayId = $gatewayId;
$args->userName = $userName;
- $args->experimentState = $experimentState;
+ $args->filters = $filters;
$args->limit = $limit;
$args->offset = $offset;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'searchExperimentsByStatusWithPagination', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'searchExperiments', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('searchExperimentsByStatusWithPagination', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('searchExperiments', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_searchExperimentsByStatusWithPagination()
+ public function recv_searchExperiments()
{
$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_searchExperimentsByStatusWithPagination_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_searchExperiments_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -4499,7 +4002,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_searchExperimentsByStatusWithPagination_result();
+ $result = new \Airavata\API\Airavata_searchExperiments_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -4518,40 +4021,40 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ae !== null) {
throw $result->ae;
}
- throw new \Exception("searchExperimentsByStatusWithPagination failed: unknown result");
+ throw new \Exception("searchExperiments failed: unknown result");
}
- public function searchExperimentsByCreationTime($gatewayId, $userName, $fromTime, $toTime)
+ public function getExperimentStatistics(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $fromTime, $toTime)
{
- $this->send_searchExperimentsByCreationTime($gatewayId, $userName, $fromTime, $toTime);
- return $this->recv_searchExperimentsByCreationTime();
+ $this->send_getExperimentStatistics($authzToken, $gatewayId, $fromTime, $toTime);
+ return $this->recv_getExperimentStatistics();
}
- public function send_searchExperimentsByCreationTime($gatewayId, $userName, $fromTime, $toTime)
+ public function send_getExperimentStatistics(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $fromTime, $toTime)
{
- $args = new \Airavata\API\Airavata_searchExperimentsByCreationTime_args();
+ $args = new \Airavata\API\Airavata_getExperimentStatistics_args();
+ $args->authzToken = $authzToken;
$args->gatewayId = $gatewayId;
- $args->userName = $userName;
$args->fromTime = $fromTime;
$args->toTime = $toTime;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'searchExperimentsByCreationTime', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'getExperimentStatistics', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('searchExperimentsByCreationTime', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('getExperimentStatistics', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_searchExperimentsByCreationTime()
+ public function recv_getExperimentStatistics()
{
$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_searchExperimentsByCreationTime_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getExperimentStatistics_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -4565,7 +4068,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_searchExperimentsByCreationTime_result();
+ $result = new \Airavata\API\Airavata_getExperimentStatistics_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -4581,43 +4084,43 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ase !== null) {
throw $result->ase;
}
- throw new \Exception("searchExperimentsByCreationTime failed: unknown result");
+ if ($result->ae !== null) {
+ throw $result->ae;
+ }
+ throw new \Exception("getExperimentStatistics failed: unknown result");
}
- public function searchExperimentsByCreationTimeWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $fromTime, $toTime, $limit, $offset)
+ public function getExperimentsInProject(\Airavata\Model\Security\AuthzToken $authzToken, $projectId, $limit, $offset)
{
- $this->send_searchExperimentsByCreationTimeWithPagination($authzToken, $gatewayId, $userName, $fromTime, $toTime, $limit, $offset);
- return $this->recv_searchExperimentsByCreationTimeWithPagination();
+ $this->send_getExperimentsInProject($authzToken, $projectId, $limit, $offset);
+ return $this->recv_getExperimentsInProject();
}
- public function send_searchExperimentsByCreationTimeWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $fromTime, $toTime, $limit, $offset)
+ public function send_getExperimentsInProject(\Airavata\Model\Security\AuthzToken $authzToken, $projectId, $limit, $offset)
{
- $args = new \Airavata\API\Airavata_searchExperimentsByCreationTimeWithPagination_args();
+ $args = new \Airavata\API\Airavata_getExperimentsInProject_args();
$args->authzToken = $authzToken;
- $args->gatewayId = $gatewayId;
- $args->userName = $userName;
- $args->fromTime = $fromTime;
- $args->toTime = $toTime;
+ $args->projectId = $projectId;
$args->limit = $limit;
$args->offset = $offset;
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'searchExperimentsByCreationTimeWithPagination', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'getExperimentsInProject', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('searchExperimentsByCreationTimeWithPagination', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('getExperimentsInProject', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_searchExperimentsByCreationTimeWithPagination()
+ public function recv_getExperimentsInProject()
{
$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_searchExperimentsByCreationTimeWithPagination_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getExperimentsInProject_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -4631,270 +4134,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_searchExperimentsByCreationTimeWithPagination_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("searchExperimentsByCreationTimeWithPagination failed: unknown result");
- }
-
- public function searchExperiments(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, array $filters, $limit, $offset)
- {
- $this->send_searchExperiments($authzToken, $gatewayId, $userName, $filters, $limit, $offset);
- return $this->recv_searchExperiments();
- }
-
- public function send_searchExperiments(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, array $filters, $limit, $offset)
- {
- $args = new \Airavata\API\Airavata_searchExperiments_args();
- $args->authzToken = $authzToken;
- $args->gatewayId = $gatewayId;
- $args->userName = $userName;
- $args->filters = $filters;
- $args->limit = $limit;
- $args->offset = $offset;
- $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'searchExperiments', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('searchExperiments', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
-
- public function recv_searchExperiments()
- {
- $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_searchExperiments_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_searchExperiments_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("searchExperiments failed: unknown result");
- }
-
- public function getExperimentStatistics(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $fromTime, $toTime)
- {
- $this->send_getExperimentStatistics($authzToken, $gatewayId, $fromTime, $toTime);
- return $this->recv_getExperimentStatistics();
- }
-
- public function send_getExperimentStatistics(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $fromTime, $toTime)
- {
- $args = new \Airavata\API\Airavata_getExperimentStatistics_args();
- $args->authzToken = $authzToken;
- $args->gatewayId = $gatewayId;
- $args->fromTime = $fromTime;
- $args->toTime = $toTime;
- $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'getExperimentStatistics', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('getExperimentStatistics', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
-
- public function recv_getExperimentStatistics()
- {
- $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_getExperimentStatistics_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_getExperimentStatistics_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("getExperimentStatistics failed: unknown result");
- }
-
- public function getAllExperimentsInProject($projectId)
- {
- $this->send_getAllExperimentsInProject($projectId);
- return $this->recv_getAllExperimentsInProject();
- }
-
- public function send_getAllExperimentsInProject($projectId)
- {
- $args = new \Airavata\API\Airavata_getAllExperimentsInProject_args();
- $args->projectId = $projectId;
- $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'getAllExperimentsInProject', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('getAllExperimentsInProject', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
-
- public function recv_getAllExperimentsInProject()
- {
- $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_getAllExperimentsInProject_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_getAllExperimentsInProject_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->pnfe !== null) {
- throw $result->pnfe;
- }
- throw new \Exception("getAllExperimentsInProject failed: unknown result");
- }
-
- public function getAllExperimentsInProjectWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $projectId, $limit, $offset)
- {
- $this->send_getAllExperimentsInProjectWithPagination($authzToken, $projectId, $limit, $offset);
- return $this->recv_getAllExperimentsInProjectWithPagination();
- }
-
- public function send_getAllExperimentsInProjectWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $projectId, $limit, $offset)
- {
- $args = new \Airavata\API\Airavata_getAllExperimentsInProjectWithPagination_args();
- $args->authzToken = $authzToken;
- $args->projectId = $projectId;
- $args->limit = $limit;
- $args->offset = $offset;
- $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'getAllExperimentsInProjectWithPagination', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('getAllExperimentsInProjectWithPagination', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
-
- public function recv_getAllExperimentsInProjectWithPagination()
- {
- $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_getAllExperimentsInProjectWithPagination_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_getAllExperimentsInProjectWithPagination_result();
+ $result = new \Airavata\API\Airavata_getExperimentsInProject_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -4916,79 +4156,18 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ae !== null) {
throw $result->ae;
}
- throw new \Exception("getAllExperimentsInProjectWithPagination failed: unknown result");
- }
-
- public function getAllUserExperiments($gatewayId, $userName)
- {
- $this->send_getAllUserExperiments($gatewayId, $userName);
- return $this->recv_getAllUserExperiments();
- }
-
- public function send_getAllUserExperiments($gatewayId, $userName)
- {
- $args = new \Airavata\API\Airavata_getAllUserExperiments_args();
- $args->gatewayId = $gatewayId;
- $args->userName = $userName;
- $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
- if ($bin_accel)
- {
- thrift_protocol_write_binary($this->output_, 'getAllUserExperiments', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
- }
- else
- {
- $this->output_->writeMessageBegin('getAllUserExperiments', TMessageType::CALL, $this->seqid_);
- $args->write($this->output_);
- $this->output_->writeMessageEnd();
- $this->output_->getTransport()->flush();
- }
- }
-
- public function recv_getAllUserExperiments()
- {
- $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_getAllUserExperiments_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_getAllUserExperiments_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;
- }
- throw new \Exception("getAllUserExperiments failed: unknown result");
+ throw new \Exception("getExperimentsInProject failed: unknown result");
}
- public function getAllUserExperimentsWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset)
+ public function getUserExperiments(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset)
{
- $this->send_getAllUserExperimentsWithPagination($authzToken, $gatewayId, $userName, $limit, $offset);
- return $this->recv_getAllUserExperimentsWithPagination();
+ $this->send_getUserExperiments($authzToken, $gatewayId, $userName, $limit, $offset);
+ return $this->recv_getUserExperiments();
}
- public function send_getAllUserExperimentsWithPagination(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset)
+ public function send_getUserExperiments(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, $userName, $limit, $offset)
{
- $args = new \Airavata\API\Airavata_getAllUserExperimentsWithPagination_args();
+ $args = new \Airavata\API\Airavata_getUserExperiments_args();
$args->authzToken = $authzToken;
$args->gatewayId = $gatewayId;
$args->userName = $userName;
@@ -4997,21 +4176,21 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary');
if ($bin_accel)
{
- thrift_protocol_write_binary($this->output_, 'getAllUserExperimentsWithPagination', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+ thrift_protocol_write_binary($this->output_, 'getUserExperiments', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
}
else
{
- $this->output_->writeMessageBegin('getAllUserExperimentsWithPagination', TMessageType::CALL, $this->seqid_);
+ $this->output_->writeMessageBegin('getUserExperiments', TMessageType::CALL, $this->seqid_);
$args->write($this->output_);
$this->output_->writeMessageEnd();
$this->output_->getTransport()->flush();
}
}
- public function recv_getAllUserExperimentsWithPagination()
+ public function recv_getUserExperiments()
{
$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_getAllUserExperimentsWithPagination_result', $this->input_->isStrictRead());
+ if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\Airavata\API\Airavata_getUserExperiments_result', $this->input_->isStrictRead());
else
{
$rseqid = 0;
@@ -5025,7 +4204,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
$this->input_->readMessageEnd();
throw $x;
}
- $result = new \Airavata\API\Airavata_getAllUserExperimentsWithPagination_result();
+ $result = new \Airavata\API\Airavata_getUserExperiments_result();
$result->read($this->input_);
$this->input_->readMessageEnd();
}
@@ -5044,7 +4223,7 @@ class AiravataClient implements \Airavata\API\AiravataIf {
if ($result->ae !== null) {
throw $result->ae;
}
- throw new \Exception("getAllUserExperimentsWithPagination failed: unknown result");
+ throw new \Exception("getUserExperiments failed: unknown result");
}
public function createExperiment(\Airavata\Model\Security\AuthzToken $authzToken, $gatewayId, \Airavata\Model\Experiment\ExperimentModel $experiment)
@@ -14820,10 +13999,14 @@ class Airavata_deleteProject_result {
}
-class Airavata_getAllUserProjects_args {
+class Airavata_getUserProjects_args {
static $_TSPEC;
/**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
* @var string
*/
public $gatewayId = null;
@@ -14831,32 +14014,62 @@ class Airavata_getAllUserProjects_args {
* @var string
*/
public $userName = null;
+ /**
+ * @var int
+ */
+ public $limit = null;
+ /**
+ * @var int
+ */
+ public $offset = 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' => 'gatewayId',
'type' => TType::STRING,
),
- 2 => array(
+ 3 => array(
'var' => 'userName',
'type' => TType::STRING,
),
+ 4 => array(
+ 'var' => 'limit',
+ 'type' => TType::I32,
+ ),
+ 5 => array(
+ 'var' => 'offset',
+ 'type' => TType::I32,
+ ),
);
}
if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
if (isset($vals['gatewayId'])) {
$this->gatewayId = $vals['gatewayId'];
}
if (isset($vals['userName'])) {
$this->userName = $vals['userName'];
}
+ if (isset($vals['limit'])) {
+ $this->limit = $vals['limit'];
+ }
+ if (isset($vals['offset'])) {
+ $this->offset = $vals['offset'];
+ }
}
}
public function getName() {
- return 'Airavata_getAllUserProjects_args';
+ return 'Airavata_getUserProjects_args';
}
public function read($input)
@@ -14875,19 +14088,41 @@ class Airavata_getAllUserProjects_args {
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->gatewayId);
} else {
$xfer += $input->skip($ftype);
}
break;
- case 2:
+ case 3:
if ($ftype == TType::STRING) {
$xfer += $input->readString($this->userName);
} else {
$xfer += $input->skip($ftype);
}
break;
+ case 4:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->limit);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->offset);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
default:
$xfer += $input->skip($ftype);
break;
@@ -14900,17 +14135,35 @@ class Airavata_getAllUserProjects_args {
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_getAllUserProjects_args');
+ $xfer += $output->writeStructBegin('Airavata_getUserProjects_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->gatewayId !== null) {
- $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 1);
+ $xfer += $output->writeFieldBegin('gatewayId', TType::STRING, 2);
$xfer += $output->writeString($this->gatewayId);
$xfer += $output->writeFieldEnd();
}
if ($this->userName !== null) {
- $xfer += $output->writeFieldBegin('userName', TType::STRING, 2);
+ $xfer += $output->writeFieldBegin('userName', TType::STRING, 3);
$xfer += $output->writeString($this->userName);
$xfer += $output->writeFieldEnd();
}
+ if ($this->limit !== null) {
+ $xfer += $output->writeFieldBegin('limit', TType::I32, 4);
+ $xfer += $output->writeI32($this->limit);
+ $xfer += $output->writeFieldEnd();
+ }
+ if ($this->offset !== null) {
+ $xfer += $output->writeFieldBegin('offset', TType::I32, 5);
+ $xfer += $output->writeI32($this->offset);
+ $xfer += $output->writeFieldEnd();
+ }
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
@@ -14918,7 +14171,7 @@ class Airavata_getAllUserProjects_args {
}
-class Airavata_getAllUserProjects_result {
+class Airavata_getUserProjects_result {
static $_TSPEC;
/**
@@ -14937,6 +14190,10 @@ class Airavata_getAllUserProjects_result {
* @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)) {
@@ -14965,6 +14222,11 @@ class Airavata_getAllUserProjects_result {
'type' => TType::STRUCT,
'class' => '\Airavata\API\Error\AiravataSystemException',
),
+ 4 => array(
+ 'var' => 'ae',
+ 'type' => TType::STRUCT,
+ 'class' => '\Airavata\API\Error\AuthorizationException',
+ ),
);
}
if (is_array($vals)) {
@@ -14980,11 +14242,14 @@ class Airavata_getAllUserProjects_result {
if (isset($vals['ase'])) {
$this->ase = $vals['ase'];
}
+ if (isset($vals['ae'])) {
+ $this->ae = $vals['ae'];
+ }
}
}
public function getName() {
- return 'Airavata_getAllUserProjects_result';
+ return 'Airavata_getUserProjects_result';
}
public function read($input)
@@ -15044,6 +14309,14 @@ class Airavata_getAllUserProjects_result {
$xfer += $input->skip($ftype);
}
break;
+ case 4:
+ 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;
@@ -15056,7 +14329,7 @@ class Airavata_getAllUserProjects_result {
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_getAllUserProjects_result');
+ $xfer += $output->writeStructBegin('Airavata_getUserProjects_result');
if ($this->success !== null) {
if (!is_array($this->success)) {
throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -15089,6 +14362,11 @@ class Airavata_getAllUserProjects_result {
$xfer += $this->ase->write($output);
$xfer += $output->writeFieldEnd();
}
+ if ($this->ae !== null) {
+ $xfer += $output->writeFieldBegin('ae', TType::STRUCT, 4);
+ $xfer += $this->ae->write($output);
+ $xfer += $output->writeFieldEnd();
+ }
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
@@ -15096,7 +14374,7 @@ class Airavata_getAllUserProjects_result {
}
-class Airavata_getAllUserProjectsWithPagination_args {
+class Airavata_searchProjectsByProjectName_args {
static $_TSPEC;
/**
@@ -15112,6 +14390,10 @@ class Airavata_getAllUserProjectsWithPagination_args {
*/
public $userName = null;
/**
+ * @var string
+ */
+ public $projectName = null;
+ /**
* @var int
*/
public $limit = null;
@@ -15137,10 +14419,14 @@ class Airavata_getAllUserProjectsWithPagination_args {
'type' => TType::STRING,
),
4 => array(
+ 'var' => 'projectName',
+ 'type' => TType::STRING,
+ ),
+ 5 => array(
'var' => 'limit',
'type' => TType::I32,
),
- 5 => array(
+ 6 => array(
'var' => 'offset',
'type' => TType::I32,
),
@@ -15156,6 +14442,9 @@ class Airavata_getAllUserProjectsWithPagination_args {
if (isset($vals['userName'])) {
$this->userName = $vals['userName'];
}
+ if (isset($vals['projectName'])) {
+ $this->projectName = $vals['projectName'];
+ }
if (isset($vals['limit'])) {
$this->limit = $vals['limit'];
}
@@ -15166,7 +14455,7 @@ class Airavata_getAllUserProjectsWithPagination_args {
}
public function getName() {
- return 'Airavata_getAllUserProjectsWithPagination_args';
+ return 'Airavata_searchProjectsByProjectName_args';
}
public function read($input)
@@ -15207,13 +14496,20 @@ class Airavata_getAllUserProjectsWithPagination_args {
}
break;
case 4:
+ if ($ftype == TType::STRING) {
+ $xfer += $input->readString($this->projectName);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
if ($ftype == TType::I32) {
$xfer += $input->readI32($this->limit);
} else {
$xfer += $input->skip($ftype);
}
break;
- case 5:
+ case 6:
if ($ftype == TType::I32) {
$xfer += $input->readI32($this->offset);
} else {
@@ -15232,7 +14528,7 @@ class Airavata_getAllUserProjectsWithPagination_args {
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_getAllUserProjectsWithPagination_args');
+ $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectName_args');
if ($this->authzToken !== null) {
if (!is_object($this->authzToken)) {
throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -15251,13 +14547,18 @@ class Airavata_getAllUserProjectsWithPagination_args {
$xfer += $output->writeString($this->userName);
$xfer += $output->writeFieldEnd();
}
+ if ($this->projectName !== null) {
+ $xfer += $output->writeFieldBegin('projectName', TType::STRING, 4);
+ $xfer += $output->writeString($this->projectName);
+ $xfer += $output->writeFieldEnd();
+ }
if ($this->limit !== null) {
- $xfer += $output->writeFieldBegin('limit', TType::I32, 4);
+ $xfer += $output->writeFieldBegin('limit', TType::I32, 5);
$xfer += $output->writeI32($this->limit);
$xfer += $output->writeFieldEnd();
}
if ($this->offset !== null) {
- $xfer += $output->writeFieldBegin('offset', TType::I32, 5);
+ $xfer += $output->writeFieldBegin('offset', TType::I32, 6);
$xfer += $output->writeI32($this->offset);
$xfer += $output->writeFieldEnd();
}
@@ -15268,7 +14569,7 @@ class Airavata_getAllUserProjectsWithPagination_args {
}
-class Airavata_getAllUserProjectsWithPagination_result {
+class Airavata_searchProjectsByProjectName_result {
static $_TSPEC;
/**
@@ -15346,7 +14647,7 @@ class Airavata_getAllUserProjectsWithPagination_result {
}
public function getName() {
- return 'Airavata_getAllUserProjectsWithPagination_result';
+ return 'Airavata_searchProjectsByProjectName_result';
}
public function read($input)
@@ -15426,7 +14727,7 @@ class Airavata_getAllUserProjectsWithPagination_result {
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_getAllUserProjectsWithPagination_result');
+ $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectName_result');
if ($this->success !== null) {
if (!is_array($this->success)) {
throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -15471,10 +14772,14 @@ class Airavata_getAllUserProjectsWithPagination_result {
}
-class Airavata_searchProjectsByProjectName_args {
+class Airavata_searchProjectsByProjectDesc_args {
static $_TSPEC;
/**
+ * @var \Airavata\Model\Security\AuthzToken
+ */
+ public $authzToken = null;
+ /**
* @var string
*/
public $gatewayId = null;
@@ -15485,40 +14790,70 @@ class Airavata_searchProjectsByProjectName_args {
/**
* @var string
*/
- public $projectName = null;
+ public $description = null;
+ /**
+ * @var int
+ */
+ public $limit = null;
+ /**
+ * @var int
+ */
+ public $offset = 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' => 'gatewayId',
'type' => TType::STRING,
),
- 2 => array(
+ 3 => array(
'var' => 'userName',
'type' => TType::STRING,
),
- 3 => array(
- 'var' => 'projectName',
+ 4 => array(
+ 'var' => 'description',
'type' => TType::STRING,
),
+ 5 => array(
+ 'var' => 'limit',
+ 'type' => TType::I32,
+ ),
+ 6 => array(
+ 'var' => 'offset',
+ 'type' => TType::I32,
+ ),
);
}
if (is_array($vals)) {
+ if (isset($vals['authzToken'])) {
+ $this->authzToken = $vals['authzToken'];
+ }
if (isset($vals['gatewayId'])) {
$this->gatewayId = $vals['gatewayId'];
}
if (isset($vals['userName'])) {
$this->userName = $vals['userName'];
}
- if (isset($vals['projectName'])) {
- $this->projectName = $vals['projectName'];
+ if (isset($vals['description'])) {
+ $this->description = $vals['description'];
+ }
+ if (isset($vals['limit'])) {
+ $this->limit = $vals['limit'];
+ }
+ if (isset($vals['offset'])) {
+ $this->offset = $vals['offset'];
}
}
}
public function getName() {
- return 'Airavata_searchProjectsByProjectName_args';
+ return 'Airavata_searchProjectsByProjectDesc_args';
}
public function read($input)
@@ -15537,22 +14872,44 @@ class Airavata_searchProjectsByProjectName_args {
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->gatewayId);
} else {
$xfer += $input->skip($ftype);
}
break;
- case 2:
+ case 3:
if ($ftype == TType::STRING) {
$xfer += $input->readString($this->userName);
} else {
$xfer += $input->skip($ftype);
}
break;
- case 3:
+ case 4:
if ($ftype == TType::STRING) {
- $xfer += $input->readString($this->projectName);
+ $xfer += $input->readString($this->description);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 5:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->limit);
+ } else {
+ $xfer += $input->skip($ftype);
+ }
+ break;
+ case 6:
+ if ($ftype == TType::I32) {
+ $xfer += $input->readI32($this->offset);
} else {
$xfer += $input->skip($ftype);
}
@@ -15569,20 +14926,38 @@ class Airavata_searchProjectsByProjectName_args {
public function write($output) {
$xfer = 0;
- $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectName_args');
+ $xfer += $output->writeStructBegin('Airavata_searchProjectsByProjectDesc_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->gatewayId !== null) {
<TRUNCATED>